layui.use(['table','laydate', 'form'], function() { var table = layui.table; var $ = layui.jquery; var layer = layui.layer; var layDate = layui.laydate; var form = layui.form; tableIns = table.render({ elem: '#chooseData', even: true, cellMinWidth: 50, cols: [[ {type: 'checkbox', fixed: 'left'}, {field: 'matNo', align: 'center', title: '物料编码', sort: 'true'}, {field: 'barcode', align: 'center', title: '条码'}, {field: 'matName', align: 'center', title: '物料名称'}, {field: 'str1', align: 'center', title: '物料单位'}, {field: 'str2', align: 'center', title: '物料规格'}, {field: 'count', title: '数量', align: 'center', edit:'text', width: 100} ]], done: function (res, curr, count) { } }); }); // 提取物料 var matCodeLayerIdx; function getMat() { matCodeLayerIdx = layer.open({ type: 2, title: '库位物料', maxmin: true, area: [top.detailWidth, top.detailHeight], shadeClose: true, content: 'matQuery.html', success: function(layero, index){ } }); }