2025-01-02 15:30:44 +08:00
|
|
|
<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() {
|
2025-01-17 11:09:53 +08:00
|
|
|
let { hash } = this.$route
|
2025-01-02 15:30:44 +08:00
|
|
|
return ["#claim", "#add"].includes(hash) ? add : list
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
created() {
|
2025-01-17 11:09:53 +08:00
|
|
|
this.dict.load("auditStatus", "insureType", "insureStatus", "category", "variety", "productType")
|
2025-01-02 15:30:44 +08:00
|
|
|
},
|
|
|
|
|
}
|
|
|
|
|
</script>
|
|
|
|
|
|
|
|
|
|
<template>
|
|
|
|
|
<section class="AppClaimApply">
|
2025-01-17 11:09:53 +08:00
|
|
|
<component :is="currentPage" v-bind="$props" />
|
2025-01-02 15:30:44 +08:00
|
|
|
</section>
|
|
|
|
|
</template>
|
|
|
|
|
|
|
|
|
|
<style scoped lang="scss">
|
|
|
|
|
.AppClaimApply {
|
|
|
|
|
height: 100%;
|
|
|
|
|
}
|
|
|
|
|
</style>
|