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