【建议书优化需求】建议书已选产品列表,新增【编辑】功能

This commit is contained in:
lyt
2023-04-07 19:12:31 +08:00
parent 88d3c5b255
commit 9ba8b3801f
2 changed files with 27 additions and 11 deletions

View File

@@ -33,16 +33,17 @@ export default {
jump(index) {
if (index === this.current || index == 2) return
if (this.moveOn) {
this.$jump({
flag: 'h5',
extra: {
url: location.origin + `/#/${this.routerInfos[index]}`,
needRefresh: '1'
},
routerInfo: {
path: `/${this.routerInfos[index]}`
}
})
this.$router.push({ path: '/'+this.routerInfos[index] })
// this.$jump({
// flag: 'h5',
// extra: {
// url: location.origin + `/#/${this.routerInfos[index]}`,
// needRefresh: '1'
// },
// routerInfo: {
// path: `/${this.routerInfos[index]}`
// }
// })
}
},
showArrow(index) {

View File

@@ -23,7 +23,7 @@
</div>
<div class="text-right pv5">
<!-- <van-button size="small" round class="mr5" type="danger">编辑</van-button> -->
<van-button v-if="isFrom == 'proposal'" size="small" round @click="editInsure(index)" class="mr5" type="danger">编辑</van-button>
<van-button size="small" round @click="deteleInsure(index)" plain type="danger">删除</van-button>
</div>
</div>
@@ -386,6 +386,21 @@ export default {
this.$toast(resultData.resultMessage)
}
},
//编辑
editInsure(index){
let isProposal = localStorage.isFrom == 'proposal' ? true : false
if (isProposal) {
this.$jump({
flag: 'h5',
extra: {
url: location.origin + '/#/common/calculatePremium?orderNo='+this.$CacheUtils.getLocItem('proposalNo')+'&insuanceId='+this.chooseProducts[index].insuanceId
},
routerInfo: {
path: '/common/calculatePremium?orderNo='+this.$CacheUtils.getLocItem('proposalNo')+'&insuanceId='+this.chooseProducts[index].insuanceId
}
})
}
},
//下一步
async nextStep() {
if (!this.$route.query.salePageFlag) {