mirror of
http://112.124.100.131/GFRS/ebiz-h5.git
synced 2025-12-10 13:56:44 +08:00
代码格式化
This commit is contained in:
@@ -423,7 +423,9 @@ import Vue from 'vue'
|
||||
import { GoodsAction, GoodsActionIcon, GoodsActionButton } from 'vant'
|
||||
DataDictionary.relationToAppnt = DataDictionary.relationToAppnt.slice(0, 4)
|
||||
Vue.use(Checkbox).use(CheckboxGroup)
|
||||
Vue.use(GoodsAction).use(GoodsActionIcon).use(GoodsActionButton)
|
||||
Vue.use(GoodsAction)
|
||||
.use(GoodsActionIcon)
|
||||
.use(GoodsActionButton)
|
||||
export default {
|
||||
name: 'insuredInfo',
|
||||
components: {
|
||||
@@ -440,7 +442,7 @@ export default {
|
||||
[RadioGroup.name]: RadioGroup,
|
||||
[Radio.name]: Radio,
|
||||
[IdentityCardScan.name]: IdentityCardScan,
|
||||
OccupationForLoop,
|
||||
OccupationForLoop
|
||||
},
|
||||
data() {
|
||||
return {
|
||||
@@ -458,26 +460,26 @@ export default {
|
||||
sexRadio: [
|
||||
{
|
||||
label: '男',
|
||||
value: '0',
|
||||
value: '0'
|
||||
},
|
||||
{
|
||||
label: '女',
|
||||
value: '1',
|
||||
},
|
||||
value: '1'
|
||||
}
|
||||
],
|
||||
medicalRadio: [
|
||||
{
|
||||
label: '有',
|
||||
value: '0',
|
||||
value: '0'
|
||||
},
|
||||
{
|
||||
label: '无',
|
||||
value: '1',
|
||||
},
|
||||
value: '1'
|
||||
}
|
||||
],
|
||||
maxDate: beforeDate.getBeforeYear(18), //投保人出生日期可选最大值
|
||||
insuredMaxDate: beforeDate.getBeforeDays(28), //被保人出生日期可选最大值
|
||||
filterMaxDate:beforeDate.getBeforeYear(-2),
|
||||
filterMaxDate: beforeDate.getBeforeYear(-2),
|
||||
popupShow: false,
|
||||
areaShow: false, //省级联动
|
||||
homeShow: false, //家庭地址联动
|
||||
@@ -511,7 +513,7 @@ export default {
|
||||
homeName: '', //联系地址
|
||||
homeAddress: '', //详细地址
|
||||
mobile: '', //移动电话
|
||||
email: '', //电子邮箱
|
||||
email: '' //电子邮箱
|
||||
// effectiveDate: '' //指定生效日期
|
||||
},
|
||||
//被保人信息
|
||||
@@ -533,7 +535,7 @@ export default {
|
||||
homeName: '', //联系地址
|
||||
homeAddress: '', //详细地址
|
||||
mobile: '', //移动电话
|
||||
email: '', //电子邮箱
|
||||
email: '' //电子邮箱
|
||||
},
|
||||
selectUser: '',
|
||||
areaList: areaList,
|
||||
@@ -550,7 +552,7 @@ export default {
|
||||
areaCode: '450101',
|
||||
occupationCode: '',
|
||||
occupationName: '',
|
||||
itemProductDTOS: JSON.parse(CacheUtils.getLocItem('itemProductDTOS')), //
|
||||
itemProductDTOS: JSON.parse(CacheUtils.getLocItem('itemProductDTOS')) //
|
||||
}
|
||||
},
|
||||
created() {
|
||||
@@ -602,8 +604,8 @@ export default {
|
||||
flag: 'navigation',
|
||||
extra: {
|
||||
title: '职业类别',
|
||||
hiddenRight: '1',
|
||||
},
|
||||
hiddenRight: '1'
|
||||
}
|
||||
})
|
||||
this.occupationShowPicker = false
|
||||
if (this.insureType === '1') {
|
||||
@@ -644,11 +646,11 @@ export default {
|
||||
type: '1',
|
||||
orderDTO: {
|
||||
orderInfoDTO: {
|
||||
orderNo: orderNo,
|
||||
},
|
||||
},
|
||||
orderNo: orderNo
|
||||
}
|
||||
}
|
||||
}
|
||||
underWrite(data).then((res) => {
|
||||
underWrite(data).then(res => {
|
||||
if (res.result == '0') {
|
||||
this.$toast.clear()
|
||||
window.localStorage.setItem('underWriteData', JSON.stringify(res))
|
||||
@@ -665,11 +667,11 @@ export default {
|
||||
flag: 'h5',
|
||||
extra: {
|
||||
url: location.origin + `/#/cardList/pay`,
|
||||
forbidSwipeBack: 1,
|
||||
forbidSwipeBack: 1
|
||||
},
|
||||
routerInfo: {
|
||||
path: `/cardList/pay`,
|
||||
},
|
||||
path: `/cardList/pay`
|
||||
}
|
||||
})
|
||||
} else {
|
||||
window.localStorage.setItem('uwResult', res.uwResult)
|
||||
@@ -678,11 +680,11 @@ export default {
|
||||
flag: 'h5',
|
||||
extra: {
|
||||
url: location.origin + '/#/cardList/result',
|
||||
backToFirst: '1',
|
||||
backToFirst: '1'
|
||||
},
|
||||
routerInfo: {
|
||||
path: '/cardList/result',
|
||||
},
|
||||
path: '/cardList/result'
|
||||
}
|
||||
})
|
||||
}
|
||||
return true
|
||||
@@ -701,11 +703,11 @@ export default {
|
||||
extra: {
|
||||
title: name,
|
||||
// url: 'http://47.96.143.111/pdfjs/web/viewer.html?file=' + url //测试代码
|
||||
url: location.origin + '/#/cardList/ShowPDF',
|
||||
url: location.origin + '/#/cardList/ShowPDF'
|
||||
},
|
||||
routerInfo: {
|
||||
path: '/cardList/ShowPDF',
|
||||
},
|
||||
path: '/cardList/ShowPDF'
|
||||
}
|
||||
})
|
||||
},
|
||||
//监听名字变化
|
||||
@@ -754,8 +756,8 @@ export default {
|
||||
flag: 'navigation',
|
||||
extra: {
|
||||
title: '投被保人信息',
|
||||
hiddenRight: '1',
|
||||
},
|
||||
hiddenRight: '1'
|
||||
}
|
||||
})
|
||||
if (this.currentPopupIndex == 1) {
|
||||
if (this.selectUser == '1') {
|
||||
@@ -786,7 +788,7 @@ export default {
|
||||
} else if (pickerType == '4') {
|
||||
this.columns = [
|
||||
{ id: 0, text: '有' },
|
||||
{ id: 1, text: '无' },
|
||||
{ id: 1, text: '无' }
|
||||
]
|
||||
} else if (pickerType == '5') {
|
||||
this.columns = DataDictionary.taxIdentity
|
||||
@@ -807,16 +809,16 @@ export default {
|
||||
this.pickerIndex = this.insuredInfo.nativeplace - 1 > 0 ? this.insuredInfo.nativeplace - 1 : 0
|
||||
} else if (pickerType == '10') {
|
||||
this.columns = []
|
||||
this.trialList.forEach((item) => {
|
||||
this.trialList.forEach(item => {
|
||||
if (item.productCode === 'GFRS_M0022') {
|
||||
this.columns.push({
|
||||
id: this.proSchemeCode,
|
||||
text: this.proScheme,
|
||||
text: this.proScheme
|
||||
})
|
||||
} else {
|
||||
this.columns.push({
|
||||
id: item.proSchemeCode,
|
||||
text: item.proScheme,
|
||||
text: item.proScheme
|
||||
})
|
||||
}
|
||||
})
|
||||
@@ -1010,8 +1012,8 @@ export default {
|
||||
flag: 'navigation',
|
||||
extra: {
|
||||
title: '投被保人信息',
|
||||
hiddenRight: '1',
|
||||
},
|
||||
hiddenRight: '1'
|
||||
}
|
||||
})
|
||||
if (this.selectUser == '0') {
|
||||
let { customerName, customerSex } = data
|
||||
@@ -1088,7 +1090,7 @@ export default {
|
||||
if (this.userInfo.relationToInsured == 1) {
|
||||
Object.assign(this.insuredInfo, this.userInfo)
|
||||
}
|
||||
this.$validator.validate().then((valid) => {
|
||||
this.$validator.validate().then(valid => {
|
||||
if (true === valid) {
|
||||
// localStorage.chooseProductCodesNew = localStorage.chooseProductCodes
|
||||
//投保人校验
|
||||
@@ -1349,11 +1351,11 @@ export default {
|
||||
orderDTO: {
|
||||
orderInfoDTO: {
|
||||
bnfFlag: '0',
|
||||
supportBank: '0',
|
||||
supportBank: '0'
|
||||
},
|
||||
appntDTO: this.userInfo,
|
||||
insuredDTOs: [this.insuredInfo],
|
||||
},
|
||||
insuredDTOs: [this.insuredInfo]
|
||||
}
|
||||
}
|
||||
|
||||
//组装险种提交数据
|
||||
@@ -1380,7 +1382,7 @@ export default {
|
||||
proScheme: this.proScheme,
|
||||
proSchemeCode: this.proSchemeCode,
|
||||
insuYear: insuYearDate.insuYear,
|
||||
insuYearFlag: insuYearDate.insuYearFlag,
|
||||
insuYearFlag: insuYearDate.insuYearFlag
|
||||
}
|
||||
if (item.hasPredictTransferPrem && item.hasPredictTransferPrem === '0') {
|
||||
//增加万能险 预计转入保费校验
|
||||
@@ -1515,7 +1517,7 @@ export default {
|
||||
this.insuredInfo.birthday = idToData(val).birthday
|
||||
this.insuredInfo.sex = idToData(val).sex
|
||||
}
|
||||
},
|
||||
}
|
||||
},
|
||||
// beforeDestroy() {
|
||||
// //清理计时器
|
||||
@@ -1550,7 +1552,7 @@ export default {
|
||||
homeName: '', //联系地址
|
||||
homeAddress: '', //详细地址
|
||||
mobile: '', //移动电话
|
||||
email: '', //电子邮箱
|
||||
email: '' //电子邮箱
|
||||
}
|
||||
if (newV === 2) {
|
||||
this.userInfo.sex === '0' ? (this.insuredInfo.sex = '1') : (this.insuredInfo.sex = '0')
|
||||
@@ -1558,7 +1560,7 @@ export default {
|
||||
}
|
||||
},
|
||||
immediate: true,
|
||||
deep: true,
|
||||
deep: true
|
||||
},
|
||||
'userInfo.sex': {
|
||||
handler(newV) {
|
||||
@@ -1567,9 +1569,9 @@ export default {
|
||||
}
|
||||
},
|
||||
immediate: true,
|
||||
deep: true,
|
||||
},
|
||||
},
|
||||
deep: true
|
||||
}
|
||||
}
|
||||
}
|
||||
</script>
|
||||
<style lang="scss">
|
||||
|
||||
1752
src/views/ebiz/cardList/information01.vue
Normal file
1752
src/views/ebiz/cardList/information01.vue
Normal file
File diff suppressed because it is too large
Load Diff
1598
src/views/ebiz/cardList/informationOld.vue
Normal file
1598
src/views/ebiz/cardList/informationOld.vue
Normal file
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user