From bc666cce4e7905e99174195df033bcff1ed799d6 Mon Sep 17 00:00:00 2001
From: 王佳豪 <g675230687@126.com>
Date: 星期一, 31 五月 2021 18:12:13 +0800
Subject: [PATCH] 1.平仓日入库查询

---
 src/main/webapp/static/js/locNormal/locNormal.js |   25 ++++++++++++++++++++++++-
 1 files changed, 24 insertions(+), 1 deletions(-)

diff --git a/src/main/webapp/static/js/locNormal/locNormal.js b/src/main/webapp/static/js/locNormal/locNormal.js
index 607bb86..c331026 100644
--- a/src/main/webapp/static/js/locNormal/locNormal.js
+++ b/src/main/webapp/static/js/locNormal/locNormal.js
@@ -32,6 +32,29 @@
     },
 });
 
+// 搴撳尯涓嬫媺
+// 鑾峰彇浠撳簱涓嬫媺
+$.ajax({
+    url: baseUrl + "/locArea/queryAll/auth",
+    headers: {'token': localStorage.getItem('token')},
+    method: 'POST',
+    success: function (res) {
+        if (res.code === 200) {
+            var html = "";
+            if (res.data && res.data.length > 0) {
+                html += res.data.map(function (item) {
+                    return "<Option value=" + item.uuid + ">" + item.name + "</Option>";
+                });
+            }
+            $('#putSiteSelect').append(html);
+        } else if (res.code === 403) {
+            top.location.href = baseUrl + "/";
+        } else {
+            layer.msg(res.msg)
+        }
+    }
+})
+
 layui.use(['table', 'laydate', 'form', 'upload'], function () {
     var table = layui.table;
     var $ = layui.jquery;
@@ -119,7 +142,7 @@
             var records = res.data.records;
             records.map(function (item) {
                 locArea.map(function (d) {
-                    if (d.id == item.warehouse) {
+                    if (d.uuid == item.warehouse) {
                         item.warehouse = d.name;
                     }
                 })

--
Gitblit v1.9.1