|
@@ -493,146 +493,157 @@ export default {
|
|
|
orgianList: []
|
|
|
}
|
|
|
},
|
|
|
- created () {
|
|
|
- // 分为3种 this.teamStatus
|
|
|
- // 1.resetTeam 乐团修改
|
|
|
- // 2. newTeam 新建乐团
|
|
|
- // 3.teamList 跨团修改
|
|
|
- // 4.teamDraft 乐团草稿
|
|
|
- // let year = new Date().getFullYear();
|
|
|
- // axios.post('/jiari/', qs.stringify({ d: year })).then(res => {
|
|
|
- // // this.holidayList = Object.keys(res.data[year])
|
|
|
- // })
|
|
|
- this.teamStatus = this.$route.query.type;
|
|
|
- // 传过来的乐团信息
|
|
|
- this.activeTeam = this.getTeamList;
|
|
|
-
|
|
|
- if (this.teamStatus == 'resetTeam' || this.teamStatus == 'teamDraft' || this.teamStatus == 'teamAudit') {
|
|
|
- // 单团修改
|
|
|
- this.teamid = this.$route.query.id;
|
|
|
- getTeamBaseInfo({ musicGroupId: this.teamid }).then(res => {
|
|
|
- if (res.code == 200) {
|
|
|
- // 头部
|
|
|
- this.topFrom.name = res.data.musicGroup.name;
|
|
|
- this.topFrom.time = res.data.musicGroup.applyExpireDate;
|
|
|
- this.topFrom.type = res.data.musicGroup.chargeTypeId;
|
|
|
- this.topFrom.startClass = res.data.musicGroup.enrollClasses.split(',');
|
|
|
- this.topFrom.section = res.data.musicGroup.organId;
|
|
|
- this.topFrom.school = res.data.musicGroup.cooperationOrganId;
|
|
|
- this.topFrom.teacher = res.data.musicGroup.educationalTeacherId;
|
|
|
- this.topFrom.boss = res.data.musicGroup.teamTeacherId;
|
|
|
- this.topFrom.address = res.data.musicGroup.schoolId;
|
|
|
- this.topFrom.salary = res.data.musicGroup.settlementType;
|
|
|
- this.topFrom.head = res.data.musicGroup.directorUserId;
|
|
|
- this.topFrom.isClass = res.data.musicGroup.isClassroomLessons
|
|
|
- this.topFrom.startTime = res.data.musicGroup.expectStartGroupDate;
|
|
|
- this.topFrom.ownershipType = res.data.musicGroup.ownershipType;
|
|
|
- // 课程组成形式
|
|
|
- this.checkList = JSON.parse(res.data.musicGroup.courseForm);
|
|
|
- // 付费方式和周期
|
|
|
- for (let i in res.data.musicGroupPaymentEntities) {
|
|
|
- if (res.data.musicGroupPaymentEntities[i].name == '学校') {
|
|
|
- this.payList.school.ischeck = true;
|
|
|
- this.payList.school.value = res.data.musicGroupPaymentEntities[i].memo;
|
|
|
- this.payList.school.price = res.data.musicGroupPaymentEntities[i].amount;
|
|
|
- this.payList.school.chiose = res.data.musicGroupPaymentEntities[i].paymentMethod;
|
|
|
- }
|
|
|
- if (res.data.musicGroupPaymentEntities[i].name == '公司') {
|
|
|
- this.payList.company.ischeck = true;
|
|
|
- this.payList.company.value = res.data.musicGroupPaymentEntities[i].memo;
|
|
|
- this.payList.company.price = res.data.musicGroupPaymentEntities[i].amount;
|
|
|
- this.payList.company.chiose = res.data.musicGroupPaymentEntities[i].paymentMethod;
|
|
|
- }
|
|
|
+ activated () {
|
|
|
|
|
|
- if (res.data.months.length > 0) {
|
|
|
- this.payList.student.ischeck = true;
|
|
|
- this.payList.student.chiose = 'loop'
|
|
|
- this.chioseMonth = res.data.months;
|
|
|
- } else {
|
|
|
- this.payList.student.ischeck = true;
|
|
|
- this.payList.student.chiose = 'ONE_OFF'
|
|
|
- }
|
|
|
- }
|
|
|
- // 循环缴费月
|
|
|
- this.payList.chioseMonth = res.data.months;
|
|
|
- if (res.data.musicGroup.organId) {
|
|
|
- // 获取员工
|
|
|
- queryEmployByOrganId({ organId: res.data.musicGroup.organId, rows: 1000 }).then(res => {
|
|
|
- if (res.code == 200) {
|
|
|
- this.orgianList = res.data.rows;
|
|
|
- }
|
|
|
- })
|
|
|
- // 获取合作单位
|
|
|
- queryByOrganId({ organId: res.data.musicGroup.organId }).then(res => {
|
|
|
- if (res.code == 200) {
|
|
|
- this.cooperationList = res.data;
|
|
|
- }
|
|
|
- })
|
|
|
- // 获取教学点
|
|
|
- getSchool({ organId: res.data.musicGroup.organId }).then(res => {
|
|
|
- if (res.code == 200) {
|
|
|
- this.addList = res.data
|
|
|
- }
|
|
|
- })
|
|
|
- }
|
|
|
- }
|
|
|
- })
|
|
|
- }
|
|
|
+ },
|
|
|
+ created () {
|
|
|
+ this.init();
|
|
|
|
|
|
},
|
|
|
+ activated () {
|
|
|
+ this.init()
|
|
|
+ },
|
|
|
mounted () {
|
|
|
- // 1.获取各个选项卡的数据内容
|
|
|
- // getSection({ 'delFlag': 0, 'rows': 1000 }).then(res => {
|
|
|
- // if (res.code == 200) {
|
|
|
- // this.sectionList = res.data.rows;
|
|
|
- // }
|
|
|
- // }).catch()
|
|
|
- getEmployeeOrgan().then(res => {
|
|
|
- if (res.code == 200) {
|
|
|
- this.sectionList = res.data;
|
|
|
- }
|
|
|
- })
|
|
|
- // 2.获取收费类型选项卡
|
|
|
- getType({ 'rows': 1000 }).then(res => {
|
|
|
- if (res.code == 200) {
|
|
|
- this.typeList = res.data.rows;
|
|
|
- }
|
|
|
- })
|
|
|
- // 3.获取合作单位选项卡
|
|
|
- // getCooperation({ 'rows': 1000, search: this.organId }).then(res => {
|
|
|
- // if (res.code == 200) {
|
|
|
- // this.cooperationList = res.data.rows;
|
|
|
- // }
|
|
|
- // })
|
|
|
- // 4.获取老师选项卡
|
|
|
- // getTeacher({ 'rows': 1000, organId: this.organId }).then(res => {
|
|
|
- // if (res.code == 200) {
|
|
|
- // this.teacherList = res.data;
|
|
|
- // }
|
|
|
- // })
|
|
|
- // 5.获取教学地点选项卡
|
|
|
- // getAddress({ 'rows': 1000, }).then(res => {
|
|
|
- // if (res.code == 200) {
|
|
|
- // this.addList = res.data.rows;
|
|
|
- // }
|
|
|
- // })
|
|
|
- // 6.默认支付主体
|
|
|
- // getPayMaster({ 'rows': 1000 }).then(res => {
|
|
|
- // if (res.code == 200) {
|
|
|
- // this.payList = res.data.map(item => {
|
|
|
- // let obj = {};
|
|
|
- // obj.id = item.id;
|
|
|
- // obj.ischios
|
|
|
- // })
|
|
|
- // }
|
|
|
- // })
|
|
|
- // 缓存设置时的状态
|
|
|
- sessionStorage.setItem('resetCode', '1')
|
|
|
+
|
|
|
|
|
|
// 获取分部下的员工
|
|
|
|
|
|
},
|
|
|
methods: {
|
|
|
+
|
|
|
+ init () {
|
|
|
+ // 分为3种 this.teamStatus
|
|
|
+ // 1.resetTeam 乐团修改
|
|
|
+ // 2. newTeam 新建乐团
|
|
|
+ // 3.teamList 跨团修改
|
|
|
+ // 4.teamDraft 乐团草稿
|
|
|
+ // let year = new Date().getFullYear();
|
|
|
+ // axios.post('/jiari/', qs.stringify({ d: year })).then(res => {
|
|
|
+ // // this.holidayList = Object.keys(res.data[year])
|
|
|
+ // })
|
|
|
+ this.teamStatus = this.$route.query.type;
|
|
|
+ // 传过来的乐团信息
|
|
|
+ this.activeTeam = this.getTeamList;
|
|
|
+
|
|
|
+ if (this.teamStatus == 'resetTeam' || this.teamStatus == 'teamDraft' || this.teamStatus == 'teamAudit') {
|
|
|
+ // 单团修改
|
|
|
+ this.teamid = this.$route.query.id;
|
|
|
+ getTeamBaseInfo({ musicGroupId: this.teamid }).then(res => {
|
|
|
+ if (res.code == 200) {
|
|
|
+ // 头部
|
|
|
+ this.topFrom.name = res.data.musicGroup.name;
|
|
|
+ this.topFrom.time = res.data.musicGroup.applyExpireDate;
|
|
|
+ this.topFrom.type = res.data.musicGroup.chargeTypeId;
|
|
|
+ this.topFrom.startClass = res.data.musicGroup.enrollClasses.split(',');
|
|
|
+ this.topFrom.section = res.data.musicGroup.organId;
|
|
|
+ this.topFrom.school = res.data.musicGroup.cooperationOrganId;
|
|
|
+ this.topFrom.teacher = res.data.musicGroup.educationalTeacherId;
|
|
|
+ this.topFrom.boss = res.data.musicGroup.teamTeacherId;
|
|
|
+ this.topFrom.address = res.data.musicGroup.schoolId;
|
|
|
+ this.topFrom.salary = res.data.musicGroup.settlementType;
|
|
|
+ this.topFrom.head = res.data.musicGroup.directorUserId;
|
|
|
+ this.topFrom.isClass = res.data.musicGroup.isClassroomLessons
|
|
|
+ this.topFrom.startTime = res.data.musicGroup.expectStartGroupDate;
|
|
|
+ this.topFrom.ownershipType = res.data.musicGroup.ownershipType;
|
|
|
+ // 课程组成形式
|
|
|
+ this.checkList = JSON.parse(res.data.musicGroup.courseForm);
|
|
|
+ // 付费方式和周期
|
|
|
+ for (let i in res.data.musicGroupPaymentEntities) {
|
|
|
+ if (res.data.musicGroupPaymentEntities[i].name == '学校') {
|
|
|
+ this.payList.school.ischeck = true;
|
|
|
+ this.payList.school.value = res.data.musicGroupPaymentEntities[i].memo;
|
|
|
+ this.payList.school.price = res.data.musicGroupPaymentEntities[i].amount;
|
|
|
+ this.payList.school.chiose = res.data.musicGroupPaymentEntities[i].paymentMethod;
|
|
|
+ }
|
|
|
+ if (res.data.musicGroupPaymentEntities[i].name == '公司') {
|
|
|
+ this.payList.company.ischeck = true;
|
|
|
+ this.payList.company.value = res.data.musicGroupPaymentEntities[i].memo;
|
|
|
+ this.payList.company.price = res.data.musicGroupPaymentEntities[i].amount;
|
|
|
+ this.payList.company.chiose = res.data.musicGroupPaymentEntities[i].paymentMethod;
|
|
|
+ }
|
|
|
+
|
|
|
+ if (res.data.months.length > 0) {
|
|
|
+ this.payList.student.ischeck = true;
|
|
|
+ this.payList.student.chiose = 'loop'
|
|
|
+ this.chioseMonth = res.data.months;
|
|
|
+ } else {
|
|
|
+ this.payList.student.ischeck = true;
|
|
|
+ this.payList.student.chiose = 'ONE_OFF'
|
|
|
+ }
|
|
|
+ }
|
|
|
+ // 循环缴费月
|
|
|
+ this.payList.chioseMonth = res.data.months;
|
|
|
+ if (res.data.musicGroup.organId) {
|
|
|
+ // 获取员工
|
|
|
+ queryEmployByOrganId({ organId: res.data.musicGroup.organId, rows: 1000 }).then(res => {
|
|
|
+ if (res.code == 200) {
|
|
|
+ this.orgianList = res.data.rows;
|
|
|
+ }
|
|
|
+ })
|
|
|
+ // 获取合作单位
|
|
|
+ queryByOrganId({ organId: res.data.musicGroup.organId }).then(res => {
|
|
|
+ if (res.code == 200) {
|
|
|
+ this.cooperationList = res.data;
|
|
|
+ }
|
|
|
+ })
|
|
|
+ // 获取教学点
|
|
|
+ getSchool({ organId: res.data.musicGroup.organId }).then(res => {
|
|
|
+ if (res.code == 200) {
|
|
|
+ this.addList = res.data
|
|
|
+ }
|
|
|
+ })
|
|
|
+ }
|
|
|
+ }
|
|
|
+ })
|
|
|
+ }
|
|
|
+ // 1.获取各个选项卡的数据内容
|
|
|
+ // getSection({ 'delFlag': 0, 'rows': 1000 }).then(res => {
|
|
|
+ // if (res.code == 200) {
|
|
|
+ // this.sectionList = res.data.rows;
|
|
|
+ // }
|
|
|
+ // }).catch()
|
|
|
+ getEmployeeOrgan().then(res => {
|
|
|
+ if (res.code == 200) {
|
|
|
+ this.sectionList = res.data;
|
|
|
+ }
|
|
|
+ })
|
|
|
+ // 2.获取收费类型选项卡
|
|
|
+ getType({ 'rows': 1000 }).then(res => {
|
|
|
+ if (res.code == 200) {
|
|
|
+ this.typeList = res.data.rows;
|
|
|
+ }
|
|
|
+ })
|
|
|
+ // 3.获取合作单位选项卡
|
|
|
+ // getCooperation({ 'rows': 1000, search: this.organId }).then(res => {
|
|
|
+ // if (res.code == 200) {
|
|
|
+ // this.cooperationList = res.data.rows;
|
|
|
+ // }
|
|
|
+ // })
|
|
|
+ // 4.获取老师选项卡
|
|
|
+ // getTeacher({ 'rows': 1000, organId: this.organId }).then(res => {
|
|
|
+ // if (res.code == 200) {
|
|
|
+ // this.teacherList = res.data;
|
|
|
+ // }
|
|
|
+ // })
|
|
|
+ // 5.获取教学地点选项卡
|
|
|
+ // getAddress({ 'rows': 1000, }).then(res => {
|
|
|
+ // if (res.code == 200) {
|
|
|
+ // this.addList = res.data.rows;
|
|
|
+ // }
|
|
|
+ // })
|
|
|
+ // 6.默认支付主体
|
|
|
+ // getPayMaster({ 'rows': 1000 }).then(res => {
|
|
|
+ // if (res.code == 200) {
|
|
|
+ // this.payList = res.data.map(item => {
|
|
|
+ // let obj = {};
|
|
|
+ // obj.id = item.id;
|
|
|
+ // obj.ischios
|
|
|
+ // })
|
|
|
+ // }
|
|
|
+ // })
|
|
|
+ // 缓存设置时的状态
|
|
|
+ sessionStorage.setItem('resetCode', '1')
|
|
|
+ },
|
|
|
changeSection (val) {
|
|
|
// 修改分部的时候 重置运营主管 重置教务老师 重置乐队指导 合作单位 教学点
|
|
|
this.topFrom.teacher = '';
|