feat(aftersale): per-line refund/return flow with ledger-backed completion (add-aftersale-refunds)

This commit is contained in:
Chengdong Zhang
2026-09-23 16:56:30 +08:00
parent 93e5a05d48
commit 2c2b54c21c
43 changed files with 4889 additions and 32 deletions
+114
View File
@@ -10,6 +10,7 @@ export const enExtra = {
pointsOrders: "Point redemptions",
content: "Content",
brands: "Brands",
aftersales: "After-sales",
},
admin: {
dashboardTitle: "Platform overview",
@@ -88,6 +89,62 @@ export const enExtra = {
brandNameRequired: "Both language names are required.",
brandSlugDuplicate: "Duplicate slug.",
brandsSaved: "Brands saved.",
aftersaleFilterShop: "Shop ID",
aftersaleShopIdPlaceholder: "shop id",
aftersaleBuyerIdPlaceholder: "buyer id",
aftersaleFilterBuyer: "Buyer ID",
aftersaleKind: "Type",
aftersaleAmount: "Amount",
aftersaleId: "Application",
aftersaleShop: "Shop",
aftersaleBuyer: "Buyer",
aftersaleDetail: "After-sale detail",
aftersaleView: "Detail",
aftersaleClose: "Close",
aftersaleCreated: "Created",
aftersaleUpdated: "Updated",
aftersaleReason: "Reason",
aftersaleEvidence: "Evidence",
aftersaleNoEvidence: "No evidence attached",
aftersaleItem: "Order item",
aftersaleOrder: "Order",
aftersaleOrderTotal: "Order total",
aftersaleOrderRefunded: "Order refunded total",
aftersaleRemaining: "Remaining refundable",
aftersaleReturnTracking: "Return tracking",
aftersaleMessages: "Messages",
aftersaleNoMessages: "No messages yet",
aftersaleReopened: "Reopened once",
aftersaleArbitrate: "Arbitration",
aftersaleArbitrateRefund: "Arbitrate: refund",
aftersaleArbitrateReject: "Arbitrate: reject",
aftersaleConfirmRefund: "Grant a terminal refund to the buyer? This completes the refund and cannot be undone.",
aftersaleConfirmReject: "Reject this dispute terminally? Only the buyer's one-time reopen can resume it.",
aftersaleArbitratedRefund: "Arbitration complete: refunded.",
aftersaleArbitratedReject: "Arbitration complete: rejected.",
aftersaleOutcomeRefunded: "Refunded: the customer ledger is credited and the order refund total updated.",
aftersaleOutcomeRejected: "Rejected: only the buyer's one-time reopen can resume it.",
aftersaleOutcomeCancelled: "Cancelled by the buyer.",
aftersaleConflict: "The application state changed; refresh and try again",
aftersaleOrderNotFound: "Order not found in the order list.",
aftersaleKinds: {
refund_only: "Refund only",
return_refund: "Return & refund",
},
aftersaleStatuses: {
pending: "Pending review",
approved: "Approved",
rejected: "Rejected",
buyer_shipping: "Buyer shipping",
merchant_confirmed: "Return received",
refunded: "Refunded",
cancelled: "Cancelled",
},
aftersaleRoles: {
buyer: "Buyer",
merchant: "Merchant",
platform: "Platform",
},
},
} as const;
@@ -101,6 +158,7 @@ export const zhExtra = {
pointsOrders: "积分兑换单",
content: "内容",
brands: "品牌",
aftersales: "售后仲裁",
},
admin: {
dashboardTitle: "平台概览",
@@ -179,5 +237,61 @@ export const zhExtra = {
brandNameRequired: "中英文名称均为必填项。",
brandSlugDuplicate: "别名重复。",
brandsSaved: "品牌已保存。",
aftersaleFilterShop: "店铺 ID",
aftersaleShopIdPlaceholder: "店铺 ID",
aftersaleBuyerIdPlaceholder: "买家 ID",
aftersaleFilterBuyer: "买家 ID",
aftersaleKind: "类型",
aftersaleAmount: "金额",
aftersaleId: "售后单",
aftersaleShop: "店铺",
aftersaleBuyer: "买家",
aftersaleDetail: "售后详情",
aftersaleView: "详情",
aftersaleClose: "收起",
aftersaleCreated: "创建时间",
aftersaleUpdated: "更新时间",
aftersaleReason: "原因",
aftersaleEvidence: "凭证",
aftersaleNoEvidence: "无凭证",
aftersaleItem: "订单商品",
aftersaleOrder: "订单",
aftersaleOrderTotal: "订单总额",
aftersaleOrderRefunded: "订单已退款总额",
aftersaleRemaining: "剩余可退金额",
aftersaleReturnTracking: "退货物流",
aftersaleMessages: "留言记录",
aftersaleNoMessages: "暂无留言",
aftersaleReopened: "已重新申请",
aftersaleArbitrate: "仲裁",
aftersaleArbitrateRefund: "仲裁退款",
aftersaleArbitrateReject: "仲裁驳回",
aftersaleConfirmRefund: "确定仲裁退款给买家吗?退款将立即完成且不可撤销。",
aftersaleConfirmReject: "确定仲裁驳回吗?仅买家一次重新申请可恢复。",
aftersaleArbitratedRefund: "仲裁完成:已退款。",
aftersaleArbitratedReject: "仲裁完成:已驳回。",
aftersaleOutcomeRefunded: "已退款:买家账户已入账,订单退款总额已更新。",
aftersaleOutcomeRejected: "已驳回:仅买家一次重新申请可恢复。",
aftersaleOutcomeCancelled: "买家已取消。",
aftersaleConflict: "售后单状态已变化,请刷新后重试",
aftersaleOrderNotFound: "订单列表中未找到该订单。",
aftersaleKinds: {
refund_only: "仅退款",
return_refund: "退货退款",
},
aftersaleStatuses: {
pending: "待处理",
approved: "已通过",
rejected: "已驳回",
buyer_shipping: "买家退货中",
merchant_confirmed: "商家已收货",
refunded: "已退款",
cancelled: "已取消",
},
aftersaleRoles: {
buyer: "买家",
merchant: "商家",
platform: "平台",
},
},
} as const;