Browse Source

检验记录修改使用决策之后发布问题,海拉也提过这个问题代码

hella_online_20240828
zhang_li 3 months ago
parent
commit
1f82350938
  1. 7
      src/views/qms/inspectionRecord/index.vue
  2. 2
      src/views/qms/inspectionRecord/useAddForm.vue

7
src/views/qms/inspectionRecord/index.vue

@ -281,13 +281,13 @@ const buttonTableClick = async (val, row) => {
//
// 1使
if (row.estimateCode == 1) {
InspectionRecordMain.allSchemas.formSchema.forEach((itemColumn) => {
InspectionRecordUser.allSchemas.formSchema.forEach((itemColumn) => {
if (itemColumn.field == 'useDecision') {
itemColumn.componentProps.options = useDecisionList?.filter((item) => item.value == 1)
}
})
} else if (row.estimateCode == 2) {
InspectionRecordMain.allSchemas.formSchema.forEach((itemColumn) => {
InspectionRecordUser.allSchemas.formSchema.forEach((itemColumn) => {
if (itemColumn.field == 'useDecision') {
itemColumn.componentProps.options = useDecisionList?.filter((item) => item.value != 1)
}
@ -430,7 +430,10 @@ const submitForm = async (formType, data) => {
message.success(t('common.updateSuccess'))
}
formRef.value.dialogVisible = false
if (!data.isPublished) {
handleOrderPub(rowData.value)
}
//
getList()
} finally {

2
src/views/qms/inspectionRecord/useAddForm.vue

@ -140,7 +140,7 @@ const open = async (type: string, row?: any, masterParmas?: any, titleName?: any
if(row.estimateCode == 1){
data.value.useDecision = '1'
}else{
data.value.useDecision =''
data.value.useDecision =row.useDecision?row.useDecision:''
}
// ==
if(data.value.useDecision == 1){

Loading…
Cancel
Save