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:
@@ -148,6 +148,15 @@ export function cardOrderDetail(data) {
|
||||
})
|
||||
}
|
||||
|
||||
////验证惠桂保是否续保单优惠方案
|
||||
export function selectPreferentialScheme(data) {
|
||||
return request({
|
||||
url: getUrl('/sale/card/selectPreferentialScheme', 1),
|
||||
method: 'post',
|
||||
data
|
||||
})
|
||||
}
|
||||
|
||||
//删除
|
||||
// {
|
||||
// "id": "23271" //被保险人insuredId
|
||||
|
||||
@@ -331,9 +331,9 @@ export default {
|
||||
let cardOrderNo = order.orderNo
|
||||
let url
|
||||
if(orderStatus == '59'){
|
||||
url =`/cardList/GroupAppntInfo?cardOrderNo=${cardOrderNo}`
|
||||
url =`/cardList/GroupAppntInfo?cardOrderNo=${cardOrderNo}&editOrder=1`
|
||||
}else if(orderStatus == '60'){
|
||||
url =`/cardList/GroupInsuredList?cardOrderNo=${cardOrderNo}`
|
||||
url =`/cardList/GroupInsuredList?cardOrderNo=${cardOrderNo}&editOrder=1`
|
||||
}
|
||||
this.$jump({
|
||||
flag: 'h5',
|
||||
|
||||
@@ -33,19 +33,18 @@
|
||||
</li>
|
||||
</ul>
|
||||
<van-goods-action style='z-index: 99'>
|
||||
<van-button type='default' style='width: 50%; font-size: 14px; height: 40px; background: white'
|
||||
>总保费:<span style='color: red; font-weight: bold; font-size: 18px; font-weight: 400'>{{ allPrice | moneyFormat}}</span
|
||||
>元
|
||||
</van-button
|
||||
>
|
||||
<van-button type='default' style='width: 50%; font-size: 14px; height: 50px; background: white;line-height: 20px;'>
|
||||
<div v-if="allPrice != orderStandAmount">折后总保费:<span style='color: red; font-weight: bold; font-size: 18px; font-weight: 400;'>{{ allPrice | moneyFormat}}</span>元</div>
|
||||
总保费:<span style='color: red; font-weight: bold; font-size: 18px; font-weight: 400;'>{{ orderStandAmount | moneyFormat}}</span>元
|
||||
</van-button>
|
||||
<van-goods-action-button type='danger' text='下一步' @click='nextStep' v-no-more-click='1000'
|
||||
style='border-radius: 0em; width: 50%; height: 40px;margin:0px' />
|
||||
style='border-radius: 0em; width: 50%; height: 50px;margin:0px' />
|
||||
</van-goods-action>
|
||||
</div>
|
||||
</template>
|
||||
<script>
|
||||
import { Icon, Dialog, Toast } from 'vant'
|
||||
import { cardOrderDetail, deleteGroupCardByInsured } from '@/api/ebiz/cardList/cardList.js'
|
||||
import { cardOrderDetail, deleteGroupCardByInsured,selectPreferentialScheme } from '@/api/ebiz/cardList/cardList.js'
|
||||
// import BreadcrumbNavigator from '@/components/ebiz/proposal/BreadcrumbNavigator'
|
||||
import { GoodsAction, GoodsActionIcon, GoodsActionButton } from 'vant'
|
||||
|
||||
@@ -88,7 +87,9 @@ export default {
|
||||
//与被保险人关系默认为本人。
|
||||
chooseList: [], //添加上的被保险人
|
||||
cardOrderNo: '',
|
||||
allPrice:0
|
||||
editOrder: null, //是否是从订单编辑页面进来的 1 是
|
||||
allPrice:0, //打折后价格
|
||||
orderStandAmount:0 //原价
|
||||
}
|
||||
},
|
||||
components: {
|
||||
@@ -106,10 +107,16 @@ export default {
|
||||
if (this.$route.query.cardOrderNo) {
|
||||
this.cardOrderNo = this.$route.query.cardOrderNo
|
||||
}
|
||||
// editOrder 是否是从订单编辑页面进来的 1 是
|
||||
if (this.$route.query.editOrder == 1) {
|
||||
this.editOrder = this.$route.query.editOrder
|
||||
this.selectPreferentialSchemeFunc()
|
||||
}else{
|
||||
this.cardOrderDetailFunc() //验证惠桂保是否续保单优惠方案
|
||||
}
|
||||
// else if (this.$CacheUtils.getLocItem('orderNo')) {
|
||||
// this.cardOrderNo = this.$CacheUtils.getLocItem('orderNo')
|
||||
// }
|
||||
this.cardOrderDetailFunc()
|
||||
// }
|
||||
},
|
||||
methods: {
|
||||
// stepIn() {
|
||||
@@ -124,6 +131,42 @@ export default {
|
||||
// }
|
||||
// })
|
||||
// },
|
||||
selectPreferentialSchemeFunc(){
|
||||
let that = this
|
||||
let cardInfoDTO = {
|
||||
orderNo: this.cardOrderNo
|
||||
}
|
||||
selectPreferentialScheme(cardInfoDTO).then(res => {
|
||||
if (res.result == '0') {
|
||||
that.cardOrderDetailFunc()
|
||||
} else {
|
||||
this.$dialog
|
||||
.confirm({
|
||||
className: 'dialog-blue',
|
||||
title: '提示',
|
||||
message: res.resultMessage,
|
||||
confirmButtonText: '重试',
|
||||
confirmButtonColor:"red",
|
||||
cancelButtonText: '退出'
|
||||
}).then(() => {
|
||||
//parentShowPicker 是否调用父母列表的组件显示
|
||||
that.selectPreferentialSchemeFunc()
|
||||
}).catch(() => {
|
||||
this.$jump({
|
||||
flag: 'h5',
|
||||
extra: {
|
||||
title: '产品列表',
|
||||
forbidSwipeBack: 1, //当前页面禁止右滑返回
|
||||
url: location.origin + `/#/cardList/cardTotreasure`
|
||||
},
|
||||
routerInfo: {
|
||||
path: `/cardList/cardTotreasure`
|
||||
}
|
||||
})
|
||||
});
|
||||
}
|
||||
})
|
||||
},
|
||||
cardOrderDetailFunc(){
|
||||
//根据后台数据来展示
|
||||
let cardInfoDTO = {
|
||||
@@ -134,6 +177,7 @@ export default {
|
||||
if (res.orderDTO.insuredDTOs.length > 0) {
|
||||
this.chooseList = res.orderDTO.insuredDTOs
|
||||
this.allPrice = res.orderDTO.orderInfoDTO.orderAmount
|
||||
this.orderStandAmount = res.orderDTO.orderInfoDTO.orderStandAmount
|
||||
this.chooseList.forEach(v => {
|
||||
relation.forEach(r => {
|
||||
if (r.id == v.relationToAppnt) {
|
||||
@@ -433,4 +477,7 @@ export default {
|
||||
// li:last-child {
|
||||
// border-bottom: 1px solid #dadada;
|
||||
// }
|
||||
// .van-button{
|
||||
// line-height: 20px;
|
||||
// }
|
||||
</style>
|
||||
|
||||
@@ -41,12 +41,17 @@
|
||||
</van-cell-group>
|
||||
<div class='tips'>注:{{ productDate }}</div>
|
||||
<van-goods-action style='z-index: 99'>
|
||||
<van-button type='default' style='width: 50%; font-size: 14px; height: 40px; background: white'>总保费:<span
|
||||
<van-button type='default' style='width: 50%; font-size: 14px; height: 50px; background: white;line-height: 20px;'>
|
||||
<div v-if="orderAmount != orderStandAmount">
|
||||
折后总保费:<span
|
||||
style='color: red; font-weight: bold; font-size: 18px; font-weight: 400'>{{
|
||||
orderAmount }}</span>元
|
||||
orderAmount }}</span>元</div>
|
||||
总保费:<span
|
||||
style='color: red; font-weight: bold; font-size: 18px; font-weight: 400'>{{
|
||||
orderStandAmount }}</span>元
|
||||
</van-button>
|
||||
<van-goods-action-button type='danger' text='确认' @click='nextStep' v-no-more-click='1000'
|
||||
style='border-radius: 0em; width: 50%; height: 40px' />
|
||||
style='border-radius: 0em; width: 50%; height: 50px;margin:0px' />
|
||||
</van-goods-action>
|
||||
</div>
|
||||
</template>
|
||||
@@ -82,6 +87,8 @@ export default {
|
||||
bnfTypeVal: '法定受益人', //受益人类型文字展示
|
||||
riskDTO: {},
|
||||
productDate: '',
|
||||
orderStandAmount:0, //原价
|
||||
orderAmount:0, //打折后价格
|
||||
isLessEighteen: true // 被保人手机号和邮箱默认展示
|
||||
}
|
||||
},
|
||||
@@ -128,6 +135,7 @@ export default {
|
||||
productDateTime = productDate.getFullYear() + '年' + insuYearM + '月' + insuYearD + '日'
|
||||
this.productDate = currentData + '0时至' + productDateTime + '24时止'
|
||||
this.orderAmount = this.orderDTO.orderInfoDTO.orderAmount
|
||||
this.orderStandAmount = this.orderDTO.orderInfoDTO.orderStandAmount
|
||||
},
|
||||
methods: {
|
||||
nextStep() {
|
||||
@@ -165,4 +173,8 @@ export default {
|
||||
text-align: center;
|
||||
}
|
||||
}
|
||||
|
||||
.van-button{
|
||||
line-height: 20px;
|
||||
}
|
||||
</style>
|
||||
|
||||
Reference in New Issue
Block a user