From 23ae1af2a3f7ffded0aa91c1d4943e5117fe3c75 Mon Sep 17 00:00:00 2001
From: chenjingwu <chenjingwu@prec-tech.com>
Date: 星期四, 25 四月 2024 10:57:32 +0800
Subject: [PATCH] 123

---
 force-app/main/default/pages/MaintenanceProductData.page |   19 ++++++++++++-------
 1 files changed, 12 insertions(+), 7 deletions(-)

diff --git a/force-app/main/default/pages/MaintenanceProductData.page b/force-app/main/default/pages/MaintenanceProductData.page
index c3bb82a..2ddcb7b 100644
--- a/force-app/main/default/pages/MaintenanceProductData.page
+++ b/force-app/main/default/pages/MaintenanceProductData.page
@@ -1632,7 +1632,7 @@
                 <!-- chenjingwu 20240417    start -->
                 <apex:pageblocksection title="{!IF(editAble,'寤朵繚淇℃伅缁存姢','寤朵繚淇℃伅缁存姢(钃濊壊涓烘柊鍊�)')}" id="exmpdDetails" rendered="{!IF(exmpdDetailsRecordsMap!=null&&muCountMap!=null,true,false)}" html-style="width: 100%;max-height:210px;;overflow:auto;">
                     <apex:outputLabel style="width: 100%;">
-                        <apex:variable var="edvun" value="" rendered="{!editAble}">
+                        <apex:variable var="edvun" value="" rendered="{!editAble}" id="Edit">
                             <table class="list">
                                 <tr class="headerRow">
                                     <th>浜у搧鍚嶇О</th>
@@ -1648,7 +1648,7 @@
                                                 {!mp.mpded.ProductsID__r.Name}
                                             </td>
                                             <td class="dataCell">
-                                                <apex:InputField value="{!exmpdDetailsRecordsMap[mp.mpded.ProductsID__c][0].mpdrdd.AgeLimit__c}" id="AgeLimit" />
+                                                <apex:InputField value="{!exmpdDetailsRecordsMap[mp.mpded.ProductsID__c][0].mpdrdd.AgeLimit__c}" id="AgeLimit" onchange="ageLimitChange(this)"/>
                                             </td>
                                             <td class="dataCell">
                                                 <apex:InputField value="{!exmpdDetailsRecordsMap[mp.mpded.ProductsID__c][0].mpdrdd.MultiOneYearWarrantyPrice__c}" id="MultiOneYearWarrantyPrice" />
@@ -1657,8 +1657,8 @@
                                                 <apex:InputField value="{!exmpdDetailsRecordsMap[mp.mpded.ProductsID__c][0].mpdrdd.AmountWithheld__c}" id="AmountWithheld" />
                                             </td>
                                             <td>
-                                                <apex:commandButton onclick="addJs();" value="娣诲姞" style="position:relative;width:100px;"/>  
-                                                <apex:commandButton onclick="deleteJs();" value="鍒犻櫎" style="position:relative;width:100px;"/>
+                                                <apex:commandButton id="add" onclick="addJs();" value="娣诲姞" style="position:relative;width:100px;"/>  
+                                                <apex:commandButton id="delete" onclick="deleteJs();" value="鍒犻櫎" style="position:relative;width:100px;"/>
                                             </td>
                                         </tr>
                                         <apex:repeat value="{!exmpdDetailsRecordsMap[mp.mpded.ProductsID__c]}" var="mu" id="bb1" first="1">
@@ -1673,8 +1673,8 @@
                                                     <apex:InputField value="{!mu.mpdrdd.AmountWithheld__c}" id="AmountWithheld" />
                                                 </td>
                                                 <td>
-                                                    <apex:commandButton onclick="addJs();" value="娣诲姞" style="position:relative;width:100px;"/>  
-                                                    <apex:commandButton onclick="deleteJs();" value="鍒犻櫎" style="position:relative;width:100px;"/>
+                                                    <apex:commandButton id="add1" onclick="addJs();" value="娣诲姞" style="position:relative;width:100px;"/>  
+                                                    <apex:commandButton id="delete1" onclick="deleteJs();" value="鍒犻櫎" style="position:relative;width:100px;"/>
                                                 </td>
                                             </tr>
                                         </apex:repeat>
@@ -1682,7 +1682,7 @@
                                 </tr>
                             </table>
                         </apex:variable>
-                        <apex:variable var="edvun" value="" rendered="{!!editAble}">
+                        <apex:variable var="edvun" value="" rendered="{!!editAble}" id="View">
                             <table class="list">
                                 <tr class="headerRow">
                                     <th>浜у搧鍚嶇О</th>
@@ -1726,6 +1726,11 @@
                     </apex:outputLabel>
                     
                 </apex:pageblocksection>
+                <script type="text/javascript">
+                    function addJs(){
+
+                    }
+                </script>
                 <!-- chenjingwu 20240417 end -->
             </apex:pageBlock>
         </apex:outputPanel>

--
Gitblit v1.9.1