19626
2023-09-09 e14d6d0619330cad423f06493e3aa2371faa2a8f
force-app/main/default/pages/InventoryReport.page
@@ -1,7 +1,7 @@
<apex:page extensions="InventoryReportController" standardController="Inventory_Header__c" showHeader="false" sidebar="false" id="allPage" action="{!init}" tabStyle="CheckAllOlympusAsset__tab"  lightningStylesheets="true" applyHtmlTag="false">
<apex:stylesheet value="{!URLFOR($Resource.blockUIcss)}"/>
<apex:includeScript value="{!URLFOR($Resource.jquery183minjs)}"/>
<apex:stylesheet value="{!URLFOR($Resource.StyleUtilCss)}"/>
<apex:stylesheet value="{!URLFOR($Resource.StyleUtilColorCss)}"/>
<apex:includeScript value="{!URLFOR($Resource.PleaseWaitDialog)}"/>
    <style>
        .dateFormat  {
@@ -116,12 +116,24 @@
            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 */
@@ -159,9 +171,9 @@
            border:1px;
            background-color:black;
        }
        .datePicker {
            width: 300px;
            height: 200px;
        body .datePicker {
            width: 250px;
        /*            height: 200px;*/
        }
        /****************** 页面底部审批流css调整 *******************/
        .bRelatedList .relatedProcessHistory .extraRow td.actionColumn .actionLink, .bRelatedList .relatedProcessHistory .extraRow td, .bRelatedList .relatedProcessHistory .extraRow th {
@@ -202,6 +214,14 @@
            width: 3px;
            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;
        }
    </style>
    <style type="text/css" media="print">
@@ -256,33 +276,54 @@
        }
        // 维修记录
        function weixiu_report() {
            window.open("{!$Label.Environment_Url}{!weixiuReportId}?pv1={!ihId}");
            // 20230907 ljh start
            // window.open("{!$Label.Environment_Url}{!weixiuReportId}?pv1={!ihId}");
            window.open("{!$Label.Environment_Url}lightning/r/Report/{!weixiuReportId}/view?fv1={!ihId}");
            // 20230907 ljh end
        }
        // 出借记录
        function chujie_report() {
            window.open("{!$Label.Environment_Url}{!chujieReportId}?pv1={!ihId}");
            // 20230907 ljh start
            // window.open("{!$Label.Environment_Url}{!chujieReportId}?pv1={!ihId}");
            window.open("{!$Label.Environment_Url}lightning/r/Report/{!chujieReportId}/view?fv1={!ihId}");
            // 20230907 ljh end
        }
        // 丢失记录
        function diushi_report() {
            window.open("{!$Label.Environment_Url}{!diushiReportId}?pv1={!ihId}");
            // 20230907 ljh start
            // window.open("{!$Label.Environment_Url}{!diushiReportId}?pv1={!ihId}");
            window.open("{!$Label.Environment_Url}lightning/r/Report/{!diushiReportId}/view?fv1={!ihId}");
            // 20230907 ljh end
        }  
        <!--20210525 you 1650  start-->
        // 调拨出借记录
        function transfer_chujie_report() {
            window.open("{!$Label.Environment_Url}{!transferchujieReportId}?pv1={!ihId}");
            // 20230907 ljh start
            // window.open("{!$Label.Environment_Url}{!transferchujieReportId}?pv1={!ihId}");
            window.open("{!$Label.Environment_Url}lightning/r/Report/{!transferchujieReportId}/view?fv1={!ihId}");
            // 20230907 ljh end
        }
        // 调拨遗失记录
        function transfer_diushi_report() {
            window.open("{!$Label.Environment_Url}{!transferdiushiReportId}?pv1={!ihId}");
            // 20230907 ljh start
            // window.open("{!$Label.Environment_Url}{!transferdiushiReportId}?pv1={!ihId}");
            window.open("{!$Label.Environment_Url}lightning/r/Report/{!transferdiushiReportId}/view?fv1={!ihId}");
            // 20230907 ljh end
        }
        <!--20210525 you 1650  end-->
        // 耗材出借记录
        function consum_chujie_report() {
            window.open("{!$Label.Environment_Url}{!consumChujieReportId}?pv1={!ihId}");
            // 20230907 ljh start
            // window.open("{!$Label.Environment_Url}{!consumChujieReportId}?pv1={!ihId}");
            window.open("{!$Label.Environment_Url}lightning/r/Report/{!consumChujieReportId}/view?fv1={!ihId}");
            // 20230907 ljh end
        }
        // 耗材消耗记录
        function consum_xiaohao_report() {
            window.open("{!$Label.Environment_Url}{!consumXiaohaoReportId}?pv1={!ihId}");
            // 20230907 ljh start
            // window.open("{!$Label.Environment_Url}{!consumXiaohaoReportId}?pv1={!ihId}");
            window.open("{!$Label.Environment_Url}lightning/r/Report/{!consumXiaohaoReportId}/view?fv1={!ihId}");
            // 20230907 ljh end
        }
    </script>
