From 7986d6aaf7e235f2f5a7dac7345f97a76ac00b97 Mon Sep 17 00:00:00 2001
From: 黄千龙 <huangqianlong@prec-tech.com>
Date: 星期五, 26 五月 2023 12:23:09 +0800
Subject: [PATCH] 清理多余引用,去除多余update操作(跳转带默认值未完成)

---
 force-app/main/default/lwc/lexOSHRecieved/lexOSHRecieved.js                           |    8 --
 force-app/main/default/lwc/lexOSHSubmit/lexOSHSubmit.js                               |    9 ---
 force-app/main/default/lwc/lexOSHInspect/lexOSHInspect.js                             |    9 ---
 force-app/main/default/lwc/lexOCMSubmit/lexOCMSubmit.js                               |   10 ---
 force-app/main/default/lwc/lexPDFQISrequest/lexPDFQISrequest.js                       |    4 -
 force-app/main/default/lwc/lexQISIntakeuniversalcode/lexQISIntakeuniversalcode.js     |    3 -
 force-app/main/default/lwc/lexQISSC/lexQISSC.js                                       |    9 +-
 force-app/main/default/lwc/lexRCinspectioncompletedate/lexRCinspectioncompletedate.js |    8 --
 force-app/main/default/lwc/lexQISAgree/lexQISAgree.js                                 |    9 ---
 force-app/main/default/lwc/lexCreateRepair/lexCreateRepair.js                         |    3 -
 force-app/main/default/lwc/lexSendQIS/lexSendQIS.js                                   |    8 --
 force-app/main/default/lwc/lexRCCDScomplete/lexRCCDScomplete.js                       |    9 ---
 force-app/main/default/lwc/lexRCSubmit/lexRCSubmit.js                                 |    9 ---
 force-app/main/default/lwc/lexOCSMToReportLighting/lexOCSMToReportLighting.js         |    8 --
 force-app/main/default/lwc/lexQisUniversalFailureCode/lexQisUniversalFailureCode.js   |    3 -
 force-app/main/default/lwc/lexRCRecieved/lexRCRecieved.js                             |    8 --
 force-app/main/default/lwc/lexOCSMNoToReportLighting/lexOCSMNoToReportLighting.js     |    9 ---
 17 files changed, 4 insertions(+), 122 deletions(-)

diff --git a/force-app/main/default/lwc/lexCreateRepair/lexCreateRepair.js b/force-app/main/default/lwc/lexCreateRepair/lexCreateRepair.js
index 9ec0128..8cd7513 100644
--- a/force-app/main/default/lwc/lexCreateRepair/lexCreateRepair.js
+++ b/force-app/main/default/lwc/lexCreateRepair/lexCreateRepair.js
@@ -1,11 +1,8 @@
 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.initForlexCreateRepairButton';
-import UserInfo_Owner from '@salesforce/apex/TaskFeedbackController.UserInfo_Owner';
-import { updateRecord } from 'lightning/uiRecordApi';
 
 export default class lexCreateRepair extends LightningElement {
 	@api recordId;
diff --git a/force-app/main/default/lwc/lexOCMSubmit/lexOCMSubmit.js b/force-app/main/default/lwc/lexOCMSubmit/lexOCMSubmit.js
index 0bb19a0..2f48924 100644
--- a/force-app/main/default/lwc/lexOCMSubmit/lexOCMSubmit.js
+++ b/force-app/main/default/lwc/lexOCMSubmit/lexOCMSubmit.js
@@ -1,13 +1,10 @@
 import { LightningElement,wire,track,api} from 'lwc';
 import { CurrentPageReference } from "lightning/navigation";
 import { CloseActionScreenEvent } from 'lightning/actions';
-import { NavigationMixin } from 'lightning/navigation';
 import LightningConfirm from 'lightning/confirm';
 import { ShowToastEvent } from 'lightning/platformShowToastEvent';
 import init  from '@salesforce/apex/QISReportController.initForOCMSubmitButton';
 import updateQis  from '@salesforce/apex/QISReportController.updateQisWithOCM';
-import UserInfo_Owner from '@salesforce/apex/TaskFeedbackController.UserInfo_Owner';
-import { updateRecord } from 'lightning/uiRecordApi';
 
 export default class lexOCMSubmit extends LightningElement {
 	@api recordId;
@@ -96,11 +93,9 @@
                         this.updateQisSubmit();
                         if (this.isaohuiproduct) {
                             this.dispatchEvent(new CloseActionScreenEvent());
-                            this.updateRecordView(this.recordId);
                         }
                     }else{
                         this.dispatchEvent(new CloseActionScreenEvent());
-                        this.updateRecordView(this.recordId);
                         return;
                     }                 
                 });
