From 07390e2fcb4adf27c928335bf27ae7939c5a80ad Mon Sep 17 00:00:00 2001
From: buli <137736985@qq.com>
Date: 星期二, 23 五月 2023 11:28:12 +0800
Subject: [PATCH] bakcup20230523

---
 force-app/main/default/lwc/lexCustomNewMCMaintenance/lexCustomNewMCMaintenance.js |   13 +++++--------
 1 files changed, 5 insertions(+), 8 deletions(-)

diff --git a/force-app/main/default/lwc/lexCustomNewMCMaintenance/lexCustomNewMCMaintenance.js b/force-app/main/default/lwc/lexCustomNewMCMaintenance/lexCustomNewMCMaintenance.js
index 9adcd42..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,8 +43,8 @@
                 this.Id = result.Id;
                 this.StatusC = result.StatusC;
                 this.IsRecognitionModelC = result.IsRecognitionModelC;
-                this.RecordTypeId = result.RecordTypeId;
                 this.URFContractC = result.URFContractC;
+                this.RecordTypeDeveloperNameC = result.RecordTypeDeveloperNameC;
 
                 this.CustomNewMC();
                 this.dispatchEvent(new CloseActionScreenEvent());
@@ -56,18 +56,16 @@
 
     // 鏂板缓鏂版湇鍔″悎鍚屾姤浠�	
     CustomNewMC() {
-        if ( this.StatusC != "寮曞悎涓�") {
+        if (this.StatusC != "寮曞悎涓�") {
             alert("缁翠慨鍚堝悓涓嶆槸璇环涓殑鐘舵�侊紝涓嶈兘鏂板缓鎶ヤ环");
         } else {
-            //缁翠慨鍚堝悓鏂板缓鎶ヤ环鏃讹紝濡傛灉鏄厛娆惧璞★紝寮瑰嚭瀵硅瘽妗嗘彁绀� thh 20220304 start
             if (this.IsRecognitionModelC == 1) {
                 if (!confirm("璇ョ粡閿�鍟嗕负鍏堟瀵硅薄锛屾槸鍚︾户缁柊寤烘姤浠凤紵")) {
                     return;
                 }
             }
-            //缁翠慨鍚堝悓鏂板缓鎶ヤ环鏃讹紝濡傛灉鏄厛娆惧璞★紝寮瑰嚭瀵硅瘽妗嗘彁绀� thh 20220304 end
-            if (this.RecordTypeId == "01210000000gTYq") {
-                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");
@@ -75,7 +73,6 @@
             } else {
                 window.open("/apex/SelectAssetEstimate?mcid=" + this.Id, "_top");
             }
-
         }
     }
 }
\ No newline at end of file

--
Gitblit v1.9.1