fix(worker-platform): 支持寄售筛选叠加接单人员

This commit is contained in:
yml2213
2026-11-06 17:53:31 +08:00
parent 33d7c6597c
commit e85bbee7e0
3 changed files with 16 additions and 13 deletions
@@ -34,11 +34,10 @@ export type ConsignmentWorkerDisplayInfo = {
}
/**
* 内部现货履约单:由客服/内部仓代交付,工单上没有接单打手。
* 尚未匹配打手的内部现货履约单:由客服/内部仓代交付,工单上没有接单打手。
*
* 口径必须与后端「内部寄售匹配」筛选(work-order-query-repo 的 internal_consignment 分支)一致:
* `material.consignment.inventoryId` 有值、`fulfillmentType ≠ worker_deposit`、
* `consignment.workerId` 缺失或为 0(后端按字符串 '0' 也视为无打手)、且工单未指派打手。
* 这是操作能力判断,不用于「内部寄售」来源筛选;来源筛选允许匹配前后,
* 因此可以和接单人员条件叠加。
*/
export function isInternalConsignmentOrder(row: { material?: unknown; worker?: unknown }): boolean {
const consignment = asRecord(asRecord(row.material).consignment)