2 天以前 46624ce480a3c14da21f39cc4ad5f7eecea2bb1e
src/views/basicData/mdm/components/data.ts
@@ -5,8 +5,6 @@
import { DICT_TYPE } from '@vben/constants';
import { getDictOptions } from '@vben/hooks';
import { getItemTypeSimpleList } from '#/api/mes/md/item/type';
/** 物料选择弹窗搜索表单 */
export function useMdmItemSelectGridFormSchema(): VbenFormSchema[] {
  return [
@@ -26,21 +24,6 @@
      componentProps: {
        allowClear: true,
        placeholder: '请输入品种名称',
      },
    },
    {
      fieldName: 'categoryId',
      label: '品种分类',
      component: 'ApiSelect',
      componentProps: {
        placeholder: '请选择品种分类',
        allowClear: true,
        api: async () => {
          const res = await getItemTypeSimpleList();
          return res || [];
        },
        labelField: 'name',
        valueField: 'id',
      },
    },
    {
@@ -78,13 +61,6 @@
      title: '规格型号',
      minWidth: 150,
      align: 'left',
    },
    {
      field: 'categoryId',
      title: '品种分类',
      minWidth: 120,
      align: 'center',
      slots: { default: 'categoryId' },
    },
    {
      field: 'unitMeasureName',