订单列表点击编辑功能存储branchType字段用于显示GBC的项目信息

This commit is contained in:
liu.xiaofeng@ebiz-digits.com
2023-12-28 14:40:04 +08:00
parent db492bce0d
commit 960323f30f
2 changed files with 25 additions and 9 deletions

View File

@@ -2,7 +2,7 @@
<div class="detail-container">
<van-collapse v-model="activeNames">
<!-- 保单信息 -->
<van-collapse-item title="投保单信息" name="1" class="pb10 pt10">
<van-collapse-item v-if="branchType == '13'" title="投保单信息" name="1" class="pb10 pt10">
<van-cell-group>
<van-cell title="投保单号" :value="OrderInfoDTO.orderNo" />
<van-cell title="投保日期" :value="OrderInfoDTO.appntDateLabel" />
@@ -15,21 +15,21 @@
</van-collapse-item>
<!-- 项目信息 -->
<van-collapse-item title="项目信息" name="3" class="detail-title pb10">
<van-collapse-item title="项目信息" name="3" v-if="branchType == '13'" class="detail-title pb10">
<van-cell-group>
<van-cell title="平台名称" :value="appntDTO.name" />
<van-cell title="项目名称" :value="appntDTO.sex" />
<van-cell title="团队组代码" :value="appntDTO.idType" />
<van-cell title="服务截止日期" :value="appntDTO.idNo" />
<van-cell title="录单人工号" :value="appntDTO.mobileStar" />
<van-cell title="出单人工号" :value="appntDTO.mobileStar" />
<van-cell title="平台名称" :value="ebizOrderGbcRelDTO.platformName" />
<van-cell title="项目名称" :value="ebizOrderGbcRelDTO.projectName" />
<van-cell title="团队组代码" :value="ebizOrderGbcRelDTO.teamCode" />
<van-cell title="服务截止日期" :value="ebizOrderGbcRelDTO.endDate" />
<van-cell title="录单人工号" :value="ebizOrderGbcRelDTO.personCode" />
<van-cell title="出单人工号" :value="ebizOrderGbcRelDTO.leaderCode" />
</van-cell-group>
</van-collapse-item>
<!-- 投保人信息 -->
<van-collapse-item title="投保人信息" name="2" class="detail-title pb10">
<van-cell-group>
<van-cell title="部门/科室" :value="appntDTO.name" />
<van-cell title="部门/科室" :value="ebizOrderGbcRelDTO.departmentCode" />
<van-cell title="投保人" :value="appntDTO.name" />
<van-cell title="性别" :value="appntDTO.sex" />
<van-cell title="证件类型" :value="appntDTO.idType" />
@@ -117,10 +117,13 @@ import { getQuestionList } from '@/api/ebiz/questions'
export default {
data() {
return {
branchType:'',
// 折叠面板
activeNames: ['1'],
// 保单基本信息
OrderInfoDTO: {},
// 项目信息
ebizOrderGbcRelDTO:{},
// 投保人信息
appntDTO: {},
// 被保险人信息
@@ -136,6 +139,11 @@ export default {
// 获取保单详情
this.getPolicyDetail()
},
mounted() {
if(window.localStorage.getItem('branchType') == '13') {
this.branchType = '13'
}
},
components: {
[Collapse.name]: Collapse,
[CollapseItem.name]: CollapseItem,
@@ -171,6 +179,7 @@ export default {
res.orderDTO.orderInfoDTO.bnfFlag = '法定受益人'
}
this.OrderInfoDTO = res.orderDTO.orderInfoDTO
this.ebizOrderGbcRelDTO = res.orderDTO.ebizOrderGbcRelDTO
this.appntDTO = res.orderDTO.appntDTO
this.reason = res.orderDTO.reason

View File

@@ -449,8 +449,15 @@ export default {
//投保单详情
async goDetail(order) {
let thisToken = this.$CacheUtils.getLocItem('token')
let thisbranchType = ''
if(this.$CacheUtils.getLocItem('branchType') == '13') {
thisbranchType = this.$CacheUtils.getLocItem('branchType')
}
window.localStorage.clear()
this.$CacheUtils.setLocItem('token', thisToken)
if(thisbranchType) {
this.$CacheUtils.setLocItem('branchType', thisbranchType)
}
window.localStorage.setItem('detailJump', '')
if (order.insuredDTOs[0]) {
if (order.insuredDTOs[0].riskDTOLst[0]) {