mirror of
http://112.124.100.131/GFRS/ebiz-h5.git
synced 2025-12-06 23:36:43 +08:00
Compare commits
1 Commits
feature/【需
...
hotfix/【20
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
13ad421271 |
@@ -559,7 +559,7 @@ export default {
|
||||
)
|
||||
|
||||
if (insuredDTO) {
|
||||
let insuredPersonAge = insuredDTO.birthday?utilsAge.getAge(insuredDTO.birthday, new Date()):insuredDTO.insuredAge
|
||||
let insuredPersonAge = utilsAge.getAge(insuredDTO.birthday, new Date())
|
||||
CacheUtils.setLocItem('saleInsuredPersonInfo',
|
||||
JSON.stringify({
|
||||
birthday: insuredDTO.birthday,
|
||||
|
||||
@@ -376,6 +376,7 @@ import { saveOrUpdateOrderInfo, getOrderDetail,orderTrial } from '@/api/ebiz/sal
|
||||
import { saveProposal, getTrialRecordInfo, saveOrUpdateTrialRecordInfo } from '@/api/ebiz/proposal/proposal.js'
|
||||
import { getAgentInfo } from '@/api/ebiz/my/my.js'
|
||||
import occupationList from '@/components/ebiz/occipation/data/occupation'
|
||||
import utilsAge from '@/assets/js/utils/age'
|
||||
import riskRules from "./risk-rules";
|
||||
|
||||
//险种GFRS_M0016的责任的验证规则
|
||||
@@ -663,7 +664,7 @@ export default {
|
||||
//获取被保险人信息
|
||||
if (this.$CacheUtils.getLocItem('saleInsuredPersonInfo')) {
|
||||
this.saleInsuredPersonInfo = JSON.parse(this.$CacheUtils.getLocItem('saleInsuredPersonInfo'))
|
||||
this.saleInsuredPersonInfo.insuredAge = this.saleInsuredPersonInfo.insuredAge ? this.saleInsuredPersonInfo.insuredAge : this.saleInsuredPersonInfo.age
|
||||
this.saleInsuredPersonInfo.insuredAge = utilsAge.getAge(this.saleInsuredPersonInfo.birthday, new Date())
|
||||
if (this.isFrom == 'proposal' && !this.saleInsuredPersonInfo.name) {
|
||||
// 建议书投保人/被保人姓名不必填, 填写姓名时展示姓名(落库),不填写姓名时展示性别+年龄,如:男30岁(不落库)
|
||||
let sex = this.saleInsuredPersonInfo.sex == '0'?'男':'女'
|
||||
@@ -2347,7 +2348,7 @@ export default {
|
||||
this.saleInsuredInfo.sex,
|
||||
this.saleInsuredInfo.occupationCode,
|
||||
this.saleInsuredInfo.occupationName,
|
||||
this.saleInsuredInfo.insuredAge?this.saleInsuredInfo.insuredAge:this.saleInsuredInfo.age,
|
||||
utilsAge.getAge(this.saleInsuredPersonInfo.birthday, new Date())
|
||||
]
|
||||
} else {
|
||||
;[birthday, sex, occupationCode, occupationName, age] = [
|
||||
@@ -2355,7 +2356,7 @@ export default {
|
||||
this.saleInsuredPersonInfo.sex,
|
||||
this.saleInsuredPersonInfo.occupationCode,
|
||||
this.saleInsuredPersonInfo.occupationName,
|
||||
this.saleInsuredPersonInfo.insuredAge?this.saleInsuredPersonInfo.insuredAge:this.saleInsuredPersonInfo.age
|
||||
utilsAge.getAge(this.saleInsuredPersonInfo.birthday, new Date())
|
||||
]
|
||||
}
|
||||
trialInfo = Object.assign(trialInfo, {
|
||||
@@ -2875,7 +2876,7 @@ export default {
|
||||
//建议书需要添加全部投保人信息,电投只需要投保人ID
|
||||
let insuredDTOItem = Object.assign(this.saleInsuredPersonInfo, { riskDTOLst: riskDTOLst })
|
||||
if (!insuredDTOItem.insuredAge) {
|
||||
insuredDTOItem.insuredAge = insuredDTOItem.age
|
||||
insuredDTOItem.insuredAge = insuredDTOItem.birthday ? utilsAge.getAge(insuredDTOItem.birthday, new Date()) : insuredDTOItem.age
|
||||
}
|
||||
let orderNo = localStorage.isFrom == 'proposal'?this.$route.query.proposalOrderNo:this.$route.query.orderNo
|
||||
let params = {
|
||||
|
||||
Reference in New Issue
Block a user