From 53d3efae4778c0ee936911317411d931f930bf2b Mon Sep 17 00:00:00 2001
From: 黄千龙 <huangqianlong@prec-tech.com>
Date: 星期四, 06 四月 2023 17:05:00 +0800
Subject: [PATCH] 黄千龙提交按钮(更新至2023.4.6)

---
 force-app/main/default/lwc/lexOSHSubmit/lexOSHSubmit.js                                    |    6 
 force-app/main/default/lwc/lexQISAgree/lexQISAgree.js-meta.xml                             |   11 +
 force-app/main/default/lwc/oshRecieved/oshRecieved.js                                      |    2 
 force-app/main/default/lwc/lexOCMSubmit/lexOCMSubmit.js                                    |   10 
 force-app/main/default/lwc/lexQISIntakeuniversalcode/lexQISIntakeuniversalcode.js          |   64 +++++++++
 force-app/main/default/classes/QISReportController.cls                                     |  143 +++++++++++++++++--
 force-app/main/default/lwc/lexQISAgree/lexQISAgree.js                                      |   85 ++++++++++++
 force-app/main/default/lwc/lexQISIntakeuniversalcode/lexQISIntakeuniversalcode.css         |   22 +++
 force-app/main/default/lwc/lexRCSubmit/lexRCSubmit.js                                      |   16 +-
 force-app/main/default/lwc/lexQISAgree/lexQISAgree.css                                     |   22 +++
 force-app/main/default/lwc/lexQISIntakeuniversalcode/lexQISIntakeuniversalcode.js-meta.xml |   11 +
 force-app/main/default/lwc/lexQISAgree/lexQISAgree.html                                    |    5 
 force-app/main/default/lwc/lexQISIntakeuniversalcode/lexQISIntakeuniversalcode.html        |    5 
 13 files changed, 366 insertions(+), 36 deletions(-)

diff --git a/force-app/main/default/classes/QISReportController.cls b/force-app/main/default/classes/QISReportController.cls
index 1239bb9..59fe161 100644
--- a/force-app/main/default/classes/QISReportController.cls
+++ b/force-app/main/default/classes/QISReportController.cls
@@ -20,7 +20,7 @@
         String recordTypeId = LightingButtonConstant.DEVELOPER_NAME_ASAC_DECISION;
         try{
             PAE_DecisionRecord__c RCPAEDIdList = [SELECT LastModifiedDate, Id, Name, LastModifiedById,RecordType.DeveloperName FROM PAE_DecisionRecord__c where PAE_QIS__c = :qisReportId  And RecordType.DeveloperName =  :recordTypeId limit 1]; 
-            res.PAEid = RCPAEDIdList.id;
+            res.pAEid = RCPAEDIdList.id;
             System.debug(LoggingLevel.INFO, '*** res: ' + res);
         }catch(Exception e){
             System.debug(LoggingLevel.INFO, '*** e: ' + e);
@@ -49,7 +49,7 @@
         String recordTypeId = LightingButtonConstant.DEVELOPER_NAME_ASRC_DECISION;
         try{
             PAE_DecisionRecord__c ASRCDIdList = [SELECT LastModifiedDate, Id, Name, LastModifiedById,RecordType.DeveloperName FROM PAE_DecisionRecord__c where PAE_QIS__c = :qisReportId  And RecordType.DeveloperName =  :recordTypeId Limit 1]; 
-            res.PAEid = ASRCDIdList.id;
+            res.pAEid = ASRCDIdList.id;
             System.debug(LoggingLevel.INFO, '*** res: ' + res);
         }catch(Exception e){
             System.debug(LoggingLevel.INFO, '*** e: ' + e);
@@ -217,54 +217,159 @@
         }
          return re;
     }
+    // 鎻愪氦
+     @AuraEnabled
+    public static InitData initForOCMSubmitButton (String recordId){
+        InitData res = new initData();
+        try{
+            QIS_Report__c report = [SELECT  id,is_aohui_product__c,QIS_Status__c,OCM_Manager_Mail_F__c,QISInstallDate__c,contract_number__c FROM QIS_Report__c WHERE Id = :recordId LIMIT 1];  
+            res.Id = report.Id;
+            res.QIStatus = report.QIS_Status__c;
+            res.QISInstallDate = report.QISInstallDate__c;
+            res.contractnumber = report.contract_number__c;
+            res.isaohuiproduct = report.is_aohui_product__c;
+            System.debug(LoggingLevel.INFO, '*** res: ' + res);
+        }catch(Exception e){
+            System.debug(LoggingLevel.INFO, '*** e: ' + e);
+        }
+        return res;
+    }
 
