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/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