| | |
| | | table.render({ |
| | | elem: '#stoPreTab', |
| | | data: res.data, |
| | | height: 432, |
| | | height: 450, |
| | | page: false, |
| | | limit: Number.MAX_VALUE, |
| | | cellMinWidth: 100, |
| | |
| | | {field: 'title', title: '商品', align: 'center', width: 350}, |
| | | {field: 'batch', title: '批号', merge: ['title'], align: 'center'}, |
| | | // {field: 'anfme', title: '总数量', merge: ['title'], align: 'center', style: 'font-weight: bold', width: 90}, |
| | | {field: 'locNo', title: '货位', align: 'center', width: 90}, |
| | | {field: 'anfme', title: '数量', align: 'center', width: 90, style: 'font-weight: bold'}, |
| | | {field: 'locNo', title: '货位', align: 'center', width: 100, templet: '#locNoTpl'}, |
| | | {field: 'staNo', align: 'center', title: '出库站', merge: ['locNo'], templet: '#tbBasicTbStaNos'}, |
| | | // {field: 'remQty', title: '余量', align: 'center', width: 80}, |
| | | // {field: 'total', title: '总量', align: 'center', width: 90}, |
| | | ]], |
| | | done: function () { |
| | | done: function (res) { |
| | | tableMerge.render(this); |
| | | $('.layui-table-body.layui-table-main').css("overflow", "auto") |
| | | $('.layui-table-body.layui-table-main').css("overflow", "auto"); |
| | | |
| | | } |
| | | }); |
| | | |
| | |
| | | //return false 开启该代码可禁止点击该按钮关闭 |
| | | } |
| | | }); |
| | | form.on('select(tbBasicTbStaNos)', function (data) { |
| | | alert("ajax请求:" + JSON.stringify(data)) |
| | | return false; |
| | | }); |
| | | } else if (res.code === 403){ |
| | | top.location.href = baseUrl+"/"; |
| | | } else { |