From d533f39b6fa798e238810d17e928dee75d5b1af7 Mon Sep 17 00:00:00 2001
From: yumenghui <953181891@qq.com>
Date: 星期五, 11 八月 2023 16:02:17 +0800
Subject: [PATCH] 备注添加改造

---
 force-app/main/default/lwc/lexAllReceivedFse/lexAllReceivedFse.js |   11 ++++++++---
 1 files changed, 8 insertions(+), 3 deletions(-)

diff --git a/force-app/main/default/lwc/lexAllReceivedFse/lexAllReceivedFse.js b/force-app/main/default/lwc/lexAllReceivedFse/lexAllReceivedFse.js
index f6ebf2b..f97ad18 100644
--- a/force-app/main/default/lwc/lexAllReceivedFse/lexAllReceivedFse.js
+++ b/force-app/main/default/lwc/lexAllReceivedFse/lexAllReceivedFse.js
@@ -25,13 +25,15 @@
 		init({
 			recordId: this.recordId
 		}).then(res=>{
-			if(res.LoanerReceivedNgNum == 0){
+			console.log('loanerReceivedNgNum==='+ res.loanerReceivedNgNum);
+			if(res.loanerReceivedNgNum == 0){
 				const evt = new ShowToastEvent({
                         title : '鐜板満宸茬粡鍏ㄩ儴鏀跺埌瀹炵墿浜�',
                         message: '',
-                        variant: 'success'
+                        variant: 'error'
                     });
                 this.dispatchEvent(evt);
+                this.dispatchEvent(new CloseActionScreenEvent());
 			}else{
 				getRaeSet({
 					recordId: this.recordId
@@ -57,9 +59,12 @@
 					}
 					
 				})
+				.catch(err=>{
+					console.log('getRaeSet==='+err);
+				})
 			}
 		}).catch(err=>{
-			console.log(err);
+			console.log('init==='+err);
 		})
 	}
 }
\ No newline at end of file

--
Gitblit v1.9.1