Browse Source

YT-477要货计划明细中物料数量可以为0

intex_online20241111
zhang_li 1 month ago
parent
commit
9945a3e638
  1. 14
      src/views/wms/purchasereceiptManage/supplierdeliver/supplierdeliverRequestMain/supplierdeliverBasicForm.vue

14
src/views/wms/purchasereceiptManage/supplierdeliver/supplierdeliverRequestMain/supplierdeliverBasicForm.vue

@ -338,7 +338,13 @@ const submitForm = async (formType, submitData) => {
// if(!flag){ // if(!flag){
// return // return
// } // }
data.subList = tableData.value // // data.subList = tableData.value //
data.subList = []
for (let item of tableData.value) {
if(item.qty>0){
data.subList.push(item) //
}
}
let isHave = data.subList.some((item) => { let isHave = data.subList.some((item) => {
console.log("CCCCC",item.expireDate) console.log("CCCCC",item.expireDate)
if(item.expireDate != null){ if(item.expireDate != null){
@ -394,9 +400,9 @@ const submitForm = async (formType, submitData) => {
return; return;
} }
} }
if(tableData.value.length <= 0){ if(data.subList.length == 0){
message.warning(`子表明细不能为空!`) message.error(t('ts.子列表数量不能空'))
return; return
} }
formRef.value.formLoading = true formRef.value.formLoading = true
await SupplierdeliverRequestMainApi.createSupplierdeliverRequestMain(data) await SupplierdeliverRequestMainApi.createSupplierdeliverRequestMain(data)

Loading…
Cancel
Save