c10f11f81985baabd699abbfcb3f64d576055014..9447dee4dcb127c384e18318782b9c3bb44b8bef
2 天以前 wupengfei
feat: 页面
9447de 对比 | 目录
2 天以前 wupengfei
feat: 页面
69118f 对比 | 目录
2 天以前 wupengfei
feat: 页面
c74368 对比 | 目录
2 天以前 wupengfei
feat: 页面
a5af9a 对比 | 目录
2个文件已修改
53 ■■■■■ 已修改文件
src/constants/dic.ts 12 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/DictionaryManage/components/AddOrEditDictionaryDialog.vue 41 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/constants/dic.ts
@@ -15,6 +15,18 @@
  Area = '70',
  /**行政地区 */
  ElectronSignParam = '80',
  /**保险公司 */
  InsuranceCompany = '90',
  /**保险险种 */
  InsuranceType = '100',
  /**保额 */
  SumInsured = '110',
  /**投保方式 */
  InsureWay = '120',
  /**职业类别 */
  JobCategory = '130',
  /**投保版本 */
  InsuranceVersion = '140',
}
export enum IdentityCodeEnum {
src/views/DictionaryManage/components/AddOrEditDictionaryDialog.vue
@@ -20,6 +20,39 @@
          :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.InsuranceVersion
        "
      >
        <ProFormItemV2
          label="保险公司:"
          prop="field1"
          :check-rules="[{ message: '请选择保险公司' }]"
        >
          <ProFormSelect
            v-model="form.field1"
            :value-enum="insuranceCompanyList"
            enum-value-key="code"
            :convertEnumValue="false"
          />
        </ProFormItemV2>
        <ProFormItemV2 label="代码:" 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: '请输入名称' }]">
        <ProFormText
          placeholder="请输入名称"
@@ -126,6 +159,14 @@
  categoryCode: computed(() => CategoryCode.IndustryCategory),
});
const { dictionaryDataList: insuranceCompanyList } = useDictionaryDataSelect({
  categoryCode: computed(() => CategoryCode.InsuranceCompany),
});
const { dictionaryDataList: insuranceTypeList } = useDictionaryDataSelect({
  categoryCode: computed(() => CategoryCode.InsuranceType),
});
const category = computed(() => {
  return getDictionaryCategoryById(form.value.categoryId);
});