xiaoyi
5 天以前 a4025834e2304dc57f6e98d58feeb9416bd90609
src/views/mes/process-design/process/data.ts
@@ -9,8 +9,8 @@
  CommonStatusEnum,
  DICT_TYPE,
  MesAutoCodeRuleCode,
} from '../../../../packages/constants/src';
import { getDictOptions } from '../../../../packages/effects/hooks/src';
} from '@vben/constants';
import { getDictOptions } from '@vben/hooks';
import { Button } from 'ant-design-vue';
@@ -64,6 +64,16 @@
        placeholder: '请输入工序名称',
      },
      rules: z.string().min(1, '工序名称不能为空').max(100),
    },
    {
      fieldName: 'type',
      label: '电力工艺分类',
      component: 'Select',
      componentProps: {
        allowClear: true,
        options: getDictOptions(DICT_TYPE.MES_PRO_PROCESS_TYPE, 'number'),
        placeholder: '请选择电力工艺分类',
      },
    },
    {
      fieldName: 'status',
@@ -148,6 +158,15 @@
    },
    { field: 'name', title: '工序名称', minWidth: 180 },
    {
      field: 'type',
      title: '电力工艺分类',
      width: 120,
      cellRender: {
        name: 'CellDict',
        props: { type: DICT_TYPE.MES_PRO_PROCESS_TYPE },
      },
    },
    {
      field: 'status',
      title: '状态',
      width: 100,