diff --git a/src/views/wms/purchasereceiptManage/purchasereceipt/purchasereceiptRequestMain/index.vue b/src/views/wms/purchasereceiptManage/purchasereceipt/purchasereceiptRequestMain/index.vue index 92abf9afb..b1b3d391d 100644 --- a/src/views/wms/purchasereceiptManage/purchasereceipt/purchasereceiptRequestMain/index.vue +++ b/src/views/wms/purchasereceiptManage/purchasereceipt/purchasereceiptRequestMain/index.vue @@ -838,7 +838,15 @@ const submitForm = async (formType, submitData) => { tableData.value.forEach((row, index) => { row['expireDate'] = row['expireTime']?addDay(row['produceDate'],row['expireTime']).valueOf():dayjs('2099-12-31').valueOf() }) - data.subList = tableData.value // 拼接子表数据参数 + let alalQty = 0 + tableData.value.forEach(item => { + alalQty += parseFloat(item.qty) + }) + if (alalQty == 0) { + message.error('收货总数量不可以为0') + return + } + data.subList = tableData.value.filter(item=>parseFloat(item.qty) >0) // 拼接子表数据参数 formRef.value.formLoading = true try { if (formType === 'create') {