| | |
| | | }, |
| | | { |
| | | minWidth: '120', |
| | | prop: 'type', |
| | | label: '检验类型', |
| | | isTrue: true, |
| | | isSearch: true, |
| | | searchInfoType: 'select', |
| | | optList: () => { |
| | | return this.typeList |
| | | } |
| | | }, |
| | | { |
| | | minWidth: '120', |
| | | prop: 'code', |
| | | label: '原材料编码', |
| | | isTrue: true, |
| | |
| | | }, |
| | | insStateList: [{label:'全部',value:''},{label:'已检测',value:'1'},{label:'未检测',value:'0'}], |
| | | StateList: [{label:'全部',value:''},{label:'已合格',value:'1'},{label:'不合格',value:'0'}], |
| | | typeList: [{label:'全部',value:''},{label:'首检',value:'首检'},{label:'返检',value:'返检'}], |
| | | } |
| | | }, |
| | | components: { |
| | |
| | | this.$router.push({ |
| | | name: 'rawMaterialForm', |
| | | query: { |
| | | id: row == null ? null : row.id, |
| | | id: row == null ? null : row.id |
| | | }, |
| | | params: { |
| | | resultVal: row == null ? null : row.judgeState |
| | | } |
| | | }) |
| | |
| | | formatJudgeState(row, column, cellValue){ |
| | | if(cellValue != undefined && cellValue != null && cellValue != ''){ |
| | | if(cellValue == 0){ |
| | | console.log(cellValue); |
| | | return "<span style='color:#E84738;'>不合格</span>" |
| | | } |
| | | return "<span style='color:#34BD66;'>合格</span>" |