|
@ -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) |
|
|