@@ -339,7 +380,7 @@
                <hr class="line" />
                <table class="inventoryReportTable">
                    <tr>
                        <td class="labelStyle">盘点地点:</td>
                        <td class="labelStyle1">盘点地点:</td>
                        <td class="labelStyle">
                            <apex:outputText id="ivLocation" value="{!ihObj.Internal_asset_location__c}" />
                        </td>
@@ -351,7 +392,7 @@
                        </td>
                    </tr>
                    <tr>
                        <td class="labelStyle">盘点时间From:</td>
                        <td class="labelStyle1">盘点时间From:</td>
                        <td class="labelStyle">
                            <apex:inputField id="ivDateFrom" value="{!ihObj.Inventory_Date_From__c}"
                                    required="{!DESC_RW1['Inventory_Date_From__c'] == 'wm'}" />
@@ -363,7 +404,7 @@
                        </td>
                    </tr>
                    <tr>
                        <td class="labelStyle">盘点人员:</td>
                        <td class="labelStyle1">盘点人员:</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'}" />
@@ -373,7 +414,7 @@
                <hr class="line" />
                <table class="inventoryReportTable" width="100%" >
                    <tr>
                        <td class="tdStyle-left">盘点报告提交人:</td>
                        <td class="tdStyle-left1">盘点报告提交人:</td>
                        <td class="tdStyle-left">
                            <apex:inputField id="ivsubmitPIC" value="{!ihObj.InventorySubmit_PIC__c}"
                                required="{!DESC_RW1['InventorySubmit_PIC__c'] == 'wm'}" >
@@ -384,13 +425,13 @@
</script>
                            </apex:inputField>
                        </td>
                        <td class="tdStyle-right">职位:</td>
                        <td class="tdStyle-right1">职位:</td>
                        <td class="tdStyle-left">
                            <apex:outputText id="ivsubmitPICPost" value="{!ihObj.InventorySubmit_PIC__r.Post__c}" />
                        </td>
                    </tr>
                    <tr>
                        <td class="tdStyle-left">盘点报告确认人:</td>
                        <td class="tdStyle-left1">盘点报告确认人:</td>
                        <td class="tdStyle-left">
                            <apex:inputField id="ivcheckPIC" value="{!ihObj.InventoryCheck_PIC__c}"
                                required="{!DESC_RW1['InventoryCheck_PIC__c'] == 'wm'}" >
@@ -401,7 +442,7 @@
</script>
                            </apex:inputField>
                        </td>
                        <td class="tdStyle-right">职位:</td>
                        <td class="tdStyle-right1">职位:</td>
                        <td class="tdStyle-left">
                            <apex:outputText id="ivcheckPICPost" value="{!ihObj.InventoryCheck_PIC__r.Post__c}" />
                        </td>