|
@@ -189,7 +189,7 @@
|
|
|
</el-dialog>
|
|
|
<span>
|
|
|
<span v-for='(item,index) in scope.row.markList'
|
|
|
- v-if="item.name"
|
|
|
+ v-if="item.name && scope.row.markChioseList.length>0"
|
|
|
:key='index'>{{item.name+':'}}{{item.goods|goodsFilter(scope.row.markChioseList)}}{{' 价格 '+item.price }} </span>
|
|
|
</span>
|
|
|
<i class='el-icon-edit'
|
|
@@ -363,7 +363,6 @@ export default {
|
|
|
let id = row.id;
|
|
|
getGoods({ 'subjectId': id, 'type': 'ACCESSORIES' }).then(res => {
|
|
|
if (res.code == 200) {
|
|
|
- console.log(res);
|
|
|
row.markChioseList = res.data;
|
|
|
// console.log(row);
|
|
|
}
|
|
@@ -487,6 +486,7 @@ export default {
|
|
|
let activeSoundList = this.activeSoundList
|
|
|
// 添加商品以及教辅
|
|
|
obj.musicGroupId = this.teamid
|
|
|
+ obj.status = status;
|
|
|
obj.musicGroupSubjectGoodsGroups = []
|
|
|
obj.musicGroupSubjectPlans = []
|
|
|
activeSoundList.forEach(active => {
|
|
@@ -524,7 +524,10 @@ export default {
|
|
|
})
|
|
|
// 发请求修改声部信息
|
|
|
updateSubjectInfo(obj).then(res => {
|
|
|
-
|
|
|
+ if (res.code == 200) {
|
|
|
+ this.$message.success('提交成功')
|
|
|
+ this.$router.push({ path: '/business/teamDetail' })
|
|
|
+ }
|
|
|
})
|
|
|
}
|
|
|
|
|
@@ -565,7 +568,7 @@ export default {
|
|
|
},
|
|
|
goodsFilter (val, list) {
|
|
|
if (list.length <= 0) {
|
|
|
- return;
|
|
|
+ return '';
|
|
|
}
|
|
|
let arr = [];
|
|
|
for (let i = 0; i < val.length; i++) {
|
|
@@ -635,11 +638,27 @@ export default {
|
|
|
}
|
|
|
if (res.data.musicGroupSubjectGoodsGroups[j].type == 'ACCESSORIES') {
|
|
|
if (res.data.musicGroupSubjectGoodsGroups[j].goodsList.length >= 0) {
|
|
|
- this.activeSoundList[i].markList = res.data.musicGroupSubjectGoodsGroups[j].goodsList;
|
|
|
+ this.activeSoundList[i].markList = [];
|
|
|
+ this.activeSoundList[i].markList.push(res.data.musicGroupSubjectGoodsGroups[j])
|
|
|
console.log(this.activeSoundList[i].markList);
|
|
|
+ this.activeSoundList[i].markList.map(item => {
|
|
|
+ item.goods = item.goodsList.map(some => {
|
|
|
+ return some.id;
|
|
|
+ })
|
|
|
+ })
|
|
|
|
|
|
+ /**
|
|
|
+ * let some = {
|
|
|
+ subjectId: active.id,
|
|
|
+ type: 'ACCESSORIES',
|
|
|
+ goodsIdList: mark.goods ? mark.goods.join(',') : '',
|
|
|
+ name: mark.name,
|
|
|
+ price: mark.price
|
|
|
+ }
|
|
|
+ *
|
|
|
+ */
|
|
|
} else {
|
|
|
- this.activeSoundList[i].markList = [];
|
|
|
+
|
|
|
}
|
|
|
|
|
|
}
|