Backoffice stage 3: orders and providers, auto-assignment
- Auto-assignment: a new order is offered to the best free provider (same ranking as
the dispatcher hint); a decline or timeout passes it to the next one; nobody is
offered the same order twice; after N tries it waits for a dispatcher and the team
is notified once. The worker retries waiting orders every minute. Settings
assign.auto / assign.maxAutoOffers (toggle on the Orders page, checkbox in old admin).
- Orders: list by day with groups (need a provider, offered, assigned, in progress,
done, cancelled), periods and search; order card with progress, provider or ranked
candidates ("offer" / "pick automatically"), details, checklist and photos,
history in plain words, client, money (superadmin), payment, status change,
reschedule (slots or custom time), cancel with fee.
- New order for a client (from the client card or the Orders page): params form,
address, free slots for 14 days, price with the client's discount.
- Providers: list with rating, orders, declines, low ratings, next order; card with
quality, ratings, upcoming orders, schedule and districts, admission documents,
block/unblock with reason, new bot link, money and payouts (superadmin).
- Payout gets paidAt/note/createdById; Provider gets blockedReason/blockedAt/adminNote
and documents (ProviderDoc).
- Tests for auto-assignment.
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
This commit is contained in:
1 parent
2772837e29
commit
e7de4f5893
33 files changed
+4521
-45
No files matched your search
@@ -871,7 +871,8 @@
|
||||
"file": "文件",
|
||||
"chatAssigned": "{{by}} 将对话转交给你:{{name}}",
|
||||
"order": "订单 #{{number}}",
|
||||
"noOrder": "当前没有订单"
|
||||
"noOrder": "当前没有订单",
|
||||
"autoFailed": "订单 #{{number}} 没有找到空闲的服务人员,请手动分配。"
|
||||
},
|
||||
"partner": {
|
||||
"valid": "{{name}} — {{level}},会员卡有效",
|
||||
@@ -1269,7 +1270,9 @@
|
||||
"residence_escortFrom": "居留许可:陪同办理起价,֏",
|
||||
"residence_stateFee": "居留许可:1年国家规费,֏",
|
||||
"transfer_standardPrice": "接机「标准」,֏",
|
||||
"transfer_premiumPrice": "接机「高级」,֏"
|
||||
"transfer_premiumPrice": "接机「高级」,֏",
|
||||
"assign_auto": "自动分配订单",
|
||||
"assign_maxAutoOffers": "自动尝试的服务人员数量"
|
||||
},
|
||||
"presets": {
|
||||
"add": "添加方案",
|
||||
|
||||
Reference in new issue
Block a user