| | |
| | | <title>平仓入库</title> |
| | | <link rel="stylesheet" href="../../static/layui/css/layui.css" media="all"> |
| | | <link rel="stylesheet" href="../../static/css/pda.css" media="all"> |
| | | |
| | | <script type="text/javascript" src="../../static/js/jquery/jquery-3.3.1.min.js"></script> |
| | | <script type="text/javascript" src="../../static/layui/layui.js" charset="utf-8"></script> |
| | | <script type="text/javascript" src="../../static/js/common.js" charset="utf-8"></script> |
| | |
| | | </head> |
| | | <body> |
| | | <!-- 头部 --> |
| | | <header> |
| | | <header class="layui-form"> |
| | | <div> |
| | | <div class="layui-input-inline"> |
| | | <label class="layui-form-label">库区</label> |
| | | <input class="layui-input" id="uuid" onkeyup="exist(this.id, 'locArea')" placeholder="扫码 / 输入" |
| | | autocomplete="off"> |
| | | <div class="layui-input-inline" style="margin-left: 5px;width: 180px"> |
| | | <select id="uuid"> |
| | | <option value="">请选择</option> |
| | | </select> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | |
| | |
| | | } |
| | | }); |
| | | |
| | | var areaType = getQueryVariable('areaType'); |
| | | // 获取仓库下拉 |
| | | $.ajax({ |
| | | url: baseUrl + "/locArea/queryAll/auth?areaType=" + (areaType ? areaType : ""), |
| | | headers: {'token': localStorage.getItem('token')}, |
| | | method: 'POST', |
| | | success: function (res) { |
| | | if (res.code === 200) { |
| | | var html = ""; |
| | | if (res.data && res.data.length > 0) { |
| | | html += res.data.map(function (item) { |
| | | return "<Option value=" + item.uuid + ">" + item.name + "</Option>"; |
| | | }); |
| | | } |
| | | $('#uuid').append(html); |
| | | layui.form.render('select'); |
| | | } else if (res.code === 403) { |
| | | top.location.href = baseUrl + "/"; |
| | | } else { |
| | | layer.msg(res.msg) |
| | | } |
| | | } |
| | | }); |
| | | }); |
| | | |
| | | window.onload = function () { |
| | | document.getElementById("uuid").focus(); |
| | | } |
| | | |
| | | function findCode(el) { |
| | | |
| | | } |
| | | |
| | | var matCodeLayerIdx; |
| | |
| | | // 组托 |
| | | function comb() { |
| | | let barcode = $('#uuid').val(); |
| | | console.log('barcode', barcode); |
| | | if (isEmpty(barcode)) { |
| | | tips("库区条码为空", true); |
| | | tips("请选择库区", true); |
| | | document.getElementById("uuid").focus(); |
| | | return; |
| | | } |
| | |
| | | |
| | | // 重置 |
| | | function reset() { |
| | | $('#uuid').val(""); |
| | | matData = []; |
| | | tableIns.reload({data: matData}); |
| | | layer.closeAll(); |