Browse Source

修复bug

hella_online_20240829
zhaoyiran 2 months ago
parent
commit
b8d3f45321
  1. 1
      src/views/qms/counter/counter.data.ts
  2. 4
      src/views/qms/counter/index.vue

1
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',

4
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)
}

Loading…
Cancel
Save