Commit c0e04e34 authored by zhengke's avatar zhengke

1

parent 3bbc9815
......@@ -494,6 +494,16 @@ export function GetStudentStatic(data) {
});
}
//获取每月统计数据
export function GetStudentStaticMonth(data) {
return request({
url: '/StudentStat/GetStudentStaticMonth',
method: 'post',
data
});
}
<style>
.Sysuser_Date .el-input__inner {
background: transparent !important;
border: 0 !important;
}
</style>
<template>
<div class="page-body">
<div class="col row wrap q-mb-lg">
<div class="col-3 Sysuser_Date q-mr-lg">
<q-field filled dense>
<template v-slot:control>
<el-date-picker v-model="msg.YearStr" @change="getList" style="width:100%" value-format="yyyy" size="small" type="year" placeholder="选择年">
</el-date-picker>
</template>
</q-field>
</div>
</div>
<div class="page-content">
<q-table :pagination="msg" ref="table" :loading="loading" :style="{'height':tableHeight+'px'}" no-data-label="暂无相关数据" flat
class="sticky-column-table sticky-header-column-table no-bottom-table zk_Table" separator="none" :data="dataList" :columns="columns" row-key="">
<template v-slot:bottom>
</template>
</q-table>
</div>
</div>
</template>
<script>
import {
GetStudentStaticMonth
} from '../../api/sale/sale';
export default {
props: {},
meta: {
title: ""
},
components: {},
data() {
return {
columns: [{
name: 'MonthStr',
label: '日期',
field: 'MonthStr',
align: 'left'
},
{
name: 'PushCount',
label: '推送人数',
field: 'PushCount',
align: 'left'
},
{
name: 'NewCount',
label: '新客户',
field: 'NewCount',
align: 'left',
},
{
name: 'CommunicationCount',
label: '初步沟通(二次沟通)',
field: 'CommunicationCount',
align: 'left',
},
{
name: 'TrialLessonCount',
label: '预约试听(已到店,已试听)',
field: 'TrialLessonCount',
align: 'left'
},
{
name: 'NotContacted',
label: '待联系',
field: 'NotContacted',
align: 'left'
},
{
name: 'JPCount',
label: '日本语培',
field: 'JPCount',
align: 'left'
},
{
name: 'KRCount',
label: '韩国语培',
field: 'KRCount',
align: 'left'
},
{
name: 'FRCount',
label: '法国语培',
field: 'FRCount',
align: 'left'
},
{
name: 'JPStudyCount',
label: '日本留学',
field: 'JPStudyCount',
align: 'left'
},
{
name: 'KRStudyCount',
label: '韩国留学',
field: 'KRStudyCount',
align: 'left'
},
{
name: 'YGAStudyCount',
label: '英港澳留学',
field: 'YGAStudyCount',
align: 'left'
},
{
name: 'USStudyCount',
label: '美国留学',
field: 'USStudyCount',
align: 'left'
},
{
name: 'SGStudyCount',
label: '新加坡留学',
field: 'SGStudyCount',
align: 'left'
},
{
name: 'AXStudyCount',
label: '澳新留学',
field: 'AXStudyCount',
align: 'left'
},
{
name: 'OtherCount',
label: '其他',
field: 'OtherCount',
align: 'left'
},
{
name: 'ClassACount',
label: 'A类客户',
field: 'ClassACount',
align: 'left'
},
{
name: 'ClassBCount',
label: 'B类客户',
field: 'ClassBCount',
align: 'left'
},
{
name: 'ClassCCount',
label: 'C类客户',
field: 'ClassCCount',
align: 'left'
},
{
name: 'ClassDCount',
label: 'D类客户',
field: 'ClassDCount',
align: 'left'
},
{
name: 'CustomerCount',
label: '同行介绍',
field: 'CustomerCount',
align: 'left'
},
{
name: 'B2CCount',
label: '直客',
field: 'B2CCount',
align: 'left'
},
{
name: 'TransCount',
label: '学员转介绍',
field: 'TransCount',
align: 'left'
},
{
name: 'InnerCount',
label: '内部介绍',
field: 'InnerCount',
align: 'left'
},
{
name: 'InvalidCount',
label: '无效',
field: 'InvalidCount',
align: 'left'
},
{
name: 'SuspectedCount',
label: '疑似',
field: 'SuspectedCount',
align: 'left'
},
{
name: 'IntentionCount',
label: '意向',
field: 'IntentionCount',
align: 'left'
},
{
name: 'InvitationCount',
label: '近期可邀约',
field: 'InvitationCount',
align: 'left'
},
{
name: 'NegotiationCount',
label: '谈判',
field: 'NegotiationCount',
align: 'left'
},
{
name: 'ContractCount',
label: '签约(成交.续费)',
field: 'ContractCount',
align: 'left'
},
{
name: 'OrderMoney',
label: '语培签约金额',
field: 'OrderMoney',
align: 'left'
},
{
name: 'StudyOrderMoney',
label: '留学签约金额',
field: 'StudyOrderMoney',
align: 'left'
}
],
dataList: [],
loading: false,
myDate:'',
tableHeight:500,
msg: {
YearStr: '',
rowsPerPage: 1000
},
}
},
created() {
setTimeout(() => {
this.tableHeight = window.innerHeight - this.$refs.table.$el.offsetTop - 90;
}, 100)
},
mounted() {
let d = new Date();
this.msg.YearStr = d.getFullYear().toString();
this.getList();
},
methods: {
//获取数据
getList() {
GetStudentStaticMonth(this.msg).then(res => {
if (res.Code == 1) {
this.dataList = res.Data;
}
})
}
}
}
</script>
<style lang="sass">
@import url('~assets/css/table.sass')
</style>
<template>
<div>
</div>
</template>
<script>
export default {
props: {},
meta: {
title: ""
},
components: {
},
data() {
return {
tabCheck: 1,
columns: [{
name: 'DateStr',
label: '日期',
field: 'DateStr',
align: 'left'
},
{
name: 'January',
label: '1月',
field: 'January',
align: 'left'
},
{
name: 'February',
label: '2月',
field: 'February',
align: 'left',
},
{
name: 'March',
label: '3月',
field: 'March',
align: 'left',
},
{
name: 'April',
label: '四月',
field: 'April',
align: 'left'
},
{
name: 'May',
label: '五月',
field: 'May',
align: 'left'
},
{
name: 'June',
label: '六月',
field: 'June',
align: 'left'
},
{
name: 'July',
label: '七月',
field: 'July',
align: 'left'
},
{
name: 'August',
label: '八月',
field: 'August',
align: 'left'
},
{
name: 'September',
label: '九月',
field: 'September',
align: 'left'
},
{
name: 'October',
label: '十月',
field: 'October',
align: 'left'
},
{
name: 'November',
label: '十一月',
field: 'November',
align: 'left'
},
{
name: 'December',
label: '十二月',
field: 'December',
align: 'left'
}],
}
},
created() {
},
mounted() {},
methods: {
}
}
</script>
<template>
<div class="page-body">
<q-tabs v-model="tabCheck" narrow-indicator dense align="left" class="text-primary q-mb-sm">
<q-tab :ripple="false" :name="1" label="统计1" />
<q-tab :ripple="false" :name="2" label="统计2" />
</q-tabs>
<template v-if="tabCheck==1">
<everyMonthFirst></everyMonthFirst>
</template>
<template v-if="tabCheck==2">
<everyMonthSecond></everyMonthSecond>
</template>
</div>
</template>
<script>
import everyMonthFirst from '../sale/everyMonthFirst';
import everyMonthSecond from '../sale/everyMonthSecond';
export default {
props: {},
meta: {
title: ""
},
components: {
everyMonthFirst,
everyMonthSecond
},
data() {
return {
tabCheck: 1,
}
},
created() {
},
mounted() {},
methods: {
}
}
</script>
......@@ -1070,6 +1070,11 @@ const routes = [{
component: ()=>
import("pages/sale/monthTotal.vue")
},
{
path: "/sale/everyMonthTotal", //每月统计
component: ()=>
import("pages/sale/everyMonthTotal.vue")
},
{
path: "/activity/activeType", //活动 活动类型
component: () =>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment