From 45e4876c811c861adc5744d06b5bba840fae397a Mon Sep 17 00:00:00 2001
From: 19626 <1962676589@qq.com>
Date: 星期四, 29 六月 2023 17:59:09 +0800
Subject: [PATCH] 优化失单画面以及修改按钮

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

diff --git a/force-app/main/default/classes/OpportunityLightingButtonController.cls b/force-app/main/default/classes/OpportunityLightingButtonController.cls
index b7d7a02..c6848a8 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-06-25 13:10:39
+ * @LastEditTime: 2023-06-29 16:53:17
  */
 public with sharing class OpportunityLightingButtonController {
     @AuraEnabled
@@ -495,6 +495,21 @@
         return res;
     }
     @AuraEnabled
+    public static InitData initForNewOpportunityFileButton(String recordId){
+        InitData res = new InitData();
+        try {
+            Opportunity opp = [
+                select
+                Stock_apply_status__c
+                from Opportunity where Id =: recordId
+            ];
+            res.stockApplyStatus = opp.Stock_apply_status__c;
+        } catch (Exception e) {
+            throw new AuraHandledException(e.getMessage());
+        }
+        return res;
+    }
+    @AuraEnabled
     public static string updateForAgencyAuthorizeButton(String recordId){
         try {
             Opportunity opp = new Opportunity();

--
Gitblit v1.9.1