文档
测试

导入订单数据

POST
api/order/import

RequestBody

参数名
类型
描述
必填
data
array
数据列表
必填
_id
string
示例:647458b5836c41e8f3200e42
必填
label
int
示例:0
必填
order_id
string
示例:GZ79230520Y
必填
order_line
string
示例:004
必填
code
string
示例:4TWZ68002
必填
num
int
示例:123
必填
storage
string
示例:GC
必填
place
string
示例:%A01101
必填
batch
string
示例:20230513150028
必填
time
string
示例:2023-05-29T15:48:05.1800215+08:00
必填
date
string
示例:2023-05-29
必填
type
int
示例:1
必填

响应参数

参数名
类型
描述
必填
errorno
int
响应码,成功时为0,其它值表示异常。
必填
errormsg
string
code不为0时填入异常消息内容。
必填

请求说明

``` {"data": [ { "_id": "647458b5836c41e8f3200e42", "label": 0, "order_id": "GZ79230520Y", "order_line": "004", "code": "4TWZ68002", "num": 123, "storage": "GC", "place": "%A01101", "batch": "20230513150028", "time": "2023-05-29T15:48:05.1800215+08:00", "date": "2023-05-29", "type": 1 }, { "_id": "647458b5836c41e8f3200e43", "label": 0, "order_id": "GZ81230520Y", "order_line": "002", "code": "4TWZ64505", "num": 789, "storage": "GC", "place": "%A01102", "batch": "20230513150073", "time": "2023-05-29T15:48:05.1830169+08:00", "date": "2023-05-29", "type": 1 } ] } ```