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
03fc63e8
Commit
03fc63e8
authored
Feb 14, 2025
by
liudong1993
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' of
http://gitlab.oytour.com/luochao/superman
parents
3f725e1c
48e15149
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
454 additions
and
493 deletions
+454
-493
TravelControlList.vue
...components/TravelManager/TravelList/TravelControlList.vue
+1
-1
TravelControlListSale.vue
...onents/TravelManager/TravelList/TravelControlListSale.vue
+1
-1
oneDayTrip.vue
src/components/TravelManager/TravelList/oneDayTrip.vue
+1
-1
dataCount.vue
src/components/rank/dataCount.vue
+76
-73
salesVolumeRank.vue
src/components/rank/salesVolumeRank.vue
+375
-417
No files found.
src/components/TravelManager/TravelList/TravelControlList.vue
View file @
03fc63e8
...
@@ -2186,7 +2186,7 @@
...
@@ -2186,7 +2186,7 @@
this
.
Confirm
(
tipMsg
,
function
()
{
this
.
Confirm
(
tipMsg
,
function
()
{
if
(
res
.
data
.
data
&&
res
.
data
.
data
>
0
)
{
if
(
res
.
data
.
data
&&
res
.
data
.
data
>
0
)
{
let
query
=
{
let
query
=
{
offerid
:
res
.
data
.
data
,
BatchNum
:
res
.
data
.
data
,
blank
:
"y"
,
blank
:
"y"
,
tab
:
"报价单"
,
tab
:
"报价单"
,
};
};
...
...
src/components/TravelManager/TravelList/TravelControlListSale.vue
View file @
03fc63e8
...
@@ -1579,7 +1579,7 @@
...
@@ -1579,7 +1579,7 @@
this
.
Confirm
(
tipMsg
,
function
()
{
this
.
Confirm
(
tipMsg
,
function
()
{
if
(
res
.
data
.
data
&&
res
.
data
.
data
>
0
)
{
if
(
res
.
data
.
data
&&
res
.
data
.
data
>
0
)
{
let
query
=
{
let
query
=
{
offerid
:
res
.
data
.
data
,
BatchNum
:
res
.
data
.
data
,
blank
:
'y'
,
blank
:
'y'
,
tab
:
'报价单'
tab
:
'报价单'
}
}
...
...
src/components/TravelManager/TravelList/oneDayTrip.vue
View file @
03fc63e8
...
@@ -1310,7 +1310,7 @@
...
@@ -1310,7 +1310,7 @@
this
.
Confirm
(
tipMsg
,
function
()
{
this
.
Confirm
(
tipMsg
,
function
()
{
if
(
res
.
data
.
data
&&
res
.
data
.
data
>
0
)
{
if
(
res
.
data
.
data
&&
res
.
data
.
data
>
0
)
{
let
query
=
{
let
query
=
{
offerid
:
res
.
data
.
data
,
BatchNum
:
res
.
data
.
data
,
blank
:
'y'
,
blank
:
'y'
,
tab
:
'报价单'
tab
:
'报价单'
}
}
...
...
src/components/rank/dataCount.vue
View file @
03fc63e8
...
@@ -895,79 +895,82 @@ export default {
...
@@ -895,79 +895,82 @@ export default {
goUrl
(
type
)
{
goUrl
(
type
)
{
let
Time
=
[
this
.
getBeforeDate
(
0
,
new
Date
().
Format
(
"yyyy-MM-dd"
)),
this
.
getBeforeDate
(
0
,
new
Date
().
Format
(
"yyyy-MM-dd"
))]
let
Time
=
[
this
.
getBeforeDate
(
0
,
new
Date
().
Format
(
"yyyy-MM-dd"
)),
this
.
getBeforeDate
(
0
,
new
Date
().
Format
(
"yyyy-MM-dd"
))]
let
query
let
query
if
(
type
<
5
){
// if(type
<
5
){
if
(
type
==
1
){
// if(type==1){
query
=
{
// query = {
blank
:
"y"
,
// blank: "y",
}
// }
}
else
if
(
type
==
2
){
// }else if(type==2){
query
=
{
// query = {
EnterTime
:
Time
,
// EnterTime: Time,
blank
:
"y"
,
// blank: "y",
}
// }
}
else
if
(
type
==
3
){
// }else if(type==3){
query
=
{
// query = {
activation
:
1
,
// activation: 1,
blank
:
"y"
,
// blank: "y",
// }
}
// }else if(type==4){
}
else
if
(
type
==
4
){
// query = {
query
=
{
// activationTime: Time,
activationTime
:
Time
,
// activation: 1,
activation
:
1
,
// blank: "y",
blank
:
"y"
,
// }
}
// }
}
// this.OpenNewPage('/customerTransfer',query)
this
.
$router
.
push
({
// }
name
:
'customerTransfer'
,
// if(type>4&&type
<
9
){
query
// if(type==5){
});
// query = {
}
// CStartDate: this.parameters.dateRange[0],
if
(
type
>
4
&&
type
<
9
){
// CEndDate: this.parameters.dateRange[1],
if
(
type
==
5
){
// BranchId: this.parameters.branchId,
query
=
{
// RB_Department_Id:this.parameters.RB_Department_Id,
CStartDate
:
this
.
parameters
.
dateRange
[
0
],
// EmployeeId:this.parameters.empId,
CEndDate
:
this
.
parameters
.
dateRange
[
1
],
// isNormal: 1,
BranchId
:
this
.
parameters
.
branchId
,
// blank: "y",
RB_Department_Id
:
this
.
parameters
.
RB_Department_Id
,
// }
EmployeeId
:
this
.
parameters
.
empId
,
// }else if(type==6){
isNormal
:
1
,
// query = {
blank
:
"y"
,
// CStartDate: this.parameters.dateRange[0],
}
// CEndDate: this.parameters.dateRange[1],
}
else
if
(
type
==
6
){
// RB_Department_Id:this.parameters.RB_Department_Id,
query
=
{
// EmployeeId:this.parameters.empId,
CStartDate
:
this
.
parameters
.
dateRange
[
0
],
// isNormal: 1,
CEndDate
:
this
.
parameters
.
dateRange
[
1
],
// blank: "y",
RB_Department_Id
:
this
.
parameters
.
RB_Department_Id
,
// }
EmployeeId
:
this
.
parameters
.
empId
,
// }else if(type==7){
isNormal
:
1
,
// query = {
blank
:
"y"
,
// CStartDate: this.parameters.dateRange[0],
}
// CEndDate: this.parameters.dateRange[1],
}
else
if
(
type
==
7
){
// RB_Department_Id:this.parameters.RB_Department_Id,
query
=
{
// EmployeeId:this.parameters.empId,
CStartDate
:
this
.
parameters
.
dateRange
[
0
],
// isNormal: 1,
CEndDate
:
this
.
parameters
.
dateRange
[
1
],
// blank: "y",
RB_Department_Id
:
this
.
parameters
.
RB_Department_Id
,
// }
EmployeeId
:
this
.
parameters
.
empId
,
// }else if(type==8){
isNormal
:
1
,
// query = {
blank
:
"y"
,
// CStartDate: this.parameters.dateRange[0],
}
// CEndDate: this.parameters.dateRange[1],
}
else
if
(
type
==
8
){
// RB_Department_Id:this.parameters.RB_Department_Id,
query
=
{
// EmployeeId:this.parameters.empId,
CStartDate
:
this
.
parameters
.
dateRange
[
0
],
// discount: 1,
CEndDate
:
this
.
parameters
.
dateRange
[
1
],
// isNormal: 1,
RB_Department_Id
:
this
.
parameters
.
RB_Department_Id
,
// blank: "y",
EmployeeId
:
this
.
parameters
.
empId
,
// }
discount
:
1
,
// }
isNormal
:
1
,
// this.OpenNewPage('/salesVolumeRank',query)
blank
:
"y"
,
// }
}
}
query
=
{
this
.
$router
.
push
({
CStartDate
:
this
.
parameters
.
dateRange
[
0
],
name
:
'enrollTotal'
,
CEndDate
:
this
.
parameters
.
dateRange
[
1
],
query
BranchId
:
this
.
parameters
.
branchId
,
});
RB_Department_Id
:
this
.
parameters
.
RB_Department_Id
,
}
EmployeeId
:
this
.
parameters
.
empId
,
blank
:
"y"
,
}
this
.
OpenNewPage
(
'/salesVolumeRank'
,
query
)
},
},
changeDepart
(
node
,
instanceId
){
changeDepart
(
node
,
instanceId
){
this
.
parameters
.
RB_Department_Id
=
node
.
DepartmentId
;
this
.
parameters
.
RB_Department_Id
=
node
.
DepartmentId
;
...
...
src/components/rank/salesVolumeRank.vue
View file @
03fc63e8
...
@@ -3,102 +3,50 @@
...
@@ -3,102 +3,50 @@
<el-tabs
v-model=
"activeName"
@
tab-click=
"handleClick"
>
<el-tabs
v-model=
"activeName"
@
tab-click=
"handleClick"
>
<el-tab-pane
:label=
"$t('sm.Personalrank')"
name=
"first"
></el-tab-pane>
<el-tab-pane
:label=
"$t('sm.Personalrank')"
name=
"first"
></el-tab-pane>
<el-tab-pane
:label=
"$t('sm.derprank')"
name=
"second"
></el-tab-pane>
<el-tab-pane
:label=
"$t('sm.derprank')"
name=
"second"
></el-tab-pane>
<!--
<el-tab-pane
:label=
"$t('sm.companyrank')"
name=
"third"
></el-tab-pane>
v-if="authority.indexOf('Sales_Volume_Rank_Show') != -1" -->
<el-tab-pane
:label=
"$t('sm.companyrank')"
name=
"third"
v-if=
"S_CheckAllOrder"
></el-tab-pane>
<el-tab-pane
:label=
"$t('sm.salerank')"
name=
"four"
></el-tab-pane>
<el-tab-pane
:label=
"$t('sm.salerank')"
name=
"four"
></el-tab-pane>
</el-tabs>
</el-tabs>
<div
class=
"query-box"
>
<div
class=
"query-box"
>
<el-form
class=
"_info_box clearfix"
label-width=
"150px"
>
<el-form
class=
"_info_box clearfix"
label-width=
"150px"
>
<el-row
style=
"padding: 15px 0px 0 0"
>
<el-row
style=
"padding: 15px 0px 0 0"
>
<el-col
:span=
"4"
v-show=
"activeName != 'four'"
>
<el-col
:span=
"4"
v-show=
"activeName != 'four'
&&(userInfo.RB_Branch_id==0||userInfo.RB_Branch_id==49)
"
>
<el-form-item
:label=
"$t('system.table_company')"
>
<el-form-item
:label=
"$t('system.table_company')"
>
<el-select
<el-select
filterable
v-model=
"msg.RB_Branch_Id"
@
change=
"getDepartment"
class
>
filterable
<el-option
:value=
"-1"
:label=
"$t('pub.unlimitedSel')"
></el-option>
v-model=
"msg.RB_Branch_Id"
<el-option
v-for=
"item in CompanyList"
:label=
"item.BName"
:value=
"item.Id"
:key=
"item.Id"
></el-option>
@
change=
"getDepartment"
class
>
<el-option
:value=
"-1"
:label=
"$t('pub.unlimitedSel')"
></el-option>
<el-option
v-for=
"item in CompanyList"
:label=
"item.BName"
:value=
"item.Id"
:key=
"item.Id"
></el-option>
</el-select>
</el-select>
</el-form-item>
</el-form-item>
</el-col>
</el-col>
<el-col
<el-col
:span=
"4"
v-show=
"activeName != 'third' && activeName != 'four'"
>
:span=
"4"
v-show=
"activeName != 'third' && activeName != 'four'"
>
<el-form-item
:label=
"$t('admin.admin_Department')"
>
<el-form-item
:label=
"$t('admin.admin_Department')"
>
<el-select
<el-select
filterable
v-model=
"msg.RB_Department_Id"
@
change=
"getEmployee"
class
>
filterable
<el-option
:value=
"0"
:label=
"$t('pub.unlimitedSel')"
></el-option>
v-model=
"msg.RB_Department_Id"
<el-option
v-for=
"item in DepartmentList"
:label=
"item.DepartmentName"
:value=
"item.DepartmentID"
@
change=
"getEmployee"
:key=
"item.DepartmentID"
></el-option>
class
>
<el-option
:value=
"0"
:label=
"$t('pub.unlimitedSel')"
></el-option>
<el-option
v-for=
"item in DepartmentList"
:label=
"item.DepartmentName"
:value=
"item.DepartmentID"
:key=
"item.DepartmentID"
></el-option>
</el-select>
</el-select>
</el-form-item>
</el-form-item>
</el-col>
</el-col>
<el-col
:span=
"4"
v-show=
"activeName == 'first'"
>
<el-col
:span=
"4"
v-show=
"activeName == 'first'"
>
<el-form-item
:label=
"$t('salesModule.Personnel')"
>
<el-form-item
:label=
"$t('salesModule.Personnel')"
>
<el-select
filterable
v-model=
"msg.EnterID"
class
>
<el-select
filterable
v-model=
"msg.EnterID"
class
>
<el-option
<el-option
:value=
"0"
:label=
"$t('pub.unlimitedSel')"
></el-option>
:value=
"0"
<el-option
v-for=
"item in EmployeeList"
:label=
"item.EmName"
:value=
"item.EmployeeId"
:label=
"$t('pub.unlimitedSel')"
:key=
"item.EmployeeId"
></el-option>
></el-option>
<el-option
v-for=
"item in EmployeeList"
:label=
"item.EmName"
:value=
"item.EmployeeId"
:key=
"item.EmployeeId"
></el-option>
</el-select>
</el-select>
</el-form-item>
</el-form-item>
</el-col>
</el-col>
<el-col
:span=
"6"
>
<el-col
:span=
"6"
>
<el-form-item
:label=
"$t('sm.chutuandate')"
>
<el-form-item
:label=
"$t('fnc.bmriqi')"
>
<el-date-picker
<el-date-picker
v-model=
"msg.qStartDates"
type=
"daterange"
range-separator=
"-"
v-model=
"msg.tStartDates"
:start-placeholder=
"$t('hotel.hotel_StartDate')"
:end-placeholder=
"$t('hotel.hotel_EndDate')"
type=
"daterange"
value-format=
"yyyy-MM-dd"
></el-date-picker>
range-separator=
"-"
:start-placeholder=
"$t('hotel.hotel_StartDate')"
:end-placeholder=
"$t('hotel.hotel_EndDate')"
value-format=
"yyyy-MM-dd"
:picker-options=
"pickerOptions"
></el-date-picker>
</el-form-item>
</el-form-item>
</el-col>
</el-col>
<el-col
:span=
"6"
>
<el-col
:span=
"6"
>
<el-form-item
:label=
"$t('fnc.bmriqi')"
>
<el-form-item
:label=
"$t('sm.chutuandate')"
>
<el-date-picker
<el-date-picker
v-model=
"msg.tStartDates"
type=
"daterange"
range-separator=
"-"
v-model=
"msg.qStartDates"
:start-placeholder=
"$t('hotel.hotel_StartDate')"
:end-placeholder=
"$t('hotel.hotel_EndDate')"
type=
"daterange"
value-format=
"yyyy-MM-dd"
:picker-options=
"pickerOptions"
></el-date-picker>
range-separator=
"-"
:start-placeholder=
"$t('hotel.hotel_StartDate')"
:end-placeholder=
"$t('hotel.hotel_EndDate')"
value-format=
"yyyy-MM-dd"
></el-date-picker>
</el-form-item>
</el-form-item>
</el-col>
</el-col>
</el-row>
</el-row>
...
@@ -111,370 +59,380 @@
...
@@ -111,370 +59,380 @@
</li>
</li>
</ul>
</ul>
</div>
</div>
<el-table
<el-table
v-if=
"isReady"
ref=
"singleTable"
:data=
"tableData"
style=
"width: 100%"
v-loading=
"loading"
>
v-if=
"isReady"
<el-table-column
type=
"index"
:label=
"$t('active.ad_xuhao')"
:width=
"getLanguage()=='en-US'?'120':'50'"
>
ref=
"singleTable"
</el-table-column>
:data=
"tableData"
<el-table-column
property=
"name"
:label=
"$t('system.query_airName')"
>
style=
"width: 100%"
>
</el-table-column>
<el-table-column
<el-table-column
property=
"SumPreferPrice"
:label=
"$t('objFill.xiaosoue')"
width=
""
sortable
>
type=
"index"
<template
slot-scope=
"scope"
>
:label=
"$t('active.ad_xuhao')"
<div
class=
"clickText"
@
click=
"goUrl('salesVolumeRankEntryForm',scope.row)"
>
{{
scope
.
row
.
SumPreferPrice
}}
</div>
:width=
"getLanguage()=='en-US'?'120':'50'"
</
template
>
>
</el-table-column>
</el-table-column>
<el-table-column
property=
"income"
:label=
"$t('fnc.skjine')"
width=
""
sortable
>
<el-table-column
<
template
slot-scope=
"scope"
>
property=
"name"
<div
class=
"clickText"
@
click=
"goUrl('salesVolumeRankEntryForm',scope.row)"
>
{{
scope
.
row
.
income
}}
</div>
:label=
"$t('system.query_airName')"
>
</
template
>
</el-table-column>
</el-table-column>
<el-table-column
<el-table-column
property=
"notInCome"
:label=
"$t('fnc.wsjine')"
width=
""
sortable
>
property=
"SumPreferPrice"
<
template
slot-scope=
"scope"
>
:label=
"$t('objFill.xiaosoue')"
<div
class=
"clickText"
@
click=
"goUrl('salesVolumeRankEntryForm',scope.row)"
>
{{
scope
.
row
.
notInCome
}}
</div>
width=
""
sortable
>
</
template
>
<template
slot-scope=
"scope"
>
</el-table-column>
<div
class=
"clickText"
@
click=
"goUrl('salesVolumeRankEntryForm',scope.row)"
>
{{
scope
.
row
.
SumPreferPrice
}}
</div>
<el-table-column
property=
"peopleCount"
:label=
"$t('objFill.v101.SalesModule.zhengchangsks')"
width=
""
sortable
>
</
template
>
</el-table-column>
</el-table-column>
<el-table-column
property=
"CalcheCount"
:label=
"$t('objFill.v101.SalesModule.quxiaosks')"
width=
""
sortable
>
<el-table-column
</el-table-column>
property=
"income"
<el-table-column
property=
"totalGuestNum"
:label=
"$t('objFill.v101.SalesModule.danxiansks')"
width=
""
>
:label=
"$t('fnc.skjine')"
</el-table-column>
width=
""
sortable
>
<el-table-column
property=
"avgPrice"
:label=
"$t('objFill.v101.SalesModule.kedanjia')"
width=
""
sortable
>
<
template
slot-scope=
"scope"
>
</el-table-column>
<div
class=
"clickText"
@
click=
"goUrl('salesVolumeRankEntryForm',scope.row)"
>
{{
scope
.
row
.
income
}}
</div>
<el-table-column
property=
"XiaoBaoTuanCount"
:label=
"$t('objFill.v101.SalesModule.xiaobaotts')"
width=
""
>
</
template
>
</el-table-column>
</el-table-column>
<el-table-column
property=
"zanBi"
:label=
"$t('objFill.v101.SalesModule.xiaosouezb')"
width=
""
>
<el-table-column
</el-table-column>
property=
"notInCome"
<el-table-column
property=
"CustomerCount"
label=
"客户总数"
width=
""
>
:label=
"$t('fnc.wsjine')"
</el-table-column>
width=
""
sortable
>
<el-table-column
property=
"TodayAddCustomer"
label=
"今日新增"
width=
""
>
<
template
slot-scope=
"scope"
>
</el-table-column>
<div
class=
"clickText"
@
click=
"goUrl('salesVolumeRankEntryForm',scope.row)"
>
{{
scope
.
row
.
notInCome
}}
</div>
<el-table-column
property=
"MiniAppCount"
label=
"小程序激活数"
width=
""
>
</
template
>
</el-table-column>
</el-table-column>
<el-table-column
property=
"MiniAppAdd"
label=
"今日激活数"
width=
""
>
<el-table-column
</el-table-column>
property=
"peopleCount"
<el-table-column
property=
"OrderCount"
label=
"团队订单数"
width=
""
>
:label=
"$t('objFill.v101.SalesModule.zhengchangsks')"
</el-table-column>
width=
""
sortable
>
<el-table-column
property=
"CouponCount"
label=
"优惠卷订单数"
width=
""
>
</el-table-column>
</el-table-column>
<el-table-column
<el-table-column
property=
"LXYCount"
label=
"小程序订单数"
width=
""
>
property=
"CalcheCount"
</el-table-column>
:label=
"$t('objFill.v101.SalesModule.quxiaosks')"
</el-table>
width=
""
sortable
>
</el-table-column>
<el-table-column
property=
"totalGuestNum"
:label=
"$t('objFill.v101.SalesModule.danxiansks')"
width=
""
>
</el-table-column>
<el-table-column
property=
"avgPrice"
:label=
"$t('objFill.v101.SalesModule.kedanjia')"
width=
""
sortable
>
</el-table-column>
<el-table-column
property=
"XiaoBaoTuanCount"
:label=
"$t('objFill.v101.SalesModule.xiaobaotts')"
width=
""
>
</el-table-column>
<el-table-column
property=
"zanBi"
:label=
"$t('objFill.v101.SalesModule.xiaosouezb')"
width=
""
>
</el-table-column>
</el-table>
</div>
</div>
</template>
</template>
<
script
>
<
script
>
import
Vue
from
"vue"
;
import
Vue
from
"vue"
;
import
moment
from
'moment'
import
moment
from
'moment'
export
default
{
export
default
{
data
()
{
data
()
{
return
{
return
{
S_CheckAllOrder
:
false
,
S_CheckAllOrder
:
false
,
pickerOptions
:
{
pickerOptions
:
{
disabledDate
(
time
)
{
disabledDate
(
time
)
{
return
time
<
new
Date
(
"2018-12-31"
);
return
time
<
new
Date
(
"2018-12-31"
);
},
},
},
},
activeName
:
"first"
,
activeName
:
"first"
,
columns
:
[],
columns
:
[],
pageSize
:
100000
,
pageSize
:
100000
,
pageIndex
:
1
,
pageIndex
:
1
,
total
:
0
,
total
:
0
,
tableData
:
[],
tableData
:
[],
isReady
:
false
,
isReady
:
false
,
multipleSort
:
false
,
multipleSort
:
false
,
loading
:
true
,
loading
:
true
,
authority
:
[],
authority
:
[],
msg
:
{
msg
:
{
RB_Branch_Id
:
-
1
,
RB_Branch_Id
:
-
1
,
RB_Department_Id
:
0
,
RB_Department_Id
:
0
,
EnterID
:
0
,
EnterID
:
0
,
tStartDates
:
[],
//出发日期
tStartDates
:
[],
qStartDates
:
[],
//报名日期
qStartDates
:
[],
GroupBy
:
"EnterID"
,
GroupBy
:
"EnterID"
,
QueryType
:
0
,
QueryType
:
0
,
},
},
getCompanyMsg
:
{
getCompanyMsg
:
{
// 公司
// 公司
RB_Group_Id
:
"0"
,
RB_Group_Id
:
"0"
,
Status
:
"0"
,
Status
:
"0"
,
},
},
getDepartmentMsg
:
{
getDepartmentMsg
:
{
// 部门
// 部门
RB_Group_Id
:
""
,
RB_Group_Id
:
""
,
RB_Branch_Id
:
""
,
RB_Branch_Id
:
""
,
Status
:
0
,
Status
:
0
,
ParentId
:
-
1
,
ParentId
:
-
1
,
Tier
:
0
,
Tier
:
0
,
},
},
employeeMsg
:
{
employeeMsg
:
{
// 员工
// 员工
GroupId
:
""
,
GroupId
:
""
,
BranchId
:
-
1
,
BranchId
:
-
1
,
DepartmentId
:
0
,
DepartmentId
:
0
,
PostId
:
0
,
PostId
:
0
,
IsLeave
:
0
,
IsLeave
:
0
,
},
CompanyList
:
[],
DepartmentList
:
[],
EmployeeList
:
[],
};
},
created
()
{},
mounted
()
{
this
.
settStartDates
()
this
.
GetAuth
()
this
.
initColumns
();
this
.
getCompanyMsg
.
RB_Group_Id
=
this
.
getLocalStorage
().
RB_Group_id
;
this
.
getDepartmentMsg
.
RB_Group_Id
=
this
.
getLocalStorage
().
RB_Group_id
;
this
.
employeeMsg
.
employeeMsg
=
this
.
getLocalStorage
().
RB_Group_id
;
this
.
initData
();
this
.
getCompanyList
();
this
.
initAuthor
();
//this.pageSize = this.calcPageSize(40); 此页不需要分页
},
methods
:
{
goUrl
(
name
,
rowData
){
if
(
name
==
'salesVolumeRankEntryForm'
)
this
.
customCompFunc
(
rowData
)
},
customCompFunc
(
rowData
)
{
this
.
$router
.
push
({
path
:
"/salesVolumeRankEntryForm"
,
query
:
{
BranchId
:
rowData
.
BranchId
,
EnterID
:
rowData
.
EnterID
,
RB_Department_Id
:
rowData
.
RB_Department_Id
,
blank
:
"y"
,
tStartDates
:
this
.
msg
.
tStartDates
,
qStartDates
:
this
.
msg
.
qStartDates
,
},
},
});},
CompanyList
:
[],
GetAuth
()
{
DepartmentList
:
[],
var
actionCode
=
this
.
$AuthCode
.
S_CheckAllOrder
;
EmployeeList
:
[],
this
.
CheckUserAuth
(
actionCode
,
res
=>
{
userInfo
:
{},
if
(
res
.
data
.
resultCode
==
1
&&
res
.
data
.
data
==
1
)
{
};
this
.
S_CheckAllOrder
=
true
;
},
created
()
{
this
.
userInfo
=
this
.
getLocalStorage
();
this
.
getCompanyList
();
this
.
getCompanyMsg
.
RB_Group_Id
=
this
.
getLocalStorage
().
RB_Group_id
;
this
.
getDepartmentMsg
.
RB_Group_Id
=
this
.
getLocalStorage
().
RB_Group_id
;
this
.
employeeMsg
.
employeeMsg
=
this
.
getLocalStorage
().
RB_Group_id
;
if
(
this
.
$route
.
query
.
CStartDate
&&
this
.
$route
.
query
.
CEndDate
)
{
this
.
msg
.
qStartDates
.
push
(
this
.
$route
.
query
.
CStartDate
.
replace
(
/
\/
/g
,
'-'
));
this
.
msg
.
qStartDates
.
push
(
this
.
$route
.
query
.
CEndDate
.
replace
(
/
\/
/g
,
'-'
));
}
else
{
this
.
settStartDates
();
}
if
(
this
.
$route
.
query
.
BranchId
)
{
this
.
msg
.
RB_Branch_Id
=
Number
(
this
.
$route
.
query
.
BranchId
);
this
.
getDepartmentMsg
.
RB_Branch_Id
=
Number
(
this
.
$route
.
query
.
BranchId
);
this
.
employeeMsg
.
RB_Branch_Id
=
Number
(
this
.
$route
.
query
.
BranchId
);
this
.
getDepartment
();
this
.
activeName
=
"third"
;
}
if
(
this
.
msg
.
RB_Branch_Id
==
-
1
)
{
if
(
this
.
userInfo
.
RB_Branch_id
!=
0
&&
this
.
userInfo
.
RB_Branch_id
!=
49
)
{
this
.
msg
.
RB_Branch_Id
=
Number
(
this
.
userInfo
.
RB_Branch_id
);
this
.
getDepartmentMsg
.
RB_Branch_Id
=
Number
(
this
.
userInfo
.
RB_Branch_id
);
this
.
employeeMsg
.
RB_Branch_Id
=
Number
(
this
.
userInfo
.
RB_Branch_id
);
this
.
getDepartment
();
this
.
activeName
=
"third"
;
}
}
});
}
if
(
this
.
$route
.
query
.
RB_Department_Id
)
{
this
.
msg
.
RB_Department_Id
=
Number
(
this
.
$route
.
query
.
RB_Department_Id
);
this
.
employeeMsg
.
DepartmentId
=
Number
(
this
.
$route
.
query
.
RB_Department_Id
);
this
.
getEmployee
();
this
.
activeName
=
'second'
;
}
if
(
this
.
$route
.
query
.
EmployeeId
)
{
this
.
msg
.
EnterID
=
Number
(
this
.
$route
.
query
.
EmployeeId
);
this
.
activeName
=
'first'
;
}
this
.
getSearchData
();
},
},
initColumns
()
{
mounted
()
{
this
.
isReady
=
true
;
this
.
GetAuth
()
this
.
initColumns
();
this
.
initData
();
this
.
initAuthor
();
},
},
initData
()
{
methods
:
{
this
.
loading
=
true
;
goUrl
(
name
,
rowData
)
{
let
param
=
{
if
(
name
==
'salesVolumeRankEntryForm'
)
this
.
customCompFunc
(
rowData
)
RB_Branch_Id
:
},
this
.
msg
.
RB_Branch_Id
==
-
1
?
null
:
this
.
msg
.
RB_Branch_Id
,
customCompFunc
(
rowData
)
{
RB_Department_Id
:
this
.
$router
.
push
({
this
.
msg
.
RB_Department_Id
==
0
?
null
:
this
.
msg
.
RB_Department_Id
,
path
:
"/salesVolumeRankEntryForm"
,
EnterID
:
this
.
msg
.
EnterID
==
0
?
null
:
this
.
msg
.
EnterID
,
query
:
{
QStartDate
:
BranchId
:
rowData
.
BranchId
,
this
.
msg
.
tStartDates
&&
this
.
msg
.
tStartDates
.
length
==
2
EnterID
:
rowData
.
EnterID
,
?
this
.
msg
.
tStartDates
[
0
]
RB_Department_Id
:
rowData
.
RB_Department_Id
,
:
null
,
blank
:
"y"
,
QEndDate
:
tStartDates
:
this
.
msg
.
tStartDates
,
this
.
msg
.
tStartDates
&&
this
.
msg
.
tStartDates
.
length
==
2
qStartDates
:
this
.
msg
.
qStartDates
,
?
this
.
msg
.
tStartDates
[
1
]
},
:
null
,
CStartDate
:
this
.
msg
.
qStartDates
&&
this
.
msg
.
qStartDates
.
length
==
2
?
this
.
msg
.
qStartDates
[
0
]
:
null
,
CEndDate
:
this
.
msg
.
qStartDates
&&
this
.
msg
.
qStartDates
.
length
==
2
?
this
.
msg
.
qStartDates
[
1
]
:
null
,
GroupBy
:
this
.
msg
.
GroupBy
,
QueryType
:
this
.
msg
.
QueryType
,
};
if
(
!
param
.
QStartDate
)
{
param
.
QStartDate
=
"2019-01-01"
;
}
this
.
tableData
=
[]
this
.
apipost
(
"sellorder_get_sellvolumerankNew"
,
param
,
(
r
)
=>
{
r
.
data
.
data
.
forEach
((
x
)
=>
{
x
.
incomeVal
=
parseFloat
(
x
.
income
);
x
.
avgPrice
=
parseFloat
(
x
.
avgPrice
);
});
});
this
.
tableData
=
r
.
data
.
data
;
},
this
.
loading
=
false
;
GetAuth
()
{
});
var
actionCode
=
this
.
$AuthCode
.
S_CheckAllOrder
;
},
this
.
CheckUserAuth
(
actionCode
,
res
=>
{
getCompanyList
()
{
if
(
res
.
data
.
resultCode
==
1
&&
res
.
data
.
data
==
1
)
{
//获取公司列表
this
.
S_CheckAllOrder
=
true
;
this
.
apipost
(
"admin_get_BranchGetList"
,
this
.
getCompanyMsg
,
(
res
)
=>
{
if
(
res
.
data
.
resultCode
==
1
)
{
this
.
CompanyList
=
res
.
data
.
data
;
}
else
{
}
}
},
});
(
err
)
=>
{}
},
);
initColumns
()
{
},
this
.
isReady
=
true
;
initAuthor
()
{
},
let
msg
=
{
initData
()
{
MenuUrl
:
"/salesVolumeRank"
,
this
.
loading
=
true
;
};
let
param
=
{
this
.
apipost
(
"admin_get_GetActionCodeForUrlAndUser"
,
msg
,
(
r
)
=>
{
RB_Branch_Id
:
this
.
msg
.
RB_Branch_Id
==
-
1
?
null
:
this
.
msg
.
RB_Branch_Id
,
this
.
authority
=
r
.
data
.
data
;
RB_Department_Id
:
this
.
msg
.
RB_Department_Id
==
0
?
null
:
this
.
msg
.
RB_Department_Id
,
});
EnterID
:
this
.
msg
.
EnterID
==
0
?
null
:
this
.
msg
.
EnterID
,
},
QStartDate
:
this
.
msg
.
tStartDates
&&
this
.
msg
.
tStartDates
.
length
==
2
?
getDepartment
()
{
this
.
msg
.
tStartDates
[
0
]
:
null
,
//部门
QEndDate
:
this
.
msg
.
tStartDates
&&
this
.
msg
.
tStartDates
.
length
==
2
?
this
.
getDepartmentMsg
.
RB_Branch_Id
=
this
.
msg
.
RB_Branch_Id
;
this
.
msg
.
tStartDates
[
1
]
:
null
,
this
.
msg
.
RB_Department_Id
=
0
;
CStartDate
:
this
.
msg
.
qStartDates
&&
this
.
msg
.
qStartDates
.
length
==
2
?
this
.
msg
.
EnterID
=
0
;
this
.
msg
.
qStartDates
[
0
]
:
null
,
this
.
DepartmentList
=
[];
CEndDate
:
this
.
msg
.
qStartDates
&&
this
.
msg
.
qStartDates
.
length
==
2
?
this
.
EmployeeList
=
[];
this
.
msg
.
qStartDates
[
1
]
:
null
,
if
(
this
.
msg
.
RB_Branch_Id
!=
-
1
)
{
GroupBy
:
this
.
msg
.
GroupBy
,
QueryType
:
this
.
msg
.
QueryType
,
};
if
(
!
param
.
QStartDate
)
{
param
.
QStartDate
=
"2019-01-01"
;
}
this
.
tableData
=
[];
this
.
apipost
(
"sellorder_get_sellvolumerankNew"
,
param
,
(
r
)
=>
{
var
tempData
=
r
.
data
.
data
;
if
(
tempData
&&
tempData
.
length
>
0
)
{
tempData
.
forEach
((
x
)
=>
{
x
.
incomeVal
=
parseFloat
(
x
.
income
);
x
.
avgPrice
=
parseFloat
(
x
.
avgPrice
);
});
}
this
.
tableData
=
tempData
;
this
.
loading
=
false
;
});
},
getCompanyList
()
{
//获取公司列表
this
.
apipost
(
this
.
apipost
(
"admin_get_
Department
GetList"
,
"admin_get_
Branch
GetList"
,
this
.
get
Department
Msg
,
this
.
get
Company
Msg
,
(
res
)
=>
{
(
res
)
=>
{
if
(
res
.
data
.
resultCode
==
1
)
{
if
(
res
.
data
.
resultCode
==
1
)
{
this
.
DepartmentList
=
res
.
data
.
data
;
this
.
CompanyList
=
res
.
data
.
data
;
}
else
{}
},
(
err
)
=>
{}
);
},
initAuthor
()
{
let
msg
=
{
MenuUrl
:
"/salesVolumeRank"
,
};
this
.
apipost
(
"admin_get_GetActionCodeForUrlAndUser"
,
msg
,
(
r
)
=>
{
this
.
authority
=
r
.
data
.
data
;
});
},
getDepartment
()
{
//部门
this
.
getDepartmentMsg
.
RB_Branch_Id
=
this
.
msg
.
RB_Branch_Id
;
this
.
msg
.
RB_Department_Id
=
0
;
this
.
msg
.
EnterID
=
0
;
this
.
DepartmentList
=
[];
this
.
EmployeeList
=
[];
if
(
this
.
msg
.
RB_Branch_Id
!=
-
1
)
{
this
.
apipost
(
"admin_get_DepartmentGetList"
,
this
.
getDepartmentMsg
,
(
res
)
=>
{
if
(
res
.
data
.
resultCode
==
1
)
{
this
.
DepartmentList
=
res
.
data
.
data
;
}
},
(
err
)
=>
{}
);
}
},
getEmployee
()
{
this
.
employeeMsg
.
DepartmentId
=
this
.
msg
.
RB_Department_Id
;
this
.
msg
.
EnterID
=
0
;
this
.
EmployeeList
=
[];
//员工
this
.
apipost
(
"admin_get_EmployeeGetList"
,
this
.
employeeMsg
,
(
res
)
=>
{
if
(
res
.
data
.
resultCode
==
1
)
{
this
.
EmployeeList
=
res
.
data
.
data
;
}
}
},
},
(
err
)
=>
{}
(
err
)
=>
{}
);
);
}
},
},
settStartDates
()
{
getEmployee
()
{
if
(
this
.
$route
.
query
.
tStartDates
)
{
this
.
employeeMsg
.
DepartmentId
=
this
.
msg
.
RB_Department_Id
;
this
.
msg
.
tStartDates
=
this
.
$route
.
query
.
tStartDates
this
.
msg
.
EnterID
=
0
;
}
else
{
this
.
EmployeeList
=
[];
let
date
=
moment
().
format
(
'yyyy-MM-DD'
)
//员工
let
start
=
moment
().
subtract
(
1
,
'months'
).
format
(
'yyyy-MM-DD'
)
this
.
apipost
(
//this.msg.tStartDates = [start, date]
"admin_get_EmployeeGetList"
,
this
.
msg
.
qStartDates
=
[
start
,
date
];
this
.
employeeMsg
,
}
(
res
)
=>
{
},
if
(
res
.
data
.
resultCode
==
1
)
{
getSearchData
()
{
this
.
EmployeeList
=
res
.
data
.
data
;
this
.
msg
.
QueryType
=
0
;
if
(
this
.
activeName
==
"first"
)
this
.
msg
.
GroupBy
=
"EnterID"
;
else
if
(
this
.
activeName
==
"second"
)
this
.
msg
.
GroupBy
=
"RB_Department_Id"
;
else
if
(
this
.
activeName
==
"third"
)
{
this
.
msg
.
GroupBy
=
"RB_Branch_Id"
;
//this.msg.RB_Department_Id = 0;
}
else
{
//this.msg.RB_Department_Id = 0;
//this.msg.RB_Branch_Id = -1;
this
.
msg
.
GroupBy
=
"EnterID"
;
this
.
msg
.
QueryType
=
4
;
}
},
handleClick
(
tab
,
event
)
{
this
.
msg
.
EnterID
=
0
;
this
.
getSearchData
();
this
.
initColumns
();
this
.
initData
();
},
sortChange
(
param
)
{
//自己写实现
let
d
=
JSON
.
parse
(
JSON
.
stringify
(
this
.
tableData
));
if
(
d
&&
d
.
length
>
0
)
{
if
(
param
.
income
!=
""
)
{
this
.
tableData
=
this
.
orderBy
(
d
,
[
"incomeVal"
],
param
.
income
).
results
;
}
else
if
(
param
.
peopleCount
!=
""
)
{
this
.
tableData
=
this
.
orderBy
(
d
,
[
"peopleCount"
],
param
.
peopleCount
).
results
;
}
else
if
(
param
.
avgPrice
!=
""
)
{
this
.
tableData
=
this
.
orderBy
(
d
,
[
"avgPrice"
],
param
.
avgPrice
).
results
;
}
else
if
(
param
.
notInCome
!=
""
)
{
this
.
tableData
=
this
.
orderBy
(
d
,
[
"notInCome"
],
param
.
notInCome
).
results
;
}
else
if
(
param
.
PreferPrice
!=
""
)
{
this
.
tableData
=
this
.
orderBy
(
d
,
[
"PreferPrice"
],
param
.
PreferPrice
).
results
;
}
else
if
(
param
.
CalcheCount
!=
""
)
{
this
.
tableData
=
this
.
orderBy
(
d
,
[
"CalcheCount"
],
param
.
CalcheCount
).
results
;
}
}
},
(
err
)
=>
{}
);
},
settStartDates
()
{
if
(
this
.
$route
.
query
.
tStartDates
){
this
.
msg
.
tStartDates
=
this
.
$route
.
query
.
tStartDates
}
else
{
let
date
=
moment
().
format
(
'yyyy-MM-DD'
)
let
start
=
moment
().
subtract
(
1
,
'months'
).
format
(
'yyyy-MM-DD'
)
this
.
msg
.
tStartDates
=
[
start
,
date
]
}
},
handleClick
(
tab
,
event
)
{
this
.
msg
.
EnterID
=
0
;
this
.
msg
.
QueryType
=
0
;
if
(
this
.
activeName
==
"first"
)
this
.
msg
.
GroupBy
=
"EnterID"
;
else
if
(
this
.
activeName
==
"second"
)
this
.
msg
.
GroupBy
=
"RB_Department_Id"
;
else
if
(
this
.
activeName
==
"third"
)
{
this
.
msg
.
GroupBy
=
"RB_Branch_Id"
;
this
.
msg
.
RB_Department_Id
=
0
;
}
else
{
this
.
msg
.
RB_Department_Id
=
0
;
this
.
msg
.
RB_Branch_Id
=
-
1
;
this
.
msg
.
GroupBy
=
"EnterID"
;
this
.
msg
.
QueryType
=
4
;
}
this
.
initColumns
();
this
.
initData
();
},
handleCurrentChanges
(
val
)
{
// this.pageIndex = val;
// this.tableData = this.getTableData().filter(
// (item, index) => index == val - 1
// );
},
sortChange
(
param
)
{
//自己写实现
let
d
=
JSON
.
parse
(
JSON
.
stringify
(
this
.
tableData
));
if
(
d
&&
d
.
length
>
0
)
{
if
(
param
.
income
!=
""
)
{
this
.
tableData
=
this
.
orderBy
(
d
,
[
"incomeVal"
],
param
.
income
).
results
;
}
else
if
(
param
.
peopleCount
!=
""
)
{
this
.
tableData
=
this
.
orderBy
(
d
,
[
"peopleCount"
],
param
.
peopleCount
).
results
;
}
else
if
(
param
.
avgPrice
!=
""
)
{
this
.
tableData
=
this
.
orderBy
(
d
,
[
"avgPrice"
],
param
.
avgPrice
).
results
;
}
else
if
(
param
.
notInCome
!=
""
)
{
this
.
tableData
=
this
.
orderBy
(
d
,
[
"notInCome"
],
param
.
notInCome
).
results
;
}
else
if
(
param
.
PreferPrice
!=
""
)
{
this
.
tableData
=
this
.
orderBy
(
d
,
[
"PreferPrice"
],
param
.
PreferPrice
).
results
;
}
else
if
(
param
.
CalcheCount
!=
""
)
{
this
.
tableData
=
this
.
orderBy
(
d
,
[
"CalcheCount"
],
param
.
CalcheCount
).
results
;
}
}
}
},
filterMethod
(
filters
)
{},
},
},
filterMethod
(
filters
)
{},
};
},
};
</
script
>
</
script
>
<
style
scoped
>
<
style
scoped
>
.salesVolumeRank-box
.query-box
{
.salesVolumeRank-box
.query-box
{
padding
:
0
!important
;
padding
:
0
!important
;
border-bottom
:
0px
;
border-bottom
:
0px
;
}
}
.salesVolumeRank-box
.el-tabs__nav-wrap
::after
{
height
:
1px
;
.salesVolumeRank-box
.el-tabs__nav-wrap
::after
{
}
height
:
1px
;
.salesVolumeRank-box
.el-date-editor.el-input
,
}
.salesVolumeRank-box
.el-date-editor.el-input__inner
{
width
:
100%
!important
;
.salesVolumeRank-box
.el-date-editor.el-input
,
}
.salesVolumeRank-box
.el-date-editor.el-input__inner
{
.salesVolumeRank-box
.el-date-editor
.el-range-input
,
width
:
100%
!important
;
.el-date-editor
.el-range-separator
{
}
font-size
:
12px
;
}
.salesVolumeRank-box
.el-date-editor
.el-range-input
,
/
deep
/
.salesVolumeRank-box
.el-table
th
.el-table__cell
{
.el-date-editor
.el-range-separator
{
background-color
:
#E6E6E6
!important
;
font-size
:
12px
;
}
}
.clickText
{
color
:
#33B3FF
;
/
deep
/
.salesVolumeRank-box
.el-table
th
.el-table__cell
{
cursor
:
pointer
;
background-color
:
#E6E6E6
!important
;
}
}
.clickText
{
color
:
#33B3FF
;
cursor
:
pointer
;
}
</
style
>
</
style
>
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