From 28719a24d8312ac35f373a27c5ba3f50f1a89eb4 Mon Sep 17 00:00:00 2001
From: twysparks <twysparks@163.com>
Date: 星期五, 19 五月 2023 16:04:38 +0800
Subject: [PATCH] 维修合同报价
---
force-app/main/default/lwc/lexCustomNewMCMaintenance/lexCustomNewMCMaintenance.js | 16 +++++-----------
1 files changed, 5 insertions(+), 11 deletions(-)
diff --git a/force-app/main/default/lwc/lexCustomNewMCMaintenance/lexCustomNewMCMaintenance.js b/force-app/main/default/lwc/lexCustomNewMCMaintenance/lexCustomNewMCMaintenance.js
index 89df914..9b81859 100644
--- a/force-app/main/default/lwc/lexCustomNewMCMaintenance/lexCustomNewMCMaintenance.js
+++ b/force-app/main/default/lwc/lexCustomNewMCMaintenance/lexCustomNewMCMaintenance.js
@@ -18,8 +18,8 @@
Id;
StatusC;
IsRecognitionModelC;
- RecordTypeId;
URFContractC;
+ RecordTypeDeveloperNameC;
@wire(CurrentPageReference)
getStateParameters(currentPageReference) {
@@ -43,9 +43,8 @@
this.Id = result.Id;
this.StatusC = result.StatusC;
this.IsRecognitionModelC = result.IsRecognitionModelC;
- this.RecordTypeId = result.RecordTypeId;
- this.RecordTypeId1 = result.RecordTypeId1;
this.URFContractC = result.URFContractC;
+ this.RecordTypeDeveloperNameC = result.RecordTypeDeveloperNameC;
this.CustomNewMC();
this.dispatchEvent(new CloseActionScreenEvent());
@@ -57,20 +56,16 @@
// 鏂板缓鏂版湇鍔″悎鍚屾姤浠�
CustomNewMC() {
- if ( this.StatusC != "寮曞悎涓�") {
+ if (this.StatusC != "寮曞悎涓�") {
alert("缁翠慨鍚堝悓涓嶆槸璇环涓殑鐘舵�侊紝涓嶈兘鏂板缓鎶ヤ环");
- window.history.go(-1);
} else {
- //缁翠慨鍚堝悓鏂板缓鎶ヤ环鏃讹紝濡傛灉鏄厛娆惧璞★紝寮瑰嚭瀵硅瘽妗嗘彁绀� thh 20220304 start
if (this.IsRecognitionModelC == 1) {
if (!confirm("璇ョ粡閿�鍟嗕负鍏堟瀵硅薄锛屾槸鍚︾户缁柊寤烘姤浠凤紵")) {
- window.history.go(-1);
return;
}
}
- //缁翠慨鍚堝悓鏂板缓鎶ヤ环鏃讹紝濡傛灉鏄厛娆惧璞★紝寮瑰嚭瀵硅瘽妗嗘彁绀� thh 20220304 end
- if (this.RecordTypeId == this.RecordTypeId1) {
- if (this.URFContractC == "0") {
+ if (this.RecordTypeDeveloperNameC == "NewMaintenance_Contract") {
+ if (this.URFContractC == 0) {
window.open("/apex/SelectAssetEstimateVM?mcid=" + this.Id, "_top");
} else {
window.open("/apex/SelectAssetEstimateURF?mcid=" + this.Id, "_top");
@@ -78,7 +73,6 @@
} else {
window.open("/apex/SelectAssetEstimate?mcid=" + this.Id, "_top");
}
-
}
}
}
\ No newline at end of file
--
Gitblit v1.9.1