| | |
| | | :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="代码:" prop="field2" :check-rules="[{ message: '请输入代码' }]"> |
| | | <ProFormText placeholder="请输入代码" v-model="form.field2"></ProFormText> |
| | | </ProFormItemV2> |
| | | </template> |
| | | <ProFormItemV2 label="名称:" prop="content" :check-rules="[{ message: '请输入名称' }]"> |
| | | <ProFormText |
| | | placeholder="请输入名称" |
| | |
| | | categoryCode: computed(() => CategoryCode.IndustryCategory), |
| | | }); |
| | | |
| | | const { dictionaryDataList: insuranceList } = useDictionaryDataSelect({ |
| | | categoryCode: computed(() => CategoryCode.InsuranceCompany), |
| | | }); |
| | | |
| | | const category = computed(() => { |
| | | return getDictionaryCategoryById(form.value.categoryId); |
| | | }); |