@@ -110,11 +105,6 @@
             
         }); 
     }
-
-    updateRecordView(recordId) {
-        updateRecord({fields: { Id: recordId }});
-    }
-
     updateQisSubmit(){
         	updateQis({
         		 recordId: this.recordId
diff --git a/force-app/main/default/lwc/lexOCSMNoToReportLighting/lexOCSMNoToReportLighting.js b/force-app/main/default/lwc/lexOCSMNoToReportLighting/lexOCSMNoToReportLighting.js
index f013db3..31f4054 100644
--- a/force-app/main/default/lwc/lexOCSMNoToReportLighting/lexOCSMNoToReportLighting.js
+++ b/force-app/main/default/lwc/lexOCSMNoToReportLighting/lexOCSMNoToReportLighting.js
@@ -1,13 +1,10 @@
 import { LightningElement,wire,track,api} from 'lwc';
 import { CurrentPageReference } from "lightning/navigation";
 import { CloseActionScreenEvent } from 'lightning/actions';
-import { NavigationMixin } from 'lightning/navigation';
 import LightningConfirm from 'lightning/confirm';
 import { ShowToastEvent } from 'lightning/platformShowToastEvent';
 import init  from '@salesforce/apex/QISReportController.initForlexOCSMNoToReportLightingButton';
 import updateQis  from '@salesforce/apex/QISReportController.updateQisForlexOCSMNoToReportLighting';
-import UserInfo_Owner from '@salesforce/apex/TaskFeedbackController.UserInfo_Owner';
-import { updateRecord } from 'lightning/uiRecordApi';
 
 export default class lexOCSMNoToReportLighting extends LightningElement {
 	@api recordId;
@@ -83,11 +80,6 @@
             
         }); 
     }
-
-    updateRecordView(recordId) {
-        updateRecord({fields: { Id: recordId }});
-    }
-
     updateQisSubmit(){
         	updateQis({
         		 recordId: this.recordId
@@ -103,7 +95,6 @@
                         this.dispatchEvent(evt);
                     }
                 this.dispatchEvent(new CloseActionScreenEvent());
-                this.updateRecordView(this.recordId);
         		}).catch(error => {
             console.log('error='+error);
         }).finally(() => {
diff --git a/force-app/main/default/lwc/lexOCSMToReportLighting/lexOCSMToReportLighting.js b/force-app/main/default/lwc/lexOCSMToReportLighting/lexOCSMToReportLighting.js
index 87b1ad1..525dd7e 100644
--- a/force-app/main/default/lwc/lexOCSMToReportLighting/lexOCSMToReportLighting.js
+++ b/force-app/main/default/lwc/lexOCSMToReportLighting/lexOCSMToReportLighting.js
@@ -1,13 +1,10 @@
 import { LightningElement,wire,track,api} from 'lwc';
 import { CurrentPageReference } from "lightning/navigation";
 import { CloseActionScreenEvent } from 'lightning/actions';
-import { NavigationMixin } from 'lightning/navigation';
 import LightningConfirm from 'lightning/confirm';
 import { ShowToastEvent } from 'lightning/platformShowToastEvent';
 import init  from '@salesforce/apex/QISReportController.initForlexOCSMToReportLightingButton';
 import updateQis  from '@salesforce/apex/QISReportController.updateQisForlexOCSMToReportLighting';
-import UserInfo_Owner from '@salesforce/apex/TaskFeedbackController.UserInfo_Owner';
-import { updateRecord } from 'lightning/uiRecordApi';
 
 export default class lexOCSMToReportLighting extends LightningElement {
 	@api recordId;
@@ -69,10 +66,6 @@
 
         });
     }
-    updateRecordView(recordId) {
-        updateRecord({fields: { Id: recordId }});
-    }
-
     updateQisSubmit(){
         	updateQis({
         		 recordId: this.recordId
@@ -88,7 +81,6 @@
                         this.dispatchEvent(evt);
                     }
                 this.dispatchEvent(new CloseActionScreenEvent());
-                this.updateRecordView(this.recordId);
         		}).catch(error => {
             console.log('error='+error);
         }).finally(() => {
diff --git a/force-app/main/default/lwc/lexOSHInspect/lexOSHInspect.js b/force-app/main/default/lwc/lexOSHInspect/lexOSHInspect.js
index 55e5142..60bb2c0 100644
--- a/force-app/main/default/lwc/lexOSHInspect/lexOSHInspect.js
+++ b/force-app/main/default/lwc/lexOSHInspect/lexOSHInspect.js
@@ -1,12 +1,9 @@
 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.initForlexOSHInspectButton';
 import updateQis  from '@salesforce/apex/QISReportController.updateQisForlexOSHInspect';
-import UserInfo_Owner from '@salesforce/apex/TaskFeedbackController.UserInfo_Owner';
-import { updateRecord } from 'lightning/uiRecordApi';
 
 export default class lexOSHInspect extends LightningElement {
 	@api recordId;
@@ -70,11 +67,6 @@
             
         }); 
     }
-
-    updateRecordView(recordId) {
-        updateRecord({fields: { Id: recordId }});
-    }
-
     updateQisSubmit(){
         	updateQis({
         		 recordId: this.recordId
@@ -90,7 +82,6 @@
                         this.dispatchEvent(evt);
                     }
                 this.dispatchEvent(new CloseActionScreenEvent());
-                this.updateRecordView(this.recordId);
         		}).catch(error => {
             console.log('error='+error);
         }).finally(() => {
diff --git a/force-app/main/default/lwc/lexOSHRecieved/lexOSHRecieved.js b/force-app/main/default/lwc/lexOSHRecieved/lexOSHRecieved.js
index 9d05937..cf64145 100644
--- a/force-app/main/default/lwc/lexOSHRecieved/lexOSHRecieved.js
+++ b/force-app/main/default/lwc/lexOSHRecieved/lexOSHRecieved.js
@@ -1,9 +1,7 @@
 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 { updateRecord } from 'lightning/uiRecordApi';
 import init  from '@salesforce/apex/QISReportController.initForOSHRecievedButton';
 import updateQis  from '@salesforce/apex/QISReportController.updateQis';
 
@@ -54,11 +52,6 @@
             
         }); 
     }
