|  |  | 
 |  |  |     var cols = [ | 
 |  |  |         {type: 'checkbox'} | 
 |  |  |         ,{field: 'tagId$', align: 'center',title: '归类', templet: '#tagTpl'} | 
 |  |  |         ,{field: 'store_max', align: 'center',title: '库存上限'} | 
 |  |  |         ,{field: 'store_min', align: 'center',title: '库存下限'} | 
 |  |  |         ,{field: 'store_max_date', align: 'center',title: '库龄上限(天)'} | 
 |  |  |     ]; | 
 |  |  |     cols.push.apply(cols, matCols); | 
 |  |  |     cols.push( | 
 |  |  |         {fixed: 'right', title:'操作', align: 'center', toolbar: '#operate', width:150} | 
 |  |  |         ) | 
 |  |  |     ) | 
 |  |  |     return cols; | 
 |  |  | } | 
 |  |  |  | 
 |  |  | 
 |  |  |                 } | 
 |  |  |                 // 表单提交事件 | 
 |  |  |                 form.on('submit(editSubmit)', function (data) { | 
 |  |  |                     console.log(data) | 
 |  |  |                     data.field.tagId = insXmSel.getValue('valueStr'); | 
 |  |  |                     if (isEmpty(data.field.tagId)) { | 
 |  |  |                         layer.msg('分类不能为空', {icon: 2}); |