一键生成采购任务
station
/station/task/purchase/supplement_list
接口描述
获取库存小于安全库存的商品
Method
GET
request
response
{
"msg": "ok",
"code": 0,
"data": {
[
spu_id string spu ID
spu_name string 商品名
category_2 string 商品分类
default_purchase_spec string 默认采购规格ID
default_purchase_num int 默认采购数量
default_supplier_id string 默认供应商ID
purchase_data:[ list 采购信息
{
spec_id string 采购规格ID
spec_name string 采购规格名称
sale_unit_name string 采购单位
sale_ratio int 采购比例
std_unit_name string 基本单位
settle_suppliers:[ list 供应商列表
{
id string 供应商ID
name string 供应商名称
}
]
}
]
]
}
}
/station/task/purchase/batch_create
接口描述
生成采购任务
Method
POST
request
purchase_task:[ M list 采购任务列表
{
settle_supplier_id M string 供应商ID
spec_id M string 采购规格ID
plan_purchase_amount M int 采购数量
cycle_start_time O datetime 运营时间
time_config_id O string 运营周期ID
}
]
response
{
"msg": "ok",
"code": 0,
"data": {
null
}
}
/station/service_time
接口描述
获取运营时间
Method
GET
request
response
{
"msg": "ok",
"code": 0,
"data": [
{
type int 运营时间类型,1为正常运营时间,2为预售时间
_id string 运营时间ID
name string 运营时间名称,
order_time_limit: {
e_span_time int 是否跨天, 0为不跨, 1为跨
start time 开始时间
end time 结束时间
}
receive_time_limit: {
end time 结束时间
start time 开始时间
receiveEndSpan int 是否跨天, 0为不跨, 1为跨
},
}
]
}