From 07390e2fcb4adf27c928335bf27ae7939c5a80ad Mon Sep 17 00:00:00 2001
From: buli <137736985@qq.com>
Date: 星期二, 23 五月 2023 11:28:12 +0800
Subject: [PATCH] bakcup20230523

---
 force-app/main/default/lwc/lexMailMessege/lexMailMessege.js |   25 +++++++++++++------------
 1 files changed, 13 insertions(+), 12 deletions(-)

diff --git a/force-app/main/default/lwc/lexMailMessege/lexMailMessege.js b/force-app/main/default/lwc/lexMailMessege/lexMailMessege.js
index b991177..6cbc7d5 100644
--- a/force-app/main/default/lwc/lexMailMessege/lexMailMessege.js
+++ b/force-app/main/default/lwc/lexMailMessege/lexMailMessege.js
@@ -46,29 +46,30 @@
             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());
             }
         }).catch(error => {
             console.log(error);
-        })
+        }).finally(() => {
+
+        });
     }
 
     // 鎶ヤ环闄勪欢鏇存柊鐨勯偖浠堕�氱煡
     mailMessege() {
         var Link = "https://ocsm--partial.sandbox.my.salesforce.com/" + this.Id;
-        console.log(Link);
 
         location.href = 'mailto:' + this.InchargeStaffEmailC +
             '?bcc=' + this.userEmail +

--
Gitblit v1.9.1