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
91c47695
Commit
91c47695
authored
Mar 12, 2019
by
liboyang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改页面,完成制证信息下载
parent
ee5f91f2
Show whitespace changes
Inline
Side-by-side
Showing
16 changed files
with
245 additions
and
58 deletions
+245
-58
TaskListApi.java
src/main/java/com/yxproject/start/api/TaskListApi.java
+11
-4
TaskListMapper.java
src/main/java/com/yxproject/start/mapper/TaskListMapper.java
+7
-1
TaskListService.java
...ain/java/com/yxproject/start/service/TaskListService.java
+3
-0
TaskListServiceImpl.java
...com/yxproject/start/service/impl/TaskListServiceImpl.java
+6
-0
app.js
src/main/resources/static/js/app.js
+3
-3
service.js
src/main/resources/static/js/service.js
+19
-0
cardProdPackage.html
...sources/static/views/cardProdPackage/cardProdPackage.html
+3
-3
cardProdPackage.js
...resources/static/views/cardProdPackage/cardProdPackage.js
+12
-3
login.js
src/main/resources/static/views/login/login.js
+2
-2
tagPrint.js
src/main/resources/static/views/tagPrint/tagPrint.js
+11
-2
task.js
src/main/resources/static/views/task/task.js
+153
-31
taskListEwriting.html
src/main/resources/static/views/task/taskListEwriting.html
+11
-5
taskListPreLocating.html
...main/resources/static/views/task/taskListPreLocating.html
+1
-1
taskListPrint.html
src/main/resources/static/views/task/taskListPrint.html
+1
-1
taskListPushing.html
src/main/resources/static/views/task/taskListPushing.html
+1
-1
taskListSorting.html
src/main/resources/static/views/task/taskListSorting.html
+1
-1
No files found.
src/main/java/com/yxproject/start/api/TaskListApi.java
View file @
91c47695
package
com
.
yxproject
.
start
.
api
;
package
com
.
yxproject
.
start
.
api
;
import
com.yxproject.start.entity.GroupNoEntity
;
import
com.yxproject.start.entity.*
;
import
com.yxproject.start.entity.PreproPersonEntity
;
import
com.yxproject.start.entity.SpecialCardEntity
;
import
com.yxproject.start.entity.TaskEntity
;
import
com.yxproject.start.entity.TaskList.CountCountyEntity
;
import
com.yxproject.start.entity.TaskList.CountCountyEntity
;
import
com.yxproject.start.entity.TaskList.CountGajgEntity
;
import
com.yxproject.start.entity.TaskList.CountGajgEntity
;
import
com.yxproject.start.entity.TaskList.TaskListEntity
;
import
com.yxproject.start.entity.TaskList.TaskListEntity
;
...
@@ -411,6 +408,16 @@ public class TaskListApi {
...
@@ -411,6 +408,16 @@ public class TaskListApi {
}
else
return
str
;
}
else
return
str
;
}
}
/**
* 查询制证类型列表
*/
@RequestMapping
(
"getTypeList"
)
public
List
<
CardTypeDicEntity
>
getTypeList
()
{
List
<
CardTypeDicEntity
>
list
=
taskListService
.
getTypeList
();
return
list
;
}
/**
/**
* 去除字符串中中线
* 去除字符串中中线
*
*
...
...
src/main/java/com/yxproject/start/mapper/TaskListMapper.java
View file @
91c47695
package
com
.
yxproject
.
start
.
mapper
;
package
com
.
yxproject
.
start
.
mapper
;
import
com.yxproject.start.entity.CardTypeDicEntity
;
import
com.yxproject.start.entity.TaskEntity
;
import
com.yxproject.start.entity.TaskEntity
;
import
com.yxproject.start.entity.TaskList.CountCountyEntity
;
import
com.yxproject.start.entity.TaskList.CountCountyEntity
;
import
com.yxproject.start.entity.TaskList.TaskListEntity
;
import
com.yxproject.start.entity.TaskList.TaskListEntity
;
...
@@ -783,5 +784,10 @@ public interface TaskListMapper {
...
@@ -783,5 +784,10 @@ public interface TaskListMapper {
*/
*/
@Select
(
"select * from task where task_ID = #{taskId}"
)
@Select
(
"select * from task where task_ID = #{taskId}"
)
public
List
<
TaskEntity
>
selectTaskEntityByTaskId
(
long
taskId
);
public
List
<
TaskEntity
>
selectTaskEntityByTaskId
(
long
taskId
);
/**
* 查询制证类型列表
* @return
*/
@Select
(
"SELECT * FROM CARD_TYPE_DIC"
)
public
List
<
CardTypeDicEntity
>
selectTypeList
();
}
}
src/main/java/com/yxproject/start/service/TaskListService.java
View file @
91c47695
package
com
.
yxproject
.
start
.
service
;
package
com
.
yxproject
.
start
.
service
;
import
com.yxproject.start.entity.CardTypeDicEntity
;
import
com.yxproject.start.entity.SpecialCardEntity
;
import
com.yxproject.start.entity.SpecialCardEntity
;
import
com.yxproject.start.entity.TaskEntity
;
import
com.yxproject.start.entity.TaskEntity
;
import
com.yxproject.start.entity.TaskList.CountCountyEntity
;
import
com.yxproject.start.entity.TaskList.CountCountyEntity
;
...
@@ -53,4 +54,6 @@ public interface TaskListService {
...
@@ -53,4 +54,6 @@ public interface TaskListService {
public
List
<
TaskEntity
>
selectTaskEntityByTaskId
(
long
taskId
);
public
List
<
TaskEntity
>
selectTaskEntityByTaskId
(
long
taskId
);
public
boolean
saveFastTask
(
TaskEntity
taskEntity
);
public
boolean
saveFastTask
(
TaskEntity
taskEntity
);
public
List
<
CardTypeDicEntity
>
getTypeList
();
}
}
src/main/java/com/yxproject/start/service/impl/TaskListServiceImpl.java
View file @
91c47695
package
com
.
yxproject
.
start
.
service
.
impl
;
package
com
.
yxproject
.
start
.
service
.
impl
;
import
com.yxproject.start.entity.CardTypeDicEntity
;
import
com.yxproject.start.entity.GroupNoEntity
;
import
com.yxproject.start.entity.GroupNoEntity
;
import
com.yxproject.start.entity.SpecialCardEntity
;
import
com.yxproject.start.entity.SpecialCardEntity
;
import
com.yxproject.start.entity.TaskEntity
;
import
com.yxproject.start.entity.TaskEntity
;
...
@@ -542,6 +543,11 @@ public class TaskListServiceImpl implements TaskListService {
...
@@ -542,6 +543,11 @@ public class TaskListServiceImpl implements TaskListService {
}
}
@Override
public
List
<
CardTypeDicEntity
>
getTypeList
()
{
return
taskListMapper
.
selectTypeList
();
}
private
String
createGroupNo
(
List
<
Integer
>
c
,
List
<
Integer
>
nsList
)
{
private
String
createGroupNo
(
List
<
Integer
>
c
,
List
<
Integer
>
nsList
)
{
try
{
try
{
...
...
src/main/resources/static/js/app.js
View file @
91c47695
...
@@ -103,8 +103,8 @@ angular.module('AvatarCheck', [
...
@@ -103,8 +103,8 @@ angular.module('AvatarCheck', [
if
(
$location
.
path
()
==
"/taskListPushing"
)
{
if
(
$location
.
path
()
==
"/taskListPushing"
)
{
$rootScope
.
tab
=
'/taskListPushing'
;
$rootScope
.
tab
=
'/taskListPushing'
;
}
}
if
(
$location
.
path
()
==
"/taskList
Cut
ting"
)
{
if
(
$location
.
path
()
==
"/taskList
Ewri
ting"
)
{
$rootScope
.
tab
=
'/taskList
Cut
ting'
;
$rootScope
.
tab
=
'/taskList
Ewri
ting'
;
}
}
if
(
$location
.
path
()
==
"/taskListSorting"
)
{
if
(
$location
.
path
()
==
"/taskListSorting"
)
{
$rootScope
.
tab
=
'/taskListSorting'
;
$rootScope
.
tab
=
'/taskListSorting'
;
...
@@ -182,9 +182,9 @@ angular.module('AvatarCheck', [
...
@@ -182,9 +182,9 @@ angular.module('AvatarCheck', [
$scope
.
logout
=
function
(){
$scope
.
logout
=
function
(){
HttpService
.
logout
(
function
(
data
)
{
HttpService
.
logout
(
function
(
data
)
{
localStorage
.
clear
();
$location
.
path
(
'/login'
)
$location
.
path
(
'/login'
)
$rootScope
.
loginData
=
{
userid
:
'用户未登录'
,
login
:
false
};
$rootScope
.
loginData
=
{
userid
:
'用户未登录'
,
login
:
false
};
localStorage
.
clear
();
});
});
}
}
$scope
.
enterEvent
=
function
(
e
,
search
)
{
$scope
.
enterEvent
=
function
(
e
,
search
)
{
...
...
src/main/resources/static/js/service.js
View file @
91c47695
...
@@ -351,6 +351,8 @@ angular.module('AvatarCheck.http', ['ngDialog', 'LocalStorageModule'])
...
@@ -351,6 +351,8 @@ angular.module('AvatarCheck.http', ['ngDialog', 'LocalStorageModule'])
// var arr = [];
// var arr = [];
// arr.push(json);
// arr.push(json);
// var body = JSON.stringify(arr);
// var body = JSON.stringify(arr);
console
.
log
(
uploadNo
,
idCard
,
oldPackageNo
,
newPackageNo
,
sljg
,
typeCode
,
packageType
,
date
,
currentPage
,
itemsPerPage
)
$http
({
$http
({
method
:
'GET'
,
method
:
'GET'
,
url
:
"../queryPreproPerson/queryPreproPerson"
,
url
:
"../queryPreproPerson/queryPreproPerson"
,
...
@@ -685,6 +687,22 @@ angular.module('AvatarCheck.http', ['ngDialog', 'LocalStorageModule'])
...
@@ -685,6 +687,22 @@ angular.module('AvatarCheck.http', ['ngDialog', 'LocalStorageModule'])
}).
then
(
function
successCallback
(
response
)
{
}).
then
(
function
successCallback
(
response
)
{
success
(
response
.
data
)
success
(
response
.
data
)
})
})
},
getPoliceListDataNotCheckedData
:
function
(
success
)
{
$http
({
method
:
'GET'
,
url
:
"../ReceiptApi/updatePreproPerson"
+
urlTimeStamp
()
}).
then
(
function
successCallback
(
response
)
{
success
(
response
.
data
)
})
},
getTypeList
:
function
(
success
){
$http
({
method
:
'GET'
,
url
:
"../TaskList/getTypeList"
+
urlTimeStamp
()
}).
then
(
function
successCallback
(
response
)
{
success
(
response
.
data
)
})
}
}
}
}
});
});
\ No newline at end of file
src/main/resources/static/views/cardProdPackage/cardProdPackage.html
View file @
91c47695
...
@@ -48,9 +48,9 @@
...
@@ -48,9 +48,9 @@
<td><input
type=
"text"
class=
"form-control"
ng-model=
"sljg"
placeholder=
"受理机关"
></td>
<td><input
type=
"text"
class=
"form-control"
ng-model=
"sljg"
placeholder=
"受理机关"
></td>
<td>
制证类型:
</td>
<td>
制证类型:
</td>
<td
style=
"text-align: left;"
>
<td
style=
"text-align: left;"
>
<select
class=
"form-control select2"
id=
"county"
data-placeholder=
"--请选择制证类型--"
<select
class=
"form-control select2"
id=
"county"
ng-model=
"typeCode"
>
style=
"width: 100%;"
ng-model=
"typeCode"
>
<option
value=
""
>
--请选择制证类型--
</option
>
<option
value=
"{{type.
typeCode}}"
ng-repeat=
"type in typeList"
>
{{type.typeNam
e}}
</option>
<option
value=
"{{type.
cardTypeId}}"
ng-repeat=
"type in typeList"
>
{{type.cardTyp
e}}
</option>
</select>
</select>
</td>
</td>
</tr>
</tr>
...
...
src/main/resources/static/views/cardProdPackage/cardProdPackage.js
View file @
91c47695
...
@@ -38,6 +38,7 @@ angular.module('AvatarCheck.cardProdPackage', ['ngRoute', 'AvatarCheck.http', 't
...
@@ -38,6 +38,7 @@ angular.module('AvatarCheck.cardProdPackage', ['ngRoute', 'AvatarCheck.http', 't
$scope
.
doPackageQuery
=
function
(){
$scope
.
doPackageQuery
=
function
(){
var
date
=
$
(
"#datepicker"
).
val
();
var
date
=
$
(
"#datepicker"
).
val
();
var
typeCode
=
$
(
"#county"
).
val
();
var
packageType
=
$
(
"#packageType"
).
val
();
var
packageType
=
$
(
"#packageType"
).
val
();
if
(
angular
.
isUndefined
(
$scope
.
uploadNo
)){
if
(
angular
.
isUndefined
(
$scope
.
uploadNo
)){
$scope
.
uploadNo
=
''
;
$scope
.
uploadNo
=
''
;
...
@@ -54,8 +55,8 @@ angular.module('AvatarCheck.cardProdPackage', ['ngRoute', 'AvatarCheck.http', 't
...
@@ -54,8 +55,8 @@ angular.module('AvatarCheck.cardProdPackage', ['ngRoute', 'AvatarCheck.http', 't
if
(
angular
.
isUndefined
(
$scope
.
sljg
)){
if
(
angular
.
isUndefined
(
$scope
.
sljg
)){
$scope
.
sljg
=
''
;
$scope
.
sljg
=
''
;
}
}
if
(
angular
.
isUndefined
(
$scope
.
typeCode
)){
if
(
angular
.
isUndefined
(
typeCode
)){
$scope
.
typeCode
=
''
;
typeCode
=
''
;
}
}
if
(
angular
.
isUndefined
(
packageType
)){
if
(
angular
.
isUndefined
(
packageType
)){
packageType
=
''
;
packageType
=
''
;
...
@@ -65,7 +66,7 @@ angular.module('AvatarCheck.cardProdPackage', ['ngRoute', 'AvatarCheck.http', 't
...
@@ -65,7 +66,7 @@ angular.module('AvatarCheck.cardProdPackage', ['ngRoute', 'AvatarCheck.http', 't
date
=
$filter
(
"date"
)(
new
Date
(),
"yyyy-MM-dd"
);
date
=
$filter
(
"date"
)(
new
Date
(),
"yyyy-MM-dd"
);
}
}
HttpService
.
getPackageData
(
$scope
.
uploadNo
,
$scope
.
idCard
,
$scope
.
oldPackageNo
,
$scope
.
newPackageNo
,
$scope
.
sljg
,
HttpService
.
getPackageData
(
$scope
.
uploadNo
,
$scope
.
idCard
,
$scope
.
oldPackageNo
,
$scope
.
newPackageNo
,
$scope
.
sljg
,
$scope
.
typeCode
,
packageType
,
date
,
$scope
.
paginationConf
.
currentPage
,
$scope
.
paginationConf
.
itemsPerPage
,
function
(
data
)
{
typeCode
,
packageType
,
date
,
$scope
.
paginationConf
.
currentPage
,
$scope
.
paginationConf
.
itemsPerPage
,
function
(
data
)
{
$scope
.
paginationConf
.
totalItems
=
data
.
total
;
$scope
.
paginationConf
.
totalItems
=
data
.
total
;
$scope
.
simpleCardCount
=
data
.
puSum
;
$scope
.
simpleCardCount
=
data
.
puSum
;
$scope
.
postCardCount
=
data
.
youSum
;
$scope
.
postCardCount
=
data
.
youSum
;
...
@@ -138,4 +139,11 @@ angular.module('AvatarCheck.cardProdPackage', ['ngRoute', 'AvatarCheck.http', 't
...
@@ -138,4 +139,11 @@ angular.module('AvatarCheck.cardProdPackage', ['ngRoute', 'AvatarCheck.http', 't
a
.
click
();
a
.
click
();
}
}
var
getTypeList
=
function
(){
HttpService
.
getTypeList
(
function
(
data
){
$scope
.
typeList
=
data
;
console
.
log
(
data
)
})
}
getTypeList
();
});
});
\ No newline at end of file
src/main/resources/static/views/login/login.js
View file @
91c47695
...
@@ -47,8 +47,8 @@ angular.module('AvatarCheck.login', ['ngRoute', 'AvatarCheck.http'])
...
@@ -47,8 +47,8 @@ angular.module('AvatarCheck.login', ['ngRoute', 'AvatarCheck.http'])
$rootScope
.
tab
=
'/taskListSorting'
;
$rootScope
.
tab
=
'/taskListSorting'
;
break
;
break
;
case
5
:
case
5
:
$location
.
path
(
"/taskList
Cut
ting"
);
$location
.
path
(
"/taskList
Ewri
ting"
);
$rootScope
.
tab
=
'/taskList
Cut
ting'
;
$rootScope
.
tab
=
'/taskList
Ewri
ting'
;
break
;
break
;
case
4
:
case
4
:
$location
.
path
(
"/taskListPushing"
);
$location
.
path
(
"/taskListPushing"
);
...
...
src/main/resources/static/views/tagPrint/tagPrint.js
View file @
91c47695
...
@@ -1022,10 +1022,19 @@ angular.module('AvatarCheck.tagPrint', ['ngRoute', 'AvatarCheck.http', 'tm.pagin
...
@@ -1022,10 +1022,19 @@ angular.module('AvatarCheck.tagPrint', ['ngRoute', 'AvatarCheck.http', 'tm.pagin
}
}
var
getPoliceListDataNotChecked
=
function
()
{
HttpService
.
getPoliceListDataNotCheckedData
(
function
(
data
){
$scope
.
tagPrintData
=
data
;
console
.
log
(
$scope
.
tagPrintData
)
})
}
$scope
.
searchTagPrintData
=
function
(){
$scope
.
searchTagPrintData
=
function
(){
HttpService
.
selectTagPrintData
(
$scope
.
idCard
,
function
(
data
){
HttpService
.
selectTagPrintData
(
$scope
.
idCard
,
function
(
data
){
$scope
.
tagPrintData
=
data
;
if
(
!
data
){
console
.
log
(
$scope
.
tagPrintData
)
MessageService
.
showAlert
(
"生成交接单成功"
)
}
getPoliceListDataNotChecked
();
})
})
}
}
...
...
src/main/resources/static/views/task/task.js
View file @
91c47695
...
@@ -17,9 +17,9 @@ angular.module('AvatarCheck.task', ['ngRoute', 'AvatarCheck.http'])
...
@@ -17,9 +17,9 @@ angular.module('AvatarCheck.task', ['ngRoute', 'AvatarCheck.http'])
controller
:
'taskListPreLocatingCtrl'
,
controller
:
'taskListPreLocatingCtrl'
,
cache
:
false
cache
:
false
});
});
$routeProvider
.
when
(
'/taskList
Cut
ting'
,
{
$routeProvider
.
when
(
'/taskList
Ewri
ting'
,
{
templateUrl
:
'views/task/taskList
Cut
ting.html'
+
urlTimeStamp
(),
templateUrl
:
'views/task/taskList
Ewri
ting.html'
+
urlTimeStamp
(),
controller
:
'taskList
PreLoca
tingCtrl'
,
controller
:
'taskList
Ewri
tingCtrl'
,
cache
:
false
cache
:
false
});
});
$routeProvider
.
when
(
'/taskListSorting'
,
{
$routeProvider
.
when
(
'/taskListSorting'
,
{
...
@@ -86,7 +86,7 @@ angular.module('AvatarCheck.task', ['ngRoute', 'AvatarCheck.http'])
...
@@ -86,7 +86,7 @@ angular.module('AvatarCheck.task', ['ngRoute', 'AvatarCheck.http'])
if
(
action
===
'remove'
&&
$scope
.
selected
.
indexOf
(
task
)
!==
-
1
)
$scope
.
selected
.
splice
(
$scope
.
selected
.
indexOf
(
task
),
1
);
if
(
action
===
'remove'
&&
$scope
.
selected
.
indexOf
(
task
)
!==
-
1
)
$scope
.
selected
.
splice
(
$scope
.
selected
.
indexOf
(
task
),
1
);
};
};
//更新某一列数据的选择
//更新某一列数据的选择
$scope
.
updateSelection
=
function
(
$event
,
task
,
typeCode
)
{
$scope
.
updateSelection
=
function
(
$event
,
task
)
{
var
checkbox
=
$event
.
target
;
var
checkbox
=
$event
.
target
;
var
action
=
(
checkbox
.
checked
?
'add'
:
'remove'
);
var
action
=
(
checkbox
.
checked
?
'add'
:
'remove'
);
updateSelected
(
action
,
task
);
updateSelected
(
action
,
task
);
...
@@ -103,13 +103,18 @@ angular.module('AvatarCheck.task', ['ngRoute', 'AvatarCheck.http'])
...
@@ -103,13 +103,18 @@ angular.module('AvatarCheck.task', ['ngRoute', 'AvatarCheck.http'])
};
};
//全选操作
//全选操作
$scope
.
selectAll
=
function
(
task
,
typeCode
,
$event
)
{
$scope
.
selectAll
=
function
(
task
,
$event
)
{
var
checkbox
=
$event
.
target
;
var
checkbox
=
$event
.
target
;
var
action
=
(
checkbox
.
checked
?
'add'
:
'remove'
);
var
action
=
(
checkbox
.
checked
?
'add'
:
'remove'
);
console
.
log
(
task
)
console
.
log
(
task
)
for
(
var
i
=
0
;
i
<
task
.
length
;
i
++
)
{
for
(
var
i
=
0
;
i
<
task
.
length
;
i
++
)
{
if
(
task
[
i
].
faileCount
==
0
){
var
contact
=
task
[
i
];
var
contact
=
task
[
i
];
updateSelected
(
action
,
contact
);
updateSelected
(
action
,
contact
);
}
else
{
continue
;
}
}
}
$rootScope
.
cardsTotal
=
0
;
$rootScope
.
cardsTotal
=
0
;
...
@@ -265,17 +270,6 @@ angular.module('AvatarCheck.task', ['ngRoute', 'AvatarCheck.http'])
...
@@ -265,17 +270,6 @@ angular.module('AvatarCheck.task', ['ngRoute', 'AvatarCheck.http'])
var
checkbox
=
$event
.
target
;
var
checkbox
=
$event
.
target
;
var
action
=
(
checkbox
.
checked
?
'add'
:
'remove'
);
var
action
=
(
checkbox
.
checked
?
'add'
:
'remove'
);
updateSelected
(
action
,
task
);
updateSelected
(
action
,
task
);
var
sum
=
0
;
var
checks
=
document
.
getElementsByClassName
(
"checkOneBox"
);
for
(
var
i
=
0
;
i
<
checks
.
length
;
i
++
){
if
(
checks
[
i
].
checked
)
{
sum
+=
parseInt
(
checks
[
i
].
value
);
}
}
$rootScope
.
cardsTotal
=
$rootScope
.
cardsTotal
+
sum
-
temp
;
temp
=
sum
;
};
};
//全选操作
//全选操作
$scope
.
selectAll
=
function
(
task
,
$event
)
{
$scope
.
selectAll
=
function
(
task
,
$event
)
{
...
@@ -285,21 +279,6 @@ angular.module('AvatarCheck.task', ['ngRoute', 'AvatarCheck.http'])
...
@@ -285,21 +279,6 @@ angular.module('AvatarCheck.task', ['ngRoute', 'AvatarCheck.http'])
var
contact
=
task
[
i
];
var
contact
=
task
[
i
];
updateSelected
(
action
,
contact
);
updateSelected
(
action
,
contact
);
}
}
if
(
checkbox
.
checked
){
var
sum
=
0
;
var
checks
=
document
.
getElementsByClassName
(
"checkOneBox"
);
for
(
var
i
=
0
;
i
<
checks
.
length
;
i
++
)
{
sum
+=
parseInt
(
checks
[
i
].
value
);
}
$rootScope
.
cardsTotal
=
$rootScope
.
cardsTotal
+
sum
-
temp
;
temp
=
sum
;
}
else
{
$rootScope
.
cardsTotal
=
0
;
temp
=
0
;
}
};
};
$scope
.
isSelected
=
function
(
task
)
{
$scope
.
isSelected
=
function
(
task
)
{
return
$scope
.
selected
.
indexOf
(
task
)
>=
0
;
return
$scope
.
selected
.
indexOf
(
task
)
>=
0
;
...
@@ -380,6 +359,149 @@ angular.module('AvatarCheck.task', ['ngRoute', 'AvatarCheck.http'])
...
@@ -380,6 +359,149 @@ angular.module('AvatarCheck.task', ['ngRoute', 'AvatarCheck.http'])
}
}
})
})
.
controller
(
'taskListEwritingCtrl'
,
function
(
$scope
,
$rootScope
,
$timeout
,
HttpService
,
ngDialog
,
MessageService
,
$filter
)
{
//Date picker
$
(
'#datepicker'
).
datetimepicker
({
minView
:
"month"
,
//选择日期后,不会再跳转去选择时分秒
language
:
'zh-CN'
,
format
:
'yyyy-mm-dd'
,
todayBtn
:
1
,
autoclose
:
1
});
$scope
.
choseDate
=
$filter
(
"date"
)(
new
Date
(),
"yyyy-MM-dd"
);
$scope
.
isHistory
=
0
;
$scope
.
searchTaskList
=
function
(){
$scope
.
isHistory
=
0
;
HttpService
.
getFjTaskListByProcess
(
function
(
data
){
$scope
.
cycleSheetData
=
data
;
for
(
var
i
=
0
;
i
<
$scope
.
cycleSheetData
.
length
;
i
++
){
if
(
i
==
$scope
.
currentTab
){
$scope
.
cycleSheetData
[
i
].
isActive
=
true
;
}
else
{
$scope
.
cycleSheetData
[
i
].
isActive
=
false
;
}
}
console
.
log
(
$scope
.
cycleSheetData
)
})
}
$scope
.
searchTaskList
();
$scope
.
searchHistory
=
function
(){
$scope
.
isHistory
=
1
;
HttpService
.
getHistoryTask
(
$
(
'#datepicker'
).
val
(),
function
(
data
){
$scope
.
cycleSheetData
=
data
;
for
(
var
i
=
0
;
i
<
$scope
.
cycleSheetData
.
length
;
i
++
){
if
(
i
==
$scope
.
currentTab
){
$scope
.
cycleSheetData
[
i
].
isActive
=
true
;
}
else
{
$scope
.
cycleSheetData
[
i
].
isActive
=
false
;
}
}
console
.
log
(
"历史:"
,
$scope
.
cycleSheetData
)
})
}
//创建变量用来保存选中结果
$scope
.
selected
=
[];
var
updateSelected
=
function
(
action
,
task
)
{
if
(
action
===
'add'
&&
$scope
.
selected
.
indexOf
(
task
)
===
-
1
)
{
$scope
.
selected
.
push
(
task
);
}
if
(
action
===
'remove'
&&
$scope
.
selected
.
indexOf
(
task
)
!==
-
1
)
$scope
.
selected
.
splice
(
$scope
.
selected
.
indexOf
(
task
),
1
);
};
//更新某一列数据的选择
$rootScope
.
cardsTotal
=
0
;
$scope
.
updateSelection
=
function
(
$event
,
task
)
{
var
checkbox
=
$event
.
target
;
var
action
=
(
checkbox
.
checked
?
'add'
:
'remove'
);
updateSelected
(
action
,
task
);
};
//全选操作
$scope
.
selectAll
=
function
(
task
,
$event
)
{
var
checkbox
=
$event
.
target
;
var
action
=
(
checkbox
.
checked
?
'add'
:
'remove'
);
for
(
var
i
=
0
;
i
<
task
.
length
;
i
++
)
{
var
contact
=
task
[
i
];
updateSelected
(
action
,
contact
);
}
};
$scope
.
isSelected
=
function
(
task
)
{
return
$scope
.
selected
.
indexOf
(
task
)
>=
0
;
};
$scope
.
taskId
=
1
;
$scope
.
getPoliceList
=
function
(
policeList
,
taskId
){
$scope
.
policeList
=
policeList
;
if
(
$scope
.
taskId
==
1
){
$scope
.
taskId
=
taskId
;
}
else
{
$scope
.
taskId
=
1
}
console
.
log
(
policeList
)
}
$scope
.
currentTab
=
0
;
$scope
.
func
=
function
(
index
)
{
for
(
var
idx
in
$scope
.
cycleSheetData
)
{
if
(
index
==
idx
)
{
$scope
.
cycleSheetData
[
idx
].
isActive
=
true
;
}
else
{
$scope
.
cycleSheetData
[
idx
].
isActive
=
false
;
}
}
$scope
.
currentTab
=
index
;
}
$scope
.
getSpecialCardsInfo
=
function
(
groupNo
,
specialCardCount
){
if
(
parseInt
(
specialCardCount
)
>
0
){
ngDialog
.
open
({
template
:
'dialogs/specailCardInfo.html'
+
urlTimeStamp
(),
width
:
600
,
cache
:
false
,
closeByDocument
:
false
,
controller
:
[
'$scope'
,
function
(
$scope
)
{
HttpService
.
getSpecialCardData
(
groupNo
,
function
(
data
)
{
$scope
.
specailCardData
=
data
;
console
.
log
(
data
)
})
}]
});
}
else
{
MessageService
.
showAlert
(
"该组中没有特殊证件"
)
}
}
$scope
.
goes
=
function
(){
var
checks
=
$
(
".checkOneBox:checked"
);
if
(
checks
.
length
>
0
){
var
arr
=
[];
for
(
var
i
=
0
;
i
<
checks
.
length
;
i
++
){
if
(
!
checks
[
i
].
disabled
){
arr
.
push
(
checks
[
i
].
value
)
}
else
{
continue
;
}
}
var
json
=
{
process
:
$rootScope
.
loginData
.
roleList
[
0
].
process
,
name
:
$rootScope
.
loginData
.
name
,
taskIdList
:
arr
}
console
.
log
(
json
)
HttpService
.
updateTaskListProcess
(
json
,
function
(
data
){
$scope
.
searchTaskList
();
MessageService
.
showAlert
(
"转出完成"
)
})
}
else
{
MessageService
.
showAlert
(
"请选择转出的任务单"
);
}
}
})
.
controller
(
'taskListSortingCtrl'
,
function
(
$scope
,
$rootScope
,
$timeout
,
HttpService
,
ngDialog
,
MessageService
,
$filter
)
{
.
controller
(
'taskListSortingCtrl'
,
function
(
$scope
,
$rootScope
,
$timeout
,
HttpService
,
ngDialog
,
MessageService
,
$filter
)
{
//Date picker
//Date picker
...
...
src/main/resources/static/views/task/taskList
Cut
ting.html
→
src/main/resources/static/views/task/taskList
Ewri
ting.html
View file @
91c47695
...
@@ -44,6 +44,7 @@
...
@@ -44,6 +44,7 @@
<th>
组号
</th>
<th>
组号
</th>
<th>
核验数量
</th>
<th>
核验数量
</th>
<th>
证件数量
</th>
<th>
证件数量
</th>
<th>
电写入数量
</th>
<th>
特殊证件数量
</th>
<th>
特殊证件数量
</th>
<th>
废证数量
</th>
<th>
废证数量
</th>
<th></th>
<th></th>
...
@@ -51,15 +52,16 @@
...
@@ -51,15 +52,16 @@
</thead>
</thead>
<tbody
ng-repeat=
"task in type.countyList"
>
<tbody
ng-repeat=
"task in type.countyList"
>
<tr>
<tr>
<td
><input
type=
"checkbox"
ng-disabled=
"task.faileCount>0"
class=
"checkOneBox"
ng-checked=
"isSelected(task)"
value=
"{{task.taskId}}"
ng-click=
"updateSelection($event,task)"
></td>
<td
ng-if=
"task.faileCount==0"
><input
type=
"checkbox"
class=
"checkOneBox"
ng-checked=
"isSelected(task)"
value=
"{{task.taskId}}"
ng-click=
"updateSelection($event,task)"
></td>
<td
class=
"mailbox-star"
><b>
{{task.taskId}}
</b></td>
<td
class=
"mailbox-star"
><b>
{{task.taskId}}
</b></td>
<td
class=
"mailbox-subject"
>
{{task.saveDate
| date:'yyyy-MM-dd'}}
</td>
<td
class=
"mailbox-subject"
>
{{task.saveDate| date:'yyyy-MM-dd'}}
</td>
<td
class=
"mailbox-subject"
><a>
{{task.countyName}}
</a></td>
<td
class=
"mailbox-subject"
><a>
{{task.countyName}}
</a></td>
<td
class=
"mailbox-subject"
>
{{task.groupList.length}}
</td>
<td
class=
"mailbox-subject"
>
{{task.groupList.length}}
</td>
<td
class=
"mailbox-subject"
>
{{task.groupNum}}
</td>
<td
class=
"mailbox-subject"
></td>
<td
class=
"mailbox-subject"
>
{{task.countyValidCount}}
</td>
<td
class=
"mailbox-subject"
>
{{task.countyValidCount}}
</td>
<td
class=
"mailbox-subject"
>
{{task.countyValidCount-task.specialCount}}
</td>
<td
class=
"mailbox-subject"
>
{{task.task.countyValidCount-task.specialCount}}
</td>
<td
class=
"mailbox-attachment"
>
{{task.specialCount}}
</td>
<td
class=
"mailbox-subject"
>
{{task.eWriteCount}}
</td>
<td
class=
"mailbox-subject"
>
{{task.specialCount}}
</td>
<td
ng-if=
"task.faileCount!=0"
class=
"mailbox-subject"
style=
"color: red;"
>
{{task.faileCount}}
</td>
<td
ng-if=
"task.faileCount!=0"
class=
"mailbox-subject"
style=
"color: red;"
>
{{task.faileCount}}
</td>
<td
ng-if=
"task.faileCount==0"
class=
"mailbox-subject"
>
{{task.faileCount}}
</td>
<td
ng-if=
"task.faileCount==0"
class=
"mailbox-subject"
>
{{task.faileCount}}
</td>
<td
class=
"mailbox-date"
><a
ng-click=
"getPoliceList(task.groupList,task.taskId)"
>
组号列表
</a></td>
<td
class=
"mailbox-date"
><a
ng-click=
"getPoliceList(task.groupList,task.taskId)"
>
组号列表
</a></td>
...
@@ -70,8 +72,10 @@
...
@@ -70,8 +72,10 @@
<table
class=
"table"
>
<table
class=
"table"
>
<thead>
<thead>
<th>
组号
</th>
<th>
组号
</th>
<th>
派出所名称
</th>
<th>
核验数量
</th>
<th>
核验数量
</th>
<th>
证件数量
</th>
<th>
证件数量
</th>
<th>
电写入数量
</th>
<th>
特殊证件数量
</th>
<th>
特殊证件数量
</th>
<th>
废证数量
</th>
<th>
废证数量
</th>
<th></th>
<th></th>
...
@@ -79,8 +83,10 @@
...
@@ -79,8 +83,10 @@
<tbody>
<tbody>
<tr
ng-repeat=
"item in policeList"
>
<tr
ng-repeat=
"item in policeList"
>
<td>
{{item.GROUP_NO}}
</td>
<td>
{{item.GROUP_NO}}
</td>
<td>
{{item.GAJG_MC}}
</td>
<td>
{{item.VALID_COUNT}}
</td>
<td>
{{item.VALID_COUNT}}
</td>
<td>
{{item.VALID_COUNT-item.SPECIAL_CARD_COUNT}}
</td>
<td>
{{item.VALID_COUNT-item.SPECIAL_CARD_COUNT}}
</td>
<td>
{{item.E_WRITER_COUNT}}
</td>
<td>
{{item.SPECIAL_CARD_COUNT}}
</td>
<td>
{{item.SPECIAL_CARD_COUNT}}
</td>
<td>
{{item.FAILECOUNT}}
</td>
<td>
{{item.FAILECOUNT}}
</td>
<td><a
ng-click=
"getSpecialCardsInfo(item.GROUP_NO,item.SPECIAL_CARD_COUNT)"
>
特殊证件详情
</a></td>
<td><a
ng-click=
"getSpecialCardsInfo(item.GROUP_NO,item.SPECIAL_CARD_COUNT)"
>
特殊证件详情
</a></td>
...
...
src/main/resources/static/views/task/taskListPreLocating.html
View file @
91c47695
...
@@ -51,7 +51,7 @@
...
@@ -51,7 +51,7 @@
</thead>
</thead>
<tbody
ng-repeat=
"task in type.countyList"
>
<tbody
ng-repeat=
"task in type.countyList"
>
<tr>
<tr>
<td
><input
type=
"checkbox"
ng-disabled=
"task.faileCount>0
"
class=
"checkOneBox"
ng-checked=
"isSelected(task)"
value=
"{{task.taskId}}"
ng-click=
"updateSelection($event,task)"
></td>
<td
ng-if=
"task.faileCount==0"
><input
type=
"checkbox
"
class=
"checkOneBox"
ng-checked=
"isSelected(task)"
value=
"{{task.taskId}}"
ng-click=
"updateSelection($event,task)"
></td>
<td
class=
"mailbox-star"
><b>
{{task.taskId}}
</b></td>
<td
class=
"mailbox-star"
><b>
{{task.taskId}}
</b></td>
<td
class=
"mailbox-subject"
>
{{task.saveDate | date:'yyyy-MM-dd'}}
</td>
<td
class=
"mailbox-subject"
>
{{task.saveDate | date:'yyyy-MM-dd'}}
</td>
<td
class=
"mailbox-subject"
><a>
{{task.countyName}}
</a></td>
<td
class=
"mailbox-subject"
><a>
{{task.countyName}}
</a></td>
...
...
src/main/resources/static/views/task/taskListPrint.html
View file @
91c47695
...
@@ -52,7 +52,7 @@
...
@@ -52,7 +52,7 @@
</thead>
</thead>
<tbody
ng-repeat=
"task in type.countyList"
>
<tbody
ng-repeat=
"task in type.countyList"
>
<tr>
<tr>
<td
><input
type=
"checkbox"
ng-disabled=
"task.faileCount>0"
id=
"checkOneBox"
class=
"checkOneBox{{type.typeCode}}"
ng-checked=
"isSelected(task)"
value=
"{{task.taskId}}"
name=
"{{task.countyValidCount-task.specialCount}}"
ng-click=
"updateSelection($event,task,type.typeCode
)"
></td>
<td
ng-if=
"task.faileCount==0"
><input
type=
"checkbox"
id=
"checkOneBox"
class=
"checkOneBox{{type.typeCode}}"
ng-checked=
"isSelected(task)"
value=
"{{task.taskId}}"
name=
"{{task.countyValidCount-task.specialCount}}"
ng-click=
"updateSelection($event,task
)"
></td>
<td
class=
"mailbox-star"
><b>
{{task.taskId}}
</b></td>
<td
class=
"mailbox-star"
><b>
{{task.taskId}}
</b></td>
<td
class=
"mailbox-subject"
>
{{task.saveDate | date:'yyyy-MM-dd'}}
</td>
<td
class=
"mailbox-subject"
>
{{task.saveDate | date:'yyyy-MM-dd'}}
</td>
<td
class=
"mailbox-subject"
><a>
{{task.countyName}}
</a></td>
<td
class=
"mailbox-subject"
><a>
{{task.countyName}}
</a></td>
...
...
src/main/resources/static/views/task/taskListPushing.html
View file @
91c47695
...
@@ -51,7 +51,7 @@
...
@@ -51,7 +51,7 @@
</thead>
</thead>
<tbody
ng-repeat=
"task in type.countyList"
>
<tbody
ng-repeat=
"task in type.countyList"
>
<tr>
<tr>
<td
><input
type=
"checkbox"
ng-disabled=
"task.faileCount>0"
class=
"checkOneBox"
ng-checked=
"isSelected(task)"
value=
"{{task.taskId}}"
ng-click=
"updateSelection($event,task)"
></td>
<td
ng-if=
"task.faileCount==0"
><input
type=
"checkbox"
class=
"checkOneBox"
ng-checked=
"isSelected(task)"
value=
"{{task.taskId}}"
ng-click=
"updateSelection($event,task)"
></td>
<td
class=
"mailbox-star"
><b>
{{task.taskId}}
</b></td>
<td
class=
"mailbox-star"
><b>
{{task.taskId}}
</b></td>
<td
class=
"mailbox-subject"
>
{{task.saveDate | date:'yyyy-MM-dd'}}
</td>
<td
class=
"mailbox-subject"
>
{{task.saveDate | date:'yyyy-MM-dd'}}
</td>
<td
class=
"mailbox-subject"
><a>
{{task.countyName}}
</a></td>
<td
class=
"mailbox-subject"
><a>
{{task.countyName}}
</a></td>
...
...
src/main/resources/static/views/task/taskListSorting.html
View file @
91c47695
...
@@ -49,7 +49,7 @@
...
@@ -49,7 +49,7 @@
</thead>
</thead>
<tbody
ng-repeat=
"task in type.countyList"
>
<tbody
ng-repeat=
"task in type.countyList"
>
<tr>
<tr>
<td
><input
type=
"checkbox"
ng-disabled=
"task.faileCount>0"
class=
"checkOneBox"
ng-checked=
"isSelected(task)"
value=
"{{task.taskId}}"
ng-click=
"updateSelection($event,task)"
></td>
<td
ng-if=
"task.faileCount==0"
><input
type=
"checkbox"
class=
"checkOneBox"
ng-checked=
"isSelected(task)"
value=
"{{task.taskId}}"
ng-click=
"updateSelection($event,task)"
></td>
<td
class=
"mailbox-star"
><b>
{{task.taskId}}
</b></td>
<td
class=
"mailbox-star"
><b>
{{task.taskId}}
</b></td>
<td
class=
"mailbox-subject"
>
{{task.saveDate| date:'yyyy-MM-dd'}}
</td>
<td
class=
"mailbox-subject"
>
{{task.saveDate| date:'yyyy-MM-dd'}}
</td>
<td
class=
"mailbox-subject"
><a>
{{task.countyName}}
</a></td>
<td
class=
"mailbox-subject"
><a>
{{task.countyName}}
</a></td>
...
...
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