From 5ce27d69c427ca16f37ff16d53758d0e877a88f9 Mon Sep 17 00:00:00 2001
From: 19626 <1962676589@qq.com>
Date: 星期三, 31 五月 2023 17:48:34 +0800
Subject: [PATCH] 修改页面以及更改跳转方式

---
 force-app/main/default/classes/OpportunityLightingButtonController.cls |    7 +++++--
 1 files changed, 5 insertions(+), 2 deletions(-)

diff --git a/force-app/main/default/classes/OpportunityLightingButtonController.cls b/force-app/main/default/classes/OpportunityLightingButtonController.cls
index e88cb1e..fbdcf8a 100644
--- a/force-app/main/default/classes/OpportunityLightingButtonController.cls
+++ b/force-app/main/default/classes/OpportunityLightingButtonController.cls
@@ -4,7 +4,7 @@
  * @Author: chen jing wu
  * @Date: 2023-04-12 11:16:07
  * @LastEditors: chen jing wu
- * @LastEditTime: 2023-05-24 16:34:15
+ * @LastEditTime: 2023-05-31 17:32:51
  */
 public with sharing class OpportunityLightingButtonController {
     @AuraEnabled
@@ -223,6 +223,7 @@
         res.salesManagerDepartmentID = opportunity.Sales_manager_departmentID__c;
         res.salesOwnerBuchang = opportunity.Sales_owner_buchang__c;
         res.salesOwnerBuchangID = opportunity.Sales_owner_buchangID__c;
+        res.recordTypeId = Schema.SObjectType.Lost_cancel_report__c.getRecordTypeInfosByName().get(lexLightingButtonConstant.RECORD_TYPE_NAME_BY_OPPO_CANCEL_REPORT).getRecordTypeId();
         } catch (Exception e) {
             throw new AuraHandledException(e.getMessage());
         }
@@ -568,7 +569,7 @@
                 select id,
                 Tender_information__r.subInfoType__c
                 from Tender_Opportunity_Link__c 
-                where (Tender_information__r.subInfoType__c =:lexLightingButtonConstant.SUB_INFO_TYPE_SCRAPPED_LABEL OR Tender_information__r.subInfoType__c =:lexLightingButtonConstant.SUB_INFO_TYPE_FLOW_LABEL) and Opportunity__c =: recordId
+                where (Tender_information__r.subInfoType__c =:lexLightingButtonConstant.SUB_INFO_TYPE_SCRAPPED_LABEL OR Tender_information__r.subInfoType__c =:lexLightingButtonConstant.SUB_INFO_TYPE_FLOW_LABEL OR Tender_information__r.TerminateApprovalStatus__c= :lexLightingButtonConstant.SUB_INFO_TYPE_APPROVE) and Opportunity__c =: recordId
             ];
         } catch (Exception e) {
             System.debug('e:****' + e);
@@ -833,5 +834,7 @@
         public String s1ProfileId;
         @AuraEnabled
         public String accountName;
+        @AuraEnabled
+        public String recordTypeId;
     }
 }
\ No newline at end of file

--
Gitblit v1.9.1