From a2dbc98cd7d7925d6ed2b1b3d454aba9610e23c5 Mon Sep 17 00:00:00 2001
From: zhangzhengmei <zhangzhengmei@prec-tech.com>
Date: 星期四, 18 五月 2023 14:04:10 +0800
Subject: [PATCH] 新建新服务合同报价

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

diff --git a/force-app/main/default/lwc/lexCustomNewMCMaintenance/lexCustomNewMCMaintenance.js b/force-app/main/default/lwc/lexCustomNewMCMaintenance/lexCustomNewMCMaintenance.js
index 9adcd42..89df914 100644
--- a/force-app/main/default/lwc/lexCustomNewMCMaintenance/lexCustomNewMCMaintenance.js
+++ b/force-app/main/default/lwc/lexCustomNewMCMaintenance/lexCustomNewMCMaintenance.js
@@ -44,6 +44,7 @@
                 this.StatusC = result.StatusC;
                 this.IsRecognitionModelC = result.IsRecognitionModelC;
                 this.RecordTypeId = result.RecordTypeId;
+                this.RecordTypeId1 = result.RecordTypeId1;
                 this.URFContractC = result.URFContractC;
 
                 this.CustomNewMC();
@@ -58,15 +59,17 @@
     CustomNewMC() {
         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 == "01210000000gTYq") {
+            if (this.RecordTypeId == this.RecordTypeId1) {
                 if (this.URFContractC == "0") {
                     window.open("/apex/SelectAssetEstimateVM?mcid=" + this.Id, "_top");
                 } else {

--
Gitblit v1.9.1