feat(settlement): 门店账单确认打款支持上传凭证照片

财务确认打款与提现通过可附带 OSS 凭证图,详情与导出展示。

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
2026-08-30 15:25:56 +08:00
parent b375fab44a
commit e68eb4d38c
11 changed files with 293 additions and 114 deletions
@@ -133,7 +133,7 @@ export class AdminStoreWithdrawController {
approve(
@CurrentUser() user: AuthUser,
@Param('id') id: string,
@Body() body: { paymentRef?: string },
@Body() body: { paymentRef?: string; paymentProofUrls?: string[] },
) {
return this.settlementService.approveStoreWithdraw(BigInt(id), user.actorId, body);
}
@@ -287,8 +287,10 @@ export class AdminStoreBillController {
batch: true,
includeBody: true,
})
batchConfirm(@Body() body: { ids: string[] }) {
return this.settlementService.batchConfirmStoreBills(body.ids ?? []);
batchConfirm(
@Body() body: { ids: string[]; paymentRef?: string; paymentProofUrls?: string[] },
) {
return this.settlementService.batchConfirmStoreBills(body.ids ?? [], body);
}
@Get(':id')
@@ -302,7 +304,10 @@ export class AdminStoreBillController {
refType: 'STORE_BILL',
refIdParam: 'id',
})
confirm(@Param('id') id: string, @Body() body: { paymentRef?: string }) {
confirm(
@Param('id') id: string,
@Body() body: { paymentRef?: string; paymentProofUrls?: string[] },
) {
return this.settlementService.confirmStoreBill(BigInt(id), body);
}
}