Browse Source

HL-6443QMS正式环境,物料检验方案重新选择动态检验规则后,增加提示。提示内容为:请在物料检验计数器管理中,确认对应物料的检验阶段

hella_online_20241128
王宇飞 4 months ago
parent
commit
bfaa2d8f6c
  1. 12
      src/views/qms/inspectionScheme/index.vue

12
src/views/qms/inspectionScheme/index.vue

@ -197,10 +197,16 @@ const buttonTableClick = async (val, row) => {
/** 添加/修改操作 */
const basicFormRef = ref()
const updateRow = ref()
const openForm = (type: string, row?: any) => {
// if(type=='add'){//
// InspectionTemplateMain.allSchemas.formSchema.find(item => item.field == 'programmeTemplateCode').componentProps.disabled = true//
// }
if('update' == type){
updateRow.value = row
}else{
updateRow.value = null
}
basicFormRef.value.open(type, row)
}
@ -240,6 +246,12 @@ const submitForm = async (formType, data) => {
await InspectionSchemeApi.InspectionSchemeCreat(data1)
message.success(t('common.createSuccess'))
} else {
if('update' == formType&&updateRow.value&&updateRow.value.dynamicUpdateCode!=data1.dynamicUpdateCode){
await ElMessageBox.alert(
'请在物料检验计数器管理中,确认对应物料的检验阶段',
'重要提示'
)
}
await InspectionSchemeApi.InspectionSchemeUpdate(data1)
message.success(t('common.updateSuccess'))
}

Loading…
Cancel
Save