From 08b86cccfc8227ab065ee913f809609ef708486d Mon Sep 17 00:00:00 2001
From: liu <2021943741@qq.com>
Date: 星期五, 21 八月 2026 09:59:21 +0800
Subject: [PATCH] 物料管理/物料分类/计量单位增加 Excel 导入功能

---
 src/views/wls/arrivalnotice/data.ts |   25 +++++++++++++++++++++----
 1 files changed, 21 insertions(+), 4 deletions(-)

diff --git a/src/views/wls/arrivalnotice/data.ts b/src/views/wls/arrivalnotice/data.ts
index 238646d..4fd3a0b 100644
--- a/src/views/wls/arrivalnotice/data.ts
+++ b/src/views/wls/arrivalnotice/data.ts
@@ -11,8 +11,8 @@
 
 import { z } from '#/adapter/form';
 import { generateAutoCode } from '#/api/mes/md/autocode/record';
+import { getItemPage } from '#/api/mdm/item';
 import { getRangePickerDefaultProps } from '#/utils';
-import { MdItemSelect } from '#/views/mes/md/item/components';
 import { MdVendorSelect } from '#/views/mes/md/vendor/components';
 import { ErpPurchaseOrderSelect } from '#/views/erp/purchase/order/components';
 
@@ -125,7 +125,7 @@
         class: '!w-full',
         format: 'YYYY-MM-DD',
         placeholder: '璇烽�夋嫨鍒拌揣鏃ユ湡',
-        valueFormat: 'x',
+        valueFormat: 'YYYY-MM-DD',
       },
       rules: 'required',
     },
@@ -307,6 +307,12 @@
       },
     },
     {
+      field: 'iqcCheckResult',
+      title: '璐ㄦ缁撴灉',
+      width: 100,
+      slots: { default: 'iqcCheckResult' },
+    },
+    {
       field: 'qualifiedQuantity',
       title: '鍚堟牸鏁伴噺',
       width: 100,
@@ -315,6 +321,7 @@
       field: 'iqcCode',
       title: '妫�楠屽崟鍙�',
       minWidth: 140,
+      slots: { default: 'iqcCode' },
     },
     {
       field: 'remark',
@@ -340,11 +347,21 @@
     {
       fieldName: 'itemId',
       label: '鐗╂枡',
-      component: markRaw(MdItemSelect),
+      component: 'ApiSelect',
       componentProps: {
         placeholder: '璇烽�夋嫨鐗╂枡',
+        allowClear: true,
+        showSearch: true,
+        api: getItemPage,
+        resultField: 'list',
+        labelField: 'name',
+        valueField: 'id',
+        optionRender: (option: any) => {
+          const item = option.data;
+          return `${item.code} - ${item.name}`;
+        },
       },
-      rules: 'selectRequired',
+      rules: 'required',
     },
     {
       fieldName: 'arrivalQuantity',

--
Gitblit v1.9.3