| | |
| | | QISReplyDay; |
| | | RCproblemnotfound; |
| | | type; |
| | | err; |
| | | @wire(CurrentPageReference) |
| | | getStateParameters(currentPageReference) { |
| | | console.log(111); |
| | |
| | | }).then(result => { |
| | | this.IsLoading = false; |
| | | this.qisReportId = result.Id; |
| | | this.qisStatus = result.QIStatus; |
| | | this.OSHstaff = result.OSHstaff; |
| | | this.OSHstaffEmail = result.OSHstaffEmail; |
| | | this.CancelQISReason = result.CancelQISReason; |
| | | this.Rcid = result.RCid; |
| | | this.RCinspectionDate = result.RCinspectionDate; |
| | | this.QISReplyDay = result.QISReplyDay; |
| | | this.RCproblemnotfound = result.RCproblemnotfound; |
| | | console.log('this.qisStatus='+this.qisStatus); |
| | | console.log('this.CancelQISReason='+this.CancelQISReason); |
| | | console.log('this.Rcid='+this.Rcid); |
| | | console.log('this.RCproblemnotfound='+this.RCproblemnotfound); |
| | | console.log('this.RCinspectionDate='+this.RCinspectionDate); |
| | | this.qisStatus = result.qIStatus; |
| | | this.OSHstaff = result.oSHstaff; |
| | | this.OSHstaffEmail = result.oSHstaffEmail; |
| | | this.CancelQISReason = result.cancelQISReason; |
| | | this.Rcid = result.rCid; |
| | | this.RCinspectionDate = result.rCinspectionDate; |
| | | this.QISReplyDay = result.qISReplyDay; |
| | | this.RCproblemnotfound = result.rCproblemnotfound; |
| | | if (this.qisStatus!='RC检测中') { |
| | | const evt = new ShowToastEvent({ |
| | | title : '已经提交审批', |
| | |
| | | oldQIStatus: this.qisStatus |
| | | }).then(result =>{ |
| | | console.log('result'+result); |
| | | this.err = result; |
| | | if (result!='成功') { |
| | | const evt = new ShowToastEvent({ |
| | | title : '更新失败', |
| | | message: result, |
| | | message: this.err, |
| | | variant: 'error' |
| | | }); |
| | | this.dispatchEvent(evt); |