Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
jinli gu
JSH ERP
Commits
cc5617ad
Commit
cc5617ad
authored
Nov 28, 2019
by
季圣华
Browse files
解决商品多单位在单据中切换库存的bug
parent
6fa21556
Changes
1
Hide whitespace changes
Inline
Side-by-side
erp_web/js/pages/materials/in_out.js
View file @
cc5617ad
...
...
@@ -995,26 +995,32 @@
if
(
type
===
"
basic
"
){
if
(
listTitle
==
"
采购订单列表
"
||
listTitle
==
"
采购入库列表
"
||
listTitle
==
"
销售退货列表
"
||
listTitle
==
"
其它入库列表
"
)
{
UnitPrice
=
basicPresetPriceOne
;
loadRatio
=
ratio
;
}
else
if
(
listTitle
==
"
销售订单列表
"
||
listTitle
==
"
销售出库列表
"
||
listTitle
==
"
采购退货列表
"
||
listTitle
==
"
其它出库列表
"
||
listTitle
==
"
调拨出库列表
"
)
{
UnitPrice
=
basicPresetPriceTwo
;
loadRatio
=
1
;
}
else
if
(
listTitle
==
"
零售出库列表
"
||
listTitle
==
"
零售退货列表
"
){
UnitPrice
=
retailPriceOne
;
loadRatio
=
1
;
}
body
.
find
(
"
[field='Stock']
"
).
find
(
input
).
val
(
stock
);
//修改库存
body
.
find
(
"
[field='Stock']
"
).
find
(
input
).
val
(
stock
*
loadRatio
);
//修改库存
}
else
if
(
type
===
"
other
"
){
if
(
listTitle
==
"
采购订单列表
"
||
listTitle
==
"
采购入库列表
"
||
listTitle
==
"
销售退货列表
"
||
listTitle
==
"
其它入库列表
"
)
{
UnitPrice
=
otherPresetPriceOne
;
loadRatio
=
1
;
}
else
if
(
listTitle
==
"
销售订单列表
"
||
listTitle
==
"
销售出库列表
"
||
listTitle
==
"
采购退货列表
"
||
listTitle
==
"
其它出库列表
"
||
listTitle
==
"
调拨出库列表
"
)
{
UnitPrice
=
otherPresetPriceTwo
;
loadRatio
=
ratio
;
}
else
if
(
listTitle
==
"
零售出库列表
"
||
listTitle
==
"
零售退货列表
"
){
UnitPrice
=
retailPriceTwo
;
loadRatio
=
ratio
;
}
body
.
find
(
"
[field='Stock']
"
).
find
(
input
).
val
((
stock
/
r
atio
).
toFixed
(
2
));
//修改库存
body
.
find
(
"
[field='Stock']
"
).
find
(
input
).
val
((
stock
/
loadR
atio
).
toFixed
(
2
));
//修改库存
}
body
.
find
(
"
[field='UnitPrice']
"
).
find
(
input
).
val
(
UnitPrice
);
//单价
var
OperNumber
=
body
.
find
(
"
[field='OperNumber']
"
).
find
(
input
).
val
();
//获取数量
...
...
Write
Preview
Supports
Markdown
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