123
chenjingwu
2024-04-25 26d2a3831229b7e372e11e42eed842d82ba434bb
force-app/main/default/pages/MaintenanceProductData.page
@@ -1657,7 +1657,7 @@
                                                <apex:InputField value="{!exmpdDetailsRecordsMap[mp.mpded.ProductsID__c][0].mpdrdd.AmountWithheld__c}" id="AmountWithheld" />
                                            </td>
                                            <td>
                                                <apex:commandButton id="add" onclick="addJs();" value="添加" style="position:relative;width:100px;"/>
                                                <apex:commandButton id="add" onclick="addJs(this);" value="添加" style="position:relative;width:100px;"/>
                                                <apex:commandButton id="delete" onclick="deleteJs();" value="删除" style="position:relative;width:100px;"/>
                                            </td>
                                        </tr>
@@ -1673,8 +1673,8 @@
                                                    <apex:InputField value="{!mu.mpdrdd.AmountWithheld__c}" id="AmountWithheld" />
                                                </td>
                                                <td>
                                                    <apex:commandButton id="add1" onclick="addJs();" value="添加" style="position:relative;width:100px;"/>
                                                    <apex:commandButton id="delete1" onclick="deleteJs();" value="删除" style="position:relative;width:100px;"/>
                                                    <apex:commandButton id="add1" onclick="addJs(this);" value="添加" style="position:relative;width:100px;"/>
                                                    <apex:commandButton id="delete1" onclick="deleteJs(this);" value="删除" style="position:relative;width:100px;"/>
                                                </td>
                                            </tr>
                                        </apex:repeat>
@@ -1727,8 +1727,11 @@
                    
                </apex:pageblocksection>
                <script type="text/javascript">
                    function addJs(){
                    function addJs(el){
                        if(el.id){
                            var index = el.id.substring(el.id.lastIndexOf('aa:') + 3,el.id.length - 4);
                        }
                        console.log(index);
                    }
                </script>
                <!-- chenjingwu 20240417 end -->