diff --git a/src/views/qms/counter/counter.data.ts b/src/views/qms/counter/counter.data.ts index 2246ff6b3..de708bee0 100644 --- a/src/views/qms/counter/counter.data.ts +++ b/src/views/qms/counter/counter.data.ts @@ -173,7 +173,6 @@ export const Counter = useCrudSchemas( sort: 'custom', dictType: DICT_TYPE.TRUE_FALSE, isSearch: true, - isForm: false, dictClass: 'string', // 默认都是字符串类型其他暂不考虑 form: { component: 'Switch', diff --git a/src/views/qms/counter/index.vue b/src/views/qms/counter/index.vue index d71c9c1c8..9a9a04c9e 100644 --- a/src/views/qms/counter/index.vue +++ b/src/views/qms/counter/index.vue @@ -151,11 +151,13 @@ const buttonTableClick = async (val, row) => { const basicFormRef = ref() const openForm = async (type: string, row?: any) => { + const obj = await CounterApi.getNextStage(row.id) for (const item of Counter.allSchemas.formSchema) { if (item.field === 'nextStage') { - item.componentProps.options = await CounterApi.getNextStage(row.id) + item.componentProps.options = obj.nextStageList } } + row.available = obj.available basicFormRef.value.open(type, row) }