Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
S
SuperMan
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
1
Issues
1
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
罗超
SuperMan
Commits
81e45888
Commit
81e45888
authored
Jun 19, 2023
by
youjie
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
no message
parent
3f3bd968
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
34 additions
and
3 deletions
+34
-3
RestaurantSalesBoard.vue
src/components/Restaurant/RestaurantSalesBoard.vue
+34
-3
No files found.
src/components/Restaurant/RestaurantSalesBoard.vue
View file @
81e45888
...
@@ -204,7 +204,8 @@
...
@@ -204,7 +204,8 @@
<li>
<li>
<span>
<span>
<em>
{{
$t
(
'commonPickUp.Pick_resName'
)
}}
</em>
<em>
{{
$t
(
'commonPickUp.Pick_resName'
)
}}
</em>
<el-select
v-model=
"msg.DiningID"
:placeholder=
"$t('pub.pleaseSel')"
filterable
>
<el-select
v-model=
"msg.DiningIDList"
:placeholder=
"$t('pub.pleaseSel')"
multiple
collapse-tags
filterable
@
change=
"getMultipleChoice"
style=
"width: 300px;"
>
<el-option
:label=
"$t('pub.unlimitedSel')"
:value=
"defaultSelectValue"
></el-option>
<el-option
:label=
"$t('pub.unlimitedSel')"
:value=
"defaultSelectValue"
></el-option>
<el-option
v-for=
"item in DinnerList"
:key=
"item.ID"
:label=
"item.Name"
:value=
"item.ID"
></el-option>
<el-option
v-for=
"item in DinnerList"
:key=
"item.ID"
:label=
"item.Name"
:value=
"item.ID"
></el-option>
</el-select>
</el-select>
...
@@ -276,6 +277,8 @@
...
@@ -276,6 +277,8 @@
Year
:
0
,
Year
:
0
,
Month
:
0
,
Month
:
0
,
DiningID
:
0
,
DiningID
:
0
,
DiningIDList
:[],
DiningIDs
:
[],
QStatus
:
0
,
QStatus
:
0
,
loading
:
false
,
loading
:
false
,
uid
:
0
,
uid
:
0
,
...
@@ -297,6 +300,27 @@
...
@@ -297,6 +300,27 @@
};
};
},
},
methods
:
{
methods
:
{
// 多选餐厅
getMultipleChoice
(){
if
(
this
.
msg
.
DiningIDList
.
length
>
1
){
if
(
this
.
msg
.
DiningIDList
.
at
(
-
1
)
==
0
){
this
.
msg
.
DiningIDList
=
[
0
]
}
else
if
(
this
.
msg
.
DiningIDList
.
at
(
-
1
)
!=
0
){
this
.
msg
.
DiningIDList
.
forEach
((
x
,
index
)
=>
{
if
(
x
==
0
){
this
.
msg
.
DiningIDList
.
splice
(
index
,
1
)
}
})
}
this
.
msg
.
DiningID
=
0
this
.
msg
.
DiningIDs
=
this
.
msg
.
DiningIDList
.
join
(
','
)
}
if
(
this
.
msg
.
DiningIDList
.
length
==
1
){
this
.
msg
.
DiningID
=
this
.
msg
.
DiningIDList
[
0
]
this
.
msg
.
DiningIDs
=
''
}
},
stockColor
:
function
(
type
)
{
stockColor
:
function
(
type
)
{
if
(
type
===
1
)
{
if
(
type
===
1
)
{
return
'hasStock_1'
return
'hasStock_1'
...
@@ -405,14 +429,21 @@
...
@@ -405,14 +429,21 @@
},
},
//下载餐厅统计
//下载餐厅统计
DownLoadDinnerSalesBoard
()
{
DownLoadDinnerSalesBoard
()
{
if
(
this
.
msg
.
DiningID
<=
0
)
{
if
(
this
.
msg
.
DiningID
List
&&
this
.
msg
.
DiningIDList
.
length
==
0
)
{
this
.
Info
(
this
.
$t
(
'sm.qxzcanting'
));
this
.
Info
(
this
.
$t
(
'sm.qxzcanting'
));
return
;
return
;
}
}
let
url
if
(
this
.
msg
.
DiningID
>
0
){
url
=
'dinner_get_downloadDinnerSalesBoard'
}
else
{
url
=
'dinner_get_downloadDinnerSalesBoardNew'
}
this
.
msg
.
uid
=
this
.
getLocalStorage
().
EmployeeId
;
this
.
msg
.
uid
=
this
.
getLocalStorage
().
EmployeeId
;
this
.
msg
.
loading
=
true
;
this
.
msg
.
loading
=
true
;
let
fileName
=
this
.
$t
(
'ground.cantxiazai'
)
+
this
.
$commonUtils
.
getCurrentDate
()
+
".xls"
;
let
fileName
=
this
.
$t
(
'ground.cantxiazai'
)
+
this
.
$commonUtils
.
getCurrentDate
()
+
".xls"
;
this
.
GetLocalFile
(
"dinner_get_downloadDinnerSalesBoard"
,
this
.
msg
,
fileName
,
this
.
GetLocalFile
(
url
,
this
.
msg
,
fileName
,
res
=>
{
res
=>
{
this
.
msg
.
loading
=
false
;
this
.
msg
.
loading
=
false
;
});
});
...
...
Write
Preview
Markdown
is supported
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