feat(onlinePayDetails): 手动刷新支付状态代码迁移
This commit is contained in:
parent
abf485d5f9
commit
506a56e298
|
@ -279,3 +279,11 @@ export function batchReject(data) {
|
||||||
data
|
data
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
|
export function refreshPayStatus(params) {
|
||||||
|
return request({
|
||||||
|
url: '/pay/manage/online-payment/compensationCallBack',
|
||||||
|
method: 'get',
|
||||||
|
params
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
|
@ -295,12 +295,14 @@
|
||||||
>
|
>
|
||||||
<template slot-scope="scope">
|
<template slot-scope="scope">
|
||||||
<el-button
|
<el-button
|
||||||
|
v-show="scope.row.payStatus !== 1"
|
||||||
|
v-has-buttons="['OnlinePayDetailsRefreshStatus']"
|
||||||
style="color: #ffad41"
|
style="color: #ffad41"
|
||||||
type="text"
|
type="text"
|
||||||
size="small"
|
size="small"
|
||||||
@click="toFixed(scope.row.pkId)"
|
@click="refreshStatus(scope.row)"
|
||||||
>
|
>
|
||||||
{{ '导出' }}
|
刷新状态
|
||||||
</el-button>
|
</el-button>
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
|
@ -419,6 +421,16 @@ export default {
|
||||||
this.tradeTypeList = res.data
|
this.tradeTypeList = res.data
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
|
refreshStatus({ businessCode }) {
|
||||||
|
api.refreshPayStatus({ businessCode }).then((res) => {
|
||||||
|
if (res.code === 200) {
|
||||||
|
this.$message.success('刷新成功')
|
||||||
|
this.getDataList()
|
||||||
|
} else {
|
||||||
|
this.$message.error(res.msg)
|
||||||
|
}
|
||||||
|
})
|
||||||
|
},
|
||||||
changeTime(val) {
|
changeTime(val) {
|
||||||
// this.select.startDate = val[0]
|
// this.select.startDate = val[0]
|
||||||
// this.select.endDate = val[1]
|
// this.select.endDate = val[1]
|
||||||
|
|
Loading…
Reference in New Issue