Commit 448eddb0 authored by 黄奎's avatar 黄奎

页面修改

parent ad06b6b9
...@@ -21,7 +21,7 @@ ...@@ -21,7 +21,7 @@
</div> </div>
</div> </div>
<div style="padding:20px 15px;"> <div style="padding:20px 15px;">
<q-input filled stack-label maxlength="100" :dense="false" @keyup.native="checkInteger(OrderMsg,'GuestNum')" <q-input filled stack-label maxlength="100" :disable="true" :dense="false" @keyup.native="checkInteger(OrderMsg,'GuestNum')"
v-model="OrderMsg.GuestNum" @input="changePrice(),countPrice()" class="col-12" label="人数" v-model="OrderMsg.GuestNum" @input="changePrice(),countPrice()" class="col-12" label="人数"
:rules="[val => !!val || '请填写人数']" /> :rules="[val => !!val || '请填写人数']" />
...@@ -88,7 +88,7 @@ ...@@ -88,7 +88,7 @@
queryEmployee queryEmployee
} from '../../api/users/user'; //获取员工 } from '../../api/users/user'; //获取员工
import { import {
getClassPage_ck getClassDropDownList
} from '../../api/school/index';//获取校区列表 } from '../../api/school/index';//获取校区列表
import { import {
...@@ -174,10 +174,12 @@ ...@@ -174,10 +174,12 @@
} }
}); });
}, },
//获取班级列表 //获取班级列表
getClass() { getClass() {
getClassPage_ck({}).then(res => { getClassDropDownList({
IsAddDefault:0,
IsQuerySurplus:1
}).then(res => {
if (res.Code == 1) { if (res.Code == 1) {
let tempArray = res.Data; let tempArray = res.Data;
if (!tempArray) { if (!tempArray) {
...@@ -191,7 +193,6 @@ ...@@ -191,7 +193,6 @@
} }
}) })
}, },
//选择课程切换价格 //选择课程切换价格
changePrice() { changePrice() {
let temp = this.CourseList.find(x => x.CourseId == this.OrderMsg.CourseId); let temp = this.CourseList.find(x => x.CourseId == this.OrderMsg.CourseId);
......
...@@ -44,8 +44,9 @@ ...@@ -44,8 +44,9 @@
</div> </div>
</div> </div>
<q-table :pagination="msg" :loading="loading" no-data-label="暂无相关数据" flat class="sticky-column-table sticky-right-column-table" <q-table :pagination="msg" :loading="loading" no-data-label="暂无相关数据" flat
separator="none" :data="dataList" :columns="columns" row-key="name"> class="sticky-column-table sticky-right-column-table" separator="none" :data="dataList" :columns="columns"
row-key="name">
<template v-slot:top="props"> <template v-slot:top="props">
<div class="col-2 q-table__title">约课管理</div> <div class="col-2 q-table__title">约课管理</div>
<q-space /> <q-space />
...@@ -54,7 +55,8 @@ ...@@ -54,7 +55,8 @@
<template v-slot:body-cell-OrderId="props"> <template v-slot:body-cell-OrderId="props">
<q-td :props="props"> <q-td :props="props">
<template v-if="props.row.OrderId && props.row.OrderId>0"> <template v-if="props.row.OrderId && props.row.OrderId>0">
<span style="color:blue;cursor:pointer" @click="goOrderStatistics(props.row.OrderId)">{{props.row.OrderId}}</span> <span style="color:blue;cursor:pointer"
@click="goOrderStatistics(props.row.OrderId)">{{props.row.OrderId}}</span>
</template> </template>
</q-td> </q-td>
</template> </template>
...@@ -74,7 +76,7 @@ ...@@ -74,7 +76,7 @@
<span style="color:green;cursor:pointer;"> {{props.row.ReserveStatusStr}}</span> <span style="color:green;cursor:pointer;"> {{props.row.ReserveStatusStr}}</span>
</template> </template>
<template v-if="props.row.ReserveStatus==2"> <template v-if="props.row.ReserveStatus==2">
<span style="color:#ff00ff;cursor:pointer;"> {{props.row.ReserveStatusStr}}</span> <span style="color:#ff00ff;cursor:pointer;"> {{props.row.ReserveStatusStr}}</span>
  <q-tooltip :offset="[10, 10]">   <q-tooltip :offset="[10, 10]">
   {{props.row.Remark}}    {{props.row.Remark}}
 </q-tooltip>  </q-tooltip>
...@@ -91,8 +93,8 @@ ...@@ -91,8 +93,8 @@
<q-td :props="props"> <q-td :props="props">
<q-btn flat size="xs" @click="getDetail(props.row)" icon="iconfont icon-View" color="accent" <q-btn flat size="xs" @click="getDetail(props.row)" icon="iconfont icon-View" color="accent"
style="font-weight:400" label="详情" /> style="font-weight:400" label="详情" />
<q-btn flat size="xs" icon="delete" color="negative" style="font-weight:400;" label="删除" <q-btn flat size="xs" v-if="props.row.ReserveStatus!=1" icon="delete" color="negative" style="font-weight:400;" label="删除"
@click="deleteAppoint(props.row)" /> @click="deleteAppoint(props.row)" />
<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;"
v-if="props.row.ReserveStatus==0"> v-if="props.row.ReserveStatus==0">
<q-list> <q-list>
...@@ -120,12 +122,12 @@ ...@@ -120,12 +122,12 @@
:input="true" @input="changePage" /> :input="true" @input="changePage" />
</template> </template>
</q-table> </q-table>
<yuekeForm v-if="isShowYue" :ChoiceType="ChoiceType" :save-obj="visitorItem" @close="closeYuekeForm" <yuekeForm v-if="isShowYue" :ChoiceType="ChoiceType" :save-obj="visitorItem" @close="closeVisitorForm"
@success="refreshPage"></yuekeForm> @success="refreshPage"></yuekeForm>
<exorderForm v-if="isShowExOrder" :save-obj="orderObj" @close="closeOrderForm" @success="refreshPage"></exorderForm> <exorderForm v-if="isShowExOrder" :save-obj="visitorItem" @close="closeVisitorForm" @success="refreshPage">
<appodetailForm v-if="isShowDetail" :save-obj="orderObj" @close="closeAppForm"></appodetailForm>
<exorderForm v-if="isShowExOrder" :save-obj="visitorItem" @close="closeOrderForm" @success="refreshPage">
</exorderForm> </exorderForm>
<appodetailForm v-if="isShowDetail" :save-obj="visitorItem" @close="closeVisitorForm"></appodetailForm>
</div> </div>
</template> </template>
...@@ -208,7 +210,6 @@ ...@@ -208,7 +210,6 @@
field: 'ClassContent', field: 'ClassContent',
align: 'left' align: 'left'
}, },
{ {
name: 'ReserveStatusStr', name: 'ReserveStatusStr',
label: '状态', label: '状态',
...@@ -250,7 +251,7 @@ ...@@ -250,7 +251,7 @@
ChoiceType: 0, ChoiceType: 0,
visitorItem: {}, //选中的对象 visitorItem: {}, //选中的对象
isShowExOrder: false, isShowExOrder: false,
orderObj: {},
isShowDetail: false //显示详情 isShowDetail: false //显示详情
} }
}, },
...@@ -308,17 +309,17 @@ ...@@ -308,17 +309,17 @@
this.visitorItem = item; this.visitorItem = item;
}, },
//关闭弹窗 //关闭弹窗
closeYuekeForm() { closeVisitorForm() {
this.isShowYue = false; this.isShowYue = false;
},
closeOrderForm() {
this.isShowExOrder = false; this.isShowExOrder = false;
},
closeAppForm() {
this.isShowDetail = false; this.isShowDetail = false;
}, },
//刷新页面 //刷新页面
refreshPage() { refreshPage() {
this.isShowYue = false;
this.isShowExOrder = false;
this.isShowDetail = false;
this.getList(); this.getList();
}, },
ExchangeOrder(item) { ExchangeOrder(item) {
...@@ -327,17 +328,17 @@ ...@@ -327,17 +328,17 @@
}, },
//查看详情 //查看详情
getDetail(item) { getDetail(item) {
this.orderObj = item; this.visitorItem = item;
this.isShowDetail = true; this.isShowDetail = true;
}, },
//跳转到报名统计 //跳转到报名统计
goOrderStatistics(id){ goOrderStatistics(id) {
this.OpenNewUrl("/sale/orderStatistics", { this.OpenNewUrl("/sale/orderStatistics", {
OrderId: id OrderId: id
}); });
}, },
//删除约课管理 //删除约课管理
deleteAppoint(item){ deleteAppoint(item) {
let delMsg = { let delMsg = {
Id: item.Id Id: item.Id
}; };
......
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