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/views/DictionaryManage/components/AddOrEditDictionaryDialog.vue |   54 ++++++++++++++++++++++++++++++++++++++++++++++--------
 1 files changed, 46 insertions(+), 8 deletions(-)

diff --git a/src/views/DictionaryManage/components/AddOrEditDictionaryDialog.vue b/src/views/DictionaryManage/components/AddOrEditDictionaryDialog.vue
index 52032b2..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="璇疯緭鍏ュ悕绉�"
@@ -39,14 +63,23 @@
       <ProFormItemV2 label="缂栧彿:" prop="code" :check-rules="[{ message: '璇疯緭鍏ョ紪鍙�' }]">
         <ProFormText v-model.trim="form.code" :disabled="!!form.id"></ProFormText>
       </ProFormItemV2>
-      <ProFormItemV2
-        label="鍙傛暟瀛楁鍚�:"
-        prop="field3"
-        :check-rules="[{ message: '璇疯緭鍏ュ弬鏁板瓧娈靛悕' }]"
-        v-if="category?.data?.code === CategoryCode.ElectronSignParam"
-      >
-        <ProFormText v-model.trim="form.field3"></ProFormText>
-      </ProFormItemV2>
+      <template v-if="category?.data?.code === CategoryCode.ElectronSignParam">
+        <ProFormItemV2
+          label="鍙傛暟瀛楁鍚�:"
+          prop="field3"
+          :check-rules="[{ message: '璇疯緭鍏ュ弬鏁板瓧娈靛悕' }]"
+        >
+          <ProFormText v-model.trim="form.field3" placeholder="璇疯緭鍏ュ弬鏁板瓧娈靛悕"></ProFormText>
+        </ProFormItemV2>
+        <ProFormItemV2
+          label="缁戝畾瀛楁鍚�:"
+          prop="field4"
+          :check-rules="[{ message: '璇疯緭鍏ョ粦瀹氬瓧娈靛悕' }]"
+        >
+          <ProFormText v-model.trim="form.field4" placeholder="璇疯緭鍏ョ粦瀹氬瓧娈靛悕"></ProFormText>
+        </ProFormItemV2>
+      </template>
+
       <ProFormItemV2
         label="鍥剧墖:"
         prop="field2"
@@ -105,6 +138,7 @@
   field1?: string;
   field2?: UploadUserFile[];
   field3?: string;
+  field4?: string;
 };
 
 const form = defineModel<Form>('form');
@@ -116,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