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/customer/data.ts |   81 ++++++++++++++++++++++------------------
 1 files changed, 45 insertions(+), 36 deletions(-)

diff --git a/src/views/crm/customer/data.ts b/src/views/crm/customer/data.ts
index bc31add..ba98137 100644
--- a/src/views/crm/customer/data.ts
+++ b/src/views/crm/customer/data.ts
@@ -3,10 +3,10 @@
 
 import { markRaw } from 'vue';
 
-import { z } from '../../../packages/effects/common-ui/src';
-import { DICT_TYPE } from '../../../packages/constants/src';
-import { getDictOptions } from '../../../packages/effects/hooks/src';
-import { useUserStore } from '../../../packages/stores/src';
+import { z } from '@vben/common-ui';
+import { DICT_TYPE } from '@vben/constants';
+import { getDictOptions } from '@vben/hooks';
+import { useUserStore } from '@vben/stores';
 
 import { getSimpleUserList } from '#/api/system/user';
 import { AreaCascader } from '#/components/area';
@@ -153,11 +153,22 @@
       component: 'DatePicker',
       componentProps: {
         showTime: true,
-        format: 'YYYY-MM-DD HH:mm:ss',
-        valueFormat: 'x',
+        format: 'YYYY-MM-DD',
+        valueFormat: 'YYYY-MM-DD HH:mm:ss',
         placeholder: '璇烽�夋嫨涓嬫鑱旂郴鏃堕棿',
         allowClear: true,
       },
+    },
+    {
+      fieldName: 'autoPoolEnabled',
+      label: '鏄惁娴佸叆鍏捣',
+      component: 'Switch',
+      defaultValue: true,
+      componentProps: {
+        checkedChildren: '鏄�',
+        unCheckedChildren: '鍚�',
+      },
+      help: '鍏抽棴鍚庝笉鑷姩娴佸叆鍏捣锛屽苟鍙栨秷鏅�氱敤鎴风殑鍏捣鍙搴︼紱淇濈暀璐熻矗浜哄拰鍥㈤槦鏉冮檺锛岃秴绾х鐞嗗憳浠嶅彲鏌ョ湅銆�',
     },
     {
       fieldName: 'remark',
@@ -202,11 +213,25 @@
       },
     },
     {
+      fieldName: 'autoPoolEnabled',
+      label: '鏄惁娴佸叆鍏捣',
+      component: 'Select',
+      componentProps: {
+        options: [
+          { label: '鏄�', value: true },
+          { label: '鍚�', value: false },
+        ],
+        placeholder: '璇烽�夋嫨',
+        allowClear: true,
+      },
+    },
+    {
       fieldName: 'createTime',
       label: '鍒涘缓鏃堕棿',
       component: 'RangePicker',
       componentProps: {
         ...getRangePickerDefaultProps(),
+        format: 'YYYY-MM-DD',
         placeholder: ['寮�濮嬫棩鏈�', '缁撴潫鏃ユ湡'],
         allowClear: true,
       },
@@ -240,7 +265,7 @@
       label: '瀹㈡埛鏁版嵁',
       component: 'Upload',
       rules: 'required',
-      help: '浠呭厑璁稿鍏� xls銆亁lsx 鏍煎紡鏂囦欢',
+      help: '浠呭厑璁稿鍏� xls銆亁lsx 鏍煎紡鏂囦欢銆傗�滄槸鍚︽祦鍏ュ叕娴封�濆垪濉啓鏄�/鍚︼紱鐣欑┖鏃舵柊澧為粯璁ゆ槸锛岃鐩栦繚鐣欏師鍊笺�傚叧闂悗鍙栨秷鍏捣鍙搴︺��',
     },
     {
       fieldName: 'updateSupport',
@@ -276,21 +301,6 @@
       },
     },
     {
-      field: 'mobile',
-      title: '鎵嬫満',
-      minWidth: 120,
-    },
-    {
-      field: 'telephone',
-      title: '鐢佃瘽',
-      minWidth: 130,
-    },
-    {
-      field: 'email',
-      title: '閭',
-      minWidth: 180,
-    },
-    {
       field: 'level',
       title: '瀹㈡埛绾у埆',
       minWidth: 135,
@@ -311,7 +321,7 @@
     {
       field: 'contactNextTime',
       title: '涓嬫鑱旂郴鏃堕棿',
-      formatter: 'formatDateTime',
+      formatter: 'formatDate',
       minWidth: 180,
     },
     {
@@ -329,18 +339,24 @@
       },
     },
     {
-      field: 'dealStatus',
-      title: '鎴愪氦鐘舵��',
-      minWidth: 120,
+      field: 'autoPoolEnabled',
+      title: '鏄惁娴佸叆鍏捣',
+      minWidth: 140,
       cellRender: {
         name: 'CellDict',
         props: { type: DICT_TYPE.INFRA_BOOLEAN_STRING },
       },
     },
     {
+      field: 'contractCount',
+      title: '绛捐鍚堝悓',
+      minWidth: 170,
+      slots: { default: 'contracts' },
+    },
+    {
       field: 'contactLastTime',
       title: '鏈�鍚庤窡杩涙椂闂�',
-      formatter: 'formatDateTime',
+      formatter: 'formatDate',
       minWidth: 180,
     },
     {
@@ -352,13 +368,6 @@
       field: 'detailAddress',
       title: '鍦板潃',
       minWidth: 180,
-    },
-    {
-      field: 'poolDay',
-      title: '璺濈杩涘叆鍏捣澶╂暟',
-      minWidth: 140,
-      formatter: ({ cellValue }) =>
-        cellValue === null ? '-' : `${cellValue} 澶ー,
     },
     {
       field: 'ownerUserName',
@@ -373,13 +382,13 @@
     {
       field: 'updateTime',
       title: '鏇存柊鏃堕棿',
-      formatter: 'formatDateTime',
+      formatter: 'formatDate',
       minWidth: 180,
     },
     {
       field: 'createTime',
       title: '鍒涘缓鏃堕棿',
-      formatter: 'formatDateTime',
+      formatter: 'formatDate',
       minWidth: 180,
     },
     {

--
Gitblit v1.9.3