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/lexPCLLostReportLwcController.cls | 20 ++++++++++----------
1 files changed, 10 insertions(+), 10 deletions(-)
diff --git a/force-app/main/default/classes/lexPCLLostReportLwcController.cls b/force-app/main/default/classes/lexPCLLostReportLwcController.cls
index 1c42b9f..6adf98b 100644
--- a/force-app/main/default/classes/lexPCLLostReportLwcController.cls
+++ b/force-app/main/default/classes/lexPCLLostReportLwcController.cls
@@ -617,6 +617,7 @@
}
// lostReportId = report.lostReport.id;
system.debug('save---end:');
+ messageMap.put('LostReport',JSON.serialize(report));
}catch (Exception ex) {
Database.rollback(sp);
// 杩欓噷闇�瑕佸啓涓�浜涙姤閿欎俊鎭�
@@ -773,6 +774,8 @@
@AuraEnabled
public Boolean bool;
@AuraEnabled
+ public String productName;
+ @AuraEnabled
public List<Map<String, String>> productOptions = new List<Map<String, String>>();
public PCLLostProducts() {
this.lineNo2 = 0;
@@ -815,20 +818,17 @@
}
}
}
- // add tcm 20211118 end
-
@AuraEnabled
- public static List<Product2> searchProduct(){
+ public static string searchProduct(String lostProduct){
+ Product2 prd = null;
try {
- List<Product2> products = [
- select
- Id,name
- from Product2
- where Brand_Name__c = 'STORZ' limit 10
- ];
- return products;
+ prd = [select Id,ProductClass__c, ProductCategory__c from Product2 where Id =:lostProduct];
} catch (Exception e) {
throw new AuraHandledException(e.getMessage());
}
+ return JSON.serialize(prd);
}
+
+ // add tcm 20211118 end
+
}
\ No newline at end of file
--
Gitblit v1.9.1