detail.html
20.8 KB
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
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>查看</title>
<style>
.fa {
margin-right: 4px;
}
body.is-dialog, #main {
background: #ecf0f5 !important;
}
legend {
padding-bottom: 5px;
font-size: 14px;
padding-right: 15px;
}
.span-content {
margin-left: 8px;
vertical-align: middle;
}
.timeline-header a {
font-size: 80%;
margin-left: 4px;
}
.main-content .tab-content{
height: calc(100vh - 66px)!important;
overflow: auto;
overflow-x: hidden;
padding: 10px 15px 0 15px!important;
scrollbar-width: thin;
}
.nav-tabs-custom{
margin-bottom: 0;
}
.content {
padding-bottom: 0;
}
div ::-webkit-scrollbar {
/*滚动条整体*/
width: 4px;
height: 6px;
border-radius: 5px;
}
div ::-webkit-scrollbar-track {
/*滚动条轨道*/
background: #e3e3e3;
border-radius: 2px;
}
div ::-webkit-scrollbar-thumb {
/*滚动条里面的滑块*/
background: #d1d1d1;
border-radius: 2px;
}
div ::-webkit-scrollbar-thumb:hover {
/*滚动条鼠标事件,鼠标放上去出现的事件*/
background: #a8a8a8;
}
div ::-webkit-scrollbar-corner {
/*滚动条边角*/
background: #a8a8a8;
}
.bill-title{
border-left: 4px solid #22a08b;
padding-left: 4px;
}
table td a{
width: 60px;
}
.ebill-empty-hint{
width: 100%;
height: 34px;
text-align: center;
position: absolute;
text-align: center;
top:calc(50vh - 17px);
font-size: 16pt;
font-family: '黑体';
color: #c2c2c2;
}
.toolbar{
height: 38px;
background: #fafafa;
padding: 4px;
border-bottom: 1px solid #efefef;
}
#ebill-content{
height: calc(100vh - 134px);
width: 100%;
}
</style>
</head>
<body>
<div class="row main-content">
<div id="fastflow-left-content" class="col-md-6 col-lg-6 col-sm-6">
<div class="nav-tabs-custom">
<ul class="nav nav-tabs">
<li class="active"><a href="#detail-table" data-toggle="tab" aria-expanded="true">列表</a></li>
<li><a href="#detail-timeline" data-toggle="tab" aria-expanded="true">时间线</a></li>
</ul>
<div class="tab-content">
<div class="tab-pane active" id="detail-table">
<!--tablePrintStart-->
<style>
table tr th,td{
text-align: center;
display: table-cell;
vertical-align: middle!important;
word-break: break-all;
word-wrap:break-word;
}
</style>
<div class="box" style="border-top: 0;">
<div class="box-header" style="border-bottom: 3px solid #e5e5e5;">
<span class="bill-title" style="margin-right: 12px;"><label class="text-cyan">单据</label>:{$bill} (ID:{$bill_id})</span>
<span><label class="text-cyan">发起人</label>:{$initiator}</span>
<div class="box-tools">
<div class="input-group input-group-sm" style="width: 150px;">
<div class="input-group-btn">
<a href="javascript:;" id="table-print" class="btn btn-default pull-right"><i class="fa fa-print"></i>打印/保存为PDF</a>
</div>
</div>
</div>
</div>
<div class="box-body table-responsive no-padding">
<table class="table table-striped table-bordered detail-table" style="table-layout: fixed;margin-top: 4px;">
<tbody>
<tr>
<th width="180px">时间</th>
<th width="80px">审批步骤</th>
<th width="120px">审批人/组</th>
<th width="100px">操作</th>
<th width="300px">审批内容</th>
<th width="120px">资料</th>
<th width="120px">代理人/组</th>
<th width="120px">被代理人/组</th>
</tr>
{volist name='logs' id='log'}
{volist name='log' id='row'}
<tr>
<td>
{$row['longtime']}
</td>
<td>
{$row['step_name']}
</td>
<td>{$row['worker_name']}</td>
<td>
{if $row['check_type']==1}<a class="btn btn-success btn-xs">同 意</a>{/if}
{if $row['check_type']==2}<a class="btn btn-danger btn-xs">驳 回</a>{/if}
{if $row['check_type']==3}<a class="btn btn-info btn-xs">发起会签</a>{/if}
{if $row['check_type']==5}<a class="btn btn-success btn-xs">发起审批</a>{/if}
{if $row['check_type']==6}<a class="btn btn-warning btn-xs">流程结束</a>{/if}
{if $row['is_agency']==1}<a class="btn btn-info-light btn-xs" style="margin-top: -1px;">代 理</a>{/if}
</td>
<td>{$row['check_content']}</td>
<td>
{if $row['file']!=''}
<span class="flow-file">
<a href="{$row['file']}" class="btn btn-info-light btn-xs">{if $row['file_name']!= ''}{$row['file_name']}{else /}资料{/if}</a>
</span>
{/if}
</td>
<td>
{if $row['is_agency']==1}
{$row['agent']}
{/if}
</td>
<td>
{if $row['is_agency']==1}
{$row['principal']}
{/if}
</td>
</tr>
{/volist}
{/volist}
</tbody>
</table>
</div>
</div>
<!--tablePrintEnd-->
</div>
<div class="tab-pane" id="detail-timeline">
<!--timelinePrintStart-->
<style>
.timeline {
padding-bottom: 10px;
}
.timeline-item {
margin-top: 8px !important;
background-color: #fbfbfb!important;
}
.timeline li .label-step {
display: inline-block;
min-width: 80px;
font-size: 100%;
background-size: 100% 100%;
background-color: #4d7fad;
}
.timeline .label-time {
background-color: #afbdcd!important;
}
.timeline-header {
background: #f1f1f1;
color: #0a6aa1;
font-size: 15px !important;
}
.timeline-body p span {
vertical-align: middle;
}
li .label {
padding: .3em .6em .3em !important;
}
</style>
<div class="box" style="border-top: 0;">
<div class="box-header" style="border-bottom: 3px solid #e5e5e5;">
<span class="bill-title" style="margin-right: 12px;"><label class="text-cyan">单据</label>:{$bill} (ID:{$bill_id})</span>
<span><label class="text-cyan">发起人</label>:{$initiator}</span>
<div class="box-tools">
<div class="input-group input-group-sm" style="width: 150px;">
<div class="input-group-btn">
<a href="javascript:;" id="timeline-print" class="btn btn-default pull-right"><i class="fa fa-print"></i>打印/保存为PDF</a>
</div>
</div>
</div>
</div>
<div class="box-body table-responsive no-padding">
<ul class="timeline" style="margin-top: 4px;">
{volist name='logs' id='log'}
<li class="time-label">
<span class="label label-time">{$key}</span>
</li>
{volist name='log' id='row'}
<li>
<span class="label label-step"><i class="fa fa-tasks"></i>{$row['step_name']}</span>
<div class="timeline-item">
<span class="time"><i class="fa fa-clock-o"></i> {$row['longtime']}</span>
<div class="timeline-header">
<label style="font-weight:300;">
{if $row['check_type']==6}流程结束:{elseif $row['check_type']==5}发起人:{else /}审批人:{/if}
<span class="text-warning">{$row['worker_name']}</span>
</label>
{if $row['check_type']==1}<a class="btn btn-success-light btn-xs">同意</a>{/if}
{if $row['check_type']==2}<a class="btn btn-danger-light btn-xs">驳回</a>{/if}
{if $row['check_type']==3}<a class="btn btn-info-light btn-xs">发起会签</a>{/if}
{if $row['check_type']==5}<a class="btn btn-success-light btn-xs">发起审批</a>{/if}
{if $row['is_agency']==1}<a class="btn btn-info-light btn-xs">代理</a>{/if}
</div>
<div class="timeline-body">
<div style="margin-left: 10px;">
{if $row['check_type']==6}
<p><a class="btn btn-warning btn-xs" style="font-size: 80%">流程结束</a></p>
{elseif $row['check_type']==4}
<p><a class="btn btn-warning btn-xs" style="font-size: 80%">审批被强制终止</a></p>
{else /}
<legend>
<div class="row">
{if $row['is_agency']==1}
<div class="col-xs-12 col-sm-6" style="margin-bottom: 8px;">
<span class="label label-info text-bold"><i class="fa fa-user"></i>代理人(组)</span>
<span class="span-content">
{$row['agent']}
</span>
</div>
<div class="col-xs-12 col-sm-6" style="margin-bottom: 8px;">
<span class="label label-info text-bold"><i class="fa fa-user"></i>被代理人(组)</span>
<span class="span-content">
{$row['principal']}
</span>
</div>
{/if}
</div>
</legend>
{if $row['check_type']==2}
<p>
<span class="text-bold"><i class="fa fa-mail-reply text-danger"></i>驳回步骤:</span>
<span class="text-info">{$row['back_steps']}</span>
</p>
{/if}
{if $row['check_type']==3}
<p><span class="text-bold"><i class="fa fa-user text-success"></i>会签人员:</span>
<span class="text-info">{$row['sign_worker']}</span>
<span class="text-success">
{php}
if(count(explode(',',$row['sign_worker']))>1){
if($row['sign_checkmode']==1){
echo '(联合会签)';
}
else{
echo '(任一会签)';
}
}
{/php}
</span>
</p>
{/if}
<p>
<span class="text-bold"><i class="fa fa-pencil-square-o text-warning"></i>审批内容:</span>
{$row['check_content']}
</p>
{if $row['file']!=''}
<p>
<span class="text-bold"><i class="fa fa-file-text-o text-gray"></i>资料下载:</span>
<span class="flow-file">
<a href="{$row['file']}" class="btn btn-info-light btn-xs">{if $row['file_name']!= ''}{$row['file_name']}{else /}资料{/if}</a>
</span>
</p>
{/if}
{/if}
</div>
</div>
</div>
</li>
{/volist}
{/volist}
</ul>
</div>
</div>
<!--timelinePrintEnd-->
</div>
</div>
</div>
</div>
<div id="fastflow-right-content" class="col-md-6 col-lg-6 col-sm-6">
<div class="nav-tabs-custom">
<ul class="nav nav-tabs">
<li class="active"><a href="#bill-edit" data-toggle="tab" aria-expanded="true">单据</a></li>
{if $ebill_id != null}
<li><a id="ebill-tab" href="#ebill" data-toggle="tab" aria-expanded="true">电子表单</a></li>
{/if}
</ul>
<div class="tab-content">
<!--billPrintStart-->
<div class="tab-pane active" id="bill-edit">
<lagend class="bill-legend hidden" style="display:block;width:100%;padding-bottom:8px;font-size:14px;padding-left: 10px;padding-top: 8px;margin-bottom: 12px;color: #0a6aa1;border-bottom: 3px solid #e5e5e5;">
<span class="bill-title" style="margin-right: 12px;"><label class="text-cyan">单据</label>:{$bill} (ID:{$bill_id})</span>
<span><label class="text-cyan">发起人</label>:{$initiator}</span>
</lagend>
</div>
<!--billPrintEnd-->
{if $ebill_id != null}
<div class="tab-pane" id="ebill" style="overflow: hidden;">
<div class="toolbar hidden" id="toolbar">
<a href="javascript:;" id="ebill-print" class="btn btn-sm btn-success"> <i class="fa fa-print" style="margin-right: 4px"></i> 打印电子表单</a>
{if $hasSignature}
<a href="{$pdfFile}" download="{$bill}({$bill_id})电子表单.pdf" class="btn btn-sm btn-info"> <i class="fa fa-download" style="margin-right: 4px"></i> 下载PDF</a>
{else /}
<a href="javascript:;" id="ebill-download-pdf" class="btn btn-sm btn-info"> <i class="fa fa-download" style="margin-right: 4px"></i> 下载PDF</a>
{/if}
</div>
<span class="ebill-empty-hint">无电子表单</span>
<div id="ebill-content" class="hidden">
<!--ebillPrintStart-->
<iframe id="ebill-iframe" data-src="{:url('/fastflow/flow/ebill/preview')}" style="width: 100%;height: 100%;border: none;overflow: auto;margin-left: -4px;"></iframe>
<!--ebillPrintEnd-->
</div>
</div>
{/if}
</div>
</div>
</div>
</div>
<div class="footer" style="display:none;background: #ffffff;height: 53px;padding: 10px 10px 0 0;">
<style>
.footer .btn{
margin-left: 4px;
}
</style>
<div class="col-xs-12 col-sm-12">
<a href="javascript:;" id="export-word" class="btn btn-warning pull-right">保存为Word</a>
<a href="javascript:;" id="merge-print" class="btn btn-info pull-right">合并打印</a>
<a href="javascript:;" id="bill-print" class="btn btn-success pull-right">打印单据</a>
</div>
</div>
</body>
</html>