| | |
| | | <!-- </button>--> |
| | | <!-- </div>--> |
| | | </header> |
| | | |
| | | <!-- 主体 --> |
| | | <main> |
| | | <div class="layui-btn-group demoTable"> |
| | | <button class="layui-btn" data-type="getCheckData">提取</button> |
| | | </div> |
| | | <table class="layui-table" id="chooseData" lay-filter="chooseData"></table> |
| | | </main> |
| | | |
| | | <!-- 尾部 --> |
| | | <footer> |
| | | <div class="layui-btn-container"> |
| | |
| | | var layer = layui.layer; |
| | | var form = layui.form; |
| | | |
| | | var $$ = layui.$, active = { |
| | | getCheckData: function(){ //获取选中数据 |
| | | var checkStatus = table.checkStatus('chooseData') |
| | | ,data = checkStatus.data; |
| | | matData = data |
| | | tableIns.reload({data: matData}); |
| | | } |
| | | }; |
| | | $$('.demoTable .layui-btn').on('click', function(){ |
| | | var type = $(this).data('type'); |
| | | active[type] ? active[type].call(this) : ''; |
| | | }); |
| | | document.getElementById("billNo").focus(); |
| | | |
| | | tableIns = table.render({ |
| | |
| | | limit: 500, |
| | | cellMinWidth: 50, |
| | | cols: [[ |
| | | {type: 'checkbox'}, |
| | | {field: 'matNo', align: 'center', title: '物料编码', event: 'modify'}, |
| | | {field: 'mnemonic', align: 'center', title: '生产单号', event: 'modify'}, |
| | | {field: 'count', align: 'center', title: '数量', style: 'color: blue', width: 50, event: 'modify'}, |
| | |
| | | } |
| | | }); |
| | | |
| | | |
| | | var areaType = getQueryVariable('areaType'); |
| | | // 获取仓库下拉 |
| | | $.ajax({ |
| | |
| | | }); |
| | | }); |
| | | |
| | | |
| | | /************************************* 数量 ****************************************/ |
| | | var countDom = $('#count'); |
| | | var minCount = 1; |