Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
H
hg-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
hg-smart
Commits
698e7457
Commit
698e7457
authored
Oct 14, 2024
by
宋祥
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1.修复生产领料提交BUG,主状态未变更
parent
817f4be7
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
7 deletions
+7
-7
ServiceHGKC008.java
.../java/com/baosight/hggp/hg/kc/service/ServiceHGKC008.java
+4
-4
HGKC008.js
src/main/webapp/HG/KC/HGKC008.js
+3
-3
No files found.
src/main/java/com/baosight/hggp/hg/kc/service/ServiceHGKC008.java
View file @
698e7457
...
@@ -189,16 +189,16 @@ public class ServiceHGKC008 extends ServiceBase {
...
@@ -189,16 +189,16 @@ public class ServiceHGKC008 extends ServiceBase {
//查看是否能获取到账期,获取不到就提示
//查看是否能获取到账期,获取不到就提示
HGKC008
getKc008
=
HGKCTools
.
HgKc008
.
getById
(
fKc008
.
getId
());
HGKC008
getKc008
=
HGKCTools
.
HgKc008
.
getById
(
fKc008
.
getId
());
HGCWTools
.
HgCw001
.
getAccountPeriod
(
getKc008
.
getCompanyCode
(),
getKc008
.
getReceiptDate
());
HGCWTools
.
HgCw001
.
getAccountPeriod
(
getKc008
.
getCompanyCode
(),
getKc008
.
getReceiptDate
());
HGKCTools
.
HgKc008
A
.
updateStatus
(
fKc008
.
getApplyCode
(),
HgKcConst
.
HgKc008
.
Status
.
S1
);
HGKCTools
.
HgKc008
.
updateStatus
(
fKc008
.
getApplyCode
(),
HgKcConst
.
HgKc008
.
Status
.
S1
);
List
<
HGKC008A
>
dbKc008As
=
HGKCTools
.
HgKc008A
.
getHgkc008aList
(
fKc008
.
getId
());
List
<
HGKC008A
>
dbKc008As
=
HGKCTools
.
HgKc008A
.
getHgkc008aList
(
fKc008
.
getId
());
if
(!
CollectionUtils
.
isEmpty
(
dbKc008As
))
{
if
(!
CollectionUtils
.
isEmpty
(
dbKc008As
))
{
for
(
HGKC008A
dbKc008A
:
dbKc008As
)
{
for
(
HGKC008A
dbKc008A
:
dbKc008As
)
{
// 更新明细状态
// 更新明细状态
HGKCTools
.
HgKc008A
.
updateStatus
(
dbKc008A
.
getApplyLineCode
(),
HgKcConst
.
HgKc008
.
Status
.
S1
);
HGKCTools
.
HgKc008A
.
updateStatus
(
dbKc008A
.
getApplyLineCode
(),
HgKcConst
.
HgKc008
.
Status
.
S1
);
// 领料如果是正数则为出库,需要减少库存,如果是退回则要加库存
// 领料如果是正数则为出库,需要减少库存,如果是退回则要加库存
BigDecimal
qty
=
dbKc008A
.
getInvQty
().
multiply
(
new
BigDecimal
(-
1
)
);
BigDecimal
qty
=
dbKc008A
.
getInvQty
().
negate
(
);
BigDecimal
invUnitWeight
=
dbKc008A
.
getInvUnitWeight
()
.
multiply
(
new
BigDecimal
(-
1
))
;
BigDecimal
invUnitWeight
=
dbKc008A
.
getInvUnitWeight
();
BigDecimal
invWeight
=
dbKc008A
.
getInvWeight
().
multiply
(
new
BigDecimal
(-
1
)
);
BigDecimal
invWeight
=
dbKc008A
.
getInvWeight
().
negate
(
);
// 增加库存
// 增加库存
HGKCUtils
.
HgKc010
.
updateInv
(
dbKc008A
.
getCompanyCode
(),
dbKc008A
.
getWhCode
(),
HGKCUtils
.
HgKc010
.
updateInv
(
dbKc008A
.
getCompanyCode
(),
dbKc008A
.
getWhCode
(),
dbKc008A
.
getInventCode
(),
qty
,
invUnitWeight
,
invWeight
);
dbKc008A
.
getInventCode
(),
qty
,
invUnitWeight
,
invWeight
);
...
...
src/main/webapp/HG/KC/HGKC008.js
View file @
698e7457
...
@@ -35,7 +35,7 @@ $(function (){
...
@@ -35,7 +35,7 @@ $(function (){
+
item
.
applyCode
+
'
\'
)" >领料详情</a>'
;
+
item
.
applyCode
+
'
\'
)" >领料详情</a>'
;
if
(
status
==
0
)
{
if
(
status
==
0
)
{
template
+=
'<a style="cursor: pointer;display: inline-flex;justify-content: center;margin:auto 5px" '
template
+=
'<a style="cursor: pointer;display: inline-flex;justify-content: center;margin:auto 5px" '
+
'onclick="updateStatus('
+
item
.
id
+
',
1
)" >提交</a>'
;
+
'onclick="updateStatus('
+
item
.
id
+
',
\'
'
+
item
.
applyCode
+
'
\'
)" >提交</a>'
;
}
}
}
}
return
template
;
return
template
;
...
@@ -233,10 +233,10 @@ let save = function (btnNode) {
...
@@ -233,10 +233,10 @@ let save = function (btnNode) {
}
}
}
}
function
updateStatus
(
id
,
status
)
{
function
updateStatus
(
id
,
applyCode
)
{
let
inEiInfo
=
new
EiInfo
();
let
inEiInfo
=
new
EiInfo
();
inEiInfo
.
set
(
"result-0-id"
,
id
);
inEiInfo
.
set
(
"result-0-id"
,
id
);
inEiInfo
.
set
(
"result-0-
status"
,
status
);
inEiInfo
.
set
(
"result-0-
applyCode"
,
applyCode
);
JSUtils
.
confirm
(
"确定提交此生产领料单吗? "
,
{
JSUtils
.
confirm
(
"确定提交此生产领料单吗? "
,
{
ok
:
function
()
{
ok
:
function
()
{
EiCommunicator
.
send
(
'HGKC008'
,
'updateStatus'
,
inEiInfo
,
{
EiCommunicator
.
send
(
'HGKC008'
,
'updateStatus'
,
inEiInfo
,
{
...
...
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