黄千龙
2023-05-26 7986d6aaf7e235f2f5a7dac7345f97a76ac00b97
force-app/main/default/lwc/lexQISIntakeuniversalcode/lexQISIntakeuniversalcode.js
@@ -1,8 +1,5 @@
import { LightningElement,wire,track,api} from 'lwc';
import { CurrentPageReference } from "lightning/navigation";
import { CloseActionScreenEvent } from 'lightning/actions';
import { NavigationMixin } from 'lightning/navigation';
import { ShowToastEvent } from 'lightning/platformShowToastEvent';
import init  from '@salesforce/apex/QISReportController.initForlexQISIntakeuniversalcodeButton';
import sqlForPAE  from '@salesforce/apex/QISReportController.sqlForPAE1';
@@ -41,11 +38,11 @@
                   qisReportId: this.qisReportId
                  }).then(result => {
                  if (result!=null) {
                     this.paeId = result.PAEid;
                     console.log('result='+this.paeId);
                     this.paeId = result.pAEid;
                     console.log('result2='+this.paeId);
                  }   
                  var url = '';
               if (result!=null&&result.length>0){
               if (result!=null&& this.paeId!=null){
                  url = "/apex/PAEDecisionRecord?Id="+this.paeId+"&QISReportId="+this.qisReportId +"&RecordTypeIds="+RecordTypeId ;
               } else {
                  url = "/apex/PAEDecisionRecord?QISReportId="+this.qisReportId +"&RecordTypeIds="+RecordTypeId;