云
7 小时以前 fb4db4ae9b6a7f113ba049f6789e6916c0dcc276
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';
@@ -12,12 +16,16 @@
  return [
    {
      fieldName: 'code',
      label: '袋码',
      label: '追溯码',
      component: 'Input',
      componentProps: {
        allowClear: true,
        placeholder: '请输入袋码(二维码内容)',
        placeholder: '请输入追溯码',
      },
    },
    {
      fieldName: 'businessCode', label: '业务码', component: 'Input',
      componentProps: { allowClear: true, placeholder: '请输入出入库业务码' },
    },
    {
      fieldName: 'batchCode',
@@ -35,6 +43,14 @@
      componentProps: {
        allowClear: true,
        placeholder: '请输入生成组编号',
      },
    },
    {
      fieldName: 'itemId',
      label: '品种',
      component: markRaw(MdmItemSelect),
      componentProps: {
        placeholder: '请选择品种(产品品种)',
      },
    },
    {
@@ -65,10 +81,11 @@
    { type: 'checkbox', width: 50 },
    {
      field: 'code',
      title: '袋码(二维码内容)',
      title: '追溯码',
      fixed: 'left',
      minWidth: 220,
    },
    { field: 'businessCode', title: '业务码(出入库)', minWidth: 210 },
    {
      field: 'bagNo',
      title: '袋序号',
@@ -85,6 +102,16 @@
      minWidth: 190,
    },
    {
      field: 'itemCode',
      title: '品种编码',
      width: 120,
    },
    {
      field: 'itemName',
      title: '品种名称',
      width: 140,
    },
    {
      field: 'lineCode',
      title: '产线编码',
      width: 100,
@@ -99,6 +126,7 @@
      title: '绑定托盘码',
      minWidth: 190,
    },
    { field: 'inboundTime', title: '入库状态', width: 100, formatter: ({ cellValue }) => cellValue ? '已入库' : '未入库' },
    {
      field: 'status',
      title: '袋码状态',
@@ -115,6 +143,17 @@
      formatter: 'formatDateTime',
    },
    {
      field: 'cancelTime',
      title: '作废时间',
      width: 170,
      formatter: 'formatDateTime',
    },
    {
      field: 'cancelReason',
      title: '作废原因',
      minWidth: 160,
    },
    {
      field: 'createTime',
      title: '创建时间',
      width: 170,
@@ -122,7 +161,7 @@
    },
    {
      title: '操作',
      width: 180,
      width: 350,
      fixed: 'right',
      slots: { default: 'actions' },
    },