Browse Source

YT-515WMS 创建采购收货申请时,应该校验数量大于0,才可以创建成功

intex_online20241111
张立 3 months ago
parent
commit
9b3e05b021
  1. 2
      src/views/wms/purchasereceiptManage/purchasereceipt/purchasereceiptRequestMain/index.vue

2
src/views/wms/purchasereceiptManage/purchasereceipt/purchasereceiptRequestMain/index.vue

@ -840,7 +840,7 @@ const submitForm = async (formType, submitData) => {
}) })
let alalQty = 0 let alalQty = 0
tableData.value.forEach(item => { tableData.value.forEach(item => {
alalQty += parseFloat(item.qty) alalQty += item.qty ? parseFloat(item.qty) : 0
}) })
if (alalQty == 0) { if (alalQty == 0) {
message.error('收货总数量不可以为0') message.error('收货总数量不可以为0')

Loading…
Cancel
Save