代码格式化

This commit is contained in:
liyuetong
2021-05-17 18:16:17 +08:00
parent 55ed0f4e2a
commit 530e009fc5
3 changed files with 3398 additions and 46 deletions

View File

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

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff