From e4994fccfb49ebfb108ba62cbd82aea4e004f6d8 Mon Sep 17 00:00:00 2001
From: gaoluyang <2820782392@qq.com>
Date: 星期四, 15 十月 2026 10:02:46 +0800
Subject: [PATCH] fix(mes/qc): 不合格品处理单的不合格物料改查 MDM 物料

---
 src/views/wls/materialstock/data.ts |   15 +++++++++++++--
 1 files changed, 13 insertions(+), 2 deletions(-)

diff --git a/src/views/wls/materialstock/data.ts b/src/views/wls/materialstock/data.ts
index 3efe144..4498823 100644
--- a/src/views/wls/materialstock/data.ts
+++ b/src/views/wls/materialstock/data.ts
@@ -7,7 +7,7 @@
 import { useAccess } from '@vben/access';
 import { DICT_TYPE } from '@vben/constants';
 
-import { MdItemSelect } from '#/views/mes/md/item/components';
+import { MdmItemSelect } from '#/views/basicData/mdm/components';
 
 import {
   WmWarehouseAreaSelect,
@@ -21,7 +21,7 @@
     {
       fieldName: 'itemId',
       label: '鐗╂枡',
-      component: markRaw(MdItemSelect),
+      component: markRaw(MdmItemSelect),
       componentProps: {
         placeholder: '璇烽�夋嫨鐗╂枡',
       },
@@ -83,6 +83,7 @@
     newFrozen: boolean,
     row: MesWmMaterialStockApi.MaterialStock,
   ) => Promise<boolean | undefined>,
+  onMove?: (row: MesWmMaterialStockApi.MaterialStock) => void,
 ): VxeTableGridOptions<MesWmMaterialStockApi.MaterialStock>['columns'] {
   const { hasAccessByCodes } = useAccess();
   return [
@@ -189,6 +190,16 @@
         },
       },
     },
+    ...(onMove
+      ? [
+          {
+            title: '鎿嶄綔',
+            width: 80,
+            fixed: 'right' as const,
+            slots: { default: 'actions' } as const,
+          },
+        ]
+      : []),
   ];
 }
 

--
Gitblit v1.9.3