From f06c18931950df633a66247795fc40be9ca0487b Mon Sep 17 00:00:00 2001
From: huminmin <mac@MacBook-Pro.local>
Date: 星期一, 17 八月 2026 10:38:22 +0800
Subject: [PATCH] 修改新增付款单本次付款金额格式问题

---
 src/views/wls/arrivalnotice/data.ts |   27 ++++++++++++++++++++++-----
 1 files changed, 22 insertions(+), 5 deletions(-)

diff --git a/src/views/wls/arrivalnotice/data.ts b/src/views/wls/arrivalnotice/data.ts
index 95b24b4..4fd3a0b 100644
--- a/src/views/wls/arrivalnotice/data.ts
+++ b/src/views/wls/arrivalnotice/data.ts
@@ -5,14 +5,14 @@
 
 import { h, markRaw } from 'vue';
 
-import { DICT_TYPE, MesAutoCodeRuleCode } from '../../../packages/constants/src';
+import { DICT_TYPE, MesAutoCodeRuleCode } from '@vben/constants';
 
 import { Button } from 'ant-design-vue';
 
 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