fix(lastleg): confirm inbound shortages and reconcile empty preplanned pallets
This commit is contained in:
@@ -667,6 +667,32 @@ paths:
|
||||
responses:
|
||||
'200': { description: 平台入库订单详情, content: { application/json: { schema: { $ref: '#/components/schemas/InboundPlanDetailResponse' } } } }
|
||||
'404': { description: 入库订单不存在或不属于指定客户 }
|
||||
/api/platform/v1/last-leg/inbound-plans/{planNo}/confirm-shortage:
|
||||
post:
|
||||
summary: 确认FBA入库短少并按实收入库
|
||||
description: 权限 platform:overseas-warehouse:inbound-order:edit;仅平台指定客户操作。仅支持同柜次同目的仓收货组单票、冻结申报单SKU;多SKU或跨票合收不能按自动分摊确认。PENDING_RECONCILIATION且0<实收<应收时,核对版本及逐SKU实收,保留原应收和现场收货时间,按实收写入库存并进入PARTIAL_INBOUND,同事务交接原预排并移除明确零实收托盘的排车明细、占用和预约分配。操作原因与操作人写入收货操作记录;不重复发布卸柜事件。超收、SKU不一致、客户不匹配和陈旧版本拒绝;相同请求键重放不会重复入库。
|
||||
security: [{ bearerAuth: [] }]
|
||||
parameters:
|
||||
- { name: planNo, in: path, required: true, schema: { type: string } }
|
||||
- { name: Idempotency-Key, in: header, required: true, schema: { type: string, minLength: 1, maxLength: 128 } }
|
||||
requestBody:
|
||||
required: true
|
||||
content:
|
||||
application/json:
|
||||
schema:
|
||||
type: object
|
||||
required: [customerId, version, expectedPackageCount, receivedPackageCount, reason]
|
||||
properties:
|
||||
customerId: { type: string, pattern: '^[1-9][0-9]*$' }
|
||||
version: { type: integer, minimum: 0 }
|
||||
expectedPackageCount: { type: integer, minimum: 1 }
|
||||
receivedPackageCount: { type: integer, minimum: 1 }
|
||||
reason: { type: string, minLength: 1, maxLength: 200 }
|
||||
responses:
|
||||
'200': { description: ApiResponse包装的收货任务结果,status为PARTIAL_INBOUND }
|
||||
'403': { description: 非平台身份或无入库编辑权限 }
|
||||
'404': { description: 入库单不存在或客户不匹配 }
|
||||
'409': { description: 版本、状态、实收数量、SKU或幂等键冲突 }
|
||||
/api/platform/v1/last-leg/inbound-plans/manual:
|
||||
post:
|
||||
summary: 平台按单票手工生成入库计划
|
||||
|
||||
Reference in New Issue
Block a user