根据仓库和物料编号获取已摆放库位列表 websocket测试 POST http://[域名]/warehourse/getputlocationlistinfobysparepartno 接口描述 根据仓库和物料编号获取物料已摆放库位列表 请求参数 参数名 类型 描述 必填 appid string 系统分配给第三方的接入应用编码,示例:1234567890 必填 token string 接入签名,示例:45879541235derderedew 必填 timestamp string 时间戳,格式为:yyyymmddhhmmss,如:20200118122652 必填 opertoken string 身份操作凭证 必填 locationbaseinfo 可选 warehourseno string 仓库编号 必填 sparepartno string 物料编号 必填 请求数据示例 { "appid":"1234567890", "token":"45879541235derderedew", "timestamp":"20200118122613", "opertoken":"123456", "pageindex":1, "pageeachnum":20, "locationbaseinfo":{ "warehourseno":"12", "sparepartno":"12" } } 响应参数 参数名 类型 描述 必填 errcode string 错误代码,示例:0 必填 errmsg string 错误信息,示例:成功 必填 recordcount int 记录数量,为0表示列表没有数据 必填 listinfo 必填 locationno string 库位编号 可选 locationcode string 库位编码 可选 locationname string 库位名称 可选 sparepartcode string 物料编码 可选 sparepartname string 物料名称 可选 specifications string 规格型号 可选 stocknum string 库位当前库存 必填 响应成功示例 { "errcode":"0", "errmsg":"成功", "recordcount":2, "pageindex":1,"pagetotalnum":200, "listinfo":[ { "locationno":"121", "locationcode":"1#-1-1", "locationname":"1号库位", "warehourseno":"12", "warehoursecode":"CK001", "warehoursecode":"备件仓库", "createtime":"2025-03-06 12:20:32" }, { "locationno":"121", "locationcode":"1#-1-2", "locationname":"2号库位", "warehourseno":"16", "warehoursecode":"CK002", "warehoursecode":"五金仓库", "createtime":"2025-03-06 12:20:32" } ] } 响应失败示例 { "errcode":"1", "errmsg":"参数无效" }
{ "appid":"1234567890", "token":"45879541235derderedew", "timestamp":"20200118122613", "opertoken":"123456", "pageindex":1, "pageeachnum":20, "locationbaseinfo":{ "warehourseno":"12", "sparepartno":"12" } }
{ "errcode":"0", "errmsg":"成功", "recordcount":2, "pageindex":1,"pagetotalnum":200, "listinfo":[ { "locationno":"121", "locationcode":"1#-1-1", "locationname":"1号库位", "warehourseno":"12", "warehoursecode":"CK001", "warehoursecode":"备件仓库", "createtime":"2025-03-06 12:20:32" }, { "locationno":"121", "locationcode":"1#-1-2", "locationname":"2号库位", "warehourseno":"16", "warehoursecode":"CK002", "warehoursecode":"五金仓库", "createtime":"2025-03-06 12:20:32" } ] }