| | |
| | | } |
| | | }) |
| | | }, |
| | | getXJByOrder() { |
| | | this.$post({ |
| | | url: "/MesQaItemsDetect02/FindXJByOrderNo", |
| | | data: { |
| | | orderNo: this.orderNo |
| | | } |
| | | }).then(res => { |
| | | let xjList = res.data.tbBillList; |
| | | if (Array.isArray(xjList) && xjList.length > 0) { |
| | | let latest = xjList[0]; |
| | | this.lastPatrolCheck = latest.fcheckDate; |
| | | this.patrolConclusion = latest.fcheckResu; |
| | | this.patrolInspector = latest.checkUser; |
| | | this.patrolCount = xjList.length; |
| | | } else if (xjList) { |
| | | this.lastPatrolCheck = xjList.fcheckDate; |
| | | this.patrolConclusion = xjList.fcheckResu; |
| | | this.patrolInspector = xjList.checkUser; |
| | | this.patrolCount = 1; |
| | | } else { |
| | | this.lastPatrolCheck = ''; |
| | | this.patrolConclusion = ''; |
| | | this.patrolInspector = ''; |
| | | this.patrolCount = 0; |
| | | } |
| | | }) |
| | | } |
| | | getXJByOrder() { |
| | | this.$post({ |
| | | url: "/MesQaItemsDetect02/FindXJByOrderNo", |
| | | data: { |
| | | orderNo: this.orderNo |
| | | } |
| | | }).then(res => { |
| | | let xjList = res.data.tbBillList; |
| | | if (Array.isArray(xjList) && xjList.length > 0) { |
| | | let latest = xjList[0]; |
| | | this.lastPatrolCheck = latest.fcheckDate; |
| | | this.patrolConclusion = latest.fcheckResu; |
| | | this.patrolInspector = latest.checkUser; |
| | | this.patrolCount = latest.xjCount ?? xjList.length; |
| | | } else if (xjList) { |
| | | this.lastPatrolCheck = xjList.fcheckDate; |
| | | this.patrolConclusion = xjList.fcheckResu; |
| | | this.patrolInspector = xjList.checkUser; |
| | | this.patrolCount = xjList.xjCount ?? 1; |
| | | } else { |
| | | this.lastPatrolCheck = ''; |
| | | this.patrolConclusion = ''; |
| | | this.patrolInspector = ''; |
| | | this.patrolCount = 0; |
| | | } |
| | | }) |
| | | } |
| | | } |
| | | } |
| | | </script> |