wupengfei
2 天以前 c743682ee018b25febe1c27673663b8656f5a9d9
feat: 页面
2个文件已修改
25 ■■■■ 已修改文件
src/constants/dic.ts 2 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/DictionaryManage/components/AddOrEditDictionaryDialog.vue 23 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/constants/dic.ts
@@ -25,6 +25,8 @@
  InsureWay = '120',
  /**职业类别 */
  JobCategory = '130',
  /**投保版本 */
  InsuranceVersion = '140',
}
export enum IdentityCodeEnum {
src/views/DictionaryManage/components/AddOrEditDictionaryDialog.vue
@@ -25,7 +25,8 @@
          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 +36,25 @@
        >
          <ProFormSelect
            v-model="form.field1"
            :value-enum="insuranceList"
            :value-enum="insuranceCompanyList"
            enum-value-key="code"
            :convertEnumValue="false"
          />
        </ProFormItemV2>
        <ProFormItemV2 label="代码:" prop="field2" :check-rules="[{ message: '请输入代码' }]">
          <ProFormText placeholder="请输入代码" v-model="form.field2"></ProFormText>
        </ProFormItemV2>
        <ProFormItemV2
          label="保险险种:"
          prop="field3"
          :check-rules="[{ message: '请选择保险险种' }]"
        >
          <ProFormSelect
            v-model="form.field3"
            :value-enum="insuranceTypeList"
            enum-value-key="code"
            :convertEnumValue="false"
          />
        </ProFormItemV2>
      </template>
      <ProFormItemV2 label="名称:" prop="content" :check-rules="[{ message: '请输入名称' }]">
@@ -150,10 +163,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);
});