fix(mes): 委外检测/试验单检测对象改用 MdItemSelect 物料选择组件
原来检测对象是普通输入框,手填数字被当作物料ID存库导致列表
反查不到名称。改为物料选择弹窗组件,值即有效物料ID、界面显示名称。
Co-Authored-By: Claude <noreply@anthropic.com>
| | |
| | | import type { VbenFormSchema } from '#/adapter/form'; |
| | | import type { VxeTableGridOptions } from '#/adapter/vxe-table'; |
| | | |
| | | import { markRaw } from 'vue'; |
| | | |
| | | import { DICT_TYPE } from '@vben/constants'; |
| | | import { getDictOptions } from '@vben/hooks'; |
| | | |
| | | import { getRangePickerDefaultProps } from '#/utils'; |
| | | import { MdItemSelect } from '#/views/mes/md/item/components'; |
| | | |
| | | /** 表单类型 */ |
| | | export type FormType = 'create' | 'detail' | 'edit'; |
| | |
| | | { |
| | | fieldName: 'itemId', |
| | | label: '检测对象', |
| | | component: 'Input', |
| | | component: markRaw(MdItemSelect), |
| | | componentProps: { |
| | | placeholder: '检测对象(物料/设备)', |
| | | placeholder: '请选择检测对象(物料)', |
| | | disabled: isReadonly, |
| | | }, |
| | | }, |