From 626f3c3bb25e204568019e8d568e2d7547d1037a Mon Sep 17 00:00:00 2001
From: 黄千龙 <huangqianlong@prec-tech.com>
Date: 星期三, 09 八月 2023 10:54:08 +0800
Subject: [PATCH] 20230809修改伟意按钮同步
---
force-app/main/default/lwc/lexQISIntakeuniversalcode/lexQISIntakeuniversalcode.js | 47 +++++++++++++++++++++++++----------------------
1 files changed, 25 insertions(+), 22 deletions(-)
diff --git a/force-app/main/default/lwc/lexQISIntakeuniversalcode/lexQISIntakeuniversalcode.js b/force-app/main/default/lwc/lexQISIntakeuniversalcode/lexQISIntakeuniversalcode.js
index 5ec60dc..79b95fe 100644
--- a/force-app/main/default/lwc/lexQISIntakeuniversalcode/lexQISIntakeuniversalcode.js
+++ b/force-app/main/default/lwc/lexQISIntakeuniversalcode/lexQISIntakeuniversalcode.js
@@ -1,16 +1,19 @@
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';
-
+/*
+ * @Description: Intake universal code缂栬緫
+ * @Author: hql
+ * @Date: 2023-07-12 09:45:19
+ * @LastEditTime: 2023-07-12 15:44:33
+ * @LastEditors:
+ */
export default class lexQISIntakeuniversalcode extends LightningElement {
- @api recordId;
- IsLoading = true;
- qisReportId;
- paeId;
+ @api recordId;
+ IsLoading = true;
+ qisReportId;
+ paeId;
@wire(CurrentPageReference)
getStateParameters(currentPageReference) {
@@ -38,21 +41,21 @@
this.qisReportId = result.Id;
var RecordTypeId = "ASRCDecision";
sqlForPAE({
- qisReportId: this.qisReportId
- }).then(result => {
- if (result!=null) {
- this.paeId = result.pAEid;
- console.log('result2='+this.paeId);
- }
- var url = '';
- 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;
- }
- console.log('url='+url);
+ qisReportId: this.qisReportId
+ }).then(result => {
+ if (result!=null) {
+ this.paeId = result.pAEid;
+ console.log('result2='+this.paeId);
+ }
+ var url = '';
+ 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;
+ }
+ console.log('url='+url);
window.location.replace(url);
- });
+ });
}
}).catch(error => {
console.log('error='+error);
--
Gitblit v1.9.1