-
-    updateRecordView(recordId) {
-        updateRecord({fields: { Id: recordId }});
-    }
-
     updateQisSubmit(){
         	updateQis({
         		 recordId: this.recordId
@@ -74,7 +67,6 @@
                         this.dispatchEvent(evt);
                     }
                 this.dispatchEvent(new CloseActionScreenEvent());
-                this.updateRecordView(this.recordId);
         		}).catch(error => {
             console.log('error='+error);
         }).finally(() => {
diff --git a/force-app/main/default/lwc/lexOSHSubmit/lexOSHSubmit.js b/force-app/main/default/lwc/lexOSHSubmit/lexOSHSubmit.js
index 7a3db4f..d1133f3 100644
--- a/force-app/main/default/lwc/lexOSHSubmit/lexOSHSubmit.js
+++ b/force-app/main/default/lwc/lexOSHSubmit/lexOSHSubmit.js
@@ -1,13 +1,10 @@
 import { LightningElement,wire,track,api} from 'lwc';
 import { CurrentPageReference } from "lightning/navigation";
 import { CloseActionScreenEvent } from 'lightning/actions';
-import { NavigationMixin } from 'lightning/navigation';
 import LightningConfirm from 'lightning/confirm';
 import { ShowToastEvent } from 'lightning/platformShowToastEvent';
 import init  from '@salesforce/apex/QISReportController.initForOSHSubmitButton';
 import updateQis  from '@salesforce/apex/QISReportController.updateQis1';
-import UserInfo_Owner from '@salesforce/apex/TaskFeedbackController.UserInfo_Owner';
-import { updateRecord } from 'lightning/uiRecordApi';
 export default class lexOSHSubmit extends LightningElement {
 	@api recordId;
 	IsLoading = true;
@@ -119,11 +116,6 @@
             
         }); 
     }
