From deccb99e1d6b3fc8d8a66ca41980e0962b716c8a Mon Sep 17 00:00:00 2001
From: zz <1842059105@qq.com>
Date: 星期二, 30 五月 2023 17:55:51 +0800
Subject: [PATCH] 签收单 页面修改"验收确认(经销商)"、"验收确认(医院)"
---
force-app/main/default/lwc/lexInsPageBtn/lexInsPageBtn.js | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/force-app/main/default/lwc/lexInsPageBtn/lexInsPageBtn.js b/force-app/main/default/lwc/lexInsPageBtn/lexInsPageBtn.js
index e0c1dbd..ed7e85f 100644
--- a/force-app/main/default/lwc/lexInsPageBtn/lexInsPageBtn.js
+++ b/force-app/main/default/lwc/lexInsPageBtn/lexInsPageBtn.js
@@ -17,6 +17,7 @@
IsLoading = true;
Id;
RecordTypeId;
+ RecordType;
@wire(CurrentPageReference)
getStateParameters(currentPageReference) {
@@ -38,21 +39,20 @@
this.IsLoading = false;
this.Id = result.Id;
this.RecordTypeId = result.RecordTypeId;
+ this.RecordType = result.RecordType;
this.insPageBtn();
this.dispatchEvent(new CloseActionScreenEvent());
}
}).catch(error => {
console.log(error);
- }).finally(() => {
-
- });
+ })
}
// 鎶ュ憡涔︽槑缁嗙紪杈�
insPageBtn() {
var url;
- if (this.RecordTypeId == '01210000000aLii') {
+ if (this.RecordType == 'ContractInspection') {
url = '/apex/OFSInsReportLayoutForVm';
} else {
url = '/apex/OFSInsReportLayout';
--
Gitblit v1.9.1