FUYU
2023-05-19 559771a80cf779dc13a84ecd2f178e6ca5a8353a
force-app/main/default/pages/MaintenanceContractEstimateVMPDF.page
@@ -49,12 +49,16 @@
            </table>
            <table width="100%" cellspacing="0" cellpadding="0" >
                <tr>
                    <td width="15%">&nbsp;</td>
                    <td width="3%">&nbsp;</td>
                    <td width="7%">&nbsp;</td>
                    <td width="15%">&nbsp;</td>
                    <td width="12%">&nbsp;</td>
                    <td width="2%">&nbsp;</td>
                    <td width="2%">&nbsp;</td>
                    <td width="20%">&nbsp;</td>
                    <td width="5%">&nbsp;</td>
                    <td width="3%">&nbsp;</td>
                    <td width="2%">&nbsp;</td>
                    <td width="20%">&nbsp;</td>
                    <td width="2%">&nbsp;</td>
                    <td width="2%">&nbsp;</td>
                    <td width="2%">&nbsp;</td>
                    <td>&nbsp;</td>
                </tr>
                <tr>
@@ -64,6 +68,14 @@
                    <td>科室</td>
                    <td>:</td>
                    <td>{!targetObj.estimate.Department__c}</td>
                    <!-- URF限次合同2期 XXF 20220818 start -->
                    <apex:outputPanel rendered="{!targetObj.estimate.URF_Contract__c}" layout="none">
                        <td colspan="2">是否限次合同</td>
                        <td >:</td>
                        <td >是</td>
                    </apex:outputPanel>
                    <!-- URF限次合同2期 XXF 20220818 end -->
                </tr>
                <tr>
                    <td>合同类型</td>
@@ -72,11 +84,23 @@
                    <td>是否续签</td>
                    <td>:</td>
                    <apex:outputPanel rendered="{!(targetObj.estimate.New_Contract_Type_TxT__c == '新品合同' || targetObj.estimate.New_Contract_Type_TxT__c == '首签合同')}" layout="none">
                        <td colspan="2">新签合同</td>
                        <td colspan="1">新签合同</td>
                    </apex:outputPanel>
                    <apex:outputPanel rendered="{!(targetObj.estimate.New_Contract_Type_TxT__c == '续签合同' || targetObj.estimate.New_Contract_Type_TxT__c == '非续签合同')}" layout="none">
                       <td colspan="2">续签合同</td>
                       <td colspan="1">续签合同</td>
                    </apex:outputPanel>
                    <!-- URF限次合同2期 XXF 20220905 start -->
                    <apex:outputPanel rendered="{!(targetObj.estimate.New_Contract_Type_TxT__c != '新品合同' && targetObj.estimate.New_Contract_Type_TxT__c != '首签合同' && targetObj.estimate.New_Contract_Type_TxT__c != '续签合同' && targetObj.estimate.New_Contract_Type_TxT__c != '非续签合同')}" layout="none">
                        <td colspan="1"></td>
                    </apex:outputPanel>
                    <!-- URF限次合同2期 XXF 20220905 end -->
                    <!-- URF限次合同2期 XXF 20220818 start -->
                    <apex:outputPanel rendered="{!targetObj.estimate.URF_Contract__c}" layout="none">
                        <td colspan="2">是否同意上限</td>
                        <td >:</td>
                        <td>是</td>
                    </apex:outputPanel>
                    <!-- URF限次合同2期 XXF 20220818 end -->
                </tr>
                <tr>
                    <td>合同预定开始日期</td>
@@ -87,6 +111,15 @@
                    <td><apex:outputText value="{0,number,#,###}">
                        <apex:param value="{!targetObj.estimate.Contract_Range__c}" />
                    </apex:outputText>个月</td>
                    <!-- URF限次合同2期 XXF 20220818 start -->
                    <apex:outputPanel rendered="{!targetObj.estimate.URF_Contract__c}" layout="none">
                        <td colspan="2">P系列合同大修次数</td>
                        <td >:</td>
                        <!-- <td>{!targetObj.estimate.URF_P_MaxRepairCount__c}</td> -->
                        <!-- URF限次合同2期 XXF 20220818 start -->
                        <td >{!IF(targetObj.estimate.URF_P_MaxRepairCount__c == '0' || targetObj.estimate.URF_P_MaxRepairCount__c == NULL, '/ ',targetObj.estimate.URF_P_RepairTime__c)}&nbsp;次</td>
                    </apex:outputPanel>
                    <!-- URF限次合同2期 XXF 20220818 end -->
                </tr>
                <tr>
                    <td>提交对象</td>
