|
|
@ -292,6 +292,12 @@ const handleDeleteTable = (item, index) => { |
|
|
|
|
|
|
|
// 主子数据 提交 |
|
|
|
const submitForm = async (formType, data) => { |
|
|
|
const emptyFlag = validateDetailEmpty(tableData.value); |
|
|
|
if(!emptyFlag){ |
|
|
|
message.alertWarning('明细不能为空') |
|
|
|
basicFormRef.value.formLoading = false |
|
|
|
return |
|
|
|
} |
|
|
|
if(!validateNotRepetition(tableData.value)){ |
|
|
|
message.alertWarning('选定集字典及字典项不能重复') |
|
|
|
basicFormRef.value.formLoading = false |
|
|
@ -327,7 +333,13 @@ const submitForm = async (formType, data) => { |
|
|
|
basicFormRef.value.formLoading = false |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
const validateDetailEmpty = (data) => { |
|
|
|
const codes = data.map(item => item.stage); |
|
|
|
if(codes.length == 0){ |
|
|
|
return false; |
|
|
|
} |
|
|
|
return true; |
|
|
|
} |
|
|
|
const updateSelections = async (masterId,row) => { |
|
|
|
let param = { masterId: masterId }; |
|
|
|
SelectedProjectApi.getSelectedProjectNoPage(param).then(res => { |
|
|
|