| | |
| | | var cols = [ |
| | | {type: 'checkbox'} |
| | | ,{field: 'tagId$', align: 'center',title: '归类', templet: '#tagTpl'} |
| | | ,{field: 'storeMax', align: 'center',title: '库存上限',width: 90} |
| | | ,{field: 'storeMin', align: 'center',title: '库存下限',width: 90} |
| | | ,{field: 'storeMaxDate', align: 'center',title: '库龄上限(天)',width: 90} |
| | | ,{field: 'status$', align: 'center',title: '状态'} |
| | | ]; |
| | | cols.push.apply(cols, matCols); |
| | | cols.push( |
| | | {fixed: 'right', title:'操作', align: 'center', toolbar: '#operate', width:150} |
| | | ) |
| | | ) |
| | | return cols; |
| | | } |
| | | |
| | |
| | | } else { |
| | | res.data[i]["barcodeUrl"]=baseUrl+"/mac/code/auth?type=2¶m="+res.data[i].matnr; |
| | | } |
| | | res.data[i].date = dateToStr(new Date()); |
| | | } |
| | | var tpl = templateDom.html(); |
| | | var template = Handlebars.compile(tpl); |