Browse Source

修改bug

master_hella_20240701
zhaoyiran 7 months ago
parent
commit
8a916b913e
  1. 14
      src/views/qms/basicDataManage/selectedSet/index.vue

14
src/views/qms/basicDataManage/selectedSet/index.vue

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

Loading…
Cancel
Save