| | |
| | | var layDate = layui.laydate; |
| | | var form = layui.form; |
| | | |
| | | |
| | | |
| | | tableIns = table.render({ |
| | | elem: '#chooseData', |
| | | data: [], |
| | |
| | | done: function (res, curr, count) { |
| | | $('td[data-field=count] div').html(initCountVal); |
| | | setMatCodeData(res.data); |
| | | limit(); |
| | | } |
| | | }); |
| | | |
| | | |
| | | |
| | | // 页面修改 |
| | | table.on('edit(chooseData)', function (obj) { |
| | | if (!isNaN(obj.value)) { |
| | | updateMatCodeData(obj.data.matNo, Number(obj.value)); |
| | | tableIns.reload({data: matCodeData,done:function (res) { |
| | | limit(); |
| | | // 覆盖render方法的done |
| | | }}); |
| | | } else { |
| | |
| | | } |
| | | } |
| | | tableIns.reload({data: matCodeData,done:function (res) { |
| | | limit(); |
| | | // 覆盖render方法的done |
| | | }}); |
| | | break; |
| | |
| | | layer.closeAll(); |
| | | layer.msg(res.msg); |
| | | matCodeData = []; |
| | | tableIns.reload({data: matCodeData,done:function (res) {}}); |
| | | tableIns.reload({data: matCodeData,done:function (res) { limit();}}); |
| | | } else if (res.code === 403){ |
| | | top.location.href = baseUrl+"/"; |
| | | }else { |
| | |
| | | // 提取物料 |
| | | var matCodeLayerIdx; |
| | | function getMat() { |
| | | // tableIns.reload({data: []}); |
| | | matCodeLayerIdx = layer.open({ |
| | | type: 2, |
| | | title: '提取物料', |