| | |
| | | } |
| | | #tips { |
| | | display: inline-block; |
| | | width: 90px; |
| | | color: #666; |
| | | margin-left: 5px; |
| | | margin-bottom: 5px; |
| | |
| | | var form = layui.form; |
| | | |
| | | tableIns = table.render({ |
| | | id: 'tableIdx', |
| | | elem: '#dataByLoc', |
| | | data: [], |
| | | limit: 500, |
| | |
| | | cols: [[ |
| | | {type: 'checkbox', fixed: 'left', width:30}, |
| | | {field: 'count', align: 'center', title: '量', style:'color: blue', width:30}, |
| | | {field: 'matNo', align: 'center', title: '编码'}, |
| | | {field: 'matName', align: 'center', title: '名称'}, |
| | | {field: 'matnr', align: 'center', title: '编码'}, |
| | | {field: 'maktx', align: 'center', title: '名称'}, |
| | | {field: 'locNo', align: 'center', title: '库位'} |
| | | ]], |
| | | done: function (res, curr, count) { |
| | |
| | | |
| | | // 出库 |
| | | function pakOut() { |
| | | if (locDetlData.length === 0) { |
| | | tips("物料数据为空", true); |
| | | var tableData = layui.table.checkStatus('tableIdx').data; |
| | | if (tableData.length === 0) { |
| | | tips("请选择物料", true); |
| | | document.getElementById("locNo").focus(); |
| | | return; |
| | | } |
| | |
| | | headers: {'token': localStorage.getItem('token')}, |
| | | data: JSON.stringify({ |
| | | outSite: site, |
| | | locDetls: locDetlData |
| | | locDetls: tableData |
| | | }), |
| | | contentType:'application/json;charset=UTF-8', |
| | | method: 'POST', |