Ben Lin
2024-06-26 af10c85c8f71ccdf2f60989a067804dd8b3aa667
src/views/tigerprojects/wms/wms_item/wms_item.data.ts
@@ -1,5 +1,4 @@
import { BasicColumn } from '/@/components/Table';
import { FormSchema } from '/@/components/Table';
import { BasicColumn, FormSchema } from '/@/components/Table';
import { optionsListApi } from '/@/api/tigerapi/wms/wms_item';
import { h } from 'vue';
import { Tag } from 'ant-design-vue';
@@ -10,45 +9,45 @@
    dataIndex: 'ITEM_CODE',
    width: 200,
    sorter: true,
    resizable:true
    resizable: true,
  },
  {
    title: '物料描述',
    dataIndex: 'ITEM_NAME',
    width: 200,
    sorter: true,
    resizable:true
    resizable: true,
  },
  {
    title: '条码',
    dataIndex: 'SN',
    width:300,
    width: 300,
    sorter: true,
    resizable:true
    resizable: true,
  },
  {
    title: '操作时间',
    dataIndex: 'UPDATE_TIME',
    resizable:true
    resizable: true,
  },
  {
    title: '延期天数',
    dataIndex: 'PostponeDays',
    width:150,
    width: 150,
    sorter: true,
    resizable:true
    resizable: true,
  },
  {
    title: '数量',
    dataIndex: 'QTY',
    sorter: true,
    resizable:true
    resizable: true,
  },
  {
    title: '储存状态',
    dataIndex: 'STATUS',
    width: 180,
    resizable:true,
    resizable: true,
    customRender: ({ record }) => {
      const status = record.STATUS;
      let text = '';
@@ -108,94 +107,95 @@
  {
    title: '仓库',
    dataIndex: 'WH_CODE',
    width:100,
    width: 100,
    sorter: true,
    resizable:true
    resizable: true,
  },
  {
    title: '储区',
    dataIndex: 'REGION_CODE',
    sorter: true,
    resizable:true
    resizable: true,
  },
  {
    title: '货架',
    dataIndex: 'SHELF_CODE',
    sorter: true,
    resizable:true
    resizable: true,
  },
  {
    title: '储位',
    dataIndex: 'LOCATION_CODE',
    sorter: true,
    resizable:true
    resizable: true,
  },
  {
    title: '单位',
    dataIndex: 'UNIT',
    resizable:true
    resizable: true,
  },
  {
    title: '生产日期',
    dataIndex: 'PROD_DATE',
    resizable:true
    resizable: true,
  },
  {
    title: '首次入库日期',
    dataIndex: 'FIRST_IN_DATE',
    resizable:true
    resizable: true,
  },
  {
    title: '业务编码',
    dataIndex: 'TRANS_CODE',
    resizable:true
    resizable: true,
  },
  {
    title: '单据号码',
    dataIndex: 'TRANS_NO',
    resizable:true
    resizable: true,
  },
  {
    title: '单据行号',
    dataIndex: 'TRANS_LINE',
    width:100,
    resizable:true
    width: 100,
    resizable: true,
  },
  {
    title: '供应商代码',
    dataIndex: 'SUPP_CODE',
    width:100,
    resizable:true
    width: 100,
    resizable: true,
  },
  {
    title: '供应商批次号',
    dataIndex: 'SUPP_LOTNO',
    resizable:true
    resizable: true,
  },
  {
    title: '批次号',
    dataIndex: 'LOTNO',
    resizable:true
    resizable: true,
  },
  {
    title: '箱号',
    dataIndex: 'CARTON_NO',
    resizable:true
    resizable: true,
  },
  {
    title: '栈板号',
    dataIndex: 'PALLET_NO',
    resizable:true
    resizable: true,
  },
  {
    title: '更新人',
    dataIndex: 'UPDATE_USER',
    resizable:true
  },{
    resizable: true,
  },
  {
    title: 'ID',
    dataIndex: 'ID',
    ifShow:false,
    resizable:true
    ifShow: false,
    resizable: true,
  },
];
@@ -206,7 +206,7 @@
    component: 'Input',
    colProps: { span: 8 },
  },
  {
    field: 'ITEM_CODE',
    label: '物料代码',
@@ -218,14 +218,14 @@
    label: '存储状态',
    component: 'ApiSelect',
    colProps: { span: 8 },
    defaultValue:40,
    defaultValue: 40,
    componentProps: {
      mode: 'multiple',
      api: optionsListApi,
      resultField: 'Data',
      labelField: 'Desc',
      valueField: 'Value',
    }
    },
  },
  {
    field: 'WH_CODE',
@@ -249,7 +249,7 @@
    field: 'UPDATE_TIME',
    label: '操作时间',
    component: 'RangePicker',
    ifShow:false,
    ifShow: false,
  },
];
// 延期天数
@@ -268,5 +268,4 @@
      },
    ],
  },
];