From e15f4679a2b71a186aa9e87cd49b4ab9c249cc63 Mon Sep 17 00:00:00 2001
From: 张宇恒 <bxyun0@163.com>
Date: 星期二, 08 八月 2023 18:20:47 +0800
Subject: [PATCH] 新品收货样式、颜色、显示margin

---
 force-app/main/default/lwc/lexReturnDeliverySlipConsumApply/lexReturnDeliverySlipConsumApply.js |   12 ++++++++----
 1 files changed, 8 insertions(+), 4 deletions(-)

diff --git a/force-app/main/default/lwc/lexReturnDeliverySlipConsumApply/lexReturnDeliverySlipConsumApply.js b/force-app/main/default/lwc/lexReturnDeliverySlipConsumApply/lexReturnDeliverySlipConsumApply.js
index e2bf008..a749001 100644
--- a/force-app/main/default/lwc/lexReturnDeliverySlipConsumApply/lexReturnDeliverySlipConsumApply.js
+++ b/force-app/main/default/lwc/lexReturnDeliverySlipConsumApply/lexReturnDeliverySlipConsumApply.js
@@ -22,12 +22,16 @@
 		init({
 			recordId: this.recordId
 		}).then(res=>{
-			if(!res.flag){
+			if(res){
+				if(!res.flag){
 				this.showToast('鏈畬鎴愬埌璐х‘璁ゆ垨澶囧搧涓績鏈‘璁や笉鑳戒笂浼犺瘯鐢ㄨ〃','warning');
 				return;
-			}
-			if(res.size > 0){
-				window.open("/apex/consumTrialConfirm?id=" + this.recordId); 
+				}
+				if(res.size > 0){
+					this.dispatchEvent(new CloseActionScreenEvent());
+					window.open("/apex/consumTrialConfirm?id=" + this.recordId); 
+					return;
+				}
 			}
 		})
 	}

--
Gitblit v1.9.1