mirror of
http://112.124.100.131/GFRS/ebiz-h5.git
synced 2025-12-08 16:26:44 +08:00
修改重新投保投保信息数据
This commit is contained in:
@@ -117,7 +117,7 @@ import { Field, Area } from 'vant'
|
||||
import ProgressBar from '@/components/ebiz/insureAgain/ProgressBar'
|
||||
import DropdownBox from '@/components/ebiz/insureAgain/DropdownBox'
|
||||
import InfoCell from '@/components/ebiz/insureAgain/InfoCell'
|
||||
// import { saveOrUpdateOrderInfo, getOrderDetail } from '@/api/ebiz/insureAgain/insureAgain'
|
||||
import { commitReOrder, getReAppntPolicy } from '@/api/ebiz/insureAgain/insureAgain'
|
||||
import { getOrderDetail, insureAgain } from '@/api/ebiz/insureAgain/insureAgain'
|
||||
import DataDictionary from '@/assets/js/utils/data-dictionary'
|
||||
import SelectRadio from '@/components/ebiz/SelectRadio'
|
||||
@@ -125,6 +125,7 @@ import getAreaName from '@/assets/js/utils/getAreaNameForSale'
|
||||
import areaLists from '@/assets/js/utils/areaNewForSale'
|
||||
import { selectComp, getIdentityInfo } from './js/methods'
|
||||
import OccupationForLoop from '@/components/ebiz/occipation/OccupationForLoop'
|
||||
import CacheUtils from '@/assets/js/utils/cacheUtils'
|
||||
export default {
|
||||
name: 'InsureInformation',
|
||||
components: {
|
||||
@@ -181,7 +182,7 @@ export default {
|
||||
}
|
||||
},
|
||||
created() {
|
||||
this.getOrderDetail()
|
||||
this.getReAppntPolicy()
|
||||
},
|
||||
mounted() {
|
||||
setTimeout(() => {
|
||||
@@ -215,9 +216,194 @@ export default {
|
||||
})
|
||||
}
|
||||
},
|
||||
getOrderDetail() {
|
||||
getOrderDetail({ orderNo: localStorage.orderNo }).then(res => {
|
||||
getReAppntPolicy() {
|
||||
getReAppntPolicy({ policyNo: CacheUtils.getLocItem('policyNo') }).then(res => {
|
||||
if (res.result == 0) {
|
||||
let a = `{
|
||||
"orderDTO": {
|
||||
"appntDTO": {
|
||||
"area": "",
|
||||
"averageAnnualIncome": 10,
|
||||
"avoirdupois": 60,
|
||||
"birthday": "1983-03-12",
|
||||
"certiexpiredate": "2035-03-31",
|
||||
"effectiveDateType": "false",
|
||||
"email": "310598205@qq.com",
|
||||
"healthGrade": "1",
|
||||
"homeAddress": "百苑小区101号",
|
||||
"homeArea": "450103",
|
||||
"homeCity": "450100",
|
||||
"homeProvince": "450000",
|
||||
"idNo": "452624198303120727",
|
||||
"idType": "1",
|
||||
"liabilitiesMoney": "0",
|
||||
"lifeGrade": "1",
|
||||
"marriage": "1",
|
||||
"medical": "0",
|
||||
"mobile": "13707711024",
|
||||
"name": "艾琳马上",
|
||||
"nativeplace": "1",
|
||||
"occupationCode": "4070103",
|
||||
"occupationName": "经纪人(内勤)",
|
||||
"otherSalarySource": "",
|
||||
"salarySource": "1",
|
||||
"sex": "1",
|
||||
"stature": 167,
|
||||
"taxResidentId": "1",
|
||||
"workcompany": "国富人寿保险股份有限公司"
|
||||
},
|
||||
"insuredDTOs": [
|
||||
{
|
||||
"area": "",
|
||||
"averageAnnualIncome": 1000,
|
||||
"avoirdupois": 60,
|
||||
"birthday": "1983-03-12",
|
||||
"certiexpiredate": "2035-03-31",
|
||||
"companyArea": "",
|
||||
"companyCity": "",
|
||||
"effectiveDateType": "false",
|
||||
"healthGrade": "1",
|
||||
"homeAddress": "百苑小区101号",
|
||||
"homeArea": "450103",
|
||||
"homeCity": "450100",
|
||||
"homeProvince": "450000",
|
||||
"idNo": "452624198303120727",
|
||||
"idType": "1",
|
||||
"liabilitiesMoney": "0",
|
||||
"lifeGrade": "1",
|
||||
"marriage": "1",
|
||||
"medical": "0",
|
||||
"mobile": "13707711024",
|
||||
"name": "艾琳咳咳",
|
||||
"nativeplace": "1",
|
||||
"occupationCode": "4070103",
|
||||
"occupationName": "经纪人(内勤)",
|
||||
"otherSalarySource": "",
|
||||
"province": "",
|
||||
"relationToMainInsured": "5",
|
||||
"salarySource": "1",
|
||||
"sex": "1",
|
||||
"stature": 167,
|
||||
"taxResidentId": "1",
|
||||
"workcompany": "国富人寿保险股份有限公司",
|
||||
"bnfDTOs": [
|
||||
{
|
||||
"area": "450103",
|
||||
"birthday": "1980-01-02",
|
||||
"bnfLot": 50,
|
||||
"bnfOrder": 1,
|
||||
"bnfType": "0 1-是法定;0-不是法定",
|
||||
"certiexpiredate": "2035-03-31",
|
||||
"city": "450100",
|
||||
"effectiveDateType": "false",
|
||||
"healthGrade": "1",
|
||||
"idNo": "110101198001020219",
|
||||
"idType": "1",
|
||||
"lifeGrade": "2",
|
||||
"marriage": "2",
|
||||
"mobile": "13707711024",
|
||||
"name": "爱来",
|
||||
"nativeplace": "1",
|
||||
"occupationCode": "2070202",
|
||||
"occupationName": "保险推销员",
|
||||
"province": "450000",
|
||||
"relationToInsured": "3",
|
||||
"sex": "0",
|
||||
"village": "百苑小区101号",
|
||||
"yearSalary": "23"
|
||||
},
|
||||
{
|
||||
"area": "450103",
|
||||
"birthday": "1983-03-12",
|
||||
"bnfLot": 50,
|
||||
"bnfOrder": 1,
|
||||
"bnfType": "0 1-是法定;0-不是法定",
|
||||
"certiexpiredate": "2035-03-31",
|
||||
"city": "450100",
|
||||
"effectiveDateType": "false",
|
||||
"healthGrade": "1",
|
||||
"idNo": "452624198303120727",
|
||||
"idType": "1",
|
||||
"lifeGrade": "1",
|
||||
"marriage": "1",
|
||||
"mobile": "13707711024",
|
||||
"name": "艾琳马上来",
|
||||
"nativeplace": "1",
|
||||
"occupationCode": "4070103",
|
||||
"occupationName": "经纪人(内勤)",
|
||||
"province": "450000",
|
||||
"relationToInsured": "4",
|
||||
"sex": "1",
|
||||
"village": "百苑小区101号",
|
||||
"yearSalary": "32"
|
||||
}
|
||||
],
|
||||
"impartDTO": {
|
||||
"impartItemDTOS": [
|
||||
{
|
||||
"impartAnswer": "1",
|
||||
"impartCode": "9",
|
||||
"impartContent": "最近六个月内是否有下列身体不适症状?①长期咳嗽咳痰、声音嘶哑、痰中带血、咯血;②胸闷、胸痛、心慌、气喘、气短、呼吸困难;③吐血、大便带血、黑便、反复腹痛、恶心、反酸、呕吐、腹泻;④反复尿频、尿痛、血尿、腰痛、外生殖器溃疡;⑤反复皮下出血、鼻腔出血、牙龈出血、发热、持续疲倦;⑥晕倒、意识不清、视力下降、抽搐、反复头痛、头晕;⑦半年内体重增加或减少5公斤以上;⑧关节红肿、疼痛、活动受限。",
|
||||
"IntroDuctions": ""
|
||||
},
|
||||
{
|
||||
"impartAnswer": "1",
|
||||
"impartCode": "12a",
|
||||
"impartContent": "是否曾患有失明、视网膜出血或剥离、视神经炎、青光眼、白内障、眼底病变、视野缺失、屈光度1000度以上、聋哑、中耳炎、梅尼尔氏病或其他眼、耳、鼻、喉或口腔疾病?",
|
||||
"IntroDuctions": ""
|
||||
}
|
||||
]
|
||||
},
|
||||
"riskDTOLst": [
|
||||
{
|
||||
"riskName": "国富人寿国富民惠医疗保险(2020版)",
|
||||
"insuYear": 1,
|
||||
"insuYearFlag": "Y",
|
||||
"payIntv": 12,
|
||||
"payEndYear": 1000,
|
||||
"payEndYearFlag": "Y",
|
||||
"prem": 10000,
|
||||
"riskCode": "1113202",
|
||||
"isMainRisk": "0",
|
||||
"amt": 22640,
|
||||
"dutyLst": [
|
||||
{
|
||||
"dutyName":"国富民惠医疗保险金",
|
||||
"dutyCode":"320300",
|
||||
"amt":1000000,
|
||||
"prem":536,
|
||||
"getLimit":"0",
|
||||
"getRate":"0"
|
||||
},
|
||||
{
|
||||
"dutyName":"",
|
||||
"dutyCode":"",
|
||||
"amt":100000,
|
||||
"prem":536,
|
||||
"getLimit":"",
|
||||
"getRate":""
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"orderAccountDTO": {
|
||||
"accountName": "艾琳马上",
|
||||
"bankName": "BOCOM",
|
||||
"cardBookCode": "4354256325325678790"
|
||||
},
|
||||
"orderInfoDTO": {
|
||||
"contNo": "保单号",
|
||||
"contState": "保单状态 1-承保;4-终止;0-投保中",
|
||||
"cValiDate": "生效日期 String",
|
||||
"orderStatus": "签收状态 0-未签收 1-已签收"
|
||||
}
|
||||
}
|
||||
}`
|
||||
|
||||
res = JSON.parse(a)
|
||||
console.log(res, '===============a==============');
|
||||
//投保人信息返显
|
||||
this.userInfo = res.orderDTO.appntDTO
|
||||
this.setCustomerMarriage(res.orderDTO.appntDTO.marriage)
|
||||
@@ -240,97 +426,15 @@ export default {
|
||||
}
|
||||
//受益人信息
|
||||
//bnfFlag 0-法定受益人 1-指定受益人
|
||||
|
||||
let btnasd = `[
|
||||
{
|
||||
"area": "450103",
|
||||
"birthday": "1980-01-02",
|
||||
"bnfLot": 50,
|
||||
"bnfOrder": 1,
|
||||
"bnfType": "0",
|
||||
"certiexpiredate": "2035-03-31",
|
||||
"city": "450100",
|
||||
"effectiveDateType": "false",
|
||||
"healthGrade": "1",
|
||||
"idNo": "110101198001020219",
|
||||
"idType": "1",
|
||||
"lifeGrade": "2",
|
||||
"marriage": "2",
|
||||
"mobile": "13707711024",
|
||||
"name": "爱来",
|
||||
"nativeplace": "1",
|
||||
"occupationCode": "2070202",
|
||||
"occupationName": "保险推销员",
|
||||
"province": "450000",
|
||||
"relationToInsured": "3",
|
||||
"sex": "1",
|
||||
"village": "百苑小区101号",
|
||||
"yearSalary": "23"
|
||||
},
|
||||
{
|
||||
"area": "450103",
|
||||
"birthday": "1983-03-12",
|
||||
"bnfLot": 50,
|
||||
"bnfOrder": 1,
|
||||
"bnfType": "0",
|
||||
"certiexpiredate": "2035-03-31",
|
||||
"city": "450100",
|
||||
"effectiveDateType": "false",
|
||||
"healthGrade": "1",
|
||||
"idNo": "452624198303120727",
|
||||
"idType": "1",
|
||||
"lifeGrade": "1",
|
||||
"marriage": "1",
|
||||
"mobile": "13707711024",
|
||||
"name": "艾琳马上来",
|
||||
"nativeplace": "1",
|
||||
"occupationCode": "4070103",
|
||||
"occupationName": "经纪人(内勤)",
|
||||
"province": "450000",
|
||||
"relationToInsured": "4",
|
||||
"sex": "1",
|
||||
"village": "百苑小区101号",
|
||||
"yearSalary": "32"
|
||||
},
|
||||
{
|
||||
"area": "450103",
|
||||
"birthday": "1983-03-12",
|
||||
"bnfLot": 50,
|
||||
"bnfOrder": 1,
|
||||
"bnfType": "0",
|
||||
"certiexpiredate": "2035-03-31",
|
||||
"city": "450100",
|
||||
"effectiveDateType": "false",
|
||||
"healthGrade": "1",
|
||||
"idNo": "452624198303120727",
|
||||
"idType": "1",
|
||||
"lifeGrade": "1",
|
||||
"marriage": "1",
|
||||
"mobile": "13707711024",
|
||||
"name": "艾琳马上来",
|
||||
"nativeplace": "1",
|
||||
"occupationCode": "4070103",
|
||||
"occupationName": "经纪人(内勤)",
|
||||
"province": "450000",
|
||||
"relationToInsured": "4",
|
||||
"sex": "1",
|
||||
"village": "百苑小区101号",
|
||||
"yearSalary": "32"
|
||||
}
|
||||
]`
|
||||
res.orderDTO.orderInfoDTO.bnfFlag = '1'
|
||||
if (res.orderDTO.orderInfoDTO.bnfFlag === '0') {
|
||||
this.bnftype = '0'
|
||||
} else if (res.orderDTO.orderInfoDTO.bnfFlag === '1') {
|
||||
if (res.orderDTO.insuredDTOs[0].bnfDTOs && res.orderDTO.insuredDTOs[0].bnfDTOs.length>0) {
|
||||
this.bnftype = '1'
|
||||
res.orderDTO.insuredDTOs[0].bnfDTOs = JSON.parse(btnasd)
|
||||
if (res.orderDTO.insuredDTOs[0].bnfDTOs) {
|
||||
this.bnfPersonInfo = res.orderDTO.insuredDTOs[0].bnfDTOs || JSON.parse(btnasd)
|
||||
this.bnfPersonInfo = res.orderDTO.insuredDTOs[0].bnfDTOs
|
||||
this.bnfPersonInfo.forEach((item, index) => {
|
||||
this.bnfHomeName[index] = getAreaName([{ code: item.province }, { code: item.city }, { code: item.area }])
|
||||
})
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
// 账户信息
|
||||
this.accountPersonInfo = res.orderDTO.orderAccountDTO
|
||||
}
|
||||
|
||||
@@ -177,7 +177,7 @@ export default {
|
||||
})
|
||||
},
|
||||
insureAgain(order) {
|
||||
CacheUtils.setLocItem('orderNo', '')
|
||||
CacheUtils.setLocItem('policyNo', order.policyNo)
|
||||
setTimeout(() => {
|
||||
window.EWebBridge.webCallAppInJs('webview_left_button', {
|
||||
img: this.$assetsUrl + 'images/del-close-btn@3x.png',
|
||||
|
||||
Reference in New Issue
Block a user