8 天以前 fdd158306bf6dc3584f5110a385323f4a8dfb463
src/views/wls/warehouse/data.ts
@@ -5,7 +5,7 @@
import { h } from 'vue';
import { DICT_TYPE, MesAutoCodeRuleCode } from '@vben/constants';
import { DICT_TYPE, MesAutoCodeRuleCode, MesWmWarehouseTypeEnum } from '@vben/constants';
import { Button } from 'ant-design-vue';
@@ -101,6 +101,19 @@
      },
    },
    {
      fieldName: 'type',
      label: '仓库类型',
      component: 'Select',
      componentProps: {
        placeholder: '请选择仓库类型',
        options: [
          { label: '暂存库', value: MesWmWarehouseTypeEnum.TEMP },
          { label: '合格库', value: MesWmWarehouseTypeEnum.QUALIFIED },
        ],
      },
      rules: 'required',
    },
    {
      fieldName: 'frozen',
      label: '是否冻结',
      component: 'Switch',
@@ -142,6 +155,19 @@
      componentProps: {
        allowClear: true,
        placeholder: '请输入仓库名称',
      },
    },
    {
      fieldName: 'type',
      label: '仓库类型',
      component: 'Select',
      componentProps: {
        allowClear: true,
        options: [
          { label: '暂存库', value: MesWmWarehouseTypeEnum.TEMP },
          { label: '合格库', value: MesWmWarehouseTypeEnum.QUALIFIED },
        ],
        placeholder: '请选择仓库类型',
      },
    },
    {
@@ -192,6 +218,17 @@
        userList.find((user) => user.id === cellValue)?.nickname ?? '',
    },
    {
      field: 'type',
      title: '仓库类型',
      width: 100,
      formatter: ({ cellValue }) =>
        cellValue === MesWmWarehouseTypeEnum.TEMP
          ? '暂存库'
          : cellValue === MesWmWarehouseTypeEnum.QUALIFIED
            ? '合格库'
            : '',
    },
    {
      field: 'frozen',
      title: '冻结',
      width: 90,