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
4754f59e
Commit
4754f59e
authored
Nov 12, 2021
by
季圣华
Browse files
解决单据bug:零售退货和选择商品的时候库存的展示
parent
b46c0816
Changes
2
Hide whitespace changes
Inline
Side-by-side
jshERP-web/src/views/bill/mixins/BillModalMixin.js
View file @
4754f59e
...
@@ -316,21 +316,24 @@ export const BillModalMixin = {
...
@@ -316,21 +316,24 @@ export const BillModalMixin = {
})
})
}
else
{
}
else
{
//单个条码
//单个条码
let
mArr
=
[]
findStockByDepotAndBarCode
({
depotId
:
row
.
depotId
,
barCode
:
row
.
barCode
}).
then
((
res
)
=>
{
for
(
let
i
=
0
;
i
<
mList
.
length
;
i
++
)
{
if
(
res
&&
res
.
code
===
200
)
{
let
mInfo
=
mList
[
i
]
let
mArr
=
[]
this
.
changeColumnShow
(
mInfo
)
let
mInfo
=
mList
[
0
]
let
mObj
=
{
this
.
changeColumnShow
(
mInfo
)
rowKey
:
row
.
id
,
let
mInfoEx
=
this
.
parseInfoToObj
(
mInfo
)
values
:
this
.
parseInfoToObj
(
mInfo
)
mInfoEx
.
stock
=
res
.
data
.
stock
let
mObj
=
{
rowKey
:
row
.
id
,
values
:
mInfoEx
}
mArr
.
push
(
mObj
)
target
.
setValues
(
mArr
);
target
.
recalcAllStatisticsColumns
()
that
.
autoChangePrice
(
target
)
target
.
autoSelectBySpecialKey
(
'
operNumber
'
)
}
}
mArr
.
push
(
mObj
)
})
}
target
.
setValues
(
mArr
);
that
.
getStockByDepotBarCode
(
row
,
target
)
target
.
recalcAllStatisticsColumns
()
that
.
autoChangePrice
(
target
)
target
.
autoSelectBySpecialKey
(
'
operNumber
'
)
}
}
}
}
});
});
...
...
jshERP-web/src/views/bill/modules/RetailBackModal.vue
View file @
4754f59e
...
@@ -323,7 +323,7 @@
...
@@ -323,7 +323,7 @@
});
});
},
},
onSearchLinkNumber
()
{
onSearchLinkNumber
()
{
this
.
$refs
.
linkBillList
.
show
(
'
出库
'
,
'
零售
'
,
'
会员
'
,
"
0
"
)
this
.
$refs
.
linkBillList
.
show
(
'
出库
'
,
'
零售
'
,
'
会员
'
,
"
1
"
)
this
.
$refs
.
linkBillList
.
title
=
"
选择零售出库
"
this
.
$refs
.
linkBillList
.
title
=
"
选择零售出库
"
},
},
linkBillListOk
(
selectBillRows
)
{
linkBillListOk
(
selectBillRows
)
{
...
...
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