From c9d94899139702cc4c0be26a38a5049470f7e719 Mon Sep 17 00:00:00 2001 From: zhang_li <2235006734@qqq.com> Date: Tue, 20 Aug 2024 18:31:21 +0800 Subject: [PATCH] =?UTF-8?q?HL-5484scp=E4=BF=AE=E6=94=B9=E5=8C=85=E8=A3=85?= =?UTF-8?q?=E6=95=B0=E5=8A=9F=E8=83=BD=E5=8F=98=E6=9B=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../supplierdeliverRequestMain/labelForm.vue | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/src/views/wms/purchasereceiptManage/supplierdeliver/supplierdeliverRequestMain/labelForm.vue b/src/views/wms/purchasereceiptManage/supplierdeliver/supplierdeliverRequestMain/labelForm.vue index b9e0a96d8..cea9e2c05 100644 --- a/src/views/wms/purchasereceiptManage/supplierdeliver/supplierdeliverRequestMain/labelForm.vue +++ b/src/views/wms/purchasereceiptManage/supplierdeliver/supplierdeliverRequestMain/labelForm.vue @@ -510,15 +510,15 @@ const blurOne = (oneRow, twoRow) => { if (!twoRow.xNumber) { twoRow.qtyOne = '' } - // if (parseFloat(twoRow.xNumber) > parseFloat(oneRow.otherNumber)) { - // message.warning('每托箱个数最多' + oneRow.otherNumber + '箱') - // twoRow.xNumber = oneRow.otherNumber - // twoRow.children = [] - // twoRow.qtyOne = parseFloat(twoRow.xNumber) * parseFloat(oneRow.packQty) - // } + if (parseFloat(twoRow.xNumber) > parseFloat(oneRow.otherNumber)) { + message.warning('每托箱个数最多' + oneRow.otherNumber + '箱') + twoRow.xNumber = oneRow.otherNumber + twoRow.children = [] + twoRow.qtyOne = parseFloat(twoRow.xNumber) * parseFloat(oneRow.packQty) + } twoRow.qtyOne = parseFloat(twoRow.xNumber) ? accuracyFun.multiply(parseFloat(twoRow.xNumber), parseFloat(oneRow.packQty)) - : '' + : '' // let num = 0 // oneRow.packageList.forEach((item) => { // num += parseFloat(item.xNumber) || 0