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
5f6ab656
Commit
5f6ab656
authored
Aug 06, 2021
by
季圣华
Browse files
优化商品条码查询接口,支持选择多商品
parent
c6a5689f
Changes
16
Hide whitespace changes
Inline
Side-by-side
jshERP-web/src/views/bill/mixins/BillModalMixin.js
View file @
5f6ab656
...
...
@@ -185,32 +185,73 @@ export const BillModalMixin = {
mpList
:
getMpListShort
(
Vue
.
ls
.
get
(
'
materialPropertyList
'
)),
//扩展属性
prefixNo
:
this
.
prefixNo
}
getMaterialByBarCode
(
param
).
then
((
res
)
=>
{
if
(
res
&&
res
.
code
===
200
)
{
target
.
setValues
([{
rowKey
:
row
.
id
,
values
:
{
barCode
:
res
.
data
.
mBarCode
,
name
:
res
.
data
.
name
,
standard
:
res
.
data
.
standard
,
model
:
res
.
data
.
model
,
materialOther
:
res
.
data
.
materialOther
,
unit
:
res
.
data
.
commodityUnit
,
sku
:
res
.
data
.
sku
,
operNumber
:
1
,
unitPrice
:
res
.
data
.
billPrice
,
taxUnitPrice
:
res
.
data
.
billPrice
,
allPrice
:
res
.
data
.
billPrice
,
taxRate
:
0
,
taxMoney
:
0
,
taxLastMoney
:
res
.
data
.
billPrice
,
if
(
value
.
indexOf
(
'
,
'
)
>-
1
)
{
//多个条码
getMaterialByBarCode
(
param
).
then
((
res
)
=>
{
if
(
res
&&
res
.
code
===
200
)
{
let
mList
=
res
.
data
let
mArr
=
[]
for
(
let
i
=
0
;
i
<
mList
.
length
;
i
++
)
{
let
mInfo
=
mList
[
i
]
let
mObj
=
{
depotId
:
mInfo
.
depotId
,
barCode
:
mInfo
.
mBarCode
,
name
:
mInfo
.
name
,
standard
:
mInfo
.
standard
,
model
:
mInfo
.
model
,
materialOther
:
mInfo
.
materialOther
,
stock
:
mInfo
.
stock
,
unit
:
mInfo
.
commodityUnit
,
sku
:
mInfo
.
sku
,
operNumber
:
1
,
unitPrice
:
mInfo
.
billPrice
,
taxUnitPrice
:
mInfo
.
billPrice
,
allPrice
:
mInfo
.
billPrice
,
taxRate
:
0
,
taxMoney
:
0
,
taxLastMoney
:
mInfo
.
billPrice
}
mArr
.
push
(
mObj
)
}
this
.
materialTable
.
dataSource
=
mArr
}
}]);
that
.
getStockByDepotBarCode
(
row
,
target
)
target
.
recalcAllStatisticsColumns
()
that
.
autoChangePrice
(
target
)
}
});
});
}
else
{
//单个条码
getMaterialByBarCode
(
param
).
then
((
res
)
=>
{
if
(
res
&&
res
.
code
===
200
)
{
let
mList
=
res
.
data
let
mArr
=
[]
for
(
let
i
=
0
;
i
<
mList
.
length
;
i
++
)
{
let
mInfo
=
mList
[
i
]
let
mObj
=
{
rowKey
:
row
.
id
,
values
:
{
barCode
:
mInfo
.
mBarCode
,
name
:
mInfo
.
name
,
standard
:
mInfo
.
standard
,
model
:
mInfo
.
model
,
materialOther
:
mInfo
.
materialOther
,
unit
:
mInfo
.
commodityUnit
,
sku
:
mInfo
.
sku
,
operNumber
:
1
,
unitPrice
:
mInfo
.
billPrice
,
taxUnitPrice
:
mInfo
.
billPrice
,
allPrice
:
mInfo
.
billPrice
,
taxRate
:
0
,
taxMoney
:
0
,
taxLastMoney
:
mInfo
.
billPrice
}
}
mArr
.
push
(
mObj
)
}
target
.
setValues
(
mArr
);
that
.
getStockByDepotBarCode
(
row
,
target
)
target
.
recalcAllStatisticsColumns
()
that
.
autoChangePrice
(
target
)
}
});
}
break
;
case
"
operNumber
"
:
operNumber
=
value
-
0
...
...
jshERP-web/src/views/bill/modules/AllocationOutModal.vue
View file @
5f6ab656
...
...
@@ -103,7 +103,7 @@
{
title
:
'
仓库名称
'
,
key
:
'
depotId
'
,
width
:
'
7%
'
,
type
:
FormTypes
.
select
,
placeholder
:
'
请选择${title}
'
,
options
:
[],
allowSearch
:
true
,
validateRules
:
[{
required
:
true
,
message
:
'
${title}不能为空
'
}]
},
{
title
:
'
条码
'
,
key
:
'
barCode
'
,
width
:
'
8%
'
,
type
:
FormTypes
.
popupJsh
,
multi
:
fals
e
,
{
title
:
'
条码
'
,
key
:
'
barCode
'
,
width
:
'
8%
'
,
type
:
FormTypes
.
popupJsh
,
multi
:
tru
e
,
validateRules
:
[{
required
:
true
,
message
:
'
${title}不能为空
'
}]
},
{
title
:
'
名称
'
,
key
:
'
name
'
,
width
:
'
6%
'
,
type
:
FormTypes
.
input
,
readonly
:
true
},
...
...
jshERP-web/src/views/bill/modules/AssembleModal.vue
View file @
5f6ab656
...
...
@@ -105,7 +105,7 @@
{
title
:
'
仓库名称
'
,
key
:
'
depotId
'
,
width
:
'
7%
'
,
type
:
FormTypes
.
select
,
placeholder
:
'
请选择${title}
'
,
options
:
[],
allowSearch
:
true
,
validateRules
:
[{
required
:
true
,
message
:
'
${title}不能为空
'
}]
},
{
title
:
'
条码
'
,
key
:
'
barCode
'
,
width
:
'
8%
'
,
type
:
FormTypes
.
popupJsh
,
multi
:
fals
e
,
{
title
:
'
条码
'
,
key
:
'
barCode
'
,
width
:
'
8%
'
,
type
:
FormTypes
.
popupJsh
,
multi
:
tru
e
,
validateRules
:
[{
required
:
true
,
message
:
'
${title}不能为空
'
}]
},
{
title
:
'
名称
'
,
key
:
'
name
'
,
width
:
'
6%
'
,
type
:
FormTypes
.
input
,
readonly
:
true
},
...
...
jshERP-web/src/views/bill/modules/DisassembleModal.vue
View file @
5f6ab656
...
...
@@ -105,7 +105,7 @@
{
title
:
'
仓库名称
'
,
key
:
'
depotId
'
,
width
:
'
7%
'
,
type
:
FormTypes
.
select
,
placeholder
:
'
请选择${title}
'
,
options
:
[],
allowSearch
:
true
,
validateRules
:
[{
required
:
true
,
message
:
'
${title}不能为空
'
}]
},
{
title
:
'
条码
'
,
key
:
'
barCode
'
,
width
:
'
8%
'
,
type
:
FormTypes
.
popupJsh
,
multi
:
fals
e
,
{
title
:
'
条码
'
,
key
:
'
barCode
'
,
width
:
'
8%
'
,
type
:
FormTypes
.
popupJsh
,
multi
:
tru
e
,
validateRules
:
[{
required
:
true
,
message
:
'
${title}不能为空
'
}]
},
{
title
:
'
名称
'
,
key
:
'
name
'
,
width
:
'
6%
'
,
type
:
FormTypes
.
input
,
readonly
:
true
},
...
...
jshERP-web/src/views/bill/modules/OtherInModal.vue
View file @
5f6ab656
...
...
@@ -112,7 +112,7 @@
{
title
:
'
仓库名称
'
,
key
:
'
depotId
'
,
width
:
'
7%
'
,
type
:
FormTypes
.
select
,
placeholder
:
'
请选择${title}
'
,
options
:
[],
allowSearch
:
true
,
validateRules
:
[{
required
:
true
,
message
:
'
${title}不能为空
'
}]
},
{
title
:
'
条码
'
,
key
:
'
barCode
'
,
width
:
'
8%
'
,
type
:
FormTypes
.
popupJsh
,
multi
:
fals
e
,
{
title
:
'
条码
'
,
key
:
'
barCode
'
,
width
:
'
8%
'
,
type
:
FormTypes
.
popupJsh
,
multi
:
tru
e
,
validateRules
:
[{
required
:
true
,
message
:
'
${title}不能为空
'
}]
},
{
title
:
'
名称
'
,
key
:
'
name
'
,
width
:
'
6%
'
,
type
:
FormTypes
.
input
,
readonly
:
true
},
...
...
jshERP-web/src/views/bill/modules/OtherOutModal.vue
View file @
5f6ab656
...
...
@@ -112,7 +112,7 @@
{
title
:
'
仓库名称
'
,
key
:
'
depotId
'
,
width
:
'
7%
'
,
type
:
FormTypes
.
select
,
placeholder
:
'
请选择${title}
'
,
options
:
[],
allowSearch
:
true
,
validateRules
:
[{
required
:
true
,
message
:
'
${title}不能为空
'
}]
},
{
title
:
'
条码
'
,
key
:
'
barCode
'
,
width
:
'
8%
'
,
type
:
FormTypes
.
popupJsh
,
multi
:
fals
e
,
{
title
:
'
条码
'
,
key
:
'
barCode
'
,
width
:
'
8%
'
,
type
:
FormTypes
.
popupJsh
,
multi
:
tru
e
,
validateRules
:
[{
required
:
true
,
message
:
'
${title}不能为空
'
}]
},
{
title
:
'
名称
'
,
key
:
'
name
'
,
width
:
'
6%
'
,
type
:
FormTypes
.
input
,
readonly
:
true
},
...
...
jshERP-web/src/views/bill/modules/PurchaseBackModal.vue
View file @
5f6ab656
...
...
@@ -174,7 +174,7 @@
{
title
:
'
仓库名称
'
,
key
:
'
depotId
'
,
width
:
'
7%
'
,
type
:
FormTypes
.
select
,
placeholder
:
'
请选择${title}
'
,
options
:
[],
allowSearch
:
true
,
validateRules
:
[{
required
:
true
,
message
:
'
${title}不能为空
'
}]
},
{
title
:
'
条码
'
,
key
:
'
barCode
'
,
width
:
'
8%
'
,
type
:
FormTypes
.
popupJsh
,
multi
:
fals
e
,
{
title
:
'
条码
'
,
key
:
'
barCode
'
,
width
:
'
8%
'
,
type
:
FormTypes
.
popupJsh
,
multi
:
tru
e
,
validateRules
:
[{
required
:
true
,
message
:
'
${title}不能为空
'
}]
},
{
title
:
'
名称
'
,
key
:
'
name
'
,
width
:
'
6%
'
,
type
:
FormTypes
.
input
,
readonly
:
true
},
...
...
jshERP-web/src/views/bill/modules/PurchaseInModal.vue
View file @
5f6ab656
...
...
@@ -175,7 +175,7 @@
{
title
:
'
仓库名称
'
,
key
:
'
depotId
'
,
width
:
'
7%
'
,
type
:
FormTypes
.
select
,
placeholder
:
'
请选择${title}
'
,
options
:
[],
allowSearch
:
true
,
validateRules
:
[{
required
:
true
,
message
:
'
${title}不能为空
'
}]
},
{
title
:
'
条码
'
,
key
:
'
barCode
'
,
width
:
'
8%
'
,
type
:
FormTypes
.
popupJsh
,
multi
:
fals
e
,
{
title
:
'
条码
'
,
key
:
'
barCode
'
,
width
:
'
8%
'
,
type
:
FormTypes
.
popupJsh
,
multi
:
tru
e
,
validateRules
:
[{
required
:
true
,
message
:
'
${title}不能为空
'
}]
},
{
title
:
'
名称
'
,
key
:
'
name
'
,
width
:
'
6%
'
,
type
:
FormTypes
.
input
,
readonly
:
true
},
...
...
jshERP-web/src/views/bill/modules/PurchaseOrderModal.vue
View file @
5f6ab656
...
...
@@ -115,7 +115,7 @@
{
title
:
'
仓库名称
'
,
key
:
'
depotId
'
,
width
:
'
7%
'
,
type
:
FormTypes
.
select
,
placeholder
:
'
请选择${title}
'
,
options
:
[],
allowSearch
:
true
,
validateRules
:
[{
required
:
true
,
message
:
'
${title}不能为空
'
}]
},
{
title
:
'
条码
'
,
key
:
'
barCode
'
,
width
:
'
8%
'
,
type
:
FormTypes
.
popupJsh
,
multi
:
fals
e
,
{
title
:
'
条码
'
,
key
:
'
barCode
'
,
width
:
'
8%
'
,
type
:
FormTypes
.
popupJsh
,
multi
:
tru
e
,
validateRules
:
[{
required
:
true
,
message
:
'
${title}不能为空
'
}]
},
{
title
:
'
名称
'
,
key
:
'
name
'
,
width
:
'
6%
'
,
type
:
FormTypes
.
input
,
readonly
:
true
},
...
...
jshERP-web/src/views/bill/modules/RetailBackModal.vue
View file @
5f6ab656
...
...
@@ -156,7 +156,7 @@
{
title
:
'
仓库名称
'
,
key
:
'
depotId
'
,
width
:
'
7%
'
,
type
:
FormTypes
.
select
,
placeholder
:
'
请选择${title}
'
,
options
:
[],
allowSearch
:
true
,
validateRules
:
[{
required
:
true
,
message
:
'
${title}不能为空
'
}]
},
{
title
:
'
条码
'
,
key
:
'
barCode
'
,
width
:
'
12%
'
,
type
:
FormTypes
.
popupJsh
,
multi
:
fals
e
,
{
title
:
'
条码
'
,
key
:
'
barCode
'
,
width
:
'
12%
'
,
type
:
FormTypes
.
popupJsh
,
multi
:
tru
e
,
validateRules
:
[{
required
:
true
,
message
:
'
${title}不能为空
'
}]
},
{
title
:
'
名称
'
,
key
:
'
name
'
,
width
:
'
8%
'
,
type
:
FormTypes
.
input
,
readonly
:
true
},
...
...
jshERP-web/src/views/bill/modules/RetailOutModal.vue
View file @
5f6ab656
...
...
@@ -156,7 +156,7 @@
{
title
:
'
仓库名称
'
,
key
:
'
depotId
'
,
width
:
'
7%
'
,
type
:
FormTypes
.
select
,
placeholder
:
'
请选择${title}
'
,
options
:
[],
allowSearch
:
true
,
validateRules
:
[{
required
:
true
,
message
:
'
${title}不能为空
'
}]
},
{
title
:
'
条码
'
,
key
:
'
barCode
'
,
width
:
'
12%
'
,
type
:
FormTypes
.
popupJsh
,
multi
:
fals
e
,
{
title
:
'
条码
'
,
key
:
'
barCode
'
,
width
:
'
12%
'
,
type
:
FormTypes
.
popupJsh
,
multi
:
tru
e
,
validateRules
:
[{
required
:
true
,
message
:
'
${title}不能为空
'
}]
},
{
title
:
'
名称
'
,
key
:
'
name
'
,
width
:
'
8%
'
,
type
:
FormTypes
.
input
,
readonly
:
true
},
...
...
jshERP-web/src/views/bill/modules/SaleBackModal.vue
View file @
5f6ab656
...
...
@@ -179,7 +179,7 @@
{
title
:
'
仓库名称
'
,
key
:
'
depotId
'
,
width
:
'
7%
'
,
type
:
FormTypes
.
select
,
placeholder
:
'
请选择${title}
'
,
options
:
[],
allowSearch
:
true
,
validateRules
:
[{
required
:
true
,
message
:
'
${title}不能为空
'
}]
},
{
title
:
'
条码
'
,
key
:
'
barCode
'
,
width
:
'
8%
'
,
type
:
FormTypes
.
popupJsh
,
multi
:
fals
e
,
{
title
:
'
条码
'
,
key
:
'
barCode
'
,
width
:
'
8%
'
,
type
:
FormTypes
.
popupJsh
,
multi
:
tru
e
,
validateRules
:
[{
required
:
true
,
message
:
'
${title}不能为空
'
}]
},
{
title
:
'
名称
'
,
key
:
'
name
'
,
width
:
'
6%
'
,
type
:
FormTypes
.
input
,
readonly
:
true
},
...
...
jshERP-web/src/views/bill/modules/SaleOrderModal.vue
View file @
5f6ab656
...
...
@@ -118,7 +118,7 @@
{
title
:
'
仓库名称
'
,
key
:
'
depotId
'
,
width
:
'
7%
'
,
type
:
FormTypes
.
select
,
placeholder
:
'
请选择${title}
'
,
options
:
[],
allowSearch
:
true
,
validateRules
:
[{
required
:
true
,
message
:
'
${title}不能为空
'
}]
},
{
title
:
'
条码
'
,
key
:
'
barCode
'
,
width
:
'
8%
'
,
type
:
FormTypes
.
popupJsh
,
multi
:
fals
e
,
{
title
:
'
条码
'
,
key
:
'
barCode
'
,
width
:
'
8%
'
,
type
:
FormTypes
.
popupJsh
,
multi
:
tru
e
,
validateRules
:
[{
required
:
true
,
message
:
'
${title}不能为空
'
}]
},
{
title
:
'
名称
'
,
key
:
'
name
'
,
width
:
'
6%
'
,
type
:
FormTypes
.
input
,
readonly
:
true
},
...
...
jshERP-web/src/views/bill/modules/SaleOutModal.vue
View file @
5f6ab656
...
...
@@ -179,7 +179,7 @@
{
title
:
'
仓库名称
'
,
key
:
'
depotId
'
,
width
:
'
7%
'
,
type
:
FormTypes
.
select
,
placeholder
:
'
请选择${title}
'
,
options
:
[],
allowSearch
:
true
,
validateRules
:
[{
required
:
true
,
message
:
'
${title}不能为空
'
}]
},
{
title
:
'
条码
'
,
key
:
'
barCode
'
,
width
:
'
8%
'
,
type
:
FormTypes
.
popupJsh
,
multi
:
fals
e
,
{
title
:
'
条码
'
,
key
:
'
barCode
'
,
width
:
'
8%
'
,
type
:
FormTypes
.
popupJsh
,
multi
:
tru
e
,
validateRules
:
[{
required
:
true
,
message
:
'
${title}不能为空
'
}]
},
{
title
:
'
名称
'
,
key
:
'
name
'
,
width
:
'
6%
'
,
type
:
FormTypes
.
input
,
readonly
:
true
},
...
...
jshERP-web/src/views/system/modules/SerialNumberBatchModal.vue
View file @
5f6ab656
...
...
@@ -124,7 +124,7 @@
}
getMaterialByBarCode
(
param
).
then
((
res
)
=>
{
if
(
res
&&
res
.
code
===
200
)
{
this
.
form
.
setFieldsValue
({
'
materialName
'
:
res
.
data
.
name
})
this
.
form
.
setFieldsValue
({
'
materialName
'
:
res
.
data
[
0
]
.
name
})
}
})
}
...
...
jshERP-web/src/views/system/modules/SerialNumberModal.vue
View file @
5f6ab656
...
...
@@ -144,7 +144,7 @@
}
getMaterialByBarCode
(
param
).
then
((
res
)
=>
{
if
(
res
&&
res
.
code
===
200
)
{
this
.
form
.
setFieldsValue
({
'
materialName
'
:
res
.
data
.
name
})
this
.
form
.
setFieldsValue
({
'
materialName
'
:
res
.
data
[
0
]
.
name
})
}
})
}
...
...
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