|
@@ -273,7 +273,7 @@
|
|
|
<div class="chioseWrap"
|
|
|
v-if='payList.student.chiose == "loop"'>
|
|
|
<p>请选择缴费月份:</p>
|
|
|
- <el-checkbox-group v-model="chioseMonth"
|
|
|
+ <el-checkbox-group v-model="payList.chioseMonth"
|
|
|
fill="#14928A"
|
|
|
text-color='#474747'>
|
|
|
|
|
@@ -369,7 +369,8 @@ export default {
|
|
|
time: '', // 报名截止时间
|
|
|
startClass: '', // 招生年级起始
|
|
|
address: '', // 教学地点
|
|
|
- salary: '' // 收费模式
|
|
|
+ salary: '', // 收费模式
|
|
|
+ head: ''
|
|
|
},
|
|
|
checkList: {
|
|
|
soundInfo: { // 声部
|
|
@@ -393,7 +394,7 @@ export default {
|
|
|
value: '年度安排个月共xxx课时,课时,原价xxx元,现价xxxx元/月(约 xxxx元/月 )'
|
|
|
}
|
|
|
}, // 选中的集合
|
|
|
- chioseMonth: [], // 选中的月份
|
|
|
+
|
|
|
baseInfo: {},
|
|
|
money: 580,
|
|
|
orderInfo: {
|
|
@@ -421,17 +422,22 @@ export default {
|
|
|
student: {
|
|
|
ischeck: true,
|
|
|
chiose: 'loop'
|
|
|
- }
|
|
|
+ },
|
|
|
+ chioseMonth: [], // 选中的月份
|
|
|
},
|
|
|
activeTeam: [],
|
|
|
- teamid: ''
|
|
|
+ teamid: '',
|
|
|
+ teamStatus: ''
|
|
|
}
|
|
|
},
|
|
|
created () {
|
|
|
//, { id: 191015094822001, name: '测试2团' }
|
|
|
// 传过来的乐团信息
|
|
|
- this.activeTeam = [{ id: 191014135135001, name: '测试1团' }]
|
|
|
+ this.activeTeam = [{ id: 191014135135001, name: '测试1团' }, { id: 191015094822001, name: '测试2团' }]
|
|
|
+ // 分为3种 1.
|
|
|
if (this.activeTeam && this.activeTeam.length == 1) {
|
|
|
+ // 单团修改
|
|
|
+ this.teamStatus = 'resetOne'
|
|
|
this.teamid = this.activeTeam[0].id;
|
|
|
getTeamBaseInfo({ musicGroupId: this.teamid }).then(res => {
|
|
|
if (res.code == 200) {
|
|
@@ -476,6 +482,15 @@ export default {
|
|
|
})
|
|
|
}
|
|
|
|
|
|
+ if (!this.activeTeam || this.activeTeam.length == 0) {
|
|
|
+ // 新建团
|
|
|
+ this.teamStatus = 'newTeam'
|
|
|
+ }
|
|
|
+ if (this.activeTeam && this.activeTeam.length > 1) {
|
|
|
+ // 多团合并
|
|
|
+ this.teamStatus = 'newTeam'
|
|
|
+ }
|
|
|
+
|
|
|
},
|
|
|
mounted () {
|
|
|
// 1.获取各个选项卡的数据内容
|
|
@@ -534,20 +549,12 @@ export default {
|
|
|
if (!valid) {
|
|
|
this.$message.error('请填写建团必要参数')
|
|
|
} else {
|
|
|
- // 我存三个对象
|
|
|
- // 1. topFromm
|
|
|
- // 2. checkList
|
|
|
- // // 3. payList
|
|
|
this.$store.dispatch('topinfo', this.topFrom);
|
|
|
this.$store.dispatch('checkinfo', this.checkList);
|
|
|
this.$store.dispatch('getpayInfo', this.payList);
|
|
|
- // checkinfo getpayInfo
|
|
|
-
|
|
|
this.$emit('chiosetab', num);
|
|
|
-
|
|
|
}
|
|
|
})
|
|
|
-
|
|
|
},
|
|
|
resetSubmit () {
|
|
|
this.$refs['topinfo'].validate((valid, object) => {
|
|
@@ -569,7 +576,8 @@ export default {
|
|
|
// paymentMonths:obj.months 有待确认
|
|
|
schoolId: this.topFrom.address,
|
|
|
courseForm: JSON.stringify(this.checkfor),
|
|
|
- id: this.teamid
|
|
|
+ id: this.teamid,
|
|
|
+ directorUserId: this.topFrom.head
|
|
|
}
|
|
|
obj.musicGroupPaymentEntities = []
|
|
|
// 添加学校主体付费方式
|
|
@@ -594,7 +602,10 @@ export default {
|
|
|
}
|
|
|
// 发请求
|
|
|
resetTeamBaseInfo(obj).then(res => {
|
|
|
-
|
|
|
+ if (res.code == 200) {
|
|
|
+ this.$message.success('修改乐团成功')
|
|
|
+ this.$router.push({ path: '/business/teamDetails', query: { id: this.teamid, name: this.topFrom.name } })
|
|
|
+ }
|
|
|
})
|
|
|
}
|
|
|
})
|