| | |
| | | padding: 6px 10px; |
| | | } |
| | | #code { |
| | | width: 70%; |
| | | width: 75%; |
| | | height: 30px; |
| | | margin-right: 0; |
| | | } |
| | | header button { |
| | | height: 20px; |
| | |
| | | } |
| | | |
| | | /* 主体 */ |
| | | main { |
| | | height: 170px; |
| | | overflow: auto; |
| | | } |
| | | .layui-table, .layui-table-view { |
| | | margin: 0; |
| | | } |
| | |
| | | padding: 0; |
| | | } |
| | | .layui-table-cell { |
| | | height: 22px; |
| | | line-height: 22px; |
| | | padding: 0; |
| | | } |
| | | .layui-table-grid-down { |
| | |
| | | <!-- 尾部 --> |
| | | <footer> |
| | | <div class="layui-btn-container"> |
| | | <button type="button" class="layui-btn layui-btn-xs">重置</button> |
| | | <button type="button" class="layui-btn layui-btn-normal layui-btn-xs">组托</button> |
| | | <button type="button" class="layui-btn layui-btn-xs" onclick="reset()">重置</button> |
| | | <button type="button" class="layui-btn layui-btn-normal layui-btn-xs" onclick="comb">组托</button> |
| | | </div> |
| | | </footer> |
| | | </body> |
| | |
| | | tableIns = table.render({ |
| | | elem: '#chooseData', |
| | | data: [], |
| | | even: true, |
| | | limit: 500, |
| | | cellMinWidth: 50, |
| | | cols: [[ |
| | | {fixed: 'left', align: 'center', field: 'count', title: '量', style:'color: blue', width:20}, |
| | | {field: 'matNo', align: 'center', title: '物料编码'}, |
| | | {field: 'matName', align: 'center', title: '物料名称'}, |
| | | {fixed: 'left', field: 'count', title: '数量', align: 'center', style:'color: blue', width:40} |
| | | {field: 'matName', align: 'center', title: '物料名称'} |
| | | ]], |
| | | done: function (res, curr, count) { |
| | | } |
| | |
| | | } |
| | | tableIns.reload({data: matData}); |
| | | } |
| | | |
| | | // 重置 |
| | | function reset() { |
| | | $('#code').val(""); |
| | | matData = []; |
| | | tableIns.reload({data: matData}); |
| | | } |
| | | |
| | | // 组托 |
| | | function comb() { |
| | | |
| | | } |
| | | </script> |
| | | </html> |
| | |
| | | <div class="form-item"> |
| | | <span style="vertical-align: middle">数量</span> |
| | | <div class="number-tool" style="vertical-align: middle"> |
| | | <button onclick="add()">+</button><input id="count" type="number"><button onclick="reduce()">-</button> |
| | | <button onclick="reduce()">-</button><input id="count" type="number"><button onclick="add()">+</button> |
| | | </div> |
| | | </div> |
| | | <button id="confirm" onclick="confirm()">提取</button> |