| | |
| | | padding: 5px 20px; |
| | | color: darkred; |
| | | } |
| | | |
| | | /**绿色勾*/ |
| | | #node-ok { |
| | | float: left; |
| | | width: 15px; |
| | | height: 15px; |
| | | border-radius: 50%; |
| | | margin-top: 13px; |
| | | background-color: #2ac845; |
| | | display: none; |
| | | } |
| | | </style> |
| | | </head> |
| | | <body> |
| | |
| | | <header> |
| | | <div class="layui-input-inline" style="margin-top: 0px"> |
| | | <label class="layui-form-label">货位</label> |
| | | <input class="layui-input" id="locNo" onkeyup="find(this)" placeholder="扫码 / 输入" autocomplete="off" style="width: 75%; height: 40px; margin-right: 0;"> |
| | | <input class="layui-input" id="locNo" onkeyup="find(this)" placeholder="扫码 / 输入" autocomplete="off" style="width: 65%; height: 40px; margin-right: 0;float: left"> |
| | | <span id="node-ok"></span> |
| | | </div> |
| | | <div style="margin: 5px 5px"> |
| | | <button id="replenish-btn" type="button" class="layui-btn layui-btn-normal" onclick="replenish()"><i class="layui-icon">+</i>补充</button> |
| | |
| | | cellMinWidth: 50, |
| | | cols: [[ |
| | | {fixed: 'left', align: 'center', field: 'count', title: '数量', event: 'modify', style:'font-weight: bold;', width:50}, |
| | | {field: 'matnr', align: 'center', title: '商品编号', event: 'modify'}, |
| | | // {field: 'matnr', align: 'center', title: '商品编号', event: 'modify'}, |
| | | {field: 'maktx', align: 'center', title: '商品名称', event: 'modify'} |
| | | ]], |
| | | done: function (res, curr, count) { |
| | |
| | | */ |
| | | function find(el){ |
| | | if (isEmpty(el.value)) { |
| | | $('#node-ok').hide(); |
| | | return; |
| | | } |
| | | $.ajax({ |
| | |
| | | method: 'GET', |
| | | success: function (res) { |
| | | if (res.code === 200) { |
| | | if (res.data != null) { |
| | | locDetlData = []; |
| | | initTableData(res.data); |
| | | locDetlData = []; |
| | | initTableData(res.data); |
| | | if (res.data != null && res.data.length > 0) { |
| | | $('#node-ok').show(); |
| | | } else { |
| | | $('#node-ok').hide(); |
| | | } |
| | | } else if (res.code === 403) { |
| | | top.location.href = baseUrl + "/pda"; |
| | |
| | | content: 'matQuery.html', |
| | | success: function(layero, index){ |
| | | $('.layui-layer-title').css('font-size', '16px'); |
| | | $('.layui-layer.layui-layer-iframe').css('border-radius', '8px'); |
| | | }, |
| | | end: function () { |
| | | // $('#mat-btn').focus(); |
| | |
| | | // 重置 |
| | | function reset() { |
| | | $('#locNo').val(""); |
| | | $('#node-ok').hide(); |
| | | locDetlData = []; |
| | | tableIns.reload({data: locDetlData}); |
| | | } |
| | |
| | | tips("货位不能为空", true); |
| | | return; |
| | | } |
| | | if (locDetlData.length === 0) { |
| | | tips("请提取物料", true); |
| | | return; |
| | | if (locDetlData.length > 0) { |
| | | for (var i = 0; i<locDetlData.length; i++) { |
| | | if (locDetlData[i].count === null || locDetlData[i].count === 0) { |
| | | tips(locDetlData[i].matnr + "商品数量错误", true); |
| | | return; |
| | | } |
| | | } |
| | | } |
| | | $.ajax({ |
| | | url: baseUrl+"/work/stock/check", |