|
@ -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) |
|
|