Commit 943cbf9b authored by 罗超's avatar 罗超

新增报名统计

parent 28979cef
...@@ -46,6 +46,18 @@ export function getMyOrderPageList(data) { ...@@ -46,6 +46,18 @@ export function getMyOrderPageList(data) {
}) })
} }
/**
* 销售 报名统计
*
*/
export function getMyOrderStatisticsPageList(data) {
return request({
url: '/order/GetOrderPageListStatistics',
method: 'post',
data
})
}
/** /**
* 销售 我的订单状态 * 销售 我的订单状态
* *
......
...@@ -67,7 +67,7 @@ ...@@ -67,7 +67,7 @@
<span style="color: #02C499">{{item.OrderStateName}}</span> <span style="color: #02C499">{{item.OrderStateName}}</span>
</div> </div>
</td> </td>
<td style="border:none"> <td style="border:none" v-if="isEdit">
<q-btn flat size="xs" icon="edit" color="accent" style="font-weight:400" label="编辑" <q-btn flat size="xs" icon="edit" color="accent" style="font-weight:400" label="编辑"
@click="editOrder(item)" /> @click="editOrder(item)" />
<q-btn-dropdown flat size="xs" color="dark" label="更多" style="margin-left:10px;"> <q-btn-dropdown flat size="xs" color="dark" label="更多" style="margin-left:10px;">
...@@ -609,6 +609,11 @@ ...@@ -609,6 +609,11 @@
//权限数据 //权限数据
authObj: { authObj: {
type: Object, type: Object,
},
//是否可以编辑
isEdit:{
type:Boolean,
default:true
} }
}, },
data() { data() {
......
...@@ -248,7 +248,7 @@ ...@@ -248,7 +248,7 @@
</style> </style>
<template> <template>
<div class="flexOne AccountType"> <div class="flexOne AccountType page-body">
<div class="query-box"> <div class="query-box">
<ul> <ul>
<li> <li>
......
...@@ -240,7 +240,7 @@ ...@@ -240,7 +240,7 @@
} }
.page_CompanyAccount .query-box { .page_CompanyAccount .query-box {
padding: 20px 0 0; padding: 0;
} }
.page_PlatformAccount ._wAuto { .page_PlatformAccount ._wAuto {
...@@ -258,7 +258,7 @@ ...@@ -258,7 +258,7 @@
</style> </style>
<template> <template>
<div class='flexOne page_CompanyAccount'> <div class='flexOne page_CompanyAccount page-body'>
<div class='query-box' style="padding-bottom:20px;"> <div class='query-box' style="padding-bottom:20px;">
<ul> <ul>
<li> <li>
......
...@@ -4,7 +4,7 @@ ...@@ -4,7 +4,7 @@
</style> </style>
<template> <template>
<div class="page_CashierWork"> <div class="page_CashierWork page-body">
<div class="query-box"> <div class="query-box">
<ul> <ul>
<li> <li>
......
...@@ -293,7 +293,7 @@ ...@@ -293,7 +293,7 @@
} }
.page_CompanyAccount .query-box { .page_CompanyAccount .query-box {
padding: 20px 0 0; padding: 0;
} }
.page_PlatformAccount ._wAuto { .page_PlatformAccount ._wAuto {
...@@ -311,7 +311,7 @@ ...@@ -311,7 +311,7 @@
</style> </style>
<template> <template>
<div class='flexOne page_CompanyAccount'> <div class='flexOne page_CompanyAccount page-body'>
<div class='query-box' style="padding-bottom:20px;"> <div class='query-box' style="padding-bottom:20px;">
<ul> <ul>
<li> <li>
...@@ -345,10 +345,12 @@ ...@@ -345,10 +345,12 @@
</el-select> </el-select>
</li> </li>
<li> <li>
<input type="button" class="hollowFixedBtn" :value="$t('pub.searchBtn')" <!-- <input type="button" class="hollowFixedBtn" :value="$t('pub.searchBtn')"
@click="resetPageIndex(),getList()" /> @click="resetPageIndex(),getList()" /> -->
<input type="button" class="normalBtn" :value="$t('pub.addBtn')"  <q-btn color="primary" size="11px" :label="$t('pub.searchBtn')"  @click="resetPageIndex(),getList()" style="marginRight:10px"/>
@click="addShow=true,text=$t('pub.addBtn'),ed=false" /> <!-- <input type="button" class="normalBtn" :value="$t('pub.addBtn')"
@click="addShow=true,text=$t('pub.addBtn'),ed=false" /> -->
<q-btn color="primary" size="11px" :label="$t('pub.addBtn')"  @click="addShow=true,text=$t('pub.addBtn'),ed=false"/>
</li> </li>
</ul> </ul>
</div> </div>
...@@ -449,9 +451,11 @@ ...@@ -449,9 +451,11 @@
<p class="_tit">{{text}}{{$t('fnc.acc')}}</p> <p class="_tit">{{text}}{{$t('fnc.acc')}}</p>
</el-col> </el-col>
<el-col :span="4" class="_add_saveBtn"> <el-col :span="4" class="_add_saveBtn">
<button type="button" class="normalBtn" @click="submitForm('addMsg',1)">{{$t('pub.saveBtn')}}</button> <!-- <button type="button" class="normalBtn" @click="submitForm('addMsg',1)">{{$t('pub.saveBtn')}}</button> -->
<button class="hollowFixedBtn" type="button"  <q-btn color="primary" size="11px" :label="$t('pub.saveBtn')"  @click="submitForm('addMsg',1)" style="marginRight:10px"/>
@click="cancelEdit(),resetForm('addMsg'),addShow=false">{{$t('pub.cancelBtn')}}</button> <!-- <button class="hollowFixedBtn" type="button"
@click="cancelEdit(),resetForm('addMsg'),addShow=false">{{$t('pub.cancelBtn')}}</button> -->
 <q-btn text-color="primary" size="11px" :label="$t('pub.cancelBtn')"  @click="cancelEdit(),resetForm('addMsg'),addShow=false"/>
</el-col> </el-col>
</el-row> </el-row>
<el-form class="_info_box clearfix" :model="addMsg" ref="addMsg" :rules="rules" label-width="110px"> <el-form class="_info_box clearfix" :model="addMsg" ref="addMsg" :rules="rules" label-width="110px">
......
...@@ -119,7 +119,7 @@ ...@@ -119,7 +119,7 @@
} }
</style> </style>
<template> <template>
<div class="flexOne CostType"> <div class="flexOne CostType page-body">
<div class="query-box"> <div class="query-box">
<el-form class="_info_box clearfix" label-width="110px"> <el-form class="_info_box clearfix" label-width="110px">
<el-row v-if="transitionShow2"> <el-row v-if="transitionShow2">
......
...@@ -517,7 +517,7 @@ ...@@ -517,7 +517,7 @@
</style> </style>
<template> <template>
<div class="page_FProcessManagement"> <div class="page_FProcessManagement page-body">
<div class='query-box'> <div class='query-box'>
<ul> <ul>
<li><input type="button" class="normalBtn" value="新增流程" @click="gotoSub('addFinancialProcess',0,8)" /> <li><input type="button" class="normalBtn" value="新增流程" @click="gotoSub('addFinancialProcess',0,8)" />
......
...@@ -103,7 +103,7 @@ ...@@ -103,7 +103,7 @@
} }
</style> </style>
<template> <template>
<div class="flexOne currentManage"> <div class="flexOne currentManage page-body">
<div class="query-box"> <div class="query-box">
<ul> <ul>
<li> <li>
......
...@@ -116,7 +116,7 @@ ...@@ -116,7 +116,7 @@
} }
</style> </style>
<template> <template>
<div class="flexOne currentManage"> <div class="flexOne currentManage page-body">
<div class="query-box"> <div class="query-box">
<ul> <ul>
<li> <li>
......
...@@ -283,7 +283,7 @@ ...@@ -283,7 +283,7 @@
</style> </style>
<template> <template>
<div class="flexOne currentManage"> <div class="flexOne currentManage page-body">
<div class="query-box"> <div class="query-box">
<ul> <ul>
<li> <li>
......
<template> <template>
<div class="flexOne page_PlatformAccount" style="height:100%"> <div class="flexOne page_PlatformAccount page-body">
<div class="query-box" style="padding:0 0 10px 0 "> <div class="query-box" style="padding:0 0 10px 0 ">
<ul> <ul>
<li> <li>
...@@ -23,10 +23,9 @@ ...@@ -23,10 +23,9 @@
<el-input v-model="msg.Accountholder" @keyup.enter.native="getList()"></el-input> <el-input v-model="msg.Accountholder" @keyup.enter.native="getList()"></el-input>
</li> </li>
<li> <li>
<input type="button" class="normalBtn" value="查询" @click="getList()"> <q-btn color="primary" size="11px" label="查询" @click="getList()" style="marginRight:10px"/>
<input type="button" class="normalBtn" :value="$t('pub.addBtn')" <q-btn color="primary" size="11px" :label="$t('pub.addBtn')" @click="addShow=true,text=$t('pub.addBtn'),ed=false" style="marginRight:10px"/>
@click="addShow=true,text=$t('pub.addBtn'),ed=false"> <q-btn color="primary" size="11px" :label="$t('visa.v_daochu')" @click="downMuban()" />
<input type="button" class="normalBtn" @click="downMuban()" :value="$t('visa.v_daochu')">
</li> </li>
</ul> </ul>
</div> </div>
...@@ -100,9 +99,12 @@ ...@@ -100,9 +99,12 @@
<p class="_tit">{{text}}{{$t('fnc.acc')}}</p> <p class="_tit">{{text}}{{$t('fnc.acc')}}</p>
</el-col> </el-col>
<el-col :span="4" class="_add_saveBtn"> <el-col :span="4" class="_add_saveBtn">
<button type="button" class="normalBtn" @click="submitForm('addMsg',1)">{{$t('pub.saveBtn')}}</button> <!-- <button type="button" class="normalBtn" @click="submitForm('addMsg',1)">{{$t('pub.saveBtn')}}</button> -->
<button class="hollowFixedBtn" type="button" <q-btn color="primary" size="11px" :label="$t('pub.saveBtn')" @click="submitForm('addMsg',1)" style="marginRight:10px"/>
@click="cancelEdit(),resetForm('addMsg'),addShow=false">{{$t('pub.cancelBtn')}}</button> <!-- <button class="hollowFixedBtn" type="button"
@click="cancelEdit(),resetForm('addMsg'),addShow=false">{{$t('pub.cancelBtn')}}</button> -->
<q-btn
 text-color="primary" size="11px" :label="$t('pub.cancelBtn')" @click="cancelEdit(),resetForm('addMsg'),addShow=false"/>
</el-col> </el-col>
</el-row> </el-row>
<el-form class="_info_box clearfix" :model="addMsg" ref="addMsg" :rules="rules" label-width="110px"> <el-form class="_info_box clearfix" :model="addMsg" ref="addMsg" :rules="rules" label-width="110px">
...@@ -260,10 +262,13 @@ ...@@ -260,10 +262,13 @@
<p class="_tit">{{$t('fnc.qmtiaohui')}}</p> <p class="_tit">{{$t('fnc.qmtiaohui')}}</p>
</el-col> </el-col>
<el-col :span="4" class="_add_saveBtn"> <el-col :span="4" class="_add_saveBtn">
<button type="button" class="normalBtn" <!-- <button type="button" class="normalBtn"
@click="submitForm('SetProfitLossMsg',2)">{{$t('fnc.qrtijiao')}}</button> @click="submitForm('SetProfitLossMsg',2)">{{$t('fnc.qrtijiao')}}</button> -->
<button class="hollowFixedBtn" type="button" <q-btn color="primary" size="11px" :label="$t('fnc.qrtijiao')" @click="submitForm('SetProfitLossMsg',2)"/>
@click="cancelEdit(),resetForm('SetProfitLossMsg')">{{$t('pub.cancelBtn')}}</button>
<!-- <button class="hollowFixedBtn" type="button"
@click="cancelEdit(),resetForm('SetProfitLossMsg')">{{$t('pub.cancelBtn')}}</button> -->
<q-btn color="primary" size="11px" :label="$t('pub.cancelBtn')"  @click="cancelEdit(),resetForm('SetProfitLossMsg')"/>
</el-col> </el-col>
</el-row> </el-row>
<el-form class="_info_box clearfix" :model="SetProfitLossMsg" ref="SetProfitLossMsg" :rules="rules" <el-form class="_info_box clearfix" :model="SetProfitLossMsg" ref="SetProfitLossMsg" :rules="rules"
...@@ -1274,7 +1279,7 @@ ...@@ -1274,7 +1279,7 @@
</script> </script>
<style scoped> <style scoped>
@import "css/cssReset.css"; @import "css/cssReset.css";
.page_PlatformAccount .query-box li label { .page_PlatformAccount .query-box li label {
display: inline-block; display: inline-block;
min-width: 80px; min-width: 80px;
......
...@@ -45,7 +45,7 @@ ...@@ -45,7 +45,7 @@
</style> </style>
<template> <template>
<div class='flexOne page_CompanyAccDetail'> <div class='flexOne page_CompanyAccDetail page-body'>
<div class='query-box'> <div class='query-box'>
<el-form class="_info_box clearfix" label-width="110px" style="margin-top: 40px"> <el-form class="_info_box clearfix" label-width="110px" style="margin-top: 40px">
<el-row> <el-row>
......
...@@ -43,7 +43,7 @@ ...@@ -43,7 +43,7 @@
</style> </style>
<template> <template>
<div class="page_fnDm page_CashReport" @keyup.enter="getList()"> <div class="page_fnDm page_CashReport page-body" @keyup.enter="getList()">
<div class="query-box"> <div class="query-box">
<el-form class="_info_box clearfix" label-width="110px"> <el-form class="_info_box clearfix" label-width="110px">
<el-row style="padding:15px 20px 0 0;"> <el-row style="padding:15px 20px 0 0;">
......
...@@ -65,7 +65,7 @@ ...@@ -65,7 +65,7 @@
} }
</style> </style>
<template> <template>
<div class='flexOne page_CompanyAccDetail'> <div class='flexOne page_CompanyAccDetail page-body'>
<div class='query-box'> <div class='query-box'>
<el-form class="_info_box clearfix" label-width="110px" style="margin-top: 40px"> <el-form class="_info_box clearfix" label-width="110px" style="margin-top: 40px">
<el-row> <el-row>
......
...@@ -33,7 +33,7 @@ ...@@ -33,7 +33,7 @@
} }
</style> </style>
<template> <template>
<div class='flexOne page_CompanyAccDetail'> <div class='flexOne page_CompanyAccDetail page-body'>
<div class='query-box'> <div class='query-box'>
<el-form class="_info_box clearfix" label-width="110px" style="margin-top: 40px"> <el-form class="_info_box clearfix" label-width="110px" style="margin-top: 40px">
<el-row> <el-row>
......
...@@ -16,7 +16,7 @@ ...@@ -16,7 +16,7 @@
} }
</style> </style>
<template> <template>
<div class="page_fnDm page_CashReport" @keyup.enter="getList()"> <div class="page_fnDm page_CashReport page-body" @keyup.enter="getList()">
<div class="query-box"> <div class="query-box">
<el-form class="_info_box clearfix" label-width="110px"> <el-form class="_info_box clearfix" label-width="110px">
<el-row style="padding:15px 20px 0 0;"> <el-row style="padding:15px 20px 0 0;">
......
...@@ -4,7 +4,7 @@ ...@@ -4,7 +4,7 @@
</style> </style>
<template> <template>
<div class="page_accountingWork"> <div class="page_accountingWork page-body">
<div class="query-box"> <div class="query-box">
<ul> <ul>
<li> <li>
......
...@@ -762,9 +762,9 @@ input:-webkit-autofill { ...@@ -762,9 +762,9 @@ input:-webkit-autofill {
.query-box li:last-child { .query-box li:last-child {
float: right; float: right;
position: fixed; /* position: fixed;
top: 45px; top: 45px;
right: 20px; right: 20px; */
text-align: right; text-align: right;
margin-right: 0; margin-right: 0;
} }
...@@ -1243,6 +1243,7 @@ input:-webkit-autofill { ...@@ -1243,6 +1243,7 @@ input:-webkit-autofill {
line-height: normal!important line-height: normal!important
} }
.flexOne .el-button.is-circle { .flexOne .el-button.is-circle {
padding: 5px; padding: 5px;
} }
......
...@@ -103,7 +103,7 @@ ...@@ -103,7 +103,7 @@
} }
</style> </style>
<template> <template>
<div class="flexOne currentManage"> <div class="flexOne currentManage page-body">
<div class="query-box"> <div class="query-box">
<ul> <ul>
<li> <li>
......
...@@ -131,7 +131,7 @@ ...@@ -131,7 +131,7 @@
</style> </style>
<template> <template>
<div class="page_CapitalAllocation"> <div class="page_CapitalAllocation page-body">
<div class="query-box" style="margin-bottom:20px;"> <div class="query-box" style="margin-bottom:20px;">
<ul> <ul>
<li> <li>
......
...@@ -21,7 +21,7 @@ ...@@ -21,7 +21,7 @@
._log_t{padding: 10px;} ._log_t{padding: 10px;}
</style> </style>
<template> <template>
<div> <div class="page-body">
<ul class="_nav clearfix" v-if="showTab==0"> <ul class="_nav clearfix" v-if="showTab==0">
<li :class="active==1?'_active':''" @click="active=1,tabData(1)">{{$t('fnc.shoukuandan')}}</li> <li :class="active==1?'_active':''" @click="active=1,tabData(1)">{{$t('fnc.shoukuandan')}}</li>
<li :class="active==2?'_active':''" @click="active=2,tabData(2)">{{$t('fnc.fukuandan')}}</li> <li :class="active==2?'_active':''" @click="active=2,tabData(2)">{{$t('fnc.fukuandan')}}</li>
......
...@@ -479,7 +479,7 @@ ...@@ -479,7 +479,7 @@
</style> </style>
<template> <template>
<div class="page_fnDm page_RecPayQuery" @keyup.enter="resetPageIndex(),getPageList()"> <div class="page_fnDm page_RecPayQuery page-body" @keyup.enter="resetPageIndex(),getPageList()">
<div class="query-box"> <div class="query-box">
<el-form class="_info_box clearfix" label-width="110px"> <el-form class="_info_box clearfix" label-width="110px">
<el-row style="padding:15px 20px 0 0;"> <el-row style="padding:15px 20px 0 0;">
......
...@@ -156,7 +156,7 @@ ...@@ -156,7 +156,7 @@
} }
</style> </style>
<template> <template>
<div class="page_addCapitalAllocation" v-loading="loading"> <div class="page_addCapitalAllocation " v-loading="loading">
<div class="_top"> <div class="_top">
<p>{{BillName}}</p> <p>{{BillName}}</p>
<!-- <p><span>{{msg.TemplateId==34?$t('fnc.zongbu'):$t('fnc.fgongsi')}}{{$t('fnc.zjdbodan')}}</span></p>--> <!-- <p><span>{{msg.TemplateId==34?$t('fnc.zongbu'):$t('fnc.fgongsi')}}{{$t('fnc.zjdbodan')}}</span></p>-->
......
...@@ -94,7 +94,7 @@ ...@@ -94,7 +94,7 @@
} }
</style> </style>
<template> <template>
<div class="page_iisMg"> <div class="page_iisMg page-body">
<ul class="_nav clearfix"> <ul class="_nav clearfix">
<li :class="active==1?'_active':''" @click="active=1,msg.InvoiceApplyState=0,getPageList()">全部发票</li> <li :class="active==1?'_active':''" @click="active=1,msg.InvoiceApplyState=0,getPageList()">全部发票</li>
<li :class="active==2?'_active':''" @click="active=2,msg.InvoiceApplyState=3,getPageList()">已开发票</li> <li :class="active==2?'_active':''" @click="active=2,msg.InvoiceApplyState=3,getPageList()">已开发票</li>
......
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
</style> </style>
<template> <template>
<div class='flexOne'> <div class='flexOne page-body'>
<div class="query-box"> <div class="query-box">
<ul> <ul>
<li> <li>
......
...@@ -345,7 +345,7 @@ ...@@ -345,7 +345,7 @@
</style> </style>
<template> <template>
<div class='flexOne instMg'> <div class='flexOne instMg page-body'>
<div class='query-box'> <div class='query-box'>
<el-form label-width="110px"> <el-form label-width="110px">
<el-row> <el-row>
......
...@@ -183,7 +183,7 @@ ...@@ -183,7 +183,7 @@
</style> </style>
<template> <template>
<div class="page_paySetting"> <div class="page_paySetting page-body" >
<div class="query-box"> <div class="query-box">
<ul> <ul>
<li> <li>
......
<template>
<div class="page-body myOrder">
<div style="width: 100%;display: flex;justify-content: space-between">
<span style="font-size: 20px;font-weight: 400; ">日语培训订单</span>
<span>
<q-toggle v-model="msg.Q_NotCollect" label="只看款未收齐订单" class="q-mb-md" false-value="0" true-value="1"
@input="resetSearch" /></span>
</div>
<div class="page-search row items-center">
<div class="col row wrap q-mr-lg q-col-gutter-md">
<div class="col-3">
<q-input @change="resetSearch" clearable standout="bg-primary text-white" v-model="msg.OrderId" label="订单号"
@clear="resetSearch" maxlength="10" />
</div>
<div class="col-3">
<q-input @change="resetSearch" clearable standout="bg-primary text-white" v-model="msg.GuestName" label="学生名称"
@clear="resetSearch" maxlength="20" />
</div>
<div class="col-3">
<q-input @change="resetSearch" clearable standout="bg-primary text-white" v-model="msg.ClassName" label="班级名称"
@clear="resetSearch" maxlength="20" />
</div>
<div class="col-3">
<q-select @input="resetSearch" standout="bg-primary text-white" option-value="CourseId"
option-label="CourseName" v-model="msg.CouseId" :options="CourseList" emit-value map-options label="学习课程" />
</div>
<div class="col-3">
<q-select @input="resetSearch" standout="bg-primary text-white" option-value="Id" option-label="Name"
v-model="msg.OrderState" :options="OrderStateList" emit-value map-options label="订单状态" />
</div>
<div class="col-3">
<q-field filled>
 <template v-slot:control>
