| | |
| | | } |
| | | |
| | | }) |
| | | } |
| | | } |
| | | |
| | | var tips; |
| | | function locStatus(el) { |
| | | let val = el.value; |
| | | if (val === null|| val === ""){ |
| | | return; |
| | | } |
| | | $.ajax({ |
| | | url: baseUrl+"/locMast/"+val+"/auth", |
| | | headers: {'token': localStorage.getItem('token')}, |
| | | dataType:'json', |
| | | method: 'POST', |
| | | success: function (res) { |
| | | if (res.code === 200) { |
| | | var status; |
| | | if (res.data != null) { |
| | | status = res.data.locType$; |
| | | } else { |
| | | status = "未找到"; |
| | | } |
| | | tips = layer.tips( |
| | | "<span style='color:#333;'>"+status+"</span>", |
| | | el, |
| | | { |
| | | tipsMore: true, |
| | | area: ['150px'], |
| | | tips: [3,'#fff'], |
| | | time:0 |
| | | ,maxWidth:500 |
| | | }); |
| | | } else if (res.code === 403) { |
| | | top.location.href = baseUrl+"/"; |
| | | } else { |
| | | layer.msg(res.msg); |
| | | } |
| | | } |
| | | }); |
| | | } |
| | |
| | | <!-- 源库位 --> |
| | | <div class="layui-inline"> |
| | | <div class="layui-input-inline"> |
| | | <input id="sourceLocNo" class="layui-input cool-auto-complete-div" type="text" placeholder="源库位" style="width: 150px;cursor: initial" autocomplete="off"> |
| | | <input id="sourceLocNo" class="layui-input cool-auto-complete-div" onkeyup="locStatus(this)" type="text" placeholder="源库位" style="width: 150px;cursor: initial" autocomplete="off"> |
| | | </div> |
| | | </div> |
| | | <div class="layui-form-mid" style="float: none; display: inline-block; margin-left: 10px">-</div> |
| | | <!-- 目标库位 --> |
| | | <div class="layui-inline"> |
| | | <div class="layui-input-inline"> |
| | | <input id="targetLocNo" class="layui-input cool-auto-complete-div" type="text" placeholder="目标库位" style="width: 150px;cursor: initial" autocomplete="off"> |
| | | <input id="targetLocNo" class="layui-input cool-auto-complete-div" onkeyup="locStatus(this)" type="text" placeholder="目标库位" style="width: 150px;cursor: initial" autocomplete="off"> |
| | | </div> |
| | | </div> |
| | | <button id="loc-move-btn" class="function-btn" onclick="locMove()" style="background: #4476A7;text-shadow: inherit;height: 45px;font-size: 15px;margin-left: 20px">库位移转</button> |