From 46624ce480a3c14da21f39cc4ad5f7eecea2bb1e Mon Sep 17 00:00:00 2001
From: 云 <2163098428@qq.com>
Date: 星期四, 17 九月 2026 16:24:28 +0800
Subject: [PATCH] feat(mes): 优化生产批次和袋码管理功能

---
 src/views/mes/pro/bagCode/data.ts |   35 ++++++++++++++++++++++++++++++++++-
 1 files changed, 34 insertions(+), 1 deletions(-)

diff --git a/src/views/mes/pro/bagCode/data.ts b/src/views/mes/pro/bagCode/data.ts
index 09b3d69..8af998d 100644
--- a/src/views/mes/pro/bagCode/data.ts
+++ b/src/views/mes/pro/bagCode/data.ts
@@ -2,8 +2,12 @@
 import type { VxeTableGridOptions } from '#/adapter/vxe-table';
 import type { MesProBagCodeApi } from '#/api/mes/pro/bagCode';
 
+import { markRaw } from 'vue';
+
 import { DICT_TYPE } from '@vben/constants';
 import { getDictOptions } from '@vben/hooks';
+
+import { MdmItemSelect } from '#/views/basicData/mdm/components';
 
 import { getRangePickerDefaultProps } from '#/utils';
 
@@ -35,6 +39,14 @@
       componentProps: {
         allowClear: true,
         placeholder: '璇疯緭鍏ョ敓鎴愮粍缂栧彿',
+      },
+    },
+    {
+      fieldName: 'itemId',
+      label: '鍝佺',
+      component: markRaw(MdmItemSelect),
+      componentProps: {
+        placeholder: '璇烽�夋嫨鍝佺锛堜骇鍝佸搧绉嶏級',
       },
     },
     {
@@ -85,6 +97,16 @@
       minWidth: 190,
     },
     {
+      field: 'itemCode',
+      title: '鍝佺缂栫爜',
+      width: 120,
+    },
+    {
+      field: 'itemName',
+      title: '鍝佺鍚嶇О',
+      width: 140,
+    },
+    {
       field: 'lineCode',
       title: '浜х嚎缂栫爜',
       width: 100,
@@ -115,6 +137,17 @@
       formatter: 'formatDateTime',
     },
     {
+      field: 'cancelTime',
+      title: '浣滃簾鏃堕棿',
+      width: 170,
+      formatter: 'formatDateTime',
+    },
+    {
+      field: 'cancelReason',
+      title: '浣滃簾鍘熷洜',
+      minWidth: 160,
+    },
+    {
       field: 'createTime',
       title: '鍒涘缓鏃堕棿',
       width: 170,
@@ -122,7 +155,7 @@
     },
     {
       title: '鎿嶄綔',
-      width: 200,
+      width: 350,
       fixed: 'right',
       slots: { default: 'actions' },
     },

--
Gitblit v1.9.3