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
3bc258ce
Commit
3bc258ce
authored
Apr 09, 2019
by
liboyang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
标签打印
parent
c79a84e8
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
148 additions
and
70 deletions
+148
-70
gotoDistributeBySjhy.html
src/main/resources/static/dialogs/gotoDistributeBySjhy.html
+13
-0
index.html
src/main/resources/static/index.html
+1
-1
app.js
src/main/resources/static/js/app.js
+34
-25
service.js
src/main/resources/static/js/service.js
+26
-2
dispatchTask.js
src/main/resources/static/views/dispatchTask/dispatchTask.js
+8
-3
tagPrint.html
src/main/resources/static/views/tagPrint/tagPrint.html
+9
-8
tagPrint.js
src/main/resources/static/views/tagPrint/tagPrint.js
+57
-31
No files found.
src/main/resources/static/dialogs/gotoDistributeBySjhy.html
0 → 100644
View file @
3bc258ce
<div
class=
"ui-dialog-title"
>
提示
</div>
<div
class=
"ui-dialog-content"
>
<div>
A组已转出:{{dataCount[0].ASUM}}
</div>
<div>
B组已转出:{{dataCount[0].BSUM}}
</div>
<div>
本次已选择总数:
<span
ng-if=
"group==1"
>
A组:
</span><span
ng-if=
"group==2"
>
B组:
</span>
{{selectCount}}
</div>
</div>
<div
class=
"ui-dialog-confirm"
>
<button
type=
"submit"
class=
"btn btn-info create"
ng-click=
"confirmGoTo()"
>
确认
</button>
<button
type=
"submit"
class=
"btn btn-danger"
ng-click=
"closeThisDialog()"
>
取消
</button>
</div>
src/main/resources/static/index.html
View file @
3bc258ce
...
...
@@ -156,7 +156,7 @@
</footer>
</div>
<div
ng-if=
"loginData.login == false"
class=
"wrapper"
style=
"background-image:url(newTheme/dist/img/download.jpg);background-repeat:repeat;height:100%;"
>
<div
style=
"min-height:
5
00px;"
ng-view
></div>
<div
style=
"min-height:
10
00px;"
ng-view
></div>
</div>
<!-- iCheck -->
...
...
src/main/resources/static/js/app.js
View file @
3bc258ce
...
...
@@ -220,18 +220,22 @@ angular.module('AvatarCheck', [
$scope
.
addQuickCardAccu
=
function
(){
if
(
$
(
".accu:checked"
).
length
>
0
){
var
idx
=
$
(
".accu:checked"
).
val
();
var
check
=
idx
.
split
(
"+"
);
var
json
=
{};
json
.
acceptNo
=
check
[
0
];
json
.
cardType
=
$scope
.
searchResult
.
workOrderData
[
0
].
CARD_TYPE_ID
;
json
.
countyCode
=
check
[
1
];
json
.
name
=
$rootScope
.
loginData
.
name
;
console
.
log
(
json
)
HttpService
.
addSpecialCard
(
json
,
function
(
data
)
{
MessageService
.
showAlert
(
data
.
msg
)
$scope
.
doSearch
(
$scope
.
searchInput
)
})
if
(
angular
.
isUndefined
(
$scope
.
searchResult
.
workOrderData
[
0
].
CARD_TYPE_ID
)){
MessageService
.
showAlert
(
"无制证类型记录,请创建任务单后再添加快证"
)
}
else
{
var
idx
=
$
(
".accu:checked"
).
val
();
var
check
=
idx
.
split
(
"+"
);
var
json
=
{};
json
.
acceptNo
=
check
[
0
];
json
.
cardType
=
$scope
.
searchResult
.
workOrderData
[
0
].
CARD_TYPE_ID
;
json
.
countyCode
=
check
[
1
];
json
.
name
=
$rootScope
.
loginData
.
name
;
console
.
log
(
json
)
HttpService
.
addSpecialCard
(
json
,
function
(
data
)
{
MessageService
.
showAlert
(
data
.
msg
)
$scope
.
doSearch
(
$scope
.
searchInput
)
})
}
}
else
{
MessageService
.
showAlert
(
"请选择要添加的信息"
)
}
...
...
@@ -240,19 +244,24 @@ angular.module('AvatarCheck', [
$scope
.
addQuickCardProd
=
function
(){
console
.
log
(
$scope
.
searchResult
.
workOrderData
[
0
].
CARD_TYPE_ID
)
if
(
$
(
".prod:checked"
).
length
>
0
){
var
idx
=
$
(
".prod:checked"
).
val
();
var
check
=
idx
.
split
(
"+"
);
console
.
log
(
idx
,
check
)
var
json
=
{};
json
.
acceptNo
=
check
[
0
];
json
.
cardType
=
$scope
.
searchResult
.
workOrderData
[
0
].
CARD_TYPE_ID
;
json
.
countyCode
=
check
[
1
];
json
.
name
=
$rootScope
.
loginData
.
name
;
console
.
log
(
json
)
HttpService
.
addSpecialCard
(
json
,
function
(
data
)
{
MessageService
.
showAlert
(
data
.
msg
)
$scope
.
doSearch
(
$scope
.
searchInput
)
})
if
(
angular
.
isUndefined
(
$scope
.
searchResult
.
workOrderData
[
0
].
CARD_TYPE_ID
)){
MessageService
.
showAlert
(
"无制证类型记录,请创建任务单后再添加快证"
)
}
else
{
var
idx
=
$
(
".prod:checked"
).
val
();
var
check
=
idx
.
split
(
"+"
);
console
.
log
(
idx
,
check
)
var
json
=
{};
json
.
acceptNo
=
check
[
0
];
json
.
cardType
=
$scope
.
searchResult
.
workOrderData
[
0
].
CARD_TYPE_ID
;
json
.
countyCode
=
check
[
1
];
json
.
name
=
$rootScope
.
loginData
.
name
;
console
.
log
(
json
)
HttpService
.
addSpecialCard
(
json
,
function
(
data
)
{
MessageService
.
showAlert
(
data
.
msg
)
$scope
.
doSearch
(
$scope
.
searchInput
)
})
}
}
else
{
MessageService
.
showAlert
(
"请选择要添加快证的信息"
)
}
...
...
src/main/resources/static/js/service.js
View file @
3bc258ce
...
...
@@ -509,7 +509,8 @@ angular.module('AvatarCheck.http', ['ngDialog', 'LocalStorageModule'])
method
:
'GET'
,
url
:
"../ReceiptApi/createReceiptList"
+
urlTimeStamp
(),
params
:{
id
:
idCard
id
:
idCard
,
name
:
$rootScope
.
loginData
.
name
}
}).
then
(
function
successCallback
(
response
)
{
success
(
response
.
data
)
...
...
@@ -752,6 +753,14 @@ angular.module('AvatarCheck.http', ['ngDialog', 'LocalStorageModule'])
success
(
response
.
data
)
})
},
getHasDistributeCountByGroupWork
:
function
(
success
){
$http
({
method
:
'GET'
,
url
:
"../TaskList/getPrintOutCount"
+
urlTimeStamp
()
}).
then
(
function
successCallback
(
response
)
{
success
(
response
.
data
)
})
},
updatePrintTaskListProcess
:
function
(
json
,
success
){
var
body
=
JSON
.
stringify
(
json
);
$http
({
...
...
@@ -802,7 +811,10 @@ angular.module('AvatarCheck.http', ['ngDialog', 'LocalStorageModule'])
getPoliceListDataNotCheckedData
:
function
(
success
)
{
$http
({
method
:
'GET'
,
url
:
"../ReceiptApi/selectRecriptData"
+
urlTimeStamp
()
url
:
"../ReceiptApi/selectRecriptData"
+
urlTimeStamp
(),
params
:{
name
:
$rootScope
.
loginData
.
name
}
}).
then
(
function
successCallback
(
response
)
{
success
(
response
.
data
)
})
...
...
@@ -948,6 +960,17 @@ angular.module('AvatarCheck.http', ['ngDialog', 'LocalStorageModule'])
}).
then
(
function
successCallback
(
response
)
{
success
(
response
.
data
)
})
},
getPoliceName
:
function
(
policeCode
,
success
)
{
$http
({
method
:
'GET'
,
url
:
"../ReceiptApi/queryPoliceName"
+
urlTimeStamp
(),
params
:{
policeCode
:
policeCode
}
}).
then
(
function
successCallback
(
response
)
{
success
(
response
.
data
)
})
}
}
});
\ No newline at end of file
src/main/resources/static/views/dispatchTask/dispatchTask.js
View file @
3bc258ce
...
...
@@ -163,8 +163,6 @@ angular.module('AvatarCheck.dispatchTask', ['ngRoute', 'AvatarCheck.http', 'tm.p
for
(
var
i
=
0
;
i
<
$scope
.
selected
.
length
;
i
++
)
{
$rootScope
.
selectCount
=
$rootScope
.
selectCount
+
parseInt
(
$scope
.
selected
[
i
].
countyValidCount
-
$scope
.
selected
[
i
].
specialCount
);
}
$scope
.
restCount
=
$rootScope
.
selectCount
%
8
;
console
.
log
(
"for"
,
$rootScope
.
selectCount
)
var
go
=
function
()
{
$rootScope
.
closeBtn
();
var
checks
=
$
(
".checkOneBox:checked"
);
...
...
@@ -193,12 +191,19 @@ angular.module('AvatarCheck.dispatchTask', ['ngRoute', 'AvatarCheck.http', 'tm.p
})
}
if
(
$scope
.
selected
.
length
>
0
){
var
group
=
$
(
"#group"
).
val
();
console
.
log
(
group
)
ngDialog
.
open
({
template
:
'dialogs/gotoDistribute.html'
+
urlTimeStamp
(),
template
:
'dialogs/gotoDistribute
BySjhy
.html'
+
urlTimeStamp
(),
width
:
800
,
cache
:
false
,
closeByDocument
:
false
,
controller
:
[
'$scope'
,
'HttpService'
,
function
(
$scope
)
{
$scope
.
group
=
group
;
HttpService
.
getHasDistributeCountByGroupWork
(
function
(
data
)
{
$scope
.
dataCount
=
data
;
console
.
log
(
$scope
.
dataCount
)
})
$rootScope
.
closeThis
=
$scope
.
closeThisDialog
;
$rootScope
.
ableBtn
=
function
(){
$
(
".create"
).
prop
(
"disabled"
,
"false"
);
...
...
src/main/resources/static/views/tagPrint/tagPrint.html
View file @
3bc258ce
...
...
@@ -15,7 +15,7 @@
<div
class=
"col-md-12 no-padding"
style=
"margin-top:20px;"
>
<div
class=
"box"
>
<div
class=
"box-header with-border"
>
<strong
>
封条
标签
</strong>
<strong
>
打印
标签
</strong>
</div>
<div
class=
"box box-primary"
style=
"padding: 7px;padding-top: 0;"
>
<table
class=
"table table-bordered"
style=
"margin-bottom: 0;"
>
...
...
@@ -53,7 +53,7 @@
</tr>
</thead>
<tbody>
<tr
ng-click=
"showDetail(item.ID)"
ng-repeat=
"item in tagPrintData"
>
<tr
ng-click=
"showDetail(item.ID
,item.GAJG_MC,item.POLICE_CODE,item.FINISH_COUNT
)"
ng-repeat=
"item in tagPrintData"
>
<td>
{{$index+1}}
</td>
<td>
{{item.POLICE_CODE}}
</td>
<td>
{{item.GAJG_MC}}
</td>
...
...
@@ -68,7 +68,7 @@
暂无数据
</h4>
</div>
<div
class=
"col-md-7"
ng-
if=
"json.policeCardsList.length>0
"
>
<div
class=
"col-md-7"
ng-
show=
"json.isShow
"
>
<table
class=
"table table-bordered"
>
<thead>
<tr>
...
...
@@ -82,7 +82,7 @@
</tr>
</thead>
<tbody>
<tr
ng-repeat=
"item in json.policeCardsList | orderBy:'acceptNo'"
>
<tr
ng-repeat=
"item in json.policeCardsList | orderBy:'acceptNo'"
class=
"{{item.styleClass}}"
>
<td>
{{$index+1}}
</td>
<td>
{{item.ACCEPT_NO}}
</td>
<td>
{{item.NAME}}
</td>
...
...
@@ -116,7 +116,7 @@
</table>
<div
class=
"box-footer clearfix"
style=
"border: 0;"
>
<button
class=
"btn btn-success pull-right"
style=
"margin-right: 20px;"
ng-click=
"checkSame(json.id)"
>
复核一致
</button>
<button
class=
"btn btn-info pull-right"
style=
"margin-right: 20px;"
ng-click=
"PreviewMytableRotate()"
>
打印
封条
</button>
<button
class=
"btn btn-info pull-right"
style=
"margin-right: 20px;"
ng-click=
"PreviewMytableRotate()"
>
打印
标签
</button>
</div>
</div>
</div>
...
...
@@ -130,8 +130,8 @@
<embed
id=
"LODOP_EM"
type=
"application/x-print-lodop"
width=
0
height=
0
pluginspage=
"install_lodop32.exe"
></embed>
</object>
</p>
<div
style=
"font-family:'黑体';height:7mm;position: absolute;top:5mm;left:
5mm;"
>
密云分局
</div>
<div
style=
"font-family:'黑体';height:7mm;position: absolute;top:12mm;left:3mm;"
>
河南寨派出所
</div>
<div
style=
"font-family:'黑体';height:7mm;position: absolute;top:20mm;left:5mm;"
>
数量:
1
张
</div>
<div
style=
"font-family:'黑体';height:7mm;position: absolute;top:5mm;left:
4mm;"
>
{{json.policeData}}
</div>
<div
style=
"font-family:'黑体';height:7mm;position: absolute;top:12mm;left:3mm;"
>
{{json.policeName}}
</div>
<div
style=
"font-family:'黑体';height:7mm;position: absolute;top:20mm;left:5mm;"
>
数量:
{{json.count}}
张
</div>
</div>
</div>
\ No newline at end of file
src/main/resources/static/views/tagPrint/tagPrint.js
View file @
3bc258ce
...
...
@@ -27,15 +27,33 @@ angular.module('AvatarCheck.tagPrint', ['ngRoute', 'AvatarCheck.http', 'tm.pagin
$scope
.
json
=
{
id
:
''
,
policeCardsList
:[]
policeName
:
''
,
count
:
''
,
policeCardsList
:[],
isShow
:
false
,
policeData
:
''
}
$scope
.
showDetail
=
function
(
id
){
$scope
.
json
.
id
=
id
;
var
getDetailListById
=
function
(
id
)
{
HttpService
.
getPoliceCardsList
(
id
,
function
(
data
)
{
$scope
.
json
.
policeCardsList
=
data
;
for
(
var
i
=
0
;
i
<
$scope
.
json
.
policeCardsList
.
length
;
i
++
){
if
(
$scope
.
json
.
policeCardsList
[
i
].
CARD_ID
==
$scope
.
idCard
){
$scope
.
json
.
policeCardsList
[
i
].
styleClass
=
"bg-danger"
}
}
$scope
.
json
.
id
=
id
;
console
.
log
(
$scope
.
json
)
})
}
$scope
.
showDetail
=
function
(
id
,
policeName
,
policeCode
,
count
){
$scope
.
json
.
id
=
id
;
$scope
.
json
.
policeName
=
policeName
;
$scope
.
json
.
policeCode
=
policeCode
;
$scope
.
json
.
count
=
count
;
$scope
.
json
.
isShow
=!
$scope
.
json
.
isShow
;
getDetailListById
(
id
);
}
var
getPoliceListDataNotChecked
=
function
()
{
HttpService
.
getPoliceListDataNotCheckedData
(
function
(
data
){
...
...
@@ -45,18 +63,7 @@ angular.module('AvatarCheck.tagPrint', ['ngRoute', 'AvatarCheck.http', 'tm.pagin
}
getPoliceListDataNotChecked
();
$scope
.
searchTagPrintData
=
function
(){
HttpService
.
selectTagPrintData
(
$scope
.
idCard
,
function
(
data
){
console
.
log
(
data
)
if
(
data
){
getPoliceListDataNotChecked
();
}
else
{
MessageService
.
showAlert
(
"生成交接单失败"
)
getPoliceListDataNotChecked
();
}
})
}
$scope
.
checkSame
=
function
(
id
)
{
HttpService
.
updateReceiptList
(
id
,
function
(
data
)
{
...
...
@@ -74,18 +81,29 @@ angular.module('AvatarCheck.tagPrint', ['ngRoute', 'AvatarCheck.http', 'tm.pagin
}
var
doQueryByIdCard
=
function
(
idcard
){
console
.
log
(
idcard
)
HttpService
.
selectTagPrintData
(
idcard
,
function
(
data
){
console
.
log
(
data
)
if
(
data
){
if
(
data
.
state
==
1
){
$scope
.
json
.
isShow
=
true
;
getPoliceListDataNotChecked
();
getDetailListById
(
data
.
id
)
}
else
if
(
data
.
state
==
2
){
$scope
.
json
.
isShow
=
true
;
// getDetailListById(data.id)
for
(
var
i
=
0
;
i
<
$scope
.
json
.
policeCardsList
.
length
;
i
++
){
if
(
$scope
.
json
.
policeCardsList
[
i
].
CARD_ID
==
idcard
&&
$scope
.
json
.
policeCardsList
[
i
].
styleClass
==
''
){
$scope
.
json
.
policeCardsList
[
i
].
styleClass
=
"bg-danger"
}
}
}
else
{
MessageService
.
showAlert
(
"
生成交接单失败
"
)
getPoliceListDataNotChecked
()
;
MessageService
.
showAlert
(
"
无该证件的制证记录
"
)
$scope
.
json
.
isShow
=
false
;
}
})
}
$scope
.
searchTagPrintData
=
function
(){
doQueryByIdCard
(
$scope
.
idCard
)
}
$scope
.
subSomething
=
function
()
{
$scope
.
show
=
false
;
var
flag
=
0
;
...
...
@@ -124,18 +142,26 @@ angular.module('AvatarCheck.tagPrint', ['ngRoute', 'AvatarCheck.http', 'tm.pagin
$scope.PreviewMytableRotate = function(){
var LODOP = getLodop();
LODOP.SET_LICENSES("", "
15
F0BE661E7F32F37491843CB2510905
", "
C94CEE276DB2187AE6B65D56B3FC2848
", "");
LODOP.SET_PRINT_STYLE("
FontName
", "
黑体
");
LODOP.PRINT_INIT("
标签
");
LODOP.SET_PRINT_PAGESIZE(1, "
70
mm
", "
40
mm
", "");
LODOP = getLodop(document.getElementById('LODOP1'), document.getElementById('LODOP_EM'));
LODOP.SET_PRINT_STYLE("
FontName
", "
黑体
");
LODOP.ADD_PRINT_BARCODE(7, 20, 242, 60, "
128
A
", "
E1006155001
");
LODOP.ADD_PRINT_HTM(60, 80, 300, 300, document.getElementById("
div1
").innerHTML);
LODOP.SET_PRINT_STYLEA(0, "
AngleOfPageInside
", 0);
LODOP.PREVIEW();
// LODOP.PRINT();
HttpService.getPoliceName($scope.json.policeCode,function(data) {
$scope.json.policeData = data[0].POLICE_NAME;
console.log($scope.json.policeData)
$timeout(function () {
var LODOP = getLodop();
LODOP.SET_LICENSES("", "
15
F0BE661E7F32F37491843CB2510905
", "
C94CEE276DB2187AE6B65D56B3FC2848
", "");
LODOP.SET_PRINT_STYLE("
FontName
", "
黑体
");
LODOP.PRINT_INIT("
标签
");
LODOP.SET_PRINT_PAGESIZE(1, "
70
mm
", "
40
mm
", "");
LODOP = getLodop(document.getElementById('LODOP1'), document.getElementById('LODOP_EM'));
LODOP.SET_PRINT_STYLE("
FontName
", "
黑体
");
LODOP.ADD_PRINT_BARCODE(7, 20, 242, 60, "
128
A
", $scope.json.policeCardsList[0].ACCEPT_NO.substring(0,8));
LODOP.ADD_PRINT_HTM(60, 80, 300, 300, document.getElementById("
div1
").innerHTML);
LODOP.SET_PRINT_STYLEA(0, "
AngleOfPageInside
", 0);
LODOP.PREVIEW();
// LODOP.PRINT();
})
})
};
});
...
...
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