Commit f398d111 authored by 黄奎's avatar 黄奎

页面修改

parent 402471c5
...@@ -3,40 +3,39 @@ ...@@ -3,40 +3,39 @@
<div class="page-search row items-center"> <div class="page-search row items-center">
<div class="col row wrap q-mr-lg q-col-gutter-md"> <div class="col row wrap q-mr-lg q-col-gutter-md">
<div class="col-3"> <div class="col-3">
<q-select @input="resetSearch" filled option-value="SId" option-label="SName" <q-select @input="resetSearch" filled option-value="SId" option-label="SName" v-model="msg.School_Id"
v-model="msg.School_Id" :options="schoolList" emit-value map-options label="关联校区" clearable /> :options="schoolList" emit-value map-options label="关联校区" clearable />
</div> </div>
<div class="col-3"> <div class="col-3">
<q-select @input="resetSearch" filled v-model="msg.CourseSubject" <q-select @input="resetSearch" filled v-model="msg.CourseSubject" :options="CourseSubjectList"
:options="CourseSubjectList" option-label="SubjectName" option-value="Id" emit-value map-options label="所属科目" option-label="SubjectName" option-value="Id" emit-value map-options label="所属科目" clearable />
clearable />
</div> </div>
<div class="col-3"> <div class="col-3">
<q-input @change="resetSearch" clearable filled v-model="msg.ClassNo" label="班号" <q-input @change="resetSearch" clearable filled v-model="msg.ClassNo" label="班号" @clear="resetSearch"
@clear="resetSearch" maxlength="20" /> maxlength="20" />
</div> </div>
<div class="col-3"> <div class="col-3">
<q-input @change="resetSearch" clearable filled v-model="msg.ClassName" label="班级名称" <q-input @change="resetSearch" clearable filled v-model="msg.ClassName" label="班级名称" @clear="resetSearch"
@clear="resetSearch" maxlength="20" /> maxlength="20" />
</div> </div>
<div class="col-3"> <div class="col-3">
<q-select @input="resetSearch" filled option-value="TId" option-label="TeacherName" <q-select @input="resetSearch" filled option-value="TId" option-label="TeacherName" v-model="msg.Teacher_Id"
v-model="msg.Teacher_Id" :options="TeacherList" emit-value map-options label="带班老师" clearable /> :options="TeacherList" emit-value map-options label="带班老师" clearable />
</div> </div>
<div class="col-3"> <div class="col-3">
<q-select @input="resetSearch" @filter="filterCourseFn" use-input filled option-value="CourseId" <q-select @input="resetSearch" @filter="filterCourseFn" use-input filled option-value="CourseId"
option-label="CourseName" v-model="msg.CouseId" :options="myClassList" emit-value map-options label="学习课程" option-label="CourseName" v-model="msg.CouseId" :options="myClassList" emit-value map-options label="学习课程"
clearable /> clearable />
</div> </div>
<div class="col-3"> <div class="col-3">
<div class="col-3 Sysuser_Date"> <div class="col-3 Sysuser_Date">
<q-field filled> <q-field filled>
 <template v-slot:control> <template v-slot:control>
<el-date-picker v-model="msg.StartTime" type="date" value-format="yyyy-MM-dd" placeholder="开学日期" size="small" style="width:47%;" <el-date-picker v-model="msg.StartTime" type="date" value-format="yyyy-MM-dd" placeholder="开学日期"
@change="resetSearch" clear-icon="iconfont icon-guanbi"> size="small" style="width:47%;" @change="resetSearch" clear-icon="iconfont icon-guanbi">
</el-date-picker> </el-date-picker>
<el-date-picker v-model="msg.EndTime" type="date" value-format="yyyy-MM-dd" placeholder="结束日期" size="small" style="width:47%;" <el-date-picker v-model="msg.EndTime" type="date" value-format="yyyy-MM-dd" placeholder="结束日期"
@change="resetSearch" clear-icon="iconfont icon-guanbi"> size="small" style="width:47%;" @change="resetSearch" clear-icon="iconfont icon-guanbi">
</el-date-picker> </el-date-picker>
</template> </template>
</q-field> </q-field>
...@@ -44,13 +43,13 @@ ...@@ -44,13 +43,13 @@
</div> </div>
<div class="col-3"> <div class="col-3">
<div class="col-3 Sysuser_Date"> <div class="col-3 Sysuser_Date">
<q-field filled> <q-field filled>
 <template v-slot:control> <template v-slot:control>
