| | |
| | | } |
| | | |
| | | /** 生产任务新增/修改的表单 */ |
| | | export function useTaskFormSchema(formApi?: VbenFormApi, workOrderQuantity?: Ref<number | undefined>): VbenFormSchema[] { |
| | | export function useTaskFormSchema(formApi?: VbenFormApi, workOrderQuantity?: Ref<number | undefined>, feedbackRole?: Ref<string | undefined>): VbenFormSchema[] { |
| | | return [ |
| | | { |
| | | fieldName: 'workstationId', |
| | |
| | | componentProps: { |
| | | placeholder: '请选择报工人', |
| | | api: getSimpleUserListByRoleCode, |
| | | params: { code: 'production_submit_work' }, |
| | | params: { code: feedbackRole?.value || 'production_submit_work' }, |
| | | labelField: 'nickname', |
| | | valueField: 'id', |
| | | mode: 'multiple', |