|
@@ -180,7 +180,7 @@
|
|
|
placeholder="选择日期"
|
|
|
></el-date-picker>
|
|
|
</el-form-item> -->
|
|
|
- <el-form-item
|
|
|
+ <!-- <el-form-item
|
|
|
label="报名截止时间"
|
|
|
prop="time"
|
|
|
:rules="[{ required: true, message: '请输入报名截止时间' }]"
|
|
@@ -193,7 +193,7 @@
|
|
|
:picker-options="beginDate()"
|
|
|
placeholder="选择日期"
|
|
|
></el-date-picker>
|
|
|
- </el-form-item>
|
|
|
+ </el-form-item> -->
|
|
|
<!-- <el-form-item
|
|
|
label="预计开团时间"
|
|
|
prop="startTime"
|
|
@@ -224,7 +224,11 @@
|
|
|
|
|
|
</el-select>
|
|
|
</el-form-item> -->
|
|
|
- <el-form-item label="机构类型" prop="ownershipType" v-if="tenantId ==1">
|
|
|
+ <el-form-item
|
|
|
+ label="机构类型"
|
|
|
+ prop="ownershipType"
|
|
|
+ v-if="tenantId == 1"
|
|
|
+ >
|
|
|
<el-select
|
|
|
v-model.trim="topFrom.ownershipType"
|
|
|
:disabled="basdisabled"
|
|
@@ -235,7 +239,11 @@
|
|
|
value="LEASE"></el-option>-->
|
|
|
</el-select>
|
|
|
</el-form-item>
|
|
|
- <el-form-item label="课外训练布置老师" prop="extracurricularTeacher" v-if="tenantId ==1">
|
|
|
+ <el-form-item
|
|
|
+ label="课外训练布置老师"
|
|
|
+ prop="extracurricularTeacher"
|
|
|
+ v-if="tenantId == 1"
|
|
|
+ >
|
|
|
<el-select
|
|
|
v-model.trim="topFrom.extracurricularTeacher"
|
|
|
:disabled="basdisabled"
|
|
@@ -334,6 +342,133 @@
|
|
|
</el-option>
|
|
|
</el-select>
|
|
|
</el-form-item>
|
|
|
+
|
|
|
+ <div v-if="tenantId == 1">
|
|
|
+ <div class="head">建团信息:</div>
|
|
|
+ <el-form-item
|
|
|
+ label="建团编制"
|
|
|
+ prop="musicGroupPlanMakingId"
|
|
|
+ :rules="[{ required: true, message: '建团编制不能为空' }]"
|
|
|
+ >
|
|
|
+ <el-select
|
|
|
+ v-model.trim="topFrom.musicGroupPlanMakingId"
|
|
|
+ filterable
|
|
|
+ :disabled="basdisabled"
|
|
|
+ clearable
|
|
|
+ @change="changeType"
|
|
|
+ >
|
|
|
+ <el-option
|
|
|
+ v-for="(item, index) in musicGroupPlanMakingList"
|
|
|
+ :key="index"
|
|
|
+ :label="item.name"
|
|
|
+ :value="item.id"
|
|
|
+ ></el-option>
|
|
|
+ </el-select>
|
|
|
+ </el-form-item>
|
|
|
+ <el-form-item
|
|
|
+ label="成团年级"
|
|
|
+ prop="firstRecruitGrade"
|
|
|
+ :rules="[{ required: true, message: '成团年级不能为空' }]"
|
|
|
+ >
|
|
|
+ <el-select
|
|
|
+ v-model.trim="topFrom.firstRecruitGrade"
|
|
|
+ filterable
|
|
|
+ :disabled="basdisabled || !topFrom.section"
|
|
|
+ clearable
|
|
|
+ >
|
|
|
+ <el-option
|
|
|
+ v-for="(item, index) in gradeList"
|
|
|
+ :key="index"
|
|
|
+ :label="item.label"
|
|
|
+ :value="item.value"
|
|
|
+ ></el-option>
|
|
|
+ </el-select>
|
|
|
+ </el-form-item>
|
|
|
+ <el-form-item
|
|
|
+ label="收费标准"
|
|
|
+ prop="defaultChargeStandard"
|
|
|
+ :rules="[{ required: true, message: '收费标准不能为空' }]"
|
|
|
+ >
|
|
|
+ <el-input
|
|
|
+ v-model.trim="topFrom.defaultChargeStandard"
|
|
|
+ placeholder="请输入收费标准"
|
|
|
+ ></el-input>
|
|
|
+ </el-form-item>
|
|
|
+ <el-form-item
|
|
|
+ label="单次训练时长"
|
|
|
+ prop="singleTrainMinutes"
|
|
|
+ :rules="[
|
|
|
+ { required: true, message: '请输入单次训练时长' },
|
|
|
+ {
|
|
|
+ pattern: /(^[0-9+]*$)/,
|
|
|
+ message: '请输入正确的时长',
|
|
|
+ },
|
|
|
+ ]"
|
|
|
+ >
|
|
|
+ <el-select
|
|
|
+ v-model.trim="topFrom.singleTrainMinutes"
|
|
|
+ filterable
|
|
|
+ :disabled="basdisabled"
|
|
|
+ allow-create
|
|
|
+ default-first-option
|
|
|
+ clearable
|
|
|
+ >
|
|
|
+ <el-option
|
|
|
+ v-for="(item, index) in singleTrainMinutesList"
|
|
|
+ :key="index"
|
|
|
+ :label="item.name"
|
|
|
+ :value="item.id"
|
|
|
+ ></el-option>
|
|
|
+ </el-select>
|
|
|
+ </el-form-item>
|
|
|
+ <el-form-item
|
|
|
+ label="课程配置"
|
|
|
+ prop="coursePlan"
|
|
|
+ :rules="[{ required: true, message: '请选择课程配置' }]"
|
|
|
+ >
|
|
|
+ <el-select
|
|
|
+ v-model.trim="topFrom.coursePlan"
|
|
|
+ filterable
|
|
|
+ :disabled="basdisabled"
|
|
|
+ clearable
|
|
|
+ >
|
|
|
+ <el-option
|
|
|
+ v-for="(item, index) in coursePlanList"
|
|
|
+ :key="index"
|
|
|
+ :label="item.name"
|
|
|
+ :value="item.id"
|
|
|
+ ></el-option>
|
|
|
+ </el-select>
|
|
|
+ </el-form-item>
|
|
|
+ <el-form-item
|
|
|
+ label="毕业年级"
|
|
|
+ prop="graduateGrade"
|
|
|
+ :rules="[{ required: true, message: '毕业年级不能为空' }]"
|
|
|
+ >
|
|
|
+ <el-select
|
|
|
+ v-model.trim="topFrom.graduateGrade"
|
|
|
+ filterable
|
|
|
+ :disabled="basdisabled || !topFrom.firstRecruitGrade"
|
|
|
+ clearable
|
|
|
+ >
|
|
|
+ <el-option
|
|
|
+ v-for="(item, index) in gradeList"
|
|
|
+ :key="index"
|
|
|
+ :label="item.label"
|
|
|
+ :value="item.value"
|
|
|
+ :disabled="item.value < topFrom.firstRecruitGrade"
|
|
|
+ ></el-option>
|
|
|
+ </el-select>
|
|
|
+ </el-form-item>
|
|
|
+ <el-form-item label="销售活动" prop="saleActivityDesc">
|
|
|
+ <el-input
|
|
|
+ placeholder="请输入销售活动"
|
|
|
+ :maxlength="100"
|
|
|
+ v-model.trim="topFrom.saleActivityDesc"
|
|
|
+ show-word-limit
|
|
|
+ ></el-input>
|
|
|
+ </el-form-item>
|
|
|
+ </div>
|
|
|
<div class="head">乐团设置:</div>
|
|
|
<el-form-item
|
|
|
label="同步群消息"
|
|
@@ -467,6 +602,7 @@ import {
|
|
|
getOrganRole,
|
|
|
getTeacher,
|
|
|
createTeam,
|
|
|
+ getGradeList,
|
|
|
} from "@/api/buildTeam";
|
|
|
import dayjs from "dayjs";
|
|
|
import merge from "webpack-merge";
|
|
@@ -474,7 +610,20 @@ import { queryByOrganId, getSchool } from "@/api/systemManage";
|
|
|
import qrCode from "@/components/QrCode/index";
|
|
|
import { classStatus, courseViewTypeList } from "@/utils/searchArray";
|
|
|
import { vaildStudentUrl, vaildTeacherUrl } from "@/utils/validate";
|
|
|
+import { getMusicGroupPlanMakingList } from "@/views/baseRulesManager/api";
|
|
|
import mergeMusic from "../components/merge-music";
|
|
|
+const singleTrainMinutesList = [
|
|
|
+ { name: "90+90", id: "90+90" },
|
|
|
+ { name: "90+90+45", id: "90+90+45" },
|
|
|
+];
|
|
|
+const coursePlanList = [
|
|
|
+ { name: "PlanS", id: "PlanS" },
|
|
|
+ { name: "PlanA", id: "PlanA" },
|
|
|
+ { name: "PlanB", id: "PlanB" },
|
|
|
+ { name: "PlanC", id: "PlanC" },
|
|
|
+ { name: "PlanD", id: "PlanD" },
|
|
|
+ { name: "PlanE", id: "PlanE" },
|
|
|
+];
|
|
|
export default {
|
|
|
components: {
|
|
|
mergeMusic,
|
|
@@ -513,7 +662,14 @@ export default {
|
|
|
ownershipType: "OWN", // 合作机构类型
|
|
|
repairUserId: null, // 维修技师
|
|
|
transactionTeacherId: null, // 衔接老师
|
|
|
- extracurricularTeacher:'NORMAL'
|
|
|
+ extracurricularTeacher: "NORMAL",
|
|
|
+ musicGroupPlanMakingId: "", //建团编制
|
|
|
+ firstRecruitGrade: "", // 成团年级
|
|
|
+ defaultChargeStandard: "", // 收费标准
|
|
|
+ singleTrainMinutes: "", //单次训练时长
|
|
|
+ coursePlan: "", // 课程计划
|
|
|
+ graduateGrade: "", // 毕业年级
|
|
|
+ saleActivityDesc: "", // 销售活动描述
|
|
|
},
|
|
|
baseInfo: {},
|
|
|
money: 580,
|
|
@@ -530,6 +686,8 @@ export default {
|
|
|
transactionList: [],
|
|
|
addList: [], // 教学地点列表
|
|
|
activeTeam: [],
|
|
|
+ gradeList: [], // 年级
|
|
|
+ gradeListObj: null,
|
|
|
teamid: "",
|
|
|
teamStatus: "",
|
|
|
isInit: false,
|
|
@@ -566,6 +724,9 @@ export default {
|
|
|
qrCodeUrl: null,
|
|
|
codeTitle: null,
|
|
|
tenantId: "",
|
|
|
+ coursePlanList: coursePlanList,
|
|
|
+ musicGroupPlanMakingList: [],
|
|
|
+ singleTrainMinutesList: singleTrainMinutesList,
|
|
|
};
|
|
|
},
|
|
|
created() {},
|
|
@@ -703,7 +864,7 @@ export default {
|
|
|
}
|
|
|
this.teamStatus = this.$route.query.type;
|
|
|
this.team_status = this.$route.query.team_status;
|
|
|
- this.tenantId = this.$helpers.tenantId
|
|
|
+ this.tenantId = this.$helpers.tenantId;
|
|
|
// if (this.teamStatus == "newTeam") {
|
|
|
// this.$store.dispatch("buildIndex", 0);
|
|
|
// }
|
|
@@ -711,6 +872,14 @@ export default {
|
|
|
// if (this.teamStatus != "newTeam") {
|
|
|
// this.$store.dispatch("draftIndex", 0);
|
|
|
// }
|
|
|
+
|
|
|
+ // 获取建团编制
|
|
|
+ getMusicGroupPlanMakingList().then((res) => {
|
|
|
+ if (res.code == 200) {
|
|
|
+ this.musicGroupPlanMakingList = res.data;
|
|
|
+ }
|
|
|
+ });
|
|
|
+
|
|
|
// 传过来的乐团信息
|
|
|
this.activeTeam = this.getTeamList;
|
|
|
if (
|
|
@@ -762,7 +931,7 @@ export default {
|
|
|
// 如果是新建团
|
|
|
|
|
|
let sotrage = JSON.parse(localStorage.getItem(`newTeambase`));
|
|
|
- console.log(sotrage,this.topFrom)
|
|
|
+ console.log(sotrage, this.topFrom);
|
|
|
sotrage ? (this.topFrom = sotrage) : this.topFrom;
|
|
|
if (this.topFrom?.section) {
|
|
|
// 获取员工
|
|
@@ -796,13 +965,12 @@ export default {
|
|
|
let arr = [];
|
|
|
if (this.sectionList.length <= 0) {
|
|
|
arr.push("organ");
|
|
|
- }else{
|
|
|
- if(!this.topFrom.section){
|
|
|
- this.$set(this.topFrom,'section',this.sectionList[0].id)
|
|
|
- this.changeSection(this.sectionList[0].id)
|
|
|
- // diao
|
|
|
+ } else {
|
|
|
+ if (!this.topFrom.section) {
|
|
|
+ this.$set(this.topFrom, "section", this.sectionList[0].id);
|
|
|
+ this.changeSection(this.sectionList[0].id);
|
|
|
+ // diao
|
|
|
}
|
|
|
-
|
|
|
}
|
|
|
if (this.typeList.length <= 0) {
|
|
|
arr.push("teamPayType");
|
|
@@ -820,11 +988,13 @@ export default {
|
|
|
this.topFrom.head = "";
|
|
|
this.topFrom.school = "";
|
|
|
this.topFrom.address = "";
|
|
|
+ this.topFrom.firstRecruitGrade = "";
|
|
|
+ this.topFrom.graduateGrade = "";
|
|
|
+
|
|
|
// 发请求 根据分部id 查询所有员工
|
|
|
- if(val){
|
|
|
- this.getBaseList(val);
|
|
|
+ if (val) {
|
|
|
+ this.getBaseList(val);
|
|
|
}
|
|
|
-
|
|
|
},
|
|
|
async getBaseList(val) {
|
|
|
// 合作单位
|
|
@@ -860,6 +1030,19 @@ export default {
|
|
|
this.teacherList = res.data;
|
|
|
}
|
|
|
});
|
|
|
+ // 获取年级
|
|
|
+ getGradeList({ id: val }).then((res) => {
|
|
|
+ let result = res.data;
|
|
|
+ this.gradeListObj = res.data;
|
|
|
+ if (res.code == 200 && result) {
|
|
|
+ for (let i in result) {
|
|
|
+ this.gradeList.push({
|
|
|
+ value: i,
|
|
|
+ label: result[i],
|
|
|
+ });
|
|
|
+ }
|
|
|
+ }
|
|
|
+ });
|
|
|
Promise.all([
|
|
|
queryByOrganId({ organId: val }),
|
|
|
getSchool({ organId: val }),
|
|
@@ -992,7 +1175,14 @@ export default {
|
|
|
homeworkPushFlag: this.topFrom.homeworkPushFlag,
|
|
|
isGiveAccessories: this.topFrom.isGiveAccessories,
|
|
|
memberCourseShowFlag: this.topFrom.memberCourseShowFlag,
|
|
|
- extracurricularTeacher:this.topFrom.extracurricularTeacher
|
|
|
+ extracurricularTeacher: this.topFrom.extracurricularTeacher,
|
|
|
+ musicGroupPlanMakingId: this.topFrom.musicGroupPlanMakingId,
|
|
|
+ firstRecruitGrade: this.topFrom.firstRecruitGrade,
|
|
|
+ defaultChargeStandard: this.topFrom.defaultChargeStandard,
|
|
|
+ singleTrainMinutes: this.topFrom.singleTrainMinutes,
|
|
|
+ coursePlan: this.topFrom.coursePlan,
|
|
|
+ graduateGrade: this.topFrom.graduateGrade,
|
|
|
+ saleActivityDesc: this.topFrom.saleActivityDesc,
|
|
|
};
|
|
|
// obj.musicGroupPaymentEntities = [];
|
|
|
// createTeam
|
|
@@ -1112,7 +1302,14 @@ export default {
|
|
|
homeworkPushFlag: 1,
|
|
|
isGiveAccessories: 0,
|
|
|
memberCourseShowFlag: 0,
|
|
|
- extracurricularTeacher:'NORMAL'
|
|
|
+ extracurricularTeacher: "NORMAL",
|
|
|
+ musicGroupPlanMakingId: '',
|
|
|
+ firstRecruitGrade: '',
|
|
|
+ defaultChargeStandard: '',
|
|
|
+ singleTrainMinutes: '',
|
|
|
+ coursePlan: '',
|
|
|
+ graduateGrade: '',
|
|
|
+ saleActivityDesc: '',
|
|
|
};
|
|
|
this.$refs["topinfo"].resetFields();
|
|
|
},
|
|
@@ -1351,9 +1548,33 @@ export default {
|
|
|
this.topFrom.transactionTeacherId =
|
|
|
res.data.musicGroup.transactionTeacherId || "";
|
|
|
this.topFrom.homeworkPushFlag = res.data.musicGroup.homeworkPushFlag;
|
|
|
- this.topFrom.isGiveAccessories = res.data.musicGroup.isGiveAccessories ? 1 : 0;
|
|
|
- this.topFrom.memberCourseShowFlag = res.data.musicGroup.memberCourseShowFlag ? 1 : 0;
|
|
|
- this.topFrom.extracurricularTeacher = res.data.musicGroup.extracurricularTeacher
|
|
|
+ this.topFrom.isGiveAccessories = res.data.musicGroup.isGiveAccessories
|
|
|
+ ? 1
|
|
|
+ : 0;
|
|
|
+ this.topFrom.memberCourseShowFlag = res.data.musicGroup
|
|
|
+ .memberCourseShowFlag
|
|
|
+ ? 1
|
|
|
+ : 0;
|
|
|
+ this.topFrom.extracurricularTeacher =
|
|
|
+ res.data.musicGroup.extracurricularTeacher;
|
|
|
+
|
|
|
+ this.topFrom.musicGroupPlanMakingId =
|
|
|
+ res.data.musicGroup.musicGroupPlanMakingId;
|
|
|
+ this.topFrom.firstRecruitGrade =
|
|
|
+ res.data.musicGroup.firstRecruitGrade;
|
|
|
+ this.topFrom.defaultChargeStandard =
|
|
|
+ res.data.musicGroup.defaultChargeStandard;
|
|
|
+ this.topFrom.singleTrainMinutes =
|
|
|
+ res.data.musicGroup.singleTrainMinutes;
|
|
|
+ this.topFrom.coursePlan =
|
|
|
+ res.data.musicGroup.coursePlan;
|
|
|
+ this.topFrom.graduateGrade =
|
|
|
+ res.data.musicGroup.graduateGrade;
|
|
|
+ this.topFrom.saleActivityDesc =
|
|
|
+ res.data.musicGroup.saleActivityDesc;
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
localStorage.setItem(`${this.teamid}base`, JSON.stringify(this.topFrom));
|
|
|
},
|
|
|
changeType(val) {
|
|
@@ -1555,7 +1776,7 @@ export default {
|
|
|
</style>
|
|
|
<style scoped lang="scss">
|
|
|
.banseLeft {
|
|
|
- ::v-deep .el-form--inline {
|
|
|
+ :deep(.el-form--inline) {
|
|
|
.el-form-item__content {
|
|
|
display: block;
|
|
|
}
|