高章伟
2022-03-18 4bfe21c4b5ddc089ae5a95f4b10f6cff148b690d
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
<apex:page standardController="eSignForm__c" extensions="AgencyConfirmPageController"  showHeader="false" sidebar="false"   
           id="allPage" title="验收确认(经销商)"  action="{!init}" docType="html-5.0"> 
    <apex:outputPanel id="reloadForm">
        <script type="text/javascript">
        function reload(){
            var disableInput = {!disableInput};
            var HPSignUpStatusc = '{!eSignForm.HPSignUpStatus__c}';
            console.log(disableInput);
            if(disableInput = true){
                debugger
                if(HPSignUpStatusc=="申请中"){
                    window.open ('/apex/HPConfirmPage?id='+"{!eSignForm.Id}",'_self');
                }
                window.opener.location.href="/"+"{!eSignForm}";
               
            }
        }
        </script>
    </apex:outputPanel>
    <apex:form id="allForm">
        <apex:pageBlock id="allBlock" title="签收单确认" mode="edit">
            <apex:outputPanel id="Messages" style="color:red">
            <apex:messages />
        </apex:outputPanel>
            <apex:pageBlockButtons >
                <apex:commandButton action="{!Confirm}" disabled="{!disableInput}"
                                    oncomplete="reload(); "
                                    id="ConfirmButton"  value="确认" reRender="allForm,reloadForm"/>
            </apex:pageBlockButtons>
             <apex:pageBlockSection title="审批状态">
                 <apex:pageBlockSectionItem >
                    <apex:outputLabel value="经销商审批状态: " for="agencyAutoSignUpStatus"/>
                    
                    <apex:outputField label="经销商审批状态: " 
                                      value="{!eSignForm.agencyAutoSignUpStatus__c}"  id="agencyAutoSignUpStatus"/>
                </apex:pageBlockSectionItem>
                 <apex:pageBlockSectionItem >
                    <apex:outputLabel value="验收结果(经销商): " for="agencyAcceptResult__c"/>
                    
                    <apex:outputField label="验收结果(经销商): " 
                                      value="{!eSignForm.agencyAcceptResult__c}"  id="agencyAcceptResult__c"/>
                </apex:pageBlockSectionItem>
            </apex:pageBlockSection>
            <apex:outputPanel rendered="{!not(disableInput)}">
                <apex:pageBlockSection title="审批录入信息">
                    <apex:pageBlockSectionItem >
                        <apex:outputLabel value="附件合格(经销商) : " for="AccessoriesQualified"/>
                        <apex:inputField label="附件合格(经销商) : " 
                                         value="{!eSignForm.AccessoriesQualified__c}"  id="AccessoriesQualified"/>
                    </apex:pageBlockSectionItem>
                    <apex:pageBlockSectionItem >
                        <apex:outputLabel value="驳回理由(经销商) :" for="denyReason"/>
                        <apex:inputField label="驳回理由(经销商) :" 
                                         value="{!eSignForm.denyReason__c}"  id="denyReason"/>
                    </apex:pageBlockSectionItem>
                    <apex:pageBlockSectionItem >
                        <apex:outputLabel value="营业管理部担当处理意见(经销商) :" for="handleOpinionAgency"/>
                        <apex:inputField label="营业管理部担当处理意见(经销商) :" 
                                         value="{!eSignForm.handleOpinionAgency__c}"  id="handleOpinionAgency"/>
                    </apex:pageBlockSectionItem>
                </apex:pageBlockSection>
            </apex:outputPanel>
            <apex:outputPanel rendered="{!disableInput}">
                <apex:pageBlockSection title="审批录入信息">
                    <apex:pageBlockSectionItem >
                        <apex:outputLabel value="附件合格(经销商) : " for="AccessoriesQualifiedout"/>
                        <apex:outputField label="附件合格(经销商) : " 
                                         value="{!eSignForm.AccessoriesQualified__c}"  id="AccessoriesQualifiedout"/>
                    </apex:pageBlockSectionItem>
                    <apex:pageBlockSectionItem >
                        <apex:outputLabel value="驳回理由(经销商) :" for="denyReasonout"/>
                        <apex:outputField label="驳回理由(经销商) :" 
                                         value="{!eSignForm.denyReason__c}"  id="denyReasonout"/>
                    </apex:pageBlockSectionItem>
                    <apex:pageBlockSectionItem >
                        <apex:outputLabel value="营业管理部担当处理意见(经销商) :" for="handleOpinionAgencyout"/>
                        <apex:outputField label="营业管理部担当处理意见(经销商) :" 
                                         value="{!eSignForm.handleOpinionAgency__c}"  id="handleOpinionAgencyout"/>
                    </apex:pageBlockSectionItem>
                </apex:pageBlockSection>
            </apex:outputPanel>
        </apex:pageBlock>
    </apex:form>
 
</apex:page>