|
@ -151,11 +151,13 @@ const buttonTableClick = async (val, row) => { |
|
|
const basicFormRef = ref() |
|
|
const basicFormRef = ref() |
|
|
|
|
|
|
|
|
const openForm = async (type: string, row?: any) => { |
|
|
const openForm = async (type: string, row?: any) => { |
|
|
|
|
|
const obj = await CounterApi.getNextStage(row.id) |
|
|
for (const item of Counter.allSchemas.formSchema) { |
|
|
for (const item of Counter.allSchemas.formSchema) { |
|
|
if (item.field === 'nextStage') { |
|
|
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) |
|
|
basicFormRef.value.open(type, row) |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|