|
|
@ -316,6 +316,11 @@ const handleDeleteTable = (item, index) => { |
|
|
|
// 主子数据 提交 |
|
|
|
const submitForm = async (formType, data) => { |
|
|
|
data.subList = tableData.value // 拼接子表数据参数 |
|
|
|
if(tableData.value.find(item => (item.qty <= 0))) { |
|
|
|
message.warning('数量必须大于0') |
|
|
|
formRef.value.formLoading = false |
|
|
|
return |
|
|
|
} |
|
|
|
try { |
|
|
|
if (formType === 'create') { |
|
|
|
await RepleinshRequestMainApi.createRepleinshRequestMain(data) |
|
|
|