From d78a41a11bbb1e42d8e378b4ddb584baea1b6164 Mon Sep 17 00:00:00 2001
From: luxiaotao1123 <xltys1995>
Date: 星期日, 27 九月 2020 16:47:51 +0800
Subject: [PATCH] #

---
 src/main/webapp/views/crn.html |   55 +++++++++++++++++++++++--------------------------------
 1 files changed, 23 insertions(+), 32 deletions(-)

diff --git a/src/main/webapp/views/crn.html b/src/main/webapp/views/crn.html
index 1dc9e5a..0090b06 100644
--- a/src/main/webapp/views/crn.html
+++ b/src/main/webapp/views/crn.html
@@ -27,11 +27,6 @@
             <span>&nbsp;</span>
             <input id="crn1" disabled="disabled">
         </div>
-        <div class="crn-command-item">
-            <label>2#</label>
-            <span>&nbsp;</span>
-            <input id="crn2" disabled="disabled">
-        </div>
     </div>
     <!-- 鍫嗗灈鏈虹姸鎬佷綅淇℃伅 -->
     <div class="crn-state">
@@ -39,7 +34,6 @@
             <thead>
                 <tr>
                     <th>鍫嗗灈鏈�</th>
-                    <th>浠诲姟鍙�</th>
                     <th>妯″紡</th>
                     <th>鐘舵��</th>
                     <th>鏈夌墿</th>
@@ -102,7 +96,6 @@
             <span class="select-title">鍫嗗灈鏈哄彿</span>
             <div class="select-container">
                 <label><input type="radio" name="crnSelect" value="1" checked>&nbsp;1鍙峰爢鍨涙満</label>
-<!--                <label><input type="radio" name="crnSelect" value="2">&nbsp;2鍙峰爢鍨涙満</label>-->
             </div>
         </div>
         <!-- 婧愮珯/婧愬簱浣� 閫夋嫨 -->
@@ -115,15 +108,15 @@
                 </div>
                 <div class="select-container-item">
                     <span>鎺�</span>
-                    <label><input id="sourceRow" type="number" name="points" min="0" style="background-color: #a9eeff" /></label>
+                    <label><input id="sourceRow" type="number" name="points" min="1" style="background-color: #a9eeff" value="1" /></label>
                 </div>
                 <div class="select-container-item">
                     <span>鍒�</span>
-                    <label><input id="sourceBay" type="number" name="points" min="0" style="background-color: #a9eeff" /></label>
+                    <label><input id="sourceBay" type="number" name="points" min="0" style="background-color: #a9eeff" value="0" /></label>
                 </div>
                 <div class="select-container-item">
                     <span>灞�</span>
-                    <label><input id="sourceLev" type="number" name="points" min="0" style="background-color: #a9eeff" /></label>
+                    <label><input id="sourceLev" type="number" name="points" min="1" style="background-color: #a9eeff" value="1" /></label>
                 </div>
             </div>
         </div>
@@ -137,15 +130,15 @@
                 </div>
                 <div class="select-container-item">
                     <span>鎺�</span>
-                    <label><input id="row" type="number" name="points" min="0" style="background-color: #a9eeff" /></label>
+                    <label><input id="row" type="number" name="points" min="1" style="background-color: #a9eeff" value="1" /></label>
                 </div>
                 <div class="select-container-item">
                     <span>鍒�</span>
-                    <label><input id="bay" type="number" name="points" min="0" style="background-color: #a9eeff" /></label>
+                    <label><input id="bay" type="number" name="points" min="0" style="background-color: #a9eeff" value="0" /></label>
                 </div>
                 <div class="select-container-item">
                     <span>灞�</span>
-                    <label><input id="lev" type="number" name="points" min="0" style="background-color: #a9eeff" /></label>
+                    <label><input id="lev" type="number" name="points" min="1" style="background-color: #a9eeff" value="1" /></label>
                 </div>
             </div>
         </div>
@@ -234,7 +227,7 @@
                 } else if (res.code === 403) {
                     window.location.href = baseUrl + "/login";
                 } else {
-                    alert(res.msg);
+                    console.log(res.msg);
                 }
             }
         })
@@ -257,24 +250,23 @@
                     for (var i=1;i<=table.length;i++){
                         var tr = tableEl.find("tr").eq(i);
                         setVal(tr.children("td").eq(0), table[i-1].crnNo);
-                        setVal(tr.children("td").eq(1), table[i-1].workNo);
-                        setVal(tr.children("td").eq(2), table[i-1].statusType);
-                        setVal(tr.children("td").eq(3), table[i-1].status);
-                        setVal(tr.children("td").eq(4), table[i-1].loading);
-                        setVal(tr.children("td").eq(5), table[i-1].bay);
-                        setVal(tr.children("td").eq(6), table[i-1].lev);
-                        setVal(tr.children("td").eq(7), table[i-1].xorigin);
-                        setVal(tr.children("td").eq(8), table[i-1].yorigin);
-                        setVal(tr.children("td").eq(9), table[i-1].forkOffset);
-                        setVal(tr.children("td").eq(10), table[i-1].xlocation);
-                        setVal(tr.children("td").eq(11), table[i-1].ylocation);
-                        setVal(tr.children("td").eq(12), table[i-1].stop);
-                        setVal(tr.children("td").eq(13), table[i-1].warnCode);
+                        setVal(tr.children("td").eq(1), table[i-1].statusType);
+                        setVal(tr.children("td").eq(2), table[i-1].status);
+                        setVal(tr.children("td").eq(3), table[i-1].loading);
+                        setVal(tr.children("td").eq(4), table[i-1].bay);
+                        setVal(tr.children("td").eq(5), table[i-1].lev);
+                        setVal(tr.children("td").eq(6), table[i-1].xorigin);
+                        setVal(tr.children("td").eq(7), table[i-1].yorigin);
+                        setVal(tr.children("td").eq(8), table[i-1].forkOffset);
+                        setVal(tr.children("td").eq(9), table[i-1].xlocation);
+                        setVal(tr.children("td").eq(10), table[i-1].ylocation);
+                        setVal(tr.children("td").eq(11), table[i-1].stop);
+                        setVal(tr.children("td").eq(12), table[i-1].warnCode);
                     }
                 } else if (res.code === 403){
                     window.location.href = baseUrl+"/login";
                 }  else {
-                    alert(res.msg);
+                    console.log(res.msg);
                 }
             }
         });
@@ -315,7 +307,7 @@
                 } else if (res.code === 403){
                     window.location.href = baseUrl+"/login";
                 }  else {
-                    alert(res.msg);
+                    console.log(res.msg);
                 }
             }
         });
@@ -425,7 +417,7 @@
 
     // 鎵嬪姩澶嶄綅
     function handleReset() {
-        http.post(baseUrl+"/crn/operator/clearCommand", getReqParam(), function (res) {
+        http.post(baseUrl+"/crn/operator/handleReset", getReqParam(), function (res) {
             layer.msg(res.msg);
         });
     }
@@ -442,7 +434,7 @@
                 } else if (res.code === 403) {
                     window.location.href = baseUrl + "/login";
                 } else {
-                    alert(res.msg);
+                    console.log(res.msg);
                 }
             }
         })
@@ -466,7 +458,6 @@
         var html = "";
         for (var i = 0; i < line; i ++){
             html += " <tr>\n" +
-                "       <td></td>\n" +
                 "       <td></td>\n" +
                 "       <td></td>\n" +
                 "       <td></td>\n" +

--
Gitblit v1.9.1