From 787ccc59ba89bacc075562a161ecf02bc76ebadc Mon Sep 17 00:00:00 2001
From: gaoluyang <2820782392@qq.com>
Date: 星期五, 24 七月 2026 17:15:53 +0800
Subject: [PATCH] 银川 1.采购申请添加入库状态查询条件

---
 src/views/crm/saleQuotation/data.ts |   26 +++++++++-----------------
 1 files changed, 9 insertions(+), 17 deletions(-)

diff --git a/src/views/crm/saleQuotation/data.ts b/src/views/crm/saleQuotation/data.ts
index ca86211..ce713e1 100644
--- a/src/views/crm/saleQuotation/data.ts
+++ b/src/views/crm/saleQuotation/data.ts
@@ -6,10 +6,12 @@
 import { z } from '#/adapter/form';
 import { getSimpleBusinessList } from '#/api/crm/business';
 import { getSimpleContactList } from '#/api/crm/contact';
-import { getCustomerSimpleList } from '#/api/crm/customer';
 import { getItemPage } from '#/api/mdm/item';
 import { getSimpleUserList } from '#/api/system/user';
 import { useUserStore } from '#/packages/stores/src';
+import CrmCustomerSelect from '#/components/crm-customer-select.vue';
+
+import { markRaw } from 'vue';
 
 /** 鎶ヤ环鍗曠姸鎬� */
 export const QUOTATION_STATUS = {
@@ -62,12 +64,9 @@
     {
       fieldName: 'customerId',
       label: '瀹㈡埛鍚嶇О',
-      component: 'ApiSelect',
+      component: markRaw(CrmCustomerSelect),
       rules: 'required',
       componentProps: {
-        api: getCustomerSimpleList,
-        labelField: 'name',
-        valueField: 'id',
         placeholder: '璇烽�夋嫨瀹㈡埛',
       },
     },
@@ -125,6 +124,7 @@
       fieldName: 'quotationTime',
       label: '鎶ヤ环鏃ユ湡',
       component: 'DatePicker',
+      rules: 'required',
       componentProps: {
         showTime: false,
         format: 'YYYY-MM-DD',
@@ -166,7 +166,7 @@
     },
     {
       fieldName: 'items',
-      label: '鐗╂枡娓呭崟',
+      label: '浜у搧娓呭崟',
       component: 'Input',
       formItemClass: 'col-span-3',
     },
@@ -240,11 +240,8 @@
     {
       fieldName: 'customerId',
       label: '瀹㈡埛',
-      component: 'ApiSelect',
+      component: markRaw(CrmCustomerSelect),
       componentProps: {
-        api: getCustomerSimpleList,
-        labelField: 'name',
-        valueField: 'id',
         placeholder: '璇烽�夋嫨瀹㈡埛',
         allowClear: true,
       },
@@ -344,24 +341,19 @@
   ];
 }
 
-/** 鐗╂枡鏄庣粏琛ㄦ牸鍒� */
+/** 浜у搧鏄庣粏琛ㄦ牸鍒� */
 export function useItemColumns(): VxeTableGridOptions['columns'] {
   return [
     { type: 'seq', title: '搴忓彿', minWidth: 50, fixed: 'left' },
     {
       field: 'itemId',
-      title: '鐗╂枡鍚嶇О',
+      title: '浜у搧鍚嶇О',
       minWidth: 200,
       slots: { default: 'itemId' },
     },
     {
       field: 'itemSpecification',
       title: '瑙勬牸鍨嬪彿',
-      minWidth: 120,
-    },
-    {
-      field: 'itemBarCode',
-      title: '鏉$爜',
       minWidth: 120,
     },
     {

--
Gitblit v1.9.3