liu
2 天以前 74318c7f51a59e3003c1f1d9c8ee777a925de74a
fix(mes): 委外检测/试验单检测对象改用 MdItemSelect 物料选择组件

原来检测对象是普通输入框,手填数字被当作物料ID存库导致列表
反查不到名称。改为物料选择弹窗组件,值即有效物料ID、界面显示名称。

Co-Authored-By: Claude <noreply@anthropic.com>
已修改1个文件
7 ■■■■ 文件已修改
src/views/mes/qc/outsourcetest/data.ts 7 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/mes/qc/outsourcetest/data.ts
@@ -1,10 +1,13 @@
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';
@@ -61,9 +64,9 @@
    {
      fieldName: 'itemId',
      label: '检测对象',
      component: 'Input',
      component: markRaw(MdItemSelect),
      componentProps: {
        placeholder: '检测对象(物料/设备)',
        placeholder: '请选择检测对象(物料)',
        disabled: isReadonly,
      },
    },