From a56777639efc65d506b85d2bcff68ce0e3748490 Mon Sep 17 00:00:00 2001
From: luxiaotao1123 <t1341870251@63.com>
Date: 星期三, 15 十二月 2021 11:02:43 +0800
Subject: [PATCH] #

---
 static/js/utils.js |   33 +++++++++++++++++++++++++++++++++
 1 files changed, 33 insertions(+), 0 deletions(-)

diff --git a/static/js/utils.js b/static/js/utils.js
index e69de29..6488db8 100644
--- a/static/js/utils.js
+++ b/static/js/utils.js
@@ -0,0 +1,33 @@
+
+// 鏁扮粍鏍规嵁key鍙栧��
+function getArrVal(arrObj, key, condition) {
+    if (!arrObj instanceof Array) {
+        return null;
+    }
+    if (arrObj == null || arrObj.length === 0) {
+        return null;
+    }
+    for (let obj of arrObj) {
+        if (obj[key] === condition) {
+            return obj;
+        }
+    }
+    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;
+}

--
Gitblit v1.9.1