+    @AuraEnabled
+    public static String updateQisWithOCM (String recordId){
+        String re = '鎴愬姛';
+        QIS_Report__c report = [SELECT  id,QIS_Status__c,QISInstallDate__c,contract_number__c,OCM_Manager_Mail_F__c
+                                ,OCM_Member_Mail_F__c,OCM_Repair_Mail_F__c,OCM_Repair_Mail1_F__c,FSE_Special_Mail_F__c,FSE_Special_Manager_Mail_F__c
+                                    ,WorkLocation_CC_Mail_F__c,is_aohui_product__c,QuolityApproveResult__c
+                                FROM QIS_Report__c WHERE Id = :recordId LIMIT 1]; 
+        try{
+            QIS_Report__c rac  = new QIS_Report__c();   
+            rac.id = recordId;
+            rac.QIS_Status__c = LightingButtonConstant.STATUS_QIS_FSE_COMPLATED;
+            rac.OCM_Manager_Mail__c = report.OCM_Manager_Mail_F__c;
+            rac.OCM_Member_Mail__c = report.OCM_Member_Mail_F__c;
+            rac.OCM_Repair_Mail__c = report.OCM_Repair_Mail_F__c;
+            rac.OCM_Repair_Mail1__c = report.OCM_Repair_Mail1_F__c;
+            rac.FSE_Special_Mail__c = report.FSE_Special_Mail_F__c;
+            rac.FSE_Special_Manager_Mail__c = report.FSE_Special_Manager_Mail_F__c;
+            rac.WorkLocation_CC_Mail__c = report.WorkLocation_CC_Mail_F__c;
+            rac.Cancel_QIS_Reason__c = null;
+            if (report.is_aohui_product__c == true) {
+                    rac.OCM_judgement__c = '璐ㄩ噺闂';
+                    rac.next_action__c = '鏃犲伩缁翠慨';
+                    rac.RecordTypeId = Schema.SObjectType.QIS_Report__c.getRecordTypeInfosByName().get(LightingButtonConstant.RECORD_TYPE_NAME_BY_OSH).getRecordTypeId();
+                    rac.QIS_Status__c = LightingButtonConstant.STATUS_QIS_OSH_TESTING_APP;
+            }
+            if (report.QuolityApproveResult__c == null || report.QuolityApproveResult__c == '') {
+                rac.QuolityApproveResult__c = '3.宸插鏍革紝涓�鑸川閲忛棶棰�';
+            }
+            update rac;
+        }catch(Exception e){
+            System.debug(LoggingLevel.INFO, '*** e: ' + e);
+            re = e.getMessage();
+        }
+         return re;
+    }
+
+    // QIS缁撴灉璺熻繘瀹屾瘯
+     @AuraEnabled
+    public static InitData initForQisAgreeButton (String recordId){
+        InitData res = new initData();
+        try{
+            QIS_Report__c report = [SELECT  id ,OwnerId FROM QIS_Report__c WHERE Id = :recordId LIMIT 1];  
+            res.Id = report.Id;
+            res.ownerId = report.OwnerId;
+            System.debug(LoggingLevel.INFO, '*** res: ' + res);
+        }catch(Exception e){
+            System.debug(LoggingLevel.INFO, '*** e: ' + e);
+        }
+        return res;
+    }
+
+    @AuraEnabled
+    public static String updateQisForQisAgree (String recordId){
+        String re = '鎴愬姛';
+        ID myUserID = UserInfo.getUserId();
+        
+        String answerComp = Schema.SObjectType.QIS_Report__c.getRecordTypeInfosByName().get(LightingButtonConstant.RECORD_TYPE_NAME_BY_OSH_FINASH).getRecordTypeId();
+        String fina = Schema.SObjectType.QIS_Report__c.getRecordTypeInfosByName().get(LightingButtonConstant.RECORD_TYPE_NAME_BY_FINAL).getRecordTypeId();
+        String comp = Schema.SObjectType.QIS_Report__c.getRecordTypeInfosByName().get(LightingButtonConstant.RECORD_TYPE_NAME_BY_COMP).getRecordTypeId();
+        // RecordType rectyp = [SELECT id ,name FROM RecordType where  id = '01210000000gFTH'];
+        QIS_Report__c report = [SELECT  id,OwnerId,RecordTypeId FROM QIS_Report__c WHERE Id = :recordId LIMIT 1];
+        try{
+            if (report.ownerid == myUserID) {
+                QIS_Report__c rac  = new QIS_Report__c();   
+                rac.id = recordId;
+                rac.QIS_Status__c = LightingButtonConstant.STATUS_QIS_COMPLATED;
+                if (report.RecordTypeId == answerComp) {
+                    rac.RecordTypeId = fina;
+                }else{
+                    rac.RecordTypeId = comp;
+                }
+                rac.QIS_Complete_Day__c  = Date.today();
+                update rac;
+            }
+            
+        }catch(Exception e){
+            System.debug(LoggingLevel.INFO, '*** e: ' + e);
+            re = e.getMessage();
+        }
+         return re;
+    }
+    
     public class InitData{
         @AuraEnabled
         public String Id;
         @AuraEnabled
-        public String OwnerId;
+        public String ownerId;
         @AuraEnabled
         public String qisRecordTypeId;
         @AuraEnabled
         public String qisRecordName;
         @AuraEnabled
-        public String ProfileName;
+        public String profileName;
         @AuraEnabled
-        public String PAEid;
+        public String isAEProfile;
         @AuraEnabled
-        public String OCSMAdministrativeReportNumber;
+        public String isPAEProfile;
         @AuraEnabled
-        public String OCSMAdministrativeReportStatus;
+        public String isCNBuy;
         @AuraEnabled
-        public String QIStatus;
+        public String pAEid;
         @AuraEnabled
-        public String OSHstaff;
+        public String oCSMAdministrativeReportNumber;
         @AuraEnabled
-        public String OSHstaffEmail;
+        public String oCSMAdministrativeReportStatus;
         @AuraEnabled
-        public String CancelQISReason;
+        public String qIStatus;
         @AuraEnabled
-        public String RCid;
+        public String oSHstaff;
+        @AuraEnabled
+        public String oSHstaffEmail;
+        @AuraEnabled
+        public String cancelQISReason;
+        @AuraEnabled
+        public String rCid;
         @AuraEnabled
         public String contractnumber;
         @AuraEnabled
-        public Date RCinspectionDate;
+        public Date rCinspectionDate;
         @AuraEnabled
-        public Date QISReplyDay;
+        public Date qISReplyDay;
         @AuraEnabled
-        public Date QISInstallDate;
+        public Date qISInstallDate;
         @AuraEnabled
         public Date cdsdate;
         @AuraEnabled
-        public Date Aware_date;
+        public Date awaredate;
         @AuraEnabled
-        public Date OCSMAdministrativeReportDate;
+        public Date oCSMAdministrativeReportDate;
         @AuraEnabled
-        public Boolean RCproblemnotfound;
+        public Boolean rCproblemnotfound;
         @AuraEnabled
         public Boolean isaohuiproduct;
         @AuraEnabled
-        public Boolean IsSendQIS;
+        public Boolean isSendQIS;
     }
 
 }
