feat(worker): support batch sharing cancellation
This commit is contained in:
@@ -313,6 +313,22 @@ export function formatWorkOrderEvent(event: WorkOrderEvent): EventNodeStyle {
|
||||
color: 'red',
|
||||
}
|
||||
}
|
||||
case 'sharing_unaccepted_shares_returned_to_hall_by_admin': {
|
||||
const count = readPayload(event, 'cancelledShareCount')
|
||||
return {
|
||||
title: `批量撤回未验收拼单份额${count ? `(${count} 个)` : ''}`,
|
||||
description: note ? `原因:${note}` : '对应数量已重新开放到接单大厅',
|
||||
color: 'orange',
|
||||
}
|
||||
}
|
||||
case 'sharing_order_cancelled_by_admin': {
|
||||
const count = readPayload(event, 'cancelledShareCount')
|
||||
return {
|
||||
title: `取消拼单订单${count ? `(已撤销 ${count} 个参与份额)` : ''}`,
|
||||
description: note ? `原因:${note}` : undefined,
|
||||
color: 'red',
|
||||
}
|
||||
}
|
||||
case 'pending_deposit_deducted':
|
||||
return { title: '扣减了待解冻押金', color: 'default' }
|
||||
case 'voucher_backfilled':
|
||||
|
||||
Reference in New Issue
Block a user