mirror of
http://112.124.100.131/GFRS/ebiz-h5.git
synced 2025-12-12 09:06:43 +08:00
建议书参数缺失优化--二次提交 提交人:白金岩
This commit is contained in:
@@ -2127,16 +2127,9 @@ export default {
|
|||||||
|
|
||||||
if (resultData.result == 0) {
|
if (resultData.result == 0) {
|
||||||
//电投
|
//电投
|
||||||
if (localStorage.isFrom == 'sale' && resultData.deleteFlag == '0') {
|
if (localStorage.isFrom == 'sale') {
|
||||||
localStorage.salePageFlag = '3'
|
if (resultData.deleteFlag == '0') {
|
||||||
}
|
localStorage.salePageFlag = '3';
|
||||||
let url = '/common/selectedProduct'
|
|
||||||
//建议书
|
|
||||||
if (localStorage.isFrom == 'proposal' && resultData.content.id) {
|
|
||||||
let proposalOrderNo = this.$CacheUtils.getLocItem('orderNo') || ''
|
|
||||||
url += '?proposalOrderNo='+proposalOrderNo
|
|
||||||
this.saleInsuredPersonInfo.insuredId = resultData.content.id
|
|
||||||
this.$CacheUtils.setLocItem('saleInsuredPersonInfo', JSON.stringify(this.saleInsuredPersonInfo))
|
|
||||||
}
|
}
|
||||||
this.$jump({
|
this.$jump({
|
||||||
flag: 'goBack',
|
flag: 'goBack',
|
||||||
@@ -2147,9 +2140,25 @@ export default {
|
|||||||
routerInfo: {
|
routerInfo: {
|
||||||
type: 2,
|
type: 2,
|
||||||
index: -2,
|
index: -2,
|
||||||
path: url
|
path: '/common/selectedProduct'
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
}else if (localStorage.isFrom == 'proposal'){
|
||||||
|
let proposalOrderNo = this.$CacheUtils.getLocItem('orderNo') || ''
|
||||||
|
let url = `/common/selectedProduct?proposalOrderNo=${proposalOrderNo}`
|
||||||
|
if (resultData.content.id) {
|
||||||
|
this.saleInsuredPersonInfo.insuredId = resultData.content.id;
|
||||||
|
this.$CacheUtils.setLocItem('saleInsuredPersonInfo', JSON.stringify(this.saleInsuredPersonInfo))
|
||||||
|
}
|
||||||
|
this.$jump({
|
||||||
|
flag: 'h5',
|
||||||
|
extra: {
|
||||||
|
forbidSwipeBack: '1',
|
||||||
|
url: location.origin + `/#${url}`
|
||||||
|
},
|
||||||
|
routerInfo: { path: url }
|
||||||
|
})
|
||||||
|
}
|
||||||
} else {
|
} else {
|
||||||
this.$toast(resultData.resultMessage)
|
this.$toast(resultData.resultMessage)
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -253,7 +253,7 @@ export default {
|
|||||||
this.$CacheUtils.setLocItem('orderNo',this.$route.query.proposalOrderNo)
|
this.$CacheUtils.setLocItem('orderNo',this.$route.query.proposalOrderNo)
|
||||||
this.proposalOrderNo = this.$route.query.proposalOrderNo
|
this.proposalOrderNo = this.$route.query.proposalOrderNo
|
||||||
}
|
}
|
||||||
let pOrderNo = this.proposalOrderNo || this.$CacheUtils.getLocItem('orderNo')
|
let pOrderNo = this.proposalOrderNo?this.proposalOrderNo:this.$CacheUtils.getLocItem('orderNo')
|
||||||
resultData = await getDetail({
|
resultData = await getDetail({
|
||||||
orderNo: pOrderNo,
|
orderNo: pOrderNo,
|
||||||
isMerge: '1',
|
isMerge: '1',
|
||||||
@@ -397,23 +397,21 @@ export default {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
let routerUrl
|
|
||||||
if (localStorage.isFrom == 'proposal') {
|
if (localStorage.isFrom == 'proposal') {
|
||||||
routerUrl = '/proposal/chooseInsuredPerson'
|
let url = `/proposal/chooseInsuredPerson`
|
||||||
if (this.$CacheUtils.getLocItem('orderNo') || this.$route.query.proposalOrderNo) {
|
if (this.$route.query.proposalOrderNo || this.$CacheUtils.getLocItem('orderNo')) {
|
||||||
let proposalOrderNo = this.$CacheUtils.getLocItem('orderNo') || this.$route.query.proposalOrderNo
|
let proposalOrderNo = this.$route.query.proposalOrderNo || this.$CacheUtils.getLocItem('orderNo')
|
||||||
routerUrl += '?proposalOrderNo='+proposalOrderNo
|
url = `/proposal/chooseInsuredPerson?proposalOrderNo=${proposalOrderNo}`
|
||||||
}
|
}
|
||||||
let page = this.$route.query.proposalEdit == '1' ? '-1' : '-2'
|
let page = this.$route.query.proposalEdit == '1' ? '-1' : '-2'
|
||||||
|
|
||||||
this.$jump({
|
this.$jump({
|
||||||
flag: 'goBack',
|
flag: 'h5',
|
||||||
extra: {
|
extra: {
|
||||||
refresh: '1',
|
url: location.origin + `/#${url}`
|
||||||
index: page
|
|
||||||
},
|
},
|
||||||
routerInfo: {
|
routerInfo: {
|
||||||
path: routerUrl
|
path: url
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
@@ -118,7 +118,7 @@ export default {
|
|||||||
const orderNo = this.$CacheUtils.getLocItem('orderNo')
|
const orderNo = this.$CacheUtils.getLocItem('orderNo')
|
||||||
if (orderNo) {
|
if (orderNo) {
|
||||||
let proposalInfoDTO = {
|
let proposalInfoDTO = {
|
||||||
orderNo
|
orderNo: orderNo
|
||||||
}
|
}
|
||||||
let res = await getDetail(proposalInfoDTO)
|
let res = await getDetail(proposalInfoDTO)
|
||||||
this.appntDTO = res.content[0].appntDTO
|
this.appntDTO = res.content[0].appntDTO
|
||||||
@@ -251,6 +251,7 @@ export default {
|
|||||||
}
|
}
|
||||||
saveProposal(params).then(res => {
|
saveProposal(params).then(res => {
|
||||||
if (res.result == '0') {
|
if (res.result == '0') {
|
||||||
|
let url = `/proposal/chooseInsuredPerson?proposalOrderNo=${res.content.orderNo}`
|
||||||
//localStorage.orderNo = res.content.orderNo
|
//localStorage.orderNo = res.content.orderNo
|
||||||
this.$CacheUtils.setLocItem('orderNo', res.content.orderNo)
|
this.$CacheUtils.setLocItem('orderNo', res.content.orderNo)
|
||||||
if (this.appntDTO.socialSecurity) {
|
if (this.appntDTO.socialSecurity) {
|
||||||
@@ -259,12 +260,10 @@ export default {
|
|||||||
this.$jump({
|
this.$jump({
|
||||||
flag: 'h5',
|
flag: 'h5',
|
||||||
extra: {
|
extra: {
|
||||||
url: location.origin + `/#/proposal/chooseInsuredPerson?proposalOrderNo=${res.content.orderNo}`,
|
url: location.origin + `/#${url}`,
|
||||||
needRefresh: '1'
|
needRefresh: '1'
|
||||||
},
|
},
|
||||||
routerInfo: {
|
routerInfo: { path: url }
|
||||||
path: '/proposal/chooseInsuredPerson'
|
|
||||||
}
|
|
||||||
})
|
})
|
||||||
} else {
|
} else {
|
||||||
this.$toast(res.resultMessage)
|
this.$toast(res.resultMessage)
|
||||||
|
|||||||
@@ -112,7 +112,11 @@ export default {
|
|||||||
BreadcrumbNavigator
|
BreadcrumbNavigator
|
||||||
},
|
},
|
||||||
mounted() {
|
mounted() {
|
||||||
this.proposalOrderNo = this.$CacheUtils.getLocItem('orderNo') || this.$route.query.proposalOrderNo || ''
|
if (this.$route.query.proposalOrderNo) {
|
||||||
|
this.proposalOrderNo = this.$route.query.proposalOrderNo
|
||||||
|
}else if (this.$CacheUtils.getLocItem('orderNo')) {
|
||||||
|
this.proposalOrderNo = this.$CacheUtils.getLocItem('orderNo')
|
||||||
|
}
|
||||||
//根据后台数据来展示
|
//根据后台数据来展示
|
||||||
let proposalInfoDTO = {
|
let proposalInfoDTO = {
|
||||||
orderNo: this.proposalOrderNo
|
orderNo: this.proposalOrderNo
|
||||||
@@ -217,16 +221,20 @@ export default {
|
|||||||
saveProposal(params).then(res => {
|
saveProposal(params).then(res => {
|
||||||
if (res.result == '0') {
|
if (res.result == '0') {
|
||||||
this.$CacheUtils.setLocItem('orderNo', res.content.orderNo)
|
this.$CacheUtils.setLocItem('orderNo', res.content.orderNo)
|
||||||
|
let url = `/proposal/proposalInfo?proposalNo=${res.content.orderNo}`
|
||||||
//调用保存接口
|
//调用保存接口
|
||||||
this.$jump({
|
this.$jump({
|
||||||
flag: 'h5',
|
flag: 'h5',
|
||||||
extra: {
|
extra: {
|
||||||
url: location.origin + '/#/proposal/proposalInfo'
|
url: location.origin + `/#${url}`
|
||||||
},
|
},
|
||||||
routerInfo: {
|
routerInfo: {
|
||||||
path: '/proposal/proposalInfo'
|
path: url
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
}else{
|
||||||
|
this.$toast(res.resultMessage)
|
||||||
|
return
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
@@ -340,13 +348,14 @@ export default {
|
|||||||
this.$CacheUtils.setLocItem('saleInsuredPersonInfo', JSON.stringify(saleInsuredPersonInfo)) //存储被保险人信息
|
this.$CacheUtils.setLocItem('saleInsuredPersonInfo', JSON.stringify(saleInsuredPersonInfo)) //存储被保险人信息
|
||||||
localStorage.chooseProductCodes = '' //置空所选险种
|
localStorage.chooseProductCodes = '' //置空所选险种
|
||||||
|
|
||||||
|
let url = `/proposal/insuredPerson?proposalOrderNo=${this.proposalOrderNo}`
|
||||||
this.$jump({
|
this.$jump({
|
||||||
flag: 'h5',
|
flag: 'h5',
|
||||||
extra: {
|
extra: {
|
||||||
url: location.origin + `/#/proposal/insuredPerson?proposalOrderNo=${this.proposalOrderNo}`
|
url: location.origin + `/#${url}`
|
||||||
},
|
},
|
||||||
routerInfo: {
|
routerInfo: {
|
||||||
path: '/proposal/insuredPerson'
|
path: url
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
@@ -356,13 +365,14 @@ export default {
|
|||||||
item.age = item.insuredAge
|
item.age = item.insuredAge
|
||||||
this.$CacheUtils.setLocItem('saleInsuredPersonInfo', JSON.stringify(item)) //存储被保险人信息
|
this.$CacheUtils.setLocItem('saleInsuredPersonInfo', JSON.stringify(item)) //存储被保险人信息
|
||||||
localStorage.isFrom = 'proposal'
|
localStorage.isFrom = 'proposal'
|
||||||
|
let url = `/common/selectedProduct?proposalEdit=1&proposalOrderNo=${item.orderNo}`
|
||||||
this.$jump({
|
this.$jump({
|
||||||
flag: 'h5',
|
flag: 'h5',
|
||||||
extra: {
|
extra: {
|
||||||
url: location.origin + `/#/common/selectedProduct?proposalEdit=1&proposalOrderNo=${item.orderNo}`
|
url: location.origin + `/#${url}`
|
||||||
},
|
},
|
||||||
routerInfo: {
|
routerInfo: {
|
||||||
path: '/common/selectedProduct'
|
path: url
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -316,13 +316,14 @@ export default {
|
|||||||
let cacheInfo = JSON.parse(this.$CacheUtils.getLocItem('saleInsuredPersonInfo'))
|
let cacheInfo = JSON.parse(this.$CacheUtils.getLocItem('saleInsuredPersonInfo'))
|
||||||
insuredInfo = Object.assign(cacheInfo, this.insured)
|
insuredInfo = Object.assign(cacheInfo, this.insured)
|
||||||
this.$CacheUtils.setLocItem('saleInsuredPersonInfo', JSON.stringify(insuredInfo))
|
this.$CacheUtils.setLocItem('saleInsuredPersonInfo', JSON.stringify(insuredInfo))
|
||||||
|
let url = `/common/selectedProduct?proposalOrderNo=${proposalOrderNo}`
|
||||||
this.$jump({
|
this.$jump({
|
||||||
flag: 'h5',
|
flag: 'h5',
|
||||||
extra: {
|
extra: {
|
||||||
url: location.origin + `/#/common/selectedProduct?proposalOrderNo=${proposalOrderNo}`
|
url: location.origin + `/#${url}`
|
||||||
},
|
},
|
||||||
routerInfo: {
|
routerInfo: {
|
||||||
path: '/common/selectedProduct'
|
path: url
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -248,14 +248,15 @@ export default {
|
|||||||
//建议书列表 编辑=》制作中的建议书跳转到选择被保险人页面;
|
//建议书列表 编辑=》制作中的建议书跳转到选择被保险人页面;
|
||||||
this.$CacheUtils.setLocItem('orderNo', item.orderInfoDTO.orderNo)
|
this.$CacheUtils.setLocItem('orderNo', item.orderInfoDTO.orderNo)
|
||||||
this.$CacheUtils.setLocItem('canMoveOn', 1)
|
this.$CacheUtils.setLocItem('canMoveOn', 1)
|
||||||
|
let url = `/proposal/chooseInsuredPerson?proposalOrderNo=${item.orderInfoDTO.orderNo}`
|
||||||
this.$jump({
|
this.$jump({
|
||||||
flag: 'h5',
|
flag: 'h5',
|
||||||
extra: {
|
extra: {
|
||||||
url: location.origin + '/#/proposal/chooseInsuredPerson',
|
url: location.origin + `/#${url}`,
|
||||||
needRefresh: '1'
|
needRefresh: '1'
|
||||||
},
|
},
|
||||||
routerInfo: {
|
routerInfo: {
|
||||||
path: '/proposal/chooseInsuredPerson'
|
path: url
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
@@ -265,13 +266,14 @@ export default {
|
|||||||
this.$CacheUtils.setLocItem('orderNo', item.orderInfoDTO.orderNo)
|
this.$CacheUtils.setLocItem('orderNo', item.orderInfoDTO.orderNo)
|
||||||
//新增 解决直接点击预览报错问题
|
//新增 解决直接点击预览报错问题
|
||||||
localStorage.mainRiskCode = item.insuredDTOs[0].mainRisk[0].mainRiskCode
|
localStorage.mainRiskCode = item.insuredDTOs[0].mainRisk[0].mainRiskCode
|
||||||
|
let url = `/proposal/proposalInfo?proposalNo=${item.orderInfoDTO.orderNo}`
|
||||||
this.$jump({
|
this.$jump({
|
||||||
flag: 'h5',
|
flag: 'h5',
|
||||||
extra: {
|
extra: {
|
||||||
url: location.origin + '/#/proposal/proposalInfo'
|
url: location.origin + `/#${url}`,
|
||||||
},
|
},
|
||||||
routerInfo: {
|
routerInfo: {
|
||||||
path: '/proposal/proposalInfo'
|
path: url
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user