文档
测试

添加物料

PUT
[server]/api/storage_location/

接口描述

添加物料接口

请求参数

application/json
参数名
类型
描述
必填
material
list
示例在说明那里,多种物料可以放一起
必填
id
int
需要修改的库位id
必填

响应参数

application/json
参数名
类型
描述
必填
data
dict
库位信息描述
必填
msg
str
响应信息
必填
status
int
100000就是成功,其它失败
必填

说明 / 示例

请求参数示例说明: { "material": [ { "material_id": 33, "material_name": "A料", "material_type": "物料A", "material_num": 1 }, { "material_id": 34, "material_name": "B料", "material_type": "物料B", "material_num": 1 } ], "id": 84 } 响应信息描述 { "data": { "NAME": "1号仓库区域1行1列5第一层", "STATUS": 1, "area": 0, "box_id": 0, "box_name": null, "box_type": null, "column_id": 7, "column_name": "列5", "create_time": "Wed, 27 Jul 2022 11:06:22 GMT", "from_address": 0, "id": 84, "in_storage_time": "Wed, 02 Nov 2022 00:00:00 GMT", "is_frozen": 1, "layer_id": 3, "layer_name": "第一层", "location": "4", "material_id": 33, "material_name": "A料", "material_num": 1, "material_type": "物料A", "order_id": "", "region_id": 4, "region_name": "区域1", "row_id": 3, "row_name": "行1", "shelve_id": 2, "shelve_name": "货架1号", "update_time": "Fri, 04 Nov 2022 10:57:36 GMT", "warehouse_id": 3, "warehouse_name": "1号仓库" }, "msg": "修改库位信息成功", "status": 100000 }