商品盘点增加可用库存
库存盘点增加可用库存
Head
- Author: Zhongzhiqiang
- Status: draft
- Type: Standards
- Created: 2019-03-28
预估工作量:2天
- 第一天:技术方案编写,改写'/station/stock/list'接口,测试改动结果
- 第二天:改动代码的review,与前端进行联调,最后代码提测
Station接口改动
/station/stock/list (更新)
接口描述:
原功能:获取所有商品的库存情况
更新后:在原有功能上增加【可用库存】项
方法:
GET
请求参数:
offset O int 查询偏移量 不变
limit O int 限制条数 不变
export O int 是否导出(1:导出;0:不导出 默认0) 不变
响应结果:
{
data: [{available_stock M string 可用库存 新增}],
code: 0,
msg: "ok",
}
响应成功示例
{
data: [
{
category_name_2: "叶菜",
threshold_remain_difference: null,
material: {
amount: 30,
avg_price: 200
},
semi: {
amount: 0
},
threshold: null,
avg_price: 200,
category_name_1: "蔬菜",
remain: 30,
stock_value: "60.0000",
available_stock: "30.00",
category_id_1: "A7477",
std_unit_name: "斤",
name: "小上海青",
category_id_2: "B36263",
product: {
amount: 0
},
spu_id: "C1355502",
processing_amount: 0,
frozen: 0
}
],
code: 0,
msg: "ok",
}