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
3b3805ee
Commit
3b3805ee
authored
Nov 26, 2021
by
季圣华
Browse files
给进销存统计的仓库选择设置为可以多选
parent
33149fb4
Changes
1
Hide whitespace changes
Inline
Side-by-side
jshERP-web/src/views/report/InOutStockReport.vue
View file @
3b3805ee
...
@@ -10,10 +10,11 @@
...
@@ -10,10 +10,11 @@
<a-col
:md=
"4"
:sm=
"24"
>
<a-col
:md=
"4"
:sm=
"24"
>
<a-form-item
label=
"仓库"
:labelCol=
"labelCol"
:wrapperCol=
"wrapperCol"
>
<a-form-item
label=
"仓库"
:labelCol=
"labelCol"
:wrapperCol=
"wrapperCol"
>
<a-select
<a-select
mode=
"multiple"
:maxTagCount=
"1"
optionFilterProp=
"children"
optionFilterProp=
"children"
showSearch
allow-clear
style=
"width: 100%"
showSearch
style=
"width: 100%"
placeholder=
"请选择仓库"
placeholder=
"请选择仓库"
v-model=
"
queryParam.depotI
d"
>
v-model=
"
depotSelecte
d"
>
<a-select-option
v-for=
"(depot,index) in depotList"
:value=
"depot.id"
>
<a-select-option
v-for=
"(depot,index) in depotList"
:value=
"depot.id"
>
{{
depot
.
depotName
}}
{{
depot
.
depotName
}}
</a-select-option>
</a-select-option>
...
@@ -118,7 +119,7 @@
...
@@ -118,7 +119,7 @@
pageSize
:
11
,
pageSize
:
11
,
pageSizeOptions
:
[
'
11
'
,
'
21
'
,
'
31
'
,
'
101
'
,
'
201
'
]
pageSizeOptions
:
[
'
11
'
,
'
21
'
,
'
31
'
,
'
101
'
,
'
201
'
]
},
},
tabKey
:
"
1
"
,
depotSelected
:[]
,
depotList
:
[],
depotList
:
[],
totalCountMoneyStr
:
''
,
totalCountMoneyStr
:
''
,
// 表头
// 表头
...
@@ -157,6 +158,9 @@
...
@@ -157,6 +158,9 @@
moment
,
moment
,
getQueryParams
()
{
getQueryParams
()
{
let
param
=
Object
.
assign
({},
this
.
queryParam
,
this
.
isorter
);
let
param
=
Object
.
assign
({},
this
.
queryParam
,
this
.
isorter
);
if
(
this
.
depotSelected
&&
this
.
depotSelected
.
length
>
0
)
{
param
.
depotIds
=
this
.
depotSelected
.
join
()
}
param
.
monthTime
=
this
.
queryParam
.
monthTime
;
param
.
monthTime
=
this
.
queryParam
.
monthTime
;
param
.
field
=
this
.
getQueryField
();
param
.
field
=
this
.
getQueryField
();
param
.
currentPage
=
this
.
ipagination
.
current
;
param
.
currentPage
=
this
.
ipagination
.
current
;
...
@@ -173,7 +177,12 @@
...
@@ -173,7 +177,12 @@
})
})
},
},
getTotalCountMoney
(){
getTotalCountMoney
(){
getAction
(
this
.
url
.
totalCountMoney
,
this
.
queryParam
).
then
((
res
)
=>
{
let
param
=
Object
.
assign
({},
this
.
queryParam
,
this
.
isorter
);
if
(
this
.
depotSelected
&&
this
.
depotSelected
.
length
>
0
)
{
param
.
depotIds
=
this
.
depotSelected
.
join
()
}
param
.
monthTime
=
this
.
queryParam
.
monthTime
;
getAction
(
this
.
url
.
totalCountMoney
,
param
).
then
((
res
)
=>
{
if
(
res
&&
res
.
code
===
200
)
{
if
(
res
&&
res
.
code
===
200
)
{
let
count
=
res
.
data
.
totalCount
.
toString
();
let
count
=
res
.
data
.
totalCount
.
toString
();
if
(
count
.
lastIndexOf
(
'
.
'
)
>
-
1
)
{
if
(
count
.
lastIndexOf
(
'
.
'
)
>
-
1
)
{
...
...
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