From ee7ac8df8bce38add1f75baf876b49de94b9e00a Mon Sep 17 00:00:00 2001
From: liu <2021943741@qq.com>
Date: 星期五, 16 十月 2026 17:58:33 +0800
Subject: [PATCH] feat(mes): 赋码管理绑定托盘支持未录入批次的袋码

---
 src/views/wls/materialstock/data.ts |   50 ++++++++++++++++++++++++++++++++++++++++----------
 1 files changed, 40 insertions(+), 10 deletions(-)

diff --git a/src/views/wls/materialstock/data.ts b/src/views/wls/materialstock/data.ts
index 8cc4eb3..aacee75 100644
--- a/src/views/wls/materialstock/data.ts
+++ b/src/views/wls/materialstock/data.ts
@@ -62,6 +62,20 @@
       },
     },
     {
+      fieldName: 'stockState',
+      label: '搴撳瓨鐘舵��',
+      component: 'Select',
+      componentProps: {
+        allowClear: true,
+        options: [
+          { label: '鏆傚瓨搴擄紙寰呰川妫�锛�', value: 10 },
+          { label: '鍚堟牸搴擄紙姝e紡搴撳瓨锛�', value: 20 },
+          { label: '宸插嚭搴擄紙閿�鍞墸鍑忥級', value: 30 },
+        ],
+        placeholder: '璇烽�夋嫨搴撳瓨鐘舵��',
+      },
+    },
+    {
       fieldName: 'frozen',
       label: '鏄惁鍐荤粨',
       component: 'Select',
@@ -101,6 +115,21 @@
       field: 'specification',
       title: '瑙勬牸鍨嬪彿',
       minWidth: 120,
+    },
+    {
+      field: 'stockState',
+      title: '搴撳瓨鐘舵��',
+      width: 150,
+      cellRender: {
+        name: 'CellTag',
+        props: {
+          options: [
+            { label: '鏆傚瓨搴�', value: 10, color: 'orange' },
+            { label: '鍚堟牸搴�', value: 20, color: 'green' },
+            { label: '宸插嚭搴�', value: 30, color: 'default' },
+          ],
+        },
+      },
     },
     {
       field: 'quantity',
@@ -154,6 +183,11 @@
       slots: { default: 'batchCode' },
     },
     {
+      field: 'bagCount',
+      title: '琚嬬爜鏁�',
+      width: 90,
+    },
+    {
       field: 'warehouseName',
       title: '浠撳簱',
       minWidth: 100,
@@ -190,16 +224,12 @@
         },
       },
     },
-    ...(onMove
-      ? [
-          {
-            title: '鎿嶄綔',
-            width: 80,
-            fixed: 'right' as const,
-            slots: { default: 'actions' } as const,
-          },
-        ]
-      : []),
+    {
+      title: '鎿嶄綔',
+      width: onMove ? 150 : 90,
+      fixed: 'right' as const,
+      slots: { default: 'actions' } as const,
+    },
   ];
 }
 

--
Gitblit v1.9.3