- 租客在待交接状态取消订单不再自动退款,改为 refund_status=pending_review - 新增退款审核页面 /admin/orders/refund-review,客服可逐个审核 - 新增 POST /refund/approve 通过退款、POST /refund/reject 驳回退款 - 新增 GET /orders/refund-pending 查询待审核退款订单列表 - 优化状态标签表述:已取消→租客已取消、已关闭→客服已关闭、异常→客服介入 - 新增 refund_status: pending_review 及其前端标签「待客服审核退款」 - AdminOrderDetailView 退款状态改用统一 refundStatusLabel
67 lines
2.6 KiB
Go
67 lines
2.6 KiB
Go
package order
|
|
|
|
const (
|
|
orderStatusPendingPayment = "pending_payment"
|
|
orderStatusPendingHandoff = "pending_handoff"
|
|
orderStatusRenting = "renting"
|
|
orderStatusOverdue = "overdue"
|
|
orderStatusPendingCheckoutConfirm = "pending_checkout_confirm"
|
|
orderStatusPendingCheckoutAccept = "pending_checkout_accept"
|
|
orderStatusCheckoutDisputing = "checkout_disputing"
|
|
orderStatusCompleted = "completed"
|
|
orderStatusCancelled = "cancelled"
|
|
orderStatusClosed = "closed"
|
|
orderStatusAbnormal = "abnormal"
|
|
|
|
handoffStatusNone = "none"
|
|
handoffStatusPendingOwner = "pending_owner"
|
|
handoffStatusPendingRenterConfirm = "pending_renter_confirm"
|
|
handoffStatusReceived = "received"
|
|
handoffStatusReturnOverdue = "return_overdue"
|
|
handoffStatusPendingOwnerCheckout = "pending_owner_checkout"
|
|
handoffStatusPendingRenterCheckout = "pending_renter_checkout"
|
|
handoffStatusReturned = "returned"
|
|
handoffStatusOwnerTimeout = "owner_timeout"
|
|
handoffStatusRenterConfirmTimeout = "renter_confirm_timeout"
|
|
handoffStatusOwnerReturnConfirmTimeout = "owner_return_confirm_timeout"
|
|
handoffStatusOwnerCheckoutConfirmTimeout = "owner_checkout_confirm_timeout"
|
|
handoffStatusCancelled = "cancelled"
|
|
handoffStatusAdminClosed = "admin_closed"
|
|
handoffStatusAdminAbnormal = "admin_abnormal"
|
|
|
|
settlementStatusUnsettled = "unsettled"
|
|
settlementStatusPending = "pending"
|
|
settlementStatusSettled = "settled"
|
|
settlementStatusClosed = "closed"
|
|
|
|
checkoutStatusSubmitted = "submitted"
|
|
checkoutStatusCountered = "countered"
|
|
checkoutStatusAccepted = "accepted"
|
|
checkoutStatusDisputed = "disputed"
|
|
|
|
refundStatusPending = "pending"
|
|
refundStatusPendingReview = "pending_review"
|
|
refundStatusRefunded = "refunded"
|
|
|
|
listingReviewStatusApproved = "approved"
|
|
|
|
listingStatusPublished = "published"
|
|
listingStatusRented = "rented"
|
|
listingStatusOffline = "offline"
|
|
listingStatusCompleted = "completed"
|
|
listingStatusAbnormal = "abnormal"
|
|
|
|
accountStatusPublished = "published"
|
|
accountStatusRented = "rented"
|
|
accountStatusOffline = "offline"
|
|
accountStatusAbnormal = "abnormal"
|
|
|
|
walletBizOwnerIncome = "owner_income"
|
|
walletBizDepositCompensation = "deposit_compensation"
|
|
|
|
refundBizCancel = "cancel_refund"
|
|
refundBizAdminClose = "admin_close_refund"
|
|
refundBizAdmin = "admin_refund"
|
|
refundBizCheckout = "checkout_refund"
|
|
)
|