|
@@ -51,6 +51,9 @@
|
|
<input type="button" value="清洗规则"/>
|
|
<input type="button" value="清洗规则"/>
|
|
</li>
|
|
</li>
|
|
<li>
|
|
<li>
|
|
|
|
+ <input type="button" value="局部清洗"/>
|
|
|
|
+ </li>
|
|
|
|
+ <li>
|
|
<input type="button" value="报警记录"/>
|
|
<input type="button" value="报警记录"/>
|
|
</li>
|
|
</li>
|
|
<li>
|
|
<li>
|
|
@@ -453,73 +456,38 @@
|
|
</div>
|
|
</div>
|
|
</form>
|
|
</form>
|
|
</div>
|
|
</div>
|
|
-[#--<div class="input tabContent">--]
|
|
|
|
- [#--<form class="layui-form layui-form-pane" id="editProductForm">--]
|
|
|
|
|
|
|
|
- [#--<table id="listTable" class="list">--]
|
|
|
|
|
|
+<div class="input tabContent">
|
|
|
|
+ <div>
|
|
|
|
|
|
- [#--<tr>--]
|
|
|
|
- [#--<th>--]
|
|
|
|
- [#--<a href="javascript:" class="sort" name="productName">产品名称</a>--]
|
|
|
|
- [#--</th>--]
|
|
|
|
- [#--<th>--]
|
|
|
|
- [#--<a href="javascript:" class="sort" name="rmbPrice">人民币价格</a>--]
|
|
|
|
- [#--</th>--]
|
|
|
|
- [#--<th>--]
|
|
|
|
- [#--<a href="javascript:" class="sort" name="CodePrice">投币价格</a>--]
|
|
|
|
- [#--</th>--]
|
|
|
|
- [#--<th>--]
|
|
|
|
- [#--<a href="javascript:" class="sort" name="sellStatus">销售状态</a>--]
|
|
|
|
- [#--</th>--]
|
|
|
|
- [#--</tr>--]
|
|
|
|
- [#--[#list products.content as product]--]
|
|
|
|
- [#--<tr>--]
|
|
|
|
- [#--<input type="hidden" name="productId" value="${product.id}" lay-verify="required|productId"--]
|
|
|
|
- [#--value="${product.id}"/>--]
|
|
|
|
- [#--<input type="hidden" name="equipmentId" value="${product.equipmentId}"/>--]
|
|
|
|
- [#--<div class="layui-inline">--]
|
|
|
|
- [#--<td>--]
|
|
|
|
- [#--<input type="text" name="productName" lay-verify="required|productName"--]
|
|
|
|
- [#--value="${product.productName}" class="layui-input" readonly/>--]
|
|
|
|
- [#--</td>--]
|
|
|
|
- [#--</div>--]
|
|
|
|
-
|
|
|
|
- [#--<td>--]
|
|
|
|
- [#--<div class="layui-inline"></div>--]
|
|
|
|
- [#--<input type="text" name="rmbPrice"--]
|
|
|
|
- [#--value="${product.rmbPrice}" class="layui-input" required/>--]
|
|
|
|
- [#--</td>--]
|
|
|
|
- [#--<td>--]
|
|
|
|
- [#--<input type="text" name="codePrice"--]
|
|
|
|
- [#--value="${product.codePrice}" class="layui-input" required/>--]
|
|
|
|
- [#--</td>--]
|
|
|
|
- [#--<td>--]
|
|
|
|
- [#--[#if product.sellStatus=="true"]--]
|
|
|
|
-
|
|
|
|
- [#--<span>正常销售</span>--]
|
|
|
|
- [#--[#else]--]
|
|
|
|
- [#--<span class="red">已售罄</span>--]
|
|
|
|
- [#--[/#if]--]
|
|
|
|
- [#--</td>--]
|
|
|
|
- [#--</tr>--]
|
|
|
|
- [#--[/#list]--]
|
|
|
|
-
|
|
|
|
- [#--</table>--]
|
|
|
|
- [#--<div class="layui-form-item">--]
|
|
|
|
- [#--<div class="layui-input-block ">--]
|
|
|
|
-
|
|
|
|
- [#--<td><input id="editProduct" type="submit" value="提交" /></td>--]
|
|
|
|
- [#--<td><input type="reset" value="重置" /></td>--]
|
|
|
|
- [#--<td align="center">--]
|
|
|
|
- [#--<input id="editProduct" class="button" type="submit" value="提交并推送设备更新"/>--]
|
|
|
|
- [#--<input type="button" class="button" value="取消"--]
|
|
|
|
- [#--onclick="location.href='list.htm'"/>--]
|
|
|
|
- [#--</td>--]
|
|
|
|
|
|
+ <table id="positionNums" class="list">
|
|
|
|
+ <tr>
|
|
|
|
+ <td>
|
|
|
|
+ <div>
|
|
|
|
+ <label>
|
|
|
|
+ <span>位置编号1</span>
|
|
|
|
+ <button class="layui-btn" onclick="c('1')">清洗</button>
|
|
|
|
+ </label>
|
|
|
|
+ </div>
|
|
|
|
+ </td>
|
|
|
|
+ </tr>
|
|
|
|
+ </table>
|
|
|
|
+ <div>
|
|
|
|
+ <table class="input">
|
|
|
|
+ <tr>
|
|
|
|
+ <th>
|
|
|
|
+
|
|
|
|
+ </th>
|
|
|
|
+ <td>
|
|
|
|
+ <input type="button" class="button" value="返回" onclick="location.href='list.htm'"/>
|
|
|
|
+ </td>
|
|
|
|
+ </tr>
|
|
|
|
+ </table>
|
|
|
|
+ </div>
|
|
|
|
+ </div>
|
|
|
|
+
|
|
|
|
+</div>
|
|
|
|
|
|
- [#--</div>--]
|
|
|
|
- [#--</div>--]
|
|
|
|
- [#--</form>--]
|
|
|
|
-[#--</div>--]
|
|
|
|
<div class="input tabContent">
|
|
<div class="input tabContent">
|
|
<form class="layui-form layui-upload-list" id="editProductForm">
|
|
<form class="layui-form layui-upload-list" id="editProductForm">
|
|
|
|
|
|
@@ -608,6 +576,7 @@
|
|
<table class="list">
|
|
<table class="list">
|
|
<tr>
|
|
<tr>
|
|
<input type="hidden" id="equId" value="${equipment.gtClientId}"/>
|
|
<input type="hidden" id="equId" value="${equipment.gtClientId}"/>
|
|
|
|
+ <input type="hidden" id="positionNum" value="${equipment.positionNum}"/>
|
|
<input type="hidden" id="clientId" value="${equipment.clientId}"/>
|
|
<input type="hidden" id="clientId" value="${equipment.clientId}"/>
|
|
<td>
|
|
<td>
|
|
<div>
|
|
<div>
|
|
@@ -1009,71 +978,7 @@
|
|
<div class="input tabContent">
|
|
<div class="input tabContent">
|
|
<div>
|
|
<div>
|
|
<table class="list">
|
|
<table class="list">
|
|
- [#--<tr>--]
|
|
|
|
- [#--<td>--]
|
|
|
|
- [#--<div>--]
|
|
|
|
- [#--<label>--]
|
|
|
|
- [#--<span>X轴回零速度:</span> --]
|
|
|
|
- [#--<input type="text" name="val" id="D-420" class="text" style="width: 70px"--]
|
|
|
|
- [#--value="${_paramMethod('D-420',equipment.clientId,'1')}"/>--]
|
|
|
|
- [#--<button class="layui-btn" onclick="a('D-420')">更新</button>--]
|
|
|
|
- [#--</label>--]
|
|
|
|
- [#--</div>--]
|
|
|
|
- [#--</td>--]
|
|
|
|
- [#--<td>--]
|
|
|
|
- [#--<div>--]
|
|
|
|
- [#--<label>--]
|
|
|
|
- [#--<span>X轴爬行速度:</span> --]
|
|
|
|
- [#--<input type="text" name="val" id="D-421" class="text" style="width: 70px"--]
|
|
|
|
- [#--value=" ${_paramMethod('D-421',equipment.clientId,'1')}"/>--]
|
|
|
|
- [#--<button class="layui-btn" onclick="a('D-421')">更新</button>--]
|
|
|
|
- [#--</label>--]
|
|
|
|
- [#--</div>--]
|
|
|
|
- [#--</td>--]
|
|
|
|
- [#--<td>--]
|
|
|
|
- [#--<div>--]
|
|
|
|
- [#--<label>--]
|
|
|
|
-
|
|
|
|
- [#--<span>Y轴回零速度:</span> --]
|
|
|
|
- [#--<input value=" ${_paramMethod('D-422',equipment.clientId,'1')}" type="text" name="val"--]
|
|
|
|
- [#--id="D-422" class="text" style="width: 70px"/>--]
|
|
|
|
- [#--<button class="layui-btn" onclick="a('D-422')">更新</button>--]
|
|
|
|
- [#--</label>--]
|
|
|
|
- [#--</div>--]
|
|
|
|
- [#--</td>--]
|
|
|
|
- [#--<td>--]
|
|
|
|
- [#--<div>--]
|
|
|
|
- [#--<label>--]
|
|
|
|
- [#--<span>Y轴爬行速度:</span> --]
|
|
|
|
- [#--<input value=" ${_paramMethod('D-423',equipment.clientId,'1')}" type="text" name="val"--]
|
|
|
|
- [#--id="D-423" class="text" style="width: 70px"/>--]
|
|
|
|
- [#--<button class="layui-btn" onclick="a('D-423')">更新</button>--]
|
|
|
|
- [#--</label>--]
|
|
|
|
- [#--</div>--]
|
|
|
|
- [#--</td>--]
|
|
|
|
- [#--</tr>--]
|
|
|
|
<tr>
|
|
<tr>
|
|
- [#--<td>--]
|
|
|
|
- [#--<div>--]
|
|
|
|
- [#--<label>--]
|
|
|
|
- [#--<span>E轴回零速度:</span> --]
|
|
|
|
- [#--<input value=" ${_paramMethod('D-424',equipment.clientId,'1')}" type="text" name="val"--]
|
|
|
|
- [#--id="D-424" class="text" style="width: 70px"/>--]
|
|
|
|
- [#--<button class="layui-btn" onclick="a('D-424')">更新</button>--]
|
|
|
|
- [#--</label>--]
|
|
|
|
- [#--</div>--]
|
|
|
|
- [#--</td>--]
|
|
|
|
- [#--<td>--]
|
|
|
|
- [#--<div>--]
|
|
|
|
- [#--<label>--]
|
|
|
|
- [#--<span>E轴爬行速度:</span> --]
|
|
|
|
- [#--<input value=" ${_paramMethod('D-425',equipment.clientId,'1')}" type="text" name="val"--]
|
|
|
|
- [#--id="D-425" class="text" style="width: 70px"/>--]
|
|
|
|
- [#--<button class="layui-btn" onclick="a('D-425')">更新</button>--]
|
|
|
|
- [#--</label>--]
|
|
|
|
- [#--</div>--]
|
|
|
|
- [#--</td>--]
|
|
|
|
-
|
|
|
|
<td>
|
|
<td>
|
|
<div>
|
|
<div>
|
|
<label>
|
|
<label>
|
|
@@ -1138,134 +1043,6 @@
|
|
</div>
|
|
</div>
|
|
</td>
|
|
</td>
|
|
</tr>
|
|
</tr>
|
|
- [#--<tr>--]
|
|
|
|
- [#--<td>--]
|
|
|
|
- [#--<div>--]
|
|
|
|
- [#--<label>--]
|
|
|
|
- [#--<span>参数十三:</span> --]
|
|
|
|
- [#--<input value=" ${_paramMethod('D431',equipment.clientId,'1')}" type="text" name="val"--]
|
|
|
|
- [#--id="D431" class="text" style="width: 70px"/>--]
|
|
|
|
- [#--<button class="layui-btn" onclick="a('D431')">更新</button>--]
|
|
|
|
- [#--</label>--]
|
|
|
|
- [#--</div>--]
|
|
|
|
- [#--</td>--]
|
|
|
|
- [#--<td>--]
|
|
|
|
- [#--<div>--]
|
|
|
|
- [#--<label>--]
|
|
|
|
- [#--<span>参数十四:</span> --]
|
|
|
|
- [#--<input value=" ${_paramMethod('D432',equipment.clientId,'1')}" type="text" name="val"--]
|
|
|
|
- [#--id="D432" class="text" style="width: 70px"/>--]
|
|
|
|
- [#--<button class="layui-btn" onclick="a('D432')">更新</button>--]
|
|
|
|
- [#--</label>--]
|
|
|
|
- [#--</div>--]
|
|
|
|
- [#--</td>--]
|
|
|
|
- [#--<td>--]
|
|
|
|
- [#--<div>--]
|
|
|
|
- [#--<label>--]
|
|
|
|
- [#--<span>参数十五:</span> --]
|
|
|
|
- [#--<input value=" ${_paramMethod('D433',equipment.clientId,'1')}" type="text" name="val"--]
|
|
|
|
- [#--id="D433" class="text" style="width: 70px"/>--]
|
|
|
|
- [#--<button class="layui-btn" onclick="a('D433')">更新</button>--]
|
|
|
|
- [#--</label>--]
|
|
|
|
- [#--</div>--]
|
|
|
|
- [#--</td>--]
|
|
|
|
- [#--<td>--]
|
|
|
|
- [#--<div>--]
|
|
|
|
- [#--<label>--]
|
|
|
|
- [#--<span>参数十六:</span> --]
|
|
|
|
- [#--<input value=" ${_paramMethod('D436',equipment.clientId,'1')}" type="text" name="val"--]
|
|
|
|
- [#--id="D436" class="text" style="width: 70px"/>--]
|
|
|
|
- [#--<button class="layui-btn" onclick="a('D436')">更新</button>--]
|
|
|
|
- [#--</label>--]
|
|
|
|
- [#--</div>--]
|
|
|
|
- [#--</td>--]
|
|
|
|
- [#--</tr>--]
|
|
|
|
- [#--<tr>--]
|
|
|
|
- [#--<td>--]
|
|
|
|
- [#--<div>--]
|
|
|
|
- [#--<label>--]
|
|
|
|
- [#--<span>参数十七:</span> <input value=" ${_paramMethod('D438',equipment.clientId,'1')}"--]
|
|
|
|
- [#--type="text" name="val" id="D438" class="text"--]
|
|
|
|
- [#--style="width: 70px"/>--]
|
|
|
|
- [#--<button class="layui-btn" onclick="a('D438')">更新</button>--]
|
|
|
|
- [#--</label>--]
|
|
|
|
- [#--</div>--]
|
|
|
|
- [#--</td>--]
|
|
|
|
- [#--<td>--]
|
|
|
|
- [#--<div>--]
|
|
|
|
- [#--<label>--]
|
|
|
|
- [#--<span>参数十八:</span> <input value=" ${_paramMethod('D440',equipment.clientId,'1')}"--]
|
|
|
|
- [#--type="text" name="val" id="D440" class="text"--]
|
|
|
|
- [#--style="width: 70px"/>--]
|
|
|
|
- [#--<button class="layui-btn" onclick="a('D440')">更新</button>--]
|
|
|
|
- [#--</label>--]
|
|
|
|
- [#--</div>--]
|
|
|
|
- [#--</td>--]
|
|
|
|
-
|
|
|
|
- [#----]
|
|
|
|
- [#--<td>--]
|
|
|
|
- [#--<div>--]
|
|
|
|
- [#--<label>--]
|
|
|
|
- [#--<span>参数十九:</span> <input value=" ${_paramMethod('D218',equipment.clientId,'1')}"--]
|
|
|
|
- [#--type="text" name="val" id="D218" class="text"--]
|
|
|
|
- [#--style="width: 70px"/>--]
|
|
|
|
- [#--<button class="layui-btn" onclick="a('D218')">更新</button>--]
|
|
|
|
- [#--</label>--]
|
|
|
|
- [#--</div>--]
|
|
|
|
- [#--</td>--]
|
|
|
|
- [#--<td>--]
|
|
|
|
- [#--<div>--]
|
|
|
|
- [#--<label>--]
|
|
|
|
- [#--<span>参数二十:</span> <input value=" ${_paramMethod('D268',equipment.clientId,'1')}"--]
|
|
|
|
- [#--type="text" name="val" id="D268" class="text"--]
|
|
|
|
- [#--style="width: 70px"/>--]
|
|
|
|
- [#--<button class="layui-btn" onclick="a('D268')">更新</button>--]
|
|
|
|
- [#--</label>--]
|
|
|
|
- [#--</div>--]
|
|
|
|
- [#--</td>--]
|
|
|
|
- [#--</tr>--]
|
|
|
|
- [#--<tr>--]
|
|
|
|
- [#--<td>--]
|
|
|
|
- [#--<div>--]
|
|
|
|
- [#--<label>--]
|
|
|
|
- [#--<span>参数二十一:</span> <input--]
|
|
|
|
- [#--value=" ${_paramMethod('D318',equipment.clientId,'1')}" type="text" name="val" id="D318"--]
|
|
|
|
- [#--class="text" style="width: 70px"/>--]
|
|
|
|
- [#--<button class="layui-btn" onclick="a('D318')">更新</button>--]
|
|
|
|
- [#--</label>--]
|
|
|
|
- [#--</div>--]
|
|
|
|
- [#--</td>--]
|
|
|
|
- [#--<td>--]
|
|
|
|
- [#--<div>--]
|
|
|
|
- [#--<label>--]
|
|
|
|
- [#--<span>参数二十二:</span> <input--]
|
|
|
|
- [#--value=" ${_paramMethod('D228',equipment.clientId,'1')}" type="text" name="val" id="D228"--]
|
|
|
|
- [#--class="text" style="width: 70px"/>--]
|
|
|
|
- [#--<button class="layui-btn" onclick="a('D228')">更新</button>--]
|
|
|
|
- [#--</label>--]
|
|
|
|
- [#--</div>--]
|
|
|
|
- [#--</td>--]
|
|
|
|
- [#--<td>--]
|
|
|
|
- [#--<div>--]
|
|
|
|
- [#--<label>--]
|
|
|
|
- [#--<span>参数二十三:</span> <input--]
|
|
|
|
- [#--value=" ${_paramMethod('D278',equipment.clientId,'1')}" type="text" name="val" id="D278"--]
|
|
|
|
- [#--class="text" style="width: 70px"/>--]
|
|
|
|
- [#--<button class="layui-btn" onclick="a('D278')">更新</button>--]
|
|
|
|
- [#--</label>--]
|
|
|
|
- [#--</div>--]
|
|
|
|
- [#--</td>--]
|
|
|
|
- [#--<td>--]
|
|
|
|
- [#--<div>--]
|
|
|
|
- [#--<label>--]
|
|
|
|
- [#--<span>参数二十四:</span> <input--]
|
|
|
|
- [#--value=" ${_paramMethod('D328',equipment.clientId,'1')}" type="text" name="val" id="D328"--]
|
|
|
|
- [#--class="text" style="width: 70px"/>--]
|
|
|
|
- [#--<button class="layui-btn" onclick="a('D328')">更新</button>--]
|
|
|
|
- [#--</label>--]
|
|
|
|
- [#--</div>--]
|
|
|
|
- [#--</td>--]
|
|
|
|
- [#--</tr>--]
|
|
|
|
</table>
|
|
</table>
|
|
</div>
|
|
</div>
|
|
<div>
|
|
<div>
|
|
@@ -1470,7 +1247,52 @@
|
|
});
|
|
});
|
|
|
|
|
|
</script>
|
|
</script>
|
|
|
|
+[#--局部清洗--]
|
|
|
|
+<script>
|
|
|
|
+ var posit = setInterval(positionNum,2000);
|
|
|
|
+ function positionNum(){
|
|
|
|
+ clearInterval(posit);
|
|
|
|
+ document.getElementById("positionNums").innerHTML = "";
|
|
|
|
+ var num = document.getElementById("positionNum").value;
|
|
|
|
+ var table = document.getElementById("positionNums");
|
|
|
|
+ var tableData="<tr>";
|
|
|
|
+ for(var i=1;i<=num;i++){
|
|
|
|
+ tableData+="<td>" +
|
|
|
|
+ "<div>" +
|
|
|
|
+ "<label>" +
|
|
|
|
+ "<span>位置编号"+i+"</span> " +
|
|
|
|
+ "<button class=\"layui-btn\" onclick=\"c('"+i+"')\">清洗</button>"+
|
|
|
|
+ "</label>" +
|
|
|
|
+ "</div>" +
|
|
|
|
+ "</td>";
|
|
|
|
+ if(i%4==0){
|
|
|
|
+ tableData+="</tr>";
|
|
|
|
+ }
|
|
|
|
+ if(i%4==0&&i<num){
|
|
|
|
+ tableData+="<tr>";
|
|
|
|
+ }
|
|
|
|
+ if(i%4!=0&&i==num){
|
|
|
|
+ tableData+="</tr>";
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ $("#positionNums").html(tableData)
|
|
|
|
+ // table.innerHTML=tableData;
|
|
|
|
|
|
|
|
+ }
|
|
|
|
+ function c(val) {
|
|
|
|
+ var clientId = $("#clientId").val();
|
|
|
|
+ $.ajax({
|
|
|
|
+ url: "cleanPositionNum.htm?clientId="+clientId+"&val="+val,
|
|
|
|
+ type: "get",
|
|
|
|
+ dataType: "json",
|
|
|
|
+ contentType: 'application/json;charset=utf-8',
|
|
|
|
+ // data: JSON.stringify(commonParam),
|
|
|
|
+ success: function (data) {
|
|
|
|
+ layer.msg("发送成功");
|
|
|
|
+ }
|
|
|
|
+ })
|
|
|
|
+ }
|
|
|
|
+</script>
|
|
[#--修改产品验证--]
|
|
[#--修改产品验证--]
|
|
<script>
|
|
<script>
|
|
$(document).ready(function () {
|
|
$(document).ready(function () {
|
|
@@ -1603,7 +1425,7 @@
|
|
contentType: 'application/json;charset=utf-8',
|
|
contentType: 'application/json;charset=utf-8',
|
|
data: JSON.stringify(commonParam),
|
|
data: JSON.stringify(commonParam),
|
|
success: function (data) {
|
|
success: function (data) {
|
|
- layer.msg(data.content);
|
|
|
|
|
|
+ layer.msg("修改成功");
|
|
}
|
|
}
|
|
})
|
|
})
|
|
|
|
|
|
@@ -1633,7 +1455,7 @@
|
|
contentType: 'application/json;charset=utf-8',
|
|
contentType: 'application/json;charset=utf-8',
|
|
data: JSON.stringify(commonParam),
|
|
data: JSON.stringify(commonParam),
|
|
success: function (data) {
|
|
success: function (data) {
|
|
- layer.msg(data.content);
|
|
|
|
|
|
+ layer.msg("修改成功");
|
|
}
|
|
}
|
|
})
|
|
})
|
|
|
|
|