| | |
| | | mode |
| | | } = this.bindData |
| | | Object.assign(this.checkData, data, JSON.parse(JSON.stringify(this.bindData))) |
| | | this.checkData.HStatus = this.checkData.HStatus ? true : false |
| | | // 前段获取HStatus时,0和1 的状态均初始化为 true,2状态初始化为false |
| | | if(typeof this.checkData.HStatus == 'number'){ |
| | | this.checkData.HStatus = this.checkData.HStatus <= 1 ? true : false |
| | | } |
| | | this.checkData.HResult2 = this.checkData.HResult == 1 ? '合格' : '不合格' |
| | | this.mode = mode |
| | | // 判断是否有缓存数据或者缓存数据是否与样本数一致 |
| | |
| | | } else { |
| | | this.CheckResultClass = 'disabled' |
| | | } |
| | | // 同步父组件的对应检验项目的结论 |
| | | this.$emit("syncInspectResult", { |
| | | HResult2: newVal, |
| | | bindKey: this.bindKey |
| | | }) |
| | | }, |
| | | |
| | | }, |
| | | computed: { |
| | | AnalysisMethodStatus: { |
| | | get() { |
| | | console.log('this.checkData.HAnalysisMethod: ', this.checkData.HAnalysisMethod); |
| | | if (this.checkData.HAnalysisMethod == 1) { |
| | | return 1 |
| | | } else if (this.checkData.HAnalysisMethod == 2) { |
| | |
| | | get(){ |
| | | switch (this.mode){ |
| | | case 1: return { |
| | | // 首检 |
| | | setUrl: '/QC_FirstPieceCheckBill/set_SaveValue', |
| | | getUrl: '/QC_ValueTable/getValueList' |
| | | } |
| | | case 2: return { |
| | | // 巡检 |
| | | setUrl: '/QC_PatrolProcCheckOtherBill/set_SaveValue', |
| | | getUrl: '/QC_PatrolProcCheckOtherBill/getValueList' |
| | | } |
| | | case 3: return { |
| | | // 生产入库检 |
| | | setUrl: '/QC_LastPieceCheckBill/set_SaveValue', |
| | | getUrl: '/QC_LastPieceCheckBill_ValueTable/getValueList' |
| | | } |
| | | case 4:return{ |
| | | // 出厂检 |
| | | setUrl: '/QC_OutCompCheckBill/set_SaveValue', |
| | | getUrl: '/QC_OutCompCheckBill_ValueTable/getValueList' |
| | | } |
| | | case 5:return{ |
| | | // 来料检 |
| | | setUrl: '/QC_POStockInCheckBill/set_SaveValue', |
| | | getUrl: '/QC_POStockInCheckBill_ValueTable/getValueList' |
| | | } |
| | | case 6: return { |
| | | // 末检 |
| | | } |
| | | } |
| | | } |
| | | } |
| | | }, |
| | | |
| | | beforeDestroy() { |
| | | // 注销前,提交数据的检验值 |
| | | this.set_SaveValue() |