mirror of
http://112.124.100.131/GFRS/ebiz-h5.git
synced 2025-12-11 02:46:45 +08:00
建议书已选产品编辑功能路由传参修改
This commit is contained in:
@@ -27,29 +27,29 @@ function getSearchString (key) {
|
||||
}
|
||||
return obj[key]
|
||||
}
|
||||
let apiVersion = 'v2'
|
||||
var ua = window.navigator.userAgent.toLowerCase()
|
||||
//通过正则表达式匹配ua中是否含有MicroMessenger字符串, 在微信
|
||||
if (localStorage.getItem('apiVersion')) {
|
||||
apiVersion = localStorage.getItem('apiVersion')
|
||||
} else {
|
||||
if (ua.match(/MicroMessenger/i) == 'micromessenger') {
|
||||
//report/reportList数据报表页面在浏览器可以打开了,但在微信或企业微信中打开不了,接口请求不需要token
|
||||
if (window.location.href.indexOf('apiVersion') > 0) {
|
||||
apiVersion = getSearchString('apiVersion') == 'V3' ? 'v3' : 'v2';//url中apiVersion没有时,为v2
|
||||
} else {
|
||||
apiVersion = 'v3'
|
||||
}
|
||||
} else {
|
||||
// 在app
|
||||
if (navigator.userAgent.indexOf('JZG_') > 0) {
|
||||
apiVersion = navigator.userAgent.split('JZG_')[1].split('/')[0].split('_')[1] == 'V3' ? 'v3' : 'v2'
|
||||
}
|
||||
}
|
||||
window.localStorage.setItem('apiVersion', apiVersion)
|
||||
}
|
||||
// 可以多个接口域名,按需添加
|
||||
console.log('环境:', process.env.VUE_APP_FLAG)
|
||||
let apiVersion = 'v1'
|
||||
// var ua = window.navigator.userAgent.toLowerCase()
|
||||
// //通过正则表达式匹配ua中是否含有MicroMessenger字符串, 在微信
|
||||
// if (localStorage.getItem('apiVersion')) {
|
||||
// apiVersion = localStorage.getItem('apiVersion')
|
||||
// } else {
|
||||
// if (ua.match(/MicroMessenger/i) == 'micromessenger') {
|
||||
// //report/reportList数据报表页面在浏览器可以打开了,但在微信或企业微信中打开不了,接口请求不需要token
|
||||
// if (window.location.href.indexOf('apiVersion') > 0) {
|
||||
// apiVersion = getSearchString('apiVersion') == 'V3' ? 'v3' : 'v2';//url中apiVersion没有时,为v2
|
||||
// } else {
|
||||
// apiVersion = 'v3'
|
||||
// }
|
||||
// } else {
|
||||
// // 在app
|
||||
// if (navigator.userAgent.indexOf('JZG_') > 0) {
|
||||
// apiVersion = navigator.userAgent.split('JZG_')[1].split('/')[0].split('_')[1] == 'V3' ? 'v3' : 'v2'
|
||||
// }
|
||||
// }
|
||||
// window.localStorage.setItem('apiVersion', apiVersion)
|
||||
// }
|
||||
// // 可以多个接口域名,按需添加
|
||||
// console.log('环境:', process.env.VUE_APP_FLAG)
|
||||
switch (process.env.VUE_APP_FLAG) {
|
||||
case 'dev':
|
||||
apiDomain = 'https://iagentsales-test2.e-guofu.com:5200/api/' + apiVersion // 国富api ///api/v1
|
||||
|
||||
@@ -690,7 +690,7 @@ export default {
|
||||
this.cvalidateFlag = this.activeType && this.isFrom != 'proposal'
|
||||
|
||||
//构建提交数据、渲染险种
|
||||
if(this.$route.query.insuanceId && this.isFrom == 'proposal'){
|
||||
if(this.$route.query.insuanceIdInfo && this.isFrom == 'proposal'){
|
||||
// 获取试算记录详情
|
||||
let serialNo = ''
|
||||
if (this.$route.query.orderNo) {
|
||||
@@ -699,9 +699,16 @@ export default {
|
||||
if (this.$route.query.proposalOrderNo) {
|
||||
serialNo = this.$route.query.proposalOrderNo
|
||||
}
|
||||
let thismyinsuanceIdInfo = JSON.parse(this.$route.query.insuanceIdInfo)
|
||||
let insuanceId = ''
|
||||
thismyinsuanceIdInfo.forEach(item=>{
|
||||
if(item.isMainRisk == 0){
|
||||
insuanceId = item.insuanceId
|
||||
}
|
||||
})
|
||||
await getTrialRecordInfo({
|
||||
serialNo:serialNo,
|
||||
mainRiskId:this.$route.query.insuanceId
|
||||
mainRiskId:insuanceId
|
||||
}).then(res => {
|
||||
if (res.result == '0') {
|
||||
this.chooseProducts = JSON.parse(res.content.trialJsonStr)
|
||||
@@ -2702,16 +2709,17 @@ export default {
|
||||
let [mainRiskCode, riskDTOLst] = ['', []]
|
||||
let rollInResult = '' //校验预计转入保费结果
|
||||
this.chooseProducts.forEach((item, index) => {
|
||||
console.log(item)
|
||||
if (localStorage.trialList != '') {
|
||||
if (item.isMainRisk == 0) {
|
||||
mainRiskCode = item.productCode
|
||||
}
|
||||
// this.trialInfos.map(trial=>{
|
||||
// trial.duty.map(dutylist=> {
|
||||
// dutylist.dutyname
|
||||
// })
|
||||
// })
|
||||
let thismyinsuanceIdInfo = JSON.parse(this.$route.query.insuanceIdInfo)
|
||||
let insuanceId = ''
|
||||
thismyinsuanceIdInfo.forEach(item01=>{
|
||||
if(item01.isMainRisk == item.productCode){
|
||||
insuanceId = item01.insuanceId
|
||||
}
|
||||
})
|
||||
let riskItem = {
|
||||
isMainRisk: item.isMainRisk,
|
||||
riskName: item.riskName,
|
||||
@@ -2722,7 +2730,7 @@ export default {
|
||||
standPrem: this.trialList[index] && this.trialList[index].standPrem,
|
||||
predictTransferPrem: item.predictTransferPrem,
|
||||
thirdInsuraceNo: this.policyNo,
|
||||
insuanceId:this.$route.query.insuanceId //编辑时,添加主险id
|
||||
insuanceId:insuanceId //编辑时,添加主险id
|
||||
// mult: this.mult
|
||||
}
|
||||
if (item.hasPredictTransferPrem && item.hasPredictTransferPrem === '0') {
|
||||
|
||||
@@ -23,7 +23,7 @@
|
||||
</div>
|
||||
|
||||
<div class="text-right pv5">
|
||||
<!-- <van-button v-if="isFrom == 'proposal'" size="small" round @click="editInsure(index,item)" class="mr5" type="danger">编辑</van-button>-->
|
||||
<van-button v-if="isFrom == 'proposal'" size="small" round @click="editInsure(index,item)" class="mr5" type="danger">编辑</van-button>
|
||||
<van-button size="small" round @click="deteleInsure(index)" plain type="danger">删除</van-button>
|
||||
</div>
|
||||
</div>
|
||||
@@ -437,9 +437,9 @@ export default {
|
||||
let isProposal = localStorage.isFrom == 'proposal' ? true : false
|
||||
let thismyurl = ''
|
||||
if (this.$route.query.orderNo) {
|
||||
thismyurl = '/common/calculatePremium/?orderNo=' + this.$route.query.orderNo + '&insuanceId='+insuanceId
|
||||
thismyurl = '/common/calculatePremium/?orderNo=' + this.$route.query.orderNo + '&insuanceIdInfo='+JSON.stringify(insuanceIdInfo)
|
||||
} else if (this.$route.query.proposalOrderNo) {
|
||||
thismyurl = '/common/calculatePremium?proposalOrderNo=' + this.$route.query.proposalOrderNo + '&insuanceId='+insuanceId
|
||||
thismyurl = '/common/calculatePremium?proposalOrderNo=' + this.$route.query.proposalOrderNo + '&insuanceIdInfo='+JSON.stringify(insuanceIdInfo)
|
||||
}
|
||||
if (isProposal) {
|
||||
this.$jump({
|
||||
|
||||
Reference in New Issue
Block a user