Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
Y
YX_IDENT_beijing_auxiliary_YD
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
zhangyusheng
YX_IDENT_beijing_auxiliary_YD
Commits
707ddd93
Commit
707ddd93
authored
Apr 24, 2019
by
liboyang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
打印交接单
parent
7cea6b4c
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
36 additions
and
26 deletions
+36
-26
receitp.html
src/main/resources/static/views/receitp/receitp.html
+4
-4
receitp.js
src/main/resources/static/views/receitp/receitp.js
+23
-17
report.html
src/main/resources/static/views/report/report.html
+2
-4
report.js
src/main/resources/static/views/report/report.js
+1
-1
taskListPrint.html
src/main/resources/static/views/task/taskListPrint.html
+6
-0
No files found.
src/main/resources/static/views/receitp/receitp.html
View file @
707ddd93
...
...
@@ -147,7 +147,7 @@
</div>
</div>
</div>
<div
id=
"divPrint"
>
<div
id=
"divPrint
{{$index}}"
ng-repeat=
"idx in result
"
>
<div
class=
"title"
style=
"text-align: center;"
>
北京市公安局证件制作管理中心交接岗位
<br
/>
身份证交接单
</div>
...
...
@@ -174,9 +174,9 @@
</tr>
</thead>
<tbody>
<tr
ng-repeat=
"item in
receitpDataToPrint.list
"
>
<tr
ng-repeat=
"item in
idx
"
>
<td
width=
"60"
>
{{
$index+1
}}
{{
item.id
}}
</td>
<td
width=
"130"
>
{{item.QR_CODE}}
...
...
@@ -193,7 +193,7 @@
</tr>
</tbody>
<tfoot>
<tr>
<tr
ng-if=
"$index==result.length-1"
>
<td
colspan=
"2"
class=
"center"
>
合计
</td>
...
...
src/main/resources/static/views/receitp/receitp.js
View file @
707ddd93
...
...
@@ -128,19 +128,25 @@ angular.module('AvatarCheck.receitp', ['ngRoute', 'AvatarCheck.http'])
list
:[]
}
var
checks
=
$
(
".checkAllPolice:checked"
);
if
(
checks
.
length
>
37
){
$scope
.
chooseCount
=
checks
.
length
;
MessageService
.
showAlert
(
"一张纸上只能显示37条数据,本次已选择"
+
$scope
.
chooseCount
+
"条,请去掉"
+
37
-
$scope
.
chooseCount
+
"条数据再打印"
)
}
else
{
for
(
var
i
=
0
;
i
<
checks
.
length
;
i
++
){
for
(
var
j
=
0
;
j
<
JSON
.
parse
(
checks
[
i
].
value
).
length
;
j
++
){
json
.
list
.
push
(
JSON
.
parse
(
checks
[
i
].
value
)[
j
].
POLICE_CODE
)
}
for
(
var
i
=
0
;
i
<
checks
.
length
;
i
++
){
for
(
var
j
=
0
;
j
<
JSON
.
parse
(
checks
[
i
].
value
).
length
;
j
++
){
json
.
list
.
push
(
JSON
.
parse
(
checks
[
i
].
value
)[
j
].
POLICE_CODE
)
}
}
console
.
log
(
json
)
HttpService
.
printReceitpData
(
json
,
function
(
data
)
{
$scope
.
receitpDataToPrint
=
data
;
for
(
var
i
=
0
;
i
<
$scope
.
receitpDataToPrint
.
list
.
length
;
i
++
){
$scope
.
receitpDataToPrint
.
list
[
i
].
id
=
i
+
1
}
console
.
log
(
json
)
HttpService
.
printReceitpData
(
json
,
function
(
data
)
{
$scope
.
receitpDataToPrint
=
data
;
$timeout
(
function
()
{
$scope
.
result
=
[];
for
(
var
i
=
0
;
i
<
$scope
.
receitpDataToPrint
.
list
.
length
;
i
+=
37
){
$scope
.
result
.
push
(
$scope
.
receitpDataToPrint
.
list
.
slice
(
i
,
i
+
37
));
}
console
.
log
(
$scope
.
result
)
$timeout
(
function
()
{
for
(
var
i
=
0
;
i
<
$scope
.
result
.
length
;
i
++
){
var
LODOP
=
getLodop
();
LODOP
.
SET_LICENSES
(
""
,
"15F0BE661E7F32F37491843CB2510905"
,
"C94CEE276DB2187AE6B65D56B3FC2848"
,
""
);
//初始化
...
...
@@ -162,15 +168,15 @@ angular.module('AvatarCheck.receitp', ['ngRoute', 'AvatarCheck.http'])
LODOP
.
SET_PRINT_STYLEA
(
0
,
"Bold"
,
1
);
LODOP
.
SET_PRINT_STYLEA
(
0
,
"Alignment"
,
1
);
LODOP
.
SET_PRINT_STYLEA
(
0
,
"FontSize"
,
12
);
LODOP
.
ADD_PRINT_TABLE
(
110
,
3
,
740
,
"100%"
,
document
.
getElementById
(
"divPrint"
).
innerHTML
);
LODOP
.
ADD_PRINT_TABLE
(
110
,
3
,
740
,
"100%"
,
document
.
getElementById
(
"divPrint"
+
i
).
innerHTML
);
LODOP
.
SET_PRINT_STYLEA
(
0
,
"HOrient"
,
2
);
LODOP
.
SET_PRINT_STYLEA
(
0
,
"Vorient"
,
3
);
LODOP
.
SET_PRINTER_INDEXA
(
-
1
);
LODOP
.
PREVIEW
();
//
LODOP.PRINT();
}
)
//
LODOP.PREVIEW();
LODOP
.
PRINT
();
}
})
}
}
)
}
...
...
src/main/resources/static/views/report/report.html
View file @
707ddd93
...
...
@@ -5,8 +5,7 @@
<div
class=
"col-md-12"
>
<div
class=
"box box-primary"
>
<div
class=
"box-header"
>
<strong
ng-if=
"state==2"
>
膜打印数据报表
</strong>
<strong
ng-if=
"state==3"
>
工作组数据报表
</strong>
<strong>
膜打印数据报表
</strong>
<div
class=
"box-tools pull-right"
>
<span>
查询日期:
</span><input
type=
"text"
style=
"height: 30px;margin-right: 10px;border-radius: 4px;background-color: #eee;cursor: not-allowed;border: 1px solid #ccc;"
ng-model=
"choseDate1"
id=
"datepicker1"
readonly
/>
<span>
至
</span>
<input
type=
"text"
style=
"height: 30px;margin-right: 10px;border-radius: 4px;background-color: #eee;cursor: not-allowed;border: 1px solid #ccc;"
ng-model=
"choseDate2"
id=
"datepicker2"
readonly
/>
...
...
@@ -27,8 +26,7 @@
<table
class=
"table table-hover postTable"
>
<thead>
<tr>
<th
ng-if=
"state==2"
>
打印日期
</th>
<th
ng-if=
"state==3"
>
预定位日期
</th>
<th>
打印日期
</th>
<th>
大批证
</th>
<th>
邮寄证
</th>
<th>
军人证
</th>
...
...
src/main/resources/static/views/report/report.js
View file @
707ddd93
...
...
@@ -10,7 +10,6 @@ angular.module('AvatarCheck.report', ['ngRoute', 'AvatarCheck.http'])
}])
.
controller
(
'reportCtrl'
,
function
(
$scope
,
$rootScope
,
$timeout
,
HttpService
,
ngDialog
,
MessageService
,
$filter
)
{
$scope
.
state
=
3
;
//Date picker
$
(
'#datepicker1'
).
datetimepicker
({
minView
:
"month"
,
//选择日期后,不会再跳转去选择时分秒
...
...
@@ -41,6 +40,7 @@ angular.module('AvatarCheck.report', ['ngRoute', 'AvatarCheck.http'])
}
HttpService
.
getReport
(
date1
,
date2
,
function
(
data
){
$scope
.
reportData
=
data
;
console
.
log
(
$scope
.
reportData
)
})
}
$scope
.
searchReport
();
...
...
src/main/resources/static/views/task/taskListPrint.html
View file @
707ddd93
...
...
@@ -103,6 +103,12 @@
<div
class=
"pull-right"
style=
"margin-left: 10px;"
>
<button
class=
"btn btn-primary"
ng-click=
"goes()"
>
转出任务单
</button>
</div>
<div
class=
"pull-right"
>
<select
class=
"form-control select2"
id=
"group"
style=
"border-radius:5px"
>
<option
value=
"1"
>
A组
</option>
<option
value=
"2"
>
B组
</option>
</select>
</div>
</div>
</div>
</div>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment