diff --git a/src/api/GBC/GBC.js b/src/api/GBC/GBC.js
index d0ffadc0e..d8f49760e 100644
--- a/src/api/GBC/GBC.js
+++ b/src/api/GBC/GBC.js
@@ -88,4 +88,22 @@ export function getGBCappntConnectSave(data) {
method: 'post',
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
+ })
}
\ No newline at end of file
diff --git a/src/assets/images/GBC/submitResult.png b/src/assets/images/GBC/submitResult.png
new file mode 100644
index 000000000..10377406a
Binary files /dev/null and b/src/assets/images/GBC/submitResult.png differ
diff --git a/src/router/GBC/index.js b/src/router/GBC/index.js
index 63214df73..0e001428e 100644
--- a/src/router/GBC/index.js
+++ b/src/router/GBC/index.js
@@ -4,6 +4,7 @@ const GBC_projectList = () => import('@/views/GBC/projectList')
const GBC_projectDetail = () => import('@/views/GBC/projectDetail')
const GBC_customerDetail = () => import('@/views/GBC/customerDetail')
const GBC_InsuredInfo = () => import('@/views/GBC/InsuredInfo')
+const GBC_submitResult = () => import('@/views/GBC/submitResult')
export default [
{
@@ -51,4 +52,13 @@ export default [
index: 1
}
},
+ {
+ path: '/GBC/submitResult',
+ name: 'GBC_submitResult',
+ component: GBC_submitResult,
+ meta: {
+ title: '提交结果',
+ index: 1
+ }
+ },
]
diff --git a/src/views/GBC/InsuredInfo.vue b/src/views/GBC/InsuredInfo.vue
index deff30d82..6f06cbb6e 100644
--- a/src/views/GBC/InsuredInfo.vue
+++ b/src/views/GBC/InsuredInfo.vue
@@ -1,7 +1,7 @@
-
+
项目信息
@@ -79,7 +79,7 @@
长期
确定
-
+
@@ -338,7 +338,7 @@
{{item.riskName}}
-
+
@@ -368,7 +368,7 @@
import { selectComp, getIdentityInfo } from '@/views/ebiz/sale/js/methods'
import SearchField from '@/components/common/SearchField'
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 {
name: 'insuredInfo',
@@ -506,14 +506,7 @@
userWorkcompanys: [], //单位数据
manageComCode:'',//代理人管理机构 52贵州 45广西
areaValue:'', //代理人管理机构--省级编号
- 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"},
- ],
+ gbcProductList:[],
GBCproductChoosePopupShow:false,
radioaaa:'',
}
@@ -626,21 +619,50 @@
this.gbcProjectDetail()
}
this.getDepartmentByProjectNo()
+ this.getGBCRiskList()
}
},
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(){
+ this.userInfo.riskProductCode = ''
+ this.userInfo.riskName = ''
this.GBCproductChoosePopupShow = false
},
GBCproductChoosePopupShowSure(){
this.gbcProductList.forEach(item=>{
- if(item.GBCProductChecked == true) {
- this.userInfo.riskName = item.riskName
+ if(item.riskProductCode == this.userInfo.riskProductCode) {
this.userInfo.riskProductCode = item.riskProductCode
+ this.userInfo.riskName = item.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 {
this.$toast("请选择赠险")
}
@@ -1407,30 +1429,14 @@
let age = utilsAge.getAge(this.userInfo.birthday, new Date())
if (age >= 60 && this.manageComCode == '45') {
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 {
this.$jump({
flag: 'h5',
extra: {
- url: location.origin + `/#/sale/insuredPerson?${this.thismystr}` + '&orderNo=' + this.thismyorderNo,
+ url: location.origin + `/#/GBC/submitResult`,
},
routerInfo: {
- path: `/sale/insuredPerson?${this.thismystr}` + '&orderNo=' + this.thismyorderNo,
+ path: `/GBC/submitResult`,
},
})
}
@@ -1440,15 +1446,15 @@
},
thisdoubledialogfunc(){
this.thisdoubledialogshow = false
- this.$jump({
- flag: 'h5',
- extra: {
- url: location.origin + `/#/sale/insuredPerson?${this.thismystr}` + '&orderNo=' + this.thismyorderNo,
- },
- routerInfo: {
- path: `/sale/insuredPerson?${this.thismystr}` + '&orderNo=' + this.thismyorderNo,
- },
- })
+ this.$jump({
+ flag: 'h5',
+ extra: {
+ url: location.origin + `/#/GBC/submitResult`,
+ },
+ routerInfo: {
+ path: `/GBC/submitResult`,
+ },
+ })
},
//区域选择
sureArea(area, type) {
diff --git a/src/views/GBC/submitResult.vue b/src/views/GBC/submitResult.vue
new file mode 100644
index 000000000..5ccf3ebec
--- /dev/null
+++ b/src/views/GBC/submitResult.vue
@@ -0,0 +1,40 @@
+
+
+
+
![]()
+
+
提交成功
+
+
+
+
+
+