From 2fdf183119c9a87dd0d62694fad2a2744989b92a Mon Sep 17 00:00:00 2001
From: gaoluyang <2820782392@qq.com>
Date: 星期六, 18 七月 2026 10:12:38 +0800
Subject: [PATCH] 银川 1.销售报价选择框复用组件应用

---
 src/views/erp/sale/order/data.ts |   29 ++++++++++++++++++-----------
 1 files changed, 18 insertions(+), 11 deletions(-)

diff --git a/src/views/erp/sale/order/data.ts b/src/views/erp/sale/order/data.ts
index 4428be2..0cf418a 100644
--- a/src/views/erp/sale/order/data.ts
+++ b/src/views/erp/sale/order/data.ts
@@ -6,9 +6,11 @@
 import { z } from '#/adapter/form';
 import { getAccountSimpleList } from '#/api/erp/finance/account';
 import { getItemPage } from '#/api/mdm/item';
-import { getCustomerSimpleList as getCrmCustomerSimpleList } from '#/api/crm/customer';
 import { getSimpleUserList } from '#/api/system/user';
 import { getRangePickerDefaultProps } from '#/utils';
+import CrmCustomerSelect from '#/components/crm-customer-select.vue';
+
+import { markRaw } from 'vue';
 
 /** 琛ㄥ崟绫诲瀷 */
 export type FormType = 'create' | 'detail' | 'edit';
@@ -48,14 +50,10 @@
     {
       label: '瀹㈡埛',
       fieldName: 'customerId',
-      component: 'ApiSelect',
+      component: markRaw(CrmCustomerSelect),
       componentProps: {
         placeholder: '璇烽�夋嫨瀹㈡埛',
         allowClear: true,
-        showSearch: true,
-        api: getCrmCustomerSimpleList,
-        labelField: 'name',
-        valueField: 'id',
       },
       rules: 'required',
     },
@@ -221,6 +219,12 @@
       minWidth: 80,
     },
     {
+      field: 'needProduction',
+      title: '闇�瑕佺敓浜�',
+      minWidth: 100,
+      slots: { default: 'needProduction' },
+    },
+    {
       field: 'remark',
       title: '澶囨敞',
       minWidth: 150,
@@ -318,14 +322,10 @@
     {
       fieldName: 'supplierId',
       label: '瀹㈡埛',
-      component: 'ApiSelect',
+      component: markRaw(CrmCustomerSelect),
       componentProps: {
         placeholder: '璇烽�夋嫨瀹㈡埛',
         allowClear: true,
-        showSearch: true,
-        api: getCrmCustomerSimpleList,
-        labelField: 'name',
-        valueField: 'id',
       },
     },
     {
@@ -482,6 +482,13 @@
       slots: { default: 'status' },
     },
     {
+      field: 'needProduction',
+      title: '闇�瑕佺敓浜�',
+      minWidth: 100,
+      fixed: 'right',
+      slots: { default: 'needProduction' },
+    },
+    {
       title: '鎿嶄綔',
       width: 260,
       fixed: 'right',

--
Gitblit v1.9.3