binxie
2024-01-18 0e0dd1e20e7211f3c3c11d77a41090d998dfd06c
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
<aura:component implements="force:appHostable,flexipage:availableForAllPageTypes"
                access="global" controller="eSignAgencyConfirmPageController">
    <aura:attribute name="DNName" type="String"
                    description="用来从父对象接收传递过来的DN号"
                    default=""/>
    <aura:attribute name="allWidth" type="String"
                    description="用来从父对象接收传递过来的屏幕宽度"
                    default=""/>
    <aura:attribute name="floatWidth" type="String"
                    description="用来从父对象接收传递过来的屏幕宽度"
                    default=""/>
    <aura:attribute name="QRWidth" type="String"
                    description="用来从父对象接收传递过来的屏幕宽度"
                    default=""/>
    <aura:attribute name="QRHeight" type="String"
                    description="用来从父对象接收传递过来的屏幕宽度"
                    default=""/>
    <!-- 判断经销商可以查看还是编辑 -->
    <aura:attribute name="IsAgencyOrHPShow" type="Boolean" default=""/>
    <aura:attribute name="entryType" type="String" default=""/>
    
    <aura:attribute name="hideButton" type="boolean" default="false" 
        description="默认隐藏"/>
    <aura:attribute name="IsSubmit" type="boolean" default="true"
                     description="判断是否录入表需要提交"/>
    <aura:attribute name="AgencyClick" type="boolean" default="false"
    description="判断是否已提交过一次"/>
    <aura:attribute name="hideCheckboxColumn" type="boolean" default="true"
                     description="因为点上一页的时候不知道为什么置成false了所以用变量来设置"/>
    <aura:attribute name="recordId" type="String" default=""
                    description="在明细页点击下一步会上传录入表,
                                 然后返回的录入表ID存在这里,用于上传文件使用"/>
    <aura:attribute name="filetype" type="List" default="['.png', '.jpg', '.jpeg']"
                    description="如果对于上传文件的格式有要求,可以用这个,但是现在还没用"/>
    <aura:attribute name="HomePage" type="Boolean" default="true"
                    description="判断是否是首页"/>
    <aura:attribute name="DetailsPage" type="Boolean" default="false"
                    description="判断是否是明细页"/>
    <aura:attribute name="uploadFilePage" type="Boolean" default="false"
                    description="判断是否是文件上传页"/>
    <aura:attribute name="handlingOpinionsPage" type="Boolean" default="false"
    description="判断是否是处理意见页"/>
    <aura:attribute name="eSignForm" type="Object"
                    description="首页信息"/>
    <aura:attribute name="data" type="Object[]"
                    description="所有明细的信息"/>
    <aura:attribute name="currentData" type="Object[]"
                    description="明细页当前显示的明细的信息"/>
        <aura:attribute name="dataSize" type="Integer" default="0"
                    description="明细页当前显示的明细的数量"/>
    <aura:attribute name="columns" type="List"
                     description="明细页表格的每列构造的设定"/>
        <aura:attribute name="pageNumber" type="Integer" default="1"
                    description="明细页表格的第几页"/>
    <aura:attribute name="pageSize" type="Integer" default="5"
                    description="明细页表格的每页明细容量"/>
    <aura:attribute name="isLastPage" type="Boolean" default="false"
                     description="是否最后一页,如果是最后一页,那么表格分页的下一页不可用"/>
    <aura:attribute name="draftValues" type="Object" default="[]"
                    description="明细页表格的修改内容,保存后从这里读值存到当前表格里面"
                    />
    <aura:attribute name="successMessage" type="String"
                    description="成功消息"/>
    <aura:attribute name="errorMessage" type="String"
                    description="失败消息"/>
    <aura:attribute name="check" type="Boolean" default="true"
                    description="判断是否勾选须知"/>
    <aura:attribute name="HospitalAcceptanceResults" type="string" default="全部验收"
                    description="医院验收结果"/>
    <!-- 检索 start-->
    <aura:attribute name="searchSize" type="Integer" default=""
                    description="检索数据的长度"/>
    <aura:attribute name="searchCase" type="Integer" default=""
                    description="存放检索值,保留缓存"/>
    <aura:attribute name="searchCaseKey" type="Integer" default=""
                    description="存放检索值,赋值给searchCase"/>
    <aura:attribute name="searchFlag" type="boolean" default=""
    description="搜索框是否有值"/>
    <aura:attribute name="lineItemSize" type="Integer" default=""
                    description="存放一共有多少条明细size"/>
    <aura:attribute name="chkQR" type="Boolean" default="false" 
                    description="是否显示医院二维码"/>
    <aura:attribute name="showQR" type="boolean" default="false" />
    <aura:attribute name="showESignQR" type="Boolean" default="false"
                    description="判断是否勾选须知"/>
    <!-- 检索 end -->
    <aura:handler name="init" action="{!c.doInit}" value="{!this}"
                  description="初始化方法"/>
    <div>
        <lightning:spinner aura:id="mySpinner" size="large"
                           description="加载中组件,如果不隐藏整个页面就在加载中"/>
    </div>
 
    <!-- 成功toast 组件的实现-->
    <div class="slds-modal slds-fade-in-open slds-hide" aura:id="successDiv">
        <div class="demo-only" style="height: 8rem;width:40%">
            <div class="slds-notify_container slds-is-relative">
                <div class="slds-notify slds-notify_toast slds-theme_success" role="alert">
                    <div class=" slds-m-left_xx-large">
                        <div class="slds-notify__content slds-m-left_small slds-align_absolute-center slds-m-left_xx-large">
                            <lightning:icon alternativeText="Success" iconName="utility:success" size="small"
                                            class="buttonColor slds-m-right_small" />
                            <h2 class="slds-text-heading_small ">{!v.successMessage}</h2>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
        <!-- 失败toast 组件的实现-->
    <div class="slds-modal slds-fade-in-open slds-hide" aura:id="errorDiv">
        <div class="demo-only" style="height: 8rem;" id="errorSonDiv1">
            <div class="slds-notify_container slds-is-relative">
                <div class="slds-notify slds-notify_toast slds-theme_error" role="status" id="errorSonDiv2" style="">
                    <div class="">
                        <div class="slds-notify__content slds-m-left_small slds-align_absolute-center">
                            <lightning:icon alternativeText="error" iconName="utility:error" size="small"
                                            class="buttonColor slds-m-right_small" />
                            <h2 class="slds-text-heading_small ">
                                <div id="errorSonDiv3" style=" word-break: break-all;overflow: auto;">
                                    {!v.errorMessage}
                                </div>
                            </h2>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
    <aura:registerEvent name="componentEvent" type="c:BackToHomePage"/>
    <!-- 经销商验收页的首页 -->
    <aura:if isTrue="{!v.HomePage}">
        <p style="font-size: 17px;">
            首页
        </p>
        <div  id="qs"  style="   margin-bottom: 5%;" class="slds-card" >
            <!-- 首页,由于与经销商确认页公用相同主页,所以使用这个组件,然后可以公用 -->
            <c:eSignAgencyHomePage
                                   HospitalAcceptanceResults = "{!v.HospitalAcceptanceResults}"
                                   eSignForm = "{!v.eSignForm}"
                                   />
 
            <div  id="attention1"  style=" position:relative;margin-right: 4px;  margin-right: 4px; " class="" >
                <lightning:layout horizontalAlign="left" class="slds-m-top_large">
                    <lightning:layoutItem padding="around-small">
                        <div class="header-column">
                            <p class="field-title" title="Field 3" style="font-weight:bold;font-size: 15px;">注意事项 : </p>
                            <p class="field-title" title="Field 3" style="font-weight:bold;font-size: 15px;"> 1、收到货物请在24小时内确认 </p>
                            <p class="field-title" title="Field 3" style="font-weight:bold;font-size: 15px;"> 2、货物外观破损请当面与送货人签字确认 </p>
                            <p class="field-title" title="Field 3" style="font-weight:bold;font-size: 15px;"> 3、书面通知供货者破损情况并描述破损状态 </p>
                            <p class="field-title" title="Field 3" style="font-weight:bold;font-size: 15px;"> 4、必要时请拍照记录 </p>
                            <p class="field-title" title="Field 3" style="font-weight:bold;font-size: 15px;"> 5、请于7天内对处理意见进行确认,超期将默认同意 </p>
                            <!-- 须知 -->
                        </div>
                    </lightning:layoutItem>
                </lightning:layout>
 
 
            </div>
 
            <div  id="attention"  style=" position:relative;margin-right: 4px;  margin-right: 4px; " class="" >
                <!-- 内容已阅读 -->
                <lightning:layout horizontalAlign="left" class="slds-m-top_small">
                    <lightning:layoutItem padding="around-small">
                        <lightning:input type="checkbox"
                                         label="上述内容已阅读(默认勾选)点“下一步”到明细页"
                                         id="chk" name="chk"
                                         checked="{!v.check}" disabled="true"/>
                    </lightning:layoutItem>
                </lightning:layout>
            </div>
            <!-- 从首页到检索页的上一步按钮 -->
            <div class="slds-float_left">
                <lightning:button variant="brand"
                                  label="上一步" title="上一步" onclick="{! c.BackToHomePage }" />
            </div>
            <!-- 从首页到明细页的下一步按钮 -->
            <div class="slds-float_right">
                <lightning:button variant="brand"
                                  label="下一步" title="下一步" onclick="{! c.handleHomePageNextClick }" />
            </div>
        </div>
 
    </aura:if>
    <aura:if isTrue="{!v.DetailsPage}">
        <!-- 加上滚动条 -->
        <div id="header" style="{!'width:'+v.floatWidth+'px;'}">
            <tr>
            <td class="field-title" title="Field 3" style="font-weight:bold;font-size: 15px;" align="left">(向右滑动查看更多信息) 
            
            </td>
            </tr>
               
        </div>
        <!-- 检索 -->
        <div id="searchDiv" class="slds-page-header" role="banner"  style="{!'width:'+v.floatWidth+'px;'}">
            <div class="slds-float_center" style="text-align:center">
            <tr>
            <td align="right" style="{!'padding-left:'+v.floatWidth*0.15+'px;'}">箱号:
            <input id="searchInput" lightning-input_input ="" type="text" class="slds-input" value="{!v.searchCase}" name=""  onchange="{!c.searchByCaseNumber}" style="{!'width:'+v.floatWidth*0.2+'px;'}"/>
            </td>
 
            <td style="padding-left: 5px;">
            <aura:if isTrue="{!v.searchFlag}">
                    该箱共有{!v.searchSize}条数据。
                <aura:set attribute="else">
                    该单共有{!v.lineItemSize}条数据。
                </aura:set>
            </aura:if>
            </td>
            </tr>
            </div>
        </div>       
        <div id="allDiv" style="{!'width:'+v.allWidth+'px;overflow-x:scroll;'}">
        <div  id="in" style=" width:763px;margin-right: 4px; ">
            <!-- 显示在明细页的当前明细的表格 -->
            <div id="inTable" >
                <!-- <lightning:card> -->
                    <aura:set attribute="title">
                        货物签收单明细
                    </aura:set>
                
                    <table class="slds-table slds-table_cell-buffer slds-table_bordered slds-hint-parent slds-no-row-hover " style="table-layout: fixed;">
                        <thead>
                            <tr class="slds-line-height_reset slds-text-title_caps">
                                <!-- 第一列 产品型号 -->
                                <th  class="slds-is-resizable" tabindex="-1" data-label="产品型号"  scope="row">
                                            
                                    <span class="slds-grid slds-grid_align-spread" style="
                                            width: 110px;text-align: left;display:block;">
                                            <div class="slds-truncate">
                                                <span title="产品型号" class="slds-truncate" style="padding-bottom: 3px;">产品型号</span>    </div>
                                    </span>
                                                
                                            
                                    
                                </th>
                                <!-- 第二列 CODE -->
                                <!-- <th  class="slds-is-resizable" tabindex="-1" data-label="CODE"  scope="row" style="width: 137px;height: 35px; outline: none;">
                                          
                                    <span class="slds-grid slds-grid_align-spread" style="text-align: center;display:block;">
                                        <div class="slds-truncate">
                                                <span title="CODE" class="slds-truncate" style="padding-bottom: 3px;">CODE</span>    
                                        </div>          
                                                      
                                    </span>
                                                    
                                    
                                </th> -->
                                
                                <!-- 第三列 产品名称-->
                                <th  class="slds-is-resizable" tabindex="-1" data-label="产品名称"  scope="row" style="width: 361px;height: 35px;">
                                            
                                    <span class="slds-grid slds-grid_align-spread" style="text-align: left;display:block;">
                                        <div class="slds-truncate">
                                                <span title="产品名称" class="slds-truncate" style="padding-bottom: 3px;">产品名称</span>   
                                                
                                            
                                        </div>
                                    </span>
                                        
                                    
                                </th>
 
                                <!-- 第四列 数量-->
                                <th  class="slds-is-resizable" tabindex="-1" data-label="数量"  scope="row" style="width: 50px;height: 35px;">
                                            
                                    <span class="slds-grid slds-grid_align-spread" style="text-align: center;display:block;">
                                        <div class="slds-truncate">
                                                <span title="数量" class="slds-truncate" style="padding-bottom: 3px;">数量</span>   
                                                
                                            
                                        </div>
                                    </span>
                                                
                                        
                                    
                                </th>
                                
                                <!-- 第五列 箱号-->
                                <th  class="slds-is-resizable" tabindex="-1" data-label="箱号"  scope="row" style="width: 100px;height: 35px;">
                                            
                                    <span class="slds-grid slds-grid_align-spread" style="text-align: center;display:block;">
                                        <div class="slds-truncate">
                                                <span title="箱号" class="slds-truncate" style="padding-bottom: 3px;">箱号</span>   
                                                
                                            
                                        </div>
                                    </span>
                                                
                                        
                                    
                                </th>
                                <!-- 第六列  货物情况-->
                                <th  class="slds-is-resizable" tabindex="-1" data-label="货物情况"  scope="row" style="width: 110px;height: 35px;">
                                            
                                    <span class="slds-grid slds-grid_align-spread" style="text-align: center;display:block;">
                                        <div class="slds-truncate">
                                                <span title="货物情况" class="slds-truncate" style="padding-bottom: 3px;">货物情况</span>   
                                                
                                            
                                        </div>
                                    </span>
                                                
                                        
                                    
                                </th>
                                <!-- 第七列  处理意见-->
                                <!-- <th  class="slds-is-resizable" tabindex="-1" data-label="处理意见"  scope="row" style="width: 170px;height: 35px;">
                                            
                                    <span class="slds-grid slds-grid_align-spread" style="text-align: center;display:block;">
                                        <div class="slds-truncate">
                                                <span title="处理意见" class="slds-truncate" style="padding-bottom: 3px;">处理意见</span>   
                                                
                                            
                                        </div>
                                    </span>
                                                
                                        
                                    
                                </th> -->
                                <!-- 第八列  货物情况-->
                                <!-- <th  class="slds-is-resizable" tabindex="-1" data-label="经销商确认结果"  scope="row" style="width: 140px;height: 35px;">
                                            
                                    <span class="slds-grid slds-grid_align-spread" style="text-align: center;display:block;">
                                        <div class="slds-truncate">
                                                <span title="经销商确认结果" class="slds-truncate" style="padding-bottom: 3px;">经销商确认结果</span>   
                                                
                                            
                                        </div>
                                    </span>
                                                
                                        
                                    
                                </th> -->
                                
                                
                            </tr>
                        </thead>
                        <aura:if isTrue="{!v.currentData.length > 0}">
                            <tbody>
                                <aura:iteration items="{!v.currentData}" var="curr" indexVar="idx">
                            <tr class="slds-hint-parent">
                            <!-- 行项目也用th 因为用td标签点击列的高光 在苹果设备上 有痕迹 -->
                            <!-- 行项目 第一列 产品型号 -->
                            <th  class="slds-is-resizable" tabindex="-1" data-label="产品型号"  scope="row">
                                
                                        <span class="slds-grid slds-grid_align-spread" style="
                                            width: 110px;
                                            padding-top: 6px;height:30px;
                                        ">
                                            <div class="slds-truncate">
                                                    <lightning:formattedText value="{!curr.Asset_Model_No__c}" />                        
                                            </div>
                                        </span>
                                    
                                
                        
                            </th>
                                        
                            <!-- 行项目 第二列  CODE-->
                            <!-- <th  class="slds-is-resizable" tabindex="-1" data-label="CODE"  scope="row">
                              
                                        <span class="slds-grid slds-grid_align-spread">
                                            <div class="slds-truncate">
                                                    <lightning:formattedText value="{!curr.OTCode__c}" />
                                                    
                                                    
                                                
                                            </div>
                                        </span>
                                    
                                
                        
                            </th> -->
                            <!-- 行项目 第三列  产品名称-->          
                            <th  class="slds-is-resizable" tabindex="-1" data-label="产品名称"  scope="row" style="white-space:nowrap;
                            overflow:hidden;
                            text-overflow: ellipsis;">
                                
                                        <span class="slds-grid slds-grid_align-spread" style="
                                            width: 361px;
                                            padding-top: 6px;height:31px;">
                                            <div class="slds-truncate">
                                                    <lightning:formattedText value="{!curr.productName__c}" />
                                                    
                                                
                                            </div>
                                        </span>
                                    
                            
                        
                            </th>
                            <!-- 行项目 第四列  数量-->           
                            <th  class="slds-is-resizable" tabindex="-1" data-label="数量"  scope="row" >
                              
                                        <span class="slds-grid slds-grid_align-spread" style="text-align: center;display:block;">
                                            <div class="slds-truncate">
                                                    <lightning:formattedText value="{!curr.Count_Text__c}" />
                                                    
                                                
                                            </div>
                                        </span>
                                    
                                
                        
                            </th>
                            <!-- 行项目 第五列  箱号-->          
                            <th  class="slds-is-resizable" tabindex="-1" data-label="箱号"  scope="row">
                             
                                        <span class="slds-grid slds-grid_align-spread" style="text-align: center;display:block;">
                                            <div class="slds-truncate">
                                                    <lightning:formattedNumber id="{!curr.Id+':'+idx+':CaseNumber__c'}" value="{!curr.CaseNumber__c}"/>
                                                    
                                                
                                            </div>
                                        </span>
                                    
                                
                        
                            </th>
                            <!-- 行项目 第六列  货物情况-->          
                            <th  class="slds-is-resizable" tabindex="-1" data-label="货物情况"  scope="row">
                             
                                        <span class="slds-grid slds-grid_align-spread" style="text-align: center;display:block;">
                                            <div class="slds-truncate">
                                                    <lightning:formattedText value="{!curr.agencyGoodStatus__c}" />
                                                    
                                                
                                            </div>
                                        </span>
                                    
                                
                        
                            </th>
                            <!-- 行项目 第七列  处理意见-->          
                            <!-- <th  class="slds-is-resizable" tabindex="-1" data-label="处理意见"  scope="row">
                             
                                        <span class="slds-grid slds-grid_align-spread" style="text-align: center;display:block;">
                                            <div class="slds-truncate">
                                                    <lightning:formattedText value="{!curr.handleOpinion__c}" />
                                                    
                                                
                                            </div>
                                        </span>
                                    
                                
                        
                            </th> -->
 
                            <!-- 行项目 第八列  经销商确认结果-->          
                            <!-- <th  class="slds-is-resizable" tabindex="-1" data-label="经销商确认结果"  scope="row">
                                        
                                        <input id="{!curr.Id}" lightning-input_input ="" type="text" class="slds-input" value="{!curr.agencyConfirmResult__c}"    readonly="readonly" style="border-style:hidden;"/>
                                    
                                        
                            </th> -->
                 
                            </tr>
                        </aura:iteration>
                    </tbody>
                    
                </aura:if>
            </table>
                    
                    <!-- <div class="slds-box">
                        
                        <div align="center" style="float: left;padding-left: 370px;">
                            <lightning:button variant="neutral"
                                                              label="cancel" title="cancel" onclick=""  />
                        </div>
                        
                        <div align="center" style="padding-right: 370px;">
                            <lightning:button variant="brand"
                                                      label="save" title="save" onclick=""/>
                        </div>      
                    </div> -->
                    <aura:if isTrue="{!empty(v.currentData)}">
                        <div class="slds-align_absolute-center">
                            No records found
                        </div>
                    </aura:if>
        <!-- </lightning:card> -->
 
 
 
            </div>
            </div>
            </div>
            
            <!-- 分页功能的上一页和下一页, 还是最左侧的显示当前页数的逻辑-->
            <div id="floatDiv" style="{!'width:'+v.floatWidth+'px;'}">
            <div class="slds-clearfix">
                <div class="slds-page-header" role="banner">
                    <div class="slds-float_center" style="text-align:center">
                        <!-- iconName="utility:chevronleft" iconPosition="left" -->
                        <lightning:button  iconName="utility:left"
                                          onclick="{!c.handleHome}" disabled="{! v.pageNumber == 1}"/>
                        <lightning:button  iconName="utility:chevronleft" iconPosition="left"
                                          onclick="{!c.handlePrev}" disabled="{! v.pageNumber == 1}"/>
                        <span title="当前页">&nbsp;&nbsp;&nbsp;{!v.pageNumber}&nbsp;&nbsp;&nbsp;
                            </span>
                        <lightning:button  iconName="utility:chevronright" iconPosition="right"
                                          disabled="{! v.isLastPage}" onclick="{!c.handleNext}"/>
                        <!-- iconName="utility:chevronright" iconPosition="right" -->
                        <lightning:button  iconName="utility:right" 
                                          disabled="{! v.isLastPage}" onclick="{!c.handleLast}"/>
 
                    </div>
                    
                </div>
            </div>
            <!-- 上一步 -->
            <div class="slds-float_left">
                <div  id="attention"  style=" position:relative;margin-right: 4px;  margin-right: 4px; " class="" >
                    <!-- 确认提交 -->
                    <lightning:button variant="brand"
                                  label="上一步" title="上一步" onclick="{! c.handleShowPageNextClick }" />
                </div>
            </div>
            <!-- 返回首页 -->
            <div class="slds-float_right">
                <lightning:button variant="brand" 
                                  label="下一步" title="下一步" onclick="{!c.OpinionsTODetailsPage }" />
            </div>
 
            </div>
            <!-- 明细页跳转至文件上传页的按钮 -->
            <aura:if isTrue="{!v.hideButton}">
                <div style="position: fixed;margin-left:65%;">
                    <div  id="attention"  style=" position:relative;margin-right: 4px;  margin-right: 4px; " class="" >
                        <!-- 确认提交  确认页注销打勾逻辑 -->
                        <!-- <lightning:layout horizontalAlign="left" class="slds-m-top_small">
                            <lightning:layoutItem padding="around-small">
                                <lightning:input type="checkbox"
                                                 label="是否提交填写内容(默认勾选),点“下一步”到图片上传页"
                                                 id="IsSubmit" name="IsSubmit"
                                                 checked="{!v.IsSubmit}" />
                            </lightning:layoutItem>
                        </lightning:layout> -->
                    </div>
                    <lightning:button variant="brand"
                                      label="下一步" title="下一步" onclick="{! c.handleDetailsPageNextClick }"  />
                </div>
                <!-- 明细页跳转至文件上传页的按钮 -->
                <div style="position: fixed;margin-left:5%;">
                    <lightning:button variant="brand" 
                                      label="提交" title="提交" onclick="{! c.submitClick }" />
                </div>
            </aura:if>
        
    </aura:if>
 
    <aura:if isTrue="{!v.handlingOpinionsPage}">
        <div class="slds-box">
        <div id="page-footer" style="   margin-bottom: 5%;" class="slds-card" >
            <lightning:layout multipleRows="true">
                <lightning:layoutItem padding="around-xsmall" size="12">
                    <div class="page-section page-header" style="height: 25px;">
                        <h2><b>营业担当处理意见如下:</b></h2>
                    </div>
                     <div class="page-section page-right" style="{!'width:'+v.floatWidth*0.8+'px;'}" >
                                
                    <p style="word-break: break-word;text-indent: 2em;">{!v.eSignForm.handleOpinionAgency__c}
                    </p>
                </div>
                </lightning:layoutItem>
                
                
            </lightning:layout>
            
        </div>
            <p style="word-break: break-word;text-indent: 2em;">对以上处理意见无疑义,请点击确认。如有其它问题,请联系奥林巴斯当地营业人员。</p>
 
            <!-- <lightning:input aura:id="inputCmp" label="如有需要,请填写您的邮箱:" name="fullName" value=""
    /> -->
            
    </div>
    <!-- 显示医院二维码 -->
        <!-- <lightning:input type="checkbox"
                                         label="勾选显示医院二维码"
                                         id="chkQR" name="chkQR"
                                         checked="{!v.chkQR}"
                                         onchange="{!c.showHPQR}"
                                          /> -->
        <div id="footerDiv" style="{!'width:'+v.floatWidth+'px;display: flex;flex-direction: row;'}">
            <!-- class="slds-float_left" -->
            <div style="text-align:left;flex: 1;padding-top: 1px;">
                <lightning:button variant="brand" 
                                  label="上一步" title="上一步" onclick="{!c.NextOpinions}" />
            </div>
            <!-- style="text-align:center" -->
            <!-- <div style="text-align:center;flex: 1;padding-top: 1px;">
                    <lightning:button variant="brand" 
                                      label="确认" title="确认" onclick="{!c.submitClick }" />
            </div> -->
            <!-- class="slds-float_right" -->
            <div style="text-align:right;flex: 1;padding-top: 1px;">
                <lightning:button variant="brand" 
                                  label="返回" title="返回" onclick="{!c.BackToHomePage }" />
            </div>
        </div>
        
    </aura:if>
 
 
    <aura:if isTrue="{!v.uploadFilePage}">
        <!-- 文件上传组件 -->
        <lightning:fileUpload label="上传照片"
                              name="fileUploader"
                              recordId="{!v.recordId}"
                              multiple="true"
                              onuploadfinished="{!c.handleUploadFinished}"
                              />
        <p class="field-title" title="Field 3" style="font-weight:bold;font-size: 15px;padding-top: 7px;">(如不需要上传,则请关闭。)
        <!-- 如需上传,请选择照片。 -->
        </p>
    </aura:if>
     <aura:if isTrue="{!v.showESignQR}">
 
            <!-- 加载二维码页面  -->
            <c:eSignHospitalQR DNName="{!v.DNName}" floatWidth="{! v.floatWidth }"/>
        
    </aura:if>
    <aura:if isTrue="{!v.showQR}">
       <section role="dialog" tabindex="-1" aria-labelledby="modal-heading-01"
                         aria-modal="true" aria-describedby="modal-content-id-1"
                         class="slds-modal slds-fade-in-open " >
                    <div class="slds-modal__container" style ="min-Height: 600px">
 
                        <header class="slds-modal__header" style= "{!'max-width:'+v.allWidth+'px;'}" >
                            <lightning:buttonIcon iconName="utility:close"
                                                  onclick="{! c.closeCancelModel }"
                                                  alternativeText="close"
                                                  variant="bare-inverse"
                                                  class="slds-modal__close"/>
                            <h4 id="modal-heading-01" class="slds-text-heading_medium slds-hyphenate">请保留该二维码提供给医院进行签收</h4>
                        </header>
                        <div class="slds-modal__content slds-p-around_medium" id="modal-content-id-1" style ="{!'min-Height:600px;max-width:'+v.allWidth+'px;'}">
                            <c:eSignHospitalQR DNName="{!v.DNName}" QRWidth="{! v.QRWidth }" QRHeight="{!v.QRHeight }"/>
                        </div>
                        
                        <footer class="slds-modal__footer" style= "{!'max-width:'+v.allWidth+'px;'}">
 
                            <!-- <lightning:button variant="brand"
                                              label="确认取消任务"
                                              title="ConfirmCancel"
                                              onclick="{! c.ConfirmCancel }"/> -->
                            <lightning:button variant="neutral"
                                              label="关闭"
                                              title="Cancel"
                                              onclick="{! c.hideHPQR }"/>
                        </footer>
                    </div>
         </section>
   </aura:if>
 
</aura:component>