区分营业部经理和服务经理的数据显示

This commit is contained in:
liu.xiaofeng@ebiz-digits.com
2023-10-30 16:21:20 +08:00
parent 8769293cba
commit 87ce8a30c3
2 changed files with 38 additions and 10 deletions

View File

@@ -5,7 +5,8 @@
<van-cell title="联系人姓名" :value="dataInfo.contactName" /> <van-cell title="联系人姓名" :value="dataInfo.contactName" />
<van-cell title="联系电话" :value="dataInfo.contactPhone" /> <van-cell title="联系电话" :value="dataInfo.contactPhone" />
<van-cell title="原保单号" v-if="this.$route.query.renewalFlag == '0'" :value="dataInfo.contNo" /> <van-cell title="原保单号" v-if="this.$route.query.renewalFlag == '0'" :value="dataInfo.contNo" />
<van-cell title="保单号" v-if="this.$route.query.renewalFlag == '1'" :value="dataInfo.contNo" /> <van-cell title="保单号" v-if="this.$route.query.renewalFlag == '1' && agentType == '服务经理'" :value="dataInfo.contNo" />
<van-cell title="新保单号" v-if="this.$route.query.renewalFlag == '1' && agentType == '营业部经理'" :value="dataInfo.contNo" />
<div v-if="this.$route.query.renewalFlag == '0'"> <div v-if="this.$route.query.renewalFlag == '0'">
<div v-for="item in dataInfo.oldRiskMessageDTOList"> <div v-for="item in dataInfo.oldRiskMessageDTOList">
<van-cell title="原保单险种名称" :value="item.riskName" /> <van-cell title="原保单险种名称" :value="item.riskName" />
@@ -13,8 +14,10 @@
</div> </div>
</div> </div>
<van-cell title="保单保费" v-if="this.$route.query.renewalFlag == '1'" :value="dataInfo.prem" /> <van-cell title="保单保费" v-if="this.$route.query.renewalFlag == '1'" :value="dataInfo.prem" />
<van-cell title="代理人" :value="dataInfo.agentCustomerManagerName" /> <van-cell title="代理人" v-if="agentType == '服务经理'" :value="dataInfo.agentCustomerManagerName" />
<van-cell title="代理人工号" :value="dataInfo.agentCustomerManagertCode" /> <van-cell title="代理人工号" v-if="agentType == '服务经理'" :value="dataInfo.agentCustomerManagertCode" />
<van-cell title="客户经理" v-if="agentType == '营业部经理'" :value="dataInfo.agentCustomerManagerName" />
<van-cell title="客户经理工号" v-if="agentType == '营业部经理'" :value="dataInfo.agentCustomerManagertCode" />
<van-collapse v-if="this.$route.query.renewalFlag == '0'" v-model="activeName1"> <van-collapse v-if="this.$route.query.renewalFlag == '0'" v-model="activeName1">
<van-collapse-item name="1"> <van-collapse-item name="1">
<template #title> <template #title>
@@ -31,7 +34,7 @@
<div style="display: flex;width: 100%;justify-content: space-between"> <div style="display: flex;width: 100%;justify-content: space-between">
<span style="width: 33%;">未续保原因</span> <span style="width: 33%;">未续保原因</span>
<p style="display: inline-block;width: 44%;overflow:hidden;text-overflow: ellipsis;color: #969799;white-space: nowrap;">{{dataInfo.reason}}</p> <p style="display: inline-block;width: 44%;overflow:hidden;text-overflow: ellipsis;color: #969799;white-space: nowrap;">{{dataInfo.reason}}</p>
<van-button type="danger" round size="mini" @click.stop="dialogshow = true" style="margin-right: 10px;">编辑</van-button> <van-button type="danger" v-if="agentType == '服务经理'" round size="mini" @click.stop="dialogshow = true" style="margin-right: 10px;">编辑</van-button>
</div> </div>
</template> </template>
<div>{{dataInfo.reason}}</div> <div>{{dataInfo.reason}}</div>
@@ -47,6 +50,7 @@
<script> <script>
import { Collapse, CollapseItem, Cell} from 'vant' import { Collapse, CollapseItem, Cell} from 'vant'
import { getAgentInfo } from '@/api/ebiz/my/my.js'
import { healthgetRenewalListDetail, reasonForNonRenewalSubmitted } from '@/api/ebiz/healthInsuranceRenewal/healthInsuranceRenewal' import { healthgetRenewalListDetail, reasonForNonRenewalSubmitted } from '@/api/ebiz/healthInsuranceRenewal/healthInsuranceRenewal'
export default { export default {
components: { components: {
@@ -56,6 +60,7 @@
}, },
data() { data() {
return { return {
agentType: '',
dataInfo:{}, dataInfo:{},
activeName1:[], activeName1:[],
activeName2:[], activeName2:[],
@@ -67,9 +72,26 @@
}, },
mounted() { mounted() {
this.healthgetRenewalListDetail() this.getAgentInfo()
}, },
methods:{ methods:{
getAgentInfo(){
let params = {
}
getAgentInfo(params).then(res=>{
if (res.result == 0) {
if(res.agentGrade == 'G200' || res.agentGrade == 'G201' || res.agentGrade == 'G202' || res.agentGrade == 'G202' || res.agentGrade == 'G204'){
this.agentType = '营业部经理'
} else {
this.agentType = '服务经理'
}
this.healthgetRenewalListDetail()
} else {
this.$toast(res.resultMessage)
}
})
},
healthgetRenewalListDetail(){ healthgetRenewalListDetail(){
let params = { let params = {
"renewalFlag":this.$route.query.renewalFlag, "renewalFlag":this.$route.query.renewalFlag,

View File

@@ -1,6 +1,6 @@
<template> <template>
<div class="sale-list-container pb50"> <div class="sale-list-container pb50">
<van-search placeholder="请选择客户经理姓名" v-model="searchName" show-action @change="searchList" @keyup.enter="searchList"> <van-search v-if="agentType == '营业部经理'" placeholder="请选择客户经理姓名" v-model="searchName" show-action @change="searchList" @keyup.enter="searchList">
<template #action> <template #action>
<div style="display: flex;"> <div style="display: flex;">
<div @click="searchList" style="padding: 0px 10px;border: 1px solid #eee;border-radius: 5px;">搜索</div> <div @click="searchList" style="padding: 0px 10px;border: 1px solid #eee;border-radius: 5px;">搜索</div>
@@ -8,9 +8,9 @@
</div> </div>
</template> </template>
</van-search> </van-search>
<!-- <div style="display: flex;line-height: 36px;background:#fff;padding: 10px;">--> <div v-if="agentType == '服务经理'" style="display: flex;line-height: 36px;background:#fff;padding: 10px;">
<!-- <div style="padding: 0px 10px;border: 1px solid #eee;border-radius: 5px;margin-left: 15px;" @click="openshowDataPicker">日期</div>--> <div style="padding: 0px 10px;border: 1px solid #eee;border-radius: 5px;margin-left: 15px;" @click="openshowDataPicker">日期</div>
<!-- </div>--> </div>
<van-sticky> <van-sticky>
<van-tabs :line-width="45" v-model="active" @change="tabChange" sticky> <van-tabs :line-width="45" v-model="active" @change="tabChange" sticky>
<van-tab name="0" title="未续保"></van-tab> <van-tab name="0" title="未续保"></van-tab>
@@ -35,7 +35,7 @@
<div style="line-height: 35px;"><span style="width: 40%;display: inline-block;">保单终止时间</span><span style="width: 60%;display: inline-block;">{{item.endDate}}</span></div> <div style="line-height: 35px;"><span style="width: 40%;display: inline-block;">保单终止时间</span><span style="width: 60%;display: inline-block;">{{item.endDate}}</span></div>
<div style="line-height: 35px;" v-if="item.continueFlag == '0'"><span style="width: 40%;display: inline-block;">是否续保</span><span style="width: 60%;display: inline-block;color: #d9001b;">未续保</span></div> <div style="line-height: 35px;" v-if="item.continueFlag == '0'"><span style="width: 40%;display: inline-block;">是否续保</span><span style="width: 60%;display: inline-block;color: #d9001b;">未续保</span></div>
<div style="line-height: 35px;" v-if="item.continueFlag == '1'"><span style="width: 40%;display: inline-block;">是否续保</span><span style="width: 60%;display: inline-block;">已续保</span></div> <div style="line-height: 35px;" v-if="item.continueFlag == '1'"><span style="width: 40%;display: inline-block;">是否续保</span><span style="width: 60%;display: inline-block;">已续保</span></div>
<div style="line-height: 35px;"><span style="width: 40%;display: inline-block;">服务经理</span><span style="width: 60%;display: inline-block;">{{item.agentManager}}</span></div> <div style="line-height: 35px;" v-if="agentType == '营业部经理'"><span style="width: 40%;display: inline-block;">服务经理</span><span style="width: 60%;display: inline-block;">{{item.agentManager}}</span></div>
<div style="line-height: 35px;display: flex;justify-content: flex-end;"><van-button round @click="goDetail(item)" size="small" style="height: 26px;line-height: 26px;" class="mr5" type="danger" v-no-more-click="1000">详情</van-button></div> <div style="line-height: 35px;display: flex;justify-content: flex-end;"><van-button round @click="goDetail(item)" size="small" style="height: 26px;line-height: 26px;" class="mr5" type="danger" v-no-more-click="1000">详情</van-button></div>
</div> </div>
</div> </div>
@@ -69,6 +69,7 @@ export default {
}, },
data() { data() {
return { return {
agentType: '',
searchName: '', searchName: '',
active: '0', active: '0',
listData: [], listData: [],
@@ -97,6 +98,11 @@ export default {
} }
getAgentInfo(params).then(res=>{ getAgentInfo(params).then(res=>{
if (res.result == 0) { if (res.result == 0) {
if(res.agentGrade == 'G200' || res.agentGrade == 'G201' || res.agentGrade == 'G202' || res.agentGrade == 'G202' || res.agentGrade == 'G204'){
this.agentType = '营业部经理'
} else {
this.agentType = '服务经理'
}
this.getOrderList() this.getOrderList()
} else { } else {
this.$toast(res.resultMessage) this.$toast(res.resultMessage)