From b82892d4b6d7ddd51d550871223036e993f76cf6 Mon Sep 17 00:00:00 2001
From: Junjie <fallin.jie@qq.com>
Date: 星期三, 02 八月 2023 14:32:50 +0800
Subject: [PATCH] 提升机、穿梭车独占令牌页面显示与控制

---
 src/main/webapp/views/shuttle.html |   12 ++++++++++++
 1 files changed, 12 insertions(+), 0 deletions(-)

diff --git a/src/main/webapp/views/shuttle.html b/src/main/webapp/views/shuttle.html
index 0651ec9..f786948 100644
--- a/src/main/webapp/views/shuttle.html
+++ b/src/main/webapp/views/shuttle.html
@@ -71,6 +71,7 @@
                             <th>鎬婚噷绋嬫暟</th>
                             <th>浣滀笟鏍囪</th>
                             <th>褰撳墠搴撲綅</th>
+                            <th>浠ょ墝</th>
                         </tr>
                     </thead>
                     <tbody>
@@ -169,6 +170,12 @@
                     <input id="pakMk" name="pakMk" type="text" class="layui-input" autocomplete="off">
                 </div>
             </div>
+            <div class="form-item">
+                <label class="form-label">浠ょ墝:</label>
+                <div class="form-input">
+                    <input id="token" name="token" type="text" class="layui-input" autocomplete="off">
+                </div>
+            </div>
             <div class="form-item form-button-container">
                 <button class="form-button" id="save">淇濆瓨</button>
                 <button class="form-button" id="cancel" style="background-color: #D0D0D0">鍙栨秷</button>
@@ -231,6 +238,7 @@
             shuttleNo: $('#shuttleNo').val(),
             workNo: $('#workNo').val(),
             pakMk: $('#pakMk').val(),
+            token: $('#token').val(),
         }, function (res) {
             layer.msg("淇敼鎴愬姛", {icon: 1,});
             layer.close(layerDetl);
@@ -342,6 +350,7 @@
                         setVal(tr.children("td").eq(10), table[i-1].statusSum.mileage);
                         setVal(tr.children("td").eq(11), table[i-1].pakMk$);
                         setVal(tr.children("td").eq(12), table[i-1].currentLocNo);
+                        setVal(tr.children("td").eq(13), table[i-1].token);
                         if (table[i-1].shuttleNo == parseInt($('input[name="shuttleSelect"]:checked').val())) {
                             $("#runSpeedText").text(table[i-1].runSpeed)
                             $("#chargeLineText").text(table[i-1].chargeLine + "%")
@@ -520,6 +529,7 @@
                                         $('#shuttleNo').val(shuttleNo);
                                         $('#workNo').val(table[i-1].taskNo);
                                         $('#pakMk').val(table[i-1].pakMk$);
+                                        $('#token').val(table[i-1].token);
                                     }
                                 }
                             } else if (res.code === 403){
@@ -534,6 +544,7 @@
                     $('#shuttleNo').val("");
                     $('#workNo').val("");
                     $('#pakMk').val("");
+                    $('#token').val("");
                 }
             })
         }
@@ -543,6 +554,7 @@
         $('#shuttleNo').val("");
         $('#workNo').val("");
         $('#pakMk').val("");
+        $('#token').val("");
         layer.close(layerDetl);
     })
 

--
Gitblit v1.9.1