| | |
| | | <div> |
| | | <div class="layui-input-inline"> |
| | | <label class="layui-form-label" style="margin-left: 16px">源库区</label> |
| | | <input class="layui-input" type="number" id="warehouse1" onkeyup="find()" placeholder="扫码 / 输入" |
| | | <input class="layui-input" id="warehouse1" onkeyup="find(true)" placeholder="扫码 / 输入" |
| | | autocomplete="off" style="width: 60%"> |
| | | </div> |
| | | </div> |
| | | <div> |
| | | <div class="layui-input-inline"> |
| | | <label class="layui-form-label">目标库区</label> |
| | | <input class="layui-input" type="number" id="warehouse2" placeholder="扫码 / 输入" |
| | | autocomplete="off" style="width: 60%"> |
| | | <input class="layui-input" id="warehouse2" placeholder="扫码 / 输入" |
| | | autocomplete="off" style="width: 60%" onkeyup="exist('uuid', 'locArea', 'warehouse2')"> |
| | | </div> |
| | | </div> |
| | | </header> |
| | |
| | | return; |
| | | } |
| | | if (warehouse1 == warehouse2) { |
| | | layer.msg("目标库区和源库区一致"); |
| | | layer.msg("目标库区和源库区不能一致"); |
| | | return; |
| | | } |
| | | // 判断勾选数据是否为空 |
| | |
| | | } |
| | | |
| | | /* 根据库区号检索物料信息 */ |
| | | find = () => { |
| | | find = (flag) => { |
| | | if (flag) { |
| | | exist('uuid', 'locArea', 'warehouse1'); |
| | | } |
| | | var warehouse = $("#warehouse1").val(); |
| | | var matnr = $("#matnr").val(); |
| | | // 查询接口 |
| | |
| | | if (res.code === 200) { |
| | | tableIns.reload({ |
| | | data: res.data, |
| | | }) |
| | | }); |
| | | } else if (res.code === 403) { |
| | | top.location.href = baseUrl + "/pda"; |
| | | } else { |
| | |
| | | * @param warn true:红色字体 |
| | | */ |
| | | function tips(msg, warn) { |
| | | layer.msg(msg, {icon: warn?2:1}) |
| | | layer.msg(msg, {icon: warn ? 2 : 1}) |
| | | } |
| | | |
| | | function reset() { |
| | |
| | | $('#warehouse2').val(""); |
| | | $('#matnr').val(""); |
| | | tableIns.reload({data: []}); |
| | | layer.closeAll(); |
| | | } |
| | | </script> |
| | | </html> |