diff --git a/src/views/distribution/inventory/CreateOrder.vue b/src/views/distribution/inventory/CreateOrder.vue index 34eeaba4..572c2b09 100644 --- a/src/views/distribution/inventory/CreateOrder.vue +++ b/src/views/distribution/inventory/CreateOrder.vue @@ -4693,6 +4693,8 @@ const handleSubmitPackage = () => { value.confirmIncomeCategoryId = value.incomeCategoryId; value.confirmIncomeCategoryName = value.incomeCategoryName; + console.log('value.volume :>> ', value.volume); + // 是否已添加此品类 let _flag = false; for (let i = 0; i < _goodsArr.length; i++) { @@ -4705,11 +4707,13 @@ const handleSubmitPackage = () => { '+', isNumber(value.weight) ? Number(value.weight) : 0 ).result; - item.volume += computeNumber( + item.volume = computeNumber( Number(item.volume), '+', isNumber(value.volume) ? Number(value.volume) : 0 ).result; + + console.log('item.volume :>> ', item.volume); _flag = true; break; }