Browse Source

检验

hella_online_20240829
wangyufei 4 months ago
parent
commit
f072712276
  1. 4
      src/components/BasicForm/src/BasicForm.vue

4
src/components/BasicForm/src/BasicForm.vue

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

Loading…
Cancel
Save