From 0f1e5f2dd1b07eaab637261047741b02f2e4b60b Mon Sep 17 00:00:00 2001
From: zhangzhengmei <zhangzhengmei@prec-tech.com>
Date: 星期六, 06 五月 2023 09:46:04 +0800
Subject: [PATCH] 签收单->查看附件 lwc改造
---
force-app/main/default/lwc/lexTenderingUsedAttachmentButton/lexTenderingUsedAttachmentButton.js | 14 +++++++++++---
1 files changed, 11 insertions(+), 3 deletions(-)
diff --git a/force-app/main/default/lwc/lexTenderingUsedAttachmentButton/lexTenderingUsedAttachmentButton.js b/force-app/main/default/lwc/lexTenderingUsedAttachmentButton/lexTenderingUsedAttachmentButton.js
index 7c0e891..ad4fa58 100644
--- a/force-app/main/default/lwc/lexTenderingUsedAttachmentButton/lexTenderingUsedAttachmentButton.js
+++ b/force-app/main/default/lwc/lexTenderingUsedAttachmentButton/lexTenderingUsedAttachmentButton.js
@@ -27,10 +27,14 @@
this.id = result.Id;
this.AttachmentButton();
this.dispatchEvent(new CloseActionScreenEvent());
- })
+ }).catch(error => {
+ console.log("error"+error);
+ }).finally(() => {
+
+ });
}
- //鎷涙爣椤圭洰 鏌ョ湅闄勪欢(鏃�)
+ //鏌ョ湅闄勪欢(鏃�)
AttachmentButton(){
window.open(`/apex/QLMAttachmentPreview?parentId=${this.id}`);
}
@@ -41,6 +45,10 @@
variant: type
});
this.dispatchEvent(event);
- this.dispatchEvent(new CloseActionScreenEvent());
}
}
+
+// var From= function(){
+// window.open( "/apex/QLMAttachmentPreview?parentId={!URLENCODE(Tender_information__c.Id)}");
+// }
+// From();
\ No newline at end of file
--
Gitblit v1.9.1