From a5af9ac079675bfcc6b264211da527d17beedb7a Mon Sep 17 00:00:00 2001
From: wupengfei <834520024@qq.com>
Date: 星期四, 11 十二月 2025 09:45:12 +0800
Subject: [PATCH] feat: 页面
---
src/constants/dic.ts | 10 ++++++++++
src/views/DictionaryManage/components/AddOrEditDictionaryDialog.vue | 28 ++++++++++++++++++++++++++++
2 files changed, 38 insertions(+), 0 deletions(-)
diff --git a/src/constants/dic.ts b/src/constants/dic.ts
index e7ee8f2..c1e8cc5 100644
--- a/src/constants/dic.ts
+++ b/src/constants/dic.ts
@@ -15,6 +15,16 @@
Area = '70',
/**琛屾斂鍦板尯 */
ElectronSignParam = '80',
+ /**淇濋櫓鍏徃 */
+ InsuranceCompany = '90',
+ /**淇濋櫓闄╃ */
+ InsuranceType = '100',
+ /**淇濋 */
+ SumInsured = '110',
+ /**鎶曚繚鏂瑰紡 */
+ InsureWay = '120',
+ /**鑱屼笟绫诲埆 */
+ JobCategory = '130',
}
export enum IdentityCodeEnum {
diff --git a/src/views/DictionaryManage/components/AddOrEditDictionaryDialog.vue b/src/views/DictionaryManage/components/AddOrEditDictionaryDialog.vue
index e34bf6a..7f57cf6 100644
--- a/src/views/DictionaryManage/components/AddOrEditDictionaryDialog.vue
+++ b/src/views/DictionaryManage/components/AddOrEditDictionaryDialog.vue
@@ -20,6 +20,30 @@
:convertEnumValue="false"
/>
</ProFormItemV2>
+ <template
+ v-if="
+ category?.data?.code === CategoryCode.InsuranceType ||
+ category?.data?.code === CategoryCode.SumInsured ||
+ category?.data?.code === CategoryCode.InsureWay ||
+ category?.data?.code === CategoryCode.JobCategory
+ "
+ >
+ <ProFormItemV2
+ label="淇濋櫓鍏徃:"
+ prop="field1"
+ :check-rules="[{ message: '璇烽�夋嫨淇濋櫓鍏徃' }]"
+ >
+ <ProFormSelect
+ v-model="form.field1"
+ :value-enum="insuranceList"
+ enum-value-key="code"
+ :convertEnumValue="false"
+ />
+ </ProFormItemV2>
+ <ProFormItemV2 label="浠g爜:" prop="field2" :check-rules="[{ message: '璇疯緭鍏ヤ唬鐮�' }]">
+ <ProFormText placeholder="璇疯緭鍏ヤ唬鐮�" v-model="form.field2"></ProFormText>
+ </ProFormItemV2>
+ </template>
<ProFormItemV2 label="鍚嶇О:" prop="content" :check-rules="[{ message: '璇疯緭鍏ュ悕绉�' }]">
<ProFormText
placeholder="璇疯緭鍏ュ悕绉�"
@@ -126,6 +150,10 @@
categoryCode: computed(() => CategoryCode.IndustryCategory),
});
+const { dictionaryDataList: insuranceList } = useDictionaryDataSelect({
+ categoryCode: computed(() => CategoryCode.InsuranceCompany),
+});
+
const category = computed(() => {
return getDictionaryCategoryById(form.value.categoryId);
});
--
Gitblit v1.9.1