\ No newline at end of file
diff --git a/force-app/main/default/lwc/lexOCMSubmit/lexOCMSubmit.js b/force-app/main/default/lwc/lexOCMSubmit/lexOCMSubmit.js
index d6c2e68..814dd7b 100644
--- a/force-app/main/default/lwc/lexOCMSubmit/lexOCMSubmit.js
+++ b/force-app/main/default/lwc/lexOCMSubmit/lexOCMSubmit.js
@@ -16,6 +16,7 @@
 	qisStatus;
 	contractnumber;
 	isaohuiproduct;
+    err;
 	@wire(CurrentPageReference)
      getStateParameters(currentPageReference) {
              console.log(111);
@@ -38,12 +39,10 @@
         }).then(result => {
             this.IsLoading = false;
             this.qisReportId = result.Id;
-            this.qisStatus = result.QIStatus;
-            this.QISInstallDate = result.QISInstallDate;
+            this.qisStatus = result.qIStatus;
+            this.QISInstallDate = result.qISInstallDate;
             this.contractnumber = result.contractnumber;
             this.isaohuiproduct = result.isaohuiproduct;
-            console.log('this.qisStatus='+this.qisStatus);
-            console.log('this.isaohuiproduct='+this.isaohuiproduct);
          	if (this.qisStatus!='鑽夋涓�' && this.qisStatus!='鍙栨秷') {
          		const evt = new ShowToastEvent({
                         title : '宸茬粡鎻愪氦',
@@ -116,9 +115,10 @@
         		}).then(result =>{
         			console.log('result'+result);
         			if (result!='鎴愬姛') {
+                        this.err = result;
         				const evt = new ShowToastEvent({
 	                        title : '鏇存柊澶辫触',
-	                        message: result,
+	                        message: this.err,
 	                        variant: 'error'
                     	});
                     	this.dispatchEvent(evt);
diff --git a/force-app/main/default/lwc/lexOSHSubmit/lexOSHSubmit.js b/force-app/main/default/lwc/lexOSHSubmit/lexOSHSubmit.js
index 65d0f97..0e82f06 100644
--- a/force-app/main/default/lwc/lexOSHSubmit/lexOSHSubmit.js
+++ b/force-app/main/default/lwc/lexOSHSubmit/lexOSHSubmit.js
@@ -37,9 +37,9 @@
         }).then(result => {
             this.IsLoading = false;
             this.qisReportId = result.Id;
-            this.qisStatus = result.QIStatus;
-            this.OSHstaff = result.OSHstaff;
-            this.OSHstaffEmail = result.OSHstaffEmail;
+            this.qisStatus = result.qIStatus;
+            this.OSHstaff = result.oSHstaff;
+            this.OSHstaffEmail = result.oSHstaffEmail;
             console.log('this.qisStatus='+this.qisStatus);
             console.log('this.OSHstaff='+this.OSHstaff);
             console.log('this.OSHstaffEmail='+this.OSHstaffEmail);
diff --git a/force-app/main/default/lwc/lexQISAgree/lexQISAgree.css b/force-app/main/default/lwc/lexQISAgree/lexQISAgree.css
new file mode 100644
index 0000000..9acb129
--- /dev/null
+++ b/force-app/main/default/lwc/lexQISAgree/lexQISAgree.css
@@ -0,0 +1,22 @@
+.outerBorderCss{
+    border: 1px solid #D4D4D4;
+    border-radius : 5px;
+    border-top : 3px solid #565959;
+}
+.borderCss{
+    border: 1px solid #D4D4D4;
+    border-radius : 5px;
+    margin-bottom : 7px;
+    border-top : 3px solid #565959;
+}
+.headerDorderCss{
+    border-top: 1px solid #565959;
+    border-bottom: 1px solid #D4D4D4;
+    padding:3px;
+}
+.centerCss{
+    text-align: center;
+}
+.centerCss .left{
+    margin-left: 100px;
+}/* sample css file *//* sample css file */
\ No newline at end of file
diff --git a/force-app/main/default/lwc/lexQISAgree/lexQISAgree.html b/force-app/main/default/lwc/lexQISAgree/lexQISAgree.html
new file mode 100644
index 0000000..c8bdbfc
--- /dev/null
+++ b/force-app/main/default/lwc/lexQISAgree/lexQISAgree.html
@@ -0,0 +1,5 @@
+<template>
+   <div class="sisToOPDHolder" if:true={IsLoading}>
+        <lightning-spinner alternative-text="Loading" size="medium"></lightning-spinner>
+    </div>
+</template>
\ No newline at end of file
diff --git a/force-app/main/default/lwc/lexQISAgree/lexQISAgree.js b/force-app/main/default/lwc/lexQISAgree/lexQISAgree.js
new file mode 100644
index 0000000..5725e34
--- /dev/null
+++ b/force-app/main/default/lwc/lexQISAgree/lexQISAgree.js
@@ -0,0 +1,85 @@
+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 { updateRecord } from 'lightning/uiRecordApi';
+
+export default class lexQISAgree extends LightningElement {
+	@api recordId;
+	IsLoading = true;
+	qisReportId;
+	OwnerId;
+    err;
+
+    @wire(CurrentPageReference)
+     getStateParameters(currentPageReference) {
+             console.log(111);
+             console.log(currentPageReference);
+
+         if (currentPageReference) {
+           const urlValue = currentPageReference.state.recordId;
+           if (urlValue) {
+             let str = `${urlValue}`;
+             console.log("str");
+             console.log(str);
+             this.recordId = str;
+           }
+         }
+    }
+
+    connectedCallback () {
+        init({
+            recordId: this.recordId
+        }).then(result => {
+            this.IsLoading = false;
+            this.qisReportId = result.Id;
+            this.OwnerId = result.ownerId;
+            if (this.OwnerId != UserInfo_Owner.Id) {
+            	const evt = new ShowToastEvent({
+                            title : '鍙湁鎵�鏈夎�呭彲浠ユ寜QIS缁撴灉璺熻繘瀹屾瘯鐨勬寜閽�',
+                            message: '',
+                            variant: 'error'
+                        });
+                        this.dispatchEvent(evt);
+                        this.dispatchEvent(new CloseActionScreenEvent());
+            }else{
+            	this.updateQisSubmit();
+            }
+        }).catch(error => {
+            console.log('error='+error);
+        }).finally(() => {
+            
+        }); 
+    }
+
+    updateRecordView(recordId) {
+        updateRecord({fields: { Id: recordId }});
+    }
+
+    updateQisSubmit(){
+        	updateQis({
+        		 recordId: this.recordId
+        		}).then(result =>{
+        			console.log('result'+result);
+                     this.err = result;
+        			if (result!='鎴愬姛') {
+                        const evt = new ShowToastEvent({
+                            title : '鏇存柊澶辫触',
+                            message: this.err,
+                            variant: 'error'
+                        });
+                        this.dispatchEvent(evt);
+                    }
+                this.dispatchEvent(new CloseActionScreenEvent());
+                this.updateRecordView(this.recordId);
+        		}).catch(error => {
+            console.log('error='+error);
+        }).finally(() => {
+            
+        });
+    }
+}
\ No newline at end of file
diff --git a/force-app/main/default/lwc/lexQISAgree/lexQISAgree.js-meta.xml b/force-app/main/default/lwc/lexQISAgree/lexQISAgree.js-meta.xml
new file mode 100644
index 0000000..7a4ca36
--- /dev/null
+++ b/force-app/main/default/lwc/lexQISAgree/lexQISAgree.js-meta.xml
@@ -0,0 +1,11 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<LightningComponentBundle xmlns="http://soap.sforce.com/2006/04/metadata" fqn="lexQISAgree">
+  <apiVersion>54.0</apiVersion>
+    <isExposed>true</isExposed>
+    <targets>
+        <target>lightning__RecordPage</target>
+        <target>lightning__AppPage</target>
+        <target>lightning__HomePage</target>
+        <target>lightning__RecordAction</target>
+    </targets>
+</LightningComponentBundle>
\ No newline at end of file
diff --git a/force-app/main/default/lwc/lexQISIntakeuniversalcode/lexQISIntakeuniversalcode.css b/force-app/main/default/lwc/lexQISIntakeuniversalcode/lexQISIntakeuniversalcode.css
new file mode 100644
index 0000000..79456f2
--- /dev/null
+++ b/force-app/main/default/lwc/lexQISIntakeuniversalcode/lexQISIntakeuniversalcode.css
@@ -0,0 +1,22 @@
+.outerBorderCss{
+    border: 1px solid #D4D4D4;
+    border-radius : 5px;
+    border-top : 3px solid #565959;
+}
+.borderCss{
+    border: 1px solid #D4D4D4;
+    border-radius : 5px;
+    margin-bottom : 7px;
+    border-top : 3px solid #565959;
+}
+.headerDorderCss{
+    border-top: 1px solid #565959;
+    border-bottom: 1px solid #D4D4D4;
+    padding:3px;
+}
+.centerCss{
+    text-align: center;
+}
+.centerCss .left{
+    margin-left: 100px;
+}
\ No newline at end of file
diff --git a/force-app/main/default/lwc/lexQISIntakeuniversalcode/lexQISIntakeuniversalcode.html b/force-app/main/default/lwc/lexQISIntakeuniversalcode/lexQISIntakeuniversalcode.html
new file mode 100644
index 0000000..c8bdbfc
--- /dev/null
+++ b/force-app/main/default/lwc/lexQISIntakeuniversalcode/lexQISIntakeuniversalcode.html
@@ -0,0 +1,5 @@
+<template>
+   <div class="sisToOPDHolder" if:true={IsLoading}>
+        <lightning-spinner alternative-text="Loading" size="medium"></lightning-spinner>
+    </div>
+</template>
\ No newline at end of file
diff --git a/force-app/main/default/lwc/lexQISIntakeuniversalcode/lexQISIntakeuniversalcode.js b/force-app/main/default/lwc/lexQISIntakeuniversalcode/lexQISIntakeuniversalcode.js
new file mode 100644
index 0000000..94c87ab
--- /dev/null
+++ b/force-app/main/default/lwc/lexQISIntakeuniversalcode/lexQISIntakeuniversalcode.js
@@ -0,0 +1,64 @@
+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';
+
+export default class lexQISIntakeuniversalcode extends LightningElement {
+	@api recordId;
+	IsLoading = true;
+	qisReportId;
+	paeId;
+
+    @wire(CurrentPageReference)
+     getStateParameters(currentPageReference) {
+             console.log(111);
+             console.log(currentPageReference);
+
+         if (currentPageReference) {
+           const urlValue = currentPageReference.state.recordId;
+           if (urlValue) {
+             let str = `${urlValue}`;
+             console.log("str");
+             console.log(str);
+             this.recordId = str;
+           }
+         }
+    }
+
+   connectedCallback () {
+        init({
+            recordId: this.recordId
+        }).then(result => {
+            console.log(result);
+            if (result != null) {
+                this.IsLoading = false;
+                this.qisReportId = result.Id;
+                var RecordTypeId = "ASRCDecision";
+                sqlForPAE({
+                	qisReportId: this.qisReportId
+           		 }).then(result => {
+	            	if (result!=null) {
+	            		this.paeId = result.PAEid;
+	            		console.log('result='+this.paeId);
+	            	}   
+	            	var url = '';
+					if (result!=null&&result.length>0){
+						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);
+        }).finally(() => {
+            
+        });   
+    }
+
+}
\ No newline at end of file
diff --git a/force-app/main/default/lwc/lexQISIntakeuniversalcode/lexQISIntakeuniversalcode.js-meta.xml b/force-app/main/default/lwc/lexQISIntakeuniversalcode/lexQISIntakeuniversalcode.js-meta.xml
new file mode 100644
index 0000000..2ed1142
--- /dev/null
+++ b/force-app/main/default/lwc/lexQISIntakeuniversalcode/lexQISIntakeuniversalcode.js-meta.xml
@@ -0,0 +1,11 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<LightningComponentBundle xmlns="http://soap.sforce.com/2006/04/metadata" fqn="lexQISIntakeuniversalcode">
+    <apiVersion>54.0</apiVersion>
+    <isExposed>true</isExposed>
+    <targets>
+        <target>lightning__RecordPage</target>
+        <target>lightning__AppPage</target>
+        <target>lightning__HomePage</target>
+        <target>lightning__RecordAction</target>
+    </targets>
+</LightningComponentBundle>
\ No newline at end of file
diff --git a/force-app/main/default/lwc/lexRCSubmit/lexRCSubmit.js b/force-app/main/default/lwc/lexRCSubmit/lexRCSubmit.js
index d548720..a65405b 100644
--- a/force-app/main/default/lwc/lexRCSubmit/lexRCSubmit.js
+++ b/force-app/main/default/lwc/lexRCSubmit/lexRCSubmit.js
@@ -44,14 +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;
+            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 : '宸茬粡鎻愪氦瀹℃壒',
diff --git a/force-app/main/default/lwc/oshRecieved/oshRecieved.js b/force-app/main/default/lwc/oshRecieved/oshRecieved.js
index e32ff18..12ad641 100644
--- a/force-app/main/default/lwc/oshRecieved/oshRecieved.js
+++ b/force-app/main/default/lwc/oshRecieved/oshRecieved.js
@@ -33,7 +33,7 @@
         }).then(result => {
             this.IsLoading = false;
             this.qisReportId = result.Id;
-            this.qisStatus = result.QIStatus;
+            this.qisStatus = result.qIStatus;
             console.log('this.qisStatus='+this.qisStatus);
          	if (this.qisStatus!='OSH妫�娴嬬敵璇�' && this.qisStatus!='瀹屾瘯') {
                 const evt = new ShowToastEvent({

--
Gitblit v1.9.1