<el-date-picker v-model="dateList" @change="resetSearch()" value-format="yyyy-MM-dd" type="daterange" style="border:none;"
 range-separator="至"  start-placeholder="报名开始时间"  end-placeholder="报名结束时间">
 </el-date-picker>       
</template>
</q-field>
</div>
<div class="col-3">
<q-field filled>
 <template v-slot:control>
<el-date-picker v-model="dateList2" @change="resetSearch()" value-format="yyyy-MM-dd" type="daterange" style="border:none;"
 range-separator="至"  start-placeholder="开班开始时间"  end-placeholder="开班结束时间">
 </el-date-picker>       
</template>
</q-field>
</div>
<div class="col-3">
<q-select @input="resetSearch" standout="bg-primary text-white" option-value="Id"
option-label="EmployeeName" v-model="msg.EnterID" :options="EmployeeList" emit-value map-options label="业务员" />
</div>
</div>
</div>
<div class="col row wrap q-gutter-x-md" v-if="data.Statistics">
<div class="col stics">
<span class="stics-name">应收款</span>
<span>{{data.Statistics.PreferPrice?data.Statistics.PreferPrice:0}}</span>
</div>
<div class="col stics">
<span class="stics-name">实收款</span>
<span>{{data.Statistics.Income}}</span>
</div>
<div class="col stics">
<span class="stics-name">待收款</span>
<span style="color: #F72E52">{{data.Statistics.DueInMoney}}</span>
</div>
<div class="col stics">
<span class="stics-name">收客人数</span>
<span style="color:#2961FE;">{{data.Statistics.GuestNum}}人</span>
</div>
<div class="col stics">
<span class="stics-name">取消人数</span>
<span>{{data.Statistics.CancelNum}}人</span>
</div>
<div class="col stics">
<span class="stics-name">提成金额</span>
<span>{{data.Statistics.CommissionMoney}}</span>
</div>
<div class="col stics">
<span class="stics-name">额外奖励</span>
<span>{{data.Statistics.ExtraRewardMoney}}</span>
</div>
</div>
<div class="row col" style="justify-content: flex-end">
<div class="row tis">
<div class="tis-k" style="background: #2961FE"></div>
<span>已打单</span>
</div>
<div class="row tis">
<div class="tis-k" style="background: #02C499"></div>
<span>平台出纳已审核</span>
</div>
<div class="row tis">
<div class="tis-k" style="background: #F28C1D"></div>
<span>银行出纳已审核</span>
</div>
<div class="row tis">
<div class="tis-k" style="background: #3FC4FF"></div>
<span>已通过</span>
</div>
</div>
<div class="page-content">
<orderlist :dataList="data.List" :authObj="authObj" @success="refreshClassOrder" ref="orderL" :isEdit="false">
</orderlist>
<div class="row" style="justify-content: flex-end;padding: 5px 20px">
<q-pagination v-model="msg.pageIndex" :max="pageCount" @input="changePage" class="full-width justify-end"
color="primary" :input="true">
</q-pagination>
</div>
</div>
<classinfo-form v-if="isShowClassInfo" :seting-obj="classObjOption" @close="closeClass"
@success="refreshClassOrder">
</classinfo-form>
</div>
</template>
<script>
import {
getMyOrderStatisticsPageList, //获取订单列表
getOrderStateEnumList //订单状态
} from '../../api/sale/sale';
import {
queryCourseDropdownList,
} from '../../api/course/index'
import myOrderForm from '../../components/sale/myOrder-form'
import classinfoForm from '../../components/course/classinfo-form';
import orderlist from '../../components/sale/orderlist'
import { queryEmployee } from '../../api/users/user'
export default {
meta: {
title: "报名统计"
},
components: {
myOrderForm,
classinfoForm,
orderlist
},
data() {
return {
dialog: false,
data: {},
loading: false,
dateList: [], //报名时间
dateList2: [], //开班时间
msg: {
pageIndex: 1,
pageSize: 8,
OrderId: '', //订单号
GuestName: '', //客人名称
ClassName: '', //班级名称
CouseId: 0, //课程id
StartTime: '', //报名开始时间
EndTime: '', //报名结束时间
OPStartTime: '', //开班开始时间
OPEndTime: '', //开班结束时间
Q_NotCollect: '0', //查询未收齐 1是 0否
OrderState: 0, //订单状态 枚举
Q_OrderState: 1, //查询 1正常订单 2取消订单 (默认传1 如果 选择了订单状态 则传 0)
Q_OrderBy: 2, //写死 =2
PlatformTax: 0, //平台税金
EnterID:'',//业务员
},
//订单状态
OrderStateList: [],
pageCount: 0,
CourseList: [], //关联课程下拉数据
classObjOption: null,
isShowClassInfo: false, //是否显示课程信息
showone: false,
//权限判断
authObj: {
isShowGuestBtn: 1, //显示新增学员名单按钮
isShowFinanceBtn: true, //显示财务单据按钮
isShowTransOrder: true, //显示转交订单按钮
isShowSaleRemark: true, //显示修改销售备注
isShowBackClass: true, //显示退课按钮
isShowRenewClass: true, //显示续课按钮
},
EmployeeList:[],//业务员
}
},
created() {
if (this.$route.query.OrderId) {
this.msg.OrderId = this.$route.query.OrderId;
}
this.getOrderState();
this.getCourseList();
},
mounted() {
this.getList();
this.getEmployee(0);
},
methods: {
//订单状态
getOrderState() {
getOrderStateEnumList({}).then(res => {
if (res.Code == 1) {
var tempArray = res.Data;
if (!tempArray) {
tempArray = [];
}
tempArray.unshift({
Id: 0,
Name: "不限"
})
this.OrderStateList = tempArray;
}
})
},
//获取课程
getCourseList() {
queryCourseDropdownList({}).then(res => {
if (res.Code == 1) {
var tempArray = res.Data;
if (!tempArray) {
tempArray = [];
}
tempArray.unshift({
CourseId: 0,
CourseName: "不限"
})
this.CourseList = tempArray;
}
})
},
//翻页
changePage(val) {
if (this.showone == true) {
this.msg.pageIndex = val;
this.getList()
} else {
this.showone = true
}
},
resetSearch() {
this.msg.pageIndex = 1;
this.getList()
},
//获取菜单分页列表
getList() {
if (this.dateList && this.dateList.length > 0) {
this.msg.StartTime = this.dateList[0];
this.msg.EndTime = this.dateList[1];
} else {
this.msg.StartTime = '';
this.msg.EndTime = '';
}
if (this.dateList2 && this.dateList2.length > 0) {
this.msg.OPStartTime = this.dateList2[0];
this.msg.OPEndTime = this.dateList2[1];
} else {
this.msg.OPStartTime = '';
this.msg.OPEndTime = '';
}
let msg = JSON.parse(JSON.stringify(this.msg));
if (msg.OrderId == '' || msg.OrderId == null) {
msg.OrderId = 0
}
this.loading = true;
getMyOrderStatisticsPageList(msg).then(res => {
this.data = res.Data.PageData;
let OrderIds = []
this.data.List.forEach(x => {
OrderIds.push(x.OrderId)
})
this.loading = false
OrderIds = OrderIds.join(',')
if (this.data.List.length > 0) {
this.$refs.orderL.getOrderFinanceList(OrderIds, 1)
}
this.pageCount = res.Data.PageCount;
}).catch(() => {
this.loading = false
})
},
//刷新页面
refreshClassOrder() {
this.getList();
},
getClassInfo(obj) { //打开班级详情组件
this.classObjOption = obj;
this.isShowClassInfo = true;
},
//关闭班级信息弹窗
closeClass() {
this.isShowClassInfo = false;
},
//业务员
getEmployee(id) {
var qMsg = {
Dept_Id: 0
}
qMsg.Dept_Id=id;
queryEmployee(qMsg).then(res => {
if(res.Code==1){
this.EmployeeList = res.Data;
}
}).catch(() => {
})
},
}
}
</script>
<style>
li {
list-style-type: none;
}
.myOrder ul {
padding: 0px
}
.myOrder .price-popup {
border-radius: 4px;
}
.myOrder .el-range-editor .el-range-input {
background: transparent;
}
.myOrder .el-range-editor.el-input__inner {
background-color: transparent;
}
.myOrder .q-mb-md {
margin-bottom: 0;
}
.myOrder .stics {
padding: 10px 20px;
background: #DDDEE0;
border-radius: 4px;
font-size: 14px;
color: #000000;
font-weight: bold
}
.myOrder .stics .stics-name {
color: #2D2D2D;
font-weight: 600;
margin-right: 10px
}
.myOrder .tis {
margin: 10px 0;
align-items: center
}
.myOrder .tis .tis-k {
width: 10px;
height: 10px;
margin-right: 8px
}
.myOrder .tis span {
font-size: 14px;
color: #2D2D2D;
font-weight: 600;
margin-right: 20px
}
</style>
...@@ -525,6 +525,11 @@ const routes = [{ ...@@ -525,6 +525,11 @@ const routes = [{
component: () => component: () =>
import("pages/sale/myOrder.vue") import("pages/sale/myOrder.vue")
}, },
{
path: "/sale/orderStatistics", //销售 报名统计
component: () =>
import("pages/sale/orderStatistics.vue")
},
{ {
path: "/sale/studyOrder", //销售 我的留学就业订单 path: "/sale/studyOrder", //销售 我的留学就业订单
component: () => 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