- 添加理赔申请和贷款申请的路由、页面组件和相关逻辑 - 实现理赔申请和贷款申请的数据获取、表单提交和审核流程 - 优化耳标选择器组件,支持在不同场景下的使用 - 调整图片上传组件,增加只读模式和预览功能
36 lines
669 B
Vue
36 lines
669 B
Vue
<script>
|
|
import add from "./add.vue";
|
|
import list from "./list.vue";
|
|
|
|
export default {
|
|
name: "AppClaimApply",
|
|
label: "理赔申请",
|
|
props: {
|
|
instance: Function,
|
|
dict: Object,
|
|
permissions: Function
|
|
},
|
|
computed: {
|
|
currentPage() {
|
|
let {hash} = this.$route
|
|
return ["#claim", "#add"].includes(hash) ? add : list
|
|
}
|
|
},
|
|
created() {
|
|
this.dict.load("auditStatus", "insureType", "insureStatus", "category", "variety")
|
|
},
|
|
}
|
|
</script>
|
|
|
|
<template>
|
|
<section class="AppClaimApply">
|
|
<component :is="currentPage" v-bind="$props"/>
|
|
</section>
|
|
</template>
|
|
|
|
<style scoped lang="scss">
|
|
.AppClaimApply {
|
|
height: 100%;
|
|
}
|
|
</style>
|