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
d96b334b
Commit
d96b334b
authored
Apr 29, 2024
by
liuyang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
2024-04-29 优化采购申请时,新增存货规格数据回调提交
parent
639aed0e
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
31 additions
and
4 deletions
+31
-4
ServiceHPCG001.java
.../java/com/baosight/hpjx/hp/cg/service/ServiceHPCG001.java
+2
-2
HPCG001.js
src/main/webapp/HP/CG/HPCG001.js
+28
-1
HPCG001.jsp
src/main/webapp/HP/CG/HPCG001.jsp
+1
-1
No files found.
src/main/java/com/baosight/hpjx/hp/cg/service/ServiceHPCG001.java
View file @
d96b334b
...
...
@@ -123,7 +123,7 @@ public class ServiceHPCG001 extends ServiceEPBase {
if
(
hpcg001
.
getId
()
==
null
||
hpcg001
.
getId
()
==
0
)
{
this
.
add
(
hpcg001
,
fPz006
);
}
else
{
this
.
modify
(
hpcg001
);
this
.
modify
(
hpcg001
,
fPz006
);
}
}
inInfo
.
setStatus
(
EiConstant
.
STATUS_DEFAULT
);
...
...
@@ -159,7 +159,7 @@ public class ServiceHPCG001 extends ServiceEPBase {
/**
* 修改操作
*/
public
void
modify
(
HPCG001
hpcg001
)
{
public
void
modify
(
HPCG001
hpcg001
,
HPPZ006
fPz006
)
{
// 计算重量
this
.
calcWeight
(
hpcg001
);
DaoUtils
.
update
(
HPCG001
.
UPDATE
,
hpcg001
);
...
...
src/main/webapp/HP/CG/HPCG001.js
View file @
d96b334b
...
...
@@ -319,6 +319,30 @@ let save = function (btnNode) {
flag
=
false
;
return
false
;
}
let
inventType
=
item
.
get
(
"inventType"
);
if
(
isBlank
(
inventType
)){
message
(
"选中的第"
+
(
index
+
1
)
+
"行
\"
存货类型
\"
,不能为空!"
);
flag
=
false
;
return
false
;
}
let
whCode
=
item
.
get
(
"whCode"
);
if
(
isBlank
(
whCode
)){
message
(
"选中的第"
+
(
index
+
1
)
+
"行
\"
仓库名称
\"
,不能为空!"
);
flag
=
false
;
return
false
;
}
let
inventName
=
item
.
get
(
"inventName"
);
if
(
isBlank
(
inventName
)){
message
(
"选中的第"
+
(
index
+
1
)
+
"行
\"
存货名称
\"
,不能为空!"
);
flag
=
false
;
return
false
;
}
let
applyAmount
=
item
.
get
(
"applyAmount"
);
if
(
applyAmount
<=
0
){
message
(
"选中的第"
+
(
index
+
1
)
+
"行
\"
申请数量不能为0!
\"
"
);
flag
=
false
;
return
false
;
}
let
status
=
item
.
get
(
"proApplyStatus"
);
if
(
status
==
"1"
){
message
(
"选中的第"
+
(
index
+
1
)
+
"行记录已提交,不能修改!"
);
...
...
@@ -329,7 +353,10 @@ let save = function (btnNode) {
if
(
flag
)
{
JSUtils
.
confirm
(
"确定对勾选中的["
+
rows
.
length
+
"]条数据做
\"
保存
\"
操作? "
,
{
ok
:
function
()
{
JSUtils
.
submitGridsData
(
"result"
,
"HPCG001"
,
"save"
,
true
);
JSUtils
.
submitGridsData
(
"result"
,
"HPCG001"
,
"save"
,
true
,
function
(
e
)
{
query
();
});
btnNode
.
attr
(
"disabled"
,
false
);
}
});
...
...
src/main/webapp/HP/CG/HPCG001.jsp
View file @
d96b334b
...
...
@@ -75,7 +75,7 @@
<EF:EFColumn ename="inventRecordId" cname="规格ID" width="120" align="center" readonly="true" hidden="true"/>
<EF:EFColumn ename="spec" cname="规格" width="120" align="center" readonly="true"/>
<EF:EFColumn ename="applyAmount" cname="申请数量" format="{0:N0}" width="100" align="right"
data-regex="/^-?[0-9]{1,15}?$/" maxLength="15" required="true"
data-regex="/^-?[0-9]{1,15}?$/" maxLength="15" required="true"
defaultValue="0"
data-errorprompt="请输入数字,该值最大可设置15位整数!"/>
<EF:EFColumn ename="unitWeight" cname="单重(KG)" enable="false" width="100" align="right" format="{0:N3}"/>
<EF:EFColumn ename="weight" cname="总重(T)" enable="false" width="100" align="right" format="{0:N3}"/>
...
...
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