统一取消订单申请审核文案
This commit is contained in:
@@ -78,13 +78,21 @@ export default function AdminWorkerPlatformPage() {
|
||||
isSupport
|
||||
? [
|
||||
{ key: 'orders', label: '接单工单', children: <WorkOrdersPanel /> },
|
||||
{ key: 'cancel-requests', label: '撤单审核', children: <CancelRequestsPanel /> },
|
||||
{
|
||||
key: 'cancel-requests',
|
||||
label: '取消申请审核',
|
||||
children: <CancelRequestsPanel />,
|
||||
},
|
||||
{ key: 'feedbacks', label: '问题反馈', children: <FeedbacksPanel /> },
|
||||
afterSalesTab,
|
||||
]
|
||||
: [
|
||||
{ key: 'orders', label: '接单工单', children: <WorkOrdersPanel /> },
|
||||
{ key: 'cancel-requests', label: '撤单审核', children: <CancelRequestsPanel /> },
|
||||
{
|
||||
key: 'cancel-requests',
|
||||
label: '取消申请审核',
|
||||
children: <CancelRequestsPanel />,
|
||||
},
|
||||
{ key: 'feedbacks', label: '问题反馈', children: <FeedbacksPanel /> },
|
||||
afterSalesTab,
|
||||
...(isAdmin
|
||||
|
||||
@@ -71,12 +71,12 @@ export default function CancelRequestsPanel() {
|
||||
: result.levelChanged
|
||||
? ',该打手已降一级 VIP'
|
||||
: ''
|
||||
message.success(`${result.approved ? '已同意' : '已驳回'}撤单申请${resultText}`)
|
||||
message.success(`${result.approved ? '已同意' : '已驳回'}取消订单申请${resultText}`)
|
||||
setReviewTarget(null)
|
||||
form.resetFields()
|
||||
await refreshAll()
|
||||
} catch (error) {
|
||||
message.error(error instanceof Error ? error.message : '审核撤单申请失败')
|
||||
message.error(error instanceof Error ? error.message : '审核取消订单申请失败')
|
||||
}
|
||||
}
|
||||
|
||||
@@ -135,7 +135,7 @@ export default function CancelRequestsPanel() {
|
||||
return (
|
||||
<>
|
||||
<Card
|
||||
title={`待审核撤单申请(${requestsQuery.data?.data.items.length || 0})`}
|
||||
title={`待审核取消订单申请(${requestsQuery.data?.data.items.length || 0})`}
|
||||
extra={
|
||||
<Button
|
||||
icon={<ReloadOutlined />}
|
||||
@@ -154,12 +154,12 @@ export default function CancelRequestsPanel() {
|
||||
dataSource={requestsQuery.data?.data.items || []}
|
||||
columns={columns}
|
||||
pagination={false}
|
||||
locale={{ emptyText: '暂无待审核撤单申请' }}
|
||||
locale={{ emptyText: '暂无待审核取消订单申请' }}
|
||||
scroll={{ x: 900 }}
|
||||
/>
|
||||
</Card>
|
||||
<Modal
|
||||
title={reviewTarget?.approved ? '同意撤单申请' : '驳回撤单申请'}
|
||||
title={reviewTarget?.approved ? '同意取消订单申请' : '驳回取消订单申请'}
|
||||
open={Boolean(reviewTarget)}
|
||||
onCancel={() => {
|
||||
setReviewTarget(null)
|
||||
|
||||
@@ -24,7 +24,11 @@ const notificationEventRows: NotificationEventRow[] = [
|
||||
{ key: 'acceptance_submitted', name: '提交验收', description: '打手提交订单验收资料' },
|
||||
{ key: 'acceptance_reminded', name: '催验收', description: '打手在验收后催促处理' },
|
||||
{ key: 'material_required', name: '待补资料工单', description: '新工单等待后台补充资料' },
|
||||
{ key: 'cancel_requested', name: '撤单申请', description: '打手提交新的撤单申请,等待客服审核' },
|
||||
{
|
||||
key: 'cancel_requested',
|
||||
name: '取消订单申请',
|
||||
description: '打手提交新的取消订单申请,等待客服审核',
|
||||
},
|
||||
{ key: 'feedback_submitted', name: '问题反馈', description: '打手反馈客户资料或订单处理问题' },
|
||||
]
|
||||
|
||||
|
||||
Reference in New Issue
Block a user