static/js/utils.js
@@ -1,4 +1,5 @@ // 数组根据key取值 function getArrVal(arrObj, key, condition) { if (!arrObj instanceof Array) { return null; @@ -11,3 +12,20 @@ } return null; } // 根据库位号获取其定位 function getBinPosition(locNo) { var position; $.ajax({ url: 'http://localhost:9090/jkwcs/three/query/goods/position/v1', type: "GET", data: { locNo: locNo }, async: false, success: function (res) { position = res.data; } }) return position; }