diff --git a/src/views/supermarketerp/purchaseManagement/smErpCgBack/form.vue b/src/views/supermarketerp/purchaseManagement/smErpCgBack/form.vue index 35d3c26..6d33ac8 100644 --- a/src/views/supermarketerp/purchaseManagement/smErpCgBack/form.vue +++ b/src/views/supermarketerp/purchaseManagement/smErpCgBack/form.vue @@ -88,7 +88,7 @@ --> 商品选择 删除选中 - 清空数据 + 清空数据 - - - - - - - + + + + + + @@ -486,7 +485,8 @@ const cgPlanSpuItems = computed(() => { erpSpuId: item.erpSpuId, quantity: item.quantity, unitPrice: unit.purchasePrice ? Number(unit?.purchasePrice) : 0, - totalAmount: Number(unit?.purchasePrice || 0) * item.quantity, + retailPrice: unit.retailPrice ? Number(unit?.retailPrice) : 0, + totalAmount: Number(unit?.retailPrice || 0) * item.quantity, remark: item.remark, unitId: item.unitId, } @@ -496,7 +496,8 @@ const cgPlanSpuItems = computed(() => { erpSpuId: item.erpSpuId, quantity: item.quantity, unitPrice: item.purchasePrice ? Number(item.purchasePrice) : 0, - totalAmount: item?.purchasePrice && item.quantity ? Number(item.purchasePrice) * item.quantity : 0, + retailPrice: item.retailPrice ? Number(item.retailPrice) : 0, + totalAmount: item?.retailPrice && item.quantity ? Number(item.retailPrice) * item.quantity : 0, remark: item.remark, unitId: item.unitId, }