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
410f0e9e
Commit
410f0e9e
authored
Apr 12, 2019
by
liboyang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
退证若无任务单,提示
parent
740f98f8
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
32 additions
and
24 deletions
+32
-24
app.js
src/main/resources/static/js/app.js
+32
-24
No files found.
src/main/resources/static/js/app.js
View file @
410f0e9e
...
...
@@ -269,36 +269,44 @@ angular.module('AvatarCheck', [
}
$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
.
workOrderData
[
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
)
})
if
(
angular
.
isUndefined
(
$scope
.
searchResult
.
workOrderData
[
0
].
TASK_ID
))
{
MessageService
.
showAlert
(
"无任务单记录,请创建任务单后再添加快证"
)
}
else
{
var
idx
=
$
(
".accu:checked"
).
val
();
var
check
=
idx
.
split
(
"+"
);
var
json
=
{};
json
.
acceptNo
=
check
[
0
];
json
.
taskId
=
$scope
.
searchResult
.
workOrderData
[
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
.
workOrderData
[
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
)
})
if
(
angular
.
isUndefined
(
$scope
.
searchResult
.
workOrderData
[
0
].
TASK_ID
))
{
MessageService
.
showAlert
(
"无任务单记录,请创建任务单后再添加快证"
)
}
else
{
var
idx
=
$
(
".prod:checked"
).
val
();
var
check
=
idx
.
split
(
"+"
);
var
json
=
{};
json
.
acceptNo
=
check
[
0
];
json
.
taskId
=
$scope
.
searchResult
.
workOrderData
[
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
(
"请选择要退证的信息"
)
}
...
...
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