From 9b3e05b021ff2e5615d6c14181e196e9289df6b2 Mon Sep 17 00:00:00 2001 From: zhang_li <2235006734@qqq.com> Date: Mon, 28 Oct 2024 16:45:41 +0800 Subject: [PATCH] =?UTF-8?q?YT-515WMS=20=E5=88=9B=E5=BB=BA=E9=87=87?= =?UTF-8?q?=E8=B4=AD=E6=94=B6=E8=B4=A7=E7=94=B3=E8=AF=B7=E6=97=B6=EF=BC=8C?= =?UTF-8?q?=E5=BA=94=E8=AF=A5=E6=A0=A1=E9=AA=8C=E6=95=B0=E9=87=8F=E5=A4=A7?= =?UTF-8?q?=E4=BA=8E0=EF=BC=8C=E6=89=8D=E5=8F=AF=E4=BB=A5=E5=88=9B?= =?UTF-8?q?=E5=BB=BA=E6=88=90=E5=8A=9F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../purchasereceipt/purchasereceiptRequestMain/index.vue | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/views/wms/purchasereceiptManage/purchasereceipt/purchasereceiptRequestMain/index.vue b/src/views/wms/purchasereceiptManage/purchasereceipt/purchasereceiptRequestMain/index.vue index b1b3d391d..96d9a5118 100644 --- a/src/views/wms/purchasereceiptManage/purchasereceipt/purchasereceiptRequestMain/index.vue +++ b/src/views/wms/purchasereceiptManage/purchasereceipt/purchasereceiptRequestMain/index.vue @@ -840,13 +840,13 @@ const submitForm = async (formType, submitData) => { }) let alalQty = 0 tableData.value.forEach(item => { - alalQty += parseFloat(item.qty) + alalQty += item.qty ? parseFloat(item.qty) : 0 }) if (alalQty == 0) { message.error('收货总数量不可以为0') return } - data.subList = tableData.value.filter(item=>parseFloat(item.qty) >0) // 拼接子表数据参数 + data.subList = tableData.value.filter(item => parseFloat(item.qty) > 0) // 拼接子表数据参数 formRef.value.formLoading = true try { if (formType === 'create') {