@@ -100,10 +133,17 @@
                    </apex:outputPanel> -->
                    <td>主担当者</td>
                    <td>:</td>
                    <td colspan="2">{!targetObj.estimate.Maintenance_Contract__r.Service_Contract_Staff__r.Name}</td>
                    <td colspan="1">{!targetObj.estimate.Maintenance_Contract__r.Service_Contract_Staff__r.Name}</td>
                    <!-- URF限次合同2期 XXF 20220818 start -->
                    <apex:outputPanel rendered="{!targetObj.estimate.URF_Contract__c}" layout="none">
                        <td colspan="2">V系列合同大修次数</td>
                        <td >:</td>
                        <td >{!IF(targetObj.estimate.URF_V_MaxRepairCount__c == '0' || targetObj.estimate.URF_V_MaxRepairCount__c == NULL, '/ ',targetObj.estimate.URF_V_RepairTime__c)}&nbsp;次</td>
                    </apex:outputPanel>
                    <!-- URF限次合同2期 XXF 20220818 end -->
                </tr>
                <tr>
                    <td colspan="7" style="text-align: right">单位:RMB</td>
                    <td colspan="11" style="text-align: right">单位:RMB</td>
                </tr>
            </table>
            <table width="100%"  cellspacing="0" cellpadding="0" >
@@ -149,6 +189,9 @@
                    <td  class="border-thick-title" >{!IF(targetObj.estimate.Asset_Repair_Sum_Price__c > 0, '修理金额', '')}</td>
                    </apex:outputPanel>
                    <td class="border-thick-title" >备注</td>
                    <!-- add 点检改善:约定点检设备对象 2021.6.10 fxk start-->
                    <!-- <td class="border-thick-title" >约定点检设备对象</td> -->
                    <!-- add 点检改善:约定点检设备对象 2021.6.10 fxk end-->
                </tr>
                <!-- 明細行ループ -->
                <apex:repeat value="{!targetObj.assetInfoList}" var="asset" id="asset">
@@ -230,6 +273,9 @@
                        </apex:outputPanel>
                         <!-- 备注 -->
                        <td class="detail" style="text-align: center;"><c:PDFWbr targetStr="{!asset.mcae.Comment__c}"/></td>
                        <!-- add 点检改善:约定点检设备对象 2021.6.10 fxk start-->
                        <!-- <td class="detail" style="text-align: center;"><c:PDFWbr targetStr="{!If((asset.mcae.Check_Object__c = true),'√','×')}"/></td> -->
                        <!-- add 点检改善:约定点检设备对象 2021.6.10 fxk end-->
                    </tr>
                    <apex:variable value="{!lineNo + 1}" var="lineNo" />
                </apex:repeat>
@@ -237,14 +283,14 @@
                <!-- 最後ページに合計金額だけが存在する場合のみ、描画しない -->
                <apex:outputPanel rendered="{!NOT(pageCnt == targetObjSize && lineNo < pageCnt)}" layout="none">
                  
                         <tr><td colspan="{!IF(targetObj.estimate.Print_ListPrice__c || targetObj.estimate.Print_Simplify__c, if(targetObj.estimate.Asset_Repair_Sum_Price__c > 0,'13','12'), if(targetObj.estimate.Asset_Repair_Sum_Price__c > 0,'9','8'))}" class="border-thick-bottom"></td></tr>
                         <tr><td colspan="{!IF(targetObj.estimate.Print_ListPrice__c || targetObj.estimate.Print_Simplify__c, if(targetObj.estimate.Asset_Repair_Sum_Price__c > 0,'13','13'), if(targetObj.estimate.Asset_Repair_Sum_Price__c > 0,'9','8'))}" class="border-thick-bottom"></td></tr>
                    
                </apex:outputPanel>
                
                
                <apex:outputPanel rendered="{!((targetObj.estimate.Print_ListPrice__c || targetObj.estimate.Print_RepairPrice__c) || targetObj.estimate.Asset_Repair_Sum_Price__c > 0) && pageCnt == targetObjSize}" layout="none">
                    <tr>
                        <td colspan="{!IF(targetObj.estimate.Print_ListPrice__c || targetObj.estimate.Print_Simplify__c, if( targetObj.estimate.Asset_Repair_Sum_Price__c > 0,'11','10'), if(targetObj.estimate.Asset_Repair_Sum_Price__c > 0,'7','6'))}" style="text-align: right;">报价总额</td>
                        <td colspan="{!IF(targetObj.estimate.Print_ListPrice__c || targetObj.estimate.Print_Simplify__c, if( targetObj.estimate.Asset_Repair_Sum_Price__c > 0,'11','11'), if(targetObj.estimate.Asset_Repair_Sum_Price__c > 0,'7','7'))}" style="text-align: right;">报价总额</td>
                        <td colspan="2" style="text-align: right;">
                            <apex:outputText value="{0,number,#,##0 }" rendered="{!(((targetObj.estimate.Print_ListPrice__c || targetObj.estimate.Print_RepairPrice__c) || targetObj.estimate.Asset_Repair_Sum_Price__c > 0) &&targetObj.estimate.Estimate_Target__c == '医院')}">
                                <apex:param value="{!targetObj.estimate.GuidePrice_Up__c}" />
