订单支付记录
This commit is contained in:
@@ -0,0 +1,19 @@
|
||||
import createAxios from '@/utils/request';
|
||||
import type { IPaymentDetail } from '@/domain/iPayment.ts';
|
||||
|
||||
/** 支付记录详情(支付信息 + 凭证图片 + 合并账单) */
|
||||
export async function getPaymentDetail(id: number) {
|
||||
return createAxios<IPaymentDetail>({
|
||||
url: `/recon/payment/${id}`,
|
||||
method: 'get',
|
||||
});
|
||||
}
|
||||
|
||||
/** 审核支付记录:pass 通过(账单批量置已支付)/ reject 拒绝(释放账单,需填原因) */
|
||||
export async function auditPayment(id: number, data: { result: 'pass' | 'reject'; audit_remark?: string }) {
|
||||
return createAxios({
|
||||
url: `/recon/payment/${id}/audit`,
|
||||
method: 'put',
|
||||
data,
|
||||
});
|
||||
}
|
||||
Reference in New Issue
Block a user