feat: 退款企微审批详情与业务处理状态
All checks were successful
构建并部署前端到测试环境 / build-and-deploy (push) Successful in 7m2s

This commit is contained in:
luo
2026-07-24 16:30:58 +08:00
parent 9a84cd0d31
commit 4c6d871c35
10 changed files with 552 additions and 620 deletions

View File

@@ -10,6 +10,38 @@ export enum RefundStatus {
RETURNED = 4 // 已退回
}
export interface RefundAttachment {
file_key: string
file_name?: string
file_size?: number
}
export interface RefundApprovalTimelineItem {
time?: string
timestamp?: string
status?: string
status_name?: string
operator?: string
operator_name?: string
comment?: string
content?: string
[key: string]: unknown
}
export interface RefundApproval {
source?: string | null
sp_no?: string | null
status?: string | null
status_name?: string | null
template_version?: string | null
applicant?: unknown
approvers?: unknown[]
comments?: unknown[]
attachments?: RefundAttachment[]
timeline?: RefundApprovalTimelineItem[]
business_process_result?: unknown
}
// 退款申请
export interface Refund {
id: number
@@ -25,8 +57,10 @@ export interface Refund {
approved_refund_amount?: number | null // 实际退款金额(分)
actual_received_amount?: number | null // 实收金额(分)
status: RefundStatus
status_name?: string | null
refund_reason: string
refund_voucher_key?: string[] | string // 退款凭证附件列表;历史数据可能为单字符串或逗号字符串
attachments?: RefundAttachment[]
reject_reason: string
remark: string
asset_reset: boolean
@@ -38,6 +72,10 @@ export interface Refund {
current_approver_summary?: string | null // 当前审批人摘要
processing_status?: string | null // 业务处理状态
processing_status_name?: string | null // 业务处理状态名称
processing_failure_summary?: string | null
processing_message?: string | null
business_process_result?: unknown
approval?: RefundApproval | null
creator: number
processor_id: number | null
processed_at: string | null
@@ -71,30 +109,15 @@ export interface CreateRefundRequest {
order_id: number
requested_refund_amount: number // 申请退款金额(分)
actual_received_amount: number // 实收金额(分)
refund_voucher_key: string[] // 退款凭证附件列表
attachments: RefundAttachment[]
refund_reason?: string
}
// 审批通过退款申请请求
export interface ApproveRefundRequest {
approved_refund_amount?: number // 实际退款金额(分)
remark?: string
}
// 审批拒绝退款申请请求
export interface RejectRefundRequest {
reject_reason: string
}
// 重新提交退款申请请求
export interface ResubmitRefundRequest {
requested_refund_amount?: number
actual_received_amount?: number
refund_voucher_key?: string[]
attachments?: RefundAttachment[]
refund_reason?: string
}
// 退回退款申请请求
export interface ReturnRefundRequest {
remark?: string
}