feat(onlinePayDetails): 手动刷新支付状态代码迁移

This commit is contained in:
woody 2025-09-18 14:47:08 +08:00
parent abf485d5f9
commit 506a56e298
2 changed files with 22 additions and 2 deletions

View File

@ -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
})
}

View File

@ -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]