From a241b66efcc41e973290a6722fb7a4d79b833ea1 Mon Sep 17 00:00:00 2001
From: 云 <2163098428@qq.com>
Date: 星期二, 13 十月 2026 09:54:32 +0800
Subject: [PATCH] feat(bi): 为图表配置接口添加名称字段
---
src/views/crm/saleQuotation/data.ts | 28 ++++++++++++----------------
1 files changed, 12 insertions(+), 16 deletions(-)
diff --git a/src/views/crm/saleQuotation/data.ts b/src/views/crm/saleQuotation/data.ts
index 09cf646..4658178 100644
--- a/src/views/crm/saleQuotation/data.ts
+++ b/src/views/crm/saleQuotation/data.ts
@@ -6,7 +6,6 @@
import { z } from '#/adapter/form';
import { getSimpleBusinessList } from '#/api/crm/business';
import { getSimpleContactList } from '#/api/crm/contact';
-import { getItemPage } from '#/api/mdm/item';
import { getSimpleUserList } from '#/api/system/user';
import { useUserStore } from '#/packages/stores/src';
import CrmCustomerSelect from '#/components/crm-customer-select.vue';
@@ -35,9 +34,10 @@
fieldName: 'no',
label: '鎶ヤ环鍗曞彿',
component: 'Input',
+ help: '鐣欑┖鐢辩郴缁熻嚜鍔ㄧ敓鎴愶紱濉啓鍒欎娇鐢ㄨ缂栧彿锛岄渶鍏ㄥ簱鍞竴',
componentProps: {
- placeholder: '淇濆瓨鏃惰嚜鍔ㄧ敓鎴�',
- disabled: true,
+ placeholder: '鎶ヤ环鍗曞彿鑷畾涔�',
+ maxLength: 32,
},
},
{
@@ -124,10 +124,11 @@
fieldName: 'quotationTime',
label: '鎶ヤ环鏃ユ湡',
component: 'DatePicker',
+ rules: 'required',
componentProps: {
showTime: false,
format: 'YYYY-MM-DD',
- valueFormat: 'x',
+ valueFormat: 'YYYY-MM-DD',
placeholder: '璇烽�夋嫨鎶ヤ环鏃ユ湡',
},
},
@@ -138,7 +139,7 @@
componentProps: {
showTime: false,
format: 'YYYY-MM-DD',
- valueFormat: 'x',
+ valueFormat: 'YYYY-MM-DD',
placeholder: '璇烽�夋嫨鏈夋晥鏈�',
},
},
@@ -165,7 +166,7 @@
},
{
fieldName: 'items',
- label: '鐗╂枡娓呭崟',
+ label: '浜у搧娓呭崟',
component: 'Input',
formItemClass: 'col-span-3',
},
@@ -301,13 +302,13 @@
field: 'quotationTime',
title: '鎶ヤ环鏃ユ湡',
minWidth: 120,
- formatter: 'formatDateTime',
+ formatter: 'formatDate',
},
{
field: 'validUntil',
title: '鏈夋晥鏈熻嚦',
minWidth: 120,
- formatter: 'formatDateTime',
+ formatter: 'formatDate',
},
{
field: 'status',
@@ -329,7 +330,7 @@
field: 'createTime',
title: '鍒涘缓鏃堕棿',
minWidth: 180,
- formatter: 'formatDateTime',
+ formatter: 'formatDate',
},
{
title: '鎿嶄綔',
@@ -340,24 +341,19 @@
];
}
-/** 鐗╂枡鏄庣粏琛ㄦ牸鍒� */
+/** 浜у搧鏄庣粏琛ㄦ牸鍒� */
export function useItemColumns(): VxeTableGridOptions['columns'] {
return [
{ type: 'seq', title: '搴忓彿', minWidth: 50, fixed: 'left' },
{
field: 'itemId',
- title: '鐗╂枡鍚嶇О',
+ title: '浜у搧鍚嶇О',
minWidth: 200,
slots: { default: 'itemId' },
},
{
field: 'itemSpecification',
title: '瑙勬牸鍨嬪彿',
- minWidth: 120,
- },
- {
- field: 'itemBarCode',
- title: '鏉$爜',
minWidth: 120,
},
{
--
Gitblit v1.9.3