GBC一级产品校验接口联调

获取GBC一级产品接口联调
新增提交结果页面添加样式
This commit is contained in:
liu.xiaofeng@ebiz-digits.com
2024-02-27 15:11:00 +08:00
parent 379f150a37
commit 73cff411c0
5 changed files with 117 additions and 43 deletions

View File

@@ -89,3 +89,21 @@ export function getGBCappntConnectSave(data) {
data data
}) })
} }
// 获取GBC一级产品
export function getGBCRiskList(data) {
return request({
url: getUrl('/sale/product/getGBCRiskList ', 1),
method: 'post',
data
})
}
// GBC一级产品校验
export function gbcAppntCheckProdect(data) {
return request({
url: getUrl('/sale/gbc/appnt/checkProdect ', 1),
method: 'post',
data
})
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 23 KiB

View File

@@ -4,6 +4,7 @@ const GBC_projectList = () => import('@/views/GBC/projectList')
const GBC_projectDetail = () => import('@/views/GBC/projectDetail') const GBC_projectDetail = () => import('@/views/GBC/projectDetail')
const GBC_customerDetail = () => import('@/views/GBC/customerDetail') const GBC_customerDetail = () => import('@/views/GBC/customerDetail')
const GBC_InsuredInfo = () => import('@/views/GBC/InsuredInfo') const GBC_InsuredInfo = () => import('@/views/GBC/InsuredInfo')
const GBC_submitResult = () => import('@/views/GBC/submitResult')
export default [ export default [
{ {
@@ -51,4 +52,13 @@ export default [
index: 1 index: 1
} }
}, },
{
path: '/GBC/submitResult',
name: 'GBC_submitResult',
component: GBC_submitResult,
meta: {
title: '提交结果',
index: 1
}
},
] ]

View File

