| | |
| | | <div class="command-log"> |
| | | <div data-steNo="1" class="ste-command-item" style="margin-top: 30px"> |
| | | <label>1#</label> |
| | | <button class="demoBtn pos-btn">修改位置</button> |
| | | <button class="demoBtn crn-btn">关联堆垛机</button> |
| | | <button class="demoBtn pos-btn">数据维护</button> |
| | | </div> |
| | | <div data-steNo="2" class="ste-command-item" style="margin-top: 30px"> |
| | | <label>2#</label> |
| | | <button class="demoBtn pos-btn">修改位置</button> |
| | | <button class="demoBtn crn-btn">关联堆垛机</button> |
| | | <button class="demoBtn pos-btn">数据维护</button> |
| | | </div> |
| | | <div data-steNo="3" class="ste-command-item" style="margin-top: 30px"> |
| | | <label>3#</label> |
| | | <button class="demoBtn pos-btn">修改位置</button> |
| | | <button class="demoBtn crn-btn">关联堆垛机</button> |
| | | <button class="demoBtn pos-btn">数据维护</button> |
| | | </div> |
| | | </div> |
| | | <!-- 堆垛机状态位信息 --> |
| | |
| | | <div id="ste-detl" style="display: none"> |
| | | <form> |
| | | <div class="form-item"> |
| | | <label class="form-label">站号:</label> |
| | | <label class="form-label">穿梭车号:</label> |
| | | <div class="form-input"> |
| | | <input id="siteId" name="siteId" class="layui-input" lay-verify="required|number" autocomplete="off" disabled="disabled"> |
| | | <input id="steNo" name="steNo" class="layui-input" lay-verify="required|number" autocomplete="off" disabled="disabled"> |
| | | </div> |
| | | </div> |
| | | <div class="form-item"> |
| | |
| | | </div> |
| | | </div> |
| | | <div class="form-item"> |
| | | <label class="form-label">目标站:</label> |
| | | <label class="form-label">排:</label> |
| | | <div class="form-input"> |
| | | <input id="staNo" name="staNo" type="number" class="layui-input" lay-verify="number" autocomplete="off"> |
| | | <input id="row" name="row" type="number" class="layui-input" lay-verify="number" autocomplete="off"> |
| | | </div> |
| | | </div> |
| | | <div class="form-item"> |
| | | <label class="form-label">入库标记:</label> |
| | | <label class="form-label">列:</label> |
| | | <div class="form-input"> |
| | | <input id="pakMk" name="pakMk" type="text" class="layui-input" autocomplete="off"> |
| | | <input id="bay" name="bay" type="text" class="layui-input" autocomplete="off"> |
| | | </div> |
| | | </div> |
| | | <div class="form-item"> |
| | | <label class="form-label">层:</label> |
| | | <div class="form-input"> |
| | | <input id="lev" name="lev" type="text" class="layui-input" autocomplete="off"> |
| | | </div> |
| | | </div> |
| | | <div class="form-item"> |
| | | <label class="form-label">堆垛机:</label> |
| | | <div class="form-input"> |
| | | <input id="crnNo" name="crnNo" type="text" class="layui-input" autocomplete="off"> |
| | | </div> |
| | | </div> |
| | | <div class="form-item form-button-container"> |
| | |
| | | </div> |
| | | </body> |
| | | </html> |
| | | <script> |
| | | layui.config({ |
| | | base: baseUrl + "/static/layui/lay/modules/" |
| | | }).extend({ |
| | | dropdown: 'dropdown/dropdown', |
| | | }).use(['dropdown'],function () { |
| | | var dropdown = layui.dropdown; |
| | | }) |
| | | </script> |
| | | <script> |
| | | // 空白行数 |
| | | var steStateTableBlankRows = 0; |
| | |
| | | offset: [$(this).offset().top + 30 + 'px', $(this).offset().left + 'px'], |
| | | anim: 5, |
| | | shade: [0], |
| | | area: ['340px', '255px'], |
| | | area: ['310px', '340px'], |
| | | closeBtn: 0, |
| | | content: $("#ste-detl"), |
| | | success: function(layero, index){ |
| | | // http.get(baseUrl+ "/site/detl/"+siteId, null, function (res) { |
| | | // $('#siteId').val(siteId); |
| | | // $('#workNo').val(res.data.workNo); |
| | | // $('#staNo').val(res.data.staNo); |
| | | // $('#pakMk').val(res.data.pakMk); |
| | | // }) |
| | | http.get(baseUrl+ "/ste/detl/"+steNo, null, function (res) { |
| | | $('#steNo').val(steNo); |
| | | $('#workNo').val(res.data.workNo); |
| | | $('#row').val(res.data.row); |
| | | $('#bay').val(res.data.bay); |
| | | $('#lev').val(res.data.lev); |
| | | $('#crnNo').val(res.data.crnNo); |
| | | }) |
| | | }, |
| | | end: function () { |
| | | $('#siteId').val(""); |
| | | $('#steNo').val(""); |
| | | $('#workNo').val(""); |
| | | $('#staNo').val(""); |
| | | $('#pakMk').val(""); |
| | | $('#row').val(""); |
| | | $('#bay').val(""); |
| | | $('#lev').val(""); |
| | | $('#crnNo').val(""); |
| | | } |
| | | }) |
| | | }) |
| | | |
| | | $(document).on('click ','.crn-btn', function () { |
| | | let steNo = Number($(this).parent().attr("data-steNo")); |
| | | console.log(steNo) |
| | | $(document).on('click ','#save', function () { |
| | | http.post(baseUrl+ "/ste/detl/update", { |
| | | steNo: $('#steNo').val(), |
| | | workNo: $('#workNo').val(), |
| | | row: $('#row').val(), |
| | | bay: $('#bay').val(), |
| | | lev: $('#lev').val(), |
| | | crnNo: $('#crnNo').val(), |
| | | }, function (res) { |
| | | layer.msg("修改成功",{icon: 1,}); |
| | | }) |
| | | }) |
| | | |
| | | // 穿梭车信息表获取 ---- 表一 |