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
128ff987
Commit
128ff987
authored
Mar 02, 2024
by
wancheng
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
配置前端校验优化
parent
225364ef
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
32 additions
and
32 deletions
+32
-32
HPPZ002.js
src/main/webapp/HP/PZ/HPPZ002.js
+7
-7
HPPZ003.js
src/main/webapp/HP/PZ/HPPZ003.js
+7
-7
HPPZ004.js
src/main/webapp/HP/PZ/HPPZ004.js
+3
-3
HPPZ006.js
src/main/webapp/HP/PZ/HPPZ006.js
+5
-5
HPPZ007.js
src/main/webapp/HP/PZ/HPPZ007.js
+4
-4
HPPZ012.js
src/main/webapp/HP/PZ/HPPZ012.js
+6
-6
No files found.
src/main/webapp/HP/PZ/HPPZ002.js
View file @
128ff987
...
...
@@ -72,37 +72,37 @@ let save = function () {
let
phoneName
=
item
.
get
(
"phoneName"
);
let
address
=
item
.
get
(
"address"
);
let
status
=
item
.
get
(
"status"
);
if
(
custType
===
""
){
if
(
isBlank
(
custType
)
){
message
(
"选中的第"
+
(
index
+
1
)
+
"行
\"
供应商类型
\"
,不能为空!"
);
flag
=
false
;
return
false
;
}
if
(
custName
===
""
){
if
(
isBlank
(
custName
)
){
message
(
"选中的第"
+
(
index
+
1
)
+
"行
\"
供应商名称
\"
,不能为空!"
);
flag
=
false
;
return
false
;
}
if
(
companyName
===
""
){
if
(
isBlank
(
companyName
)
){
message
(
"选中的第"
+
(
index
+
1
)
+
"行
\"
公司
\"
,不能为空!"
);
flag
=
false
;
return
false
;
}
if
(
headName
===
""
){
if
(
isBlank
(
headName
)
){
message
(
"选中的第"
+
(
index
+
1
)
+
"行
\"
负责人
\"
,不能为空!"
);
flag
=
false
;
return
false
;
}
if
(
phoneName
===
""
){
if
(
isBlank
(
phoneName
)
){
message
(
"选中的第"
+
(
index
+
1
)
+
"行
\"
负责人联系方式
\"
,不能为空!"
);
flag
=
false
;
return
false
;
}
if
(
address
===
""
){
if
(
isBlank
(
address
)
){
message
(
"选中的第"
+
(
index
+
1
)
+
"行
\"
地址
\"
,不能为空!"
);
flag
=
false
;
return
false
;
}
if
(
status
===
""
){
if
(
isBlank
(
status
)
){
message
(
"选中的第"
+
(
index
+
1
)
+
"行
\"
状态
\"
,不能为空!"
);
flag
=
false
;
return
false
;
...
...
src/main/webapp/HP/PZ/HPPZ003.js
View file @
128ff987
...
...
@@ -73,37 +73,37 @@ let save = function () {
let
phoneName
=
item
.
get
(
"phoneName"
);
let
address
=
item
.
get
(
"address"
);
let
status
=
item
.
get
(
"status"
);
if
(
custType
===
""
){
if
(
isBlank
(
custType
)
){
message
(
"选中的第"
+
(
index
+
1
)
+
"行
\"
客户类型
\"
,不能为空!"
);
flag
=
false
;
return
false
;
}
if
(
custName
===
""
){
if
(
isBlank
(
custName
)
){
message
(
"选中的第"
+
(
index
+
1
)
+
"行
\"
公司简称
\"
,不能为空!"
);
flag
=
false
;
return
false
;
}
if
(
companyName
===
""
){
if
(
isBlank
(
companyName
)
){
message
(
"选中的第"
+
(
index
+
1
)
+
"行
\"
公司全称
\"
,不能为空!"
);
flag
=
false
;
return
false
;
}
if
(
headName
===
""
){
if
(
isBlank
(
headName
)
){
message
(
"选中的第"
+
(
index
+
1
)
+
"行
\"
负责人
\"
,不能为空!"
);
flag
=
false
;
return
false
;
}
if
(
phoneName
===
""
){
if
(
isBlank
(
phoneName
)
){
message
(
"选中的第"
+
(
index
+
1
)
+
"行
\"
负责人联系方式
\"
,不能为空!"
);
flag
=
false
;
return
false
;
}
if
(
address
===
""
){
if
(
isBlank
(
address
)
){
message
(
"选中的第"
+
(
index
+
1
)
+
"行
\"
地址
\"
,不能为空!"
);
flag
=
false
;
return
false
;
}
if
(
status
===
""
){
if
(
isBlank
(
status
)
){
message
(
"选中的第"
+
(
index
+
1
)
+
"行
\"
状态
\"
,不能为空!"
);
flag
=
false
;
return
false
;
...
...
src/main/webapp/HP/PZ/HPPZ004.js
View file @
128ff987
...
...
@@ -69,17 +69,17 @@ let save = function () {
let
inventType
=
item
.
get
(
"inventType"
);
let
inventName
=
item
.
get
(
"inventName"
);
let
status
=
item
.
get
(
"status"
);
if
(
i
nventType
===
""
){
if
(
i
sBlank
(
inventType
)
){
message
(
"选中的第"
+
(
index
+
1
)
+
"行
\"
存货类型
\"
,不能为空!"
);
flag
=
false
;
return
false
;
}
if
(
i
nventName
===
""
){
if
(
i
sBlank
(
inventName
)
){
message
(
"选中的第"
+
(
index
+
1
)
+
"行
\"
存货名称
\"
,不能为空!"
);
flag
=
false
;
return
false
;
}
if
(
status
===
""
){
if
(
isBlank
(
status
)
){
message
(
"选中的第"
+
(
index
+
1
)
+
"行
\"
状态
\"
,不能为空!"
);
flag
=
false
;
return
false
;
...
...
src/main/webapp/HP/PZ/HPPZ006.js
View file @
128ff987
...
...
@@ -131,27 +131,27 @@ let save = function () {
let
material
=
item
.
get
(
"material"
);
let
unit
=
item
.
get
(
"unit"
);
let
status
=
item
.
get
(
"status"
);
if
(
i
nventType
===
""
){
if
(
i
sBlank
(
inventType
)
){
message
(
"选中的第"
+
(
index
+
1
)
+
"行
\"
存货类型
\"
,不能为空!"
);
flag
=
false
;
return
false
;
}
if
(
i
nventCode
===
""
){
if
(
i
sBlank
(
inventCode
)
){
message
(
"选中的第"
+
(
index
+
1
)
+
"行
\"
存货名称
\"
,不能为空!"
);
flag
=
false
;
return
false
;
}
if
(
material
===
""
){
if
(
isBlank
(
material
)
){
message
(
"选中的第"
+
(
index
+
1
)
+
"行
\"
材质
\"
,不能为空!"
);
flag
=
false
;
return
false
;
}
if
(
unit
===
""
){
if
(
isBlank
(
unit
)
){
message
(
"选中的第"
+
(
index
+
1
)
+
"行
\"
单位
\"
,不能为空!"
);
flag
=
false
;
return
false
;
}
if
(
status
===
""
){
if
(
isBlank
(
status
)
){
message
(
"选中的第"
+
(
index
+
1
)
+
"行
\"
状态
\"
,不能为空!"
);
flag
=
false
;
return
false
;
...
...
src/main/webapp/HP/PZ/HPPZ007.js
View file @
128ff987
...
...
@@ -70,22 +70,22 @@ let save = function () {
let
whType
=
item
.
get
(
"whType"
);
let
princ
=
item
.
get
(
"princ"
);
let
status
=
item
.
get
(
"status"
);
if
(
whName
===
""
){
if
(
isBlank
(
whName
)
){
message
(
"选中的第"
+
(
index
+
1
)
+
"行
\"
仓库名称
\"
,不能为空!"
);
flag
=
false
;
return
false
;
}
if
(
whType
===
""
){
if
(
isBlank
(
whType
)
){
message
(
"选中的第"
+
(
index
+
1
)
+
"行
\"
仓库类型
\"
,不能为空!"
);
flag
=
false
;
return
false
;
}
if
(
princ
===
""
){
if
(
isBlank
(
princ
)
){
message
(
"选中的第"
+
(
index
+
1
)
+
"行
\"
负责人
\"
,不能为空!"
);
flag
=
false
;
return
false
;
}
if
(
status
===
""
){
if
(
isBlank
(
status
)
){
message
(
"选中的第"
+
(
index
+
1
)
+
"行
\"
状态
\"
,不能为空!"
);
flag
=
false
;
return
false
;
...
...
src/main/webapp/HP/PZ/HPPZ012.js
View file @
128ff987
...
...
@@ -214,28 +214,28 @@ let save = function () {
let
inventRecordId
=
item
.
get
(
"inventRecordId"
);
let
inventType
=
item
.
get
(
"inventType"
);
let
warnNum
=
item
.
get
(
"warnNum"
);
if
(
i
nventType
===
""
){
if
(
i
sBlank
(
inventType
)
){
message
(
"选中的第"
+
(
index
+
1
)
+
"行
\"
存货类型
\"
,不能为空!"
);
flag
=
false
;
return
false
;
}
if
(
whCode
===
""
){
if
(
isBlank
(
whCode
)
){
message
(
"选中的第"
+
(
index
+
1
)
+
"行
\"
仓库名称
\"
,不能为空!"
);
flag
=
false
;
return
false
;
}
if
(
i
nventCode
===
""
){
if
(
i
sBlank
(
inventCode
)
){
message
(
"选中的第"
+
(
index
+
1
)
+
"行
\"
存货名称
\"
,不能为空!"
);
flag
=
false
;
return
false
;
}
if
(
i
nventRecordId
===
""
){
if
(
i
sBlank
(
inventRecordId
)
){
message
(
"选中的第"
+
(
index
+
1
)
+
"行
\"
规格
\"
,不能为空!"
);
flag
=
false
;
return
false
;
}
if
(
warnNum
===
""
){
message
(
"选中的第"
+
(
index
+
1
)
+
"行
\"
预警值
\"
,
不能为空
!"
);
if
(
!
isPositiveInteger
(
warnNum
)
){
message
(
"选中的第"
+
(
index
+
1
)
+
"行
\"
预警值
\"
,
必须是大于0的整数
!"
);
flag
=
false
;
return
false
;
}
...
...
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