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/lexServiceCutPriceApply/lexServiceCutPriceApply.js | 11 ++++++++---
1 files changed, 8 insertions(+), 3 deletions(-)
diff --git a/force-app/main/default/lwc/lexServiceCutPriceApply/lexServiceCutPriceApply.js b/force-app/main/default/lwc/lexServiceCutPriceApply/lexServiceCutPriceApply.js
index 26b7f7d..6aa856d 100644
--- a/force-app/main/default/lwc/lexServiceCutPriceApply/lexServiceCutPriceApply.js
+++ b/force-app/main/default/lwc/lexServiceCutPriceApply/lexServiceCutPriceApply.js
@@ -59,7 +59,6 @@
this.ServiceCutPriceApply();
}
})
- this.dispatchEvent(new CloseActionScreenEvent());
}
}).catch(error => {
console.log(error);
@@ -74,15 +73,18 @@
if (power != '2F2A_RC' && power != '2F4_鎶�鏈帹杩涢儴' && power != '2F4_鎶�鏈帹杩涢儴_闈濻SO') {
this.ShowToastEvent("瀵逛笉璧凤紝鎮ㄦ病鏈夋潈闄愭彁浜ゆ鐢宠锛�", "error");
+ this.dispatchEvent(new CloseActionScreenEvent());
return;
}
var status = this.CutPriceStatusServiceC;
if (status == '瀹℃壒涓�') {
this.ShowToastEvent("瀹℃壒鎻愪氦鎴愬姛,褰撳墠姝e湪瀹℃壒璇峰嬁鍐嶆彁浜わ紒", "error");
+ this.dispatchEvent(new CloseActionScreenEvent());
return;
}
if (status == '鎵瑰噯') {
this.ShowToastEvent("瀹℃壒宸叉壒鍑�,璇峰嬁鍐嶆彁浜わ紒", "error");
+ this.dispatchEvent(new CloseActionScreenEvent());
return;
}
if (status == '鑽夋涓�' || status == undefined || status == '椹冲洖') {
@@ -92,7 +94,8 @@
console.log(result);
if (result.length > 0) {
var split = result.split(", ");
- alert(split[1]);
+ this.ShowToastEvent(split[1], "error");
+ this.dispatchEvent(new CloseActionScreenEvent());
return;
}
})
@@ -102,11 +105,13 @@
console.log(result);
if (result.length > 0) {
var split = result.split(", ");
- alert("鎻愪氦澶辫触 " + split[1]);
+ this.ShowToastEvent("鎻愪氦澶辫触 " + split[1], "error");
+ this.dispatchEvent(new CloseActionScreenEvent());
return;
} else {
this.ShowToastEvent("瀹℃壒鎻愪氦鎴愬姛锛�", "success");
location.reload();
+ this.dispatchEvent(new CloseActionScreenEvent());
}
})
}
--
Gitblit v1.9.1