APP接口优化
/purchase_assistant/quoted_settle_suppliers
Method
GET
request
page_obj O string 分页参数,与上一页response中的值相同
response
{
"msg": "ok",
"code": 0,
“data”: {
......... #与现有结构一致
}
pagination { M dict
more M bool 0表示已到达末尾,1表示还有更多数据
page_obj M string
}
}
/purchase_assistant/task/search
Method
GET
request
..... //其他参数与现有一致
time_config_id M string 销售时间id
cycle_start_time M datetime 任务周期时间
page_obj O string 分页参数,与上一页response中的值相同
response
{
"msg": "ok",
"code": 0,
“data”: {
......... #与现有结构一致
}
pagination { M dict
more M bool 0表示已到达末尾,1表示还有更多数据
page_obj M string
}
}
例子:
request:
http://station.fix_purchase.devhost.guanmai.cn/purchase_assistant/task/search?time_config_id=ST1438&cycle_start_time=2018-12-21+00%3A30%3A00&settle_supplier_id=%5B%22T8524%22%2C%22T8523%22%5D&status=0&sort_type=1&page_obj=10|D3625999|10|T8523!24|D3152392|24|T8524
response:
{
"code": 0,
"msg": "ok",
"data": [
{
"purchase_unit_name": "公斤",
"status": 0,
"spec_id": "D2734077",
"std_unit_name": "斤",
"purchase_amount": 0,
"supplier_id": "T8524",
"plan_amount": 76,
"release_time": "2018-12-21T18:08:49",
"supplier_name": "水果供应商",
"release_id": 27,
"ratio": 2,
"purchase_price": 0,
"spec_name": "红提|采"
},
{
"purchase_unit_name": "盒",
"status": 0,
"spec_id": "D3572492",
"std_unit_name": "斤",
"purchase_amount": 0,
"supplier_id": "T8524",
"plan_amount": 76,
"release_time": "2018-12-21T14:46:58",
"supplier_name": "水果供应商",
"release_id": 25,
"ratio": 2,
"purchase_price": 1000,
"spec_name": "白梨|2斤/盒"
}
],
"pagination": {
"page_obj": "25|D3572492|25|T8524!27|D2734077|27|T8524",
"more": false
}
}
/purchase_assistant/supplier/get_specs
Method
GET
request
.....
//新增字段
page_obj O string 分页参数,与上一页response中的值相同
response
{
"msg": "ok",
"code": 0,
“data”: {
......... #与现有结构一致
}
pagination { M dict
more M bool 0表示已到达末尾,1表示还有更多数据
page_obj M string
}
}
/purchase_assistant/purchase_sheets
Method
GET
request
.....
//新增字段
page_obj O string 分页参数,与上一页response中的值相同
response
{
"msg": "ok",
"code": 0,
“data”: {
......... #与现有结构一致
}
pagination { M dict
more M bool 0表示已到达末尾,1表示还有更多数据
page_obj M string
}
}