Commit ccb36cf9 authored by 黄奎's avatar 黄奎

页面修改

parent 0cbb133c
......@@ -163,6 +163,11 @@
<q-item-label>申请审核</q-item-label>
</q-item-section>
</q-item>
<q-item clickable v-close-popup @click="GoToOrder(props.row)">
<q-item-section>
<q-item-label>订单中心</q-item-label>
</q-item-section>
</q-item>
</q-list>
</q-btn-dropdown>
</q-td>
......@@ -352,6 +357,13 @@
}
},
methods: {
//跳转到留学就业订单中心
GoToOrder(item) {
var tempStr = '/studyAbroad/studyemploymentorder?SourceId=' + item.Id;
this.$router.push({
path: tempStr
});
},
//显示详情
ShowInfo(item) {
this.studyObj = item;
......
......@@ -163,6 +163,11 @@
<q-item-label>申请审核</q-item-label>
</q-item-section>
</q-item>
<q-item clickable v-close-popup @click="GoToOrder(props.row)">
<q-item-section>
<q-item-label>订单中心</q-item-label>
</q-item-section>
</q-item>
</q-list>
</q-btn-dropdown>
</q-td>
......@@ -353,6 +358,13 @@
}
},
methods: {
//跳转到留学就业订单中心
GoToOrder(item) {
var tempStr = '/studyAbroad/studyemploymentorder?SourceId=' + item.Id;
this.$router.push({
path: tempStr
});
},
//显示详情
ShowInfo(item) {
this.studyObj = item;
......
<template>
<div class="page-body myOrder">
<div class="row col" style="height: 40px">
<div class="row col" style="justify-content: space-between;align-items: center;margin-bottom: 10px">
<div>
<template v-if="data&& data.ClassInfo">
{{data.ClassInfo.StudyName}}
</template>
</div>
</div>
</div>
<div class="page-content">
<orderlist :dataList="dataList" ref="orderL" :authObj="authObj" :cancelList="CancelList"
@success="refreshClassOrder"></orderlist>
</div>
</div>
</template>
<script>
import {
quertClassOrderList
} from '../../api/sale/sale';
import orderlist from '../../components/sale/orderlist'
export default {
components: {
orderlist
},
data() {
return {
data: {},
msg: {
SourceId: 0
},
//正常订单
dataList: [],
//取消订单
CancelList: [],
//权限判断
authObj: {
isShowName: false, //不显示班级名称
isShowEditSale: true, //显示修改销售按钮
isShowEducationRemark: true, //显示修改教务备注
isShowPrincipalRemark: true, //显示校长备注
isShowManagerRemark: true, //显示总经理备注
isShowCommissionEdit: true, //显示修改提成按钮
isShowRewardEdit: true, //显示修改额外提成按钮
}
}
},
created() {
if (this.$route.query.SourceId) {
this.msg.SourceId = this.$route.query.SourceId;
}
this.getList();
},
mounted() {
},
methods: {
//获取菜单分页列表
getList() {
this.loading = true;
quertClassOrderList(this.msg).then(res => {
this.data = res.Data;
if (this.data && this.data.OrderList && this.data.OrderList.NorList) {
this.dataList = this.data.OrderList.NorList;
let OrderIds = []
this.dataList.forEach(x => {
OrderIds.push(x.OrderId)
})
if (OrderIds.length > 0) {
OrderIds = OrderIds.join(',')
if (this.dataList.length > 0) {
this.$refs.orderL.getOrderFinanceList(OrderIds, 1)
}
}
}
if (this.data && this.data.OrderList && this.data.OrderList.CancelList) {
this.CancelList = this.data.OrderList.CancelList;
let OrderIds = []
this.CancelList.forEach(x => {
OrderIds.push(x.OrderId)
})
if (OrderIds.length > 0) {
OrderIds = OrderIds.join(',')
if (this.CancelList.length > 0) {
this.$refs.orderL.getOrderFinanceList(OrderIds, 2)
}
}
}
this.loading = false
}).catch(() => {
this.loading = false
})
},
//刷新页面
refreshClassOrder() {
this.getList();
}
}
}
</script>
<style>
</style>
......@@ -127,7 +127,6 @@ const routes = [{
component: () =>
import("pages/course/classorder.vue")
},
{
path: "/course/socialclass", //教学奖励-社会班设置
component: () =>
......@@ -552,6 +551,11 @@ const routes = [{
component: () =>
import("pages/studyAbroad/employment.vue")
},
{
path: "/studyAbroad/studyemploymentorder", //留学就业订单中心
component: () =>
import("pages/studyAbroad/studyemploymentorder.vue")
},
{
path: "/studyAbroad/supplier", //供应商
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