Ben Lin
2024-05-27 62f0e403c98fb76d39b8f1150d2bf2f026423b85
src/views/tigerprojects/wms/inventory/inventory.data.ts
@@ -1,13 +1,13 @@
import { BasicColumn } from '/@/components/Table';
import { FormSchema } from '/@/components/Table';
import { BasicColumn, FormSchema } from '/@/components/Table';
import { optionsListApi, optionsListApi2, optionsListApi3 } from '/@/api/tigerapi/wms/inventory';
import { h, unref } from 'vue';
import { Tag, Tooltip } from 'ant-design-vue';
import { useI18n } from '/@/hooks/web/useI18n';
import { useLocale } from '/@/locales/useLocale';
const { getLocale } = useLocale();
const { t } = useI18n('WMS.Count');
//盘点主界面
//盘点主界面
export const columns: BasicColumn[] = [
  {
    title: t('单据编码'),
@@ -43,8 +43,8 @@
    width: 180,
    customRender: ({ record }) => {
      const status = record.STATUS;
      var text = '';
      var color = '';
      let text = '';
      let color = '';
      switch (status) {
        case 0:
          text = '新创建';
@@ -80,8 +80,8 @@
    width: 180,
    customRender: ({ record }) => {
      const status = record.COUNT_TYPE;
      var text = '';
      var color = '';
      let text = '';
      let color = '';
      switch (status) {
        case 0:
          text = '年盘';
@@ -138,7 +138,7 @@
    label: t('盘点单号'),
    colProps: { span: 8 },
    component: 'Input',
    dynamicDisabled: true
    dynamicDisabled: true,
  },
  {
    field: 'COUNT_TYPE',
@@ -161,7 +161,7 @@
    label: t('镜像时间'),
    colProps: { span: 8 },
    component: 'Input',
    dynamicDisabled: true
    dynamicDisabled: true,
  },
  {
    field: 'COUNT_MODE',
@@ -188,10 +188,10 @@
  {
    field: '0',
    component: 'Input',
    label: t(' '),
    label: t(''),
    colSlot: 'add',
    colProps: {
      span: 8,
      span: 4,
    },
  },
  {
@@ -200,7 +200,7 @@
    colProps: { span: 8 },
    component: 'Input',
    dynamicDisabled: true,
    show: false
    show: false,
  },
  {
    field: 'WH_IDS',
@@ -208,7 +208,7 @@
    colProps: { span: 8 },
    component: 'Input',
    dynamicDisabled: true,
    show: false
    show: false,
  },
  {
    field: 'REGION_IDS',
@@ -216,7 +216,7 @@
    colProps: { span: 8 },
    component: 'Input',
    dynamicDisabled: true,
    show: false
    show: false,
  },
  {
    field: 'SHELF_IDS',
@@ -224,7 +224,7 @@
    colProps: { span: 8 },
    component: 'Input',
    dynamicDisabled: true,
    show: false
    show: false,
  },
  {
    field: 'LOCATION_IDS',
@@ -232,7 +232,7 @@
    colProps: { span: 8 },
    component: 'Input',
    dynamicDisabled: true,
    show: false
    show: false,
  },
  {
    field: 'ORG_CODE',
@@ -240,7 +240,7 @@
    colProps: { span: 8 },
    component: 'Input',
    dynamicDisabled: true,
    show: false
    show: false,
  },
  {
    field: 'STATUS',
@@ -248,7 +248,7 @@
    colProps: { span: 8 },
    component: 'Input',
    dynamicDisabled: true,
    show: false
    show: false,
  },
  {
    field: 'CREATE_USER',
@@ -256,7 +256,7 @@
    colProps: { span: 8 },
    component: 'Input',
    dynamicDisabled: true,
    show: false
    show: false,
  },
  {
    field: 'CREATE_TIME',
@@ -264,7 +264,7 @@
    colProps: { span: 8 },
    component: 'Input',
    dynamicDisabled: true,
    show: false
    show: false,
  },
  {
    field: 'AUTH_ORE',
@@ -272,7 +272,7 @@
    colProps: { span: 8 },
    component: 'Input',
    dynamicDisabled: true,
    show: false
    show: false,
  },
  {
    field: 'AUTH_PROD',
@@ -280,7 +280,7 @@
    colProps: { span: 8 },
    component: 'Input',
    dynamicDisabled: true,
    show: false
    show: false,
  },
  {
    field: 'AUTH_WH',
@@ -288,7 +288,7 @@
    colProps: { span: 8 },
    component: 'Input',
    dynamicDisabled: true,
    show: false
    show: false,
  },
  {
    field: 'CREATE_USER',
@@ -296,14 +296,15 @@
    colProps: { span: 8 },
    component: 'Input',
    dynamicDisabled: true,
    show: false
  }, {
    show: false,
  },
  {
    field: 'UPDATE_USER',
    label: t('UPDATE_USER'),
    colProps: { span: 8 },
    component: 'Input',
    dynamicDisabled: true,
    show: false
    show: false,
  },
  {
    field: 'BEGIN_DATE',
@@ -311,7 +312,7 @@
    colProps: { span: 8 },
    component: 'Input',
    dynamicDisabled: true,
    show: false
    show: false,
  },
  {
    field: 'END_DATE',
@@ -319,7 +320,7 @@
    colProps: { span: 8 },
    component: 'Input',
    dynamicDisabled: true,
    show: false
    show: false,
  },
];
//盘点管理中的盘点明细
@@ -508,8 +509,8 @@
    width: 180,
    customRender: ({ record }) => {
      const status = record.STATUS;
      var text = '';
      var color = '';
      let text = '';
      let color = '';
      switch (status) {
        case 0:
          text = '待盘点';
@@ -533,8 +534,8 @@
    width: 180,
    customRender: ({ record }) => {
      const status = record.RESULT;
      var text = '';
      var color = '';
      let text = '';
      let color = '';
      switch (status) {
        case 0:
          text = '无结果';
@@ -579,7 +580,7 @@
    sorter: true,
    width: 180,
  },
]
];
//储位明细
export const LdtlColumns: BasicColumn[] = [
  {
@@ -597,8 +598,8 @@
    width: 180,
    customRender: ({ record }) => {
      const status = record.STATUS;
      var text = '';
      var color = '';
      let text = '';
      let color = '';
      switch (status) {
        case 0:
          text = '待盘点';
@@ -622,8 +623,8 @@
    width: 180,
    customRender: ({ record }) => {
      const status = record.RESULT;
      var text = '';
      var color = '';
      let text = '';
      let color = '';
      switch (status) {
        case 0:
          text = '未核实';
@@ -671,7 +672,7 @@
    sorter: true,
    width: 180,
  },
]
];
//汇总明细
export const SumColumns: BasicColumn[] = [
  {
@@ -703,8 +704,8 @@
    width: 180,
    customRender: ({ record }) => {
      const status = record.RESULT;
      var text = '';
      var color = '';
      let text = '';
      let color = '';
      switch (status) {
        case 0:
          text = '无结果';
@@ -784,5 +785,4 @@
    sorter: true,
    width: 180,
  },
]
];