将退单审核文案明确为打手退单
This commit is contained in:
@@ -110,7 +110,7 @@ export async function createWorkerCancelRequestAdminNotification(input: {
|
||||
entityType: 'worker_cancel_request',
|
||||
entityId: input.requestId,
|
||||
dedupeKey: `worker_cancel_request:${input.requestId}`,
|
||||
title: '有打手取消订单申请待审核',
|
||||
title: '有打手退单申请待审核',
|
||||
body: [
|
||||
`订单:${input.platformOrderId || input.workOrderId}`,
|
||||
`商品:${input.productName || '-'}`,
|
||||
|
||||
@@ -41,19 +41,19 @@ export async function reviewAdminWorkerCancelRequest(
|
||||
now: nowIso(),
|
||||
})
|
||||
if (result.failureReason === 'request_not_found') {
|
||||
throw createHttpError('取消订单申请不存在', {
|
||||
throw createHttpError('打手退单申请不存在', {
|
||||
statusCode: 404,
|
||||
errorCode: 'worker_cancel_request_not_found',
|
||||
})
|
||||
}
|
||||
if (result.failureReason === 'request_not_pending') {
|
||||
throw createHttpError('该取消订单申请已审核,请刷新后重试', {
|
||||
throw createHttpError('该打手退单申请已审核,请刷新后重试', {
|
||||
statusCode: 409,
|
||||
errorCode: 'worker_cancel_request_not_pending',
|
||||
})
|
||||
}
|
||||
if (!result.request || !result.order) {
|
||||
throw createHttpError('订单状态已变化,无法审核该取消订单申请', {
|
||||
throw createHttpError('订单状态已变化,无法审核该打手退单申请', {
|
||||
statusCode: 409,
|
||||
errorCode: 'worker_cancel_request_target_changed',
|
||||
})
|
||||
|
||||
@@ -98,7 +98,7 @@ export async function listWorkerMyOrders(query: JsonObject = {}, session: Worker
|
||||
noteByOrderId.get(workOrderId) || '',
|
||||
viewedAtByOrderId.get(workOrderId) || null,
|
||||
),
|
||||
// 问题单分组内的来源角标:平台标记 / 取消申请审核中 / 反馈处理中。
|
||||
// 问题单分组内的来源角标:平台标记 / 退单审核中 / 反馈处理中。
|
||||
problemMarked: item.status === 'problem',
|
||||
pendingCancelRequest: pendingCancelOrderIds.has(workOrderId),
|
||||
pendingFeedback: pendingFeedbackOrderIds.has(workOrderId),
|
||||
|
||||
Reference in New Issue
Block a user