123
chenjingwu
2024-04-15 a099abe8d0ff0699296c9bcc53ca00b98d167c73
force-app/main/default/lwc/lexRCSubmit/lexRCSubmit.js
@@ -21,6 +21,7 @@
   QISReplyDay;
   RCproblemnotfound;
   type;
    err;
   @wire(CurrentPageReference)
     getStateParameters(currentPageReference) {
             console.log(111);
@@ -43,19 +44,14 @@
        }).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 : '已经提交审批',
@@ -142,10 +138,11 @@
               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);