From 5cc0cbeb28fa80bb734f007248eca2a4c69172c4 Mon Sep 17 00:00:00 2001
From: wupengfei <834520024@qq.com>
Date: 星期五, 12 十二月 2025 13:19:55 +0800
Subject: [PATCH] feat: 页面
---
src/views/DictionaryManage/components/AddOrEditDictionaryDialog.vue | 37 +++++++++++++++++++++++++++++++------
1 files changed, 31 insertions(+), 6 deletions(-)
diff --git a/src/views/DictionaryManage/components/AddOrEditDictionaryDialog.vue b/src/views/DictionaryManage/components/AddOrEditDictionaryDialog.vue
index 7f57cf6..36b8b82 100644
--- a/src/views/DictionaryManage/components/AddOrEditDictionaryDialog.vue
+++ b/src/views/DictionaryManage/components/AddOrEditDictionaryDialog.vue
@@ -20,12 +20,25 @@
:convertEnumValue="false"
/>
</ProFormItemV2>
+ <ProFormItemV2
+ label="淇濋櫓閫氶亾:"
+ prop="field1"
+ v-if="category?.data?.code === CategoryCode.InsuranceCompany"
+ :check-rules="[{ message: '璇烽�夋嫨淇濋櫓閫氶亾' }]"
+ >
+ <ProFormSelect
+ v-model="form.field1"
+ :value-enum="EnumInsuranceSupplierAccessText"
+ :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
+ category?.data?.code === CategoryCode.JobCategory ||
+ category?.data?.code === CategoryCode.InsuranceVersion
"
>
<ProFormItemV2
@@ -35,13 +48,21 @@
>
<ProFormSelect
v-model="form.field1"
- :value-enum="insuranceList"
+ :value-enum="insuranceCompanyList"
enum-value-key="code"
:convertEnumValue="false"
/>
</ProFormItemV2>
- <ProFormItemV2 label="浠g爜:" prop="field2" :check-rules="[{ message: '璇疯緭鍏ヤ唬鐮�' }]">
- <ProFormText placeholder="璇疯緭鍏ヤ唬鐮�" v-model="form.field2"></ProFormText>
+ <ProFormItemV2 label="浠g爜:" prop="field4" :check-rules="[{ message: '璇疯緭鍏ヤ唬鐮�' }]">
+ <ProFormText placeholder="璇疯緭鍏ヤ唬鐮�" v-model="form.field4"></ProFormText>
+ </ProFormItemV2>
+ <ProFormItemV2 label="淇濋櫓闄╃:" prop="field3">
+ <ProFormSelect
+ v-model="form.field3"
+ :value-enum="insuranceTypeList"
+ enum-value-key="code"
+ :convertEnumValue="false"
+ />
</ProFormItemV2>
</template>
<ProFormItemV2 label="鍚嶇О:" prop="content" :check-rules="[{ message: '璇疯緭鍏ュ悕绉�' }]">
@@ -121,7 +142,7 @@
ProFormImageUpload,
} from '@bole-core/components';
import { useDictionaryDataSelect, useGetDictionaryCategorySelect } from '@/hooks';
-import { CategoryCode } from '@/constants';
+import { CategoryCode, EnumInsuranceSupplierAccessText } from '@/constants';
defineOptions({
name: 'AddOrEditDictionaryDialog',
@@ -150,10 +171,14 @@
categoryCode: computed(() => CategoryCode.IndustryCategory),
});
-const { dictionaryDataList: insuranceList } = useDictionaryDataSelect({
+const { dictionaryDataList: insuranceCompanyList } = useDictionaryDataSelect({
categoryCode: computed(() => CategoryCode.InsuranceCompany),
});
+const { dictionaryDataList: insuranceTypeList } = useDictionaryDataSelect({
+ categoryCode: computed(() => CategoryCode.InsuranceType),
+});
+
const category = computed(() => {
return getDictionaryCategoryById(form.value.categoryId);
});
--
Gitblit v1.9.1