| | |
| | | |
| | | 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'; |
| | | |
| | |
| | | }, |
| | | }, |
| | | { |
| | | fieldName: 'type', |
| | | label: '仓库类型', |
| | | component: 'Select', |
| | | componentProps: { |
| | | placeholder: '请选择仓库类型', |
| | | options: [ |
| | | { label: '暂存库', value: MesWmWarehouseTypeEnum.TEMP }, |
| | | { label: '合格库', value: MesWmWarehouseTypeEnum.QUALIFIED }, |
| | | ], |
| | | }, |
| | | rules: 'required', |
| | | }, |
| | | { |
| | | fieldName: 'frozen', |
| | | label: '是否冻结', |
| | | component: 'Switch', |
| | |
| | | componentProps: { |
| | | allowClear: true, |
| | | placeholder: '请输入仓库名称', |
| | | }, |
| | | }, |
| | | { |
| | | fieldName: 'type', |
| | | label: '仓库类型', |
| | | component: 'Select', |
| | | componentProps: { |
| | | allowClear: true, |
| | | options: [ |
| | | { label: '暂存库', value: MesWmWarehouseTypeEnum.TEMP }, |
| | | { label: '合格库', value: MesWmWarehouseTypeEnum.QUALIFIED }, |
| | | ], |
| | | placeholder: '请选择仓库类型', |
| | | }, |
| | | }, |
| | | { |
| | |
| | | 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, |