WEB/src/需求文档.txt
2026-04-14 18:44:25 +08:00

361 lines
11 KiB
Plaintext
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

order.reviewOrder.getreviewOrderlist
分页查询订单审核列表(目录化路由)
Params (2)
名称 类型 必填 说明
pagination object 否 pagination 参数
where object 否 统一 where 条件对象;推荐使用 { operator, value, type } 标准结构;支持 inspection_status、step、operator_name、operate_time_start、operate_time_end 等字段。示例:where.step={operator:in,value:[0,1]}; where.inspection_status={operator:eq,value:pending}; where.operator_name={operator:like,value:张}; where.operate_time_start={value:2026-03-01}。
接口响应:
{
"flag": "success",
"code": 1,
"message": "ok",
"data": {
"list": [
{
"id": 2,
"delivery_order_code": "JY2026041416334",
"pre_delivery_order_code": "",
"pre_delivery_order_id": "",
"order_type": "JYCK",
"warehouse_code": "100000",
"order_flag": "",
"source_platform_code": "TB",
"source_platform_name": "淘宝",
"create_at": "2026-04-14T07:37:11.000Z",
"delete_at": null,
"updated_at": "2026-04-14T07:37:11.000Z",
"place_order_time": "2026-04-14T07:34:40.000Z",
"pay_time": "2026-04-14T07:34:40.000Z",
"pay_no": "",
"service_code": null,
"operator_name": "1",
"operate_time": "2026-04-14T07:37:11.000Z",
"delivery_time": null,
"shop_nick": "加能量袜子店",
"seller_nick": "1",
"buyer_nick": "学习18022440198",
"total_amount": "150.00",
"item_amount": "150.00",
"discount_amount": "0.00",
"freight": "0.00",
"ar_amount": "0.00",
"got_amount": "0.00",
"service_fee": null,
"logistics_code": "ZTO",
"logistics_name": "中通快递",
"express_code": "",
"logistics_area_code": "",
"delivery_type": null,
"is_urgency": "N",
"invoice_flag": "N",
"status": "pedding",
"name": "学习",
"zip_code": "",
"tel": "",
"mobile": "18022440198",
"email": "",
"country_code": "CN",
"province": "广东省",
"city": "广州市",
"area": "白云区",
"town": "江高镇",
"detail_address": "广东省 广州市 白云区 江高镇 测试地址",
"id_type": null,
"id_number": null,
"oaid": null,
"sync_status": "padding",
"store_id": 1000000,
"warehouse_id": 100000,
"from_key": 24869601,
"items": "101384+5",
"items_count": 1,
"items_total": 5,
"items_weight": "0.00",
"items_hash": "9e26ada8b89136b8850576a5356026b2",
"items_crc": 2613025742,
"wave_id": 0,
"post_status": "none",
"storage_status": "none",
"pick_status": "none",
"pack_status": "none",
"inspection_status": "none",
"step": 0,
"print_status": null,
"claim_status": "none",
"outbound_status": "none",
"lock_status": null,
"intercept_status": null
}
],
"pagination": {
"page": 1,
"pageSize": 20,
"total": 1,
"totalPages": 1,
"hasPrevious": false,
"hasNext": false
}
},
"timestamp": 1776152560
}
-----
order.reviewOrder.reviewOrder
订单审核(目录化路由)。执行后会更新 inspection_status,并同步更新订单整数字段 step。
Params (6)
名称 类型 必填 说明
delivery_order_code string 否 delivery_order_code 参数
id number 否 id 参数
inspection_status string 否 inspection_status 参数(兼容入参)
review_status string 否 review_status 参数,默认 fin
operator_name string 否 operator_name 参数
operate_time string 否 operate_time 参数
-----
order.deliveryOrder.getdeliveryOrderlist
分页查询已进入出库流程的订单列表
Params (2)
名称 类型 必填 说明
pagination object 否 pagination 参数
where object 否 统一 where 条件对象;推荐使用 { operator, value, type } 标准结构;未传 outbound_status 时默认过滤 outbound_status != none;支持 step 筛选。示例:where.outbound_status={operator:in,value:[created,processing]}; where.step={operator:in,value:[4,5]}; where.store_id={operator:eq,value:1001}。
接口响应:{
"flag": "success",
"code": 1,
"message": "ok",
"data": {
"list": [
{
"id": 1,
"delivery_order_code": "TRACE_OUTBOUND_1776007027818_0E2C252D",
"pre_delivery_order_code": "",
"pre_delivery_order_id": "",
"order_type": "JYCK",
"warehouse_code": "100000",
"order_flag": "",
"source_platform_code": "TB",
"source_platform_name": "淘宝",
"create_at": "2026-04-12T15:17:15.000Z",
"delete_at": null,
"updated_at": "2026-04-12T15:17:16.000Z",
"place_order_time": null,
"pay_time": null,
"pay_no": "",
"service_code": null,
"operator_name": null,
"operate_time": null,
"delivery_time": "2026-04-12T15:17:16.000Z",
"shop_nick": null,
"seller_nick": null,
"buyer_nick": null,
"total_amount": "0.00",
"item_amount": "0.00",
"discount_amount": "0.00",
"freight": "0.00",
"ar_amount": "0.00",
"got_amount": "0.00",
"service_fee": null,
"logistics_code": null,
"logistics_name": null,
"express_code": "",
"logistics_area_code": "",
"delivery_type": null,
"is_urgency": "N",
"invoice_flag": "N",
"status": "pedding",
"name": "自动化验证收件人",
"zip_code": "510000",
"tel": "",
"mobile": "13800138000",
"email": "",
"country_code": "",
"province": "广东省",
"city": "广州市",
"area": "黄埔区",
"town": "知识城街道",
"detail_address": "自动化验证地址 TRACE_OUTBOUND_1776007027818_0E2C252D",
"id_type": null,
"id_number": null,
"oaid": null,
"sync_status": "padding",
"store_id": 1000000,
"warehouse_id": 100000,
"from_key": 24869601,
"items": "101391+1",
"items_count": 1,
"items_total": 1,
"items_weight": "0.00",
"items_hash": "c160b2ea32b53aba930f55e3a306de01",
"items_crc": 581302873,
"wave_id": 0,
"post_status": "none",
"storage_status": "none",
"pick_status": "none",
"pack_status": "none",
"inspection_status": "none",
"step": 4,
"print_status": null,
"claim_status": "none",
"outbound_status": "fin",
"lock_status": null,
"intercept_status": null,
"dispatch_lane": "m4"
}
],
"pagination": {
"page": 1,
"pageSize": 20,
"total": 1,
"totalPages": 1,
"hasPrevious": false,
"hasNext": false
}
},
"timestamp": 1776154762
}
----------
order.pendingOrder.getpendingOrderlist
分页查询待处理订单列表
Params (2)
名称 类型 必填 说明
pagination object 否 pagination 参数
where object 否 统一 where 条件对象;推荐使用 { operator, value, type } 标准结构;未传时默认 status in [pedding, created] 且 outbound_status = none。示例:where.status={operator:in,value:[pedding,created]}; where.outbound_status={operator:eq,value:none}。
接口响应:
{
"flag": "success",
"code": 1,
"message": "ok",
"data": {
"list": [
{
"id": 1,
"delivery_order_code": "JY202604142929",
"pre_delivery_order_code": "",
"pre_delivery_order_id": "",
"order_type": "JYCK",
"warehouse_code": "100000",
"order_flag": "",
"source_platform_code": "TB",
"source_platform_name": "淘宝",
"create_at": "2026-04-14T06:53:07.000Z",
"delete_at": null,
"updated_at": "2026-04-14T06:53:07.000Z",
"place_order_time": "2026-04-13T23:09:39.000Z",
"pay_time": "2026-04-13T23:09:39.000Z",
"pay_no": "",
"service_code": null,
"operator_name": "1",
"operate_time": "2026-04-14T06:53:07.000Z",
"delivery_time": null,
"shop_nick": "加能量袜子店",
"seller_nick": "1",
"buyer_nick": "张三",
"total_amount": "600.00",
"item_amount": "600.00",
"discount_amount": "0.00",
"freight": "0.00",
"ar_amount": "0.00",
"got_amount": "0.00",
"service_fee": null,
"logistics_code": "ZTO",
"logistics_name": "中通快递",
"express_code": "",
"logistics_area_code": "",
"delivery_type": null,
"is_urgency": "N",
"invoice_flag": "N",
"status": "pedding",
"name": "张三",
"zip_code": "",
"tel": "",
"mobile": "18022440198",
"email": "",
"country_code": "CN",
"province": "广东省",
"city": "广州市",
"area": "白云区",
"town": "人和镇",
"detail_address": "广东省 广州市 白云区 人和镇 测试地址",
"id_type": null,
"id_number": null,
"oaid": null,
"sync_status": "padding",
"store_id": 1000000,
"warehouse_id": 100000,
"from_key": 24869601,
"items": "101384+20",
"items_count": 1,
"items_total": 20,
"items_weight": "0.00",
"items_hash": "23ef3c5bc7ab12dc9bd25877afded196",
"items_crc": 3353156042,
"wave_id": 0,
"post_status": "none",
"storage_status": "none",
"pick_status": "none",
"pack_status": "none",
"inspection_status": "none",
"step": 1,
"print_status": null,
"claim_status": "none",
"outbound_status": "none",
"lock_status": null,
"intercept_status": null
}
],
"pagination": {
"page": 1,
"pageSize": 20,
"total": 1,
"totalPages": 1,
"hasPrevious": false,
"hasNext": false
}
},
"timestamp": 1776154872
}
order.expectionOrder.getexpectionOrderlist
分页查询异常订单列表
Params (2)
名称 类型 必填 说明
pagination object 否 pagination 参数
where object 否 统一 where 条件对象;推荐使用 { operator, value, type } 标准结构;未传时默认筛选各流程 error 或拦截 exception。示例:where.status={operator:eq,value:error}; where.outbound_status={operator:eq,value:exception}。
接口响应:{
"flag": "success",
"code": 1,
"message": "ok",
"data": {
"list": [],
"pagination": {
"page": 1,
"pageSize": 20,
"total": 0,
"totalPages": 0,
"hasPrevious": false,
"hasNext": false
}
},
"timestamp": 1776154895
}
-----
order.archiveOrder.getarchiveOrderlist
分页查询归档订单列表(暂使用当前订单表完成态数据)
Params (2)
名称 类型 必填 说明
pagination object 否 pagination 参数
where object 否 统一 where 条件对象;推荐使用 { operator, value, type } 标准结构;未传 outbound_status 时默认过滤 outbound_status = fin。示例:where.outbound_status={operator:eq,value:fin}; where.store_id={operator:eq,value:1001}。