|
@ -615,12 +615,14 @@ const submitForm = async () => { |
|
|
formLoading.value = true |
|
|
formLoading.value = true |
|
|
if (formType.value == 'create') { |
|
|
if (formType.value == 'create') { |
|
|
const validateForm = await tableFormRef.value.validateForm() |
|
|
const validateForm = await tableFormRef.value.validateForm() |
|
|
if (props.tableFormDataLength) { |
|
|
if (!validateForm && props.tableFormDataLength) { |
|
|
if (props.tableData.length == 0) { |
|
|
if (props.tableData.length == 0) { |
|
|
message.warning('请填写明细信息!') |
|
|
message.warning('请填写明细信息!') |
|
|
formLoading.value = false |
|
|
formLoading.value = false |
|
|
return |
|
|
return |
|
|
} |
|
|
} |
|
|
|
|
|
formLoading.value = false |
|
|
|
|
|
return |
|
|
} |
|
|
} |
|
|
// 主子表——提交请求 |
|
|
// 主子表——提交请求 |
|
|
try { |
|
|
try { |
|
|