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/contract/data.ts | 102 +++++++++++++++++++++++++++++++++++++++++++++++++++
1 files changed, 102 insertions(+), 0 deletions(-)
diff --git a/src/views/crm/contract/data.ts b/src/views/crm/contract/data.ts
index 7dabc09..87bfcf2 100644
--- a/src/views/crm/contract/data.ts
+++ b/src/views/crm/contract/data.ts
@@ -1,6 +1,8 @@
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 { useUserStore } from '@vben/stores';
import { erpPriceInputFormatter, erpPriceMultiply } from '@vben/utils';
@@ -199,6 +201,78 @@
},
},
{
+ fieldName: 'contractType',
+ label: '鍚堝悓绫诲瀷',
+ component: 'Select',
+ componentProps: {
+ options: getDictOptions(DICT_TYPE.CRM_CONTRACT_TYPE),
+ placeholder: '璇烽�夋嫨鍚堝悓绫诲瀷',
+ allowClear: true,
+ },
+ },
+ {
+ fieldName: 'voltageLevel',
+ label: '鐢靛帇绛夌骇',
+ component: 'Select',
+ componentProps: {
+ options: getDictOptions(DICT_TYPE.CRM_VOLTAGE_LEVEL),
+ placeholder: '璇烽�夋嫨鐢靛帇绛夌骇',
+ allowClear: true,
+ },
+ },
+ {
+ fieldName: 'electricityType',
+ label: '鐢ㄧ數绫诲瀷',
+ component: 'Select',
+ componentProps: {
+ options: getDictOptions(DICT_TYPE.CRM_ELECTRICITY_TYPE),
+ placeholder: '璇烽�夋嫨鐢ㄧ數绫诲瀷',
+ allowClear: true,
+ },
+ },
+ {
+ fieldName: 'contractCapacity',
+ label: '鍚堝悓瀹归噺锛坘VA锛�',
+ component: 'InputNumber',
+ componentProps: {
+ class: '!w-full',
+ min: 0,
+ precision: 2,
+ placeholder: '璇疯緭鍏ュ悎鍚屽閲�',
+ },
+ },
+ {
+ fieldName: 'tariffMode',
+ label: '鐢典环妯″紡',
+ component: 'Select',
+ componentProps: {
+ options: getDictOptions(DICT_TYPE.CRM_TARIFF_MODE),
+ placeholder: '璇烽�夋嫨鐢典环妯″紡',
+ allowClear: true,
+ },
+ },
+ {
+ fieldName: 'meterMode',
+ label: '璁¢噺鏂瑰紡',
+ component: 'Select',
+ componentProps: {
+ options: getDictOptions(DICT_TYPE.CRM_METER_MODE),
+ placeholder: '璇烽�夋嫨璁¢噺鏂瑰紡',
+ allowClear: true,
+ },
+ },
+ {
+ fieldName: 'payCycle',
+ label: '缂磋垂鍛ㄦ湡锛堟湀锛�',
+ component: 'InputNumber',
+ componentProps: {
+ class: '!w-full',
+ min: 1,
+ precision: 0,
+ placeholder: '璇疯緭鍏ョ即璐瑰懆鏈�',
+ },
+ },
+ {
fieldName: 'remark',
label: '澶囨敞',
component: 'Textarea',
@@ -353,6 +427,34 @@
slots: { default: 'businessName' },
},
{
+ title: '鍚堝悓绫诲瀷',
+ field: 'contractType',
+ minWidth: 110,
+ cellRender: {
+ name: 'CellDict',
+ props: { type: DICT_TYPE.CRM_CONTRACT_TYPE },
+ },
+ },
+ {
+ title: '鐢靛帇绛夌骇',
+ field: 'voltageLevel',
+ minWidth: 90,
+ cellRender: {
+ name: 'CellDict',
+ props: { type: DICT_TYPE.CRM_VOLTAGE_LEVEL },
+ },
+ },
+ {
+ title: '鍚堝悓瀹归噺',
+ field: 'contractCapacity',
+ minWidth: 100,
+ },
+ {
+ title: '鎸囦护鏁�',
+ field: 'commandCount',
+ minWidth: 80,
+ },
+ {
title: '鍚堝悓閲戦锛堝厓锛�',
field: 'totalPrice',
minWidth: 140,
--
Gitblit v1.9.3