From 186432933336d96c19402c5aee61064df4a7390a Mon Sep 17 00:00:00 2001
From: zc <zc@123>
Date: 星期三, 16 七月 2025 16:43:09 +0800
Subject: [PATCH] 完成调试

---
 src/main/webapp/views/crn.html |   38 ++++++++++++++++++++++++++++++++++----
 1 files changed, 34 insertions(+), 4 deletions(-)

diff --git a/src/main/webapp/views/crn.html b/src/main/webapp/views/crn.html
index 7a75854..d90d12f 100644
--- a/src/main/webapp/views/crn.html
+++ b/src/main/webapp/views/crn.html
@@ -71,6 +71,12 @@
                     <!--            <span>&nbsp;</span>-->
                     <input id="crn3" disabled="disabled">
                 </div>
+                <div class="crn-command-item">
+                    <label>4#</label>
+                    <button id="demoBtn-4" class="demoBtn" onclick="demoSwitch(this.id)"> - </button>
+                    <!--            <span>&nbsp;</span>-->
+                    <input id="crn4" disabled="disabled">
+                </div>
             </div>
             <!-- 鍫嗗灈鏈虹姸鎬佷綅淇℃伅 -->
             <div class="crn-state">
@@ -137,8 +143,9 @@
                     <span class="select-title">鍫嗗灈鏈哄彿</span>
                     <div class="select-container" style="padding: 20px 0;">
                         <label><input type="radio" name="crnSelect" value="1" checked>&nbsp;1鍙峰爢鍨涙満</label>
-                        <label><input type="radio" name="crnSelect" value="2">&nbsp;2鍙峰爢鍨涙満</label>
-                        <label><input type="radio" name="crnSelect" value="3">&nbsp;3鍙峰爢鍨涙満</label>
+<!--                        <label><input type="radio" name="crnSelect" value="2">&nbsp;2鍙峰爢鍨涙満</label>-->
+<!--                        <label><input type="radio" name="crnSelect" value="3">&nbsp;3鍙峰爢鍨涙満</label>-->
+<!--                        <label><input type="radio" name="crnSelect" value="4">&nbsp;4鍙峰爢鍨涙満</label>-->
                     </div>
                 </div>
                 <!-- 婧愮珯/婧愬簱浣� 閫夋嫨 -->
@@ -194,15 +201,17 @@
                     <div class="button-group">
 <!--                        <button class="item" onclick="put()">鍏ュ簱</button>-->
 <!--                        <button class="item" onclick="take()">鍑哄簱</button>-->
-<!--                        <button class="item" onclick="stockMove()">搴撲綅杞Щ</button>-->
+                        <button class="item" onclick="stockMove()">搴撲綅杞Щ</button>
 <!--                        <button class="item" onclick="siteMove()">绔欏埌绔�</button>-->
                         <!--                <button class="item" onclick="bacOrigin()">鍥炲師鐐�</button>-->
                         <!--                <button class="item" onclick="reverseOrigin()">鍙嶅師鐐�</button>-->
                         <!--                <button class="item" onclick="coorMove()">鍧愭爣绉昏</button>-->
                         <button class="item" onclick="taskComplete()">浠诲姟瀹屾垚</button>
+                        <button class="item" onclick="taskRe()">鎭㈠鑱旀満浠诲姟</button>
+                        <button class="item" onclick="taskClear()">娓呴櫎鑱旀満浠诲姟</button>
                         <!--                <button class="item" onclick="pause()">鏆傚仠</button>-->
                         <!--                <button class="item" onclick="boot()">鍚姩</button>-->
-<!--                        <button class="item" onclick="clearCommand()">娓呴櫎鍛戒护</button>-->
+                        <button class="item" onclick="clearCommand()">娓呴櫎鍛戒护</button>
 <!--                        <button class="item" onclick="handleReset()">澶嶄綅</button>-->
                     </div>
                 </fieldset>
@@ -437,6 +446,27 @@
         });
     }
 
+    // 浠诲姟瀹屾垚
+    function taskRe() {
+        http.post(baseUrl+"/crn/operator/taskRe", getReqParam(), function (res) {
+            layer.msg(res.msg);
+        });
+    }
+
+    // 浠诲姟瀹屾垚
+    function taskClear() {
+        http.post(baseUrl+"/crn/operator/taskClear", getReqParam(), function (res) {
+            layer.msg(res.msg);
+        });
+    }
+
+    // 浠诲姟瀹屾垚
+    function clearCommand() {
+        http.post(baseUrl+"/crn/operator/clearCommand", getReqParam(), function (res) {
+            layer.msg(res.msg);
+        });
+    }
+
     // 鏆傚仠
     function pause() {
         http.post(baseUrl+"/crn/operator/pause", getReqParam(), function (res) {

--
Gitblit v1.9.1