mirror of
http://112.124.100.131/GFRS/ebiz-h5.git
synced 2025-12-24 21:52:53 +08:00
Merge branch 'feature/GFRS-706【0326】电投添加自动撤单功能' into dev
This commit is contained in:
@@ -194,3 +194,12 @@ export function getPayState(data) {
|
||||
data
|
||||
})
|
||||
}
|
||||
|
||||
// 查询支付结果
|
||||
export function revokeOrder(data) {
|
||||
return request({
|
||||
url: getUrl('/sale/order/revokeOrder', 1),
|
||||
method: 'post',
|
||||
data
|
||||
})
|
||||
}
|
||||
|
||||
@@ -122,6 +122,16 @@
|
||||
round
|
||||
>去支付</van-button
|
||||
>
|
||||
|
||||
<van-button
|
||||
@click="revokeOrder(order)"
|
||||
v-if="active == 'commit' && canRevoke[order.orderInfoDTO.orderStatus]"
|
||||
size="small"
|
||||
class="mr5"
|
||||
type="danger"
|
||||
round
|
||||
>撤单</van-button
|
||||
>
|
||||
<!-- <van-button
|
||||
@click="goNucleus(order)"
|
||||
v-if="active == 'commit' && order.orderInfoDTO.orderStatus == '46'"
|
||||
@@ -150,7 +160,7 @@
|
||||
|
||||
<script>
|
||||
import { Tabs, Tab, List, Tag, Sticky, Toast, Dialog } from 'vant'
|
||||
import { orderList, deleteOrderInfo, selfToHuman } from '@/api/ebiz/sale/sale'
|
||||
import { orderList, deleteOrderInfo, revokeOrder } from '@/api/ebiz/sale/sale'
|
||||
import { formatRiskList } from '@/assets/js/utils/formatRiskList.js'
|
||||
import dataDictionary from '@/assets/js/utils/data-dictionary' //根据数据字典找到用户等级
|
||||
|
||||
@@ -175,7 +185,15 @@ export default {
|
||||
error: false,
|
||||
finishedText: '没有更多了',
|
||||
pageSize: 5, //每页数据条数
|
||||
isSuccess: false
|
||||
isSuccess: false,
|
||||
canRevoke: {
|
||||
'02': true,
|
||||
'14': true,
|
||||
'19': true,
|
||||
'48': true,
|
||||
'49': true,
|
||||
'55': true
|
||||
}
|
||||
}
|
||||
},
|
||||
mounted() {
|
||||
@@ -475,6 +493,36 @@ export default {
|
||||
},
|
||||
routerInfo: { path: '/sale/insuredInfo' }
|
||||
})
|
||||
},
|
||||
revokeOrder(order) {
|
||||
this.$dialog
|
||||
.confirm({
|
||||
className: 'dialog-delete',
|
||||
title: '提示',
|
||||
message: '确认撤销投保单吗?',
|
||||
cancelButtonColor: '#E9332E',
|
||||
confirmButtonColor: '#FFFFFF'
|
||||
})
|
||||
.then(() => {
|
||||
return revokeOrder({ id: order.orderInfoDTO.orderNo })
|
||||
})
|
||||
.then(res => {
|
||||
if (res.result == 0) {
|
||||
this.saleList = []
|
||||
this.isSuccess = false
|
||||
this.currentPage = 1
|
||||
;[this.loading, this.finished] = [true, false]
|
||||
let pageInfo = {
|
||||
pageNum: this.currentPage,
|
||||
pageSize: this.pageSize,
|
||||
orderType: this.active
|
||||
}
|
||||
this.loadMore(pageInfo)
|
||||
} else {
|
||||
Toast.fail(res.resultMessage)
|
||||
}
|
||||
})
|
||||
.catch(() => {})
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user