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
1ed99c8e
Commit
1ed99c8e
authored
Oct 02, 2022
by
季圣华
Browse files
解决采购订单和销售订单只会计算默认仓库的库存的bug
parent
db4121aa
Changes
8
Hide whitespace changes
Inline
Side-by-side
jshERP-web/src/views/bill/mixins/BillModalMixin.js
View file @
1ed99c8e
...
...
@@ -386,7 +386,8 @@ export const BillModalMixin = {
})
}
else
{
//单个条码
findStockByDepotAndBarCode
({
depotId
:
row
.
depotId
,
barCode
:
row
.
barCode
}).
then
((
res
)
=>
{
let
depotIdSelected
=
this
.
prefixNo
!==
'
CGDD
'
&&
this
.
prefixNo
!==
'
XSDD
'
?
row
.
depotId
:
''
findStockByDepotAndBarCode
({
depotId
:
depotIdSelected
,
barCode
:
row
.
barCode
}).
then
((
res
)
=>
{
if
(
res
&&
res
.
code
===
200
)
{
let
mArr
=
[]
let
mInfo
=
mList
[
0
]
...
...
jshERP-web/src/views/bill/modules/PurchaseBackModal.vue
View file @
1ed99c8e
...
...
@@ -68,13 +68,13 @@
<
template
#buttonAfter
>
<a-row
v-if=
"rowCanEdit"
:gutter=
"24"
style=
"float:left;padding-bottom: 5px;"
data-step=
"4"
data-title=
"扫码录入"
data-intro=
"此功能支持扫码枪扫描商品条码进行录入"
>
<a-col
v-if=
"scanStatus"
:md=
"6"
:sm=
"24"
>
<a-button
@
click=
"scanEnter"
>
扫码录入
</a-button>
<a-button
@
click=
"scanEnter"
style=
"margin-right: 8px"
>
扫码录入
</a-button>
</a-col>
<a-col
v-if=
"!scanStatus"
:md=
"16"
:sm=
"24"
style=
"padding: 0 6px 0 12px"
>
<a-input
placeholder=
"请扫码商品条码并回车"
v-model=
"scanBarCode"
@
pressEnter=
"scanPressEnter"
ref=
"scanBarCode"
/>
</a-col>
<a-col
v-if=
"!scanStatus"
:md=
"6"
:sm=
"24"
style=
"padding: 0px"
>
<a-button
@
click=
"stopScan"
>
收起扫码
</a-button>
<a-button
@
click=
"stopScan"
style=
"margin-right: 8px"
>
收起扫码
</a-button>
</a-col>
</a-row>
<a-row
:gutter=
"24"
style=
"float:left;padding-bottom: 5px;"
>
...
...
@@ -84,7 +84,7 @@
<a-menu-item
key=
"1"
@
click=
"handleBatchSetDepot"
><a-icon
type=
"setting"
/>
批量设置
</a-menu-item>
<a-menu-item
v-if=
"isTenant"
key=
"2"
@
click=
"addDepot"
><a-icon
type=
"plus"
/>
新增仓库
</a-menu-item>
</a-menu>
<a-button
style=
"margin-left: 8px"
>
仓库操作
<a-icon
type=
"down"
/></a-button>
<a-button>
仓库操作
<a-icon
type=
"down"
/></a-button>
</a-dropdown>
</a-col>
</a-row>
...
...
jshERP-web/src/views/bill/modules/PurchaseInModal.vue
View file @
1ed99c8e
...
...
@@ -75,13 +75,13 @@
<
template
#buttonAfter
>
<a-row
v-if=
"rowCanEdit"
:gutter=
"24"
style=
"float:left;padding-bottom: 5px;"
data-step=
"4"
data-title=
"扫码录入"
data-intro=
"此功能支持扫码枪扫描商品条码进行录入"
>
<a-col
v-if=
"scanStatus"
:md=
"6"
:sm=
"24"
>
<a-button
@
click=
"scanEnter"
>
扫码录入
</a-button>
<a-button
@
click=
"scanEnter"
style=
"margin-right: 8px"
>
扫码录入
</a-button>
</a-col>
<a-col
v-if=
"!scanStatus"
:md=
"16"
:sm=
"24"
style=
"padding: 0 6px 0 12px"
>
<a-input
placeholder=
"请扫码商品条码并回车"
v-model=
"scanBarCode"
@
pressEnter=
"scanPressEnter"
ref=
"scanBarCode"
/>
</a-col>
<a-col
v-if=
"!scanStatus"
:md=
"6"
:sm=
"24"
style=
"padding: 0px"
>
<a-button
@
click=
"stopScan"
>
收起扫码
</a-button>
<a-button
@
click=
"stopScan"
style=
"margin-right: 8px"
>
收起扫码
</a-button>
</a-col>
</a-row>
<a-row
:gutter=
"24"
style=
"float:left;padding-bottom: 5px;"
>
...
...
@@ -91,7 +91,7 @@
<a-menu-item
key=
"1"
@
click=
"handleBatchSetDepot"
><a-icon
type=
"setting"
/>
批量设置
</a-menu-item>
<a-menu-item
v-if=
"isTenant"
key=
"2"
@
click=
"addDepot"
><a-icon
type=
"plus"
/>
新增仓库
</a-menu-item>
</a-menu>
<a-button
style=
"margin-left: 8px"
>
仓库操作
<a-icon
type=
"down"
/></a-button>
<a-button>
仓库操作
<a-icon
type=
"down"
/></a-button>
</a-dropdown>
</a-col>
</a-row>
...
...
jshERP-web/src/views/bill/modules/PurchaseOrderModal.vue
View file @
1ed99c8e
...
...
@@ -75,18 +75,18 @@
<
template
#buttonAfter
>
<a-row
v-if=
"rowCanEdit"
:gutter=
"24"
style=
"float:left;padding-bottom: 5px;"
data-step=
"4"
data-title=
"扫码录入"
data-intro=
"此功能支持扫码枪扫描商品条码进行录入"
>
<a-col
v-if=
"scanStatus"
:md=
"6"
:sm=
"24"
>
<a-button
@
click=
"scanEnter"
>
扫码录入
</a-button>
<a-button
@
click=
"scanEnter"
style=
"margin-right: 8px"
>
扫码录入
</a-button>
</a-col>
<a-col
v-if=
"!scanStatus"
:md=
"16"
:sm=
"24"
style=
"padding: 0 6px 0 12px"
>
<a-input
placeholder=
"请扫码商品条码并回车"
v-model=
"scanBarCode"
@
pressEnter=
"scanPressEnter"
ref=
"scanBarCode"
/>
</a-col>
<a-col
v-if=
"!scanStatus"
:md=
"6"
:sm=
"24"
style=
"padding: 0px"
>
<a-button
@
click=
"stopScan"
>
收起扫码
</a-button>
<a-button
@
click=
"stopScan"
style=
"margin-right: 8px"
>
收起扫码
</a-button>
</a-col>
</a-row>
<a-row
:gutter=
"24"
style=
"float:left;padding-bottom: 5px;"
>
<a-col
:md=
"24"
:sm=
"24"
>
<a-button
style=
"margin-left: 8px"
@
click=
"handleHistoryBillList"
><a-icon
type=
"history"
/>
历史单据
</a-button>
<a-button
@
click=
"handleHistoryBillList"
><a-icon
type=
"history"
/>
历史单据
</a-button>
</a-col>
</a-row>
</
template
>
...
...
@@ -229,7 +229,6 @@
loading
:
false
,
dataSource
:
[],
columns
:
[
{
title
:
'
仓库名称
'
,
key
:
'
depotId
'
,
width
:
'
8%
'
,
type
:
FormTypes
.
hidden
},
{
title
:
'
条码
'
,
key
:
'
barCode
'
,
width
:
'
10%
'
,
type
:
FormTypes
.
popupJsh
,
kind
:
'
material
'
,
multi
:
true
,
validateRules
:
[{
required
:
true
,
message
:
'
${title}不能为空
'
}]
},
...
...
@@ -282,7 +281,7 @@
editAfter
()
{
this
.
billStatus
=
'
0
'
this
.
rowCanEdit
=
true
this
.
materialTable
.
columns
[
1
].
type
=
FormTypes
.
popupJsh
this
.
materialTable
.
columns
[
0
].
type
=
FormTypes
.
popupJsh
this
.
getSystemConfig
()
this
.
changeColumnHide
()
this
.
changeFormTypes
(
this
.
materialTable
.
columns
,
'
preNumber
'
,
0
)
...
...
@@ -296,7 +295,7 @@
}
else
{
if
(
this
.
model
.
linkNumber
)
{
this
.
rowCanEdit
=
false
this
.
materialTable
.
columns
[
1
].
type
=
FormTypes
.
normal
this
.
materialTable
.
columns
[
0
].
type
=
FormTypes
.
normal
}
this
.
model
.
operTime
=
this
.
model
.
operTimeStr
if
(
this
.
model
.
accountId
==
null
)
{
...
...
@@ -374,7 +373,7 @@
},
linkBillListOk
(
selectBillDetailRows
,
linkNumber
,
organId
)
{
this
.
rowCanEdit
=
false
this
.
materialTable
.
columns
[
1
].
type
=
FormTypes
.
normal
this
.
materialTable
.
columns
[
0
].
type
=
FormTypes
.
normal
this
.
changeFormTypes
(
this
.
materialTable
.
columns
,
'
preNumber
'
,
1
)
this
.
changeFormTypes
(
this
.
materialTable
.
columns
,
'
finishNumber
'
,
1
)
if
(
selectBillDetailRows
&&
selectBillDetailRows
.
length
>
0
)
{
...
...
jshERP-web/src/views/bill/modules/RetailBackModal.vue
View file @
1ed99c8e
...
...
@@ -70,13 +70,13 @@
<
template
#buttonAfter
>
<a-row
v-if=
"rowCanEdit"
:gutter=
"24"
style=
"float:left;padding-bottom: 5px;"
data-step=
"4"
data-title=
"扫码录入"
data-intro=
"此功能支持扫码枪扫描商品条码进行录入"
>
<a-col
v-if=
"scanStatus"
:md=
"6"
:sm=
"24"
>
<a-button
@
click=
"scanEnter"
>
扫码录入
</a-button>
<a-button
@
click=
"scanEnter"
style=
"margin-right: 8px"
>
扫码录入
</a-button>
</a-col>
<a-col
v-if=
"!scanStatus"
:md=
"16"
:sm=
"24"
style=
"padding: 0 6px 0 12px"
>
<a-input
placeholder=
"请扫码商品条码并回车"
v-model=
"scanBarCode"
@
pressEnter=
"scanPressEnter"
ref=
"scanBarCode"
/>
</a-col>
<a-col
v-if=
"!scanStatus"
:md=
"6"
:sm=
"24"
style=
"padding: 0px"
>
<a-button
@
click=
"stopScan"
>
收起扫码
</a-button>
<a-button
@
click=
"stopScan"
style=
"margin-right: 8px"
>
收起扫码
</a-button>
</a-col>
</a-row>
<a-row
:gutter=
"24"
style=
"float:left;padding-bottom: 5px;"
>
...
...
@@ -86,7 +86,7 @@
<a-menu-item
key=
"1"
@
click=
"handleBatchSetDepot"
><a-icon
type=
"setting"
/>
批量设置
</a-menu-item>
<a-menu-item
v-if=
"isTenant"
key=
"2"
@
click=
"addDepot"
><a-icon
type=
"plus"
/>
新增仓库
</a-menu-item>
</a-menu>
<a-button
style=
"margin-left: 8px"
>
仓库操作
<a-icon
type=
"down"
/></a-button>
<a-button>
仓库操作
<a-icon
type=
"down"
/></a-button>
</a-dropdown>
</a-col>
</a-row>
...
...
jshERP-web/src/views/bill/modules/SaleBackModal.vue
View file @
1ed99c8e
...
...
@@ -68,13 +68,13 @@
<
template
#buttonAfter
>
<a-row
v-if=
"rowCanEdit"
:gutter=
"24"
style=
"float:left;padding-bottom: 5px;"
data-step=
"4"
data-title=
"扫码录入"
data-intro=
"此功能支持扫码枪扫描商品条码进行录入"
>
<a-col
v-if=
"scanStatus"
:md=
"6"
:sm=
"24"
>
<a-button
@
click=
"scanEnter"
>
扫码录入
</a-button>
<a-button
@
click=
"scanEnter"
style=
"margin-right: 8px"
>
扫码录入
</a-button>
</a-col>
<a-col
v-if=
"!scanStatus"
:md=
"16"
:sm=
"24"
style=
"padding: 0 6px 0 12px"
>
<a-input
placeholder=
"请扫码商品条码并回车"
v-model=
"scanBarCode"
@
pressEnter=
"scanPressEnter"
ref=
"scanBarCode"
/>
</a-col>
<a-col
v-if=
"!scanStatus"
:md=
"6"
:sm=
"24"
style=
"padding: 0px"
>
<a-button
@
click=
"stopScan"
>
收起扫码
</a-button>
<a-button
@
click=
"stopScan"
style=
"margin-right: 8px"
>
收起扫码
</a-button>
</a-col>
</a-row>
<a-row
:gutter=
"24"
style=
"float:left;padding-bottom: 5px;"
>
...
...
@@ -84,7 +84,7 @@
<a-menu-item
key=
"1"
@
click=
"handleBatchSetDepot"
><a-icon
type=
"setting"
/>
批量设置
</a-menu-item>
<a-menu-item
v-if=
"isTenant"
key=
"2"
@
click=
"addDepot"
><a-icon
type=
"plus"
/>
新增仓库
</a-menu-item>
</a-menu>
<a-button
style=
"margin-left: 8px"
>
仓库操作
<a-icon
type=
"down"
/></a-button>
<a-button>
仓库操作
<a-icon
type=
"down"
/></a-button>
</a-dropdown>
</a-col>
</a-row>
...
...
jshERP-web/src/views/bill/modules/SaleOrderModal.vue
View file @
1ed99c8e
...
...
@@ -222,7 +222,6 @@
loading
:
false
,
dataSource
:
[],
columns
:
[
{
title
:
'
仓库名称
'
,
key
:
'
depotId
'
,
width
:
'
8%
'
,
type
:
FormTypes
.
hidden
},
{
title
:
'
条码
'
,
key
:
'
barCode
'
,
width
:
'
10%
'
,
type
:
FormTypes
.
popupJsh
,
kind
:
'
material
'
,
multi
:
true
,
validateRules
:
[{
required
:
true
,
message
:
'
${title}不能为空
'
}]
},
...
...
jshERP-web/src/views/bill/modules/SaleOutModal.vue
View file @
1ed99c8e
...
...
@@ -76,13 +76,13 @@
<
template
#buttonAfter
>
<a-row
v-if=
"rowCanEdit"
:gutter=
"24"
style=
"float:left;padding-bottom: 5px;"
data-step=
"4"
data-title=
"扫码录入"
data-intro=
"此功能支持扫码枪扫描商品条码进行录入"
>
<a-col
v-if=
"scanStatus"
:md=
"6"
:sm=
"24"
>
<a-button
@
click=
"scanEnter"
>
扫码录入
</a-button>
<a-button
@
click=
"scanEnter"
style=
"margin-right: 8px"
>
扫码录入
</a-button>
</a-col>
<a-col
v-if=
"!scanStatus"
:md=
"16"
:sm=
"24"
style=
"padding: 0 6px 0 12px"
>
<a-input
placeholder=
"请扫码商品条码并回车"
v-model=
"scanBarCode"
@
pressEnter=
"scanPressEnter"
ref=
"scanBarCode"
/>
</a-col>
<a-col
v-if=
"!scanStatus"
:md=
"6"
:sm=
"24"
style=
"padding: 0px"
>
<a-button
@
click=
"stopScan"
>
收起扫码
</a-button>
<a-button
@
click=
"stopScan"
style=
"margin-right: 8px"
>
收起扫码
</a-button>
</a-col>
</a-row>
<a-row
:gutter=
"24"
style=
"float:left;padding-bottom: 5px;"
>
...
...
@@ -92,7 +92,7 @@
<a-menu-item
key=
"1"
@
click=
"handleBatchSetDepot"
><a-icon
type=
"setting"
/>
批量设置
</a-menu-item>
<a-menu-item
v-if=
"isTenant"
key=
"2"
@
click=
"addDepot"
><a-icon
type=
"plus"
/>
新增仓库
</a-menu-item>
</a-menu>
<a-button
style=
"margin-left: 8px"
>
仓库操作
<a-icon
type=
"down"
/></a-button>
<a-button>
仓库操作
<a-icon
type=
"down"
/></a-button>
</a-dropdown>
</a-col>
</a-row>
...
...
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