| | |
| | | <apex:includeScript value="{!URLFOR($Resource.jquery183minjs)}"/> |
| | | <apex:stylesheet value="{!URLFOR($Resource.StyleUtilColorCss)}"/> |
| | | <apex:includeScript value="{!URLFOR($Resource.PleaseWaitDialog)}"/> |
| | | <apex:includeScript value="{!URLFOR($Resource.SelectFieldJs)}"/> |
| | | <style> |
| | | .dateFormat { |
| | | display: none; |
| | |
| | | width: 9%; |
| | | padding: 5px; |
| | | } |
| | | .labelStyle1{ |
| | | width: 7%; |
| | | } |
| | | .tdStyle-left { |
| | | /*20220419 ljh HWAG-CAV5WX update */ |
| | | /*width: 16%;*/ |
| | | width: 11%; |
| | | padding: 5px; |
| | | text-align: left; |
| | | } |
| | | .tdStyle-left1{ |
| | | width: 7.5%; |
| | | padding: 5px; |
| | | text-align: left; |
| | | } |
| | | .tdStyle-right1{ |
| | | width: 9%; |
| | | padding: 5px; |
| | | } |
| | | .tdStyle-right { |
| | | /*20220419 ljh HWAG-CAV5WX update */ |
| | |
| | | .requiredInput { |
| | | position: relative; |
| | | height: 100%; |
| | | display:inline-block;/*20230912 ljh add*/ |
| | | } |
| | | /* 20230912 ljh start */ |
| | | .InventoryResult .requiredInput{ |
| | | display:block; |
| | | } |
| | | /* 20230912 ljh end */ |
| | | .requiredBlock { |
| | | background-color: #c00; |
| | | position: absolute; |
| | |
| | | top: 1px; |
| | | bottom: 1px; |
| | | } |
| | | |
| | | body .pbBody table.list tr.headerRow td,body .pbBody table.list tr.headerRow th { |
| | | background: #f2f3f3; |
| | | border-width: 0 0 1px 1px; |
| | | border-color: #e0e3e5; |
| | | font-size: .9em; |
| | | font-weight: bold; |
| | | .my-left{ |
| | | width: 49%; |
| | | padding: 5px; |
| | | text-align: left; |
| | | } |
| | | /*20230921 ljh add start*/ |
| | | body td.actionColumn:before { |
| | | content: normal; |
| | | } |
| | | /*20230921 ljh add end*/ |
| | | </style> |
| | | <style type="text/css" media="print"> |
| | | .hiddenPrint{display:none !important;} |
| | |
| | | window.open("{!$Label.Environment_Url}lightning/r/Report/{!diushiReportId}/view?fv1={!ihId}"); |
| | | // 20230907 ljh end |
| | | } |
| | | <!--20210525 you 1650 start--> |
| | | // <!--20210525 you 1650 start--> |
| | | // 调拨出借记录 |
| | | function transfer_chujie_report() { |
| | | // 20230907 ljh start |
| | |
| | | window.open("{!$Label.Environment_Url}lightning/r/Report/{!transferdiushiReportId}/view?fv1={!ihId}"); |
| | | // 20230907 ljh end |
| | | } |
| | | <!--20210525 you 1650 end--> |
| | | // <!--20210525 you 1650 end--> |
| | | // 耗材出借记录 |
| | | function consum_chujie_report() { |
| | | // 20230907 ljh start |
| | |
| | | <apex:param value="" name="saveType"/> |
| | | </apex:actionFunction> |
| | | <apex:pageBlock id="searchBlock"> |
| | | <!-- <apex:outputPanel layout="block" style="width: 13%; float: left;"> |
| | | <apex:pageBlock mode="maindetail"> |
| | | <table style='width:140px; height: 80px'> |
| | | <tr><td class="checkButtonStyle"><apex:commandButton value="盘点" rendered="{!!inventoryBlueFlag}" onclick="location.href='/apex/InventoryResultRecord'; return false"/></td></tr> |
| | | <tr><td class="checkButtonStyle blueStyle"><apex:commandButton value="盘点" rendered="{!inventoryBlueFlag}"/></td></tr> |
| | | <tr><td class="checkButtonStyle"><apex:commandButton value="备品盘点报告" rendered="{!!rentBlueFlag}" onclick="location.href='{!$Page.InventoryReport}'; return false" /></td></tr> |
| | | <tr><td class="checkButtonStyle blueStyle"><apex:commandButton value="备品盘点报告" rendered="{!rentBlueFlag}"/></td></tr> |
| | | <tr><td class="checkButtonStyle"><apex:commandButton value="耗材盘点报告" rendered="{!!consumBlueFlag}" onclick="location.href='{!$Page.InventoryReport}?isConsum=true'; return false" /></td></tr> |
| | | <tr><td class="checkButtonStyle blueStyle"><apex:commandButton value="耗材盘点报告" rendered="{!consumBlueFlag}"/></td></tr> |
| | | </table> |
| | | </apex:pageBlock> |
| | | </apex:outputPanel> --> |
| | | <apex:outputPanel id="RightArea" layout="block" style="margin: 0 20%;"> |
| | | <!-- 20230912 ljh update --> |
| | | <!-- <apex:outputPanel id="RightArea" layout="block" style="margin: 0 20%;"> --> |
| | | <apex:outputPanel id="RightArea" layout="block" style="margin: 0 5%;" > |
| | | <!-- 20230912 ljh update end --> |
| | | <apex:outputPanel id="message" style="width: auto" > |
| | | <apex:pageMessages /> |
| | | </apex:outputPanel> |
| | |
| | | rendered="{!canDoFlg}" /> |
| | | </div> |
| | | <p style="margin:10px auto; width:100%; text-align: center; font-weight:bold; font-size:22px;">OCSM医疗备品管理中心{!IF(isConsum,'耗材','备品')}盘点报告书</p> |
| | | <table class="inventoryReportTable" style="width: 50%;"> |
| | | <table class="inventoryReportTable" style="width: 100%;"> |
| | | <colgroup> |
| | | <col width="49%"/> |
| | | <col width="49%"/> |
| | | </colgroup> |
| | | <tr> |
| | | <td class="labelStyle">盘点部门/分公司:</td> |
| | | <td class="labelStyle">{!inventoryDepartment}</td> |
| | | <!-- 20230912 ljh update --> |
| | | <td class="labelStyle">盘点部门/分公司:{!inventoryDepartment}</td> |
| | | <!-- <td class="labelStyle">{!inventoryDepartment}</td> --> |
| | | </tr> |
| | | <tr> |
| | | <td class="labelStyle">盘点报告书编号:</td> |
| | | <td class="labelStyle" style="color: blue">{!ihObj.Name}</td> |
| | | <!-- 20230912 ljh update --> |
| | | <td class="labelStyle">盘点报告书编号:<span style="color: blue">{!ihObj.Name}</span></td> |
| | | <!-- <td class="labelStyle" style="color: blue">{!ihObj.Name}</td> --> |
| | | </tr> |
| | | <tr> |
| | | <td class="labelStyle">提交报告日期:</td> |
| | | <td class="labelStyle"> |
| | | <!-- 20230912 ljh update --> |
| | | <td class="labelStyle">提交报告日期:<span class="labelStyle"> |
| | | <apex:outputText id="ivSubmitDate" value="{0,date,yyyy'/'MM'/'dd}"> |
| | | <apex:param value="{!ihObj.Inventory_Submit_Date__c}" /> |
| | | </apex:outputText> |
| | | </span></td> |
| | | <!-- <td class="labelStyle"> |
| | | <apex:outputText id="ivSubmitDate" value="{0,date,yyyy'/'MM'/'dd}"> |
| | | <apex:param value="{!ihObj.Inventory_Submit_Date__c}" /> |
| | | </apex:outputText> |
| | | </td> |
| | | </td> --> |
| | | </tr> |
| | | </table> |
| | | <hr class="line" /> |
| | | <table class="inventoryReportTable"> |
| | | <table class="inventoryReportTable" width="100%"> |
| | | <tr> |
| | | <td class="labelStyle1">盘点地点:</td> |
| | | <td class="labelStyle"> |
| | | <!-- 20230912 ljh update --> |
| | | <td class="my-left"><label>盘点地点:</label> |
| | | <apex:outputText id="ivLocation" value="{!ihObj.Internal_asset_location__c}" /> |
| | | </td> |
| | | <td class="labelStyle">开始盘点时间:</td> |
| | | <td class="labelStyle"> |
| | | <!-- <td class="labelStyle"> |
| | | <apex:outputText id="ivLocation" value="{!ihObj.Internal_asset_location__c}" /> |
| | | </td> --> |
| | | <td class="my-left"><label>开始盘点时间:</label> |
| | | <apex:outputText id="ivDate" value="{0,date,yyyy'/'MM'/'dd}"> |
| | | <apex:param value="{!ihObj.Inventory_Start_Date__c}" /> |
| | | </apex:outputText> |
| | | </td> |
| | | <!-- <td class="labelStyle"> |
| | | <apex:outputText id="ivDate" value="{0,date,yyyy'/'MM'/'dd}"> |
| | | <apex:param value="{!ihObj.Inventory_Start_Date__c}" /> |
| | | </apex:outputText> |
| | | </td> --> |
| | | </tr> |
| | | <tr> |
| | | <td class="labelStyle1">盘点时间From:</td> |
| | | <td class="labelStyle"> |
| | | <!-- 20230912 ljh update --> |
| | | <td class="my-left" width="50%" ><label>盘点时间From:</label> |
| | | <apex:inputField id="ivDateFrom" value="{!ihObj.Inventory_Date_From__c}" |
| | | required="{!DESC_RW1['Inventory_Date_From__c'] == 'wm'}"/> |
| | | required="{!DESC_RW1['Inventory_Date_From__c'] == 'wm'}" /> |
| | | </td> |
| | | <td class="labelStyle">盘点时间To:</td> |
| | | <td class="labelStyle"> |
| | | <!-- <td class="labelStyle"> |
| | | <apex:inputField id="ivDateFrom" value="{!ihObj.Inventory_Date_From__c}" |
| | | required="{!DESC_RW1['Inventory_Date_From__c'] == 'wm'}" /> |
| | | </td> --> |
| | | <!-- 20230912 ljh update --> |
| | | <td class="my-left" width="50%" ><label>盘点时间To:</label> |
| | | <apex:inputField id="ivDateTo" value="{!ihObj.Inventory_Date_To__c}" |
| | | required="{!DESC_RW1['Inventory_Date_To__c'] == 'wm'}" /> |
| | | </td> |
| | | <!-- <td class="labelStyle"> |
| | | <apex:inputField id="ivDateTo" value="{!ihObj.Inventory_Date_To__c}" |
| | | required="{!DESC_RW1['Inventory_Date_To__c'] == 'wm'}" /> |
| | | </td> |
| | | </td> --> |
| | | </tr> |
| | | <tr> |
| | | <td class="labelStyle1">盘点人员:</td> |
| | | <td class="labelStyle" colspan="3"> |
| | | |
| | | <td colspan="2" aligh="left" style="padding: 5px;width:100%;"><label>盘点人员:</label><apex:inputField id="ivPIC" style="width: 90%;" value="{!ihObj.Inventory_Persons__c}" |
| | | required="{!DESC_RW1['Inventory_Persons__c'] == 'wm'}" /></td> |
| | | <!-- <td class="labelStyle" colspan="3"> |
| | | <apex:inputField id="ivPIC" style="width: 100%;" value="{!ihObj.Inventory_Persons__c}" |
| | | required="{!DESC_RW1['Inventory_Persons__c'] == 'wm'}" /> |
| | | </td> |
| | | </td> --> |
| | | </tr> |
| | | </table> |
| | | <hr class="line" /> |
| | | <table class="inventoryReportTable" width="100%" > |
| | | <tr> |
| | | <td class="tdStyle-left1">盘点报告提交人:</td> |
| | | <td class="tdStyle-left"> |
| | | <!-- 20230912 ljh update --> |
| | | <td class="my-left"><label>盘点报告提交人:</label> |
| | | <apex:inputField id="ivsubmitPIC" value="{!ihObj.InventorySubmit_PIC__c}" |
| | | required="{!DESC_RW1['InventorySubmit_PIC__c'] == 'wm'}" > |
| | | <script> |
| | | if( document.getElementById('allPage:allForm:searchBlock:ivsubmitPIC_mlktp')){ |
| | | document.getElementById('allPage:allForm:searchBlock:ivsubmitPIC_mlktp').style.display="none" ; |
| | | } |
| | | </script> |
| | | </apex:inputField> |
| | | </td> |
| | | <!-- <td class="tdStyle-left"> |
| | | <apex:inputField id="ivsubmitPIC" value="{!ihObj.InventorySubmit_PIC__c}" |
| | | required="{!DESC_RW1['InventorySubmit_PIC__c'] == 'wm'}" > |
| | | <script> |
| | |
| | | } |
| | | </script> |
| | | </apex:inputField> |
| | | </td> |
| | | <td class="tdStyle-right1">职位:</td> |
| | | <td class="tdStyle-left"> |
| | | </td> --> |
| | | <td class="my-left"><label>职位:</label><apex:outputText id="ivsubmitPICPost" value="{!ihObj.InventorySubmit_PIC__r.Post__c}" /></td> |
| | | <!-- <td class="tdStyle-left"> |
| | | <apex:outputText id="ivsubmitPICPost" value="{!ihObj.InventorySubmit_PIC__r.Post__c}" /> |
| | | </td> |
| | | </td> --> |
| | | </tr> |
| | | <tr> |
| | | <td class="tdStyle-left1">盘点报告确认人:</td> |
| | | <!-- 20230912 ljh update --> |
| | | <!-- <td class="tdStyle-left">盘点报告确认人:</td> |
| | | <td class="tdStyle-left"> |
| | | <apex:inputField id="ivcheckPIC" value="{!ihObj.InventoryCheck_PIC__c}" |
| | | required="{!DESC_RW1['InventoryCheck_PIC__c'] == 'wm'}" > |
| | |
| | | </script> |
| | | </apex:inputField> |
| | | </td> |
| | | <td class="tdStyle-right1">职位:</td> |
| | | <td class="tdStyle-right">职位:</td> |
| | | <td class="tdStyle-left"> |
| | | <apex:outputText id="ivcheckPICPost" value="{!ihObj.InventoryCheck_PIC__r.Post__c}" /> |
| | | </td> --> |
| | | <td class="my-left"><label>盘点报告确认人:</label> |
| | | <apex:inputField id="ivcheckPIC" value="{!ihObj.InventoryCheck_PIC__c}" |
| | | required="{!DESC_RW1['InventoryCheck_PIC__c'] == 'wm'}" > |
| | | <script> |
| | | if( document.getElementById('allPage:allForm:searchBlock:ivcheckPIC_mlktp')){ |
| | | document.getElementById('allPage:allForm:searchBlock:ivcheckPIC_mlktp').style.display="none" ; |
| | | } |
| | | </script> |
| | | </apex:inputField> |
| | | </td> |
| | | <td class="my-left"><label>职位:</label><apex:outputText id="ivcheckPICPost" value="{!ihObj.InventoryCheck_PIC__r.Post__c}" /> |
| | | </td> |
| | | </tr> |
| | | </table> |
| | |
| | | <apex:commandButton styleClass="hiddenPrint" value="耗材消耗记录" onclick="consum_xiaohao_report(); return false;" /> |
| | | </apex:outputPanel> |
| | | </div> |
| | | <apex:outputPanel id="InventoryResult"> |
| | | <apex:outputPanel id="InventoryResult" styleClass="InventoryResult"> |
| | | <table style="{!IF(isConsum,'display: none;','')}" class="inventoryReportTable" border="1px"> |
| | | <tr> |
| | | <th class="labelStyle">固定资产</th> |
| | |
| | | <apex:outputPanel styleClass="hiddenPrint" id="process"> |
| | | <apex:relatedList list="ProcessSteps" ></apex:relatedList> |
| | | </apex:outputPanel> |
| | | <script> |
| | | let SelectFieldParamList=[ |
| | | |
| | | { |
| | | |
| | | //原apex:inputField的id值,需要在页面上获取 |
| | | |
| | | inputFieldId : 'allPage:allForm:searchBlock:ivsubmitPIC', |
| | | |
| | | //查找字段所在对象 |
| | | |
| | | ObjectType : 'Inventory_Header__c', |
| | | |
| | | //查找字段的api名称 |
| | | |
| | | QueryFieldApiName : 'InventorySubmit_PIC__c', |
| | | |
| | | //查找字段的查找对象 |
| | | |
| | | SelectObj : 'User', |
| | | |
| | | //搜索时使用的字段 |
| | | |
| | | SelectFld : 'Name', |
| | | |
| | | }, |
| | | |
| | | { |
| | | |
| | | //原apex:inputField的id值,需要在页面上获取 |
| | | |
| | | inputFieldId : 'allPage:allForm:searchBlock:ivcheckPIC', |
| | | |
| | | //查找字段所在对象 |
| | | |
| | | ObjectType : 'Inventory_Header__c', |
| | | |
| | | //查找字段的api名称 |
| | | |
| | | QueryFieldApiName : 'InventoryCheck_PIC__c', |
| | | |
| | | //查找字段的查找对象 |
| | | |
| | | SelectObj : 'User', |
| | | |
| | | //搜索时使用的字段 |
| | | |
| | | SelectFld : 'Name', |
| | | |
| | | }, |
| | | |
| | | |
| | | |
| | | ] |
| | | |
| | | //初始化 |
| | | |
| | | resetOpenPage(SelectFieldParamList); |
| | | </script> |
| | | </apex:page> |