@@ -260,7 +306,7 @@
                </apex:outputPanel>
                <apex:outputPanel rendered="{!((targetObj.estimate.Print_ListPrice__c || targetObj.estimate.Print_RepairPrice__c) || targetObj.estimate.Asset_Repair_Sum_Price__c > 0) &&pageCnt == targetObjSize }" layout="none">
                    <tr>
                        <td colspan="{!IF(targetObj.estimate.Print_ListPrice__c || targetObj.estimate.Print_Simplify__c, if( targetObj.estimate.Asset_Repair_Sum_Price__c > 0,'11','10'), if(targetObj.estimate.Asset_Repair_Sum_Price__c > 0,'7','6'))}" style="text-align: right;">优惠百分比</td>
                        <td colspan="{!IF(targetObj.estimate.Print_ListPrice__c || targetObj.estimate.Print_Simplify__c, if( targetObj.estimate.Asset_Repair_Sum_Price__c > 0,'11','11'), if(targetObj.estimate.Asset_Repair_Sum_Price__c > 0,'7','7'))}" style="text-align: right;">优惠百分比</td>
                        <td colspan="2" style="text-align: right;">
                            <apex:outputField value="{!targetObj.estimate.Service_DiscountPercentage__c}"/>
                        </td>
@@ -268,7 +314,7 @@
                </apex:outputPanel>
                <apex:outputPanel rendered="{!((targetObj.estimate.Print_ListPrice__c || targetObj.estimate.Print_RepairPrice__c) && pageCnt == targetObjSize) }" layout="none">
                    <tr>
                        <td colspan="{!IF(targetObj.estimate.Print_ListPrice__c || targetObj.estimate.Print_Simplify__c, if( targetObj.estimate.Asset_Repair_Sum_Price__c > 0,'11','10'), if(targetObj.estimate.Asset_Repair_Sum_Price__c > 0,'7','6'))}" style="text-align: right;">优惠金额</td>
                        <td colspan="{!IF(targetObj.estimate.Print_ListPrice__c || targetObj.estimate.Print_Simplify__c, if( targetObj.estimate.Asset_Repair_Sum_Price__c > 0,'11','11'), if(targetObj.estimate.Asset_Repair_Sum_Price__c > 0,'7','7'))}" style="text-align: right;">优惠金额</td>
                        <td colspan="2" style="text-align: right;">
                            <apex:outputText value="{0,number,#,##0 }">
                                <apex:param value="{!targetObj.estimate.Service_Discount_Price__c}" />
@@ -278,7 +324,7 @@
                </apex:outputPanel>
                <apex:outputPanel rendered="{!(targetObj.estimate.Asset_Repair_Sum_Price__c > 0) && pageCnt == targetObjSize }" layout="none">
                    <tr>
                        <td colspan="{!IF(targetObj.estimate.Print_ListPrice__c || targetObj.estimate.Print_Simplify__c, if( targetObj.estimate.Asset_Repair_Sum_Price__c > 0,'11','10'), if(targetObj.estimate.Asset_Repair_Sum_Price__c > 0,'7','6'))}" style="text-align: right;">维修金额总额</td>
                        <td colspan="{!IF(targetObj.estimate.Print_ListPrice__c || targetObj.estimate.Print_Simplify__c, if( targetObj.estimate.Asset_Repair_Sum_Price__c > 0,'11','11'), if(targetObj.estimate.Asset_Repair_Sum_Price__c > 0,'7','7'))}" style="text-align: right;">维修金额总额</td>
                        <td colspan="2" style="text-align: right;">
                            <apex:outputText value="{0,number,#,##0 }">
                                <apex:param value="{!targetObj.estimate.Asset_Repair_Sum_Price__c}" />
@@ -288,7 +334,7 @@
                </apex:outputPanel>
                <apex:outputPanel rendered="{!(pageCnt == targetObjSize)}" layout="none">
                    <tr>
                        <td colspan="{!IF(targetObj.estimate.Print_ListPrice__c || targetObj.estimate.Print_Simplify__c, if( targetObj.estimate.Asset_Repair_Sum_Price__c > 0,'11','10'), if(targetObj.estimate.Asset_Repair_Sum_Price__c > 0,'7','6'))}" style="text-align: right;">合同总价格</td>
                        <td colspan="{!IF(targetObj.estimate.Print_ListPrice__c || targetObj.estimate.Print_Simplify__c, if( targetObj.estimate.Asset_Repair_Sum_Price__c > 0,'11','11'), if(targetObj.estimate.Asset_Repair_Sum_Price__c > 0,'7','7'))}" style="text-align: right;">合同总价格</td>
                        <td colspan="2" style="text-align: right;">
                            <apex:outputText value="{0,number,#,##0 }">
                                <apex:param value="{!targetObj.estimate.Maintenance_Price__c}"/>