2 天以前 46624ce480a3c14da21f39cc4ad5f7eecea2bb1e
src/views/mes/pro/bagCode/data.ts
@@ -2,8 +2,12 @@
import type { VxeTableGridOptions } from '#/adapter/vxe-table';
import type { MesProBagCodeApi } from '#/api/mes/pro/bagCode';
import { markRaw } from 'vue';
import { DICT_TYPE } from '@vben/constants';
import { getDictOptions } from '@vben/hooks';
import { MdmItemSelect } from '#/views/basicData/mdm/components';
import { getRangePickerDefaultProps } from '#/utils';
@@ -35,6 +39,14 @@
      componentProps: {
        allowClear: true,
        placeholder: '请输入生成组编号',
      },
    },
    {
      fieldName: 'itemId',
      label: '品种',
      component: markRaw(MdmItemSelect),
      componentProps: {
        placeholder: '请选择品种(产品品种)',
      },
    },
    {
@@ -85,6 +97,16 @@
      minWidth: 190,
    },
    {
      field: 'itemCode',
      title: '品种编码',
      width: 120,
    },
    {
      field: 'itemName',
      title: '品种名称',
      width: 140,
    },
    {
      field: 'lineCode',
      title: '产线编码',
      width: 100,
@@ -115,6 +137,17 @@
      formatter: 'formatDateTime',
    },
    {
      field: 'cancelTime',
      title: '作废时间',
      width: 170,
      formatter: 'formatDateTime',
    },
    {
      field: 'cancelReason',
      title: '作废原因',
      minWidth: 160,
    },
    {
      field: 'createTime',
      title: '创建时间',
      width: 170,
@@ -122,7 +155,7 @@
    },
    {
      title: '操作',
      width: 200,
      width: 350,
      fixed: 'right',
      slots: { default: 'actions' },
    },