zhengyiming
2 天以前 97334831995a7a442af237dd44eaf3fc7edc120b
src/views/DictionaryManage/components/AddOrEditDictionaryDialog.vue
@@ -20,6 +20,18 @@
          :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 ||
@@ -41,14 +53,10 @@
            :convertEnumValue="false"
          />
        </ProFormItemV2>
        <ProFormItemV2 label="代码:" prop="field2" :check-rules="[{ message: '请输入代码' }]">
          <ProFormText placeholder="请输入代码" v-model="form.field2"></ProFormText>
        <ProFormItemV2 label="代码:" prop="field4" :check-rules="[{ message: '请输入代码' }]">
          <ProFormText placeholder="请输入代码" v-model="form.field4"></ProFormText>
        </ProFormItemV2>
        <ProFormItemV2
          label="保险险种:"
          prop="field3"
          :check-rules="[{ message: '请选择保险险种' }]"
        >
        <ProFormItemV2 label="保险险种:" prop="field3">
          <ProFormSelect
            v-model="form.field3"
            :value-enum="insuranceTypeList"
@@ -134,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',