🐞 fix(ID1000759): 提货按钮无效

【提货按钮无效】 https://www.tapd.cn/53459131/bugtrace/bugs/view/1153459131001000759
This commit is contained in:
xuan
2022-11-21 17:52:58 +08:00
parent 1a87fb7cbc
commit 3848d26501
4 changed files with 29 additions and 12 deletions
+5 -5
View File
@@ -66,7 +66,7 @@ const TakeDeliveryDetail: FC = () => {
<View className={styles['detailInfoItem--detail--count']}>
x{weightItem?.sale_mode === 0 ? `${weightItem.sale_roll} 条` : `${formatMeterDiv(weightItem?.sale_length || 0)} 米`}
</View>
<View className={styles['detailInfoItem--detail--weight']}>{formatWeightDiv(weightItem.weight)}/kg</View>
<View className={styles['detailInfoItem--detail--weight']}>{formatWeightDiv(weightItem.weight)}kg</View>
</View>
</View>
</View>
@@ -119,7 +119,7 @@ const TakeDeliveryDetail: FC = () => {
title: '确定要提货?',
success: async function (res) {
if (res.confirm) {
const res = await FetchAudit({ id: Number(router.params.id) })
const res = await FetchAudit({ take_goods_order_id: [Number(router.params.id)] })
if (res.success) {
alert.success('提货成功')
getData()
@@ -174,9 +174,9 @@ const TakeDeliveryDetail: FC = () => {
<View className={styles.total}>
<Text>汇总:</Text>
<Text className={styles.totalContent}>
共{detailInfo?.dyelot_number_list?.length || 0}种面料,4种颜色,共
{detailInfo?.sale_mode === 0 ? `${detailInfo?.take_roll}条` : `${formatMeterDiv(detailInfo?.take_meters)}米`}
,重量{detailInfo?.weight}kg
共{detailInfo?.product_count || 0}种面料,{detailInfo?.product_color_count || 0}种颜色,共
{detailInfo?.sale_mode === 0 ? `${detailInfo?.take_roll}条` : `${formatMeterDiv(detailInfo?.take_meters).toLocaleString()}米`}
,重量{formatWeightDiv(detailInfo?.total_take_weight).toLocaleString()}kg
</Text>
</View>
</LayoutBlock>