|  |  |  | 
|---|
|  |  |  | toolbar: '#toolbar', | 
|---|
|  |  |  | cellMinWidth: 50, | 
|---|
|  |  |  | cols: [[ | 
|---|
|  |  |  | {type: 'checkbox'} | 
|---|
|  |  |  | // {type: 'checkbox'} | 
|---|
|  |  |  | //            ,{field: 'id', title: 'ID', sort: true,align: 'center', fixed: 'left', width: 80} | 
|---|
|  |  |  | ,{field: 'id', align: 'center',title: '编号'} | 
|---|
|  |  |  | ,{field: 'barcode', align: 'center',title: '托盘码'} | 
|---|
|  |  |  | //             ,{field: 'id', align: 'center',title: '编号', sort: true} | 
|---|
|  |  |  | {field: 'barcode', align: 'center',title: '托盘码'} | 
|---|
|  |  |  | ,{field: 'matnr', align: 'center',title: '物料编码'} | 
|---|
|  |  |  | ,{field: 'maktx', align: 'center',title: '物料描述'} | 
|---|
|  |  |  | ,{field: 'anfme', align: 'center',title: '数量'} | 
|---|
|  |  |  | ,{field: 'unit', align: 'center',title: '单位'} | 
|---|
|  |  |  | ,{field: 'status', align: 'center',title: '状态'} | 
|---|
|  |  |  | ,{field: 'memo', align: 'center',title: '备注'} | 
|---|
|  |  |  | ,{field: 'status', align: 'center',title: '状态', templet:function(row){ | 
|---|
|  |  |  | var html = "<input value='status' type='checkbox' lay-skin='switch' lay-text='待入库|已启动' lay-filter='tableCheckbox' disabled='disabled' table-index='"+row.LAY_TABLE_INDEX+"'"; | 
|---|
|  |  |  | if(row.status !== 'Y'){html += " checked ";} | 
|---|
|  |  |  | html += ">"; | 
|---|
|  |  |  | return html; | 
|---|
|  |  |  | }} | 
|---|
|  |  |  | ,{field: 'memo', align: 'center',title: '备注',hide: true} | 
|---|
|  |  |  | ,{field: 'modiTime$', align: 'center',title: '修改时间', hide: true} | 
|---|
|  |  |  | ,{field: 'modiUser$', align: 'center',title: '修改人员', hide: true} | 
|---|
|  |  |  |  | 
|---|
|  |  |  | 
|---|
|  |  |  | elem: '#appeTime\\$', | 
|---|
|  |  |  | type: 'datetime' | 
|---|
|  |  |  | }); | 
|---|
|  |  |  |  | 
|---|
|  |  |  | layDate.render({ | 
|---|
|  |  |  | elem: '.layui-laydate-range' | 
|---|
|  |  |  | ,type: 'datetime' | 
|---|
|  |  |  | ,range: true | 
|---|
|  |  |  | }); | 
|---|
|  |  |  |  | 
|---|
|  |  |  | }); | 
|---|
|  |  |  |  | 
|---|