Browse Source

修改检验记录的前端BUG

hella_online_20240803
parent
commit
c286713292
  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使 // 1使
if (row.estimateCode == 1) { if (row.estimateCode == 1) {
InspectionRecordMain.allSchemas.formSchema.forEach((itemColumn) => { InspectionRecordUser.allSchemas.formSchema.forEach((itemColumn) => {
if (itemColumn.field == 'useDecision') { if (itemColumn.field == 'useDecision') {
itemColumn.componentProps.options = useDecisionList?.filter((item) => item.value == 1) itemColumn.componentProps.options = useDecisionList?.filter((item) => item.value == 1)
} }
}) })
} else if (row.estimateCode == 2) { } else if (row.estimateCode == 2) {
InspectionRecordMain.allSchemas.formSchema.forEach((itemColumn) => { InspectionRecordUser.allSchemas.formSchema.forEach((itemColumn) => {
if (itemColumn.field == 'useDecision') { if (itemColumn.field == 'useDecision') {
itemColumn.componentProps.options = useDecisionList?.filter((item) => item.value != 1) itemColumn.componentProps.options = useDecisionList?.filter((item) => item.value != 1)
} }
@ -338,7 +338,7 @@ const basicFormRef = ref()
/** 使用决策操作操作 */ /** 使用决策操作操作 */
const formRef = ref() const formRef = ref()
const rowData = ref() const rowData = ref()
const openUseForm = async (type: string, row?: number) => { const openUseForm = async (type: string, row?: any) => {
tableData.value = [] // tableData.value = [] //
rowData.value = row rowData.value = row
formRef.value.open(type, row) formRef.value.open(type, row)

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){ if(row.estimateCode == 1){
data.value.useDecision = '1' data.value.useDecision = '1'
}else{ }else{
data.value.useDecision ='' data.value.useDecision =row.useDecision||''
} }
// == // ==
if(data.value.useDecision == 1){ if(data.value.useDecision == 1){

Loading…
Cancel
Save