From 6e454c8c1add1d654334df3089770245f043bb2e Mon Sep 17 00:00:00 2001
From: zhangqian <zhangqian@prec-tech.com>
Date: 星期二, 18 七月 2023 20:30:38 +0800
Subject: [PATCH] 调拨发货 收货 耗材页面 分单 备品出借 应答沟通:To:备品中心/To:申请者 耗材 应答沟通-To:备品中心/To:申请者 备品出借的应答沟通 耗材申请的应答沟通
---
force-app/main/default/lwc/lexCancelApply/lexCancelApply.js | 11 +++++++----
1 files changed, 7 insertions(+), 4 deletions(-)
diff --git a/force-app/main/default/lwc/lexCancelApply/lexCancelApply.js b/force-app/main/default/lwc/lexCancelApply/lexCancelApply.js
index 04cee1d..e973f99 100644
--- a/force-app/main/default/lwc/lexCancelApply/lexCancelApply.js
+++ b/force-app/main/default/lwc/lexCancelApply/lexCancelApply.js
@@ -37,8 +37,7 @@
label: 'this is the aria-label value',
}).then(cancel=>{
- // this.IsLoading=false;
- // this.dispatchEvent(new CloseActionScreenEvent());
+
if(cancel) {
cancelApply({
taId : this.recordId
@@ -55,6 +54,9 @@
});
+ } else {
+ this.IsLoading=false;
+ this.dispatchEvent(new CloseActionScreenEvent());
}
});
@@ -65,8 +67,9 @@
async cancelSubmit(){
if(this.cancelResult == '1') {
await this.showToast("",'鍙栨秷鎴愬姛',"success");
- window.location.href = window.location;
-
+ setTimeout(function(){
+ window.location.href = window.location;
+ }, 1500 )
} else {
console.log("result:",this.cancelResult);
await this.showToast("",this.cancelResult,"warning");
--
Gitblit v1.9.1