From 8749760be3e1ba64edd4ada506bdf628e5bee852 Mon Sep 17 00:00:00 2001
From: unknown <sunxia@prec-tech.com>
Date: 星期三, 23 八月 2023 14:54:38 +0800
Subject: [PATCH] 再修理返品分析-修理 按钮
---
force-app/main/default/lwc/lexCreateInstructReport/lexCreateInstructReport.js | 9 +++++++--
1 files changed, 7 insertions(+), 2 deletions(-)
diff --git a/force-app/main/default/lwc/lexCreateInstructReport/lexCreateInstructReport.js b/force-app/main/default/lwc/lexCreateInstructReport/lexCreateInstructReport.js
index df27f2b..a1fe2e8 100644
--- a/force-app/main/default/lwc/lexCreateInstructReport/lexCreateInstructReport.js
+++ b/force-app/main/default/lwc/lexCreateInstructReport/lexCreateInstructReport.js
@@ -17,6 +17,7 @@
IsLoading = true;
Id;
Status;
+ msg;
@wire(CurrentPageReference)
getStateParameters(currentPageReference) {
@@ -35,7 +36,6 @@
}).then(result => {
console.log(result);
if (result != null) {
- this.IsLoading = false;
this.Id = result.Id;
this.Status = result.Status;
@@ -53,7 +53,12 @@
if (status == '鍏紑涓�') {
window.open("/apex/InstructReport?camid=" + this.Id, "_top");
} else {
- alert("鍙湁鎵瑰噯鍚庢墠鑳藉垱寤烘姤鍛�!")
+ this.msg = '鍙湁鎵瑰噯鍚庢墠鑳藉垱寤烘姤鍛�!';
+ this.IsLoading = false;
}
}
+
+ closeAction() {
+ window.history.go(-1);
+ }
}
\ No newline at end of file
--
Gitblit v1.9.1