feat(cashDetails): 添加刷新支付状态按钮

This commit is contained in:
woody 2025-08-20 11:40:18 +08:00
parent e2bd45c29d
commit 9f9c2167d6
2 changed files with 21 additions and 2 deletions

View File

@ -272,3 +272,10 @@ export function batchReject(data) {
})
}
export function refreshPayStatus(params) {
return request({
url: '/pay/manage/online-payment/compensationCallBack',
method: 'get',
params
})
}

View File

@ -293,12 +293,14 @@
>
<template slot-scope="scope">
<el-button
v-show="scope.row.payStatus !== 1"
v-has-buttons="['OnlinePayDetailsRefreshStatus']"
style="color: #ffad41"
type="text"
size="small"
@click="toFixed(scope.row.pkId)"
@click="refreshStatus(scope.row)"
>
{{ '导出' }}
刷新状态
</el-button>
</template>
</el-table-column>
@ -474,6 +476,16 @@ export default {
return 'success-row'
}
return ''
},
refreshStatus({ businessCode }) {
api.refreshPayStatus({ businessCode }).then((res) => {
if (res.code === 200) {
this.$message.success('刷新成功')
this.getDataList()
} else {
this.$message.error(res.msg)
}
})
}
}
}