123
chenjingwu
2024-04-25 1941179bde85ea75f56ea5b141dabea826227acd
force-app/main/default/pages/MaintenanceProductData.page
@@ -1660,6 +1660,7 @@
                                                <apex:InputField value="{!exmpdDetailsRecordsMap[mp.mpded.ProductsID__c][0].mpdrdd.AmountWithheld__c}" id="AmountWithheld" />
                                            </td>
                                            <td>
                                                <apex:image id="plusicon" value="{!$Resource.plusicon}" onclick="addJs({!mp.mpded.ProductsID__c});" />
                                                <apex:commandButton  title="{!mp.mpded.ProductsID__c}" id="add" onclick="addJs(this);" value="添加" style="position:relative;width:100px;"/>  
                                                <apex:commandButton  title="{!mp.mpded.ProductsID__c}" id="delete" onclick="deleteJs(this);" value="删除" style="position:relative;width:100px;"/>
                                            </td>
@@ -1731,14 +1732,17 @@
                </apex:pageblocksection>
                <script type="text/javascript">
                    function addJs(el){
                        console.log(el.title);
                        addEx(el.title);
                        blockme();
                        console.log(el);
                        addEx(el);
                    }
                    function add1Js(el){
                        blockme();
                        console.log(el.title);
                        addEx(el.title);
                    }
                    function delJs(el){
                        blockme();
                        console.log(el.title);
                        deleteEx(el.title,0);