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
2e31a171
Commit
2e31a171
authored
Apr 10, 2024
by
liuyang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
2024-04-10 报工管理功能优化
parent
d3ba094f
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
5 deletions
+14
-5
HPSC096.js
src/main/webapp/HP/SC/HPSC096.js
+14
-5
No files found.
src/main/webapp/HP/SC/HPSC096.js
View file @
2e31a171
...
@@ -109,7 +109,8 @@ $(function (){
...
@@ -109,7 +109,8 @@ $(function (){
* 确认
* 确认
*/
*/
$
(
'#confirm'
).
on
(
'click'
,
function
()
{
$
(
'#confirm'
).
on
(
'click'
,
function
()
{
let
rows
=
resultGrid
.
getDataItems
();
let
resultRows
=
resultGrid
.
getDataItems
();
let
detailRows
=
resultGrid
.
getDataItems
();
if
(
rows
.
length
<
1
)
{
if
(
rows
.
length
<
1
)
{
message
(
"请选择数据"
);
message
(
"请选择数据"
);
return
;
return
;
...
@@ -120,22 +121,30 @@ $(function (){
...
@@ -120,22 +121,30 @@ $(function (){
registerDate
=
currShortDate
()
registerDate
=
currShortDate
()
}
}
let
flag
=
true
;
let
flag
=
true
;
$
.
each
(
rows
,
function
(
index
,
item
)
{
$
.
each
(
r
esultR
ows
,
function
(
index
,
item
)
{
let
prdtName
=
item
.
get
(
"prdtName"
);
let
prdtName
=
item
.
get
(
"prdtName"
);
if
(
isBlank
(
prdtName
)){
if
(
isBlank
(
prdtName
)){
message
(
"选中的第"
+
(
index
+
1
)
+
"行
\"
产品
\"
,不能为空!"
);
message
(
"选中的
生产组
第"
+
(
index
+
1
)
+
"行
\"
产品
\"
,不能为空!"
);
flag
=
false
;
flag
=
false
;
return
false
;
return
false
;
}
}
let
weight
=
item
.
get
(
"weight"
);
let
weight
=
item
.
get
(
"weight"
);
if
(
isBlank
(
weight
)){
if
(
isBlank
(
weight
)){
message
(
"选中的第"
+
(
index
+
1
)
+
"行
\"
组拼产量(T)
\"
,不能为空!"
);
message
(
"选中的
生产组
第"
+
(
index
+
1
)
+
"行
\"
组拼产量(T)
\"
,不能为空!"
);
flag
=
false
;
flag
=
false
;
return
false
;
return
false
;
}
}
let
weightJh
=
item
.
get
(
"weightJh"
);
let
weightJh
=
item
.
get
(
"weightJh"
);
if
(
isBlank
(
weightJh
)){
if
(
isBlank
(
weightJh
)){
message
(
"选中的第"
+
(
index
+
1
)
+
"行
\"
加焊产量(T)
\"
,不能为空!"
);
message
(
"选中的生产组第"
+
(
index
+
1
)
+
"行
\"
加焊产量(T)
\"
,不能为空!"
);
flag
=
false
;
return
false
;
}
});
$
.
each
(
detailRows
,
function
(
index
,
item
)
{
let
prdtName
=
item
.
get
(
"prdtName"
);
if
(
isBlank
(
prdtName
)){
message
(
"选中的下料组第"
+
(
index
+
1
)
+
"行
\"
产品
\"
,不能为空!"
);
flag
=
false
;
flag
=
false
;
return
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