高章伟
2023-03-03 d8dc84a3d56df839895f1c417a4d9cbee763d262
force-app/main/default/pages/PCLLostReportPage.page
@@ -1,6 +1,9 @@
<apex:page standardcontroller="Lost_cancel_report__c" extensions="PCLLostReportController" showHeader="false" sidebar="false"
    id="allPage" action="{!init}" title="询价失单/取消报告">
    id="allPage" action="{!init}" title="询价失单/取消报告" lightningStylesheets="true">
    <apex:stylesheet value="{!URLFOR($Resource.blockUIcss)}" />
    <!-- <apex:stylesheet value="{!URLFOR($Resource.PCLLostReportPagecss)}" /> -->
    <apex:includeScript value="{!URLFOR($Resource.jquery183minjs)}" />
    <apex:includeScript value="{!URLFOR($Resource.PleaseWaitDialog)}" />
    <apex:form id="allForm">
@@ -78,9 +81,9 @@
            // 失单品牌不等于其他时,失单品牌(手动)清空并且不允许填写,失单品牌等于其他时,失单对手型号不可用  thh 2022-01-13 start
            function clearBrandMannualName(){
                if(document.getElementById('allPage:allForm:allBlock:EditPage:LostBrands:0:LostBrand:BrandContent:Lost_By_CompanyOut:Lost_By_Company').value == '其他'){
                    document.getElementById('allPage:allForm:allBlock:EditPage:LostBrands:0:LostBrand:BrandContent:Lost_By_Company_MannualOut:Lost_By_Company_Mannual').value = '';
                    j$(escapeVfId('allPage:allForm:allBlock:EditPage:LostBrands:0:LostBrand:productTable:0:LostProduct')).attr("disabled", true);
                } else{
                    document.getElementById('allPage:allForm:allBlock:EditPage:LostBrands:0:LostBrand:BrandContent:Lost_By_Company_MannualOut:Lost_By_Company_Mannual').value = '';
                    j$(escapeVfId('allPage:allForm:allBlock:EditPage:LostBrands:0:LostBrand:BrandContent:Lost_By_Company_MannualOut:Lost_By_Company_Mannual')).attr("disabled", true);
                }
            }
@@ -173,7 +176,13 @@
                                </apex:pageBlockSectionItem>
                                <apex:pageBlockSectionItem id="Lost_By_Company_MannualOut" dataStyle="width:10%;border-top:2px solid;border-left:2px solid;border-bottom:2px solid;border-right:2px solid;"
                                    labelStyle="width:23%;text-align:left;border-top:2px solid ;border-left:2px solid;border-bottom:2px solid;">
                                    <apex:outputLabel value="失单品牌(手动):"> </apex:outputLabel>
                                    <apex:outputLabel value="失单品牌(手动):">
                                        <!-- fy SWAG-CCC6F6 start-->
                                        <apex:variable value="identif" var="identif" rendered="{!IF(brand.lostBrand.Lost_By_Company__c == '其他', true, false)}" id="identifier2">
                                        <span style="color:red;font-size: 18px;">* </span>
                                        </apex:variable>
                                        <!-- fy SWAG-CCC6F6 end-->
                                    </apex:outputLabel>
                                    <apex:inputField id="Lost_By_Company_Mannual" value="{!brand.lostBrand.Lost_By_Company_Mannual__c}" onchange="setBrandMannualName({!brand.lineNo});"/>
                                </apex:pageBlockSectionItem>