From ad9904135ab31840beaa848b1d3ca4715de7c2f9 Mon Sep 17 00:00:00 2001 From: qb <1191961160@qq.com> Date: Thu, 17 Oct 2024 15:44:17 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E5=BC=80=E5=8D=95=E8=AE=A1?= =?UTF-8?q?=E7=AE=97=E4=BD=93=E7=A7=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/distribution/inventory/CreateOrder.vue | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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; }