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
61d6ec7e
Commit
61d6ec7e
authored
Jun 27, 2024
by
liudong1993
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1
parent
f97fd322
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
77 additions
and
7 deletions
+77
-7
leaderPerformance.vue
src/components/LeaderManagement/leaderPerformance.vue
+75
-6
ShoppingStore.vue
src/components/ShoppingStore/ShoppingStore.vue
+2
-1
No files found.
src/components/LeaderManagement/leaderPerformance.vue
View file @
61d6ec7e
...
...
@@ -327,7 +327,7 @@
<div
class=
"query-box"
>
<ul>
<li>
<span
v-if=
"msg.Type != 14"
>
<span
v-if=
"msg.Type != 14
&& msg.Type !=15
"
>
<em>
{{
$t
(
'system.query_workType'
)
}}
</em>
<el-select
v-model=
"msg.QLeaderType"
:placeholder=
"$t('system.ph_choice')"
>
<el-option
:label=
"$t('system.ph_buxian')"
:value=
'0'
></el-option>
...
...
@@ -343,7 +343,7 @@
:placeholder=
"$t('ground.xuanzenian')"
>
</el-date-picker>
</span>
<span
v-else-if=
"msg.Type==2 || msg.Type == 14"
>
<span
v-else-if=
"msg.Type==2 || msg.Type == 14
|| msg.Type ==15
"
>
<em>
{{
$t
(
"ground.yuefen"
)
}}
</em>
<el-date-picker
v-model=
"msg.MonthStr2"
type=
"month"
value-format=
"yyyy-MM"
:placeholder=
"$t('ground.xuanzeyue')"
>
...
...
@@ -372,6 +372,7 @@
</li>
<li>
<input
type=
"button"
class=
"hollowFixedBtn"
:value=
"$t('pub.searchBtn')"
@
click=
"getStatis()"
/>
<input
type=
"button"
v-if=
"msg.Type==14 || msg.Type==15"
class=
"normalBtn"
value=
"导出"
@
click=
"exportExcel"
>
</li>
</ul>
</div>
...
...
@@ -383,7 +384,7 @@
</el-tab-pane>
</el-tabs>
<div
class=
"ChampionsLeague clearfix"
>
<table
v-if=
"msg.Type != 14"
class=
"singeRowTable"
style=
"margin-top:5px;"
>
<table
v-if=
"msg.Type != 14
&& msg.Type !=15
"
class=
"singeRowTable"
style=
"margin-top:5px;"
>
<tr>
<th
width=
"100"
>
{{
$t
(
'hotel.hotel_SerialNumber'
)
}}
</th>
<th
width=
"100"
>
{{
$t
(
'system.query_name'
)
}}
</th>
...
...
@@ -419,7 +420,7 @@
</td>
</tr>
</table>
<table
v-else
class=
"singeRowTable"
style=
"margin-top:5px;"
>
<table
v-else
-if=
"msg.Type ==14"
class=
"singeRowTable"
style=
"margin-top:5px;"
>
<tr>
<th
width=
"100"
>
{{$t('hotel.hotel_SerialNumber')}}
</th>
<th
width=
"100"
>
地接团号
</th>
...
...
@@ -457,6 +458,42 @@
<td><span>
{{item.GuideName}}
</span></td>
</tr>
</table>
<table
v-else-if=
"msg.Type ==15"
class=
"singeRowTable"
style=
"margin-top:5px;"
>
<tr>
<th
width=
"100"
>
{{$t('hotel.hotel_SerialNumber')}}
</th>
<th
width=
"100"
>
导游
</th>
<th
width=
"100"
>
团数
</th>
<th
width=
"100"
>
总购物金额
</th>
<th
width=
"100"
>
总返佣金额
</th>
<th
width=
"100"
>
人数
</th>
<th
width=
"100"
>
人均
</th>
</tr>
<tr
v-for=
"(item,index) in DataList"
:key=
"index"
>
<td>
<div
style=
"width:45px;text-align:left;margin:auto;"
>
{{index+1}}
<
template
v-if=
"index+1==1"
>
<img
style=
"width:25px;"
src=
"../../assets/img/chamPion.png"
alt=
""
/>
</
template
>
<
template
v-if=
"index+1==2"
>
<img
style=
"width:25px;"
src=
"../../assets/img/runnerUp.png"
alt=
""
/>
</
template
>
<
template
v-if=
"index+1==3"
>
<img
style=
"width:25px;"
src=
"../../assets/img/bronze.png"
alt=
""
/>
</
template
>
<
template
v-else
>
<div
style=
"width:25px;"
></div>
</
template
>
</div>
</td>
<td><span>
{{item.GuideName}}
</span></td>
<td><span>
{{item.TravelNum}}
</span></td>
<td><span>
{{item.TotalMoney}}
</span></td>
<td><span>
{{item.BackTotalMoney}}
</span></td>
<td><span>
{{item.EnterNum}}
</span></td>
<td><span>
{{item.AvgCommission}}
</span></td>
</tr>
</table>
</div>
</div>
...
...
@@ -480,6 +517,7 @@
Month
:
0
,
ShoppingID
:
0
,
//购物店编号
},
userId
:
0
,
//工作类型
workTypeList
:
[],
DataList
:
[],
...
...
@@ -555,6 +593,11 @@
Type
:
"14"
,
titleName
:
"团队回佣排名"
,
},
{
Name
:
"人均回佣排名"
,
Type
:
"15"
,
titleName
:
"人均回佣排名"
,
},
],
};
},
...
...
@@ -576,10 +619,10 @@
QMonthStr
:
this
.
msg
.
MonthStr
,
ShoppingID
:
this
.
msg
.
ShoppingID
};
if
(
this
.
msg
.
Type
==
2
||
this
.
msg
.
Type
==
14
)
{
if
(
this
.
msg
.
Type
==
2
||
this
.
msg
.
Type
==
14
||
this
.
msg
.
Type
==
15
)
{
msg
.
QMonthStr
=
this
.
msg
.
MonthStr2
;
}
if
(
this
.
msg
.
Type
!=
2
&&
this
.
msg
.
Type
!=
3
&&
this
.
msg
.
Type
!=
6
&&
this
.
msg
.
Type
!=
14
)
{
if
(
this
.
msg
.
Type
!=
2
&&
this
.
msg
.
Type
!=
3
&&
this
.
msg
.
Type
!=
6
&&
this
.
msg
.
Type
!=
14
&&
this
.
msg
.
Type
!=
15
)
{
if
(
this
.
msg
.
Month
!=
-
1
)
{
msg
.
QMonthStr
=
this
.
msg
.
Year
+
"-"
+
this
.
msg
.
Month
;
}
else
{
...
...
@@ -627,6 +670,30 @@
this
.
msg
.
Type
=
tab
.
name
;
this
.
getStatis
();
},
exportExcel
()
{
//导出
var
fileName
=
"团队回佣排名.xls"
;
if
(
this
.
msg
.
Type
==
15
){
fileName
=
"人均回佣排名.xls"
;
}
let
msg
=
{
Type
:
this
.
msg
.
Type
,
QLeaderType
:
this
.
msg
.
QLeaderType
,
QMonthStr
:
this
.
msg
.
MonthStr
,
ShoppingID
:
this
.
msg
.
ShoppingID
,
EmployeeId
:
this
.
userId
};
if
(
this
.
msg
.
Type
==
2
||
this
.
msg
.
Type
==
14
||
this
.
msg
.
Type
==
15
)
{
msg
.
QMonthStr
=
this
.
msg
.
MonthStr2
;
}
if
(
this
.
msg
.
Type
!=
2
&&
this
.
msg
.
Type
!=
3
&&
this
.
msg
.
Type
!=
6
&&
this
.
msg
.
Type
!=
14
&&
this
.
msg
.
Type
!=
15
)
{
if
(
this
.
msg
.
Month
!=
-
1
)
{
msg
.
QMonthStr
=
this
.
msg
.
Year
+
"-"
+
this
.
msg
.
Month
;
}
else
{
msg
.
QMonthStr
=
this
.
msg
.
Year
;
}
}
this
.
GetLocalFile
(
"Leader_get_GetLeaderCommissionRankToExcel"
,
msg
,
msg
.
QMonthStr
+
fileName
);
},
},
mounted
()
{
var
Year
=
new
Date
().
getFullYear
();
...
...
@@ -636,6 +703,8 @@
for
(
let
i
=
0
;
i
<=
count
;
i
++
)
{
this
.
yearList
.
push
(
Year
-
i
);
}
let
userInfo
=
this
.
getLocalStorage
();
this
.
userId
=
userInfo
.
EmployeeId
;
this
.
getWorkType
();
this
.
GetShopList
();
this
.
getStatis
();
...
...
src/components/ShoppingStore/ShoppingStore.vue
View file @
61d6ec7e
...
...
@@ -773,8 +773,9 @@
<div
slot=
"tip"
class=
"el-upload__tip"
>
{{
$t
(
"ground.znscexcel"
)
}}
</div>
</el-upload>
<div>
--------------------------------------------------------------------------------------------------------------------
</div>
<div
style=
"text-align:center; margin-bottom:5px;color:tomato;"
>
老板
购物店模板数据导入
</div>
<div
style=
"text-align:center; margin-bottom:5px;color:tomato;"
>
新版团队模式
购物店模板数据导入
</div>
<el-upload
drag
class=
"upload-demo"
:action=
"importFileUrl3"
:on-success=
"handleAvatarSuccess"
:before-upload=
"beforeAvatarUpload"
>
<i
class=
"el-icon-upload"
></i>
...
...
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