Commit 0d7265f5 authored by 黄奎's avatar 黄奎

新增页面

parent 044a8938
......@@ -202,3 +202,16 @@ export function getClassOrderLogList(data) {
data
})
}
/**
* 获取班级订单列表
*
*/
export function quertClassOrderList(data) {
return request({
url: '/order/GetClassOrderList',
method: 'post',
data
})
}
\ No newline at end of file
<template>
</template>
\ No newline at end of file
<tbody>
</tbody>
</template>
......@@ -13,7 +13,7 @@
<div class="tis-k" style="background: #F28C1D"></div>
<span>带班老师头像</span>
</div>
</div>
<div class="page-content">
......@@ -288,14 +288,8 @@
</template>
<script>
import {
getMyOrderPageList, //获取订单列表
getOrderStateEnumList, //订单状态
updateOrderRemark, //修改订单备注
setClassOrderCareOf, //订单转交
cancelClassOrder, //订单取消
getClassOrderInfo, //获取订单详情
getOrderSourceEnumList, //获取订单来源 枚举
setClassOrder, //修改订单
quertClassOrderList
} from '../../api/sale/sale';
import {
queryEmployee
......@@ -314,33 +308,10 @@
dialog: false,
data: {},
loading: false,
dateList: [], //报名时间
dateList2: [], //开班时间
msg: {
pageIndex: 1,
pageSize: 10,
OrderId: 0, //订单号
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, //平台税金
ClassId: 1
},
//订单状态
OrderState: [],
pageCount: 0,
ClassList: [], //关联课程下拉数据
alert: false,
options: [],
CareOfmsg: {
model: '',
OrderId: 0,
......@@ -356,9 +327,7 @@
}
},
created() {
this.getOrderState();
this.CourseList();
this.getOrderSEList()
},
mounted() {
this.getList();
......@@ -372,69 +341,15 @@
closeMOSaveForm() {
this.isShowmyorderForm = false;
},
getOrderSEList() {
getOrderSourceEnumList({}).then(res => {
if (res.Code == 1) {
var tempArray = res.Data;
this.SourceEnumList = tempArray;
this.enrollMsg.OrderSource = tempArray[0].Id;
}
})
},
//订单状态
getOrderState() {
getOrderStateEnumList({}).then(res => {
if (res.Code == 1) {
var tempArray = res.Data;
if (!tempArray) {
tempArray = [];
}
tempArray.unshift({
Id: 0,
Name: "不限"
})
this.OrderState = tempArray;
}
})
},
//获取课程
CourseList() {
queryCourseDropdownList({}).then(res => {
if (res.Code == 1) {
this.ClassList = res.Data;
}
})
},
//翻页
changePage(val) {
this.msg.pageIndex = val;
this.getList()
},
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 = '';
}
this.loading = true;
getMyOrderPageList(this.msg).then(res => {
quertClassOrderList(this.msg).then(res => {
this.loading = false
this.data = res.Data.PageData
this.pageCount = res.Data.PageCount;
this.data = res.Data
}).catch(() => {
this.loading = false
})
......
......@@ -102,6 +102,11 @@ const routes = [{
component: () =>
import("pages/course/classManage.vue")
},
{
path: "/course/classorder", //班级订单
component: () =>
import("pages/course/classorder.vue")
},
{
path: "/course/teachplan", //教案管理
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