stamp.html
6.79 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
<link href="/assets/addons/fastflow/plugins/card/card.css" rel="stylesheet" type="text/css"/>
<style>
legend {
padding-bottom: 5px;
font-size: 14px;
font-weight: 600;
padding-left: 10px;
padding-right: 15px;
/*color: #0a5ba6;*/
margin-bottom:0;
margin-top: 8px;
/*background: #f5f5f5;*/
}
.ebill{
height: calc(100vh - 124px)!important;
overflow: auto;
}
.content{
padding-top: 8px;
background: #ecf0f5;
}
.fastflow-worker{
padding: 25px 15px 0 15px;
border-top: 1px solid #cdcdcd;
/*background: #f5f5f5;*/
}
body.is-dialog {
background: #ecf0f5 !important;
}
div ::-webkit-scrollbar {
/*滚动条整体*/
width: 12px;
height: 8px;
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;
}
.btn-group{
display: flex;
position: relative;
vertical-align: middle;
line-height: 32px;
}
.btn-group .btn{
margin-right: 6px;
}
.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;
}
.stamp-toolbar{
position: absolute;
bottom: -30px;
right: 0;
}
.stamp-list{
height: calc(100vh - 124px)!important;
overflow: auto;
border: 1px solid #e9e9e9;
}
.contenedorCards .card {
width: 126px!important;
}
.contenedorCards .card .wrapper {
border-radius: 4px;
box-shadow: 0 0 5px 1px rgb(0 0 0 / 10%);
}
.contenedorCards .card .wrapper .imgProd {
background-position: center!important;
height: 110px!important;
padding: 8px;
}
.contenedorCards .card .wrapper .infoProd .actions .preciosGrupo {
height: 40px!important;
}
.contenedorCards .card .wrapper .infoProd {
height: 32px!important;
padding: 0px 10px 0px 10px!important;
margin-top: 4px!important;
}
.contenedorCards .card .wrapper .infoProd .actions .action {
bottom: 0px!important;
right: 4px!important;
}
.contenedorCards .card .wrapper .infoProd .actions .preciosGrupo .precio {
font-size: 15px!important;
padding-top: 8px!important;
}
.contenedorCards .card .wrapper .infoProd .extraInfo {
margin-top: 4px!important;
height: 20px!important;
}
.ebill{
border: 1px solid #e0e0e0;
}
.ebill,.ebill-content{
position: relative;
margin: auto;
}
.ebill .stamp {
position: absolute;
cursor: move;
border: 1px dashed #ccc;
/*padding: 8px;*/
/*display: -webkit-box;*/
/*-webkit-box-pack: center;*/
/*-webkit-box-align: center;*/
top:200px;
left:40%;
}
.stamp.ok {
cursor: default;
border-color: transparent;
}
.stamped{
position: absolute;
}
.sign {
position: absolute;
cursor: move;
border: 1px dashed #ccc;
padding: 8px;
display: -webkit-box;
-webkit-box-pack: center;
-webkit-box-align: center;
}
.resizeHandle-br {
display: block;
position: absolute;
width: 10px;
height: 10px;
border-right: 2px solid #b2b2b2;
border-bottom: 2px solid #b2b2b2;
right: 0px;
bottom: 0px;
overflow: hidden;
cursor: nw-resize;
}
.ebill-title{
vertical-align: middle;
margin-right: 12px;
}
</style>
<div class="content" style="background: white;">
<div class="col-xs-12 col-sm-12 col-md-8 col-lg-8">
<legend>
<span class="ebill-title">{$signature.ebill_copy.title}</span>
<a href="{:url('/fastflow/flow/flow/detail',['bill'=>$signature.bill,'bill_id'=>$signature.bill_id])}" class="btn btn-xs btn-info btn-dialog" title="单据详情" data-area='["95%","95%"]'>单据ID:{$signature.bill_id} <i class="fa fa-eye"></i></a>
<a id="undo" href="javascript:;" class="btn btn-xs btn-danger pull-right disabled"><i class="fa fa-undo"></i> 撤销</a>
</legend>
<div class="ebill" id="ebill">
<div class="ebill-content" id="ebill-content" style="width: {$signature.ebill_width}px;height:{$signature.ebill_height}px;background-image: url('{$signature.ebill}')">
<div class="stamp hidden" id="stamp">
<div class="stamp-content" style='height:110px;width:110px;background-size: contain;background-repeat:no-repeat;'></div>
<div class="stamp-toolbar">
<a class="btn btn-xs btn-success stamp-ok" id="stamp-ok">盖章</a>
<a class="btn btn-xs btn-danger stamp-cancel" id="stamp-cancel">取消</a>
</div>
</div>
</div>
</div>
</div>
<div class="col-xs-12 col-sm-12 col-md-4 col-lg-4">
<legend>选择印章</legend>
<div class="stamp-list">
<div class="contenedorCards" id="contenedorCards">
{volist name='stampList' id='stamp'}
<div class="card" data-id="{$stamp.id}" data-title="{$stamp.title}">
<div class="wrapper">
<div class="imgProd">
<div class="stamp-image" style='height:100%;width:100%;background-image:url("{$stamp.file}");background-size:contain;background-repeat:no-repeat;'></div>
</div>
<div class="infoProd">
<p class="extraInfo">{$stamp.title}</p>
</div>
</div>
</div>
{/volist}
</div>
<span class="empty-hint {if $stampList}hidden{/if}">无印章</span>
</div>
</div>
<div class="col-xs-12 col-sm-12 col-md-12 col-lg-12 footer" style="margin-top: 8px;">
<div class="pull-right" style="margin-right: 18px;">
<button type="submit" class="btn btn-success btn-embossed" disabled>提交</button>
<button type="close" class="btn btn-danger btn-embossed">关闭</button>
</div>
</div>
</div>