From fdd158306bf6dc3584f5110a385323f4a8dfb463 Mon Sep 17 00:00:00 2001
From: 云 <2163098428@qq.com>
Date: 星期三, 02 九月 2026 14:25:10 +0800
Subject: [PATCH] feat(wms): 重构仓库管理系统并优化图表显示

---
 src/views/wls/warehouse/data.ts |   39 ++++++++++++++++++++++++++++++++++++++-
 1 files changed, 38 insertions(+), 1 deletions(-)

diff --git a/src/views/wls/warehouse/data.ts b/src/views/wls/warehouse/data.ts
index 6eaf201..387ab05 100644
--- a/src/views/wls/warehouse/data.ts
+++ b/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,

--
Gitblit v1.9.3