Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
H
hp-smart
Overview
Overview
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
platform
hp-smart
Commits
66d521f9
Commit
66d521f9
authored
Mar 02, 2024
by
wancheng
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
前端校验优化
parent
25ffb498
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
32 additions
and
9 deletions
+32
-9
HPKC006.jsp
src/main/webapp/HP/KC/HPKC006.jsp
+1
-1
HPSC001.js
src/main/webapp/HP/SC/HPSC001.js
+4
-4
HPSC002.js
src/main/webapp/HP/SC/HPSC002.js
+9
-4
HPSC005A.js
src/main/webapp/HP/SC/HPSC005A.js
+18
-0
No files found.
src/main/webapp/HP/KC/HPKC006.jsp
View file @
66d521f9
...
@@ -56,7 +56,7 @@
...
@@ -56,7 +56,7 @@
<EF:EFColumn
ename=
"inventCode"
cname=
"存货名称"
width=
"120"
align=
"center"
required=
"true"
readonly=
"true"
<EF:EFColumn
ename=
"inventCode"
cname=
"存货名称"
width=
"120"
align=
"center"
required=
"true"
readonly=
"true"
hidden=
"true"
/>
hidden=
"true"
/>
<EF:EFColumn
ename=
"inventName"
cname=
"存货名称"
width=
"120"
align=
"center"
required=
"true"
readonly=
"true"
/>
<EF:EFColumn
ename=
"inventName"
cname=
"存货名称"
width=
"120"
align=
"center"
required=
"true"
readonly=
"true"
/>
<EF:EFColumn
ename=
"inventRecordId"
cname=
"规格"
width=
"120"
align=
"center"
required=
"true"
readonly=
"true"
/>
<EF:EFColumn
ename=
"inventRecordId"
cname=
"规格"
width=
"120"
align=
"center"
readonly=
"true"
/>
<EF:EFColumn
ename=
"amount"
cname=
"数量"
format=
"{0:N0}"
maxLength=
"20"
width=
"100"
align=
"right"
<EF:EFColumn
ename=
"amount"
cname=
"数量"
format=
"{0:N0}"
maxLength=
"20"
width=
"100"
align=
"right"
sumType=
"all"
required=
"true"
readonly=
"true"
/>
sumType=
"all"
required=
"true"
readonly=
"true"
/>
<EF:EFColumn
ename=
"unitWeight"
cname=
"单重"
enable=
"false"
width=
"100"
align=
"right"
format=
"{0:N3}"
/>
<EF:EFColumn
ename=
"unitWeight"
cname=
"单重"
enable=
"false"
width=
"100"
align=
"right"
format=
"{0:N3}"
/>
...
...
src/main/webapp/HP/SC/HPSC001.js
View file @
66d521f9
...
@@ -89,22 +89,22 @@ function check(id, auditStatus) {
...
@@ -89,22 +89,22 @@ function check(id, auditStatus) {
let
projName
=
item
.
get
(
"projName"
);
let
projName
=
item
.
get
(
"projName"
);
let
princ1
=
item
.
get
(
"princ1"
);
let
princ1
=
item
.
get
(
"princ1"
);
let
princ2
=
item
.
get
(
"princ2"
);
let
princ2
=
item
.
get
(
"princ2"
);
if
(
projType
===
""
){
if
(
isBlank
(
projType
)
){
message
(
"选中的第"
+
(
index
+
1
)
+
"行
\"
项目类型
\"
,不能为空!"
);
message
(
"选中的第"
+
(
index
+
1
)
+
"行
\"
项目类型
\"
,不能为空!"
);
flag
=
false
;
flag
=
false
;
return
false
;
return
false
;
}
}
if
(
projName
===
""
){
if
(
isBlank
(
projName
)
){
message
(
"选中的第"
+
(
index
+
1
)
+
"行
\"
项目名称
\"
,不能为空!"
);
message
(
"选中的第"
+
(
index
+
1
)
+
"行
\"
项目名称
\"
,不能为空!"
);
flag
=
false
;
flag
=
false
;
return
false
;
return
false
;
}
}
if
(
princ1
===
""
){
if
(
isBlank
(
princ1
)
){
message
(
"选中的第"
+
(
index
+
1
)
+
"行
\"
项目负责人
\"
,不能为空!"
);
message
(
"选中的第"
+
(
index
+
1
)
+
"行
\"
项目负责人
\"
,不能为空!"
);
flag
=
false
;
flag
=
false
;
return
false
;
return
false
;
}
}
if
(
princ2
===
""
){
if
(
isBlank
(
princ2
)
){
message
(
"选中的第"
+
(
index
+
1
)
+
"行
\"
客户负责人
\"
,不能为空!"
);
message
(
"选中的第"
+
(
index
+
1
)
+
"行
\"
客户负责人
\"
,不能为空!"
);
flag
=
false
;
flag
=
false
;
return
false
;
return
false
;
...
...
src/main/webapp/HP/SC/HPSC002.js
View file @
66d521f9
...
@@ -584,22 +584,27 @@ function saveFunc() {
...
@@ -584,22 +584,27 @@ function saveFunc() {
let
prdtName
=
item
.
get
(
"prdtName"
);
let
prdtName
=
item
.
get
(
"prdtName"
);
let
num
=
item
.
get
(
"num"
);
let
num
=
item
.
get
(
"num"
);
let
unitWt
=
item
.
get
(
"unitWt"
);
let
unitWt
=
item
.
get
(
"unitWt"
);
if
(
prdtType
===
""
){
if
(
isBlank
(
prdtType
)
){
message
(
"选中的第"
+
(
index
+
1
)
+
"行
\"
部件类型
\"
,不能为空!"
);
message
(
"选中的第"
+
(
index
+
1
)
+
"行
\"
部件类型
\"
,不能为空!"
);
flag
=
false
;
flag
=
false
;
return
false
;
return
false
;
}
}
if
(
prdtName
===
""
){
if
(
isBlank
(
prdtName
)
){
message
(
"选中的第"
+
(
index
+
1
)
+
"行
\"
部件名称
\"
,不能为空!"
);
message
(
"选中的第"
+
(
index
+
1
)
+
"行
\"
部件名称
\"
,不能为空!"
);
flag
=
false
;
flag
=
false
;
return
false
;
return
false
;
}
}
if
(
num
===
""
){
if
(
isBlank
(
num
)
){
message
(
"选中的第"
+
(
index
+
1
)
+
"行
\"
数量
\"
,不能为空!"
);
message
(
"选中的第"
+
(
index
+
1
)
+
"行
\"
数量
\"
,不能为空!"
);
flag
=
false
;
flag
=
false
;
return
false
;
return
false
;
}
}
if
(
unitWt
===
""
){
if
(
!
isPositiveInteger
(
num
))
{
message
(
"勾选的第"
+
(
index
+
1
)
+
"行
\"
数量
\"
必须是大于0的整数"
);
flag
=
false
;
return
;
}
if
(
isBlank
(
unitWt
)){
message
(
"选中的第"
+
(
index
+
1
)
+
"行
\"
单重
\"
,不能为空!"
);
message
(
"选中的第"
+
(
index
+
1
)
+
"行
\"
单重
\"
,不能为空!"
);
flag
=
false
;
flag
=
false
;
return
false
;
return
false
;
...
...
src/main/webapp/HP/SC/HPSC005A.js
View file @
66d521f9
...
@@ -92,6 +92,24 @@ let save = function () {
...
@@ -92,6 +92,24 @@ let save = function () {
message
(
"请选择数据"
);
message
(
"请选择数据"
);
return
;
return
;
}
}
for
(
let
i
=
0
;
i
<
rows
.
length
;
i
++
)
{
if
(
isBlank
(
rows
[
i
][
'factoryCode'
]))
{
message
(
"勾选的第"
+
(
i
+
1
)
+
"行
\"
厂区
\"
,不能为空"
);
return
;
}
if
(
isBlank
(
rows
[
i
][
'orgNo'
]))
{
message
(
"勾选的第"
+
(
i
+
1
)
+
"行
\"
生产组
\"
,不能为空"
);
return
;
}
if
(
isBlank
(
rows
[
i
][
'num'
]))
{
message
(
"勾选的第"
+
(
i
+
1
)
+
"行
\"
分派数量
\"
,不能为空"
);
return
;
}
if
(
!
isPositiveInteger
(
rows
[
i
][
'num'
]))
{
message
(
"勾选的第"
+
(
i
+
1
)
+
"行
\"
分派数量
\"
必须是大于0的整数"
);
return
;
}
}
JSUtils
.
confirm
(
"确定对勾选中的["
+
rows
.
length
+
"]条数据做
\"
保存
\"
操作? "
,
{
JSUtils
.
confirm
(
"确定对勾选中的["
+
rows
.
length
+
"]条数据做
\"
保存
\"
操作? "
,
{
ok
:
function
()
{
ok
:
function
()
{
JSUtils
.
submitGridsData
(
"result"
,
"HPSC005A"
,
"save"
,
true
);
JSUtils
.
submitGridsData
(
"result"
,
"HPSC005A"
,
"save"
,
true
);
...
...
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