优化
This commit is contained in:
@@ -0,0 +1,64 @@
|
||||
openapi: 3.0.3
|
||||
info:
|
||||
title: Platform dashboard operational metrics
|
||||
version: 1.0.0
|
||||
paths:
|
||||
/api/platform/v1/first-leg/dashboard/operational-metrics:
|
||||
get:
|
||||
summary: 查询首页货柜与清关实时指标
|
||||
description: >-
|
||||
在途柜量按已实际开船且尚未到达海外仓的有效物理柜去重,TEU 按 20*=1、40*=2、45*=2.25
|
||||
折算,未知箱型不计入 TEU;待清关票数按已进入整柜清关且清关未完成的去重订单统计。
|
||||
本接口只返回当前时点事实,不提供历史环比。
|
||||
responses:
|
||||
'200':
|
||||
description: 查询成功
|
||||
content:
|
||||
application/json:
|
||||
schema:
|
||||
$ref: '#/components/schemas/OperationalMetricsEnvelope'
|
||||
'401': {description: 需要登录}
|
||||
'403': {description: 需要货柜列表与报关列表权限}
|
||||
components:
|
||||
schemas:
|
||||
OperationalMetricsEnvelope:
|
||||
type: object
|
||||
required: [code, message, data]
|
||||
properties:
|
||||
code: {type: string, example: '200'}
|
||||
message: {type: string}
|
||||
data: {$ref: '#/components/schemas/OperationalMetrics'}
|
||||
OperationalMetrics:
|
||||
type: object
|
||||
required:
|
||||
- inTransitContainerCount
|
||||
- inTransitTeu
|
||||
- unknownContainerTypeCount
|
||||
- pendingCustomsOrderCount
|
||||
properties:
|
||||
inTransitContainerCount:
|
||||
type: integer
|
||||
format: int64
|
||||
minimum: 0
|
||||
description: 已开船未到海外仓的物理柜数
|
||||
inTransitTeu:
|
||||
type: number
|
||||
format: decimal
|
||||
multipleOf: 0.01
|
||||
minimum: 0
|
||||
description: 已知箱型的在途柜 TEU 合计
|
||||
unknownContainerTypeCount:
|
||||
type: integer
|
||||
format: int64
|
||||
minimum: 0
|
||||
description: 未计入 TEU 的未知箱型在途柜数
|
||||
pendingCustomsOrderCount:
|
||||
type: integer
|
||||
format: int64
|
||||
minimum: 0
|
||||
description: 已进入整柜清关且清关未完成的去重订单数
|
||||
asOf:
|
||||
type: string
|
||||
format: date-time
|
||||
nullable: true
|
||||
description: 数据库统计时点
|
||||
@@ -76,6 +76,14 @@ paths:
|
||||
- {$ref: '#/components/parameters/WarehouseId'}
|
||||
responses:
|
||||
'200': {description: A4 托盘信息单 PDF, content: {application/pdf: {schema: {type: string, format: binary}}}}
|
||||
/api/platform/v1/first-leg/pda-dropship/tasks/{taskId}/pallets/print:
|
||||
get:
|
||||
summary: 合并获取本票全部预生成托盘码的多页 A4 PDF
|
||||
description: 每个预生成托盘固定一页,PDA 无需展开托盘列表或逐个下载,最多按本票预计托数生成。
|
||||
x-required-authority: platform:firstleg:pda:view
|
||||
parameters: [{$ref: '#/components/parameters/TaskId'}, {$ref: '#/components/parameters/WarehouseId'}]
|
||||
responses:
|
||||
'200': {description: 多页 A4 托盘信息单 PDF, content: {application/pdf: {schema: {type: string, format: binary}}}}
|
||||
/api/platform/v1/first-leg/pda-dropship/inbound-orders/{inboundId}/pallets:
|
||||
get:
|
||||
summary: Admin 查询入仓单权威托盘结果
|
||||
|
||||
Reference in New Issue
Block a user