<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>
|