123
chenjingwu
2024-04-23 b51b57a619d3f0075ccaa13303c99c9e849bf23a
force-app/main/default/pages/MaintenanceProductData.page
@@ -1623,48 +1623,59 @@
    refreshinput6();
    </script>
                </apex:pageBlock>
                <!-- chenjingwu 20240417 start -->
                <apex:pageblocksection title="{!IF(editAble,'延保信息维护','延保信息维护(蓝色为新值)')}" id="exmpdDetails" rendered="{!IF(mpdDetailsRecordsCount >0,true,false)}" html-style="width: 100%;max-height:210px;;overflow:auto;">
                    <table class="list" border="0" cellpadding="0" cellspacing="0">
                        <tr class="headerRow">
                            <th>产品名称</th>
                            <th>延保年限</th>
                            <th>延保金额</th>
                            <th>计提金额</th>
                            <th>操作</th>
                        </tr>
                        <apex:repeat value="{!mpdDetailsRecords}" var="aa" id="bb1">
                            <tr>
                            <td class="dataCell" rowspan="{!muCountMap[aa.mpded.ProductsID__c]}">
                                <apex:outputText value="{!aa.mpded.ProductsID__r.Name}"/>
                            </td>
                            <td>
                                <apex:outputText value="{!muMap[aa.mpded.ProductsID__c][0].AgeLimit__c}"/>
                            </td>
                            <td>
                                <apex:outputText value="{!muMap[aa.mpded.ProductsID__c][0].MultiOneYearWarrantyPrice__c}"/>
                            </td>
                            <td>
                                <apex:outputText value="{!muMap[aa.mpded.ProductsID__c][0].AmountWithheld__c}"/>
                            </td>
                            <td>
                            </td>
                <!-- chenjingwu 20240417    start -->
                <apex:pageblocksection title="{!IF(editAble,'延保信息维护','延保信息维护(蓝色为新值)')}" id="exmpdDetails" rendered="{!IF(muMap!=null&&muCountMap!=null,true,false)}" html-style="width: 100%;max-height:210px;;overflow:auto;">
                    <apex:outputLabel style="width: 100%;">
                        <table class="list">
                            <tr class="headerRow">
                                <th>产品名称</th>
                                <th>延保年限</th>
                                <th>延保金额</th>
                                <th>计提金额</th>
                                <th>操作</th>
                            </tr>
                            <apex:repeat value="{!muMap[aa.mpded.ProductsID__c]}" var = "mu" id="cc" first="1">
                            <tr>
                                <td>
                                    <apex:outputText value="{!mu.AgeLimit__c}"/>
                                </td>
                                <td>
                                    <apex:outputText value="{!mu.MultiOneYearWarrantyPrice__c}"/>
                                </td>
                                <td>
                                    <apex:outputText value="{!mu.AmountWithheld__c}"/>
                                </td>
                            <tr >
                                <apex:repeat value="{!mpdDetailsRecords}" var="mp" id="aa">
                                    <tr>
                                        <td class="dataCell" rowspan="{!IF(muCountMap[mp.mpded.ProductsID__c] > 1,muCountMap[mp.mpded.ProductsID__c],1)}">
                                            {!mp.mpded.ProductsID__r.Name}
                                        </td>
                                        <td class="dataCell">
                                            <apex:InputField value="{!muMap[mp.mpded.ProductsID__c][0].AgeLimit__c}" id="AgeLimit" />
                                        </td>
                                        <td class="dataCell">
                                            <apex:InputField value="{!muMap[mp.mpded.ProductsID__c][0].MultiOneYearWarrantyPrice__c}" id="MultiOneYearWarrantyPrice" />
                                        </td>
                                        <td class="dataCell">
                                            <apex:InputField value="{!muMap[mp.mpded.ProductsID__c][0].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;"/>
                                        </td>
                                    </tr>
                                    <apex:repeat value="{!muMap[mp.mpded.ProductsID__c]}" var="mu" id="bb1" first="1">
                                        <tr>
                                            <td class="dataCell">
                                                <apex:InputField value="{!mu.AgeLimit__c}" id="AgeLimit" />
                                            </td>
                                            <td class="dataCell">
                                                <apex:InputField value="{!mu.MultiOneYearWarrantyPrice__c}" id="MultiOneYearWarrantyPrice" />
                                            </td>
                                            <td class="dataCell">
                                                <apex:InputField value="{!mu.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;"/>
                                            </td>
                                        </tr>
                                    </apex:repeat>
                                </apex:repeat>
                            </tr>
                            </apex:repeat>
                        </apex:repeat>
                    </table>
                        </table>
                    </apex:outputLabel>
                </apex:pageblocksection>
                <!-- chenjingwu 20240417 end -->
            </apex:pageBlock>