From f6f66196f3ca377eda0afd320e64005c28204c76 Mon Sep 17 00:00:00 2001
From: gaoluyang <2820782392@qq.com>
Date: 星期四, 15 十月 2026 15:44:37 +0800
Subject: [PATCH] fix(crm): 客户分析页表格与图表数据展示问题

---
 src/views/erp/stock/record/data.ts |   13 +++++--------
 1 files changed, 5 insertions(+), 8 deletions(-)

diff --git a/src/views/erp/stock/record/data.ts b/src/views/erp/stock/record/data.ts
index e4e3d0e..f1ba6f7 100644
--- a/src/views/erp/stock/record/data.ts
+++ b/src/views/erp/stock/record/data.ts
@@ -4,9 +4,11 @@
 import { DICT_TYPE } from '@vben/constants';
 import { getDictOptions } from '@vben/hooks';
 
-import { getProductSimpleList } from '#/api/erp/product/product';
+import { markRaw } from 'vue';
+
 import { getWarehouseSimpleList } from '#/api/erp/stock/warehouse';
 import { getRangePickerDefaultProps } from '#/utils';
+import { MdmItemSelect } from '#/views/basicData/mdm/components';
 
 /** 鎼滅储琛ㄥ崟 */
 export function useGridFormSchema(): VbenFormSchema[] {
@@ -14,14 +16,9 @@
     {
       fieldName: 'productId',
       label: '浜у搧',
-      component: 'ApiSelect',
+      component: markRaw(MdmItemSelect),
       componentProps: {
         placeholder: '璇烽�夋嫨浜у搧',
-        allowClear: true,
-        showSearch: true,
-        api: getProductSimpleList,
-        labelField: 'name',
-        valueField: 'id',
       },
     },
     {
@@ -110,7 +107,7 @@
       field: 'createTime',
       title: '鍑哄叆搴撴棩鏈�',
       width: 180,
-      formatter: 'formatDateTime',
+      formatter: 'formatDate',
     },
     {
       field: 'count',

--
Gitblit v1.9.3