mirror of
http://112.124.100.131/GFRS/ebiz-h5.git
synced 2025-12-10 05:46:44 +08:00
建议书被保人已选产品编辑问题修改
This commit is contained in:
@@ -23,7 +23,7 @@
|
||||
</div>
|
||||
|
||||
<div class="text-right pv5">
|
||||
<van-button v-if="isFrom == 'proposal'" size="small" round @click="editInsure(index,item.insuanceId)" 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>
|
||||
@@ -427,13 +427,23 @@ export default {
|
||||
}
|
||||
},
|
||||
//编辑
|
||||
editInsure(index,insuanceId){
|
||||
editInsure(index,data){
|
||||
let insuanceIdInfo = [{insuanceId: data.insuanceId, riskCode: data.riskCode, isMainRisk: 0 }]
|
||||
if(data.addtion && data.addtion.length != 0){
|
||||
data.addtion.forEach(item=>{
|
||||
insuanceIdInfo.push({
|
||||
insuanceId: item.insuanceId,
|
||||
riskCode: item.riskCode,
|
||||
isMainRisk: 1
|
||||
})
|
||||
})
|
||||
}
|
||||
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