| | |
| | | } |
| | | } |
| | | |
| | | /** |
| | | * 渲染表格 |
| | | */ |
| | | function renderTableCheckItem() { |
| | | // 清空数据 |
| | | $("#tableCheckItem").empty(); |
| | | table.render({ |
| | | elem: '#tableCheckItem', |
| | | data: curCheckItems, |
| | | page: false, |
| | | even: true, |
| | | cols: [[{ |
| | | field: 'standardName', |
| | | title: '检验项目', |
| | | align: 'center', |
| | | width: '13%' |
| | | }, { |
| | | field: 'value', |
| | | title: '检验值', |
| | | align: 'center', |
| | | width: '9%' |
| | | }, { |
| | | field: 'operaSymbolValue', |
| | | title: '标准值', |
| | | align: 'center', |
| | | width: '10%' |
| | | }, { |
| | | field: 'unit', |
| | | title: '单位', |
| | | align: 'center', |
| | | width: '10%' |
| | | }, { |
| | | field: 'deNum', |
| | | title: '扣重', |
| | | align: 'center', |
| | | width: '9%' |
| | | }, { |
| | | field: 'addNum', |
| | | title: '增重', |
| | | align: 'center', |
| | | width: '9%' |
| | | }, { |
| | | field: 'dePrice', |
| | | title: '扣价', |
| | | align: 'center', |
| | | width: '9%' |
| | | }, { |
| | | field: 'addPrice', |
| | | title: '增价', |
| | | align: 'center', |
| | | width: '9%' |
| | | }, { |
| | | field: 'result', |
| | | title: '检验结果', |
| | | align: 'center', |
| | | width: '10%', |
| | | templet: function (item) { |
| | | if (item.result == null) { |
| | | return ""; |
| | | } |
| | | if (item.result == '0') { |
| | | return "不合格"; |
| | | } |
| | | if (item.result == '1') { |
| | | return "合格"; |
| | | } |
| | | } |
| | | }, { |
| | | field: 'remarks', |
| | | title: '备注说明', |
| | | align: 'center' |
| | | }]] |
| | | }); |
| | | |
| | | $("thead tr").css({ |
| | | "border-bottom": "2px solid #53adce", |
| | | "background": "#eff4f6" |
| | | }); |
| | | } |
| | | |
| | | function renderTableProgressData(list) { |
| | | // 清空数据 |
| | | $("#tableListProgressData").empty(); |
| | |
| | | }, { |
| | | field: 'progress', |
| | | title: '流程进度', |
| | | align: 'center' |
| | | align: 'center', |
| | | style: 'font-weight: bold', |
| | | templet: function (item) { |
| | | return INOUT_PROGRESS_MSG(item.progress); |
| | | } |
| | | }, { |
| | | fixed: 'right', |
| | | title: '选择操作', |