Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
C
confucius
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
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
罗超
confucius
Commits
51031779
Commit
51031779
authored
Apr 20, 2022
by
黄奎
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
页面优化
parent
def99056
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
494 additions
and
671 deletions
+494
-671
returnpassbookStatistics.vue
...ges/financial/returnPassbook/returnpassbookStatistics.vue
+494
-671
No files found.
src/pages/financial/returnPassbook/returnpassbookStatistics.vue
View file @
51031779
<
style
>
<
style
>
.baseSet_Title
{
.baseSet_Title
{
width
:
120px
!important
;
width
:
120px
!important
;
padding
:
18px
0
0
16px
;
padding
:
18px
0
0
16px
;
text-align
:
right
;
text-align
:
right
;
}
}
.cycleOrderList
.border-bottom
{
.cycleOrderList
.border-bottom
{
/* border-bottom: 1px dashed #EEE; */
/* border-bottom: 1px dashed #EEE; */
padding-bottom
:
5px
;
padding-bottom
:
5px
;
margin-bottom
:
5px
;
margin-bottom
:
5px
;
}
}
.cycleOrderList
.text-bottom
{
.cycleOrderList
.text-bottom
{
height
:
32px
;
height
:
32px
;
line-height
:
32px
;
line-height
:
32px
;
margin-bottom
:
10px
;
margin-bottom
:
10px
;
}
}
.cycleOrderList
._icon_btn
i
.icon-sousuo
{
.cycleOrderList
._icon_btn
i
.icon-sousuo
{
background-color
:
#47bf8c
;
background-color
:
#47bf8c
;
}
}
.cycleOrderList
._icon_btn
i
{
.cycleOrderList
._icon_btn
i
{
width
:
30px
;
width
:
30px
;
height
:
30px
;
height
:
30px
;
display
:
inline-block
;
display
:
inline-block
;
...
@@ -28,82 +32,28 @@
...
@@ -28,82 +32,28 @@
margin-right
:
10px
;
margin-right
:
10px
;
cursor
:
pointer
;
cursor
:
pointer
;
outline
:
none
;
outline
:
none
;
}
}
.cycleOrderList
.el-table
td
,
.el-table
th
{
.cycleOrderList
.el-table
td
,
.el-table
th
{
padding
:
5px
0
;
padding
:
5px
0
;
}
}
</
style
>
</
style
>
<
template
>
<
template
>
<div
class=
"page-body cycleOrderList"
>
<div
class=
"page-body cycleOrderList"
>
<div
class=
"page-search row items-center"
>
<div
class=
"page-search row items-center"
>
<div
class=
"col row wrap q-mr-lg q-col-gutter-md"
>
<div
class=
"col row wrap q-mr-lg q-col-gutter-md"
>
<!--
<div
class=
"col-3"
>
<q-select
v-if=
"!isNormal"
@
input=
"resetSearch"
filled
stack-label
option-value=
"Id"
option-label=
"Name"
<q-select
use-input
v-model=
"msg.Status"
:options=
"StatusList"
label=
"状态"
dense
class=
"col-3"
emit-value
map-options
>
filled
</q-select>
stack-label
@
input=
"resetSearch()"
option-value=
"SId"
option-label=
"SName"
v-model=
"msg.SchoolId"
ref=
"SchoolId"
:options=
"schoolList"
label=
"校区"
dense
emit-value
map-options
/>
</div>
-->
<q-select
v-if=
"!isNormal"
@
input=
"resetSearch"
filled
stack-label
option-value=
"Id"
option-label=
"Name"
use-input
v-model=
"msg.Status"
:options=
"StatusList"
label=
"状态"
dense
class=
"col-3"
emit-value
map-options
></q-select>
<div
class=
"col-3"
v-if=
"!isNormal"
>
<div
class=
"col-3"
v-if=
"!isNormal"
>
<q-select
<q-select
filled
stack-label
@
input=
"resetSearch()"
option-value=
"Id"
option-label=
"BatchName"
filled
v-model=
"msg.BatchId"
:options=
"PeriodsList"
label=
"周期"
dense
emit-value
map-options
/>
stack-label
@
input=
"resetSearch()"
option-value=
"Id"
option-label=
"BatchName"
v-model=
"msg.BatchId"
:options=
"PeriodsList"
label=
"周期"
dense
emit-value
map-options
/>
</div>
</div>
<div
class=
"col-3"
>
<div
class=
"col-3"
>
<q-select
<q-select
filled
stack-label
use-input
input-debounce=
"0"
option-value=
"ClassId"
@
input=
"getList"
filled
option-label=
"ClassName"
v-model=
"msg.ClassId"
:options=
"ClassList"
label=
"班级"
dense
emit-value
map-options
stack-label
@
filter=
"filterFnbanji"
>
use-input
input-debounce=
"0"
option-value=
"ClassId"
@
input=
"getList"
option-label=
"ClassName"
v-model=
"msg.ClassId"
:options=
"ClassList"
label=
"班级"
dense
emit-value
map-options
@
filter=
"filterFnbanji"
>
<template
v-slot:no-option
>
<template
v-slot:no-option
>
<q-item>
<q-item>
<q-item-section
class=
"text-grey"
>
未找到相关数据
</q-item-section>
<q-item-section
class=
"text-grey"
>
未找到相关数据
</q-item-section>
...
@@ -111,72 +61,19 @@
...
@@ -111,72 +61,19 @@
</
template
>
</
template
>
</q-select>
</q-select>
</div>
</div>
<q-select
v-if=
"!isNormal"
@
input=
"resetSearch"
filled
stack-label
option-value=
"Id"
option-label=
"Name"
<q-select
use-input
v-model=
"msg.CommissionType"
:options=
"CommissionList"
label=
"类型"
dense
class=
"col-3"
emit-value
v-if=
"!isNormal"
map-options
></q-select>
@
input=
"resetSearch"
<q-select
v-if=
"!isNormal"
@
input=
"resetSearch"
filled
stack-label
option-value=
"Id"
option-label=
"Name"
filled
use-input
v-model=
"msg.Q_SelectNormal"
:options=
"SelectNormal"
label=
"返佣情况"
dense
class=
"col-3"
emit-value
stack-label
map-options
></q-select>
option-value=
"Id"
<q-select
class=
"col-3"
filled
stack-label
input-debounce=
"0"
v-if=
"!isEdit"
option-value=
"Id"
option-label=
"Name"
@
input=
"getlaiyuan"
option-label=
"Name"
v-model=
"msg.OrderSourceType"
:options=
"customFromList"
label=
"来源"
use-input
dense
emit-value
map-options
></q-select>
v-model=
"msg.CommissionType"
:options=
"CommissionList"
label=
"类型"
dense
class=
"col-3"
emit-value
map-options
></q-select>
<q-select
v-if=
"!isNormal"
@
input=
"resetSearch"
filled
stack-label
option-value=
"Id"
option-label=
"Name"
use-input
v-model=
"msg.Q_SelectNormal"
:options=
"SelectNormal"
label=
"返佣情况"
dense
class=
"col-3"
emit-value
map-options
></q-select>
<q-select
class=
"col-3"
filled
stack-label
input-debounce=
"0"
v-if=
"!isEdit"
option-value=
"Id"
@
input=
"getlaiyuan"
option-label=
"Name"
v-model=
"msg.OrderSourceType"
:options=
"customFromList"
label=
"来源"
dense
emit-value
map-options
></q-select>
<div
class=
"col-3"
v-if=
"msg.OrderSourceType == 1 || msg.OrderSourceType == 3"
>
<div
class=
"col-3"
v-if=
"msg.OrderSourceType == 1 || msg.OrderSourceType == 3"
>
<q-select
<q-select
filled
clearable
stack-label
v-model=
"msg.OrderSourceId"
dense
:options=
"myEmployeeList"
use-input
filled
@
input=
"getList"
label=
"人员"
@
filter=
"filterEmployee"
option-label=
"EmployeeName"
option-value=
"Id"
clearable
emit-value
map-options
>
stack-label
v-model=
"msg.OrderSourceId"
dense
:options=
"myEmployeeList"
use-input
@
input=
"getList"
label=
"人员"
@
filter=
"filterEmployee"
option-label=
"EmployeeName"
option-value=
"Id"
emit-value
map-options
>
<
template
v-slot:no-option
>
<
template
v-slot:no-option
>
<q-item>
<q-item>
<q-item-section
class=
"text-grey"
>
未找到相关数据
</q-item-section>
<q-item-section
class=
"text-grey"
>
未找到相关数据
</q-item-section>
...
@@ -185,22 +82,9 @@
...
@@ -185,22 +82,9 @@
</q-select>
</q-select>
</div>
</div>
<div
class=
"col-3"
v-if=
"msg.OrderSourceType == 2"
>
<div
class=
"col-3"
v-if=
"msg.OrderSourceType == 2"
>
<q-select
<q-select
filled
clearable
stack-label
v-model=
"msg.OrderSourceId"
dense
:options=
"customList"
use-input
filled
@
input=
"getList"
label=
"关联同行"
@
filter=
"filterFn"
option-label=
"CustomerName"
option-value=
"CustomerId"
clearable
emit-value
map-options
>
stack-label
v-model=
"msg.OrderSourceId"
dense
:options=
"customList"
use-input
@
input=
"getList"
label=
"关联同行"
@
filter=
"filterFn"
option-label=
"CustomerName"
option-value=
"CustomerId"
emit-value
map-options
>
<
template
v-slot:no-option
>
<
template
v-slot:no-option
>
<q-item>
<q-item>
<q-item-section
class=
"text-grey"
>
未找到相关数据
</q-item-section>
<q-item-section
class=
"text-grey"
>
未找到相关数据
</q-item-section>
...
@@ -209,22 +93,9 @@
...
@@ -209,22 +93,9 @@
</q-select>
</q-select>
</div>
</div>
<div
class=
"col-3"
v-if=
"msg.OrderSourceType == 4"
>
<div
class=
"col-3"
v-if=
"msg.OrderSourceType == 4"
>
<q-select
<q-select
filled
clearable
stack-label
v-model=
"msg.OrderSourceId"
dense
:options=
"InvitationList"
use-input
filled
@
input=
"getList"
label=
"转介人"
@
filter=
"filterFnStudent"
option-label=
"StuName"
option-value=
"StuId"
clearable
emit-value
map-options
>
stack-label
v-model=
"msg.OrderSourceId"
dense
:options=
"InvitationList"
use-input
@
input=
"getList"
label=
"转介人"
@
filter=
"filterFnStudent"
option-label=
"StuName"
option-value=
"StuId"
emit-value
map-options
>
<
template
v-slot:no-option
>
<
template
v-slot:no-option
>
<q-item>
<q-item>
<q-item-section
class=
"text-grey"
>
未找到相关数据
</q-item-section>
<q-item-section
class=
"text-grey"
>
未找到相关数据
</q-item-section>
...
@@ -233,13 +104,7 @@
...
@@ -233,13 +104,7 @@
</q-select>
</q-select>
</div>
</div>
<div
class=
"col-3"
>
<div
class=
"col-3"
>
<q-input
<q-input
filled
dense
v-model=
"msg.OrderId"
@
keyup
.
enter
.
native=
"resetSearch()"
label=
"订单号"
/>
filled
dense
v-model=
"msg.OrderId"
@
keyup
.
enter
.
native=
"resetSearch()"
label=
"订单号"
/>
</div>
</div>
</div>
</div>
</div>
</div>
...
@@ -248,56 +113,31 @@
...
@@ -248,56 +113,31 @@
提成统计
提成统计
<span
style=
"font-size: 16px;"
>
(提成总计:{{ TotalCommission }})
</span>
<span
style=
"font-size: 16px;"
>
(提成总计:{{ TotalCommission }})
</span>
</span>
</span>
<q-btn
<q-btn
v-if=
"!isNormal"
color=
"primary"
size=
"11px"
label=
"导出"
@
click=
"tcexport"
style=
"margin-left:10px"
/>
v-if=
"!isNormal"
color=
"primary"
size=
"11px"
label=
"导出"
@
click=
"tcexport"
style=
"margin-left:10px"
/>
</div>
</div>
<
template
>
<
template
>
<el-table
<el-table
ref=
"filterTable"
:data=
"tableData"
v-loading=
"loading"
ref=
"filterTable"
:header-cell-style=
"
{ backgroundColor: '#f5f6f7', color: '#a8a8b3' }" border style="width: 100%">
:data=
"tableData"
v-loading=
"loading"
:header-cell-style=
"
{ backgroundColor: '#f5f6f7', color: '#a8a8b3' }"
border
style="width: 100%"
>
<el-table-column
prop=
"SchoolName"
label=
"校区"
width=
"150"
></el-table-column>
<el-table-column
prop=
"SchoolName"
label=
"校区"
width=
"150"
></el-table-column>
<el-table-column
prop=
"OrderSourceTypeName"
label=
"来源"
></el-table-column>
<el-table-column
prop=
"OrderSourceTypeName"
label=
"来源"
></el-table-column>
<el-table-column
prop=
"UserName"
label=
"人员"
></el-table-column>
<el-table-column
prop=
"UserName"
label=
"人员"
></el-table-column>
<!--
<el-table-column
prop=
"ClassNo"
label=
"班号"
></el-table-column>
-->
<el-table-column
width=
"170"
prop=
"ClassName"
label=
"班级信息"
>
<el-table-column
width=
"170"
prop=
"ClassName"
label=
"班级信息"
>
<template
slot-scope=
"scope"
>
<template
slot-scope=
"scope"
>
<div>
<div>
<span
<span
style=
"cursor: pointer;text-decoration: underline;"
style=
"cursor: pointer;text-decoration: underline;"
@
click=
"goUrlclass('/course/classManage', scope.row.ClassName)"
>
{{
scope
.
row
.
ClassName
}}
</span>
@
click=
"goUrlclass('/course/classManage', scope.row.ClassName)"
>
{{
scope
.
row
.
ClassName
}}
</span>
</div>
</div>
<div>
班号:
{{
scope
.
row
.
ClassNo
}}
</div>
<div>
班号:
{{
scope
.
row
.
ClassNo
}}
</div>
</
template
>
</
template
>
</el-table-column>
</el-table-column>
<el-table-column
prop=
"OrderId"
label=
"订单号"
>
<el-table-column
prop=
"OrderId"
label=
"订单号"
>
<
template
slot-scope=
"scope"
>
<
template
slot-scope=
"scope"
>
<div
v-if=
"scope.row.OrderType == 1"
style=
"cursor: pointer;text-decoration: underline;"
<div
v-if=
"scope.row.OrderType == 1"
@
click=
"goUrlorderList('/sale/orderStatistics', scope.row)"
>
{{
scope
.
row
.
OrderId
}}
</div>
style=
"cursor: pointer;text-decoration: underline;"
<div
v-else-if=
"scope.row.OrderType == 2"
style=
"cursor: pointer;text-decoration: underline;"
@
click=
"goUrlorderList('/sale/orderStatistics', scope.row)"
@
click=
"goUrlorderList('/sale/studyOrderStatistics', scope.row)"
>
{{
scope
.
row
.
OrderId
}}
</div>
>
{{
scope
.
row
.
OrderId
}}
</div>
<div
v-else-if=
"scope.row.OrderType == 2"
style=
"cursor: pointer;text-decoration: underline;"
@
click=
"goUrlorderList('/sale/studyOrderStatistics', scope.row)"
>
{{
scope
.
row
.
OrderId
}}
</div>
</
template
>
</
template
>
</el-table-column>
</el-table-column>
<el-table-column
prop=
"StuName"
label=
"学生"
></el-table-column>
<el-table-column
prop=
"StuName"
label=
"学生"
></el-table-column>
<el-table-column
prop=
"CommissionType"
label=
"类型"
>
<el-table-column
prop=
"CommissionType"
label=
"类型"
>
<
template
slot-scope=
"scope"
>
<
template
slot-scope=
"scope"
>
...
@@ -305,7 +145,6 @@
...
@@ -305,7 +145,6 @@
<span
v-if=
"scope.row.CommissionType == 2"
>
幸福存折
</span>
<span
v-if=
"scope.row.CommissionType == 2"
>
幸福存折
</span>
</
template
>
</
template
>
</el-table-column>
</el-table-column>
<el-table-column
width=
"130"
prop=
"CommissionMoeny"
label=
"返佣/存折金额"
>
<el-table-column
width=
"130"
prop=
"CommissionMoeny"
label=
"返佣/存折金额"
>
<
template
slot-scope=
"scope"
>
<
template
slot-scope=
"scope"
>
<div>
{{
scope
.
row
.
CommissionMoeny
?
scope
.
row
.
CommissionMoeny
:
'-'
}}
</div>
<div>
{{
scope
.
row
.
CommissionMoeny
?
scope
.
row
.
CommissionMoeny
:
'-'
}}
</div>
...
@@ -319,59 +158,45 @@
...
@@ -319,59 +158,45 @@
<span
v-if=
"scope.row.Status == 2"
>
佣金已提现
</span>
<span
v-if=
"scope.row.Status == 2"
>
佣金已提现
</span>
</
template
>
</
template
>
</el-table-column>
</el-table-column>
<el-table-column
prop=
"BatchName"
label=
"期数"
></el-table-column>
<el-table-column
prop=
"BatchName"
label=
"期数"
></el-table-column>
<el-table-column
prop=
"Remark"
width=
"200"
label=
"备注"
></el-table-column>
<el-table-column
prop=
"Remark"
width=
"200"
label=
"备注"
></el-table-column>
</el-table>
</el-table>
<div
style=
"margin-top: 10px;text-align: center;"
>
<div
style=
"margin-top: 10px;text-align: center;"
>
<el-pagination
<el-pagination
background
@
current-change=
"handleCurrentChanges"
layout=
"total,prev, pager, next, jumper"
background
:current-page
.
sync=
"msg.PageIndex"
:page-size=
"msg.PageSize"
:total=
"total"
></el-pagination>
@
current-change=
"handleCurrentChanges"
layout=
"total,prev, pager, next, jumper"
:current-page
.
sync=
"msg.PageIndex"
:page-size=
"msg.PageSize"
:total=
"total"
></el-pagination>
</div>
</div>
</template>
</template>
</div>
</div>
</template>
</template>
<
script
>
<
script
>
import
{
import
{
getSchoolDropdown
,
getSchoolDropdown
,
getClassDropDownList
,
getClassDropDownList
,
getStudentDorpDownList
getStudentDorpDownList
}
from
'../../../api/school/index'
}
from
'../../../api/school/index'
import
{
import
{
queryEmployee
queryEmployee
}
from
'../../../api/users/user'
}
from
'../../../api/users/user'
import
{
import
{
GetStudentList
,
GetStudentList
,
}
from
'../../../api/course/class'
;
}
from
'../../../api/course/class'
;
import
{
import
{
CreateTypeList
,
CreateTypeList
,
GetCustomerList
GetCustomerList
}
from
'../../../api/sale/sale'
}
from
'../../../api/sale/sale'
import
{
import
{
getCommissionStatistics
,
getCommissionStatistics
,
getCommissionPeriodsList
,
getCommissionPeriodsList
,
}
from
'../../../api/finance/index'
import
{
}
from
'../../../api/finance/index'
import
{
EduDownLoad
,
EduDownLoad
,
}
from
'../../../api/common/common'
;
}
from
'../../../api/common/common'
;
export
default
{
export
default
{
meta
:
{
meta
:
{
title
:
"业绩提成统计"
title
:
"业绩提成统计"
},
},
props
:
{},
props
:
{},
components
:
{
components
:
{},
},
data
()
{
data
()
{
return
{
return
{
loading
:
false
,
loading
:
false
,
...
@@ -386,21 +211,46 @@ export default {
...
@@ -386,21 +211,46 @@ export default {
OrderSourceId
:
0
,
OrderSourceId
:
0
,
Q_SelectNormal
:
'-1'
,
Q_SelectNormal
:
'-1'
,
CommissionType
:
'-1'
,
CommissionType
:
'-1'
,
ClassId
:
0
,
ClassId
:
0
,
OrderId
:
''
,
OrderId
:
''
,
UnionCashOutId
:
0
,
UnionCashOutId
:
0
,
},
},
StatusList
:
[
StatusList
:
[{
{
Id
:
'-2'
,
Name
:
'不限'
},
{
Id
:
'-1'
,
Name
:
'不返佣'
},
{
Id
:
'0'
,
Name
:
'待返佣'
},
{
Id
:
'1'
,
Name
:
'已返佣到账户'
},
{
Id
:
'2'
,
Name
:
'佣金已提现'
},
Id
:
'-2'
,
],
Name
:
'不限'
SelectNormal
:
[
},
{
{
Id
:
'-1'
,
Name
:
'不限'
},
{
Id
:
'1'
,
Name
:
'非不返佣的'
},
{
Id
:
'2'
,
Name
:
'已返佣'
},
Id
:
'-1'
,
],
Name
:
'不返佣'
CommissionList
:
[
},
{
{
Id
:
'-1'
,
Name
:
'不限'
},
{
Id
:
'1'
,
Name
:
'返佣'
},
{
Id
:
'2'
,
Name
:
'幸福存折'
},
Id
:
'0'
,
],
Name
:
'待返佣'
},
{
Id
:
'1'
,
Name
:
'已返佣到账户'
},
{
Id
:
'2'
,
Name
:
'佣金已提现'
},
],
SelectNormal
:
[{
Id
:
'-1'
,
Name
:
'不限'
},
{
Id
:
'1'
,
Name
:
'非不返佣的'
},
{
Id
:
'2'
,
Name
:
'已返佣'
},
],
CommissionList
:
[{
Id
:
'-1'
,
Name
:
'不限'
},
{
Id
:
'1'
,
Name
:
'返佣'
},
{
Id
:
'2'
,
Name
:
'幸福存折'
},
],
pageCount
:
0
,
pageCount
:
0
,
listData
:
{},
listData
:
{},
tableData
:
[],
tableData
:
[],
...
@@ -413,29 +263,26 @@ export default {
...
@@ -413,29 +263,26 @@ export default {
see_tcdetailed
:
false
,
see_tcdetailed
:
false
,
schoolList
:
[],
schoolList
:
[],
DeptList
:
[],
// 部门下拉
DeptList
:
[],
// 部门下拉
PeriodsList
:
[],
//周期列表
PeriodsList
:
[],
//周期列表
TotalCommission
:
0
,
TotalCommission
:
0
,
ChangeLog
:
''
,
ChangeLog
:
''
,
customFromList
:
[],
customFromList
:
[],
TransListData
:
[],
//转介人数据
TransListData
:
[],
//转介人数据
MyTransListData
:
[],
MyTransListData
:
[],
customList
:
[],
//同行列表
customList
:
[],
//同行列表
allCustomList
:
[],
//所有同行列表
allCustomList
:
[],
//所有同行列表
InvitationList
:
[],
//学员下拉数据
InvitationList
:
[],
//学员下拉数据
AllInvitationList
:
[],
AllInvitationList
:
[],
isNormal
:
false
,
isNormal
:
false
,
employeeList
:[],
employeeList
:
[],
myEmployeeList
:[],
myEmployeeList
:
[],
isEdit
:
false
isEdit
:
false
}
}
},
},
created
()
{
created
()
{
let
userinfo
=
this
.
getLocalStorage
();
let
userinfo
=
this
.
getLocalStorage
();
userinfo
.
ActionMenuList
.
map
(
x
=>
{
//判断权限
userinfo
.
ActionMenuList
.
map
(
x
=>
{
//判断权限
if
(
x
.
FunctionCode
==
"see_tcdetailed"
)
{
//判断是否可以查看其他明细
if
(
x
.
FunctionCode
==
"see_tcdetailed"
)
{
//判断是否可以查看其他明细
this
.
see_tcdetailed
=
true
;
this
.
see_tcdetailed
=
true
;
}
}
})
})
...
@@ -450,41 +297,37 @@ export default {
...
@@ -450,41 +297,37 @@ export default {
if
(
this
.
$route
.
query
&&
this
.
$route
.
query
.
preriodId
)
{
if
(
this
.
$route
.
query
&&
this
.
$route
.
query
.
preriodId
)
{
this
.
msg
.
BatchId
=
(
this
.
$route
.
query
.
preriodId
).
toString
()
this
.
msg
.
BatchId
=
(
this
.
$route
.
query
.
preriodId
).
toString
()
}
}
if
(
this
.
$route
.
query
&&
this
.
$route
.
query
.
UnionCashOutId
)
{
//提现ID
if
(
this
.
$route
.
query
&&
this
.
$route
.
query
.
UnionCashOutId
)
{
//提现ID
this
.
msg
.
UnionCashOutId
=
this
.
$route
.
query
.
UnionCashOutId
this
.
msg
.
UnionCashOutId
=
this
.
$route
.
query
.
UnionCashOutId
}
}
if
(
this
.
$route
.
query
&&
this
.
$route
.
query
.
OrderSourceType
)
{
//来源
if
(
this
.
$route
.
query
&&
this
.
$route
.
query
.
OrderSourceType
)
{
//来源
this
.
msg
.
OrderSourceType
=
this
.
$route
.
query
.
OrderSourceType
this
.
msg
.
OrderSourceType
=
parseInt
(
this
.
$route
.
query
.
OrderSourceType
)
}
}
if
(
this
.
$route
.
query
&&
this
.
$route
.
query
.
OrderSourceId
)
{
//人员ID
if
(
this
.
$route
.
query
&&
this
.
$route
.
query
.
OrderSourceId
)
{
//人员ID
this
.
msg
.
OrderSourceId
=
parseInt
(
this
.
$route
.
query
.
OrderSourceId
)
this
.
msg
.
OrderSourceId
=
parseInt
(
this
.
$route
.
query
.
OrderSourceId
)
}
}
if
(
this
.
$route
.
query
&&
this
.
$route
.
query
.
CommissionType
)
{
if
(
this
.
$route
.
query
&&
this
.
$route
.
query
.
CommissionType
)
{
this
.
msg
.
CommissionType
=
this
.
$route
.
query
.
CommissionType
;
this
.
msg
.
CommissionType
=
parseInt
(
this
.
$route
.
query
.
CommissionType
)
;
this
.
msg
.
Q_SelectNormal
=
2
this
.
msg
.
Q_SelectNormal
=
2
this
.
isNormal
=
true
this
.
isNormal
=
true
}
}
if
(
this
.
$route
.
query
&&
this
.
$route
.
query
.
iSFromDash
==
1
)
{
if
(
this
.
$route
.
query
&&
this
.
$route
.
query
.
iSFromDash
==
1
)
{
this
.
isEdit
=
true
;
this
.
isEdit
=
true
;
}
}
if
(
this
.
$route
.
query
&&
this
.
$route
.
query
.
Status
)
{
if
(
this
.
$route
.
query
&&
this
.
$route
.
query
.
Status
)
{
this
.
msg
.
Status
=
this
.
$route
.
query
.
Status
;
this
.
msg
.
Status
=
this
.
$route
.
query
.
Status
;
this
.
isNormal
=
false
;
this
.
isNormal
=
false
;
this
.
msg
.
Q_SelectNormal
=
'-1'
this
.
msg
.
Q_SelectNormal
=
'-1'
}
}
this
.
getList
()
this
.
getList
()
this
.
setClass
()
this
.
setClass
()
this
.
getBranchList
()
this
.
getBranchList
()
this
.
getPeriodList
()
this
.
getPeriodList
()
this
.
getCustomFrom
()
//来源
this
.
getCustomFrom
()
//来源
this
.
getEmployeeList
()
this
.
getEmployeeList
()
this
.
getStudentDorpDown
()
this
.
getStudentDorpDown
()
this
.
GetCustomerList
()
this
.
GetCustomerList
()
this
.
getStudentList
();
//学员下拉
this
.
getStudentList
();
//学员下拉
},
},
methods
:
{
methods
:
{
resetSearch
()
{
resetSearch
()
{
...
@@ -492,7 +335,6 @@ export default {
...
@@ -492,7 +335,6 @@ export default {
this
.
getList
()
this
.
getList
()
},
},
getList
()
{
getList
()
{
this
.
loading
=
true
;
this
.
loading
=
true
;
let
msg
=
JSON
.
parse
(
JSON
.
stringify
(
this
.
msg
))
let
msg
=
JSON
.
parse
(
JSON
.
stringify
(
this
.
msg
))
if
(
msg
.
OrderSourceId
==
''
||
msg
.
OrderSourceId
==
null
)
{
if
(
msg
.
OrderSourceId
==
''
||
msg
.
OrderSourceId
==
null
)
{
...
@@ -501,15 +343,13 @@ export default {
...
@@ -501,15 +343,13 @@ export default {
getCommissionStatistics
(
this
.
msg
).
then
(
res
=>
{
getCommissionStatistics
(
this
.
msg
).
then
(
res
=>
{
if
(
res
.
Code
==
1
)
{
if
(
res
.
Code
==
1
)
{
this
.
loading
=
false
;
this
.
loading
=
false
;
this
.
tableData
=
res
.
Data
.
PageData
.
List
this
.
tableData
=
res
.
Data
.
PageData
.
List
this
.
TotalCommission
=
res
.
Data
.
PageData
.
TotalCommission
this
.
TotalCommission
=
res
.
Data
.
PageData
.
TotalCommission
this
.
total
=
res
.
Data
.
Count
this
.
total
=
res
.
Data
.
Count
}
}
})
})
},
},
unique
(
arr
,
Name
)
{
//数组去重
unique
(
arr
,
Name
)
{
//数组去重
const
res
=
new
Map
();
const
res
=
new
Map
();
return
arr
.
filter
(
return
arr
.
filter
(
(
list
)
=>
!
res
.
has
(
list
.
text
)
&&
res
.
set
(
list
.
text
,
1
)
(
list
)
=>
!
res
.
has
(
list
.
text
)
&&
res
.
set
(
list
.
text
,
1
)
...
@@ -518,7 +358,6 @@ export default {
...
@@ -518,7 +358,6 @@ export default {
getlaiyuan
()
{
getlaiyuan
()
{
if
(
this
.
msg
.
OrderSourceType
==
-
1
)
{
if
(
this
.
msg
.
OrderSourceType
==
-
1
)
{
this
.
msg
.
OrderSourceId
=
0
this
.
msg
.
OrderSourceId
=
0
}
else
{
}
else
{
this
.
msg
.
OrderSourceId
=
''
this
.
msg
.
OrderSourceId
=
''
}
}
...
@@ -534,7 +373,6 @@ export default {
...
@@ -534,7 +373,6 @@ export default {
}
}
this
.
customFromList
=
res
.
Data
;
this
.
customFromList
=
res
.
Data
;
this
.
customFromList
.
unshift
(
obj
);
this
.
customFromList
.
unshift
(
obj
);
}
}
})
})
},
},
...
@@ -546,14 +384,12 @@ export default {
...
@@ -546,14 +384,12 @@ export default {
);
);
});
});
},
},
//筛选员工
//筛选员工
filterEmployee
(
val
,
update
,
abort
)
{
filterEmployee
(
val
,
update
,
abort
)
{
update
(()
=>
{
update
(()
=>
{
if
(
val
===
''
)
{
if
(
val
===
''
)
{
this
.
myEmployeeList
=
this
.
employeeList
this
.
myEmployeeList
=
this
.
employeeList
}
}
else
{
else
{
const
needle
=
val
.
toLowerCase
();
const
needle
=
val
.
toLowerCase
();
this
.
myEmployeeList
=
this
.
employeeList
.
filter
(
v
=>
v
.
EmployeeName
.
toLowerCase
().
indexOf
(
needle
)
>
-
1
);
this
.
myEmployeeList
=
this
.
employeeList
.
filter
(
v
=>
v
.
EmployeeName
.
toLowerCase
().
indexOf
(
needle
)
>
-
1
);
}
}
...
@@ -638,7 +474,7 @@ export default {
...
@@ -638,7 +474,7 @@ export default {
}
}
})
})
},
},
getBranchList
()
{
//获取校区
getBranchList
()
{
//获取校区
getSchoolDropdown
({}).
then
(
res
=>
{
getSchoolDropdown
({}).
then
(
res
=>
{
this
.
schoolList
=
res
.
Data
;
this
.
schoolList
=
res
.
Data
;
var
obj
=
{
var
obj
=
{
...
@@ -646,13 +482,8 @@ export default {
...
@@ -646,13 +482,8 @@ export default {
SId
:
'-1'
SId
:
'-1'
}
}
this
.
schoolList
.
unshift
(
obj
);
this
.
schoolList
.
unshift
(
obj
);
}).
catch
(()
=>
{
}).
catch
(()
=>
{})
})
},
},
//获取学员下拉信息
//获取学员下拉信息
getStudentList
()
{
getStudentList
()
{
var
qMsg
=
{
var
qMsg
=
{
...
@@ -678,8 +509,7 @@ export default {
...
@@ -678,8 +509,7 @@ export default {
}
}
})
})
},
},
getPeriodList
()
{
//获取周期下拉列表
getPeriodList
()
{
//获取周期下拉列表
getCommissionPeriodsList
({}).
then
(
res
=>
{
getCommissionPeriodsList
({}).
then
(
res
=>
{
if
(
res
.
Code
==
1
)
{
if
(
res
.
Code
==
1
)
{
this
.
PeriodsList
=
res
.
Data
this
.
PeriodsList
=
res
.
Data
...
@@ -688,41 +518,34 @@ export default {
...
@@ -688,41 +518,34 @@ export default {
Id
:
'0'
Id
:
'0'
}
}
this
.
PeriodsList
.
unshift
(
obj
)
this
.
PeriodsList
.
unshift
(
obj
)
}
}
})
})
},
},
tcexport
()
{
//导出
tcexport
()
{
//导出
var
msg
=
JSON
.
parse
(
JSON
.
stringify
(
this
.
msg
));
var
msg
=
JSON
.
parse
(
JSON
.
stringify
(
this
.
msg
));
let
text
=
'用户返佣/存折明细.xls'
let
text
=
'用户返佣/存折明细.xls'
if
(
msg
.
CommissionType
==
1
)
{
if
(
msg
.
CommissionType
==
1
)
{
text
=
'用户返佣.xls'
text
=
'用户返佣.xls'
}
}
if
(
msg
.
CommissionType
==
2
)
{
if
(
msg
.
CommissionType
==
2
)
{
text
=
'幸福存折明细.xls'
text
=
'幸福存折明细.xls'
}
}
EduDownLoad
(
"/CustomerCommission/GetCommissionStatisticsToExcel"
,
msg
,
text
)
EduDownLoad
(
"/CustomerCommission/GetCommissionStatisticsToExcel"
,
msg
,
text
)
},
},
goUrlclass
(
path
,
Names
)
{
//班级
goUrlclass
(
path
,
Names
)
{
//班级
let
Name
=
encodeURI
(
Names
)
let
Name
=
encodeURI
(
Names
)
this
.
OpenNewUrl
(
path
,
{
this
.
OpenNewUrl
(
path
,
{
ClassName
:
Name
,
ClassName
:
Name
,
});
});
},
},
goUrlorderList
(
path
,
row
)
{
//订单跳转
goUrlorderList
(
path
,
row
)
{
//订单跳转
this
.
OpenNewUrl
(
path
,
{
this
.
OpenNewUrl
(
path
,
{
OrderId
:
row
.
OrderId
,
OrderId
:
row
.
OrderId
,
// EnterID:row.UserId
});
});
},
},
},
},
}
}
</
script
>
</
script
>
<
style
lang=
"sass"
>
<
style
lang=
"sass"
>
@import
url('~assets/css/table.sass')
@import
url('~assets/
</
style
>
\ No newline at end of file
@import
url('~assets/css/table.sass')
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