From 2c354c2d7ea51b0f78c858fef1edd93354405c6b Mon Sep 17 00:00:00 2001
From: gaoluyang <2820782392@qq.com>
Date: 星期一, 12 十月 2026 18:20:16 +0800
Subject: [PATCH] fix(erp): 单据明细单价口径由「不含税单价」改为「含税单价」(前端)

---
 src/views/crm/business/data.ts |   15 +++++++--------
 1 files changed, 7 insertions(+), 8 deletions(-)

diff --git a/src/views/crm/business/data.ts b/src/views/crm/business/data.ts
index 818f1a0..b83c9c7 100644
--- a/src/views/crm/business/data.ts
+++ b/src/views/crm/business/data.ts
@@ -6,8 +6,10 @@
 
 import { z } from '#/adapter/form';
 import { getBusinessStatusTypeSimpleList } from '#/api/crm/business/status';
-import { getCustomerSimpleList } from '#/api/crm/customer';
 import { getSimpleUserList } from '#/api/system/user';
+import CrmCustomerSelect from '#/components/crm-customer-select.vue';
+
+import { markRaw } from 'vue';
 
 /** 鏂板/淇敼鐨勮〃鍗� */
 export function useFormSchema(): VbenFormSchema[] {
@@ -52,11 +54,8 @@
     {
       fieldName: 'customerId',
       label: '瀹㈡埛鍚嶇О',
-      component: 'ApiSelect',
+      component: markRaw(CrmCustomerSelect),
       componentProps: {
-        api: getCustomerSimpleList,
-        labelField: 'name',
-        valueField: 'id',
         placeholder: '璇烽�夋嫨瀹㈡埛',
         allowClear: true,
       },
@@ -83,14 +82,13 @@
         api: getBusinessStatusTypeSimpleList,
         labelField: 'name',
         valueField: 'id',
-        placeholder: '璇烽�夋嫨鍟嗘満鐘舵�佺粍',
+        placeholder: '璇烽�夋嫨鍟嗘満鐘舵�佺粍锛堥�夊~锛�',
         allowClear: true,
       },
       dependencies: {
         triggerFields: ['id'],
         disabled: (values) => values.id,
       },
-      rules: 'required',
     },
     {
       fieldName: 'dealTime',
@@ -99,7 +97,7 @@
       componentProps: {
         showTime: false,
         format: 'YYYY-MM-DD HH:mm:ss',
-        valueFormat: 'x',
+        valueFormat: 'YYYY-MM-DD HH:mm:ss',
         placeholder: '璇烽�夋嫨棰勮鎴愪氦鏃ユ湡',
       },
     },
@@ -266,6 +264,7 @@
       title: '鍟嗘満闃舵',
       fixed: 'right',
       width: 120,
+      slots: { default: 'statusName' },
     },
     {
       title: '鎿嶄綔',

--
Gitblit v1.9.3