提交告知问题

This commit is contained in:
皮伟
2019-09-27 17:54:22 +08:00
parent 78501e222f
commit 4b2001d6a3

View File

@@ -248,36 +248,102 @@ export default {
}
})
let data = {
orderType: 'IMPART_ORDER',
orderDTO: {
orderInfoDTO: {
orderNo: window.localStorage.getItem('orderNo')
},
// 投保人
appntDTO: {
impartDTO: obj,
financeImpartDTO: financeImpartDTO
},
// 被保人
insuredDTOs: [{ impartDTO: objInsured, financeImpartDTO: financeImpart }]
}
}
saveInformation(data).then(res => {
if (res.result == '0') {
that.$jump({
flag: 'h5',
extra: {
url: location.origin + '/#/sale/accountInformation'
if (financeImpartDTO == {}) {
let data = {
orderType: 'IMPART_ORDER',
orderDTO: {
orderInfoDTO: {
orderNo: window.localStorage.getItem('orderNo')
},
routerInfo: {
path: '/sale/accountInformation'
}
})
} else {
this.$toast(res.resultMessage)
// 投保人
appntDTO: {
impartDTO: obj
},
// 被保人
insuredDTOs: [{ impartDTO: objInsured, financeImpartDTO: financeImpart }]
}
}
})
saveInformation(data).then(res => {
if (res.result == '0') {
that.$jump({
flag: 'h5',
extra: {
url: location.origin + '/#/sale/accountInformation'
},
routerInfo: {
path: '/sale/accountInformation'
}
})
} else {
this.$toast(res.resultMessage)
}
})
} else if (financeImpart == {}) {
let data = {
orderType: 'IMPART_ORDER',
orderDTO: {
orderInfoDTO: {
orderNo: window.localStorage.getItem('orderNo')
},
// 投保人
appntDTO: {
impartDTO: obj,
financeImpartDTO: financeImpartDTO
},
// 被保人
insuredDTOs: [{ impartDTO: objInsured }]
}
}
saveInformation(data).then(res => {
if (res.result == '0') {
that.$jump({
flag: 'h5',
extra: {
url: location.origin + '/#/sale/accountInformation'
},
routerInfo: {
path: '/sale/accountInformation'
}
})
} else {
this.$toast(res.resultMessage)
}
})
} else {
let data = {
orderType: 'IMPART_ORDER',
orderDTO: {
orderInfoDTO: {
orderNo: window.localStorage.getItem('orderNo')
},
// 投保人
appntDTO: {
impartDTO: obj,
financeImpartDTO: financeImpartDTO
},
// 被保人
insuredDTOs: [{ impartDTO: objInsured, financeImpartDTO: financeImpart }]
}
}
saveInformation(data).then(res => {
if (res.result == '0') {
that.$jump({
flag: 'h5',
extra: {
url: location.origin + '/#/sale/accountInformation'
},
routerInfo: {
path: '/sale/accountInformation'
}
})
} else {
this.$toast(res.resultMessage)
}
})
}
} else {
this.$toast(this.$validator.errors.all()[0])
}