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/loanerArrangedEmailLWC/loanerArrangedEmailLWC.js |   93 ++++++++++++++++++++++++----------------------
 1 files changed, 48 insertions(+), 45 deletions(-)

diff --git a/force-app/main/default/lwc/loanerArrangedEmailLWC/loanerArrangedEmailLWC.js b/force-app/main/default/lwc/loanerArrangedEmailLWC/loanerArrangedEmailLWC.js
index bf2ac0c..704493a 100644
--- a/force-app/main/default/lwc/loanerArrangedEmailLWC/loanerArrangedEmailLWC.js
+++ b/force-app/main/default/lwc/loanerArrangedEmailLWC/loanerArrangedEmailLWC.js
@@ -116,50 +116,52 @@
 	            message:"鐢宠鍗曞唴瀛樺湪鏈垎閰嶇殑閰嶅锛岃鍒嗛厤澶囧搧鎴栧垎鍓茬敵璇峰崟"
             });
         	this.dispatchEvent(event);
-		}else if(campaignStatus == '鍙栨秷'){
-			// alert("瀛︿細鍙栨秷锛屼笉鍙嚭搴撴寚绀�");
-			const event = new ShowToastEvent({
-	            title: '鎻愮ず淇℃伅',
-	            message:"瀛︿細鍙栨秷锛屼笉鍙嚭搴撴寚绀�"
-            });
-        	this.dispatchEvent(event);
-		}else if (this.Assigned_Not_Shipment__c == "0") {
-			// alert("娌℃湁鍙互鍑哄簱鎸囩ず鐨勬槑缁�");
-			const event = new ShowToastEvent({
-	            title: '鎻愮ず淇℃伅',
-	            message:"娌℃湁鍙互鍑哄簱鎸囩ず鐨勬槑缁�"
-            });
-        	this.dispatchEvent(event);
-		} else if (RentalApply.Demo_purpose1__c == "闀挎湡鍊熷嚭" && RentalApply.Contract_pdf_updated__c == "0") {
-			// alert("闀挎湡鍊熷嚭鏃讹紝蹇呴』鍏堜笂浼犲绾︿功");
-			const event = new ShowToastEvent({
-	            title: '鎻愮ず淇℃伅',
-	            message:"闀挎湡鍊熷嚭鏃讹紝蹇呴』鍏堜笂浼犲绾︿功"
-            });
-        	this.dispatchEvent(event);
-		} else if(RentalApply.Repair__c != '' && RentalApply.Repair__c != null && (RentalApply.Repair_Final_Inspection_Date_F__c != null && RentalApply.Repair_Final_Inspection_Date_F__c != '') || (RentalApply.RC_return_to_office__c != null && RentalApply.RC_return_to_office__c != '')) {
-			// alert("淇悊鏈夋渶缁堟娴嬫棩鎴栦慨鐞嗗搧杩旈�佹棩锛屼笉鍙嚭搴撴寚绀�");
-			const event = new ShowToastEvent({
-	            title: '鎻愮ず淇℃伅',
-	            message:"淇悊鏈夋渶缁堟娴嬫棩鎴栦慨鐞嗗搧杩旈�佹棩锛屼笉鍙嚭搴撴寚绀�"
-            });
-        	this.dispatchEvent(event);
-		// 20220217 ljh add OBPM甯傚満娲诲姩鑱斿姩 start
-		} else if (records != null && records[0].IF_Approved__c == "true" && (records[0].Meeting_Approved_No__c == null || records[0].Meeting_Approved_No__c == "") ) {
-			// alert("娌℃湁鍐宠鍙风殑锛屾殏涓嶈兘鍑哄��,璇锋洿鏂拌鍐充俊鎭��");
-			const event = new ShowToastEvent({
-	            title: '鎻愮ず淇℃伅',
-	            message:"娌℃湁鍐宠鍙风殑锛屾殏涓嶈兘鍑哄��,璇锋洿鏂拌鍐充俊鎭��"
-            });
-        	this.dispatchEvent(event);
-		} else if (records != null && records[0].IF_Approved__c == "true" && records[0].Meeting_Approved_No__c != "" && statusList.indexOf(records[0].Approved_Status__c) != -1 ) {
-			// alert("宸茬敵璇峰喅瑁佷絾鍐宠鐘舵�佷笉绗﹀悎鏉′欢銆�");
-			const event = new ShowToastEvent({
-	            title: '鎻愮ず淇℃伅',
-	            message:"宸茬敵璇峰喅瑁佷絾鍐宠鐘舵�佷笉绗﹀悎鏉′欢銆�"
-            });
-        	this.dispatchEvent(event);
-		// 20220217 ljh add OBPM甯傚満娲诲姩鑱斿姩 end
+		// }else if(campaignStatus == '鍙栨秷'){
+		// 	// alert("瀛︿細鍙栨秷锛屼笉鍙嚭搴撴寚绀�");
+		// 	const event = new ShowToastEvent({
+	 //            title: '鎻愮ず淇℃伅',
+	 //            message:"瀛︿細鍙栨秷锛屼笉鍙嚭搴撴寚绀�"
+  //           });
+  //       	this.dispatchEvent(event);
+		// }
+		// else if (this.Assigned_Not_Shipment__c == "0") {
+		// 	// alert("娌℃湁鍙互鍑哄簱鎸囩ず鐨勬槑缁�");
+		// 	const event = new ShowToastEvent({
+	 //            title: '鎻愮ず淇℃伅',
+	 //            message:"娌℃湁鍙互鍑哄簱鎸囩ず鐨勬槑缁�"
+  //           });
+  //       	this.dispatchEvent(event);
+		// }
+		//  else if (RentalApply.Demo_purpose1__c == "闀挎湡鍊熷嚭" && RentalApply.Contract_pdf_updated__c == "0") {
+		// 	// alert("闀挎湡鍊熷嚭鏃讹紝蹇呴』鍏堜笂浼犲绾︿功");
+		// 	const event = new ShowToastEvent({
+	 //            title: '鎻愮ず淇℃伅',
+	 //            message:"闀挎湡鍊熷嚭鏃讹紝蹇呴』鍏堜笂浼犲绾︿功"
+  //           });
+  //       	this.dispatchEvent(event);
+		// } else if(RentalApply.Repair__c != '' && RentalApply.Repair__c != null && (RentalApply.Repair_Final_Inspection_Date_F__c != null && RentalApply.Repair_Final_Inspection_Date_F__c != '') || (RentalApply.RC_return_to_office__c != null && RentalApply.RC_return_to_office__c != '')) {
+		// 	// alert("淇悊鏈夋渶缁堟娴嬫棩鎴栦慨鐞嗗搧杩旈�佹棩锛屼笉鍙嚭搴撴寚绀�");
+		// 	const event = new ShowToastEvent({
+	 //            title: '鎻愮ず淇℃伅',
+	 //            message:"淇悊鏈夋渶缁堟娴嬫棩鎴栦慨鐞嗗搧杩旈�佹棩锛屼笉鍙嚭搴撴寚绀�"
+  //           });
+  //       	this.dispatchEvent(event);
+		// // 20220217 ljh add OBPM甯傚満娲诲姩鑱斿姩 start
+		// } else if (records != null && records[0].IF_Approved__c == "true" && (records[0].Meeting_Approved_No__c == null || records[0].Meeting_Approved_No__c == "") ) {
+		// 	// alert("娌℃湁鍐宠鍙风殑锛屾殏涓嶈兘鍑哄��,璇锋洿鏂拌鍐充俊鎭��");
+		// 	const event = new ShowToastEvent({
+	 //            title: '鎻愮ず淇℃伅',
+	 //            message:"娌℃湁鍐宠鍙风殑锛屾殏涓嶈兘鍑哄��,璇锋洿鏂拌鍐充俊鎭��"
+  //           });
+  //       	this.dispatchEvent(event);
+		// } else if (records != null && records[0].IF_Approved__c == "true" && records[0].Meeting_Approved_No__c != "" && statusList.indexOf(records[0].Approved_Status__c) != -1 ) {
+		// 	// alert("宸茬敵璇峰喅瑁佷絾鍐宠鐘舵�佷笉绗﹀悎鏉′欢銆�");
+		// 	const event = new ShowToastEvent({
+	 //            title: '鎻愮ず淇℃伅',
+	 //            message:"宸茬敵璇峰喅瑁佷絾鍐宠鐘舵�佷笉绗﹀悎鏉′欢銆�"
+  //           });
+  //       	this.dispatchEvent(event);
+		// // 20220217 ljh add OBPM甯傚満娲诲姩鑱斿姩 end
 		} else {
 			console.log("hhhh3");
 			let t=await getSessionId();
@@ -186,6 +188,7 @@
 				//bp2 alert(rs2);
 				//bp2 } else {
 				setShipment_requests({raid:null,raesid: this.id}).then(res=>{
+					console.log(res);
 					if (res == "鐘舵�佹洿鏂板埌宸插嚭搴撴寚绀�") {
 						// alert("鐘舵�佹洿鏂板埌宸插嚭搴撴寚绀�");
 						const event = new ShowToastEvent({
@@ -197,7 +200,7 @@
 							setTimeout(function() {location.href = "/"+this.RentalApplyC;}, 100);
 						});
 					} else {
-						// alert(res);
+						console.log(res);
 						const event = new ShowToastEvent({
 				            title: '鎻愮ず淇℃伅',
 				            message:res

--
Gitblit v1.9.1