From 40c954ce8abb9b9ed7f69d9519b5cbac288807f1 Mon Sep 17 00:00:00 2001
From: Junjie <540245094@qq.com>
Date: 星期四, 04 一月 2024 08:14:34 +0800
Subject: [PATCH] #
---
zy-asrs-wms/src/main/webapp/views/order/order.html | 2 +-
zy-asrs-wms/src/main/webapp/static/js/order/order.js | 16 ++++++++++++++--
2 files changed, 15 insertions(+), 3 deletions(-)
diff --git a/zy-asrs-wms/src/main/webapp/static/js/order/order.js b/zy-asrs-wms/src/main/webapp/static/js/order/order.js
index 3be8908..682849f 100644
--- a/zy-asrs-wms/src/main/webapp/static/js/order/order.js
+++ b/zy-asrs-wms/src/main/webapp/static/js/order/order.js
@@ -39,8 +39,6 @@
where.docName = decodeURI(docName);
}
- console.log(where)
-
// 娓叉煋琛ㄦ牸
var insTb = table.render({
elem: '#order',
@@ -237,6 +235,20 @@
area: '1300px',
success: function (layero, dIndex) {
$(layero).children('.layui-layer-content').css('overflow', 'visible');
+
+ $.ajax({
+ url: baseUrl + "/docTypeQuery/auth",
+ headers: {'token': localStorage.getItem('token')},
+ method: 'POST',
+ data: {
+ condition: decodeURI(docName)
+ },
+ success: function (res) {
+ $("#docType").val(res.data[0].id)
+ $(document.getElementById("docType$")).val(res.data[0].value)
+ }
+ })
+
var isExpAdd = !expTpe;
// 鍥炴樉鏁版嵁
form.val('editForm', expTpe);
diff --git a/zy-asrs-wms/src/main/webapp/views/order/order.html b/zy-asrs-wms/src/main/webapp/views/order/order.html
index d0760f5..2c27d64 100644
--- a/zy-asrs-wms/src/main/webapp/views/order/order.html
+++ b/zy-asrs-wms/src/main/webapp/views/order/order.html
@@ -149,7 +149,7 @@
<div class="layui-form-item">
<label class="layui-form-label">鍗曟嵁绫诲瀷锛�</label>
<div class="layui-input-block cool-auto-complete">
- <input class="layui-input" name="docType" placeholder="璇疯緭鍏ュ崟鎹被鍨�" style="display: none">
+ <input class="layui-input" id="docType" name="docType" placeholder="璇疯緭鍏ュ崟鎹被鍨�" style="display: none">
<input id="docType$" name="docType$" class="layui-input cool-auto-complete-div" onclick="autoShow(this.id)" type="text" placeholder="璇疯緭鍏ュ崟鎹被鍨�" onfocus=this.blur() lay-verType="tips" lay-verify="required">
<div class="cool-auto-complete-window">
<input class="cool-auto-complete-window-input" data-key="docTypeQueryBydocType" onkeyup="autoLoad(this.getAttribute('data-key'))">
--
Gitblit v1.9.1