mirror of
http://112.124.100.131/GFRS/ebiz-h5.git
synced 2025-12-07 21:46:43 +08:00
Compare commits
35 Commits
release/【2
...
hotfix/【20
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
56f1a751d6 | ||
|
|
29caa2a03f | ||
|
|
8621137660 | ||
|
|
1e0113b597 | ||
|
|
1b68a6f001 | ||
|
|
4b68721ab4 | ||
|
|
4a2a41f31e | ||
|
|
f4ae03c78c | ||
|
|
e572bae4ff | ||
|
|
532592851f | ||
|
|
ffab856a30 | ||
|
|
44607614ca | ||
|
|
bd071eadef | ||
|
|
f440cee91a | ||
|
|
ae3847fec6 | ||
|
|
84a2036eba | ||
|
|
1328f504f7 | ||
|
|
fa199309a8 | ||
|
|
2097fab789 | ||
|
|
8808228c81 | ||
|
|
a399ce7a1b | ||
|
|
76d944b07b | ||
|
|
03ffd1106d | ||
|
|
d2523b2deb | ||
|
|
002d0a0be4 | ||
|
|
8c969e235e | ||
|
|
8ec51b01c8 | ||
|
|
7f9130542b | ||
|
|
946d3b80c1 | ||
|
|
18f42946ff | ||
|
|
2ddde67c40 | ||
|
|
dbdb41fecd | ||
|
|
d96ae3f51f | ||
|
|
965d5b0abf | ||
|
|
1a090b7073 |
@@ -0,0 +1,34 @@
|
||||
import request from '@/assets/js/utils/request'
|
||||
import getUrl from '@/assets/js/utils/get-url'
|
||||
|
||||
export function healthgetRenewalList(data) {
|
||||
return request({
|
||||
url: getUrl('/sale/health/getRenewalList', 1),
|
||||
method: 'post',
|
||||
data
|
||||
})
|
||||
}
|
||||
|
||||
export function healthgetRenewalListDetail(data) {
|
||||
return request({
|
||||
url: getUrl('/sale/health/getRenewalListDetail', 1),
|
||||
method: 'post',
|
||||
data
|
||||
})
|
||||
}
|
||||
|
||||
export function reasonForNonRenewalSubmitted(data) {
|
||||
return request({
|
||||
url: getUrl('/sale/health/reasonForNonRenewalSubmitted', 1),
|
||||
method: 'post',
|
||||
data
|
||||
})
|
||||
}
|
||||
|
||||
export function getAgentManager(data) {
|
||||
return request({
|
||||
url: getUrl('/sale/health/getAgentManager', 1),
|
||||
method: 'post',
|
||||
data
|
||||
})
|
||||
}
|
||||
Binary file not shown.
|
Before Width: | Height: | Size: 1.2 MiB After Width: | Height: | Size: 579 KiB |
Binary file not shown.
|
Before Width: | Height: | Size: 613 KiB After Width: | Height: | Size: 303 KiB |
Binary file not shown.
|
Before Width: | Height: | Size: 76 KiB After Width: | Height: | Size: 28 KiB |
@@ -1773,7 +1773,7 @@ export default {
|
||||
},
|
||||
{
|
||||
id: '07',
|
||||
text: '公司谢绝'
|
||||
text: '提交失败'
|
||||
},
|
||||
{
|
||||
id: '08',
|
||||
@@ -1977,7 +1977,7 @@ export default {
|
||||
},
|
||||
{
|
||||
id: '58',
|
||||
text: '转人核支付'
|
||||
text: '待支付'
|
||||
},
|
||||
{
|
||||
id: '59',
|
||||
|
||||
@@ -29,29 +29,29 @@ function getSearchString (key) {
|
||||
}
|
||||
return obj[key]
|
||||
}
|
||||
let apiVersion = 'v2'
|
||||
var ua = window.navigator.userAgent.toLowerCase()
|
||||
//通过正则表达式匹配ua中是否含有MicroMessenger字符串, 在微信
|
||||
if (localStorage.getItem('apiVersion')) {
|
||||
apiVersion = localStorage.getItem('apiVersion')
|
||||
} else {
|
||||
if (ua.match(/MicroMessenger/i) == 'micromessenger') {
|
||||
//report/reportList数据报表页面在浏览器可以打开了,但在微信或企业微信中打开不了,接口请求不需要token
|
||||
if (window.location.href.indexOf('apiVersion') > 0) {
|
||||
apiVersion = getSearchString('apiVersion') == 'V3' ? 'v3' : 'v2';//url中apiVersion没有时,为v2
|
||||
} else {
|
||||
apiVersion = 'v3'
|
||||
}
|
||||
} else {
|
||||
// 在app
|
||||
if (navigator.userAgent.indexOf('JZG_') > 0) {
|
||||
apiVersion = navigator.userAgent.split('JZG_')[1].split('/')[0].split('_')[1] == 'V3' ? 'v3' : 'v2'
|
||||
}
|
||||
}
|
||||
window.localStorage.setItem('apiVersion', apiVersion)
|
||||
}
|
||||
// 可以多个接口域名,按需添加
|
||||
console.log('环境:', process.env.VUE_APP_FLAG)
|
||||
let apiVersion = 'v1'
|
||||
// var ua = window.navigator.userAgent.toLowerCase()
|
||||
// //通过正则表达式匹配ua中是否含有MicroMessenger字符串, 在微信
|
||||
// if (localStorage.getItem('apiVersion')) {
|
||||
// apiVersion = localStorage.getItem('apiVersion')
|
||||
// } else {
|
||||
// if (ua.match(/MicroMessenger/i) == 'micromessenger') {
|
||||
// //report/reportList数据报表页面在浏览器可以打开了,但在微信或企业微信中打开不了,接口请求不需要token
|
||||
// if (window.location.href.indexOf('apiVersion') > 0) {
|
||||
// apiVersion = getSearchString('apiVersion') == 'V3' ? 'v3' : 'v2';//url中apiVersion没有时,为v2
|
||||
// } else {
|
||||
// apiVersion = 'v3'
|
||||
// }
|
||||
// } else {
|
||||
// // 在app
|
||||
// if (navigator.userAgent.indexOf('JZG_') > 0) {
|
||||
// apiVersion = navigator.userAgent.split('JZG_')[1].split('/')[0].split('_')[1] == 'V3' ? 'v3' : 'v2'
|
||||
// }
|
||||
// }
|
||||
// window.localStorage.setItem('apiVersion', apiVersion)
|
||||
// }
|
||||
// // 可以多个接口域名,按需添加
|
||||
// console.log('环境:', process.env.VUE_APP_FLAG)
|
||||
switch (process.env.VUE_APP_FLAG) {
|
||||
case 'dev':
|
||||
apiDomain = 'https://iagentsales-test2.e-guofu.com:5200/api/' + apiVersion // 国富api ///api/v1
|
||||
|
||||
@@ -23,7 +23,7 @@ export default [
|
||||
name: 'Prefecture',
|
||||
component: PerformanceReport,
|
||||
meta: {
|
||||
title: '开门红业绩查询'
|
||||
title: '一月业绩查询'
|
||||
}
|
||||
},
|
||||
{
|
||||
@@ -31,7 +31,7 @@ export default [
|
||||
name: 'Prefecture',
|
||||
component: Prefecture,
|
||||
meta: {
|
||||
title: '开门红专区'
|
||||
title: '一月专区'
|
||||
}
|
||||
},
|
||||
{
|
||||
@@ -53,7 +53,7 @@ export default [
|
||||
name: 'GoodStartScheme',
|
||||
component: GoodStartScheme,
|
||||
meta: {
|
||||
title: '开门红方案'
|
||||
title: '一月方案'
|
||||
}
|
||||
},
|
||||
{
|
||||
@@ -61,7 +61,7 @@ export default [
|
||||
name: 'businessMap',
|
||||
component: businessMap,
|
||||
meta: {
|
||||
title: '开门红业务地图'
|
||||
title: '一月业务地图'
|
||||
}
|
||||
},
|
||||
{
|
||||
@@ -77,7 +77,7 @@ export default [
|
||||
name: 'newsPaper',
|
||||
component: newsPaper,
|
||||
meta: {
|
||||
title: '开门红实时贺报'
|
||||
title: '一月实时贺报'
|
||||
}
|
||||
}
|
||||
]
|
||||
|
||||
23
src/router/ebiz/healthInsuranceRenewal.js
Normal file
23
src/router/ebiz/healthInsuranceRenewal.js
Normal file
@@ -0,0 +1,23 @@
|
||||
//健康险续保 定义相关组件
|
||||
const healthInsuranceRenewalList = () => import('@/views/ebiz/healthInsuranceRenewal/list')
|
||||
const healthInsuranceRenewalDetail = () => import('@/views/ebiz/healthInsuranceRenewal/detail')
|
||||
export default [
|
||||
{
|
||||
path: '/healthInsuranceRenewal/list',
|
||||
name: 'healthInsuranceRenewalList',
|
||||
component: healthInsuranceRenewalList,
|
||||
meta: {
|
||||
title: '健康险续保清单',
|
||||
index: 1
|
||||
}
|
||||
},
|
||||
{
|
||||
path: '/healthInsuranceRenewal/detail',
|
||||
name: 'healthInsuranceRenewalDetail',
|
||||
component: healthInsuranceRenewalDetail,
|
||||
meta: {
|
||||
title: '保单详情',
|
||||
index: 1
|
||||
}
|
||||
}
|
||||
]
|
||||
@@ -49,6 +49,8 @@ import allowance from './allowance'
|
||||
import cooperativeUnit from './cooperativeUnit'
|
||||
// YB_APP
|
||||
import YB_APP from '../YB_APP/index'
|
||||
//健康险续保
|
||||
import healthInsuranceRenewal from './healthInsuranceRenewal'
|
||||
export default [
|
||||
...proposal,
|
||||
...sale,
|
||||
@@ -86,5 +88,6 @@ export default [
|
||||
...laurelClub,
|
||||
...allowance,
|
||||
...cooperativeUnit,
|
||||
...YB_APP
|
||||
...YB_APP,
|
||||
...healthInsuranceRenewal
|
||||
] //根据需要进行删减
|
||||
|
||||
@@ -173,6 +173,19 @@ export default {
|
||||
}
|
||||
}
|
||||
},
|
||||
created() {
|
||||
|
||||
},
|
||||
mounted() {
|
||||
let date = new Date()
|
||||
let month = date.getMonth() + 1
|
||||
if (month <= 9) {
|
||||
month = '0' + month
|
||||
}
|
||||
//默认展示当天数据
|
||||
this.postDate = date.getFullYear() + '-' + month + '-' + date.getDate()
|
||||
this.initData()
|
||||
},
|
||||
methods: {
|
||||
//切换当月、当天
|
||||
switchDayOrMonth(index) {
|
||||
@@ -218,7 +231,14 @@ export default {
|
||||
* 查询机构下拉列表
|
||||
* manageCode, manageLv传空查全国所有二级机构
|
||||
**/
|
||||
this.$toast.loading({
|
||||
duration: 0, // 持续展示 toast
|
||||
forbidClick: true, // 禁用背景点击
|
||||
loadingType: 'spinner',
|
||||
message: '加载中……'
|
||||
})
|
||||
let resData = await getBranchByUser({})
|
||||
this.$toast.clear()
|
||||
if (resData.result != '0') return this.$toast(resData.resultMessage)
|
||||
this.manageLv = resData.content.level
|
||||
//当前token查不出机构时,展示敬请期待
|
||||
@@ -275,6 +295,12 @@ export default {
|
||||
},
|
||||
// 查询列表数据
|
||||
queryOutOrderListFunc() {
|
||||
this.$toast.loading({
|
||||
duration: 0, // 持续展示 toast
|
||||
forbidClick: true, // 禁用背景点击
|
||||
loadingType: 'spinner',
|
||||
message: '加载中……'
|
||||
})
|
||||
queryOutOrderList({
|
||||
dateFlag: this.dateFlag,
|
||||
appntDate: this.postDate,
|
||||
@@ -284,6 +310,7 @@ export default {
|
||||
pageNum: this.pageNum,
|
||||
pageSize: this.pageSize
|
||||
}).then(res => {
|
||||
this.$toast.clear()
|
||||
if (res.result == 0) {
|
||||
if (res.content) {
|
||||
this.pageNum++
|
||||
@@ -388,16 +415,6 @@ export default {
|
||||
this.queryOutOrderListFunc()
|
||||
}
|
||||
},
|
||||
created() {
|
||||
let date = new Date()
|
||||
let month = date.getMonth() + 1
|
||||
if (month <= 9) {
|
||||
month = '0' + month
|
||||
}
|
||||
//默认展示当天数据
|
||||
this.postDate = date.getFullYear() + '-' + month + '-' + date.getDate()
|
||||
this.initData()
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
|
||||
@@ -36,7 +36,7 @@ export default {
|
||||
const res =await getServiceConfig({})
|
||||
if (res.sections) {
|
||||
res.sections.forEach(e=>{
|
||||
if(e.name.indexOf('开门红专区')!=-1){
|
||||
if(e.name.indexOf('一月专区')!=-1){
|
||||
this.menuList =e.items;
|
||||
}
|
||||
})
|
||||
|
||||
178
src/views/ebiz/healthInsuranceRenewal/detail.vue
Normal file
178
src/views/ebiz/healthInsuranceRenewal/detail.vue
Normal file
@@ -0,0 +1,178 @@
|
||||
<template>
|
||||
<div class="detail-container pb50">
|
||||
<van-cell title="客户名称" :value="dataInfo.name" />
|
||||
<van-cell title="地址" :value="dataInfo.address" />
|
||||
<van-cell title="联系人姓名" :value="dataInfo.contactName" />
|
||||
<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 == '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-for="item in dataInfo.oldRiskMessageDTOList">
|
||||
<van-cell title="原保单险种名称" :value="item.riskName" />
|
||||
<van-cell title="原保单保费" :value="item.prem+'元'" class="lastvancell"/>
|
||||
</div>
|
||||
</div>
|
||||
<van-cell title="保单保费" v-if="this.$route.query.renewalFlag == '1'" :value="dataInfo.prem+'元'" />
|
||||
<van-cell title="代理人" v-if="agentType == '服务经理'" :value="dataInfo.agentCustomerManagerName" />
|
||||
<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-item name="1">
|
||||
<template #title>
|
||||
<div style="display: flex;width: 100%;justify-content: space-between">
|
||||
<span style="width: 33%;">续保意见</span>
|
||||
<p style="display: inline-block;width: 65%;overflow:hidden;text-overflow: ellipsis;color: #969799;white-space: nowrap;">{{dataInfo.renewalOpinions}}</p></div>
|
||||
</template>
|
||||
<div>{{dataInfo.renewalOpinions}}</div>
|
||||
</van-collapse-item>
|
||||
</van-collapse>
|
||||
<van-collapse v-if="this.$route.query.renewalFlag == '0'" v-model="activeName2">
|
||||
<van-collapse-item name="1">
|
||||
<template #title>
|
||||
<div style="display: flex;width: 100%;justify-content: space-between">
|
||||
<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>
|
||||
<van-button type="danger" round size="mini" @click.stop="dialogshow = true" style="margin-right: 10px;">编辑</van-button>
|
||||
</div>
|
||||
</template>
|
||||
<div>{{dataInfo.reason}}</div>
|
||||
</van-collapse-item>
|
||||
</van-collapse>
|
||||
<van-dialog v-model="dialogshow" title="未续保原因" show-cancel-button @confirm="dialogConfirm" @cancel="dialogCancel">
|
||||
<div style="border: 1px solid #eee;margin: 0px 15px 5px 15px;" class="dialogtextarea">
|
||||
<van-field v-model="message" rows="3" autosize label="留言" type="textarea" maxlength="200" placeholder="请输入" show-word-limit/>
|
||||
</div>
|
||||
</van-dialog>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import { Collapse, CollapseItem, Cell} from 'vant'
|
||||
import { getAgentInfo } from '@/api/ebiz/my/my.js'
|
||||
import { healthgetRenewalListDetail, reasonForNonRenewalSubmitted } from '@/api/ebiz/healthInsuranceRenewal/healthInsuranceRenewal'
|
||||
export default {
|
||||
components: {
|
||||
[Collapse.name]: Collapse,
|
||||
[CollapseItem.name]: CollapseItem,
|
||||
[Cell.name]: Cell
|
||||
},
|
||||
data() {
|
||||
return {
|
||||
agentType: '',
|
||||
dataInfo:{},
|
||||
activeName1:[],
|
||||
activeName2:[],
|
||||
dialogshow: false,
|
||||
message:''
|
||||
}
|
||||
},
|
||||
created() {
|
||||
|
||||
},
|
||||
mounted() {
|
||||
this.getAgentInfo()
|
||||
},
|
||||
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(){
|
||||
let params = {
|
||||
"renewalFlag":this.$route.query.renewalFlag,
|
||||
"agentCode":this.$route.query.agentCode,
|
||||
"cvaliStartDate":this.$route.query.cvaliStartDate,
|
||||
"cvaliEndDate":this.$route.query.cvaliEndDate,
|
||||
"grpContNo": this.$route.query.grpContNo
|
||||
}
|
||||
healthgetRenewalListDetail(params).then(res=>{
|
||||
if(res.result == 0){
|
||||
if(this.$route.query.renewalFlag == '0'){
|
||||
this.dataInfo = res.getUnRenewaLlistDetailDTO
|
||||
}
|
||||
if(this.$route.query.renewalFlag == '1'){
|
||||
this.dataInfo = res.getRenewaLlistDetailDTO
|
||||
}
|
||||
} else {
|
||||
this.$toast(res.resultMessage)
|
||||
}
|
||||
})
|
||||
},
|
||||
dialogConfirm(){
|
||||
let params = {
|
||||
"grpContNo": this.$route.query.grpContNo, //团保单号,续保清单给扔过
|
||||
"xbReason":this.message,
|
||||
"submitter": this.$route.query.agentCode
|
||||
}
|
||||
reasonForNonRenewalSubmitted(params).then(res=>{
|
||||
if(res.result == 0){
|
||||
this.$toast('提交成功')
|
||||
this.dataInfo.reason = this.message
|
||||
this.message = ''
|
||||
}else{
|
||||
this.$toast(res.resultMessage)
|
||||
}
|
||||
})
|
||||
},
|
||||
dialogCancel(){
|
||||
this.message = ''
|
||||
this.dialogshow = false
|
||||
}
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
<style lang="scss" scoped>
|
||||
/deep/ .van-cell__title{
|
||||
flex:1;
|
||||
}
|
||||
/deep/ .van-cell__value{
|
||||
flex:2;
|
||||
}
|
||||
/deep/ .van-cell__value {
|
||||
text-align: left !important;
|
||||
}
|
||||
/deep/ .van-collapse-item__content{
|
||||
word-break: break-word;
|
||||
}
|
||||
/deep/ .van-collapse-item{
|
||||
width: 100%;
|
||||
.van-cell__title{
|
||||
width: calc(100% - 30px;);
|
||||
}
|
||||
}
|
||||
.dialogtextarea{
|
||||
/deep/ .van-cell__title{
|
||||
display: none;
|
||||
}
|
||||
}
|
||||
.lastvancell::after {
|
||||
border-bottom: 1px solid #dadada;
|
||||
}
|
||||
.lastvancell::after {
|
||||
position: absolute;
|
||||
box-sizing: border-box;
|
||||
content: ' ';
|
||||
pointer-events: none;
|
||||
right: 0;
|
||||
bottom: 0;
|
||||
left: 4.26667vw;
|
||||
-webkit-transform: scaleY(.5);
|
||||
transform: scaleY(.5);
|
||||
}
|
||||
</style>
|
||||
259
src/views/ebiz/healthInsuranceRenewal/list.vue
Normal file
259
src/views/ebiz/healthInsuranceRenewal/list.vue
Normal file
@@ -0,0 +1,259 @@
|
||||
<template>
|
||||
<div class="sale-list-container pb50">
|
||||
<div class="topsearch" style="display: flex;background:#fff;align-items: center;">
|
||||
<div v-if="agentType == '营业部经理'" style="width: 50%;padding: 10px 5px;">
|
||||
<van-field @click="openchooseagent" v-model="searchName" disabled style="background: #f7f8fa;padding:5px 10px;" label="业务员" right-icon="arrow" placeholder="请选择"/>
|
||||
</div>
|
||||
<div style="width: 50%;padding: 10px 5px;">
|
||||
<van-field @click="openshowDataPicker" v-model="showChooseDate" disabled style="background: #f7f8fa;padding:5px 10px;" label="日期" right-icon="arrow" placeholder="请选择"/>
|
||||
</div>
|
||||
</div>
|
||||
<van-sticky>
|
||||
<van-tabs :line-width="45" v-model="active" @change="tabChange" sticky>
|
||||
<van-tab name="0" title="未续保"></van-tab>
|
||||
<van-tab name="1" title="已续保"></van-tab>
|
||||
</van-tabs>
|
||||
</van-sticky>
|
||||
|
||||
<van-list
|
||||
v-model="loading"
|
||||
:immediate-check="false"
|
||||
:finished="finished"
|
||||
:finished-text="finishedText"
|
||||
error-text="请求失败,点击重新加载"
|
||||
:error.sync="error"
|
||||
@load="getOrderList"
|
||||
class="pb45">
|
||||
<div v-if="listData.length > 0">
|
||||
<div v-for="(item, index) in listData" :key="index">
|
||||
<div style="background: #fff;margin: 15px;border-radius: 5px;padding: 15px;">
|
||||
<div style="line-height: 35px;"><span style="width: 40%;display: inline-block;">客户名称</span><span style="width: 60%;display: inline-block;">{{item.name}}</span></div>
|
||||
<div style="line-height: 35px;"><span style="width: 40%;display: inline-block;">保单号</span><span style="width: 60%;display: inline-block;">{{item.contNo}}</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 == '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="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>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div v-else class="text-center">
|
||||
<img class="mt40" src="@/assets/images/pic_page-non.png" />
|
||||
<div class="fs17 mt40">暂无数据</div>
|
||||
</div>
|
||||
</van-list>
|
||||
<van-popup v-model="showDataPicker" position="bottom">
|
||||
<van-datetime-picker type="year-month" v-model="currentDate" title="选择年月" :formatter="formatter" @confirm="onConfirmDate" @cancel="showDataPicker = false" :min-date="minDate" :max-date="maxDate"/>
|
||||
</van-popup>
|
||||
<van-popup v-model="popupShow" position="bottom">
|
||||
<van-picker show-toolbar :columns="columns" @confirm="onConfirm" @cancel="popupShow = false" />
|
||||
</van-popup>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import { Search, Tabs, Tab, List, Tag, Sticky, Field, Icon } from 'vant'
|
||||
import { healthgetRenewalList, getAgentManager } from '@/api/ebiz/healthInsuranceRenewal/healthInsuranceRenewal'
|
||||
|
||||
export default {
|
||||
name: 'saleList',
|
||||
components: {
|
||||
[Field.name]: Field,
|
||||
[Search.name]: Search,
|
||||
[Tabs.name]: Tabs,
|
||||
[Tab.name]: Tab,
|
||||
[List.name]: List,
|
||||
[Tag.name]: Tag,
|
||||
[Sticky.name]: Sticky,
|
||||
[Icon.name]: Icon,
|
||||
},
|
||||
data() {
|
||||
return {
|
||||
agentType: '',
|
||||
searchName: '',
|
||||
agentCode: '',
|
||||
active: '0',
|
||||
listData: [],
|
||||
loading: false,
|
||||
finished: false,
|
||||
total: '',
|
||||
currentPage: 1,
|
||||
error: false,
|
||||
finishedText: '',
|
||||
pageSize: 5,
|
||||
showDataPicker:false,
|
||||
minDate: new Date(2000, 0),
|
||||
maxDate: new Date(2100, 12),
|
||||
cvaliStartDate: '',
|
||||
currentDate: '',
|
||||
showChooseDate: '',
|
||||
cvaliEndDate: '',
|
||||
oldOptionsData:[],
|
||||
columns: [],
|
||||
popupShow: false,
|
||||
}
|
||||
},
|
||||
mounted() {
|
||||
this.initDate()
|
||||
this.getAgentManager()
|
||||
},
|
||||
methods: {
|
||||
openchooseagent(){
|
||||
this.popupShow = true
|
||||
},
|
||||
onConfirm(val){
|
||||
let thisIndex = val.indexOf(' ')
|
||||
this.agentCode = val.slice(0, thisIndex)
|
||||
this.searchName = val.slice(thisIndex).trim()
|
||||
this.popupShow = false
|
||||
this.currentPage = 1
|
||||
this.listData = []
|
||||
;[this.loading, this.finished] = [true, false]
|
||||
this.getOrderList()
|
||||
},
|
||||
getAgentManager() {
|
||||
let params = {
|
||||
agentCode: 'G0000011'
|
||||
}
|
||||
getAgentManager(params).then(res=>{
|
||||
if(res.result == '0') {
|
||||
if(res.content.agentManagerFlag == '1') {
|
||||
this.agentType = '营业部经理'
|
||||
} else {
|
||||
this.agentType = '服务经理'
|
||||
}
|
||||
if(res.content.getAgentListResDTOList && res.content.getAgentListResDTOList.length != 0){
|
||||
res.content.getAgentListResDTOList.forEach(item => {
|
||||
this.columns.push(item.agentCode + ' ' + item.name)
|
||||
})
|
||||
}
|
||||
this.getOrderList()
|
||||
} else {
|
||||
this.$toast(res.resultMessage)
|
||||
}
|
||||
})
|
||||
},
|
||||
//列表查询
|
||||
getOrderList() {
|
||||
let params = {
|
||||
renewalFlag: this.active,
|
||||
agentCode: this.agentCode,
|
||||
cvaliStartDate: this.cvaliStartDate,
|
||||
cvaliEndDate: this.cvaliEndDate,
|
||||
}
|
||||
healthgetRenewalList(params).then(res => {
|
||||
if (res.result == '0') {
|
||||
if(this.active == '0'){
|
||||
if(res.unRenewalInformationDTOList && res.unRenewalInformationDTOList.length != 0){
|
||||
this.listData = res.unRenewalInformationDTOList
|
||||
}
|
||||
}
|
||||
if(this.active == '1'){
|
||||
if(res.informationDTOList && res.informationDTOList.length != 0){
|
||||
this.listData = res.informationDTOList
|
||||
}
|
||||
}
|
||||
;[this.loading, this.finished] = [false, true]
|
||||
} else {
|
||||
;[this.loading, this.finished] = [false, true]
|
||||
this.$toast(res.resultMessage)
|
||||
}
|
||||
})
|
||||
},
|
||||
//切换
|
||||
tabChange(name) {
|
||||
this.currentPage = 1
|
||||
this.active = name
|
||||
this.listData = []
|
||||
;[this.loading, this.finished] = [true, false]
|
||||
this.getOrderList()
|
||||
},
|
||||
//搜索
|
||||
searchList() {
|
||||
this.currentPage = 1
|
||||
this.listData = []
|
||||
;[this.loading, this.finished] = [true, false]
|
||||
this.getOrderList()
|
||||
},
|
||||
//投保单详情
|
||||
goDetail(item) {
|
||||
this.$router.push({
|
||||
path: '/healthInsuranceRenewal/detail',
|
||||
query: {
|
||||
grpContNo: item.grpContNo,
|
||||
renewalFlag: this.active,
|
||||
agentCode: this.agentCode,
|
||||
cvaliStartDate: this.cvaliStartDate,
|
||||
cvaliEndDate: this.cvaliEndDate,
|
||||
}
|
||||
})
|
||||
},
|
||||
initDate(){
|
||||
let thisDate = new Date()
|
||||
let thisYear = thisDate.getFullYear()
|
||||
let thisMonth = thisDate.getMonth()+1
|
||||
if(thisMonth < 10){
|
||||
thisMonth = '0'+thisMonth
|
||||
}
|
||||
this.currentDate = thisYear + '-' + thisMonth
|
||||
this.showChooseDate = thisYear + '-' + thisMonth
|
||||
let date = new Date(this.currentDate);
|
||||
date.setDate(1);
|
||||
let firstDay1 = date.toLocaleDateString();
|
||||
this.cvaliStartDate = firstDay1.replaceAll('/','-')
|
||||
date.setMonth(date.getMonth() + 1);
|
||||
date.setDate(0);
|
||||
let lastDay1 = date.toLocaleDateString();
|
||||
this.cvaliEndDate = lastDay1.replaceAll('/','-')
|
||||
},
|
||||
//打开日期选择
|
||||
openshowDataPicker(){
|
||||
this.currentDate = new Date()
|
||||
this.showDataPicker = true
|
||||
},
|
||||
//日期选择
|
||||
onConfirmDate(value){
|
||||
let thisDate = new Date(value)
|
||||
let thisYear = thisDate.getFullYear()
|
||||
let thisMonth = thisDate.getMonth()+1
|
||||
if(thisMonth < 10){
|
||||
thisMonth = '0'+thisMonth
|
||||
}
|
||||
this.currentDate = thisYear + '-' + thisMonth
|
||||
this.showChooseDate = thisYear + '-' + thisMonth
|
||||
console.log(this.currentDate)
|
||||
|
||||
let date = new Date(this.currentDate);
|
||||
date.setDate(1);
|
||||
let firstDay1 = date.toLocaleDateString();
|
||||
this.cvaliStartDate = firstDay1.replaceAll('/','-')
|
||||
|
||||
date.setMonth(date.getMonth() + 1);
|
||||
date.setDate(0);
|
||||
let lastDay1 = date.toLocaleDateString();
|
||||
this.cvaliEndDate = lastDay1.replaceAll('/','-')
|
||||
this.showDataPicker = false
|
||||
this.currentPage = 1
|
||||
this.listData = []
|
||||
;[this.loading, this.finished] = [true, false]
|
||||
this.getOrderList()
|
||||
},
|
||||
formatter(type, val) {
|
||||
if (type === 'year') {
|
||||
return `${val}年`;
|
||||
} else if (type === 'month') {
|
||||
return `${val}月`;
|
||||
}
|
||||
return val;
|
||||
},
|
||||
}
|
||||
}
|
||||
</script>
|
||||
<style lang="scss" scoped>
|
||||
.topsearch{
|
||||
/deep/ .van-field__label{
|
||||
width: 50px;
|
||||
}
|
||||
}
|
||||
</style>
|
||||
@@ -158,7 +158,7 @@ export default {
|
||||
isPersonalInsu: true, // 是否个险渠道
|
||||
isInner: false,
|
||||
organizationTheads: ['排名', '机构', '当日预收(标保)', '月预收标保', '日承保标保', '月承保标保'],
|
||||
performanceTheads: ['排名', '姓名', '营销服务部', '预收规保', '承保标保'],
|
||||
performanceTheads: ['排名', '姓名', '营销服务部', '预收标保', '承保标保'],
|
||||
organizationData: [],
|
||||
performanceData: [],
|
||||
organizationImgUrl: '', // 机构排名图片
|
||||
|
||||
@@ -5,9 +5,9 @@
|
||||
<div>
|
||||
<!-- <h2 v-if="activeType=='KMH'" style="text-align:center" class="mb20">指定保单生效日说明</h2> -->
|
||||
<!-- <h2 v-if="activeType=='SQY'" style="text-align:center" class="mb20">指定保险合同生效日说明</h2> -->
|
||||
<h2 style="text-align:center" class="mb20">指定保险合同生效日说明</h2>
|
||||
<h2 style="text-align:center" class="mb20">预录投保单承保生效说明</h2>
|
||||
<p style="text-indent:2rem;" :class="[activeType=='SQY' ? 'fontb' : '']">
|
||||
尊敬的客户,您好!以下为指定保险合同生效日重要说明,请您务必仔细阅读和确认。
|
||||
尊敬的客户,您好!以下为预录投保单承保生效重要说明,请您务必仔细阅读和确认。
|
||||
</p>
|
||||
<p style="text-indent:2rem;">
|
||||
<!-- 如您于{{ activeType=='KMH' ? '2020年12月31日':activeType=='SQY'? '2021年5月31日':'' }}(包含当日)之前申请投保并交费成功、且国富人寿保险股份有限公司(以下简称国富人寿)
|
||||
@@ -17,16 +17,17 @@
|
||||
<span>{{ cvalidateStrToFormat }}</span>零时起生效;您交费成功日或签发保单日如在<span>{{ cvalidateStrToFormat }}</span>
|
||||
(包含当日)之后,保险合同于国富人寿收取首期保险费并签发保险单次日零时起生效。 -->
|
||||
|
||||
如您于<span>{{ cvalidateStrOneDayOff }}</span>(包含当日)前申请投保且支付保险费,经国富人寿保险股份有限公司(以下简称国富人寿)同意并签发保单,
|
||||
<span>{{ cvalidateStrOneDayOff }}</span>(包含当日)前签发保单,保险合同自{{ cvalidateStrToFormat }}零时起生效;{{ cvalidateStrToFormat }}(包含当日)后签发保单,
|
||||
保险合同自签发保险单次日零时起生效。国富人寿将通过您投保时预留的银行账户转账扣除保险费,为顺利承保,请您充足银行账户余额。
|
||||
<!-- 如您于<span>{{ cvalidateStrOneDayOff }}</span>(包含当日)前申请投保且支付保险费,经国富人寿保险股份有限公司(以下简称国富人寿)同意并签发保单,-->
|
||||
<!-- <span>{{ cvalidateStrOneDayOff }}</span>(包含当日)前签发保单,保险合同自{{ cvalidateStrToFormat }}零时起生效;{{ cvalidateStrToFormat }}(包含当日)后签发保单,-->
|
||||
<!-- 保险合同自签发保险单次日零时起生效。国富人寿将通过您投保时预留的银行账户转账扣除保险费,为顺利承保,请您充足银行账户余额。-->
|
||||
|
||||
本次投保为预录投保申请,国富人寿保险股份有限公司(以下简称国富人寿)将通过您投保时预留的银行账户转账扣除保险费,为顺利承保,请您充足银行账户余额。如您于{{ cvalidateStrOneDayOff }}(包含当日)前提交投保申请且完成转账支付,经国富人寿同意于{{ cvalidateStrOneDayOff }}(包含当日)前签发保单,保险合同自{{ cvalidateStrToFormat }}零时起生效;如您于{{ cvalidateStrOneDayOff }}(包含当日)前提交投保申请,于{{ cvalidateStrToFormat }}后(包含当日)完成转账支付,经国富人寿同意于{{ cvalidateStrToFormat }}(包含当日)后签发保单,保险合同自签发保险单次日零时起生效。
|
||||
</p>
|
||||
<p style="text-indent:2rem;">
|
||||
国富人寿承担的保险责任从保险合同生效日零时开始。签发保险单后,国富人寿将电子保单发送至您的电子邮箱。
|
||||
</p>
|
||||
<p style="text-indent:2rem;">
|
||||
请您务必仔细阅读保险条款中的犹豫期、保险责任、责任免除等各项重要内容和提示。
|
||||
请您务必仔细阅读保险条款中的犹豫期、保险责任、责任免除等各项重要容和提示。
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
@@ -34,7 +35,7 @@
|
||||
<div class="bg-white bottom-btn">
|
||||
<van-radio-group v-model="radio" class="pb10 pb20 pl30">
|
||||
<van-radio name="1" @click="click" class="fs14">
|
||||
<span>本人已详细阅读并同意上述指定保单生效日说明 </span>
|
||||
<span>本人已详细阅读并同意上述预录投保单承保生效说明 </span>
|
||||
</van-radio>
|
||||
</van-radio-group>
|
||||
<van-button type="danger" size="large" :disabled="isDisable" @click="goNext" v-no-more-click="1000">我已阅读并知晓</van-button>
|
||||
@@ -112,7 +113,7 @@ export default {
|
||||
let that = this
|
||||
// {{switchFlag.Time?pageVariable.msg:pageVariable.number}}
|
||||
that.timeOut()
|
||||
document.title = '指定保单生效日说明'
|
||||
document.title = '预录投保单承保生效说明'
|
||||
that.activeType = window.localStorage.getItem('activeType')
|
||||
// Notify({
|
||||
// type: 'warning',
|
||||
|
||||
Reference in New Issue
Block a user