| | |
| | | tableIns = table.render({ |
| | | elem: '#chooseData', |
| | | data: [], |
| | | width: 320, |
| | | limit: 500, |
| | | cellMinWidth: 50, |
| | | cols: [[ |
| | | {fixed: 'left', align: 'center', field: 'count', title: '数量', style:'color: blue', width:50}, |
| | | {field: 'matNo', align: 'center', title: '物料编码'}, |
| | | {field: 'mnemonic', align: 'center', title: '生产单号'}, |
| | | {field: 'matName', align: 'center', title: '物料名称'} |
| | | ]], |
| | | done: function (res, curr, count) { |
| | |
| | | type: 2, |
| | | title: '提取物料', |
| | | shade: [0.3,'#000'], |
| | | area: ['90%', '80%'], |
| | | area: ['90%', '90%'], |
| | | content: 'matQuery.html', |
| | | success: function(layero, index){ |
| | | $('.layui-layer-title').css('font-size', '16px'); |
| | |
| | | tableIns = table.render({ |
| | | elem: '#chooseData', |
| | | data: [], |
| | | width: 320, |
| | | limit: 500, |
| | | cellMinWidth: 50, |
| | | cols: [[ |
| | | {field: 'matNo', align: 'center', title: '物料编码'}, |
| | | {field: 'mnemonic', align: 'center', title: '生产单号'}, |
| | | {field: 'matNo', align: 'center', title: '物料编码',event: 'modify',}, |
| | | {field: 'mnemonic', align: 'center', title: '生产单号',event: 'modify',}, |
| | | { |
| | | fixed: 'right', |
| | | align: 'center', |
| | | field: 'count', |
| | | title: '数量', |
| | |
| | | style: 'cursor: pointer;color: blue', |
| | | width: 50 |
| | | }, |
| | | // {field: 'matName', align: 'center', title: '物料名称'} |
| | | {field: 'matName', align: 'center', title: '物料名称',event: 'modify',} |
| | | ]], |
| | | done: function (res, curr, count) { |
| | | } |
| | |
| | | if (isEmpty(el.value)) { |
| | | return; |
| | | } |
| | | // var billNo = el.value.split(",")[0].split("=")[1]; |
| | | var billNo = el.value; |
| | | if (billNo.indexOf('=') > -1) { |
| | | billNo = billNo.split(",")[0].split("=")[1]; |
| | | } |
| | | if (isEmpty(billNo)) { |
| | | return; |
| | | } |
| | |
| | | <div class="layui-btn-container"> |
| | | <button type="button" id="reset-btn" class="layui-btn layui-btn-primary" onclick="reset()">重置</button> |
| | | <button type="button" id="comb-btn" class="layui-btn layui-btn-normal " onclick="comb()" |
| | | style="margin-left: 20px">组托 |
| | | style="margin-left: 20px">入库 |
| | | </button> |
| | | <button type="button" id="retrun-btn" class="layui-btn layui-btn-primary " onclick="back()" |
| | | style="margin-left: 20px">返回 |
| | |
| | | tableIns = table.render({ |
| | | elem: '#chooseData', |
| | | data: [], |
| | | width: 320, |
| | | limit: 500, |
| | | cellMinWidth: 50, |
| | | cols: [[ |
| | | {fixed: 'left', align: 'center', field: 'count', title: '数量', style: 'color: blue', width: 50}, |
| | | {field: 'matNo', align: 'center', title: '物料编码'}, |
| | | {field: 'matName', align: 'center', title: '物料名称'} |
| | | {field: 'mnemonic', align: 'center', title: '生产单号'}, |
| | | { field: 'count', align: 'center', title: '数量', style: 'color: blue', width: 50}, |
| | | {field: 'matName', align: 'center', title: '物料名称'}, |
| | | |
| | | ]], |
| | | done: function (res, curr, count) { |
| | | } |
| | |
| | | type: 2, |
| | | title: '提取物料', |
| | | shade: [0.3, '#000'], |
| | | area: ['90%', '80%'], |
| | | area: ['90%', '90%'], |
| | | content: 'matQuery.html', |
| | | success: function (layero, index) { |
| | | $('.layui-layer-title').css('font-size', '16px'); |
| | |
| | | if (isEmpty(billNo)) { |
| | | return; |
| | | } |
| | | if (billNo.indexOf('=') > -1) { |
| | | billNo = billNo.split(",")[0].split("=")[1]; |
| | | } |
| | | // 赋值前清空表格 |
| | | matData = []; |
| | | tableIns.reload({data: matData}); |
| | |
| | | function findCode(el, type) { |
| | | warehouseBar = $('#uuid').val(); |
| | | billNo = $("#billNo").val(); |
| | | if (billNo && billNo != '' && billNo.indexOf('=') > -1) { |
| | | billNo = billNo.split(",")[0].split("=")[1]; |
| | | } |
| | | switch (type) { |
| | | case 'uuid': |
| | | // exist('uuid', 'locArea'); |
| | |
| | | </tr> |
| | | </table> |
| | | </div> |
| | | <div class="form-item"> |
| | | <table style="display: inline"> |
| | | <tr> |
| | | <td> |
| | | <span style="width: 35px; margin-right: 5px">单号</span> |
| | | </td> |
| | | <td style="text-align: left"> |
| | | <input id="mnemonic" type="text" autocomplete="off"> |
| | | </td> |
| | | </tr> |
| | | </table> |
| | | </div> |
| | | <!--<div class="form-item">--> |
| | | <!--<span>单位</span>--> |
| | | <!--<input id="str1" type="text" disabled="disabled">--> |
| | |
| | | var data = { |
| | | matNo: $('#matNo').val(), |
| | | matName: $('#matName').val(), |
| | | count: countDom.val() |
| | | count: countDom.val(), |
| | | mnemonic: $("#mnemonic").val() |
| | | }; |
| | | parent.addTableData(data); |
| | | parent.layer.close(parent.matCodeLayerIdx); |
| | |
| | | type: 2, |
| | | title: '物料', |
| | | shade: [0.3,'#000'], |
| | | area: ['90%', '80%'], |
| | | area: ['90%', '90%'], |
| | | content: 'matQuery.html', |
| | | success: function(layero, index){ |
| | | $('.layui-layer-title').css('font-size', '16px'); |
| | |
| | | if (isEmpty(el.value)) { |
| | | return; |
| | | } |
| | | |
| | | find(null, null, el.value); |
| | | } |
| | | |
| | | function find(locNo, matNo, billNo) { |
| | | if (billNo.indexOf('=') > -1) { |
| | | billNo = billNo.split(",")[0].split("=")[1]; |
| | | } |
| | | $.ajax({ |
| | | url: baseUrl + "/mobile/locDetl", |
| | | headers: {'token': localStorage.getItem('token')}, |