| | |
| | | var cols = [ |
| | | {field: 'matnr', align: 'center', title: '物料号', sort: true} |
| | | , {field: 'maktx', align: 'center', title: '物料名称', sort: true} |
| | | , {field: 'specs', align: 'center', title: '规格'} |
| | | , {field: 'batch', align: 'center', title: '批号', width: 300, sort: true} |
| | | , {field: 'storeMax', align: 'center', title: '数量上限', sort: true} |
| | | , {field: 'storeMin', align: 'center', title: '数量下限', sort: true} |
| | | , { |
| | | field: 'warnStatus', align: 'center', title: '状态', sort: true, templet: function (d) { |
| | | var colorMap = { |
| | | '未设置': '#999999', |
| | | '正常': '#5cb85c', |
| | | '超上限': '#d9534f', |
| | | '超下限': '#337ab7' |
| | | }; |
| | | var text = d.warnStatus || ''; |
| | | var color = colorMap[text] || '#333333'; |
| | | return '<span style="color:' + color + ';">' + text + '</span>'; |
| | | } |
| | | } |
| | | // , {field: 'storeMaxDate', align: 'center', title: '库龄上限', sort: true} |
| | | , {field: 'anfme', align: 'center', title: '实际数量'} |
| | | // , {field: 'nowTime', align: 'center', title: '实际库龄'} |
| | |
| | | form.on('submit(reset)', function (data) { |
| | | pageCurr = 1; |
| | | clearFormVal($('#search-box')); |
| | | form.render('select'); |
| | | tableReload(false); |
| | | }); |
| | | |
| | |
| | | type: 'datetime' |
| | | }); |
| | | |
| | | form.render('select'); |
| | | |
| | | }); |
| | | |