From d0b899c48eb14fdd6d8d5cb72a70aec785ddd4f9 Mon Sep 17 00:00:00 2001
From: twysparks <twysparks@163.com>
Date: 星期一, 10 四月 2023 14:59:07 +0800
Subject: [PATCH] TT
---
force-app/main/default/lwc/lexSIStoOPD/lexSIStoOPD.js | 13 ++++---------
1 files changed, 4 insertions(+), 9 deletions(-)
diff --git a/force-app/main/default/lwc/lexSIStoOPD/lexSIStoOPD.js b/force-app/main/default/lwc/lexSIStoOPD/lexSIStoOPD.js
index b612e13..94f34b3 100644
--- a/force-app/main/default/lwc/lexSIStoOPD/lexSIStoOPD.js
+++ b/force-app/main/default/lwc/lexSIStoOPD/lexSIStoOPD.js
@@ -12,8 +12,6 @@
ownerId;
status;
userId;
- recordTypeId = '01210000000Qekj';
- errorMsg;
@wire(CurrentPageReference)
getStateParameters(currentPageReference) {
console.log(111);
@@ -38,7 +36,6 @@
}).then(result => {
console.log(result);
if (result != null) {
- this.IsLoading = false;
this.ownerId = result.ownerId;
this.status = result.status;
this.userId = result.userId;
@@ -48,10 +45,6 @@
console.log("error");
console.log(error);
}).finally(() => {
- console.log(this.errorMsg);
- if(this.errorMsg){
- this.showToast(this.errorMsg,"error");
- }
});
}
@@ -73,15 +66,17 @@
SIStoOPD () {
if(this.ownerId == this.userId && this.status == "鑽夋涓�") {
updateForSIStoOPDButton({
- recordId: this.recordId,
- recordTypeId: this.recordTypeId
+ recordId: this.recordId
}).then(result=>{
+ console.log(result);
if(result){
this.showToast(result,"error");
}else{
+ this.showToast("鎴愬姛","success");
this.updateRecordView(this.recordId);
}
this.dispatchEvent(new CloseActionScreenEvent());
+ this.IsLoading = false;
});
}
--
Gitblit v1.9.1