| | |
| | | <tr> |
| | | <th>提升机</th> |
| | | <th>工作号</th> |
| | | <th>任务地址</th> |
| | | <th>目的地址</th> |
| | | <th>已完成的任务号</th> |
| | | <th>层</th> |
| | | <th>作业标记</th> |
| | | <th>穿梭车号</th> |
| | | <th>站点信息</th> |
| | | </tr> |
| | | </thead> |
| | | <tbody> |
| | |
| | | <input id="workNo" name="workNo" type="number" class="layui-input" lay-verify="number" autocomplete="off"> |
| | | </div> |
| | | </div> |
| | | <div class="form-item"> |
| | | <label class="form-label">作业标记:</label> |
| | | <div class="form-input"> |
| | | <input id="pakMk" name="pakMk" 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> |
| | |
| | | http.post(baseUrl+ "/forkLift/detl/update", { |
| | | liftNo: $('#liftNo').val(), |
| | | workNo: $('#workNo').val(), |
| | | pakMk: $('#pakMk').val(), |
| | | token: $('#token').val(), |
| | | }, function (res) { |
| | | layer.msg("修改成功", {icon: 1,}); |
| | | layer.close(layerDetl); |
| | |
| | | } |
| | | for (var i=1;i<=table.length;i++){ |
| | | var tr = tableEl.find("tr").eq(i); |
| | | let staDiv = ""; |
| | | table[i-1].forkLiftStaProtocols.forEach((item) => { |
| | | let hasTray = item.hasTray ? "Y" : "N"; |
| | | let hasCar = item.hasCar ? "Y" : "N"; |
| | | staDiv += "<div>" + item.lev + "层,托盘:" + hasTray + ",小车:" + hasCar + "</div>" |
| | | }) |
| | | |
| | | setVal(tr.children("td").eq(0), table[i-1].liftNo); |
| | | setVal(tr.children("td").eq(1), table[i-1].workNo); |
| | | setVal(tr.children("td").eq(2), table[i-1].taskAddress); |
| | | setVal(tr.children("td").eq(3), table[i-1].distAddress); |
| | | setVal(tr.children("td").eq(4), table[i-1].completeTaskNo); |
| | | setVal(tr.children("td").eq(5), table[i-1].lev); |
| | | setVal(tr.children("td").eq(6), table[i-1].pakMk); |
| | | setVal(tr.children("td").eq(7), table[i-1].shuttleNo); |
| | | setVal(tr.children("td").eq(2), staDiv); |
| | | } |
| | | } else if (res.code === 403){ |
| | | window.location.href = baseUrl+"/login"; |