|
@@ -1,27 +1,5 @@
|
|
<template>
|
|
<template>
|
|
<div class='sound-container'>
|
|
<div class='sound-container'>
|
|
- <p class="subTitle">按月缴费时,将在所选月份的1号的前一周提醒用户缴费操作,单次的缴费金额为当前列表「预计收费」的设置金额</p>
|
|
|
|
- <div class="chioseWrap"
|
|
|
|
- v-if='isLoop=="loop"'>
|
|
|
|
- <p>请选择缴费月份:</p>
|
|
|
|
- <el-checkbox-group v-model="checkList"
|
|
|
|
- fill="#14928A"
|
|
|
|
- text-color='#474747'>
|
|
|
|
-
|
|
|
|
- <el-checkbox label="1">一月</el-checkbox>
|
|
|
|
- <el-checkbox label="2">二月</el-checkbox>
|
|
|
|
- <el-checkbox label="3">三月</el-checkbox>
|
|
|
|
- <el-checkbox label="4">四月</el-checkbox>
|
|
|
|
- <el-checkbox label="5">五月</el-checkbox>
|
|
|
|
- <el-checkbox label="6">六月</el-checkbox>
|
|
|
|
- <el-checkbox label="7">七月</el-checkbox>
|
|
|
|
- <el-checkbox label="8">八月</el-checkbox>
|
|
|
|
- <el-checkbox label="9">九月</el-checkbox>
|
|
|
|
- <el-checkbox label="10">十月</el-checkbox>
|
|
|
|
- <el-checkbox label="11">十一月</el-checkbox>
|
|
|
|
- <el-checkbox label="12">十二月</el-checkbox>
|
|
|
|
- </el-checkbox-group>
|
|
|
|
- </div>
|
|
|
|
|
|
|
|
<div class="topMsg">
|
|
<div class="topMsg">
|
|
<p>当前选择声部数(个):{{chioseSoundNum}}</p>
|
|
<p>当前选择声部数(个):{{chioseSoundNum}}</p>
|
|
@@ -38,11 +16,16 @@
|
|
width="55">
|
|
width="55">
|
|
</el-table-column>
|
|
</el-table-column>
|
|
<el-table-column label="声部"
|
|
<el-table-column label="声部"
|
|
|
|
+ align="center"
|
|
|
|
+ width="80"
|
|
prop="sound">
|
|
prop="sound">
|
|
</el-table-column>
|
|
</el-table-column>
|
|
<el-table-column label="计划招生"
|
|
<el-table-column label="计划招生"
|
|
|
|
+ align="center"
|
|
|
|
+ width="100"
|
|
prop="jihua">
|
|
prop="jihua">
|
|
- <template slot-scope="scope">
|
|
|
|
|
|
+ <template slot-scope="scope"
|
|
|
|
+ width="100">
|
|
<div>
|
|
<div>
|
|
<el-input v-if='scope.row.type == 1'
|
|
<el-input v-if='scope.row.type == 1'
|
|
type='number'
|
|
type='number'
|
|
@@ -50,11 +33,13 @@
|
|
size='mini'
|
|
size='mini'
|
|
v-model="scope.row.jihua"
|
|
v-model="scope.row.jihua"
|
|
placeholder="请输入"></el-input>
|
|
placeholder="请输入"></el-input>
|
|
- <p v-if='scope.row.type == 2'>{{scope.row.jihua}}</p>
|
|
|
|
|
|
+ <!-- <p v-if='scope.row.type == 2'>{{scope.row.jihua}}</p> -->
|
|
</div>
|
|
</div>
|
|
</template>
|
|
</template>
|
|
</el-table-column>
|
|
</el-table-column>
|
|
<el-table-column label="预计收费"
|
|
<el-table-column label="预计收费"
|
|
|
|
+ width="100"
|
|
|
|
+ align="center"
|
|
prop="yuji">
|
|
prop="yuji">
|
|
<template slot-scope="scope">
|
|
<template slot-scope="scope">
|
|
<div>
|
|
<div>
|
|
@@ -64,25 +49,27 @@
|
|
size='mini'
|
|
size='mini'
|
|
v-model="scope.row.yuji"
|
|
v-model="scope.row.yuji"
|
|
placeholder="请输入"></el-input>
|
|
placeholder="请输入"></el-input>
|
|
- <p v-if='scope.row.type == 2'>{{scope.row.yuji}}</p>
|
|
|
|
|
|
+ <!-- <p v-if='scope.row.type == 2'>{{scope.row.yuji}}</p> -->
|
|
</div>
|
|
</div>
|
|
</template>
|
|
</template>
|
|
|
|
|
|
</el-table-column>
|
|
</el-table-column>
|
|
- <el-table-column label="可选乐器种类"
|
|
|
|
|
|
+ <el-table-column label="可选乐器规格"
|
|
|
|
+ align="center"
|
|
prop="zhonglei"
|
|
prop="zhonglei"
|
|
width="300">
|
|
width="300">
|
|
<template slot-scope="scope">
|
|
<template slot-scope="scope">
|
|
<!-- 'typeVisible':false,'provideVisible':false,'markVisible':false -->
|
|
<!-- 'typeVisible':false,'provideVisible':false,'markVisible':false -->
|
|
<div>
|
|
<div>
|
|
|
|
+ <span>{{scope.row.zhonglei | zhongleiFilter(scope.row.goodsList)}}</span>
|
|
<el-popover placement="bottom"
|
|
<el-popover placement="bottom"
|
|
@show='chioseType(scope.row)'
|
|
@show='chioseType(scope.row)'
|
|
v-model="scope.row.typeVisible"
|
|
v-model="scope.row.typeVisible"
|
|
v-if='scope.row.type == 1'>
|
|
v-if='scope.row.type == 1'>
|
|
- <div slot='reference'
|
|
|
|
- class='chiose'>
|
|
|
|
- 操作
|
|
|
|
- </div>
|
|
|
|
|
|
+ <el-button type="text"
|
|
|
|
+ slot='reference'>
|
|
|
|
+ 修改
|
|
|
|
+ </el-button>
|
|
<!-- zhonglei -->
|
|
<!-- zhonglei -->
|
|
<el-select v-model="scope.row.zhonglei"
|
|
<el-select v-model="scope.row.zhonglei"
|
|
multiple
|
|
multiple
|
|
@@ -102,28 +89,29 @@
|
|
@click="scope.row.typeVisible = false">确定</el-button>
|
|
@click="scope.row.typeVisible = false">确定</el-button>
|
|
</div>
|
|
</div>
|
|
</el-popover>
|
|
</el-popover>
|
|
- <p v-if='scope.row.type == 2'>{{scope.row.zhonglei | zhongleiFilter(scope.row.goodsList)}}</p>
|
|
|
|
|
|
+
|
|
</div>
|
|
</div>
|
|
</template>
|
|
</template>
|
|
|
|
|
|
</el-table-column>
|
|
</el-table-column>
|
|
<el-table-column label="乐器提供方式"
|
|
<el-table-column label="乐器提供方式"
|
|
|
|
+ align="center"
|
|
prop="fangshi"
|
|
prop="fangshi"
|
|
width="180">
|
|
width="180">
|
|
<template slot-scope="scope">
|
|
<template slot-scope="scope">
|
|
<div>
|
|
<div>
|
|
<!-- <div class="chiose"
|
|
<!-- <div class="chiose"
|
|
>选择</div> -->
|
|
>选择</div> -->
|
|
- <p v-if='scope.row.type == 2'>{{scope.row.fangshi | fangshiFilter(scope.row.fangshiprice)}}</p>
|
|
|
|
|
|
+ <span v-if="scope.row.fangshi">{{scope.row.fangshi | fangshiFilter(scope.row.fangshiprice)}}</span>
|
|
<el-popover placement="bottom"
|
|
<el-popover placement="bottom"
|
|
v-model="scope.row.provideVisible"
|
|
v-model="scope.row.provideVisible"
|
|
v-if='scope.row.type == 1'>
|
|
v-if='scope.row.type == 1'>
|
|
- <div class='chiose'
|
|
|
|
- slot='reference'>
|
|
|
|
- 操作
|
|
|
|
- </div>
|
|
|
|
|
|
+ <i class='el-icon-edit'
|
|
|
|
+ slot='reference'>
|
|
|
|
+ </i>
|
|
|
|
|
|
- <el-select v-model="scope.row.fangshi">
|
|
|
|
|
|
+ <el-select v-model="scope.row.fangshi"
|
|
|
|
+ clearable>
|
|
<el-option label="免费"
|
|
<el-option label="免费"
|
|
value="FREE"></el-option>
|
|
value="FREE"></el-option>
|
|
<el-option label="租赁"
|
|
<el-option label="租赁"
|
|
@@ -147,6 +135,7 @@
|
|
</template>
|
|
</template>
|
|
</el-table-column>
|
|
</el-table-column>
|
|
<el-table-column label="教辅组合"
|
|
<el-table-column label="教辅组合"
|
|
|
|
+ align="center"
|
|
prop="jiaopu">
|
|
prop="jiaopu">
|
|
<template slot-scope="scope">
|
|
<template slot-scope="scope">
|
|
<div>
|
|
<div>
|
|
@@ -170,12 +159,9 @@
|
|
</div>
|
|
</div>
|
|
</el-popover> -->
|
|
</el-popover> -->
|
|
<!-- scope.row.markVisible = true -->
|
|
<!-- scope.row.markVisible = true -->
|
|
- <div class='chiose'
|
|
|
|
- v-if='scope.row.type == 1'
|
|
|
|
- @click="chioseMark(scope.row)">
|
|
|
|
- 操作
|
|
|
|
- </div>
|
|
|
|
|
|
+
|
|
<el-dialog :visible.sync="scope.row.markVisible"
|
|
<el-dialog :visible.sync="scope.row.markVisible"
|
|
|
|
+ style="text-align:left;"
|
|
width="60%">
|
|
width="60%">
|
|
<el-button type='text'
|
|
<el-button type='text'
|
|
@click="addMark(scope.row)">添加教辅</el-button>
|
|
@click="addMark(scope.row)">添加教辅</el-button>
|
|
@@ -220,14 +206,19 @@
|
|
@click="scope.row.markVisible = false">确 定</el-button>
|
|
@click="scope.row.markVisible = false">确 定</el-button>
|
|
</span>
|
|
</span>
|
|
</el-dialog>
|
|
</el-dialog>
|
|
- <div v-if='scope.row.type == 2'>
|
|
|
|
- <p v-for='(item,index) in scope.row.markList'
|
|
|
|
- :key='index'>{{item.name+':'}}{{item.goods|goodsFilter(scope.row.markChioseList)}}{{' 价格 '+item.price }} </p>
|
|
|
|
- </div>
|
|
|
|
|
|
+ <span>
|
|
|
|
+ <span v-for='(item,index) in scope.row.markList'
|
|
|
|
+ v-if="item.name"
|
|
|
|
+ :key='index'>{{item.name+':'}}{{item.goods|goodsFilter(scope.row.markChioseList)}}{{' 价格 '+item.price }} </span>
|
|
|
|
+ </span>
|
|
|
|
+ <i class='el-icon-edit'
|
|
|
|
+ slot='reference'
|
|
|
|
+ @click="chioseMark(scope.row)">
|
|
|
|
+ </i>
|
|
</div>
|
|
</div>
|
|
</template>
|
|
</template>
|
|
</el-table-column>
|
|
</el-table-column>
|
|
- <el-table-column label="操作">
|
|
|
|
|
|
+ <!-- <el-table-column label="操作">
|
|
<template slot-scope="scope">
|
|
<template slot-scope="scope">
|
|
<div>
|
|
<div>
|
|
<el-button v-if='scope.row.type == 2'
|
|
<el-button v-if='scope.row.type == 2'
|
|
@@ -238,7 +229,7 @@
|
|
@click="savecolumn(scope.row)">保存</el-button>
|
|
@click="savecolumn(scope.row)">保存</el-button>
|
|
</div>
|
|
</div>
|
|
</template>
|
|
</template>
|
|
- </el-table-column>
|
|
|
|
|
|
+ </el-table-column> -->
|
|
</el-table>
|
|
</el-table>
|
|
<div class="floor">
|
|
<div class="floor">
|
|
<div class="remove"
|
|
<div class="remove"
|
|
@@ -386,6 +377,7 @@ export default {
|
|
let id = row.id;
|
|
let id = row.id;
|
|
getGoods({ 'subjectId': 3, 'type': 'ACCESSORIES' }).then(res => {
|
|
getGoods({ 'subjectId': 3, 'type': 'ACCESSORIES' }).then(res => {
|
|
if (res.code == 200) {
|
|
if (res.code == 200) {
|
|
|
|
+ console.log(res);
|
|
row.markChioseList = res.data;
|
|
row.markChioseList = res.data;
|
|
// console.log(row);
|
|
// console.log(row);
|
|
}
|
|
}
|
|
@@ -412,7 +404,6 @@ export default {
|
|
// 整理数据提交
|
|
// 整理数据提交
|
|
let obj = {};
|
|
let obj = {};
|
|
this.payfor.student.chiose == 'loop' ? obj.months = this.checkList : obj.months = [];
|
|
this.payfor.student.chiose == 'loop' ? obj.months = this.checkList : obj.months = [];
|
|
- console.log(JSON.stringify(this.checkfor));
|
|
|
|
obj.musicGroup = {
|
|
obj.musicGroup = {
|
|
settlementType: this.topfor.salary,
|
|
settlementType: this.topfor.salary,
|
|
applyExpireDate: this.topfor.time + ' 00:00:01',
|
|
applyExpireDate: this.topfor.time + ' 00:00:01',
|
|
@@ -429,7 +420,7 @@ export default {
|
|
}
|
|
}
|
|
obj.musicGroupPaymentEntities = []
|
|
obj.musicGroupPaymentEntities = []
|
|
// 添加学校主体付费方式
|
|
// 添加学校主体付费方式
|
|
- console.log(this.payfor.company.ischeck)
|
|
|
|
|
|
+ // console.log(this.payfor.company.ischeck)
|
|
if (this.payfor.school.ischeck) {
|
|
if (this.payfor.school.ischeck) {
|
|
|
|
|
|
obj.musicGroupPaymentEntities.push({
|
|
obj.musicGroupPaymentEntities.push({
|
|
@@ -450,7 +441,6 @@ export default {
|
|
}
|
|
}
|
|
// 添加商品以及教辅
|
|
// 添加商品以及教辅
|
|
obj.musicGroupSubjectGoodsGroups = [];
|
|
obj.musicGroupSubjectGoodsGroups = [];
|
|
- console.log(this.activeSoundList);
|
|
|
|
for (let i in this.activeSoundList) {
|
|
for (let i in this.activeSoundList) {
|
|
// 遍历声部里的乐器
|
|
// 遍历声部里的乐器
|
|
let some = {};
|
|
let some = {};
|
|
@@ -485,7 +475,7 @@ export default {
|
|
item.subjectId = this.activeSoundList[i].id;
|
|
item.subjectId = this.activeSoundList[i].id;
|
|
obj.musicGroupSubjectPlans.push(item);
|
|
obj.musicGroupSubjectPlans.push(item);
|
|
}
|
|
}
|
|
- console.log(obj);
|
|
|
|
|
|
+
|
|
createTeam(obj).then(res => {
|
|
createTeam(obj).then(res => {
|
|
if (res.code == 200) {
|
|
if (res.code == 200) {
|
|
// 成功 跳转到乐团报名详情
|
|
// 成功 跳转到乐团报名详情
|
|
@@ -547,7 +537,6 @@ export default {
|
|
getDefaultSubject({ chargeTypeId: type }).then(res => {
|
|
getDefaultSubject({ chargeTypeId: type }).then(res => {
|
|
if (res.code == 200) {
|
|
if (res.code == 200) {
|
|
this.activeSoundList = res.data.map(item => {
|
|
this.activeSoundList = res.data.map(item => {
|
|
- console.log(this.soundLists[0])
|
|
|
|
this.soundLists[0].push(item.id)
|
|
this.soundLists[0].push(item.id)
|
|
let obj = { 'id': item.id, 'sound': item.name, 'jihua': 0, 'yuji': 0, 'zhonglei': [], 'fangshi': '', 'fangshiprice': 0, 'jiaopu': '', 'type': 1, 'typeVisible': false, 'provideVisible': false, 'markVisible': false, 'goodsList': [], 'markList': [{ 'name': '', 'goods': [], 'price': '' }], 'markChioseList': [] }
|
|
let obj = { 'id': item.id, 'sound': item.name, 'jihua': 0, 'yuji': 0, 'zhonglei': [], 'fangshi': '', 'fangshiprice': 0, 'jiaopu': '', 'type': 1, 'typeVisible': false, 'provideVisible': false, 'markVisible': false, 'goodsList': [], 'markList': [{ 'name': '', 'goods': [], 'price': '' }], 'markChioseList': [] }
|
|
return obj;
|
|
return obj;
|
|
@@ -765,4 +754,7 @@ export default {
|
|
width: 120px;
|
|
width: 120px;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
+.el-icon-plus {
|
|
|
|
+ cursor: pointer;
|
|
|
|
+}
|
|
</style>
|
|
</style>
|