Browse Source

Merge branch 'master_hella' of http://dev.ccwin-in.com:3000/sfms3.0/sfms3.0-ui into master_hella

hella_online_20240829
wangyufei 2 months ago
parent
commit
3405067705
  1. 6
      src/views/qms/inspectionRecord/index.vue
  2. 2
      src/views/qms/inspectionRecord/useAddForm.vue

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

@ -281,13 +281,13 @@ const buttonTableClick = async (val, row) => {
//
// 1使
if (row.estimateCode == 1) {
InspectionRecordUser.allSchemas.formSchema.forEach((itemColumn) => {
InspectionRecordMain.allSchemas.formSchema.forEach((itemColumn) => {
if (itemColumn.field == 'useDecision') {
itemColumn.componentProps.options = useDecisionList?.filter((item) => item.value == 1)
}
})
} else if (row.estimateCode == 2) {
InspectionRecordUser.allSchemas.formSchema.forEach((itemColumn) => {
InspectionRecordMain.allSchemas.formSchema.forEach((itemColumn) => {
if (itemColumn.field == 'useDecision') {
itemColumn.componentProps.options = useDecisionList?.filter((item) => item.value != 1)
}
@ -430,9 +430,7 @@ 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 =row.useDecision||''
data.value.useDecision =''
}
// ==
if(data.value.useDecision == 1){

Loading…
Cancel
Save