feat(worker): support batch sharing cancellation

This commit is contained in:
yml2213
2026-08-28 19:40:49 +08:00
parent e189811617
commit d91d7180ad
13 changed files with 633 additions and 96 deletions
@@ -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':