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
082587cf
Commit
082587cf
authored
Mar 15, 2019
by
liboyang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
二次确认身份加限制
parent
d32f0593
Show whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
82 additions
and
15 deletions
+82
-15
confirmFailedCards.html
src/main/resources/static/dialogs/confirmFailedCards.html
+4
-0
confirmRestCards.html
src/main/resources/static/dialogs/confirmRestCards.html
+5
-0
confirmTagCards.html
src/main/resources/static/dialogs/confirmTagCards.html
+4
-0
app.js
src/main/resources/static/js/app.js
+50
-3
service.js
src/main/resources/static/js/service.js
+12
-0
addFailed.js
src/main/resources/static/views/addFailed/addFailed.js
+1
-1
addRest.js
src/main/resources/static/views/addRest/addRest.js
+1
-1
addTag.js
src/main/resources/static/views/addTag/addTag.js
+1
-1
searchCard.html
src/main/resources/static/views/searchCard/searchCard.html
+4
-9
No files found.
src/main/resources/static/dialogs/confirmFailedCards.html
View file @
082587cf
...
...
@@ -17,6 +17,10 @@
<td
ng-if=
"item.SEX_NO==1"
>
男
</td>
<td
ng-if=
"item.SEX_NO==2"
>
女
</td>
<td
ng-if=
"item.SEX_NO==-1"
>
错误
</td>
<td
ng-if=
"item.SPECIAL_TYPE==2"
>
快证
</td>
<td
ng-if=
"item.SPECIAL_TYPE==1"
>
余证
</td>
<td
ng-if=
"item.SPECIAL_TYPE==0"
>
废证
</td>
<td
ng-if=
"item.SPECIAL_TYPE==3"
>
退证
</td>
</tr>
</tbody>
</table>
...
...
src/main/resources/static/dialogs/confirmRestCards.html
View file @
082587cf
...
...
@@ -8,6 +8,7 @@
<th>
身份证号
</th>
<th>
姓名
</th>
<th>
性别
</th>
<th>
类型
</th>
</thead>
<tbody>
<tr
ng-repeat=
"item in personInfo"
>
...
...
@@ -17,6 +18,10 @@
<td
ng-if=
"item.SEX_NO==1"
>
男
</td>
<td
ng-if=
"item.SEX_NO==2"
>
女
</td>
<td
ng-if=
"item.SEX_NO==-1"
>
错误
</td>
<td
ng-if=
"item.SPECIAL_TYPE==2"
>
快证
</td>
<td
ng-if=
"item.SPECIAL_TYPE==1"
>
余证
</td>
<td
ng-if=
"item.SPECIAL_TYPE==0"
>
废证
</td>
<td
ng-if=
"item.SPECIAL_TYPE==3"
>
退证
</td>
</tr>
</tbody>
</table>
...
...
src/main/resources/static/dialogs/confirmTagCards.html
View file @
082587cf
...
...
@@ -17,6 +17,10 @@
<td
ng-if=
"item.SEX_NO==1"
>
男
</td>
<td
ng-if=
"item.SEX_NO==2"
>
女
</td>
<td
ng-if=
"item.SEX_NO==-1"
>
错误
</td>
<td
ng-if=
"item.SPECIAL_TYPE==2"
>
快证
</td>
<td
ng-if=
"item.SPECIAL_TYPE==1"
>
余证
</td>
<td
ng-if=
"item.SPECIAL_TYPE==0"
>
废证
</td>
<td
ng-if=
"item.SPECIAL_TYPE==3"
>
退证
</td>
</tr>
</tbody>
</table>
...
...
src/main/resources/static/js/app.js
View file @
082587cf
...
...
@@ -32,7 +32,7 @@ angular.module('AvatarCheck', [
$qProvider
.
errorOnUnhandledRejections
(
false
)
}])
.
controller
(
'appCtrl'
,
function
(
$scope
,
$location
,
$rootScope
,
HttpService
,
localStorageService
,
DebugService
)
{
.
controller
(
'appCtrl'
,
function
(
$scope
,
$location
,
$rootScope
,
HttpService
,
localStorageService
,
DebugService
,
MessageService
)
{
DebugService
.
debug
(
"appCtrl:"
+
"AvatarCheck initial."
)
...
...
@@ -172,6 +172,7 @@ angular.module('AvatarCheck', [
}
else
{
HttpService
.
searchCards
(
searchInput
,
function
(
data
)
{
if
(
data
==
''
){
$scope
.
msg
=
""
;
$scope
.
alertMsg
=
"暂无数据"
;
}
else
{
$scope
.
searchResult
=
data
;
...
...
@@ -203,6 +204,7 @@ angular.module('AvatarCheck', [
}
$scope
.
addQuickCardAccu
=
function
(){
if
(
$
(
".accu:checked"
).
length
>
0
){
var
idx
=
$
(
".accu:checked"
).
val
();
var
check
=
idx
.
split
(
"+"
);
var
json
=
{};
...
...
@@ -212,11 +214,16 @@ angular.module('AvatarCheck', [
json
.
name
=
$rootScope
.
loginData
.
name
;
console
.
log
(
json
)
HttpService
.
addSpecialCard
(
json
,
function
(
data
)
{
console
.
log
(
$scope
.
searchInput
)
MessageService
.
showAlert
(
data
.
msg
)
$scope
.
doSearch
(
$scope
.
searchInput
)
})
}
else
{
MessageService
.
showAlert
(
"请选择要添加的信息"
)
}
}
$scope
.
addQuickCardProd
=
function
(){
if
(
$
(
".prod:checked"
).
length
>
0
){
var
idx
=
$
(
".prod:checked"
).
val
();
var
check
=
idx
.
split
(
"+"
);
console
.
log
(
idx
,
check
)
...
...
@@ -227,9 +234,49 @@ angular.module('AvatarCheck', [
json
.
name
=
$rootScope
.
loginData
.
name
;
console
.
log
(
json
)
HttpService
.
addSpecialCard
(
json
,
function
(
data
)
{
console
.
log
(
$scope
.
searchInput
)
MessageService
.
showAlert
(
data
.
msg
)
$scope
.
doSearch
(
$scope
.
searchInput
)
})
}
else
{
MessageService
.
showAlert
(
"请选择要添加快证的信息"
)
}
}
$scope
.
giveBackCardAccu
=
function
()
{
if
(
$
(
".accu:checked"
).
length
>
0
){
var
idx
=
$
(
".accu:checked"
).
val
();
var
check
=
idx
.
split
(
"+"
);
var
json
=
{};
json
.
acceptNo
=
check
[
0
];
json
.
taskId
=
$scope
.
searchResult
.
workOrderDate
[
0
].
TASK_ID
;
json
.
name
=
$rootScope
.
loginData
.
name
;
console
.
log
(
json
)
HttpService
.
giveBackCard
(
json
,
function
(
data
)
{
console
.
log
(
data
)
MessageService
.
showAlert
(
data
.
msg
)
$scope
.
doSearch
(
$scope
.
searchInput
)
})
}
else
{
MessageService
.
showAlert
(
"请选择要退证的信息"
)
}
}
$scope
.
giveBackCardProd
=
function
()
{
if
(
$
(
".prod:checked"
).
length
>
0
){
var
idx
=
$
(
".prod:checked"
).
val
();
var
check
=
idx
.
split
(
"+"
);
var
json
=
{};
json
.
acceptNo
=
check
[
0
];
json
.
taskId
=
$scope
.
searchResult
.
workOrderDate
[
0
].
TASK_ID
;
json
.
name
=
$rootScope
.
loginData
.
name
;
console
.
log
(
json
)
HttpService
.
giveBackCard
(
json
,
function
(
data
)
{
console
.
log
(
data
)
MessageService
.
showAlert
(
data
.
msg
)
$scope
.
doSearch
(
$scope
.
searchInput
)
})
}
else
{
MessageService
.
showAlert
(
"请选择要退证的信息"
)
}
}
...
...
src/main/resources/static/js/service.js
View file @
082587cf
...
...
@@ -827,6 +827,17 @@ angular.module('AvatarCheck.http', ['ngDialog', 'LocalStorageModule'])
}).
then
(
function
successCallback
(
response
)
{
success
(
response
.
data
)
})
},
giveBackCard
:
function
(
data
,
success
)
{
var
body
=
JSON
.
stringify
(
data
);
$http
({
method
:
'POST'
,
url
:
"../TaskList/addBackCard"
,
data
:
body
,
headers
:
{
'Content-Type'
:
'application/json'
}
}).
then
(
function
successCallback
(
response
)
{
success
(
response
.
data
)
})
}
}
});
\ No newline at end of file
src/main/resources/static/views/addFailed/addFailed.js
View file @
082587cf
...
...
@@ -82,7 +82,7 @@ angular.module('AvatarCheck.addFailed', ['ngRoute', 'AvatarCheck.http'])
$scope
.
personInfo
=
data
;
$scope
.
can
=
false
;
for
(
var
i
=
0
;
i
<
$scope
.
personInfo
.
length
;
i
++
){
if
(
$scope
.
personInfo
[
i
].
SEX_NO
==-
1
){
if
(
$scope
.
personInfo
[
i
].
SEX_NO
==-
1
||
$scope
.
personInfo
[
i
].
SPECIAL_TYPE
==
0
||
$scope
.
personInfo
[
i
].
SPECIAL_TYPE
==
1
||
$scope
.
personInfo
[
i
].
SPECIAL_TYPE
==
2
||
$scope
.
personInfo
[
i
].
SPECIAL_TYPE
==
3
){
$scope
.
can
=
true
;
}
}
...
...
src/main/resources/static/views/addRest/addRest.js
View file @
082587cf
...
...
@@ -58,7 +58,7 @@ angular.module('AvatarCheck.addRest', ['ngRoute', 'AvatarCheck.http'])
$scope
.
personInfo
=
data
;
$scope
.
can
=
false
;
for
(
var
i
=
0
;
i
<
$scope
.
personInfo
.
length
;
i
++
){
if
(
$scope
.
personInfo
[
i
].
SEX_NO
==-
1
){
if
(
$scope
.
personInfo
[
i
].
SEX_NO
==-
1
||
$scope
.
personInfo
[
i
].
SPECIAL_TYPE
==
0
||
$scope
.
personInfo
[
i
].
SPECIAL_TYPE
==
1
||
$scope
.
personInfo
[
i
].
SPECIAL_TYPE
==
2
||
$scope
.
personInfo
[
i
].
SPECIAL_TYPE
==
3
){
$scope
.
can
=
true
;
}
}
...
...
src/main/resources/static/views/addTag/addTag.js
View file @
082587cf
...
...
@@ -75,7 +75,7 @@ angular.module('AvatarCheck.addTag', ['ngRoute', 'AvatarCheck.http'])
$scope
.
personInfo
=
data
;
$scope
.
can
=
false
;
for
(
var
i
=
0
;
i
<
$scope
.
personInfo
.
length
;
i
++
){
if
(
$scope
.
personInfo
[
i
].
SEX_NO
==-
1
){
if
(
$scope
.
personInfo
[
i
].
SEX_NO
==-
1
||
$scope
.
personInfo
[
i
].
SPECIAL_TYPE
==
0
||
$scope
.
personInfo
[
i
].
SPECIAL_TYPE
==
1
||
$scope
.
personInfo
[
i
].
SPECIAL_TYPE
==
2
||
$scope
.
personInfo
[
i
].
SPECIAL_TYPE
==
3
){
$scope
.
can
=
true
;
}
}
...
...
src/main/resources/static/views/searchCard/searchCard.html
View file @
082587cf
...
...
@@ -76,7 +76,7 @@
</thead>
<tbody>
<tr
ng-repeat=
"item in searchResult.ACCdata"
>
<td><input
type=
"checkbox"
value=
"{{item.ACCEPT_NO}}+{{item.COUNTY_CODE}}+{{item.CARD_TYPE_ID}}"
class=
"accu"
></td>
<td><input
ng-checked=
"searchResult.ACCdata.length==1"
type=
"checkbox"
value=
"{{item.ACCEPT_NO}}+{{item.COUNTY_CODE}}+{{item.CARD_TYPE_ID}}"
class=
"accu"
></td>
<td>
{{item.ACCEPT_NO}}
</td>
<td>
{{item.COUNTYNAME}}
</td>
<td>
{{item.NAME}}
</td>
...
...
@@ -96,7 +96,7 @@
</div>
<div
style=
"text-align:right;padding: 10px;padding-top: 0;"
>
<button
class=
"btn btn-info"
ng-click=
"addQuickCardAccu()"
>
添加快证
</button>
<button
class=
"btn btn-danger"
>
退证
</button>
<button
class=
"btn btn-danger"
ng-click=
"giveBackCardAccu()"
>
退证
</button>
</div>
</div>
<!--制证库-->
...
...
@@ -127,7 +127,7 @@
</thead>
<tbody>
<tr
ng-repeat=
"item in searchResult.PRODData"
>
<td><input
type=
"checkbox"
value=
"{{item.ACCEPT_NO}}+{{item.COUNTY_CODE}}+{{item.CARD_TYPE_ID}}"
class=
"prod"
></td>
<td><input
ng-checked=
"searchResult.PRODData.length==1"
type=
"checkbox"
value=
"{{item.ACCEPT_NO}}+{{item.COUNTY_CODE}}+{{item.CARD_TYPE_ID}}"
class=
"prod"
></td>
<td>
{{item.ACCEPT_NO}}
</td>
<td>
{{item.COUNTYNAME}}
</td>
<td>
{{item.NAME}}
</td>
...
...
@@ -147,14 +147,9 @@
</div>
<div
style=
"text-align:right;padding: 10px;padding-top: 0;"
>
<button
class=
"btn btn-info"
ng-click=
"addQuickCardProd()"
>
添加快证
</button>
<button
class=
"btn btn-danger"
>
退证
</button>
<button
class=
"btn btn-danger"
ng-click=
"giveBackCardAccu()"
>
退证
</button>
</div>
</div>
<h4>
{{searchResult.workOrderDate}}
</h4>
<h4>
{{searchResult.workOrderDate.length}}
</h4>
<h4>
{{searchResult.ACCdata.length}}
</h4>
<h4>
{{searchResult.PRODData.length}}
</h4>
<div
ng-if=
"searchResult.workOrderDate.length==0&&searchResult.ACCdata.length==0&&searchResult.PRODData.length==0"
>
<h4>
没有查询到相关信息
</h4>
</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