@@ -1,7 +1,7 @@
<template> <template>
<div class="insured-info-container pb60 redRadioCheckbox"> <div class="insured-info-container pb60 redRadioCheckbox">
<!-- 基本信息 --> <!-- 基本信息 -->
<index-bar :key="renovate"></index-bar> <!-- <index-bar :key="renovate"></index-bar>-->
<!-- 项目信息 --> <!-- 项目信息 -->
<van-cell-group :border="false" v-if="branchType == '13'"> <van-cell-group :border="false" v-if="branchType == '13'">
<p style="border-bottom: 1px solid #ebedf0" class="fs15 fwb pl10 mt10 pv12">项目信息</p> <p style="border-bottom: 1px solid #ebedf0" class="fs15 fwb pl10 mt10 pv12">项目信息</p>
@@ -79,7 +79,7 @@
<van-checkbox v-model="userInfo.effectiveDateType" :disabled="effectiveDateTypeAble" @change="effectiveDataTypeChange">长期</van-checkbox> <van-checkbox v-model="userInfo.effectiveDateType" :disabled="effectiveDateTypeAble" @change="effectiveDataTypeChange">长期</van-checkbox>
</div> </div>
<van-field <van-field
:value="userInfo.riskProductCode" :value="userInfo.riskName"
readonly readonly
required required
label="产品名称" label="产品名称"
@@ -330,7 +330,7 @@
<p style="color: #ee0a24;" @click="GBCproductChoosePopupShowSure">确定</p> <p style="color: #ee0a24;" @click="GBCproductChoosePopupShowSure">确定</p>
</div> </div>
<div style="padding: 0px 15px 15px;overflow: auto;height: calc(100% - 50px);"> <div style="padding: 0px 15px 15px;overflow: auto;height: calc(100% - 50px);">
<van-radio-group v-model="userInfo.riskName"> <van-radio-group v-model="userInfo.riskProductCode">
<van-cell-group> <van-cell-group>
<van-cell v-for="(item,index) in gbcProductList" :key="index"> <van-cell v-for="(item,index) in gbcProductList" :key="index">
<template #title> <template #title>
@@ -338,7 +338,7 @@
<p style="line-height: 25px;color: #333;font-size: 15px;">{{item.riskName}}</p> <p style="line-height: 25px;color: #333;font-size: 15px;">{{item.riskName}}</p>
</template> </template>
<template #right-icon> <template #right-icon>
<van-radio :name="item.riskName"/> <van-radio :name="item.riskProductCode"/>
</template> </template>
</van-cell> </van-cell>
</van-cell-group> </van-cell-group>
@@ -368,7 +368,7 @@
import { selectComp, getIdentityInfo } from '@/views/ebiz/sale/js/methods' import { selectComp, getIdentityInfo } from '@/views/ebiz/sale/js/methods'
import SearchField from '@/components/common/SearchField' import SearchField from '@/components/common/SearchField'
import riskRules from '@/views/ebiz/common/risk-rules' import riskRules from '@/views/ebiz/common/risk-rules'
import { gbcProjectDetail, getDepartmentByProjectNo } from '@/api/GBC/GBC' import { gbcProjectDetail, getDepartmentByProjectNo,getGBCRiskList,gbcAppntCheckProdect } from '@/api/GBC/GBC'
export default { export default {
name: 'insuredInfo', name: 'insuredInfo',
@@ -506,14 +506,7 @@
userWorkcompanys: [], //单位数据 userWorkcompanys: [], //单位数据
manageComCode:'',//代理人管理机构 52贵州 45广西 manageComCode:'',//代理人管理机构 52贵州 45广西
areaValue:'', //代理人管理机构--省级编号 areaValue:'', //代理人管理机构--省级编号
gbcProductList:[ gbcProductList:[],
{"riskName": "GBC渠道一级产品哈士奇1", "riskProductCode": "GFRS_GBC_M0001"},
{"riskName": "GBC渠道一级产品哈士奇2", "riskProductCode": "GFRS_GBC_M0002"},
{"riskName": "GBC渠道一级产品哈士奇3", "riskProductCode": "GFRS_GBC_M0003"},
{"riskName": "GBC渠道一级产品哈士奇4", "riskProductCode": "GFRS_GBC_M0004"},
{"riskName": "GBC渠道一级产品哈士奇5", "riskProductCode": "GFRS_GBC_M0005"},
{"riskName": "GBC渠道一级产品哈士奇6", "riskProductCode": "GFRS_GBC_M0006"},
],
GBCproductChoosePopupShow:false, GBCproductChoosePopupShow:false,
radioaaa:'', radioaaa:'',
} }
@@ -626,21 +619,50 @@
this.gbcProjectDetail() this.gbcProjectDetail()
} }
this.getDepartmentByProjectNo() this.getDepartmentByProjectNo()
this.getGBCRiskList()
} }
}, },
methods: { methods: {
getGBCRiskList(){
let params = {
}
getGBCRiskList(params).then(res=>{
if(res.result == 0) {
this.gbcProductList = []
if(res.gbcProductList && res.gbcProductList.length != 0) {
this.gbcProductList = res.gbcProductList
}
} else {
this.$toast(res.resultMessage)
}
})
},
GBCproductChoosePopupShowCancel(){ GBCproductChoosePopupShowCancel(){
this.userInfo.riskProductCode = ''
this.userInfo.riskName = ''
this.GBCproductChoosePopupShow = false this.GBCproductChoosePopupShow = false
}, },
GBCproductChoosePopupShowSure(){ GBCproductChoosePopupShowSure(){
this.gbcProductList.forEach(item=>{ this.gbcProductList.forEach(item=>{
if(item.GBCProductChecked == true) { if(item.riskProductCode == this.userInfo.riskProductCode) {
this.userInfo.riskName = item.riskName
this.userInfo.riskProductCode = item.riskProductCode this.userInfo.riskProductCode = item.riskProductCode
this.userInfo.riskName = item.riskName
} }
}) })
if(this.userInfo.riskName) { if(this.userInfo.riskName) {
this.GBCproductChoosePopupShow = false let params = {
idType: this.userInfo.idType,
idNo: this.userInfo.idNo,
productNo: this.userInfo.riskProductCode
}
gbcAppntCheckProdect(params).then(res=>{
if(res.result == 0) {
this.GBCproductChoosePopupShow = false
} else {
this.$toast(res.resultMessage)
}
})
} else { } else {
this.$toast("请选择赠险") this.$toast("请选择赠险")
} }
@@ -1407,30 +1429,14 @@
let age = utilsAge.getAge(this.userInfo.birthday, new Date()) let age = utilsAge.getAge(this.userInfo.birthday, new Date())
if (age >= 60 && this.manageComCode == '45') { if (age >= 60 && this.manageComCode == '45') {
this.thisdoubledialogshow = true this.thisdoubledialogshow = true
// this.$dialog
// .alert({
// message: '根据监管要求,本单需要您配合对销售过程进行录音录像!',
// confirmButtonColor: '#000000',
// })
// .then(() => {
// this.$jump({
// flag: 'h5',
// extra: {
// url: location.origin + `/#/sale/insuredPerson?${str}` + '&orderNo=' + resultData.orderNo,
// },
// routerInfo: {
// path: `/sale/insuredPerson?${str}` + '&orderNo=' + resultData.orderNo,
// },
// })
// })
} else { } else {
this.$jump({ this.$jump({
flag: 'h5', flag: 'h5',
extra: { extra: {
url: location.origin + `/#/sale/insuredPerson?${this.thismystr}` + '&orderNo=' + this.thismyorderNo, url: location.origin + `/#/GBC/submitResult`,
}, },
routerInfo: { routerInfo: {
path: `/sale/insuredPerson?${this.thismystr}` + '&orderNo=' + this.thismyorderNo, path: `/GBC/submitResult`,
}, },
}) })
} }
@@ -1440,15 +1446,15 @@
}, },
thisdoubledialogfunc(){ thisdoubledialogfunc(){
this.thisdoubledialogshow = false this.thisdoubledialogshow = false
this.$jump({ this.$jump({
flag: 'h5', flag: 'h5',
extra: { extra: {
url: location.origin + `/#/sale/insuredPerson?${this.thismystr}` + '&orderNo=' + this.thismyorderNo, url: location.origin + `/#/GBC/submitResult`,
}, },
routerInfo: { routerInfo: {
path: `/sale/insuredPerson?${this.thismystr}` + '&orderNo=' + this.thismyorderNo, path: `/GBC/submitResult`,
}, },
}) })
}, },
//区域选择 //区域选择
sureArea(area, type) { sureArea(area, type) {

View File

@@ -0,0 +1,40 @@
<template>
<div>
<div style="text-align: center;margin-top: 10vh;">
<img :src="submitResultImg" style="width: 60vw;"/>
</div>
<p style="font-size: 20px;text-align: center;">提交成功</p>
</div>
</template>
<script>
import submitResultImg from '@/assets/images/GBC/submitResult.png'
export default {
data() {
return {
submitResultImg,
}
},
components: {
},
created() {
},
mounted() {
},
methods: {
},
beforeRouteLeave(to, from, next) {
document.body.style.backgroundColor = ''
next()
}
}
</script>
<style lang="scss" scoped>
</style>