From cd8b52bdf89a4d1101f72e0ece9f4df22a3d3f7a Mon Sep 17 00:00:00 2001
From: gaoluyang <2820782392@qq.com>
Date: 星期四, 15 十月 2026 16:03:32 +0800
Subject: [PATCH] feat(mdm): 物料列表隐藏辅单位与销售价列

---
 src/views/crm/business/data.ts |   26 +++++++++++++-------------
 1 files changed, 13 insertions(+), 13 deletions(-)

diff --git a/src/views/crm/business/data.ts b/src/views/crm/business/data.ts
index 28cb096..99e576b 100644
--- a/src/views/crm/business/data.ts
+++ b/src/views/crm/business/data.ts
@@ -1,13 +1,15 @@
 import type { VbenFormSchema } from '#/adapter/form';
 import type { VxeTableGridOptions } from '#/adapter/vxe-table';
 
-import { useUserStore } from '../../../packages/stores/src';
-import { erpPriceMultiply } from '../../../packages/utils/src';
+import { useUserStore } from '@vben/stores';
+import { erpPriceMultiply } from '@vben/utils';
 
 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,
       },
@@ -98,8 +97,8 @@
       component: 'DatePicker',
       componentProps: {
         showTime: false,
-        format: 'YYYY-MM-DD HH:mm:ss',
-        valueFormat: 'x',
+        format: 'YYYY-MM-DD',
+        valueFormat: 'YYYY-MM-DD HH:mm:ss',
         placeholder: '璇烽�夋嫨棰勮鎴愪氦鏃ユ湡',
       },
     },
@@ -219,7 +218,7 @@
     {
       field: 'contactNextTime',
       title: '涓嬫鑱旂郴鏃堕棿',
-      formatter: 'formatDateTime',
+      formatter: 'formatDate',
       width: 180,
     },
     {
@@ -235,19 +234,19 @@
     {
       field: 'contactLastTime',
       title: '鏈�鍚庤窡杩涙椂闂�',
-      formatter: 'formatDateTime',
+      formatter: 'formatDate',
       width: 180,
     },
     {
       field: 'updateTime',
       title: '鏇存柊鏃堕棿',
-      formatter: 'formatDateTime',
+      formatter: 'formatDate',
       width: 180,
     },
     {
       field: 'createTime',
       title: '鍒涘缓鏃堕棿',
-      formatter: 'formatDateTime',
+      formatter: 'formatDate',
       width: 180,
     },
     {
@@ -266,6 +265,7 @@
       title: '鍟嗘満闃舵',
       fixed: 'right',
       width: 120,
+      slots: { default: 'statusName' },
     },
     {
       title: '鎿嶄綔',

--
Gitblit v1.9.3