From 3f9b7886fa35a79db3ff2a5f47bd44214f5202e0 Mon Sep 17 00:00:00 2001
From: 王佳豪 <g675230687@126.com>
Date: 星期六, 13 三月 2021 15:22:35 +0800
Subject: [PATCH] 1.0.3 pda关联嘱托-隐藏物料名称,显示生成单号,并传入生成单号,组托根据(物料编号+生成单号+通知单号)判断唯一性

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

diff --git a/src/main/webapp/static/js/locNormal/locNormal.js b/src/main/webapp/static/js/locNormal/locNormal.js
index 607bb86..0af0383 100644
--- a/src/main/webapp/static/js/locNormal/locNormal.js
+++ b/src/main/webapp/static/js/locNormal/locNormal.js
@@ -32,6 +32,30 @@
     },
 });
 
+// 搴撳尯涓嬫媺
+// 鑾峰彇浠撳簱涓嬫媺
+$.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.id + ">" + item.name + "</Option>";
+                });
+            }
+            $('#putSiteSelect').append(html);
+            form.render('select');
+        } 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;

--
Gitblit v1.9.1