feat(xumu): 新增保险产品类型字典

- 在 AppClaimApply 和 AppClaimAudit 组件中添加 productType 字典加载
- 在 add.vue 组件中使用 productType 字典获取保险产品类型标签
This commit is contained in:
aixianling
2025-01-17 11:09:53 +08:00
parent a3ea6d9c51
commit 6744b18240
4 changed files with 8 additions and 8 deletions

View File

@@ -12,19 +12,19 @@ export default {
}, },
computed: { computed: {
currentPage() { currentPage() {
let {hash} = this.$route let { hash } = this.$route
return ["#claim", "#add"].includes(hash) ? add : list return ["#claim", "#add"].includes(hash) ? add : list
} }
}, },
created() { created() {
this.dict.load("auditStatus", "insureType", "insureStatus", "category", "variety") this.dict.load("auditStatus", "insureType", "insureStatus", "category", "variety", "productType")
}, },
} }
</script> </script>
<template> <template>
<section class="AppClaimApply"> <section class="AppClaimApply">
<component :is="currentPage" v-bind="$props"/> <component :is="currentPage" v-bind="$props" />
</section> </section>
</template> </template>

View File

@@ -92,7 +92,7 @@ export default {
<ai-input :value="dict.getLabel('insureType', detail.insureType)" :edit="!1" /> <ai-input :value="dict.getLabel('insureType', detail.insureType)" :edit="!1" />
</el-form-item> </el-form-item>
<el-form-item label="保险产品" prop="productType"> <el-form-item label="保险产品" prop="productType">
<b v-text="detail.productType" /> <b v-text="dict.getLabel('productType',detail.productType)" />
</el-form-item> </el-form-item>
<el-form-item label="联系人"> <el-form-item label="联系人">
<ai-input v-model="detail.contacts" :edit="!1" /> <ai-input v-model="detail.contacts" :edit="!1" />

View File

@@ -12,19 +12,19 @@ export default {
}, },
computed: { computed: {
currentPage() { currentPage() {
let {hash} = this.$route let { hash } = this.$route
return ["#audit", "#add"].includes(hash) ? add : list return ["#audit", "#add"].includes(hash) ? add : list
} }
}, },
created() { created() {
this.dict.load("auditStatus", "insureType", "insureStatus", "category", "variety") this.dict.load("auditStatus", "insureType", "insureStatus", "category", "variety", "productType")
}, },
} }
</script> </script>
<template> <template>
<section class="AppClaimAudit"> <section class="AppClaimAudit">
<component :is="currentPage" v-bind="$props"/> <component :is="currentPage" v-bind="$props" />
</section> </section>
</template> </template>

View File

@@ -90,7 +90,7 @@ export default {
<ai-input :value="dict.getLabel('insureType',detail.insureType)" :edit="!1"/> <ai-input :value="dict.getLabel('insureType',detail.insureType)" :edit="!1"/>
</el-form-item> </el-form-item>
<el-form-item label="保险产品" prop="productType"> <el-form-item label="保险产品" prop="productType">
<b v-text="detail.productType"/> <b v-text="dict.getLabel('productType',detail.productType)"/>
</el-form-item> </el-form-item>
<el-form-item label="联系人"> <el-form-item label="联系人">
<ai-input v-model="detail.contacts" :edit="!1"/> <ai-input v-model="detail.contacts" :edit="!1"/>