|
@@ -395,6 +395,8 @@ export default {
|
|
|
this.$emit('chiosetab', 0);
|
|
|
},
|
|
|
submitInfo (type) {
|
|
|
+ // console.log(this.activeSoundList)
|
|
|
+ // return;
|
|
|
let status;
|
|
|
if (type == 1) {
|
|
|
// 保存
|
|
@@ -428,6 +430,12 @@ export default {
|
|
|
}
|
|
|
obj.musicGroupPaymentEntities = []
|
|
|
// 添加学校主体付费方式
|
|
|
+ if (this.payfor.student.ischeck) {
|
|
|
+ obj.musicGroupPaymentEntities.push({
|
|
|
+ 'paymentMethod': this.payfor.student.chiose,
|
|
|
+ 'name': '学生'
|
|
|
+ })
|
|
|
+ }
|
|
|
if (this.payfor.school.ischeck) {
|
|
|
obj.musicGroupPaymentEntities.push({
|
|
|
'amount': this.payfor.school.price,
|
|
@@ -465,7 +473,7 @@ export default {
|
|
|
let some = {
|
|
|
subjectId: active.id,
|
|
|
type: 'ACCESSORIES',
|
|
|
- goodsIdList: mark.goods,
|
|
|
+ goodsIdList: mark.goods.join(','),
|
|
|
name: mark.name,
|
|
|
price: mark.price
|
|
|
}
|
|
@@ -483,6 +491,7 @@ export default {
|
|
|
}
|
|
|
obj.musicGroupSubjectPlans.push(item);
|
|
|
})
|
|
|
+ console.log(obj);
|
|
|
createTeam(obj).then(res => {
|
|
|
if (res.code == 200) {
|
|
|
// 成功 跳转到乐团报名详情
|
|
@@ -669,25 +678,26 @@ export default {
|
|
|
if (this.activeSoundList[i].id == res.data.musicGroupSubjectGoodsGroups[j].subjectId) {
|
|
|
//
|
|
|
if (res.data.musicGroupSubjectGoodsGroups[j].type == 'INSTRUMENT') {
|
|
|
- let arr = [...res.data.musicGroupSubjectGoodsGroups[j].goodsIdList];
|
|
|
- this.activeSoundList[i].zhonglei = arr.map(item => {
|
|
|
- return parseInt(item)
|
|
|
- })
|
|
|
- this.activeSoundList[i].goodsList = res.data.musicGroupSubjectGoodsGroups[j].goodsList;
|
|
|
+ this.activeSoundList[i].zhonglei = this.activeSoundList[i].zhonglei.concat(res.data.musicGroupSubjectGoodsGroups[j].goodsIdList)
|
|
|
+
|
|
|
+ this.activeSoundList[i].goodsList = this.activeSoundList[i].goodsList.concat(res.data.musicGroupSubjectGoodsGroups[j].goodsList);
|
|
|
// goodsList
|
|
|
+ // console.log(this.activeSoundList[i].goodsList)
|
|
|
|
|
|
}
|
|
|
+ // 拿辅件
|
|
|
if (res.data.musicGroupSubjectGoodsGroups[j].type == 'ACCESSORIES') {
|
|
|
if (res.data.musicGroupSubjectGoodsGroups[j].goodsList.length >= 0) {
|
|
|
this.activeSoundList[i].markList = [];
|
|
|
- this.activeSoundList[i].markList.push(res.data.musicGroupSubjectGoodsGroups[j])
|
|
|
- this.activeSoundList[i].markList.map(item => {
|
|
|
- item.goods = item.goodsList.map(some => {
|
|
|
- return some.id;
|
|
|
- })
|
|
|
- })
|
|
|
+ let obj = {};
|
|
|
+ obj.goods = res.data.musicGroupSubjectGoodsGroups[j].goodsIdList.split(',');
|
|
|
+ obj.name = res.data.musicGroupSubjectGoodsGroups[j].name
|
|
|
+ obj.price = res.data.musicGroupSubjectGoodsGroups[j].price;
|
|
|
+ this.activeSoundList[i].markList.push(obj);
|
|
|
+ // this.activeSoundList[i].markList.goodsList.goods = JSON.parse(res.data.musicGroupSubjectGoodsGroups[j].goodsIdList)
|
|
|
+ this.activeSoundList[i].markChioseList = this.activeSoundList[i].markChioseList.concat(res.data.musicGroupSubjectGoodsGroups[j].goodsList);
|
|
|
+ // console.log(this.activeSoundList[i].markChioseList);
|
|
|
|
|
|
- this.activeSoundList[i].markChioseList = res.data.musicGroupSubjectGoodsGroups[j].goodsList
|
|
|
}
|
|
|
|
|
|
}
|