Commit dbbc1e12 authored by 黄奎's avatar 黄奎

新增班级类型

parent 48320f1b
...@@ -135,6 +135,17 @@ export function addClassCheck(data) { ...@@ -135,6 +135,17 @@ export function addClassCheck(data) {
}); });
} }
/**
* 讲座签到
*/
export function addClassCheckOtherType(data) {
return request({
url: '/class/AddClassCheckOtherType',
method: 'post',
data
});
}
/** /**
* 获取班级日志 * 获取班级日志
*/ */
......
...@@ -268,6 +268,17 @@ export function getClassInfo(data) { ...@@ -268,6 +268,17 @@ export function getClassInfo(data) {
}) })
} }
/**
* 班级分类
*/
export function getClassCategory(data) {
return request({
url: '/Class/GetClassCategoryList',
method: 'post',
data
})
}
/** /**
* 删除班级 * 删除班级
* @param {JSON数据} data * @param {JSON数据} data
...@@ -306,7 +317,7 @@ export function getStudentDorpDownList(data) { ...@@ -306,7 +317,7 @@ export function getStudentDorpDownList(data) {
/** /**
* 确认邀约咨询30分钟以上 * 确认邀约咨询30分钟以上
*/ */
export function SetStudentSureConsult(data) { export function SetStudentSureConsult(data) {
return request({ return request({
url: '/CustomerStudent/SetStudentSureConsult', url: '/CustomerStudent/SetStudentSureConsult',
method: 'post', method: 'post',
...@@ -317,7 +328,7 @@ export function getStudentDorpDownList(data) { ...@@ -317,7 +328,7 @@ export function getStudentDorpDownList(data) {
/** /**
* 上传到访表 * 上传到访表
*/ */
export function SetStudentVoucher(data) { export function SetStudentVoucher(data) {
return request({ return request({
url: '/CustomerStudent/SetStudentVoucher', url: '/CustomerStudent/SetStudentVoucher',
method: 'post', method: 'post',
...@@ -365,8 +376,7 @@ export function queryQrCodeImage(data) { ...@@ -365,8 +376,7 @@ export function queryQrCodeImage(data) {
/** /**
* 获取客户阶段列表 * 获取客户阶段列表
*/ */
export function queryStuStageList() export function queryStuStageList() {
{
return request({ return request({
url: '/CustomerStudent/GetStageDropdownList', url: '/CustomerStudent/GetStageDropdownList',
method: 'post', method: 'post',
...@@ -617,7 +627,7 @@ export function propertyGetPageList(data) { ...@@ -617,7 +627,7 @@ export function propertyGetPageList(data) {
* 获取班级下拉_(出库单) * 获取班级下拉_(出库单)
* *
*/ */
export function getClassPage_ck(data) { export function getClassPage_ck(data) {
return request({ return request({
url: '/class/GetClassListForProperty', url: '/class/GetClassListForProperty',
method: 'post', method: 'post',
...@@ -628,7 +638,7 @@ export function propertyGetPageList(data) { ...@@ -628,7 +638,7 @@ export function propertyGetPageList(data) {
/** /**
* 验证用户是否有 需补交提成订单 * 验证用户是否有 需补交提成订单
*/ */
export function getUserLeaveOrderCommission(data) { export function getUserLeaveOrderCommission(data) {
return request({ return request({
url: '/SellCommission/GetUserLeaveOrderCommission', url: '/SellCommission/GetUserLeaveOrderCommission',
method: 'post', method: 'post',
...@@ -782,12 +792,11 @@ export function GetStudentCoursePage(data) { ...@@ -782,12 +792,11 @@ export function GetStudentCoursePage(data) {
/** /**
* 获取学员电话关联联系人 * 获取学员电话关联联系人
*/ */
export function getStuTelType() export function getStuTelType() {
{
return request({ return request({
url: '/User/GetStuTelType', url: '/User/GetStuTelType',
method: 'post', method: 'post',
data:{} data: {}
}) })
} }
...@@ -72,6 +72,7 @@ ...@@ -72,6 +72,7 @@
display: table-row; display: table-row;
height: 20px; height: 20px;
} }
</style> </style>
<template> <template>
<q-dialog v-model="persistent" content-class="bg-grey-1" persistent transition-show="scale"> <q-dialog v-model="persistent" content-class="bg-grey-1" persistent transition-show="scale">
...@@ -166,6 +167,15 @@ ...@@ -166,6 +167,15 @@
emit-value map-options /> emit-value map-options />
</div> </div>
</div> </div>
<div class="row wrap" style="margin-top:15px;">
<div class="col-6">
<q-select filled stack-label option-value="Id" option-label="Name" v-model="objOption.ClassCategory"
ref="ClassCategory" :options="classCategoryList" label="班级分类" :dense="false" class="col-6 q-pr-lg q-pr-lg"
emit-value map-options />
</div>
<div class="col-6">
</div>
</div>
<div class="row wrap" style="margin:20px 0;display:none;"> <div class="row wrap" style="margin:20px 0;display:none;">
<div class="col-6"> <div class="col-6">
阶梯定价 阶梯定价
...@@ -393,7 +403,8 @@ ...@@ -393,7 +403,8 @@
saveClass, saveClass,
batchSaveClassPlan, batchSaveClassPlan,
getClassInfo, getClassInfo,
queryClassRoomList queryClassRoomList,
getClassCategory,
} from '../../api/school/index' } from '../../api/school/index'
export default { export default {
components: {}, components: {},
...@@ -438,6 +449,7 @@ ...@@ -438,6 +449,7 @@
ClassType: 1, //班级类型 ClassType: 1, //班级类型
ClassHourMinute: 45, //课时分钟数 ClassHourMinute: 45, //课时分钟数
ClassDateList: [], //开班时间 ClassDateList: [], //开班时间
ClassCategory: 0, //班级分类
}, },
optionTitle: "", optionTitle: "",
saveCourseLoading: false, saveCourseLoading: false,
...@@ -507,7 +519,8 @@ ...@@ -507,7 +519,8 @@
checkedDays: [], checkedDays: [],
//默认上课时间数组 //默认上课时间数组
DefaultPlanTimeList: [], DefaultPlanTimeList: [],
BtnStr: "立即提交" BtnStr: "立即提交",
classCategoryList: [],
} }
}, },
created() { created() {
...@@ -517,11 +530,17 @@ ...@@ -517,11 +530,17 @@
this.getClassRoomList(); this.getClassRoomList();
this.GetTeacherList(); this.GetTeacherList();
this.GetClassTypeList(); this.GetClassTypeList();
this.queryClassCategory();
}, },
mounted() { mounted() {
this.initObj() this.initObj()
}, },
methods: { methods: {
queryClassCategory() {
getClassCategory({}).then(res => {
this.classCategoryList = res.Data;
});
},
filterCourse(val, update) { filterCourse(val, update) {
update(() => { update(() => {
if (val === '') { if (val === '') {
...@@ -593,6 +612,7 @@ ...@@ -593,6 +612,7 @@
this.objOption.ClassType = TempData.ClassType; this.objOption.ClassType = TempData.ClassType;
this.objOption.ClassHourMinute = TempData.ClassHourMinute; this.objOption.ClassHourMinute = TempData.ClassHourMinute;
this.objOption.ClassDateList = TempData.ClassDateList; this.objOption.ClassDateList = TempData.ClassDateList;
this.objOption.ClassCategory = TempData.ClassCategory;
//默认时间 //默认时间
if (TempData.DefaultTimeList && TempData.DefaultTimeList.length > 0) { if (TempData.DefaultTimeList && TempData.DefaultTimeList.length > 0) {
this.DefaultPlanTimeList = TempData.DefaultTimeList; this.DefaultPlanTimeList = TempData.DefaultTimeList;
...@@ -755,7 +775,7 @@ ...@@ -755,7 +775,7 @@
getCourseList() { getCourseList() {
queryCourseDropdownList({ queryCourseDropdownList({
IsQPrice: 1, IsQPrice: 1,
IsQuerySalePlat:1, IsQuerySalePlat: 1,
}).then(res => { }).then(res => {
if (res.Code == 1) { if (res.Code == 1) {
this.CourseList = res.Data; this.CourseList = res.Data;
...@@ -885,4 +905,5 @@ ...@@ -885,4 +905,5 @@
} }
}, },
} }
</script> </script>
...@@ -256,6 +256,12 @@ ...@@ -256,6 +256,12 @@
field: 'SchoolName', field: 'SchoolName',
align: 'left', align: 'left',
}, },
{
name: "ClassCategoryName",
label: "分类",
field: 'ClassCategoryName',
align: "left",
},
{ {
name: "CourseSubjectName", name: "CourseSubjectName",
label: "所属科目", label: "所属科目",
......
...@@ -619,7 +619,13 @@ ...@@ -619,7 +619,13 @@
</div> </div>
<q-card-actions align="right" class="bg-white" v-if="isShowSignBtn" style="margin:20px 10px 100px 0;"> <q-card-actions align="right" class="bg-white" v-if="isShowSignBtn" style="margin:20px 10px 100px 0;">
<q-btn label="取消" flat color="grey-10" style="font-weight:400 !important" @click="isShowSignForm=false" /> <q-btn label="取消" flat color="grey-10" style="font-weight:400 !important" @click="isShowSignForm=false" />
<q-btn label="确认" color="accent q-px-md" style="font-weight:400 !important" @click="saveSign()" /> <template v-if="setingObj&&setingObj.ClassCategory&&setingObj.ClassCategory!=1">
<q-btn :label="setingObj.ClassCategory==2?'宣讲签到':'日语角签到'" color="accent q-px-md"
style="font-weight:400 !important" @click="saveSignOther()" />
</template>
<template v-else>
<q-btn label="班课签到" color="accent q-px-md" style="font-weight:400 !important" @click="saveSign()" />
</template>
</q-card-actions> </q-card-actions>
</div> </div>
</div> </div>
...@@ -632,7 +638,8 @@ ...@@ -632,7 +638,8 @@
setClassPlan, setClassPlan,
RemoveClassPlan, RemoveClassPlan,
GetDayClassPlan, GetDayClassPlan,
addClassCheck addClassCheck,
addClassCheckOtherType
} from '../../api/course/class'; } from '../../api/course/class';
import { import {
getTeacherDropDownList, getTeacherDropDownList,
...@@ -781,6 +788,7 @@ ...@@ -781,6 +788,7 @@
}, },
created() { created() {
this.currentUser = this.getLocalStorage(); this.currentUser = this.getLocalStorage();
if (this.setingObj && this.setingObj.ClassId) { if (this.setingObj && this.setingObj.ClassId) {
this.addMsg.ClassId = this.setingObj.ClassId; this.addMsg.ClassId = this.setingObj.ClassId;
} }
...@@ -958,8 +966,10 @@ ...@@ -958,8 +966,10 @@
}, },
//日历点击删除 //日历点击删除
delInfo(item) { delInfo(item) {
console.log("item", item);
var tipMsg = "确定要删除【" + item.ClassDateStr + "】的上课计划吗?";
this.$q.dialog({ this.$q.dialog({
title: "确定删除课程", title: tipMsg,
message: '', message: '',
cancel: { cancel: {
label: "取消", label: "取消",
...@@ -1056,7 +1066,22 @@ ...@@ -1056,7 +1066,22 @@
this.getClassPlan(); this.getClassPlan();
} }
}) })
},
//讲座、日语角班课签到
saveSignOther() {
let postMsg = {
ClassId: this.setingObj.ClassId,
ClassPlanId: this.dayMsg.ClassPlanId,
ClassTimeId: this.comChecked.ClassTimeId,
};
addClassCheckOtherType(postMsg).then(res => {
if (res.Code == 1) {
this.isShowSignForm = false;
this.getClassPlan();
}
})
} }
}, },
watch: { watch: {
setingObj: function (val, oldval) { setingObj: function (val, oldval) {
......
...@@ -96,7 +96,6 @@ ...@@ -96,7 +96,6 @@
import customerEditForm from "../sale/customerEdit-form"; import customerEditForm from "../sale/customerEdit-form";
import customerReviewForm from "../sale/customerReview-form"; import customerReviewForm from "../sale/customerReview-form";
import customerInfo from "./b2bcustomerinfo/b2bCustomerInfo.vue"; import customerInfo from "./b2bcustomerinfo/b2bCustomerInfo.vue";
import obj from '../../pages/financial/lang/zh-demo';
export default { export default {
props: { props: {
dataList: { dataList: {
......
...@@ -84,7 +84,7 @@ ...@@ -84,7 +84,7 @@
<div class="row wrap"> <div class="row wrap">
<div class="col-12"> <div class="col-12">
<q-input filled stack-label maxlength="20" :dense="false" v-model="objOption.CategoryName" <q-input filled stack-label maxlength="20" :dense="false" v-model="objOption.CategoryName"
ref="CategoryName" class="col-12 q-pb-lg" label="名称" :rules="[val => !!val || '请填写客户名称']" /> ref="CategoryName" class="col-12 q-pb-lg" label="名称" :rules="[val => !!val || '请填写同行名称']" />
</div> </div>
</div> </div>
<div class="row wrap"> <div class="row wrap">
...@@ -225,7 +225,7 @@ ...@@ -225,7 +225,7 @@
this.objOption.RebateMoney = tempData.RebateMoney; this.objOption.RebateMoney = tempData.RebateMoney;
} }
}) })
this.optionTitle = "修改客户信息" this.optionTitle = "修改同行信息"
} else { } else {
this.objOption.CategoryName = ''; this.objOption.CategoryName = '';
this.objOption.CatetoryType = ''; this.objOption.CatetoryType = '';
...@@ -236,7 +236,7 @@ ...@@ -236,7 +236,7 @@
this.objOption.RebateMoney = 0; this.objOption.RebateMoney = 0;
this.objOption.IsContract = 0; this.objOption.IsContract = 0;
this.objOption.ContractUrl = ''; this.objOption.ContractUrl = '';
this.optionTitle = "新增客户信息" this.optionTitle = "新增同行信息"
this.isShowTel = true; this.isShowTel = true;
} }
}, },
......
...@@ -15,7 +15,7 @@ ...@@ -15,7 +15,7 @@
<template v-slot:top> <template v-slot:top>
<q-space /> <q-space />
<div class="page-option"> <div class="page-option">
<q-btn color="accent" size="sm" class="q-mr-md" icon="add" @click="EditCustom(null)" label="新增客户" /> <q-btn color="accent" size="sm" class="q-mr-md" icon="add" @click="EditCustom(null)" label="新增同行" />
<q-btn v-if="authObj&&authObj.isShowDownload" color="accent" class="q-mr-md" size="sm" icon="download" <q-btn v-if="authObj&&authObj.isShowDownload" color="accent" class="q-mr-md" size="sm" icon="download"
label="下载" @click="downLoadCustomer" /> label="下载" @click="downLoadCustomer" />
</div> </div>
......
...@@ -101,6 +101,7 @@ ...@@ -101,6 +101,7 @@
right: -10px; right: -10px;
top: -10px; top: -10px;
} }
</style> </style>
<template> <template>
<q-dialog v-model="persistent" content-class="bg-grey-1" persistent transition-show="scale"> <q-dialog v-model="persistent" content-class="bg-grey-1" persistent transition-show="scale">
...@@ -137,7 +138,7 @@ ...@@ -137,7 +138,7 @@
<div class="row wrap"> <div class="row wrap">
<q-input filled v-if="objOption.CustomerType==4" stack-label maxlength="20" :dense="false" <q-input filled v-if="objOption.CustomerType==4" stack-label maxlength="20" :dense="false"
v-model="objOption.EnterpriseName" lazy-rules ref="EnterpriseName" class="col-6 q-pr-lg q-pb-lg" /> v-model="objOption.EnterpriseName" lazy-rules ref="EnterpriseName" class="col-6 q-pr-lg q-pb-lg" />
<q-select stack-label color="primary" v-else filled label="请选择客户" option-value="CategoryId" <q-select stack-label color="primary" v-else filled label="请选择同行" option-value="CategoryId"
option-label="CategoryName" :options="customList" class="col-6 q-pr-lg q-pb-lg" option-label="CategoryName" :options="customList" class="col-6 q-pr-lg q-pb-lg"
v-model="objOption.CategoryId" use-input @filter="filterFn" clearable emit-value map-options /> v-model="objOption.CategoryId" use-input @filter="filterFn" clearable emit-value map-options />
<template v-if="objOption.CustomerType!=4"> <template v-if="objOption.CustomerType!=4">
...@@ -155,8 +156,8 @@ ...@@ -155,8 +156,8 @@
</div> </div>
<div class="row wrap"> <div class="row wrap">
<div class="col-6"> <div class="col-6">
<q-input filled stack-label maxlength="20" :dense="false" v-model:number="objOption.QQ" ref="QQ" <q-input filled stack-label maxlength="20" :dense="false" v-model="objOption.QQ" ref="QQ" type="number"
type="number" :min="0" class="col-6 q-pr-lg q-pb-lg" label="QQ" /> :min="0" class="col-6 q-pr-lg q-pb-lg" label="QQ" />
</div> </div>
<div class="col-6"> <div class="col-6">
<q-input filled stack-label maxlength="20" :dense="false" v-model="objOption.WeChatNo" ref="wechat" <q-input filled stack-label maxlength="20" :dense="false" v-model="objOption.WeChatNo" ref="wechat"
...@@ -430,8 +431,7 @@ ...@@ -430,8 +431,7 @@
let msg = { let msg = {
CatetoryType: Type CatetoryType: Type
} }
if(Type) if (Type) {
{
this.objOption.CategoryId = ''; this.objOption.CategoryId = '';
} }
this.isShowEdit = false; this.isShowEdit = false;
...@@ -444,4 +444,5 @@ ...@@ -444,4 +444,5 @@
} }
} }
} }
</script> </script>
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