From 50e96fd88845d033ab55eeb4034a17f74eee7b72 Mon Sep 17 00:00:00 2001
From: unknown <sunxia@prec-tech.com>
Date: 星期四, 06 七月 2023 11:20:30 +0800
Subject: [PATCH] 主体备品选择
---
force-app/main/default/lwc/lexMailMessege/lexMailMessege.js | 27 ++++++++++++++-------------
1 files changed, 14 insertions(+), 13 deletions(-)
diff --git a/force-app/main/default/lwc/lexMailMessege/lexMailMessege.js b/force-app/main/default/lwc/lexMailMessege/lexMailMessege.js
index cf78f1a..6c1c060 100644
--- a/force-app/main/default/lwc/lexMailMessege/lexMailMessege.js
+++ b/force-app/main/default/lwc/lexMailMessege/lexMailMessege.js
@@ -46,16 +46,16 @@
if (result != null) {
this.IsLoading = false;
this.Id = result.Id;
- this.InchargeStaffEmailC = result.InchargeStaffEmailC;
- this.Name = result.Name;
- this.HPNameC = result.HPNameC;
- this.DeliveredProductC = result.DeliveredProductC;
- this.RepairProductSerialNoC = result.RepairProductSerialNoC;
- this.ServiceRepairNoC = result.ServiceRepairNoC;
- this.RepairFirstestimatedDateC = result.RepairFirstestimatedDateC;
- this.RepairEstimatedDateC = result.RepairEstimatedDateC;
- this.RCInformationC = result.RCInformationC;
- this.userEmail = result.userEmail;
+ this.InchargeStaffEmailC = result.InchargeStaffEmailC == undefined ? "" : result.InchargeStaffEmailC;
+ this.Name = result.Name == undefined ? "" : result.Name;
+ this.HPNameC = result.HPNameC == undefined ? "" : result.HPNameC;
+ this.DeliveredProductC = result.DeliveredProductC == undefined ? "" : result.DeliveredProductC;
+ this.RepairProductSerialNoC = result.RepairProductSerialNoC == undefined ? "" : result.RepairProductSerialNoC;
+ this.ServiceRepairNoC = result.ServiceRepairNoC == undefined ? "" : result.ServiceRepairNoC;
+ this.RepairFirstestimatedDateC = result.RepairFirstestimatedDateC == undefined ? "" : result.RepairFirstestimatedDateC;
+ this.RepairEstimatedDateC = result.RepairEstimatedDateC == undefined ? "" : result.RepairEstimatedDateC;
+ this.RCInformationC = result.RCInformationC == undefined ? "" : result.RCInformationC;
+ this.userEmail = result.userEmail == undefined ? "" : result.userEmail;
this.mailMessege();
this.dispatchEvent(new CloseActionScreenEvent());
@@ -69,8 +69,9 @@
// 鎶ヤ环闄勪欢鏇存柊鐨勯偖浠堕�氱煡
mailMessege() {
- var Link = "https://ocsm--partial.sandbox.my.salesforce.com/" + this.Id;
- console.log(Link);
+ // var Link = "https://ocsm--partial.sandbox.my.salesforce.com/" + this.Id;
+
+ var origin = window.location.origin + "/" + this.Id;
location.href = 'mailto:' + this.InchargeStaffEmailC +
'?bcc=' + this.userEmail +
@@ -84,6 +85,6 @@
'姝ゆ鎶ヤ环鏃ワ細' + this.RepairEstimatedDateC + '%0D%0A' +
'%0D%0A' +
'RC鑱旂粶浜嬮」锛�' + this.RCInformationC + '%0D%0A' +
- '%0D%0A' + Link + '';
+ '%0D%0A' + origin;
}
}
\ No newline at end of file
--
Gitblit v1.9.1