From 6b61c19fd8f32ee060fec698905b4727807e0ff7 Mon Sep 17 00:00:00 2001 From: 游畅 <youchang@prec-tech.com> Date: 星期日, 24 四月 2022 17:05:33 +0800 Subject: [PATCH] 再来的新数据:新建的时候待入职的就不新建,只有在职的新建。 现在已经新建了的待入职,什么时候状态变在职,什么时候再更新一次,之后也是除非状态再变离职,否则不更新。 --- force-app/main/default/objects/Maintenance_Contract_Estimate__c/webLinks/CustomNewMC.webLink-meta.xml | 17 +++++++++++++++-- 1 files changed, 15 insertions(+), 2 deletions(-) diff --git a/force-app/main/default/objects/Maintenance_Contract_Estimate__c/webLinks/CustomNewMC.webLink-meta.xml b/force-app/main/default/objects/Maintenance_Contract_Estimate__c/webLinks/CustomNewMC.webLink-meta.xml index 39a798c..4904016 100644 --- a/force-app/main/default/objects/Maintenance_Contract_Estimate__c/webLinks/CustomNewMC.webLink-meta.xml +++ b/force-app/main/default/objects/Maintenance_Contract_Estimate__c/webLinks/CustomNewMC.webLink-meta.xml @@ -9,9 +9,19 @@ <openType>onClickJavaScript</openType> <protected>false</protected> <requireRowSelection>false</requireRowSelection> - <url>if ("{!Maintenance_Contract__c.Status__c}" != "寮曞悎涓�") { + <url>{!RequireScript("/soap/ajax/51.0/connection.js")} +{!RequireScript('/resource/1600400985000/CommonUtilJs')} +var foo = function() { +if ("{!Maintenance_Contract__c.Status__c}" != "寮曞悎涓�") { alert("缁翠慨鍚堝悓涓嶆槸璇环涓殑鐘舵�侊紝涓嶈兘鏂板缓鎶ヤ环"); } else { + //缁翠慨鍚堝悓鏂板缓鎶ヤ环鏃讹紝濡傛灉鏄厛娆惧璞★紝寮瑰嚭瀵硅瘽妗嗘彁绀� thh 20220304 start + if("{!Maintenance_Contract__c.Is_RecognitionModel__c}" == 1){ + if(!confirm("璇ョ粡閿�鍟嗕负鍏堟瀵硅薄锛屾槸鍚︾户缁柊寤烘姤浠凤紵")){ + return; + } + } + //缁翠慨鍚堝悓鏂板缓鎶ヤ环鏃讹紝濡傛灉鏄厛娆惧璞★紝寮瑰嚭瀵硅瘽妗嗘彁绀� thh 20220304 end if("{!Maintenance_Contract__c.RecordTypeId}" == "01210000000gTYq"){ if( "{!Maintenance_Contract__c.URF_Contract__c}" == "0" ){ window.open( "/apex/SelectAssetEstimateVM?mcid={!URLENCODE(Maintenance_Contract__c.Id)}", "_top"); @@ -22,5 +32,8 @@ window.open( "/apex/SelectAssetEstimate?mcid={!URLENCODE(Maintenance_Contract__c.Id)}", "_top"); } -}</url> +} + +} +foo();</url> </WebLink> -- Gitblit v1.9.1