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/ReportController.cls | 23 +++++++++++++++++++++++
1 files changed, 23 insertions(+), 0 deletions(-)
diff --git a/force-app/main/default/classes/ReportController.cls b/force-app/main/default/classes/ReportController.cls
index 76a56d9..d84c234 100644
--- a/force-app/main/default/classes/ReportController.cls
+++ b/force-app/main/default/classes/ReportController.cls
@@ -261,6 +261,25 @@
}
return res;
}
+ @AuraEnabled
+ public static InitData initForNewOnLineSurveyButton(String recordId){
+ InitData res = new InitData();
+ try {
+ Report__c re = [
+ select
+ Date__c,
+ Practitioner1__c,
+ OwnerId
+ from Report__c where Id =: recordId
+ ];
+ res.ownerId = re.OwnerId;
+ res.datec = re.Date__c;
+ res.practitioner1 = re.Practitioner1__c;
+ } catch (Exception e) {
+ throw new AuraHandledException(e.getMessage());
+ }
+ return res;
+ }
//缁欐彁浜ょ浉搴旂殑js鎻愪緵鍒濆鍖栨暟鎹�
@AuraEnabled
@@ -682,5 +701,9 @@
public String demoPurpose2;
@AuraEnabled
public String opdPlan;
+ @AuraEnabled
+ public Date datec;
+ @AuraEnabled
+ public String practitioner1;
}
}
\ No newline at end of file
--
Gitblit v1.9.1