<el-date-picker v-model="msg.JoinStartTime" type="date" value-format="yyyy-MM-dd" placeholder="报名截止日期" size="small" <el-date-picker v-model="msg.JoinStartTime" type="date" value-format="yyyy-MM-dd" placeholder="报名截止日期"
style="width:47%;" @change="resetSearch" clear-icon="iconfont icon-guanbi"> size="small" style="width:47%;" @change="resetSearch" clear-icon="iconfont icon-guanbi">
</el-date-picker> </el-date-picker>
<el-date-picker v-model="msg.JoinEndTime" type="date" value-format="yyyy-MM-dd" placeholder="报名截止日期" size="small" <el-date-picker v-model="msg.JoinEndTime" type="date" value-format="yyyy-MM-dd" placeholder="报名截止日期"
style="width:47%;" @change="resetSearch" clear-icon="iconfont icon-guanbi"> size="small" style="width:47%;" @change="resetSearch" clear-icon="iconfont icon-guanbi">
</el-date-picker> </el-date-picker>
</template> </template>
</q-field> </q-field>
...@@ -86,7 +85,7 @@ ...@@ -86,7 +85,7 @@
<th>课时数</th> <th>课时数</th>
<th>价格</th> <th>价格</th>
</tr> </tr>
<tr v-for="(sItem,sIndex) in item.OtherCourseList"> <tr v-for="(sItem,sIndex) in item.OtherCourseList" :key="sIndex">
<td>{{sItem.CourseName}}</td> <td>{{sItem.CourseName}}</td>
<td>{{sItem.ClassHours}}</td> <td>{{sItem.ClassHours}}</td>
<td>{{sItem.SellPrice}}</td> <td>{{sItem.SellPrice}}</td>
...@@ -94,7 +93,6 @@ ...@@ -94,7 +93,6 @@
</table> </table>
</q-banner> </q-banner>
</q-popup-proxy> </q-popup-proxy>
</span>
</template> </template>
</div> </div>
<div class="di-c" style="align-items:baseline"><img src="../../assets/images/administration/period.png" <div class="di-c" style="align-items:baseline"><img src="../../assets/images/administration/period.png"
...@@ -163,7 +161,7 @@ ...@@ -163,7 +161,7 @@
</span> </span>
</div> </div>
<div v-if="item.ClassStyle==2" class="row wrap" style="width: 454px;"> <div v-if="item.ClassStyle==2" class="row wrap" style="width: 454px;">
<div v-for="(j,k) in item.month" <div v-for="(j,index) in item.month" :key="index+10000"
style="width: 45.4px;height: 30px;line-height: 30px;text-align: center;font-size: 12px;color: #2D2D2D;margin-top: 10px;!important"> style="width: 45.4px;height: 30px;line-height: 30px;text-align: center;font-size: 12px;color: #2D2D2D;margin-top: 10px;!important">
<div <div
:style="{'width': '45.4px','height': '30px',background:j.select==true?'rgba(41, 97, 254, 0.2)':'#FFF'}"> :style="{'width': '45.4px','height': '30px',background:j.select==true?'rgba(41, 97, 254, 0.2)':'#FFF'}">
...@@ -175,7 +173,7 @@ ...@@ -175,7 +173,7 @@
<el-calendar v-model="elvalue" id="calendar" style="width: 500px;"> <el-calendar v-model="elvalue" id="calendar" style="width: 500px;">
<template slot="dateCell" slot-scope="{date, data}" class="row" style="height: 45px"> <template slot="dateCell" slot-scope="{date, data}" class="row" style="height: 45px">
<div class="calendar-day">{{ data.day.split('-').slice(2).join('-') }}</div> <div class="calendar-day">{{ data.day.split('-').slice(2).join('-') }}</div>
<div v-for="x in item.ClassPlanList"> <div v-for="(x,cIndex) in item.ClassPlanList" :key="cIndex+100000">
<div v-if="x.ClassDate === data.day" <div v-if="x.ClassDate === data.day"
style="align-items: center;justify-content: center;margin-top: 15px" class="row"> style="align-items: center;justify-content: center;margin-top: 15px" class="row">
<img src="../../assets/images/administration/gou.png" alt="" <img src="../../assets/images/administration/gou.png" alt=""
...@@ -213,9 +211,9 @@ ...@@ -213,9 +211,9 @@
<tbody style="border-bottom:1px dashed #d1d1d1;" <tbody style="border-bottom:1px dashed #d1d1d1;"
v-for="(tItem,tIndex) in item.ClassTimeList" :key="tIndex"> v-for="(tItem,tIndex) in item.ClassTimeList" :key="tIndex">
<template v-for="(timeItem,timeIndex) in tItem.TimeList"> <template v-for="(timeItem,timeIndex) in tItem.TimeList">
<tr> <tr :key="timeIndex+200000">
<td style="width:180px;" :rowspan=" tItem.TimeList.length" v-if="timeIndex==0"> <td style="width:180px;" :rowspan=" tItem.TimeList.length" v-if="timeIndex==0">
<template v-for="(sItem,sIndex) in tItem.DateList"> <template v-for="sItem in tItem.DateList">
{{sItem}} {{sItem}}
</template> </template>
</td> </td>
...@@ -347,7 +345,7 @@ ...@@ -347,7 +345,7 @@
StartTime: '', //开始时间 StartTime: '', //开始时间
EndTime: '', //结束时间 EndTime: '', //结束时间
School_Id: '', //关联校区 School_Id: '', //关联校区
CouseId: 0, //课程id CouseId: '', //课程id
Teacher_Id: 0, //教师id Teacher_Id: 0, //教师id
Q_CanApply: "0", //是否可以报名 1是 Q_CanApply: "0", //是否可以报名 1是
JoinStartTime: '', //报名截止日期开始 JoinStartTime: '', //报名截止日期开始
...@@ -370,7 +368,7 @@ ...@@ -370,7 +368,7 @@
}, },
isChaBan: 0, //是否插班(0-正常报入,1-插班报入) isChaBan: 0, //是否插班(0-正常报入,1-插班报入)
CourseSubjectList: [], //科目列表 CourseSubjectList: [], //科目列表
myClassList:[] myClassList: []
} }
}, },
created() { created() {
...@@ -395,7 +393,7 @@ ...@@ -395,7 +393,7 @@
this.getList(); this.getList();
}, },
methods: { methods: {
//课程筛选 //班级筛选
filterCourseFn(val, update, abort) { filterCourseFn(val, update, abort) {
update(() => { update(() => {
this.myClassList = this.ClassList.filter( this.myClassList = this.ClassList.filter(
...@@ -403,7 +401,7 @@ ...@@ -403,7 +401,7 @@
); );
}); });
}, },
//科目列表
queryCourseSubject() { queryCourseSubject() {
getCourseSubject({}).then(res => { getCourseSubject({}).then(res => {
if (res.Code == 1) { if (res.Code == 1) {
...@@ -453,11 +451,7 @@ ...@@ -453,11 +451,7 @@
queryCourseDropdownList({}).then(res => { queryCourseDropdownList({}).then(res => {
if (res.Code == 1) { if (res.Code == 1) {
this.ClassList = res.Data; this.ClassList = res.Data;
this.ClassList.unshift({ this.myClassList = res.Data;
CourseId: 0,
CourseName: "不限"
})
this.myClassList = this.ClassList;
} }
}) })
}, },
...@@ -564,8 +558,8 @@ ...@@ -564,8 +558,8 @@
this.orderObj.ClassId = item.ClassId; this.orderObj.ClassId = item.ClassId;
this.orderObj.Unit_Price = item.SellPrice; this.orderObj.Unit_Price = item.SellPrice;
this.orderObj.CourseId = item.CouseId; this.orderObj.CourseId = item.CouseId;
this.orderObj.B2CRatio=item.B2CRatio; this.orderObj.B2CRatio = item.B2CRatio;
this.orderObj.B2CReNewRatio=item.B2CReNewRatio; this.orderObj.B2CReNewRatio = item.B2CReNewRatio;
this.isShowEditOrderForm = true; this.isShowEditOrderForm = true;
}, },
//跳转到课程大纲 //跳转到课程大纲
...@@ -576,7 +570,6 @@ ...@@ -576,7 +570,6 @@
} }
} }
} }
</script> </script>
<style> <style>
li { li {
...@@ -727,5 +720,4 @@ ...@@ -727,5 +720,4 @@
width: 500px; width: 500px;
color: #000; color: #000;
} }
</style>
</style> \ No newline at end of file
...@@ -18,7 +18,7 @@ ...@@ -18,7 +18,7 @@
<q-table :pagination="msg" :loading="loading" no-data-label="暂无相关数据" flat <q-table :pagination="msg" :loading="loading" no-data-label="暂无相关数据" flat
class="sticky-column-table sticky-right-column-table" separator="none" :data="dataList" :columns="columns" class="sticky-column-table sticky-right-column-table" separator="none" :data="dataList" :columns="columns"
row-key="name" :visible-columns="visibleColumns"> row-key="name" :visible-columns="visibleColumns">
<template v-slot:top="props"> <template v-slot:top>
<div class="col-2 q-table__title">留学就业产品</div> <div class="col-2 q-table__title">留学就业产品</div>
<q-space /> <q-space />
<div class="page-option"> <div class="page-option">
...@@ -50,52 +50,49 @@ ...@@ -50,52 +50,49 @@
{{props.row.B2BReNewRatio}}{{props.row.CommissionReType==1?'%':''}} {{props.row.B2BReNewRatio}}{{props.row.CommissionReType==1?'%':''}}
</q-td> </q-td>
</template> </template>
<template v-slot:body-cell-SchoolRebateRatio="props"> <template v-slot:body-cell-SchoolRebateRatio="props">
<q-td> <q-td>
{{props.row.SchoolRebateRatio}}{{props.row.CommissionReType==1?'%':''}} {{props.row.SchoolRebateRatio}}{{props.row.CommissionReType==1?'%':''}}
</q-td> </q-td>
</template> </template>
<template v-slot:body-cell-SchoolReNewRatio="props"> <template v-slot:body-cell-SchoolReNewRatio="props">
<q-td> <q-td>
{{props.row.SchoolReNewRatio}}{{props.row.CommissionReType==1?'%':''}} {{props.row.SchoolReNewRatio}}{{props.row.CommissionReType==1?'%':''}}
</q-td> </q-td>
</template> </template>
<template v-slot:body-cell-TransIntroductceRatio="props"> <template v-slot:body-cell-TransIntroductceRatio="props">
<q-td> <q-td>
{{props.row.TransIntroductceRatio}}{{props.row.CommissionReType==1?'%':''}} {{props.row.TransIntroductceRatio}}{{props.row.CommissionReType==1?'%':''}}
</q-td> </q-td>
</template> </template>
<template v-slot:body-cell-TransIntroductceReNewRatio="props"> <template v-slot:body-cell-TransIntroductceReNewRatio="props">
<q-td> <q-td>
{{props.row.TransIntroductceReNewRatio}}{{props.row.CommissionReType==1?'%':''}} {{props.row.TransIntroductceReNewRatio}}{{props.row.CommissionReType==1?'%':''}}
</q-td> </q-td>
</template> </template>
<template v-slot:body-cell-InnerRecommendRatio="props"> <template v-slot:body-cell-InnerRecommendRatio="props">
<q-td> <q-td>
{{props.row.InnerRecommendRatio}}{{props.row.CommissionReType==1?'%':''}} {{props.row.InnerRecommendRatio}}{{props.row.CommissionReType==1?'%':''}}
</q-td> </q-td>
</template> </template>
<template v-slot:body-cell-InnerRecommendReNewRatio="props"> <template v-slot:body-cell-InnerRecommendReNewRatio="props">
<q-td> <q-td>
{{props.row.InnerRecommendReNewRatio}}{{props.row.CommissionReType==1?'%':''}} {{props.row.InnerRecommendReNewRatio}}{{props.row.CommissionReType==1?'%':''}}
</q-td> </q-td>
</template> </template>
<template v-slot:body-cell-B2CRbRatio="props"> <template v-slot:body-cell-B2CRbRatio="props">
<q-td> <q-td>
{{props.row.B2CRbRatio}}{{props.row.CommissionReType==1?'%':''}} {{props.row.B2CRbRatio}}{{props.row.CommissionReType==1?'%':''}}
</q-td> </q-td>
</template> </template>
<template v-slot:body-cell-B2CRNRatio="props"> <template v-slot:body-cell-B2CRNRatio="props">
<q-td> <q-td>
{{props.row.B2CRNRatio}}{{props.row.CommissionReType==1?'%':''}} {{props.row.B2CRNRatio}}{{props.row.CommissionReType==1?'%':''}}
</q-td> </q-td>
</template> </template>
<template v-slot:body-cell-PreferentialList="props"> <template v-slot:body-cell-PreferentialList="props">
<q-td :props="props" style="padding-right:0px"> <q-td :props="props" style="padding-right:0px">
<div v-for="x in props.value"> <div v-for="(x,xIndex) in props.value" :key="xIndex">
<div class="border-bottom" v-if="x.PriceDiscountType == 1"> <div class="border-bottom" v-if="x.PriceDiscountType == 1">
{{ x.BuyNum }}{{ x.SendNum }} {{ x.BuyNum }}{{ x.SendNum }}
</div> </div>
...@@ -135,7 +132,7 @@ ...@@ -135,7 +132,7 @@
</template> </template>
<template v-slot:body-cell-PreferentialListSellCommission="props"> <template v-slot:body-cell-PreferentialListSellCommission="props">
<q-td :props="props" style="padding-right:0px;padding-left:0px"> <q-td :props="props" style="padding-right:0px;padding-left:0px">
<div v-for="x in props.value"> <div v-for="(x,xIndex) in props.value" :key="xIndex+10000">
<div class="border-bottom" style="padding-left: 16px;padding-right: 16px" <div class="border-bottom" style="padding-left: 16px;padding-right: 16px"
:class="{ 'text-red': x.SaleCommissionType == 1 }" v-if="x.PriceDiscountType != 0"> :class="{ 'text-red': x.SaleCommissionType == 1 }" v-if="x.PriceDiscountType != 0">
{{ x.SaleCommissionType == 1 ? "¥" : "" {{ x.SaleCommissionType == 1 ? "¥" : ""
...@@ -153,7 +150,7 @@ ...@@ -153,7 +150,7 @@
</template> </template>
<template v-slot:body-cell-PreferentialListB2BCommission="props"> <template v-slot:body-cell-PreferentialListB2BCommission="props">
<q-td :props="props" style="padding-left:0px"> <q-td :props="props" style="padding-left:0px">
<div v-for="x in props.value"> <div v-for="(x,xIndex) in props.value" :key="xIndex+20000">
<div class="border-bottom" style="padding-left: 16px" :class="{ 'text-red': x.B2BCommissionType == 1 }" <div class="border-bottom" style="padding-left: 16px" :class="{ 'text-red': x.B2BCommissionType == 1 }"
v-if="x.PriceDiscountType != 0"> v-if="x.PriceDiscountType != 0">
{{ x.B2BCommissionType == 1 ? "¥" : "" {{ x.B2BCommissionType == 1 ? "¥" : ""
...@@ -183,8 +180,8 @@ ...@@ -183,8 +180,8 @@
<q-dialog v-model="showForm" persistent> <q-dialog v-model="showForm" persistent>
<quotationstudy-form :obj="null" @save="showForm=false"></quotationstudy-form> <quotationstudy-form :obj="null" @save="showForm=false"></quotationstudy-form>
</q-dialog> </q-dialog>
<studyorderForm v-if="isShowOrderForm" :save-obj="studyObj" :orderType="2" :modityOrderType="1" @close="cloStudyform" <studyorderForm v-if="isShowOrderForm" :save-obj="studyObj" :orderType="2" :modityOrderType="1"
@save="refreshPage()"></studyorderForm> @close="cloStudyform" @save="refreshPage()"></studyorderForm>
</div> </div>
</div> </div>
</template> </template>
...@@ -227,14 +224,14 @@ ...@@ -227,14 +224,14 @@
align: 'left' align: 'left'
}, },
{ {
name:'ProductTypeName', name: 'ProductTypeName',
label:'类型', label: '类型',
field: 'ProductTypeName', field: 'ProductTypeName',
align: 'left' align: 'left'
}, },
{ {
name:'StudyCountryName', name: 'StudyCountryName',
label:'留学国家', label: '留学国家',
field: 'StudyCountryName', field: 'StudyCountryName',
align: 'left' align: 'left'
}, },
...@@ -244,13 +241,6 @@ ...@@ -244,13 +241,6 @@
field: 'Type', field: 'Type',
align: 'left' align: 'left'
}, },
// {
// name: 'SuggestPrice',
// label: '建议卖价',
// field: 'SuggestPrice',
// align: 'left',
// field: row => row.SuggestPrice.toFixed(2)
// },
{ {
name: 'SellPrice', name: 'SellPrice',
label: '实际卖价', label: '实际卖价',
...@@ -258,7 +248,7 @@ ...@@ -258,7 +248,7 @@
align: 'left', align: 'left',
field: row => row.SellPrice.toFixed(2) field: row => row.SellPrice.toFixed(2)
}, },
{ {
name: "B2CRatio", name: "B2CRatio",
required: true, required: true,
label: "直客优惠", label: "直客优惠",
...@@ -342,28 +332,7 @@ ...@@ -342,28 +332,7 @@
align: "left", align: "left",
field: (row) => row.B2CRNRatio field: (row) => row.B2CRNRatio
}, },
// { {
// name: "PreferentialList",
// required: true,
// label: "优惠政策",
// align: "left",
// field: row => row.PreferentialList
// },
// {
// name: "PreferentialListSellCommission",
// required: true,
// label: "销售佣金",
// align: "left",
// field: row => row.PreferentialList
// },
// {
// name: "PreferentialListB2BCommission",
// required: true,
// label: "同行佣金",
// align: "left",
// field: row => row.PreferentialList
// },
{
name: 'Remark', name: 'Remark',
label: '备注', label: '备注',
field: 'Remark', field: 'Remark',
...@@ -393,7 +362,8 @@ ...@@ -393,7 +362,8 @@
], ],
//表格可见列 //表格可见列
visibleColumns: [ visibleColumns: [
'Name', 'ProductTypeName', 'StudyCountryName','Type', 'SuggestPrice', 'SellPrice', "PreferentialList", "PreferentialListSellCommission", 'Name', 'ProductTypeName', 'StudyCountryName', 'Type', 'SuggestPrice', 'SellPrice', "PreferentialList",
"PreferentialListSellCommission",
"PreferentialListB2BCommission", "PreferentialListB2BCommission",
"EducationCommission", 'SaleStateName', 'Id', "EducationCommission", 'SaleStateName', 'Id',
], //可见列 ], //可见列
...@@ -459,7 +429,6 @@ ...@@ -459,7 +429,6 @@
}, },
} }
} }
</script> </script>
<style scoped> <style scoped>
.border-bottom { .border-bottom {
...@@ -467,9 +436,7 @@ ...@@ -467,9 +436,7 @@
padding-bottom: 5px; padding-bottom: 5px;
margin-bottom: 5px; margin-bottom: 5px;
} }
</style> </style>
<style lang="sass"> <style lang="sass">
@import url('~assets/css/table.sass') @import url('~assets/css/table.sass')
</style>
</style> \ No newline at end of file
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