From fded535904cc3afbff02db835b9691728413f0d6 Mon Sep 17 00:00:00 2001
From: 涂煌豪 <tuhuanghao@prec-tech.com>
Date: 星期五, 08 四月 2022 15:49:55 +0800
Subject: [PATCH] 先款后修-服务合同报价页面修改
---
force-app/main/default/pages/NewConsumApply.page | 17 ++++++++++++++++-
1 files changed, 16 insertions(+), 1 deletions(-)
diff --git a/force-app/main/default/pages/NewConsumApply.page b/force-app/main/default/pages/NewConsumApply.page
index 73dd489..7af6237 100644
--- a/force-app/main/default/pages/NewConsumApply.page
+++ b/force-app/main/default/pages/NewConsumApply.page
@@ -2,7 +2,7 @@
@description :
@author : ChangeMeIn@UserSettingsUnder.SFDoc
@group :
- @last modified on : 03-28-2022
+ @last modified on : 03-30-2022
@last modified by : ChangeMeIn@UserSettingsUnder.SFDoc
-->
<apex:page standardController="Consum_Apply__c" extensions="NewConsumApplyController" id="page">
@@ -413,6 +413,7 @@
<script>
//Append Page
sfdcPage.appendToOnloadQueue(function () {
+ debugger
var layoutSections = JSON.parse('{!layoutSectionsStr}');
for (let m = 0; m < layoutSections.length; m++) {
let layoutSection = layoutSections[m].layoutFields;
@@ -428,6 +429,20 @@
if (e.tagName == 'DIV') {
e.classList.add("disabledbutton");
}
+ // let id = 'page:form:block:j_id34:10:j_id35:j_id36:0:j_id37';
+ // let id2 = 'page:form:block:j_id34:9:j_id35:j_id36:0:j_id37'
+ // let lookUpSuffix = '_lkwgt';
+ // // if(document.getElementById(id)){
+ // // document.getElementById(id).classList.add("disabledbutton");
+ // // document.getElementById(id + lookUpSuffix).classList.add("disabledbutton");
+ // // }
+ // if(document.getElementById(id2)){
+ // document.getElementById(id2 + lookUpSuffix).classList.add("disabledbutton");
+ // }
+ if(document.querySelectorAll("[data-id='Old_Consum_Apply__c']")){
+ document.querySelectorAll("[data-id='Old_Consum_Apply__c']")[0].classList.add("disabledbutton")
+ document.querySelectorAll("[data-id='Old_Consum_Apply__c']")[1].classList.add("disabledbutton")
+ }
}
}
}
--
Gitblit v1.9.1