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
3fad5e86
Commit
3fad5e86
authored
Jun 02, 2022
by
youjie
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
no message
parent
dfd0be6e
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
261 additions
and
0 deletions
+261
-0
index.js
src/api/finance/index.js
+11
-0
salesRank.vue
src/pages/sale/salesRank.vue
+245
-0
routes.js
src/router/routes.js
+5
-0
No files found.
src/api/finance/index.js
View file @
3fad5e86
import
request
from
'../../utils/request'
import
request_zc
from
'../../utils/request_zc'
/**
* 获取销售排名数据
*
*/
export
function
GetConsultantRankList
(
data
)
{
return
request
({
url
:
'/FInance/GetConsultantRankList'
,
method
:
'post'
,
data
})
}
/**
* 获取收支明细数据
*
...
...
src/pages/sale/salesRank.vue
0 → 100644
View file @
3fad5e86
<
style
>
.baseSet_Title
{
width
:
120px
!important
;
padding
:
18px
0
0
16px
;
text-align
:
right
;
}
.lessonCostStatistics
.border-bottom
{
/* border-bottom: 1px dashed #EEE; */
padding-bottom
:
5px
;
margin-bottom
:
5px
;
}
.lessonCostStatistics
.text-bottom
{
height
:
32px
;
line-height
:
32px
;
margin-bottom
:
10px
;
}
.lessonCostStatistics
._icon_btn
i
.icon-sousuo
{
background-color
:
#47BF8C
;
}
.lessonCostStatistics
._icon_btn
.icon-add
{
background-color
:
#47BF8C
;
}
.lessonCostStatistics
._icon_btn
i
{
width
:
26px
;
height
:
26px
;
display
:
inline-block
;
color
:
white
!important
;
border-radius
:
50%
;
text-align
:
center
;
line-height
:
26px
;
margin-right
:
10px
;
cursor
:
pointer
;
outline
:
none
;
}
.lessonCostStatistics
.el-table
td
,
.el-table
th
{
padding
:
5px
0
;
}
.lessonCostStatistics
.el-input
{
width
:
100%
;
border
:
none
;
background-color
:
transparent
;
}
.lessonCostStatistics
.page-search
.el-input__inner
{
width
:
100%
;
border
:
none
;
background-color
:
transparent
;
}
</
style
>
<
template
>
<div
class=
"page-body lessonCostStatistics"
>
<div
class=
"page-search row items-center"
>
<div
class=
"col row wrap q-mr-lg q-col-gutter-md"
>
<div
class=
"col-3"
>
<q-field
filled
>
<template
v-slot:control
>
<el-date-picker
v-model=
"msg.StartMonth"
type=
"month"
placeholder=
"开始月份"
size=
"small"
style=
"width:47%;"
value-format=
"yyyy-MM"
:clearable=
'false'
@
change=
"choicemonth(1)"
clear-icon=
"iconfont icon-guanbi"
>
</el-date-picker>
至
<el-date-picker
v-model=
"msg.EndMonth"
type=
"month"
placeholder=
"结束月份"
size=
"small"
style=
"width:47%;"
value-format=
"yyyy-MM"
:clearable=
'false'
@
change=
"choicemonth(2)"
clear-icon=
"iconfont icon-guanbi"
>
</el-date-picker>
</
template
>
</q-field>
</div>
</div>
</div>
<div
class=
"page-search row items-center"
style=
"justify-content: space-between;"
>
<span
style=
"font-size: 20px;font-weight: 400;"
>
销售排名
</span>
<q-btn
color=
"primary"
size=
"11px"
label=
"导出"
@
click=
"txexport"
style=
"margin-left:10px"
/>
</div>
<
template
>
<el-table
ref=
"filterTable"
:data=
"tableData"
v-loading=
'loading'
:header-cell-style=
"
{backgroundColor:'#f5f6f7', color: '#a8a8b3'}" border style="width: 100%">
<el-table-column
prop=
"HelpEnterName"
label=
"顾问姓名"
></el-table-column>
<el-table-column
prop=
"PreferPrice"
label=
"应收"
>
<template
slot-scope=
"scope"
>
<span
style=
"cursor: pointer;text-decoration: underline;"
@
click=
'gobaoming(scope.row)'
>
{{
scope
.
row
.
PreferPrice
}}
</span>
</
template
>
</el-table-column>
<el-table-column
prop=
"Income"
label=
"实收"
></el-table-column>
<el-table-column
prop=
"PlatformTax"
label=
"平台税金"
>
</el-table-column>
<el-table-column
prop=
"Refund"
label=
"退款"
></el-table-column>
<el-table-column
prop=
"DueInMoney"
label=
"待收金额"
>
</el-table-column>
<el-table-column
prop=
"OrderNum"
label=
"订单数量"
>
</el-table-column>
</el-table>
</template>
</div>
</template>
<
script
>
import
{
GetConsultantRankList
,
}
from
'../../api/finance/index'
import
{
EduDownLoad
,
}
from
'../../api/common/common'
;
export
default
{
meta
:
{
title
:
"销售排名表"
},
props
:
{},
components
:
{},
data
()
{
return
{
loading
:
false
,
valuemonth
:
''
,
valueyear
:
''
,
//列表数据参数
msg
:
{
StartMonth
:
''
,
EndMonth
:
''
,
},
datetype
:
'2'
,
pageCount
:
0
,
listData
:
{},
tableData
:
[],
total
:
0
,
CompanyList
:
[],
TeacherList
:
[],
EmployeeList
:
[],
AllemployeeList
:
[],
datetypelist
:
[
{
Id
:
'2'
,
Name
:
'月份'
},
{
Id
:
'1'
,
Name
:
'年份'
},
]
}
},
created
()
{
let
userinfo
=
this
.
getLocalStorage
();
var
myDate
=
new
Date
();
this
.
msg
.
StartMonth
=
myDate
.
getFullYear
()
+
"-"
+
(
myDate
.
getMonth
()
+
1
)
this
.
msg
.
EndMonth
=
myDate
.
getFullYear
()
+
"-"
+
(
myDate
.
getMonth
()
+
1
)
this
.
valueyear
=
myDate
.
getFullYear
().
toString
()
},
mounted
()
{
this
.
getList
();
//获取销售排名列表
},
methods
:
{
getList
()
{
if
(
this
.
datetype
==
1
)
{
this
.
msg
.
StartMonth
=
this
.
valueyear
+
'-01'
;
this
.
msg
.
EndMonth
=
this
.
valueyear
+
'-12'
;
}
this
.
loading
=
true
;
GetConsultantRankList
(
this
.
msg
).
then
(
res
=>
{
if
(
res
.
Code
==
1
)
{
this
.
loading
=
false
;
this
.
tableData
=
res
.
Data
}
})
},
handleCurrentChanges
(
val
)
{
this
.
getList
()
},
txexport
()
{
let
text
=
''
;
if
(
this
.
datetype
==
2
)
{
if
(
new
Date
(
this
.
msg
.
StartMonth
).
getTime
()
==
new
Date
(
this
.
msg
.
EndMonth
).
getTime
()){
text
=
this
.
msg
.
StartMonth
+
'销售排名.xls'
}
else
{
text
=
this
.
msg
.
StartMonth
+
'-'
+
this
.
msg
.
EndMonth
+
'销售排名.xls'
}
}
else
if
(
this
.
datetype
==
1
)
{
text
=
this
.
valueyear
+
'销售排名.xls'
}
var
msg
=
JSON
.
parse
(
JSON
.
stringify
(
this
.
msg
));
EduDownLoad
(
"/FInance/GetConsultantRankListToExcel"
,
msg
,
text
)
},
choicemonth
(
val
){
let
StartMonth
=
JSON
.
parse
(
JSON
.
stringify
(
this
.
msg
.
StartMonth
))
let
EndMonth
=
JSON
.
parse
(
JSON
.
stringify
(
this
.
msg
.
EndMonth
))
if
(
val
==
1
){
//判断选择的时候开始时间大于结束时间的处理
if
(
new
Date
(
StartMonth
).
getTime
()
>
new
Date
(
EndMonth
).
getTime
()){
this
.
msg
.
EndMonth
=
this
.
msg
.
StartMonth
}
}
else
{
if
(
new
Date
(
this
.
msg
.
StartMonth
).
getTime
()
>
new
Date
(
this
.
msg
.
EndMonth
).
getTime
()){
this
.
msg
.
StartMonth
=
this
.
msg
.
EndMonth
}
}
let
diff
=
this
.
dateMinus
(
this
.
msg
.
StartMonth
,
this
.
msg
.
EndMonth
)
if
(
diff
>
11
){
this
.
$q
.
notify
({
type
:
'negative'
,
position
:
"top"
,
message
:
`月份不能超过12个月`
})
if
(
val
==
1
){
//如果超哥12过月的处理
this
.
msg
.
StartMonth
=
this
.
msg
.
EndMonth
}
else
{
this
.
msg
.
EndMonth
=
this
.
msg
.
StartMonth
}
return
}
setTimeout
(()
=>
{
this
.
handleCurrentChanges
(
1
)
},
10
)
},
//两个日期相差几个月
dateMinus
(
d1
,
d2
)
{
var
m1
=
parseInt
(
d1
.
split
(
"-"
)[
1
].
replace
(
/^0+/
,
""
))
+
parseInt
(
d1
.
split
(
"-"
)[
0
])
*
12
;
var
m2
=
parseInt
(
d2
.
split
(
"-"
)[
1
].
replace
(
/^0+/
,
""
))
+
parseInt
(
d2
.
split
(
"-"
)[
0
])
*
12
;
var
diff
=
m2
-
m1
;
return
diff
;
},
gobaoming
(
row
){
//跳转到报名列表
let
EndTime
=
this
.
msg
.
EndMonth
if
(
new
Date
(
this
.
msg
.
StartMonth
).
getTime
()
==
new
Date
(
this
.
msg
.
EndMonth
).
getTime
()){
var
d1
=
new
Date
(
this
.
msg
.
EndMonth
);
d1
.
setMonth
(
d1
.
getMonth
()
+
1
);
var
month
=
d1
.
getMonth
()
+
1
;
EndTime
=
d1
.
getFullYear
()
+
'-'
+
month
}
this
.
OpenNewUrl
(
'/sale/orderStatistics'
,
{
EnterID
:
row
.
CourseConsultantId
,
StartTime
:
this
.
msg
.
StartMonth
,
EndTime
:
EndTime
,
});
}
},
}
</
script
>
<
style
lang=
"sass"
>
@import
url('~assets/css/table.sass')
</
style
>
\ No newline at end of file
src/router/routes.js
View file @
3fad5e86
...
...
@@ -1260,6 +1260,11 @@ const routes = [{
component
:
()
=>
import
(
"pages/sale/yearTotal.vue"
)
},
{
path
:
"/sale/salesRank"
,
//销售排名
component
:
()
=>
import
(
"pages/sale/salesRank.vue"
)
},
{
path
:
"/sale/customDailyTotal"
,
//市场部每日统计
component
:
()
=>
...
...
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