| | |
| | | :unPassDialog="unPassDialog"></UnPassDialog> |
| | | <OAProcess ref="OAProcess" |
| | | :OAProcess="OAProcess" |
| | | :isOldData="isOldData" |
| | | @closeOAProcess="closeOAProcess" |
| | | v-if="OAProcess"></OAProcess> |
| | | </div> |
| | |
| | | OAProcess, |
| | | UnPassDialog, |
| | | }, |
| | | dicts: ['material_prop_type','oa_workflow_state'], |
| | | dicts: ['material_prop_type','oa_workflow_state','categories_no_conformities','attribution_no_conformities'], |
| | | data() { |
| | | return { |
| | | lotBatchNo:null, |
| | |
| | | width: "100px", |
| | | dataType: "tag", |
| | | formatData: (params) => { |
| | | if (params == 0) { |
| | | return "一类不合格"; |
| | | } else if(params == 1) { |
| | | return "二类不合格"; |
| | | } else { |
| | | return null |
| | | } |
| | | let label = null |
| | | this.dict.type.categories_no_conformities.forEach(item=>{ |
| | | if(item.raw.dictValue==params){ |
| | | label = item.raw.dictLabel |
| | | } |
| | | }) |
| | | return label |
| | | }, |
| | | formatType: (params) => { |
| | | if (params == 0) { |
| | | return "warning"; |
| | | } else if(params == 1) { |
| | | return "info"; |
| | | } else { |
| | | return "null"; |
| | | } |
| | | let type = null |
| | | this.dict.type.categories_no_conformities.forEach(item=>{ |
| | | if(item.raw.dictValue==params){ |
| | | type = item.raw.listClass |
| | | } |
| | | }) |
| | | return type |
| | | }, |
| | | }, |
| | | { label: '供应商编码', prop: 'supplierId',width:'140' }, |
| | |
| | | width: "120px", |
| | | dataType: "tag", |
| | | formatData: (params) => { |
| | | if (params == 0) { |
| | | return "检测不合格"; |
| | | } else if(params == 1) { |
| | | return "生产反馈不合格"; |
| | | } else { |
| | | return null |
| | | } |
| | | let label = params |
| | | this.dict.type.attribution_no_conformities.forEach(item=>{ |
| | | if(item.raw.dictValue==params){ |
| | | label = item.raw.dictLabel |
| | | } |
| | | }) |
| | | return label |
| | | }, |
| | | formatType: (params) => { |
| | | if (params == 0) { |
| | | return "danger"; |
| | | } else if(params == 1) { |
| | | return "warning"; |
| | | } else { |
| | | return "null"; |
| | | } |
| | | let type = null |
| | | this.dict.type.attribution_no_conformities.forEach(item=>{ |
| | | if(item.raw.dictValue==params){ |
| | | type = item.raw.listClass |
| | | } |
| | | }) |
| | | return type |
| | | }, |
| | | }, |
| | | { label: '不合格描述', prop: 'unqualifiedDesc',width: "160px" }, |
| | |
| | | submitOALoading: false, // OA流程弹框提交按钮loading |
| | | deleteVisible: false, // OA流程删除弹框 |
| | | cancelOALoading: false, // OA流程删除弹框提交按钮loading |
| | | exportLoading:false |
| | | exportLoading:false, |
| | | isOldData: true,//是否是旧数据 |
| | | }; |
| | | }, |
| | | mounted() { |
| | |
| | | // 查看OA流程 |
| | | OAView (row) { |
| | | this.OAProcess = true |
| | | this.isOldData = row.isOldData |
| | | this.$nextTick(() => { |
| | | this.$refs.OAProcess.getInfo(row.handlerId,row?row.unqualifiedDesc:"") |
| | | }) |