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
effdda8f
Commit
effdda8f
authored
May 07, 2019
by
ad
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改页面词语描述,添加耗材数量校验
parent
42b1cf44
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
21 additions
and
13 deletions
+21
-13
insertCardBody.html
...resources/static/views/insertCardBody/insertCardBody.html
+1
-1
insertCardBody.js
...n/resources/static/views/insertCardBody/insertCardBody.js
+17
-9
materialManagement.js
...ces/static/views/materialManagement/materialManagement.js
+3
-3
No files found.
src/main/resources/static/views/insertCardBody/insertCardBody.html
View file @
effdda8f
...
...
@@ -39,7 +39,7 @@
<table
class=
"table table-bordered"
style=
"margin-bottom: 0;"
>
<tr>
<td>
数量:
</td>
<td><input
type=
"number"
class=
"form-control"
ng-model=
"totalCount"
placeholder=
"数量"
></td>
<td><input
type=
"number"
ng-model=
"totalCount"
placeholder=
"数量"
></td>
<td>
卡体类型:
</td>
<td>
<select
class=
"form-control select2"
id=
"cardBodyType"
>
...
...
src/main/resources/static/views/insertCardBody/insertCardBody.js
View file @
effdda8f
...
...
@@ -29,6 +29,7 @@ angular.module("AvatarCheck.insertCardBody",['ngRoute', 'AvatarCheck.http'])
$scope
.
choseDate
=
$filter
(
"date"
)(
new
Date
(),
"yyyy-MM-dd"
);
$scope
.
insertCardBody
=
function
()
{
var
totalCount
=
$scope
.
totalCount
;
var
note
=
$scope
.
note
;
var
cardType
=
$scope
.
cardType
;
...
...
@@ -38,15 +39,22 @@ angular.module("AvatarCheck.insertCardBody",['ngRoute', 'AvatarCheck.http'])
cardType
=
"1"
;
}
console
.
log
(
totalCount
,
note
,
cardType
,
cardBodyType
,
name
);
HttpService
.
insertCardBody
(
cardType
,
totalCount
,
note
,
cardBodyType
,
name
,
0
,
function
(
data
)
{
$scope
.
totalCount
=
""
;
$scope
.
note
=
""
if
(
data
==
false
){
MessageService
.
showAlert
(
"添加失败"
)
}
else
{
MessageService
.
showAlert
(
"添加成功,请等待审核"
)
}
})
if
(
totalCount
>=
1
){
HttpService
.
insertCardBody
(
cardType
,
totalCount
,
note
,
cardBodyType
,
name
,
0
,
function
(
data
)
{
$scope
.
totalCount
=
""
;
$scope
.
note
=
""
if
(
data
==
false
){
MessageService
.
showAlert
(
"添加失败"
)
}
else
{
MessageService
.
showAlert
(
"添加成功,请等待审核"
)
}
})
}
else
{
MessageService
.
showAlert
(
"输入耗材数量格式不正确"
)
}
}
$scope
.
selectCardBodyManagement
=
function
(){
...
...
src/main/resources/static/views/materialManagement/materialManagement.js
View file @
effdda8f
...
...
@@ -32,8 +32,8 @@ angular.module('AvatarCheck.materialManagement', ['ngRoute', 'AvatarCheck.http']
if
(
angular
.
isUndefined
(
cardType
)){
cardType
=
"1"
;
}
console
.
log
(
totalCount
,
note
,
cardType
,
cardBodyType
,
name
);
if
(
totalCount
>
0
){
console
.
log
(
totalCount
,
note
,
cardType
,
cardBodyType
,
name
,
"---"
,
totalCount
>=
1
,
"---"
);
if
(
totalCount
>
=
1
){
HttpService
.
insertCardBody
(
cardType
,
totalCount
,
note
,
cardBodyType
,
name
,
1
,
function
(
data
)
{
$scope
.
totalCount
=
""
;
$scope
.
note
=
""
...
...
@@ -44,7 +44,7 @@ angular.module('AvatarCheck.materialManagement', ['ngRoute', 'AvatarCheck.http']
}
})
}
else
{
MessageService
.
showAlert
(
"
请输入正确的卡体耗材数量
"
)
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