-
-    updateRecordView(recordId) {
-        updateRecord({fields: { Id: recordId }});
-    }
-
     updateQisSubmit(){
         	updateQis({
         		 recordId: this.recordId
@@ -139,7 +131,6 @@
                         this.dispatchEvent(evt);
                     }
                 this.dispatchEvent(new CloseActionScreenEvent());
-                this.updateRecordView(this.recordId);
         		}).catch(error => {
             console.log('error='+error);
         }).finally(() => {
diff --git a/force-app/main/default/lwc/lexPDFQISrequest/lexPDFQISrequest.js b/force-app/main/default/lwc/lexPDFQISrequest/lexPDFQISrequest.js
index d442403..0a148b6 100644
--- a/force-app/main/default/lwc/lexPDFQISrequest/lexPDFQISrequest.js
+++ b/force-app/main/default/lwc/lexPDFQISrequest/lexPDFQISrequest.js
@@ -1,11 +1,7 @@
 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.initForlexPDFQISrequestButton';
-import UserInfo_Owner from '@salesforce/apex/TaskFeedbackController.UserInfo_Owner';
-import { updateRecord } from 'lightning/uiRecordApi';
 
 export default class lexPDFQISrequest extends LightningElement {
 	@api recordId;
diff --git a/force-app/main/default/lwc/lexQISAgree/lexQISAgree.js b/force-app/main/default/lwc/lexQISAgree/lexQISAgree.js
index 1c16be7..375454b 100644
--- a/force-app/main/default/lwc/lexQISAgree/lexQISAgree.js
+++ b/force-app/main/default/lwc/lexQISAgree/lexQISAgree.js
@@ -1,13 +1,10 @@
 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.initForQisAgreeButton';
 import updateQis  from '@salesforce/apex/QISReportController.updateQisForQisAgree';
-import UserInfo_Owner from '@salesforce/apex/TaskFeedbackController.UserInfo_Owner';
 import USER_ID from '@salesforce/user/Id';
-import { updateRecord } from 'lightning/uiRecordApi';
 
 export default class lexQISAgree extends LightningElement {
 	@api recordId;
@@ -58,11 +55,6 @@
             
         }); 
     }
-
-    updateRecordView(recordId) {
-        updateRecord({fields: { Id: recordId }});
-    }
-
     updateQisSubmit(){
         	updateQis({
         		 recordId: this.recordId
@@ -78,7 +70,6 @@
                         this.dispatchEvent(evt);
                     }
                 this.dispatchEvent(new CloseActionScreenEvent());
-                this.updateRecordView(this.recordId);
         		}).catch(error => {
             console.log('error='+error);
         }).finally(() => {
diff --git a/force-app/main/default/lwc/lexQISIntakeuniversalcode/lexQISIntakeuniversalcode.js b/force-app/main/default/lwc/lexQISIntakeuniversalcode/lexQISIntakeuniversalcode.js
index 5ec60dc..2168a7d 100644
--- a/force-app/main/default/lwc/lexQISIntakeuniversalcode/lexQISIntakeuniversalcode.js
+++ b/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';
 
diff --git a/force-app/main/default/lwc/lexQISSC/lexQISSC.js b/force-app/main/default/lwc/lexQISSC/lexQISSC.js
index 768177f..6e89c21 100644
--- a/force-app/main/default/lwc/lexQISSC/lexQISSC.js
+++ b/force-app/main/default/lwc/lexQISSC/lexQISSC.js
@@ -1,11 +1,8 @@
 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.initForlexQISSCButton';
-import UserInfo_Owner from '@salesforce/apex/TaskFeedbackController.UserInfo_Owner';
-import { updateRecord } from 'lightning/uiRecordApi';
 
 export default class lexQISSC extends LightningElement {
 	@api recordId;
@@ -51,6 +48,7 @@
             console.log('qISSCReport='+this.qISSCReport);
             console.log('nextaction='+this.nextaction);
             console.log('qISMarketCategory='+this.qISMarketCategory);
+            console.log('qISSCId='+this.qISSCId);
             if (this.profileName == '2F4_鎶�鏈帹杩涢儴' || this.profileName == '2F4_鎶�鏈帹杩涢儴_OSH 闈炲崟鐐�') {
             	const evt = new ShowToastEvent({
                             title : '鎮ㄦ病鏈夋柊寤篞IS甯傚満閮ㄦ潈闄愩��',
@@ -62,8 +60,8 @@
                         return;
             }
             if (this.qISSCReport!=null) {
-            	var url = 'https://ocsm.my.salesforce.com/'+this.qISSCId;
-            	window.open(url);
+                var urlPrefix = window.location.protocol + '//' + window.location.host+'/'+this.qISSCId;
+            	 window.open(urlPrefix);
             	this.dispatchEvent(new CloseActionScreenEvent());
                 return;
             }else{
@@ -77,6 +75,7 @@
                         this.dispatchEvent(new CloseActionScreenEvent());
                         return;
             	}else{
+                    console.log('瑙﹀彂');
             		const evt = new ShowToastEvent({
                             title : '瀵瑰簲鏂规硶涓鸿繑鍥炰笖瀵瑰簲涓绘満/娑堣�楀搧涓篍T 鎴� ENG 鎴� EndoRapid 鏃讹紝鎵嶅彲浠ユ柊寤恒��',
                             message: '',
diff --git a/force-app/main/default/lwc/lexQisUniversalFailureCode/lexQisUniversalFailureCode.js b/force-app/main/default/lwc/lexQisUniversalFailureCode/lexQisUniversalFailureCode.js
index c08db18..7d23de7 100644
--- a/force-app/main/default/lwc/lexQisUniversalFailureCode/lexQisUniversalFailureCode.js
+++ b/force-app/main/default/lwc/lexQisUniversalFailureCode/lexQisUniversalFailureCode.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.initForQisUniversalFailureCodeButton';
 import sqlForPAE  from '@salesforce/apex/QISReportController.sqlForPAE';
 
diff --git a/force-app/main/default/lwc/lexRCCDScomplete/lexRCCDScomplete.js b/force-app/main/default/lwc/lexRCCDScomplete/lexRCCDScomplete.js
index 4f7e882..e54a336 100644
--- a/force-app/main/default/lwc/lexRCCDScomplete/lexRCCDScomplete.js
+++ b/force-app/main/default/lwc/lexRCCDScomplete/lexRCCDScomplete.js
@@ -1,12 +1,9 @@
 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.initForRCCDScompleteButton';
 import updateQis  from '@salesforce/apex/QISReportController.updateQisForRCCDScomplete';
-import UserInfo_Owner from '@salesforce/apex/TaskFeedbackController.UserInfo_Owner';
-import { updateRecord } from 'lightning/uiRecordApi';
 
 export default class lexRCCDScomplete extends LightningElement {
 	@api recordId;
@@ -67,11 +64,6 @@
             
         }); 
     }
-
-    updateRecordView(recordId) {
-        updateRecord({fields: { Id: recordId }});
-    }
-
     updateQisSubmit(){
         	updateQis({
         		 recordId: this.recordId
@@ -87,7 +79,6 @@
                         this.dispatchEvent(evt);
                     }
                 this.dispatchEvent(new CloseActionScreenEvent());
-                this.updateRecordView(this.recordId);
         		}).catch(error => {
             console.log('error='+error);
         }).finally(() => {
diff --git a/force-app/main/default/lwc/lexRCRecieved/lexRCRecieved.js b/force-app/main/default/lwc/lexRCRecieved/lexRCRecieved.js
index 2afabee..044dee1 100644
--- a/force-app/main/default/lwc/lexRCRecieved/lexRCRecieved.js
+++ b/force-app/main/default/lwc/lexRCRecieved/lexRCRecieved.js
@@ -1,9 +1,7 @@
 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 { updateRecord } from 'lightning/uiRecordApi';
 import init  from '@salesforce/apex/QISReportController.initForlexRCRecievedButton';
 import updateQis  from '@salesforce/apex/QISReportController.updateQisForRCRecieved';
 
@@ -72,11 +70,6 @@
             
         }); 
     }
-
-    updateRecordView(recordId) {
-        updateRecord({fields: { Id: recordId }});
-    }
-
     updateQisSubmit(){
         	updateQis({
         		 recordId: this.recordId
@@ -93,7 +86,6 @@
                         this.dispatchEvent(evt);
                     }
                 this.dispatchEvent(new CloseActionScreenEvent());
-                this.updateRecordView(this.recordId);
         		}).catch(error => {
            				 console.log('error='+error);
 		        }).finally(() => {
diff --git a/force-app/main/default/lwc/lexRCSubmit/lexRCSubmit.js b/force-app/main/default/lwc/lexRCSubmit/lexRCSubmit.js
index 3fa50fa..2a56a91 100644
--- a/force-app/main/default/lwc/lexRCSubmit/lexRCSubmit.js
+++ b/force-app/main/default/lwc/lexRCSubmit/lexRCSubmit.js
@@ -1,13 +1,10 @@
 import { LightningElement,wire,track,api} from 'lwc';
 import { CurrentPageReference } from "lightning/navigation";
 import { CloseActionScreenEvent } from 'lightning/actions';
-import { NavigationMixin } from 'lightning/navigation';
 import LightningConfirm from 'lightning/confirm';
 import { ShowToastEvent } from 'lightning/platformShowToastEvent';
 import init  from '@salesforce/apex/QISReportController.initForRCSubmitButton';
 import updateQis  from '@salesforce/apex/QISReportController.updateQisWithRC';
-import UserInfo_Owner from '@salesforce/apex/TaskFeedbackController.UserInfo_Owner';
-import { updateRecord } from 'lightning/uiRecordApi';
 
 export default class lexRCSubmit extends LightningElement {
 	@api recordId;
@@ -147,11 +144,6 @@
             
         }); 
     }
-
-    updateRecordView(recordId) {
-        updateRecord({fields: { Id: recordId }});
-    }
-
     updateQisSubmit(){
         	updateQis({
         		 recordId: this.recordId,
@@ -169,7 +161,6 @@
                         this.dispatchEvent(evt);
                     }
                 this.dispatchEvent(new CloseActionScreenEvent());
-                this.updateRecordView(this.recordId);
         		}).catch(error => {
             console.log('error='+error);
         }).finally(() => {
diff --git a/force-app/main/default/lwc/lexRCinspectioncompletedate/lexRCinspectioncompletedate.js b/force-app/main/default/lwc/lexRCinspectioncompletedate/lexRCinspectioncompletedate.js
index 73d0840..a39ae5f 100644
--- a/force-app/main/default/lwc/lexRCinspectioncompletedate/lexRCinspectioncompletedate.js
+++ b/force-app/main/default/lwc/lexRCinspectioncompletedate/lexRCinspectioncompletedate.js
@@ -1,9 +1,7 @@
 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 { updateRecord } from 'lightning/uiRecordApi';
 import init  from '@salesforce/apex/QISReportController.initForlexRCinspectioncompletedateButton';
 import updateQis  from '@salesforce/apex/QISReportController.updateQisForRCinspectioncompletedate';
 
@@ -67,11 +65,6 @@
             
         }); 
     }
-
-    updateRecordView(recordId) {
-        updateRecord({fields: { Id: recordId }});
-    }
-
     updateQisSubmit(){
         	updateQis({
         		 recordId: this.recordId
@@ -88,7 +81,6 @@
                         this.dispatchEvent(evt);
                     }
                 this.dispatchEvent(new CloseActionScreenEvent());
-                this.updateRecordView(this.recordId);
         		}).catch(error => {
            				 console.log('error='+error);
 		        }).finally(() => {
diff --git a/force-app/main/default/lwc/lexSendQIS/lexSendQIS.js b/force-app/main/default/lwc/lexSendQIS/lexSendQIS.js
index f1ca368..359f78a 100644
--- a/force-app/main/default/lwc/lexSendQIS/lexSendQIS.js
+++ b/force-app/main/default/lwc/lexSendQIS/lexSendQIS.js
@@ -1,12 +1,9 @@
 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.initForlexSendQISButton';
 import sendSPO  from '@salesforce/apex/QISReportController.updateQisForSendQIS';
-import UserInfo_Owner from '@salesforce/apex/TaskFeedbackController.UserInfo_Owner';
-import { updateRecord } from 'lightning/uiRecordApi';
 
 export default class lexSendQIS extends LightningElement {
 	@api recordId;
@@ -80,10 +77,6 @@
 
         });
     }
-    updateRecordView(recordId) {
-        updateRecord({fields: { Id: recordId }});
-    }
-
     send2SPO(){
         	sendSPO({
         		 recordId: this.recordId
@@ -107,7 +100,6 @@
                         });
 		                this.dispatchEvent(evt);   
 		                this.dispatchEvent(new CloseActionScreenEvent());
-		                this.updateRecordView(this.recordId);
                         window.location.replace("https://olympus.sharepoint.cn/sites/GSPWF/SitePages/HomePage.aspx");
                     }
                 

--
Gitblit v1.9.1