| | |
| | | <!DOCTYPE html> |
| | | <html> |
| | | |
| | | <head> |
| | | <meta charset="utf-8"> |
| | | <title>储位初始化</title> |
| | |
| | | content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=0"> |
| | | <link rel="stylesheet" href="../../layuiadmin/layui/css/layui.css" media="all"> |
| | | </head> |
| | | |
| | | <body> |
| | | <div class="layui-form" lay-filter="layuiadmin-app-form-list" id="layuiadmin-app-form-list" |
| | | style="padding: 20px 30px 0 0;"> |
| | |
| | | <div class="layui-form-item"> |
| | | <label class="layui-form-label">排总数</label> |
| | | <div class="layui-input-inline"> |
| | | <input type="number" id="Row" name="Row" placeholder="排···" autocomplete="off" |
| | | class="layui-input" > |
| | | <input type="number" id="Row" name="Row" placeholder="排···" autocomplete="off" class="layui-input"> |
| | | </div> |
| | | </div> |
| | | |
| | | <div class="layui-form-item"> |
| | | <label class="layui-form-label">列总数</label> |
| | | <div class="layui-input-inline"> |
| | | <input type="number" id="Col" name="Col" placeholder="列···" autocomplete="off" |
| | | class="layui-input" > |
| | | <input type="number" id="Col" name="Col" placeholder="列···" autocomplete="off" class="layui-input"> |
| | | </div> |
| | | </div> |
| | | |
| | | <div class="layui-form-item"> |
| | | <label class="layui-form-label">层总数</label> |
| | | <div class="layui-input-inline"> |
| | | <input type="number" id="Layer" name="Layer" placeholder="层···" autocomplete="off" |
| | | class="layui-input" > |
| | | <input type="number" id="Layer" name="Layer" placeholder="层···" autocomplete="off" class="layui-input"> |
| | | </div> |
| | | </div> |
| | | |
| | | <div class="layui-form-item"> |
| | | <label class="layui-form-label">深度</label> |
| | | <div class="layui-input-inline"> |
| | | <input type="number" id="Depth" name="Depth" placeholder="深度···" autocomplete="off" |
| | | class="layui-input" > |
| | | <input type="number" id="Depth" name="Depth" placeholder="深度···" autocomplete="off" class="layui-input"> |
| | | </div> |
| | | </div> |
| | | |
| | |
| | | form = layui.form, |
| | | layer = layui.layer; |
| | | |
| | | // if(getQueryString('id') != null) |
| | | // { |
| | | // sendData(IP + "/Sys/GetStorageLocat", param, 'post', function(res) { |
| | | // if (res.code == 0) { |
| | | // // $("input[name=Id]").val(res.data.Id); |
| | | // GetHouse(res.data.HouseNo) |
| | | // GetArea(res.data.AreaNo,res.data.HouseNo) |
| | | // GetRoadway(res.data.RoadwayNo) |
| | | // GetTemp(res.data.Temperature); |
| | | // $("input[name=Row]").val(res.data.Row); |
| | | // $("input[name=Col]").val(res.data.Col); |
| | | // $("input[name=Layer]").val(res.data.Layer); |
| | | // $("input[name=Depth]").val(res.data.Depth); |
| | | |
| | | // $("input[name=LocatNo]").val(res.data.LocatNo); |
| | | // $("input[name=Height]").val(res.data.Height); |
| | | // $("input[name=Weight]").val(res.data.Weight); |
| | | // $("select[name='Status']").val(res.data.Status); |
| | | // $("select[name='Flag']").val(res.data.Flag); |
| | | // form.render(); |
| | | // } else { |
| | | // Layer.msg(res.msg, { |
| | | // icon: 2, |
| | | // time: 2000 |
| | | // }, function() {}); |
| | | // } |
| | | // }); |
| | | // }else{ |
| | | // } |
| | | // GetHouse() |
| | | // GetArea() |
| | | // GetRoadway() |
| | | // GetTemp(); |
| | | |
| | | //获取仓库 |
| | | // function GetHouse(){ |
| | | // sendData(IP + "/Sys/GetWarehouseDic", {}, 'get', function(res) { |
| | | // if (res.code == 0) { //成功 |
| | | // $("#RoadwayNo").empty(); |
| | | // for (var i = 0; i < res.data.length; i++) { |
| | | // $("#HouseNo").append('<option value =' + res.data[i].HouseNo + '>' + res.data[i].HouseNo + '-' + |
| | | // res.data[i].WareHouseName + '</option>'); |
| | | // } |
| | | // // $("select[name='HouseNo']").val(val); |
| | | // form.render('select'); |
| | | // } else { //不成功 |
| | | // Layer.msg(res.msg, { |
| | | // icon: 2, |
| | | // time: 2000 //2秒关闭(如果不配置,默认是3秒) |
| | | // }, function() {}); |
| | | // } |
| | | // }); |
| | | //获取仓库下拉框信息 |
| | | sendData(IP + "/Sys/GetWarehouseDic", {}, 'get', function(res) { |
| | | console.log(2) |
| | |
| | | |
| | | } |
| | | |
| | | |
| | | //获取浏览器参数 |
| | | function getQueryString(name) { |
| | | var reg = new RegExp("(^|&)" + name + "=([^&]*)(&|$)", "i"); |
| | |
| | | }) |
| | | </script> |
| | | </body> |
| | | |
| | | </html> |