fix: 修正提现操作中使用的订单ID,确保正确处理审批和拒绝请求

This commit is contained in:
2026-01-20 04:10:22 +07:00
parent 970f190218
commit ddef423fdf

View File

@@ -83,7 +83,7 @@ const columns: TableBaseColumns = [
negativeText: '取消',
onPositiveClick: async () => {
await safeClient(() =>
client.api.admin.withdraw({ orderId: row.orderNo }).approve.post({
client.api.admin.withdraw({ orderId: row.id }).approve.post({
reviewNote: `管理员通过于 ${dayjs().format('YYYY-MM-DD HH:mm:ss')}`
})
);
@@ -108,7 +108,7 @@ const columns: TableBaseColumns = [
negativeText: '取消',
onPositiveClick: async () => {
await safeClient(() =>
client.api.admin.withdraw({ orderId: row.orderNo }).reject.post({
client.api.admin.withdraw({ orderId: row.id }).reject.post({
rejectReason: `管理员拒绝于 ${dayjs().format('YYYY-MM-DD HH:mm:ss')}`
})
);
@@ -132,7 +132,7 @@ const columns: TableBaseColumns = [
positiveText: '确认已打款',
negativeText: '取消',
onPositiveClick: async () => {
await safeClient(() => client.api.admin.withdraw({ orderId: row.orderNo }).paid.post());
await safeClient(() => client.api.admin.withdraw({ orderId: row.id }).paid.post());
window.$message?.success('操作成功');
tableInst.value?.reload();
}