| | |
| | | </apex:includescript> |
| | | <script type="text/javascript"> |
| | | window.onload = function() { |
| | | |
| | | toWhere(); |
| | | |
| | | specificReasons(); |
| | |
| | | toWhere(); |
| | | specificReasons(); |
| | | grey(); |
| | | } |
| | | |
| | | function disToWhere(){ |
| | | j$(escapeVfId('allPage:sada:To_Where')).attr("disabled", true); |
| | | } |
| | | |
| | | function specificReasons() { |
| | |
| | | document.getElementById("font2").style.display = "none"; |
| | | |
| | | document.getElementById("allPage:sada:Other_Reasons").style.display = "none"; |
| | | } |
| | | if (specificReasonsVal == '转第三方或维修托管') { |
| | | |
| | | tochange(); |
| | | document.getElementById("font5").style.display = "block"; |
| | | |
| | | document.getElementById("allPage:sada:Third_Party_Company").style.display = "block"; |
| | | |
| | | document.getElementById("font6").style.display = "block"; |
| | | |
| | | document.getElementById("allPage:sada:Third_Party_Contract_Price").style.display = "block"; |
| | | |
| | | } else { |
| | | j$(escapeVfId('allPage:sada:To_Where')).attr("disabled", false); |
| | | document.getElementById("font5").style.display = "none"; |
| | | |
| | | document.getElementById("allPage:sada:Third_Party_Company").style.display = "none"; |
| | | |
| | | document.getElementById("font6").style.display = "none"; |
| | | |
| | | document.getElementById("allPage:sada:Third_Party_Contract_Price").style.display = "none"; |
| | | } |
| | | if (specificReasonsVal == '重复报价') { |
| | | document.getElementById("font7").style.display = "block"; |
| | | document.getElementById("MC_Code__c").style.display = "block"; |
| | | document.getElementById("font3").style.display = "none"; |
| | | document.getElementById("To_Where__c").style.display = "none"; |
| | | } else { |
| | | |
| | | document.getElementById("font7").style.display = "none"; |
| | | document.getElementById("MC_Code__c").style.display = "none"; |
| | | document.getElementById("font3").style.display = "block"; |
| | | document.getElementById("To_Where__c").style.display = "block"; |
| | | } |
| | | } |
| | | |
| | |
| | | save(); |
| | | } |
| | | |
| | | |
| | | function submitBatch() { |
| | | blockme(); |
| | | submit(); |
| | |
| | | <apex:form id="sada"> |
| | | <apex:actionfunction action="{!init}" name="init" oncomplete="unblockUI();" rerender="oppBlock1,message"> |
| | | </apex:actionfunction> |
| | | <apex:actionfunction action="{!tochange}" name="tochange" oncomplete="unblockUI();disToWhere();" rerender="To_Where"> |
| | | </apex:actionfunction> |
| | | <apex:actionfunction action="{!save}" name="save" oncomplete="unblockUI();reload();initkin();" rerender="oppBlock1,sada,message"> |
| | | </apex:actionfunction> |
| | | <apex:actionfunction action="{!submit}" name="submit" oncomplete="unblockUI();reload();initkin();" rerender="oppBlock1,message,sada,ApprovalHistory"> |
| | |
| | | </tr> |
| | | <tr> |
| | | <td style="padding-left:50px"> |
| | | <apex:inputfield id="Specific_Reasons" onchange="specificReasons();return false;" style="width:90%;outline-color:#1A94E6;" value="{!lostData.Specific_Reasons__c}"> |
| | | <apex:inputfield id="Specific_Reasons" onchange="specificReasons();return false;" style="width:90%;outline-color:#1A94E6;" value="{!lostData.Specific_Reasons__c}" required="true"> |
| | | </apex:inputfield> |
| | | </td> |
| | | </tr> |
| | |
| | | </tr> |
| | | <tr> |
| | | <td style="padding-left:50px"> |
| | | <font id="font7" style="font-size:small;display:none;"> |
| | | 手动关联报价编码: |
| | | </font> |
| | | </td> |
| | | </tr> |
| | | <tr> |
| | | <td style="padding-left:50px ;"> |
| | | <div id = "MC_Code__c" style="width:90%;display:none"><apex:inputField value="{!lostData.MC_Code__c}" style="width:90%;"/></div> |
| | | </td> |
| | | </tr> |
| | | <tr> |
| | | <td style="padding-left:50px"> |
| | | <font id="font3" style="font-size:small"> |
| | | 去向: |
| | | </font> |
| | | </td> |
| | | </tr> |
| | | <!-- <tr> |
| | | <td style="padding-left:50px"> |
| | | <div id = "To_Three" style="width:90%;display:none"> |
| | | <input id = "To_Three1" style="width:90%;outline:none" value="医院选择第三方" readonly="readonly" /> |
| | | </div> |
| | | </td> |
| | | </tr> --> |
| | | <tr> |
| | | <td style="padding-left:50px"> |
| | | <apex:inputfield id="To_Where" onchange="toWhere();" style="width:90%;outline-color:#1A94E6;" value="{!lostData.To_Where__c}"> |
| | | </apex:inputfield> |
| | | <div id = "To_Where__c" style="width:90%;display:block;"><apex:inputfield id="To_Where" onchange="toWhere();" required="true" style="width:90%;outline-color:#1A94E6;display:block;" value="{!lostData.To_Where__c}"> |
| | | </apex:inputfield></div> |
| | | </td> |
| | | </tr> |
| | | <tr> |
| | |
| | | </tr> |
| | | <td style="padding-left:50px" id="bluebuttoncss"> |
| | | <center> |
| | | <apex:commandButton onclick="saveBatch();return false;" disabled="{!IF(lostData.Status__c='审批中'||lostData.Status__c='批准',true,false)}" rendered="true" rerender="oppBlock1,message" value="保存"> |
| | | </apex:commandButton> |
| | | <!-- <apex:commandButton onclick="saveBatch();return false;" disabled="{!IF(lostData.Status__c='审批中'||lostData.Status__c='批准',true,false)}" rendered="true" rerender="oppBlock1,message" value="保存"> |
| | | </apex:commandButton> --> |
| | | |
| | | |
| | | <apex:commandbutton onclick="submitBatch();return false;" disabled="{!IF(lostData.Status__c='审批中'||lostData.Status__c='批准',true,false)}" rerender="oppBlock1,message" rendered="true" value="提交审核"> |
| | | </apex:commandbutton> |