liuyn
2024-03-11 a87f1c3df03078814ee97ad0c8ac200a232419e9
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
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
<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.StyleUtilColorCss)}"/>
<apex:includeScript value="{!URLFOR($Resource.PleaseWaitDialog)}"/>
<apex:includeScript value="{!URLFOR($Resource.SelectFieldJs)}"/> 
    <style>
        .dateFormat  {
            display: none;
        }
        .message {
            width: 1184px;
        }
        div#out_Div_L {
            position: relative;
            overflow: hidden;
            width: 660px;
        }
        div#out_Div_R {
            position: relative;
            overflow: hidden;
            width: 1200px;
            margin-left: 660px;
        }
        div#in_Div_L {
            position: relative;
            width: 745px;
            height: 451px;
        }
        div#in_Div_R {
            position: relative;
            overflow: auto;
            height: 451px;
            margin-left: 830px;
            margin-top: -451px;
        }
        div#in_Div_L td.dataCellBorder1 {
            border-width: 0px 0px 1px 1px;
        }
        div#in_Div_L td.tdRed {
            background-color: red;
        }
        div#in_Div_L td.tdYellow {
            background-color: yellow;
        }
        div#in_Div_L td.tdGray {
            background-color: gray;
        }
        div#in_Div_L td.tdBlue {
            background-color: Cyan;
        }
        div#in_Div_L td.tdNormal {
            background-color: none;
        }
        div#in_Div_R td.dataCellBorder1 {
            border-width: 0px 0px 1px 1px;
        }
        div#in_Div_R td.tdRed {
            background-color: red;
        }
        div#in_Div_R td.tdYellow {
            background-color: yellow;
        }
        div#in_Div_R td.tdGray {
            background-color: gray;
        }
        div#in_Div_R td.tdBlue {
            background-color: Cyan;
        }
        div#in_Div_R td.tdNormal {
            background-color: none;
        }
        table {
            margin: 10px 0px;
            /*float: left;*/
            table-layout: fixed;
            border-collapse: collapse;
        }
        a {
            text-decoration: none;
        }
        .navigationBarBlock {
            width: 100%;
        }
        .apexp .bPageBlock.apexDefaultPageBlock .pbBody {
            margin: 0px;
        }
        .bPageBlock {
            border-top: 0px;
        }
        .checkButtonStyle input {
            width: 100%;
            text-align: left;
            margin: 2px;
        }
        .searchButtonStyle {
            width: 10%;
        }
        .searchButtonStyle input {
            width: 30%;
            background-color: #9BC2E6;
        }
        .setButtonStyle {
            width: 8%;
        }
        .setButtonStyle input {
            width: 100%;
            background-color: #9BC2E6;
        }
        .startInventory input {
            padding: 5px;
            margin-bottom: 5px;
            border-radius: 5px;
            background: #9BC2E6;
        }
        .labelStyle {
            width: 9%;
            padding: 5px;
        }
        .tdStyle-left {
            /*20220419 ljh HWAG-CAV5WX update */
            /*width: 16%;*/
            width: 11%;
            padding: 5px;
            text-align: left;
        }
        .tdStyle-right {
            /*20220419 ljh HWAG-CAV5WX update */
            /*width: 16%;*/
            width: 22%;
            padding: 5px;
            text-align: right;
        }
        .blankStyle {
            width: 3%;
        }
        .inputTextStyle {
            width: 9%;
        }
        .inputTextStyle input {
            width: 90%;
        }
        .redStyle {
            background-color: #F00;
        }
        .greyStyle {
            background-color: #AAA;
        }
        .blueStyle {
            background-color: #9BC2E6;
        }
        .yellowStyle {
            background-color: #FFCC00;
        }
        body td.col_Scroll {width:0px; padding:0px; border-width:0px;}
        .line {
            margin:20px 0;
            width:100%;
            height:1px;
            border:1px;
            background-color:black;
        }
        body .datePicker {
            width: 250px;
        /*            height: 200px;*/
        }
        /****************** 页面底部审批流css调整 *******************/
        .bRelatedList .relatedProcessHistory .extraRow td.actionColumn .actionLink, .bRelatedList .relatedProcessHistory .extraRow td, .bRelatedList .relatedProcessHistory .extraRow th {
            color: gray;
        }
        .bPageBlock .list {
            width: auto;
        }
        /****************** 页面底部审批流css调整 *******************/
        .test-textarea {
            /*width: 100%;*/
            margin-left: auto;
            margin-right: auto;
            padding: 3px;
            outline: 0;
            border: 1px solid #ccc;
            font-size: 12px;
            word-wrap: break-word;
            overflow-x: hidden;
            overflow-y: auto;
            -webkit-user-modify: read-write-plaintext-only;
            /*border-radius: 4px;*/
            font-size: 100%;
            border-top: black 2px solid;
            border-left: black 2px solid;
            border-right: black 2px solid;
            border-bottom: black 2px solid;
        }
        /****************** 必填项标红 *******************/
        .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;
            left: -4px;
            width: 3px;
            top: 1px;
            bottom: 1px;
        }
        .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;}
        .showPrint{display:block !important;}
    </style>
    <script type="text/javascript">
        var loginUserId = '{!JSENCODE($User.Id)}';
        // var loginUserName = '{!JSENCODE($User.Username)}';
        var loginUserName = '{!JSENCODE($User.LastName)}' + ' ' + '{!JSENCODE($User.FirstName)}';
        // 保存并提交审批 /保存
        function savejs(savetype) {
            if (savetype == '0') {                  // 保存
                if (confirm("是否确认保存?")) {
                    j$(savetype).prop("disabled", true);
                    saveSubmit(savetype);
                }
            } else {                                // 保存并提交审批
                // 如果提交人变化,提示先保存
                var newSubmitPerson = document.getElementById('allPage:allForm:searchBlock:ivsubmitPIC').value;
                if ('{!submitPersonName}' != newSubmitPerson) {
                    alert("提交人已变化,请先保存。");
                } else {
                    if ('{!ihObj.InventorySubmit_PIC__c}' && '{!ihObj.InventoryCheck_PIC__c}'
                            && '{!ihObj.InventorySubmit_PIC__c}' == loginUserId) {
                        if (confirm("您即将保存并提交审批,请确认。")) {
                            j$(savetype).prop("disabled", true);
                            saveSubmit(savetype);
                        }
                    } else if ('{!ihObj.InventorySubmit_PIC__c}' != loginUserId) {
                        alert("只有盘点报告提交人可以提交。");
                        return;
                    } else {
                        alert("盘点报告提交人或确认人不能为空, 请先保存。");
                        return;
                    }
                }
            }
        }
        // 查看明细
        function inventory_details() {
            if('{!isConsum}'=='true') {
                window.open("ConsumInventoryReportDetail?ivt_headId={!ihObj.Id}", "ConsumInventoryReportDetail");
            }
            else {
                window.open("InventoryReportDetail?ivt_headId={!ihObj.Id}", "InventoryReportDetail");
            }
        }
        // 填写遗失报告书
        function inventory_lost_report() {
            window.open("InventoryLostReport?lhid={!ihObj.Id}", "InventoryLostReport");
        }
        // 维修记录
        function weixiu_report() {
            // 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() {
            // 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() {
            // 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() {
            // 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() {
            // 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() {
            // 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() {
            // 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
        }
        //放大镜问题 陈京武 2023/11/04 start
        let SelectFieldParamList1=[ 
 
 
    //原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(SelectFieldParamList1);
function unblockUI(){ 
 
j$("#sbArea").fadeOut(500, function(){ 
 
    j$("#sbArea").remove(); 
 
}); 
 
resetOpenPage(SelectFieldParamList); 
 
//放大镜问题 陈京武 2023/11/04 end
 
    </script>
 
    <apex:form id="allForm">
        <apex:actionFunction name="saveSubmit" action="{!saveSubmit}" rerender="allForm, process" oncomplete="unblockUI();">
            <apex:param value="" name="saveType"/>
        </apex:actionFunction>
        <apex:pageBlock id="searchBlock">
            <!-- 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>
                <div style="margin-top: 1%" class="startInventory">
                    <apex:commandButton styleClass="hiddenPrint" value="保存并提交审批" id="submitData"
                            rerender="allForm" oncomplete="unblockUI();" onclick="savejs('1'); return false;"
                            rendered="{!canDoFlg}" />
                    <apex:commandButton rendered="{!!isConsum}" styleClass="hiddenPrint" value="填写遗失报告书" rerender="allForm" onclick="inventory_lost_report();return false;" />
                    <apex:commandButton styleClass="hiddenPrint" value="保存" id="saveData" style="margin-left: 25%;"
                            rerender="allForm" oncomplete="unblockUI();" onclick="savejs('0'); return false;"
                            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: 100%;">
                    <colgroup>
                        <col width="49%"/>
                        <col width="49%"/>
                    </colgroup>
                    <tr>
                        <!-- 20230912 ljh update -->
                        <td class="labelStyle">盘点部门/分公司:{!inventoryDepartment}</td>
                        <!-- <td class="labelStyle">{!inventoryDepartment}</td> -->
                    </tr>
                    <tr>
                        <!-- 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>
                        <!-- 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> -->
                    </tr>
                </table>
                <hr class="line" />
                <table class="inventoryReportTable" width="100%">
                    <tr>
                        <!-- 20230912 ljh update -->
                        <td class="my-left"><label>盘点地点:</label> 
                            <apex:outputText id="ivLocation" value="{!ihObj.Internal_asset_location__c}" />
                        </td>
                        <!-- <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>
                        <!-- 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'}" />
                        </td>
                        <!-- <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> -->
                    </tr>
                    <tr>
                        
                        <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> -->
                    </tr>
                </table>
                <hr class="line" />
                <table class="inventoryReportTable" width="100%" >
                    <tr>
                        <!-- 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>
if( document.getElementById('allPage:allForm:searchBlock:ivsubmitPIC_mlktp')){
    document.getElementById('allPage:allForm:searchBlock:ivsubmitPIC_mlktp').style.display="none" ;
}
</script>
                            </apex:inputField>
                        </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> -->
                    </tr>
                    <tr>
                        <!-- 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>
if( document.getElementById('allPage:allForm:searchBlock:ivcheckPIC_mlktp')){
    document.getElementById('allPage:allForm:searchBlock:ivcheckPIC_mlktp').style.display="none" ;
}
</script>
                            </apex:inputField>
                        </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>
                <table class="inventoryReportTable" width="100%">
                    <tr>
                        <td class="tdStyle-right">CL6 经理级(审批):</td>
                        <td class="tdStyle-left">
                            <apex:outputText id="ivconfirmJingli" value="{!ihObj.Jingli_Equipment__r.Name}" />
                        </td>
                        <td class="tdStyle-right">CL5 总监级(审批):</td>
                        <td class="tdStyle-left">
                            <apex:outputText id="ivconfirmBuzhang" value="{!ihObj.Buzhang_Equipment__r.Name}" />
                        </td>
                        <td class="tdStyle-right">CL4 高级总监(审批):</td>
                        <td class="tdStyle-left">
                            <apex:outputText id="ivconfirmZongjian" value="{!ihObj.Zongjian_Equipment__r.Name}" />
                        </td>
                    </tr>
                </table>
                <hr class="line" />
                <div class="startInventory">
                    <apex:outputPanel rendered="{!!isConsum}">
                        <!-- 备品盘点 -->
                        <apex:commandButton styleClass="hiddenPrint" value="备品盘点表" onclick="inventory_details(); return false;" />
                        <apex:commandButton styleClass="hiddenPrint" value="备品维修记录"  onclick="weixiu_report(); return false;" />
                        <apex:commandButton styleClass="hiddenPrint" value="备品出借记录" onclick="chujie_report(); return false;" />
                        <apex:commandButton styleClass="hiddenPrint" value="备品调拨记录"  onclick="transfer_chujie_report(); return false;" />
                        <apex:commandButton styleClass="hiddenPrint" value="备品出借遗失记录"  onclick="diushi_report(); return false;" />
                        <!--20210525 you 1650  start-->
                        <apex:commandButton styleClass="hiddenPrint" value="备品调拨遗失记录"  onclick="transfer_diushi_report(); return false;" />
                        <!--20210525 you 1650  end-->
                    </apex:outputPanel>
                    <apex:outputPanel rendered="{!isConsum}">
                        <!-- 耗材盘点 -->
                        <apex:commandButton styleClass="hiddenPrint" value="耗材盘点表" onclick="inventory_details(); return false;" />
                        <apex:commandButton styleClass="hiddenPrint" value="耗材出借记录" onclick="consum_chujie_report(); return false;" />
                        <apex:commandButton styleClass="hiddenPrint" value="耗材消耗记录"  onclick="consum_xiaohao_report(); return false;" />
                    </apex:outputPanel>
                </div>
                <apex:outputPanel id="InventoryResult" styleClass="InventoryResult">
                    <table style="{!IF(isConsum,'display: none;','')}" class="inventoryReportTable" border="1px">
                        <tr>
                            <th class="labelStyle">固定资产</th>
                            <th class="labelStyle">在库(含待报废)</th>
                            <th class="labelStyle">维修中</th>
                            <th class="labelStyle">出借中</th>
                            <th class="labelStyle">调拨中</th>
                            <th class="labelStyle">遗失</th>
                            <th class="labelStyle">合计</th>
                        </tr>
<apex:repeat var="yy" value="{!yAxis}">
                        <tr>
                            <th class='labelStyle'>{!yy}</th>
    <apex:repeat var="xx" value="{!xAxis}">
                            <td class="labelStyle">
                                <apex:outputPanel styleClass="labelStyle" layout="none">
                                    {!fixAssetMap[xx+yy]}
                                </apex:outputPanel>
                            </td>
    </apex:repeat>
                        </tr>
</apex:repeat>
                    </table>
                    <table style="{!IF(isConsum,'display: none;','')}" class="inventoryReportTable" border="1px" >
                        <tr>
                            <th class="labelStyle">非固定资产</th>
                            <th class="labelStyle">在库(含待报废)</th>
                            <th class="labelStyle">维修中</th>
                            <th class="labelStyle">出借中</th>
                            <th class="labelStyle">调拨中</th>
                            <th class="labelStyle">遗失</th>
                            <th class="labelStyle">合计</th>
                        </tr>
<apex:repeat var="yy" value="{!yAxis}">
                        <tr>
                            <th class='labelStyle'>{!yy}</th>
    <apex:repeat var="xx" value="{!xAxis}">
                            <td class="labelStyle">
                                <apex:outputPanel styleClass="labelStyle" layout="none">
                                {!unfixAssetMap[xx+yy]}
                                </apex:outputPanel>
                            </td>
    </apex:repeat>
                        </tr>
</apex:repeat>
 
                    </table>
                    <table style="{!IF(!isConsum,'display: none;','')}" class="inventoryReportTable" border="1px" >
                        <tr>
                            <th class="labelStyle">耗材</th>
                            <th class="labelStyle">在库(含过期和待报废)</th>
                            <th class="labelStyle">出借中</th>
                            <th class="labelStyle">已消耗</th>
                            <th class="labelStyle">合计</th>
                        </tr>
<apex:repeat var="yy" value="{!yAxis}">
                        <tr>
                            <th class='labelStyle'>{!yy}</th>
    <apex:repeat var="xx" value="{!xAxis}">
                            <td class="labelStyle">
                                <apex:outputPanel styleClass="labelStyle" layout="none">
                                {!consumAssetMap[xx+yy]}
                                </apex:outputPanel>
                            </td>
    </apex:repeat>
                        </tr>
</apex:repeat>
                    </table>
                    <apex:outputPanel rendered="{!isConsum}">
                        [耗材消耗记录报表]显示内容为上次盘点至本次盘点之间消耗的明细。
                    </apex:outputPanel>
                    <apex:outputPanel rendered="{!NOT(isConsum)}">
                        [备品出借遗失记录报表]显示内容为上次盘点至本次盘点之间断念的明细。
                        [备品调拨遗失记录报表]显示内容为上次盘点至本次盘点之间断念的明细。
                    </apex:outputPanel>
 
                    <hr style="margin:20px 0 0 0; height:1px; border:0px;"/>
                    <apex:outputPanel styleClass="labelStyle">盘点差异具体情况说明:</apex:outputPanel>
                    <br />
                    <br />
                    <div class="test-textarea showPrint" id="ivtDifferenceDetail"
                            style="min-height: 150px; display: none;" contenteditable="true"
                            oninput="document.getElementById('allPage:allForm:searchBlock:RightArea:ivtDifferenceDetail').value = this.innerHTML;" >
                            {!ihObj.IvtDifference_Detail__c}
                    </div>
                    <apex:inputField styleClass="hiddenPrint" style="width: 100%;"
                            id="ivtDifferenceDetail" required="{!DESC_RW1['IvtDifference_Detail__c'] == 'wm'}"
                            value="{!ihObj.IvtDifference_Detail__c}"
                            onchange="document.getElementById('ivtDifferenceDetail').innerHTML = this.value;"/>
                    <hr class="line" />
                    <apex:outputPanel styleClass="labelStyle">差异资产部门处理意见:</apex:outputPanel>
                    <br />
                    <br />
                    <div class="test-textarea showPrint" id="ivtDifferenceComment"
                            style="min-height: 150px; display: none;" contenteditable="true"
                            oninput="document.getElementById('allPage:allForm:searchBlock:RightArea:ivtDifferenceComment').value = this.innerHTML;"
                            required="{!DESC_RW1['IvtDifference_Comment__c'] == 'wm'}">
                            {!ihObj.IvtDifference_Comment__c}
                    </div>
                    <apex:inputField styleClass="hiddenPrint" style="width: 100%;"
                            id="ivtDifferenceComment" required="{!DESC_RW1['IvtDifference_Comment__c'] == 'wm'}"
                            value="{!ihObj.IvtDifference_Comment__c}"
                            onchange="document.getElementById('ivtDifferenceComment').innerHTML = this.value;"/>
                    <hr class="line"/>
                    <p styleClass="labelStyle">盘点报告审阅人:</p>
                    <table class="inventoryReportTable" style="margin-bottom: 20px; width: 100%;">
<apex:repeat var="reportDetail" value="{!drdList}">
                        <tr>
                            <td class='tdStyle-right'>审批人:</td>
                            <td class='tdStyle-left'>{!reportDetail.actor}</td>
                            <td class='tdStyle-right'>备注:</td>
                            <td class='tdStyle-left'>{!reportDetail.comment}</td>
                            <td class='tdStyle-right'>审批结果:</td>
                            <td class='tdStyle-left'>{!reportDetail.stepStatus}</td>
                        </tr>
</apex:repeat>
                    </table>
                    <hr class="line" style="margin-top: 50px;" />
                </apex:outputPanel>
            </apex:outputPanel>
        </apex:pageBlock>
    </apex:form>
    <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>