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
e0bea93a
Commit
e0bea93a
authored
Mar 13, 2019
by
liboyang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
详单添加备注
parent
5220bc41
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
37 additions
and
20 deletions
+37
-20
service.js
src/main/resources/static/js/service.js
+1
-0
dispatchTask.js
src/main/resources/static/views/dispatchTask/dispatchTask.js
+8
-2
task.js
src/main/resources/static/views/task/task.js
+26
-16
taskListPrint.html
src/main/resources/static/views/task/taskListPrint.html
+2
-2
No files found.
src/main/resources/static/js/service.js
View file @
e0bea93a
...
@@ -619,6 +619,7 @@ angular.module('AvatarCheck.http', ['ngDialog', 'LocalStorageModule'])
...
@@ -619,6 +619,7 @@ angular.module('AvatarCheck.http', ['ngDialog', 'LocalStorageModule'])
},
},
addRestCard
:
function
(
data
,
success
)
{
addRestCard
:
function
(
data
,
success
)
{
var
body
=
JSON
.
stringify
(
data
);
var
body
=
JSON
.
stringify
(
data
);
console
.
log
(
body
)
$http
({
$http
({
method
:
'POST'
,
method
:
'POST'
,
url
:
"../FailedCardApi/insertRemaining"
,
url
:
"../FailedCardApi/insertRemaining"
,
...
...
src/main/resources/static/views/dispatchTask/dispatchTask.js
View file @
e0bea93a
...
@@ -160,13 +160,19 @@ angular.module('AvatarCheck.dispatchTask', ['ngRoute', 'AvatarCheck.http', 'tm.p
...
@@ -160,13 +160,19 @@ angular.module('AvatarCheck.dispatchTask', ['ngRoute', 'AvatarCheck.http', 'tm.p
var
checks
=
$
(
".checkOneBox:checked"
);
var
checks
=
$
(
".checkOneBox:checked"
);
if
(
checks
.
length
>
0
){
if
(
checks
.
length
>
0
){
var
arr
=
[];
var
arr
=
[];
var
failedArr
=
[];
for
(
var
i
=
0
;
i
<
checks
.
length
;
i
++
){
for
(
var
i
=
0
;
i
<
checks
.
length
;
i
++
){
arr
.
push
(
checks
[
i
].
value
)
if
(
checks
[
i
].
value
.
length
<
11
){
failedArr
.
push
(
checks
[
i
].
value
)
}
else
{
arr
.
push
(
checks
[
i
].
value
)
}
}
}
var
json
=
{
var
json
=
{
process
:
$rootScope
.
loginData
.
roleList
[
0
].
process
,
process
:
$rootScope
.
loginData
.
roleList
[
0
].
process
,
name
:
$rootScope
.
loginData
.
name
,
name
:
$rootScope
.
loginData
.
name
,
taskIdList
:
arr
taskIdList
:
arr
,
failedList
:
failedArr
}
}
console
.
log
(
json
)
console
.
log
(
json
)
HttpService
.
updateTaskListProcess
(
json
,
function
(
data
){
HttpService
.
updateTaskListProcess
(
json
,
function
(
data
){
...
...
src/main/resources/static/views/task/task.js
View file @
e0bea93a
...
@@ -76,6 +76,8 @@ angular.module('AvatarCheck.task', ['ngRoute', 'AvatarCheck.http'])
...
@@ -76,6 +76,8 @@ angular.module('AvatarCheck.task', ['ngRoute', 'AvatarCheck.http'])
})
})
}
}
$rootScope
.
cardsTotal
=
0
;
$scope
.
restCount
=
0
;
//TODO 需要保证有废证的任务单不能下发
//TODO 需要保证有废证的任务单不能下发
//创建变量用来保存选中结果
//创建变量用来保存选中结果
$scope
.
selected
=
[];
$scope
.
selected
=
[];
...
@@ -179,11 +181,12 @@ angular.module('AvatarCheck.task', ['ngRoute', 'AvatarCheck.http'])
...
@@ -179,11 +181,12 @@ angular.module('AvatarCheck.task', ['ngRoute', 'AvatarCheck.http'])
var
checks
=
$
(
"#checkOneBox:checked"
);
var
checks
=
$
(
"#checkOneBox:checked"
);
if
(
checks
.
length
>
0
){
if
(
checks
.
length
>
0
){
var
arr
=
[];
var
arr
=
[];
var
failedArr
=
[];
for
(
var
i
=
0
;
i
<
checks
.
length
;
i
++
){
for
(
var
i
=
0
;
i
<
checks
.
length
;
i
++
){
if
(
!
checks
[
i
].
disabled
){
if
(
checks
[
i
].
value
.
length
<
11
){
a
rr
.
push
(
checks
[
i
].
value
)
failedA
rr
.
push
(
checks
[
i
].
value
)
}
else
{
}
else
{
continue
;
arr
.
push
(
checks
[
i
].
value
)
}
}
}
}
...
@@ -191,7 +194,8 @@ angular.module('AvatarCheck.task', ['ngRoute', 'AvatarCheck.http'])
...
@@ -191,7 +194,8 @@ angular.module('AvatarCheck.task', ['ngRoute', 'AvatarCheck.http'])
process
:
$rootScope
.
loginData
.
roleList
[
0
].
process
,
process
:
$rootScope
.
loginData
.
roleList
[
0
].
process
,
name
:
$rootScope
.
loginData
.
name
,
name
:
$rootScope
.
loginData
.
name
,
printer
:
$
(
"#print"
).
val
(),
printer
:
$
(
"#print"
).
val
(),
taskIdList
:
arr
taskIdList
:
arr
,
failedList
:
failedArr
}
}
console
.
log
(
json
)
console
.
log
(
json
)
HttpService
.
updatePrintTaskListProcess
(
json
,
function
(
data
){
HttpService
.
updatePrintTaskListProcess
(
json
,
function
(
data
){
...
@@ -333,18 +337,20 @@ angular.module('AvatarCheck.task', ['ngRoute', 'AvatarCheck.http'])
...
@@ -333,18 +337,20 @@ angular.module('AvatarCheck.task', ['ngRoute', 'AvatarCheck.http'])
$scope
.
goes
=
function
(){
$scope
.
goes
=
function
(){
var
checks
=
$
(
".checkOneBox:checked"
);
var
checks
=
$
(
".checkOneBox:checked"
);
var
arr
=
[];
var
arr
=
[];
var
failedArr
=
[];
for
(
var
i
=
0
;
i
<
checks
.
length
;
i
++
){
for
(
var
i
=
0
;
i
<
checks
.
length
;
i
++
){
if
(
!
checks
[
i
].
disabled
){
if
(
checks
[
i
].
value
.
length
<
11
){
a
rr
.
push
(
checks
[
i
].
value
)
failedA
rr
.
push
(
checks
[
i
].
value
)
}
else
{
}
else
{
continue
;
arr
.
push
(
checks
[
i
].
value
)
}
}
}
}
if
(
arr
.
length
>
0
){
if
(
arr
.
length
>
0
){
var
json
=
{
var
json
=
{
process
:
$rootScope
.
loginData
.
roleList
[
0
].
process
,
process
:
$rootScope
.
loginData
.
roleList
[
0
].
process
,
name
:
$rootScope
.
loginData
.
name
,
name
:
$rootScope
.
loginData
.
name
,
taskIdList
:
arr
taskIdList
:
arr
,
failedList
:
failedArr
}
}
console
.
log
(
json
)
console
.
log
(
json
)
HttpService
.
updateTaskListProcess
(
json
,
function
(
data
){
HttpService
.
updateTaskListProcess
(
json
,
function
(
data
){
...
@@ -479,17 +485,19 @@ angular.module('AvatarCheck.task', ['ngRoute', 'AvatarCheck.http'])
...
@@ -479,17 +485,19 @@ angular.module('AvatarCheck.task', ['ngRoute', 'AvatarCheck.http'])
var
checks
=
$
(
".checkOneBox:checked"
);
var
checks
=
$
(
".checkOneBox:checked"
);
if
(
checks
.
length
>
0
){
if
(
checks
.
length
>
0
){
var
arr
=
[];
var
arr
=
[];
var
failedArr
=
[];
for
(
var
i
=
0
;
i
<
checks
.
length
;
i
++
){
for
(
var
i
=
0
;
i
<
checks
.
length
;
i
++
){
if
(
!
checks
[
i
].
disabled
){
if
(
checks
[
i
].
value
.
length
<
11
){
a
rr
.
push
(
checks
[
i
].
value
)
failedA
rr
.
push
(
checks
[
i
].
value
)
}
else
{
}
else
{
continue
;
arr
.
push
(
checks
[
i
].
value
)
;
}
}
}
}
var
json
=
{
var
json
=
{
process
:
$rootScope
.
loginData
.
roleList
[
0
].
process
,
process
:
$rootScope
.
loginData
.
roleList
[
0
].
process
,
name
:
$rootScope
.
loginData
.
name
,
name
:
$rootScope
.
loginData
.
name
,
taskIdList
:
arr
taskIdList
:
arr
,
failedList
:
failedArr
}
}
console
.
log
(
json
)
console
.
log
(
json
)
HttpService
.
updateTaskListProcess
(
json
,
function
(
data
){
HttpService
.
updateTaskListProcess
(
json
,
function
(
data
){
...
@@ -622,17 +630,19 @@ angular.module('AvatarCheck.task', ['ngRoute', 'AvatarCheck.http'])
...
@@ -622,17 +630,19 @@ angular.module('AvatarCheck.task', ['ngRoute', 'AvatarCheck.http'])
var
checks
=
$
(
".checkOneBox:checked"
);
var
checks
=
$
(
".checkOneBox:checked"
);
if
(
checks
.
length
>
0
){
if
(
checks
.
length
>
0
){
var
arr
=
[];
var
arr
=
[];
var
failedArr
=
[];
for
(
var
i
=
0
;
i
<
checks
.
length
;
i
++
){
for
(
var
i
=
0
;
i
<
checks
.
length
;
i
++
){
if
(
!
checks
[
i
].
disabled
){
if
(
checks
[
i
].
value
.
length
<
11
){
a
rr
.
push
(
checks
[
i
].
value
)
failedA
rr
.
push
(
checks
[
i
].
value
)
}
else
{
}
else
{
continue
;
arr
.
push
(
checks
[
i
].
value
)
}
}
}
}
var
json
=
{
var
json
=
{
process
:
$rootScope
.
loginData
.
roleList
[
0
].
process
,
process
:
$rootScope
.
loginData
.
roleList
[
0
].
process
,
name
:
$rootScope
.
loginData
.
name
,
name
:
$rootScope
.
loginData
.
name
,
taskIdList
:
arr
taskIdList
:
arr
,
failedList
:
failedArr
}
}
console
.
log
(
json
)
console
.
log
(
json
)
HttpService
.
updateTaskListProcess
(
json
,
function
(
data
){
HttpService
.
updateTaskListProcess
(
json
,
function
(
data
){
...
...
src/main/resources/static/views/task/taskListPrint.html
View file @
e0bea93a
...
@@ -37,7 +37,7 @@
...
@@ -37,7 +37,7 @@
<table
class=
"table table-hover table-striped"
>
<table
class=
"table table-hover table-striped"
>
<thead>
<thead>
<tr>
<tr>
<th><input
type=
"checkbox"
ng-click=
"selectAll(type.countyList,
type.typeCode,
$event)"
ng-checked=
"isSelectedAll($index)"
></th>
<th><input
type=
"checkbox"
ng-click=
"selectAll(type.countyList,$event)"
ng-checked=
"isSelectedAll($index)"
></th>
<th>
任务单编号
</th>
<th>
任务单编号
</th>
<th>
核验日期
</th>
<th>
核验日期
</th>
<th>
地区
</th>
<th>
地区
</th>
...
@@ -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
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
ng-if=
"task.faileCount==0"
><input
type=
"checkbox"
id=
"checkOneBox"
class=
"checkOneBox"
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>
...
...
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