From 5c243d9d05da668a32b1bc9a4f543ea081488d11 Mon Sep 17 00:00:00 2001
From: xiaoyi <908147524@qq.com>
Date: 星期四, 20 八月 2026 14:08:03 +0800
Subject: [PATCH] feat 功能变更
---
src/views/crm/saleQuotation/data.ts | 91 ++++++++++++++++++++++++++++++++++++++++++++-
1 files changed, 89 insertions(+), 2 deletions(-)
diff --git a/src/views/crm/saleQuotation/data.ts b/src/views/crm/saleQuotation/data.ts
index ce713e1..109c6e4 100644
--- a/src/views/crm/saleQuotation/data.ts
+++ b/src/views/crm/saleQuotation/data.ts
@@ -1,6 +1,9 @@
import type { VbenFormSchema } from '#/adapter/form';
import type { VxeTableGridOptions } from '#/adapter/vxe-table';
+import { DICT_TYPE } from '@vben/constants';
+import { getDictOptions } from '@vben/hooks';
+
import { erpPriceMultiply } from '#/packages/utils/src';
import { z } from '#/adapter/form';
@@ -128,7 +131,7 @@
componentProps: {
showTime: false,
format: 'YYYY-MM-DD',
- valueFormat: 'x',
+ valueFormat: 'YYYY-MM-DD',
placeholder: '璇烽�夋嫨鎶ヤ环鏃ユ湡',
},
},
@@ -139,7 +142,7 @@
componentProps: {
showTime: false,
format: 'YYYY-MM-DD',
- valueFormat: 'x',
+ valueFormat: 'YYYY-MM-DD',
placeholder: '璇烽�夋嫨鏈夋晥鏈�',
},
},
@@ -153,6 +156,81 @@
max: 100,
precision: 2,
placeholder: '璇疯緭鍏ョ◣鐜�',
+ },
+ },
+ {
+ fieldName: 'quotationType',
+ label: '鎶ヤ环绫诲瀷',
+ component: 'Select',
+ componentProps: {
+ options: getDictOptions(DICT_TYPE.CRM_QUOTATION_TYPE),
+ placeholder: '璇烽�夋嫨鎶ヤ环绫诲瀷',
+ allowClear: true,
+ },
+ },
+ {
+ fieldName: 'capacity',
+ label: '鍚堝悓瀹归噺锛坘VA锛�',
+ component: 'InputNumber',
+ componentProps: {
+ class: '!w-full',
+ min: 0,
+ precision: 2,
+ placeholder: '璇疯緭鍏ュ悎鍚屽閲�',
+ },
+ },
+ {
+ fieldName: 'maxDemand',
+ label: '鏈�澶ч渶閲忥紙kW锛�',
+ component: 'InputNumber',
+ componentProps: {
+ class: '!w-full',
+ min: 0,
+ precision: 2,
+ placeholder: '璇疯緭鍏ユ渶澶ч渶閲�',
+ },
+ },
+ {
+ fieldName: 'unitPrice',
+ label: '鐢靛害鍗曚环锛堝厓/kWh锛�',
+ component: 'InputNumber',
+ componentProps: {
+ class: '!w-full',
+ min: 0,
+ precision: 4,
+ placeholder: '璇疯緭鍏ョ數搴﹀崟浠�',
+ },
+ },
+ {
+ fieldName: 'tariffMode',
+ label: '鐢典环妯″紡',
+ component: 'Select',
+ componentProps: {
+ options: getDictOptions(DICT_TYPE.CRM_TARIFF_MODE),
+ placeholder: '璇烽�夋嫨鐢典环妯″紡',
+ allowClear: true,
+ },
+ },
+ {
+ fieldName: 'powerFactorFee',
+ label: '鍔涜皟鐢佃垂锛堝厓锛�',
+ component: 'InputNumber',
+ componentProps: {
+ class: '!w-full',
+ min: 0,
+ precision: 2,
+ placeholder: '璇疯緭鍏ュ姏璋冪數璐�',
+ },
+ },
+ {
+ fieldName: 'billingCycle',
+ label: '缁撶畻鍛ㄦ湡锛堟湀锛�',
+ component: 'InputNumber',
+ componentProps: {
+ class: '!w-full',
+ min: 1,
+ precision: 0,
+ placeholder: '璇疯緭鍏ョ粨绠楀懆鏈�',
},
},
{
@@ -283,6 +361,15 @@
fixed: 'left',
},
{
+ field: 'quotationType',
+ title: '鎶ヤ环绫诲瀷',
+ minWidth: 100,
+ cellRender: {
+ name: 'CellDict',
+ props: { type: DICT_TYPE.CRM_QUOTATION_TYPE },
+ },
+ },
+ {
field: 'customerName',
title: '瀹㈡埛鍚嶇О',
minWidth: 120,
--
Gitblit v1.9.3