123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930 |
- <template>
- <div class='sound-container'>
- <div class="topMsg">
- <p>当前选择声部数(个):{{chioseSoundNum}}</p>
- <p style='margin-left:30px;'>计划招生人数(个):{{PlannedCount}}</p>
- </div>
- <div class="listWrap">
- <el-table :data='activeSoundList'
- ref="multipleTable"
- :header-cell-style="{background:'#EDEEF0',color:'#444'}"
- highlight-current-row
- @selection-change='handleSelectionChange'
- @row-click='handleclick'>
- <el-table-column type="selection"
- width="55">
- </el-table-column>
- <el-table-column label="声部"
- align="center"
- width="80"
- prop="sound">
- </el-table-column>
- <el-table-column label="计划招生"
- align="center"
- width="100"
- prop="jihua">
- <template slot-scope="scope"
- width="100">
- <div>
- <el-input v-if='scope.row.type == 1'
- type='number'
- style="width:80px"
- size='mini'
- v-model="scope.row.jihua"
- placeholder="请输入"></el-input>
- <!-- <p v-if='scope.row.type == 2'>{{scope.row.jihua}}</p> -->
- </div>
- </template>
- </el-table-column>
- <el-table-column label="预计收费"
- width="100"
- align="center"
- prop="yuji">
- <template slot-scope="scope">
- <div>
- <el-input v-if='scope.row.type == 1'
- type='number'
- style="width:80px"
- size='mini'
- v-model="scope.row.yuji"
- placeholder="请输入"></el-input>
- <!-- <p v-if='scope.row.type == 2'>{{scope.row.yuji}}</p> -->
- </div>
- </template>
- </el-table-column>
- <el-table-column label="可选乐器规格"
- align="center"
- prop="zhonglei"
- width="300">
- <template slot-scope="scope">
- <!-- 'typeVisible':false,'provideVisible':false,'markVisible':false -->
- <div>
- <span>{{scope.row.zhonglei | zhongleiFilter(scope.row.goodsList)}}</span>
- <el-popover placement="bottom"
- @show='chioseType(scope.row)'
- v-model="scope.row.typeVisible"
- v-if='scope.row.type == 1'>
- <el-button type="text"
- slot='reference'>
- 修改
- </el-button>
- <!-- zhonglei -->
- <el-select v-model="scope.row.zhonglei"
- multiple
- clearable
- collapse-tags>
- <el-option v-for="(item,index) in scope.row.goodsList"
- :key='index'
- :label="item.name"
- :value="item.id"></el-option>
- </el-select>
- <div style="text-align: right; margin-top: 20px">
- <!-- <el-button size="mini"
- type="text"
- @click="closechioseType(scope.row)">取消</el-button> -->
- <el-button type="primary"
- size="mini"
- @click="scope.row.typeVisible = false">确定</el-button>
- </div>
- </el-popover>
- </div>
- </template>
- </el-table-column>
- <el-table-column label="乐器提供方式"
- align="center"
- prop="fangshi"
- width="180">
- <template slot-scope="scope">
- <div>
- <!-- <div class="chiose"
- >选择</div> -->
- <span v-if="scope.row.fangshi">{{scope.row.fangshi | fangshiFilter(scope.row.fangshiprice)}}</span>
- <el-popover placement="bottom"
- v-model="scope.row.provideVisible"
- v-if='scope.row.type == 1'>
- <i class='el-icon-edit'
- slot='reference'>
- </i>
- <el-select v-model="scope.row.fangshi"
- clearable>
- <el-option label="团购"
- value="GROUP"></el-option>
- <el-option label="借用"
- value="LEASE"></el-option>
- <el-option label="免费"
- value="FREE"></el-option>
- </el-select>
- <el-input placeholder="请输入费用"
- v-if='scope.row.fangshi == "LEASE"'
- v-model="scope.row.fangshiprice"
- style='width:180px; margin-top:20px'></el-input>
- <div style="text-align: right; margin-top: 20px">
- <!-- <el-button size="mini"
- type="text"
- @click="scope.row.provideVisible = false">取消</el-button> -->
- <el-button type="primary"
- size="mini"
- @click="scope.row.provideVisible = false">确定</el-button>
- </div>
- </el-popover>
- </div>
- </template>
- </el-table-column>
- <el-table-column label="教辅组合"
- align="center"
- prop="jiaopu">
- <template slot-scope="scope">
- <div>
- <el-dialog :visible.sync="scope.row.markVisible"
- style="text-align:left;"
- width="60%">
- <el-button type='text'
- @click="addMark(scope.row)">添加教辅</el-button>
- <div class="markWrap">
- <div class="markItem"
- v-for="(item, index) in scope.row.markList"
- :key='index'>
- <el-form :model="item"
- :inline="true">
- <el-form-item label="教辅名称">
- <el-input type="text"
- v-model="item.name"></el-input>
- </el-form-item>
- <el-form-item label="教辅商品">
- <el-select v-model="item.goods"
- multiple
- collapse-tags>
- <el-option v-for='(item,index) in scope.row.markChioseList'
- :key='index'
- :label="item.name"
- :value="item.id"></el-option>
- </el-select>
- </el-form-item>
- <el-form-item label="教辅打包价">
- <el-input type='number'
- v-model="item.price"></el-input>
- </el-form-item>
- <el-form-item>
- <el-button type="danger"
- icon="el-icon-delete"
- circle
- @click='removeMartItem(scope.row,index)'>
- </el-button>
- </el-form-item>
- </el-form>
- </div>
- </div>
- <span slot="footer"
- class="dialog-footer">
- <!-- <el-button @click="scope.row.markVisible = false">取 消</el-button> -->
- <el-button type="primary"
- @click="scope.row.markVisible = false">确 定</el-button>
- </span>
- </el-dialog>
- <span>
- <span v-for='(item,index) in scope.row.markList'
- 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'
- slot='reference'
- @click="chioseMark(scope.row)">
- </i>
- </div>
- </template>
- </el-table-column>
- <!-- <el-table-column label="操作">
- <template slot-scope="scope">
- <div>
- <el-button v-if='scope.row.type == 2'
- type="text"
- @click="savecolumn(scope.row)">编辑</el-button>
- <el-button v-if='scope.row.type == 1'
- type="text"
- @click="savecolumn(scope.row)">保存</el-button>
- </div>
- </template>
- </el-table-column> -->
- </el-table>
- <div class="floor">
- <div class="remove"
- @click="removeListItem">删除</div>
- <div class='add'
- @click="addListItem">添加</div>
- </div>
- </div>
- <el-dialog title="声部选择"
- :visible.sync="dialogTableVisible"
- :modal-append-to-body="false">
- <div class="soundWrap">
- <div class="itemList">
- <div class="categroy"
- v-for="(item,index) in soundList"
- :key="index">
- <p>{{item.name }}</p>
- <el-checkbox-group v-model="soundLists[index]"
- @change='changeList'>
- <!-- sound: this.activeSoundList[item].name, // id
- jihua: '10', //计划招生人数
- yuji: '10', // 预计收费
- zhonglei: [], // 可选乐器种类
- fangshi: 2, // 乐器提供方式
- jiaopu: 'jiaopu1', // 教辅组合
- type: 1, // 操作
- id: this.activeSoundList[item].id, //声部id
- visible: false, // 当前乐器提供方式的pop提示框显示隐藏 -->
- <el-checkbox :label="sound.id"
- @change="checkinlist({'id':sound.id,'sound':sound.name,'jihua':0,'yuji':0,'zhonglei':[],'fangshi':'','fangshiprice':0,'jiaopu':'','type':1,'typeVisible':false,'provideVisible':false,'markVisible':false,'goodsList':[],'markList':[{'name':'','goods':[],'price':''}],'markChioseList':[]})"
- v-for="(sound,indexs) in item.subjects"
- :key="indexs">{{sound.name }}</el-checkbox>
- </el-checkbox-group>
- </div>
- </div>
- </div>
- <p class='soundSubP'>当前选择声部数:{{chioseSoundNum}}</p>
- <div class="btnWraps">
- <div class="dialogBtn"
- @click="generates">确定</div>
- </div>
- </el-dialog>
- <div class="btnWrap">
- <div class="PrevBtn"
- @click="goback">上一步</div>
- <div class="submitBtn"
- v-if="teamStatus == 'teamAudit'"
- @click="approval">审核通过</div>
- <div class="submitBtn"
- v-if="teamStatus == 'teamAudit'"
- @click="refuse">拒绝</div>
- <div class="submitBtn"
- v-if="teamStatus != 'teamAudit'"
- @click="submitInfo(1)">保存</div>
- <div class="submitBtn"
- v-if="teamStatus != 'teamAudit'"
- @click="submitInfo(2)">提交</div>
- </div>
- </div>
- </template>
- <script>
- import store from '@/store'
- import { getSubject, getDefaultSubject, getGoods, createTeam, getSoundTree, findMusicGroupSubjectInfo, updateSubjectInfo, auditSuccess, auditFailed } from '@/api/buildTeam'
- export default {
- data () {
- return {
- dialogTableVisible: false,
- soundList: [],
- soundLists: [], // 存储选中项的声部id 记录变量
- activeSoundList: [], // 记录存储后的所选中的声部列表
- checkList: [],
- multipleSelection: [], // 列表选择的集合
- isLoop: '', // 是否显示周期循环
- payfor: {},
- topfor: {},
- checkfor: {},
- teamStatus: '',
- teamid: ''
- }
- },
- methods: {
- // 改变checkbox
- changeList (e) {
- // console.log(e);
- },
- handleSelectionChange (e) {
- // 点击改变勾选
- this.multipleSelection = e;
- },
- handleclick (e) { },
- handleStatus (data) {
- },
- // 点击添加按钮
- addListItem () {
- this.dialogTableVisible = true;
- },
- // 点击确认按钮生成表单
- generates () {
- this.dialogTableVisible = false;
- },
- removeListItem () {
- for (let i = 0; i < this.activeSoundList.length; i++) {
- for (let j = 0; j < this.multipleSelection.length; j++) {
- if (this.activeSoundList[i].id == this.multipleSelection[j].id) {
- this.activeSoundList.splice(i, 1);
- // 遍历循环所有的group 删除所选id
- for (let key in this.soundLists) {
- if (this.soundLists[key].indexOf(this.multipleSelection[j].id) != -1) {
- // console.log(this.soundLists[key], this.multipleSelection[j].id, this.soundLists[key].indexOf(this.multipleSelection[j].id));
- this.soundLists[key].splice(this.soundLists[key].indexOf(this.multipleSelection[j].id), 1)
- }
- }
- }
- }
- }
- },
- // 勾选选中框处理数据,存储勾选过的checkbox值
- checkinlist (obj) {
- let flag = false;
- this.activeSoundList.map(item => {
- if (item.id == obj.id) {
- flag = true
- }
- })
- if (!flag) {
- this.activeSoundList.push(obj)
- } else {
- for (let i = 0; i < this.activeSoundList.length; i++) {
- if (this.activeSoundList[i].id == obj.id) {
- this.activeSoundList.splice(i, 1);
- }
- }
- }
- },
- // 根据声部id获取可选乐器种类
- chioseType (row) {
- // 根据id查询可选类型种类
- let id = row.id;
- // console.log(row.id);
- // 'subjectId': id, ' type'='INSTRUMENT'
- getGoods({ 'subjectId': id, 'type': 'INSTRUMENT' }).then(res => {
- if (res.code == 200) {
- row.goodsList = res.data;
- // console.log(row);
- }
- })
- },
- // 点击关闭乐器种类
- closechioseType (row) {
- row.typeVisible = false;
- },
- // 根据声部id查询可选教辅
- chioseMark (row) {
- console.log(row);
- row.markVisible = true
- let id = row.id;
- getGoods({ 'subjectId': id, 'type': 'ACCESSORIES' }).then(res => {
- if (res.code == 200) {
- row.markChioseList = res.data;
- // console.log(row);
- }
- })
- },
- // 添加教辅
- addMark (row) {
- row.markList.push({ 'name': '', 'goods': [], 'price': '' })
- },
- // 删除教辅
- removeMartItem (row, index) {
- // console.log(index);
- row.markList.splice(index, 1);
- },
- // 点击保存或编辑
- savecolumn (row) {
- row.type == 1 ? row.type = 2 : row.type = 1
- },
- // 返回上一步
- goback () {
- this.$emit('chiosetab', 0);
- },
- submitInfo (type) {
- // console.log(this.activeSoundList)
- // return;
- let status;
- if (type == 1) {
- // 保存
- status = 'DRAFT'
- } else if (type == 2) {
- // 提交
- status = 'AUDIT'
- }
- // 整理数据提交
- if (this.teamStatus == 'newTeam') {
- let obj = {};
- obj.months = this.payfor.chioseMonth || [];
- let enrollClasses;
- this.topfor.startClass ? enrollClasses = this.topfor.startClass.join(',') : enrollClasses = null;
- obj.musicGroup = {
- settlementType: this.topfor.salary,
- applyExpireDate: this.topfor.time + ' 00:00:01',
- chargeTypeId: this.topfor.type,
- cooperationOrganId: this.topfor.school,
- teamTeacherId: this.topfor.boss,
- educationalTeacherId: this.topfor.teacher,
- enrollClasses,
- name: this.topfor.name,
- organId: this.topfor.section,
- // paymentMonths:obj.months 有待确认
- schoolId: this.topfor.address,
- courseForm: JSON.stringify(this.checkfor),
- isClassroomLessons: this.topfor.isClass,
- status
- }
- 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,
- 'memo': this.payfor.school.value,
- 'paymentMethod': this.payfor.school.chiose,
- 'name': '学校'
- })
- }
- // 添加公司主体付费方式
- if (this.payfor.company.ischeck) {
- obj.musicGroupPaymentEntities.push({
- 'amount': this.payfor.company.price,
- 'memo': this.payfor.company.value,
- 'paymentMethod': this.payfor.company.chiose,
- 'name': '公司'
- })
- }
- let activeSoundList = this.activeSoundList
- // 添加商品以及教辅
- obj.musicGroupSubjectGoodsGroups = []
- obj.musicGroupSubjectPlans = []
- activeSoundList.forEach(active => {
- // 乐器
- active.zhonglei.forEach(zl => {
- let some = {
- subjectId: active.id,
- type: 'INSTRUMENT',
- goodsIdList: zl
- }
- obj.musicGroupSubjectGoodsGroups.push(some);
- })
- // 附件
- active.markList.forEach(mark => {
- let some = {
- subjectId: active.id,
- type: 'ACCESSORIES',
- goodsIdList: mark.goods.join(','),
- name: mark.name,
- price: mark.price
- }
- obj.musicGroupSubjectGoodsGroups.push(some);
- })
- // 添加声部
- let item = {
- expectedStudentNum: active.jihua,
- fee: active.yuji,
- kitGroupPurchaseType: active.fangshi,
- subName: active.sound,
- subjectId: active.id,
- depositFee: active.fangshiprice // depositFee 只有租赁才有
- }
- obj.musicGroupSubjectPlans.push(item);
- })
- console.log(obj);
- createTeam(obj).then(res => {
- if (res.code == 200) {
- // 成功 跳转到乐团报名详情
- this.$router.push({ path: '/business/teamDetail' })
- }
- })
- } else {
- // 只提交第二页的数据
- let obj = {};
- let activeSoundList = this.activeSoundList
- // 添加商品以及教辅
- obj.musicGroupId = this.teamid
- obj.musicGroupStatus = status;
- obj.musicGroupSubjectGoodsGroups = []
- obj.musicGroupSubjectPlans = []
- activeSoundList.forEach(active => {
- // 乐器
- active.zhonglei.forEach(zl => {
- let some = {
- subjectId: active.id,
- type: 'INSTRUMENT',
- goodsIdList: zl
- }
- obj.musicGroupSubjectGoodsGroups.push(some);
- })
- // 遍历声部里的教辅
- active.markList.forEach(mark => {
- let some = {
- subjectId: active.id,
- type: 'ACCESSORIES',
- goodsIdList: mark.goods ? mark.goods.join(',') : '',
- name: mark.name,
- price: mark.price
- }
- obj.musicGroupSubjectGoodsGroups.push(some);
- })
- // 添加声部
- let item = {
- expectedStudentNum: active.jihua,
- fee: active.yuji,
- kitGroupPurchaseType: active.fangshi,
- subName: active.sound,
- subjectId: active.id,
- depositFee: active.fangshiprice // depositFee 只有租赁才有
- }
- obj.musicGroupSubjectPlans.push(item);
- })
- // 发请求修改声部信息
- updateSubjectInfo(obj).then(res => {
- if (res.code == 200) {
- this.$message.success('提交成功')
- this.$router.push({ path: '/business/teamDetail' })
- }
- })
- }
- },
- // 同意
- approval () {
- auditSuccess({ musicGroupId: this.teamid }).then(res => {
- if (res.code == 200) {
- this.$message.success('审批通过')
- this.$router.push({ path: '/business/teamDetail' })
- }
- })
- },
- // 拒绝
- refuse () {
- // auditFailed
- this.$prompt('请输入拒绝原因', '提示', {
- confirmButtonText: '确定',
- cancelButtonText: '取消',
- }).then(({ value }) => {
- // 点击确认 值是value
- if (!value) {
- this.$message.error('请输入拒绝原因')
- return;
- } else {
- auditFailed({ musicGroupId: this.teamid, memo: value }).then(res => {
- if (res.code == 200) {
- this.$message.success('已拒绝')
- this.$router.push({ path: '/business/teamDetail' })
- }
- })
- }
- })
- }
- },
- filters: {
- zhongleiFilter (val, list) {
- if (list.length <= 0) {
- return;
- }
- let arr = []
- for (let i = 0; i < list.length; i++) {
- for (let j = 0; j < val.length; j++) {
- if (val[j] == list[i].id) {
- arr.push(list[i].name)
- }
- }
- }
- if (arr.length > 0) {
- return arr.join(',')
- } else {
- return ''
- }
- },
- fangshiFilter (val, price) {
- let str = ''
- if (val == 'FREE') {
- str = '免费'
- return str;
- } else if (val == 'GROUP') {
- str = '团购'
- return str
- } else if (val == 'LEASE') {
- str = '借用'
- }
- return str + '费用:' + price
- },
- goodsFilter (val, list) {
- if (list.length <= 0) {
- return '';
- }
- let arr = [];
- for (let i = 0; i < val.length; i++) {
- for (let j = 0; j < list.length; j++) {
- if (val[i] == list[j].id) {
- arr.push(list[j].name);
- }
- }
- }
- if (arr.length > 0) {
- return arr.join(',')
- } else {
- return ''
- }
- }
- // markFilter(val){
- // for
- // let name = val.name;
- // let goods = val.goods.join(',');
- // let price = val.price
- // }
- },
- mounted () {
- getSoundTree().then(res => {
- // console.log(res);
- if (res.code == 200) {
- this.soundList = res.data.rows;
- // // 生成动态的checkList
- for (let key in this.soundList) {
- this.$set(this.soundLists, key, [])
- }
- // 新建团带默认的数据
- if (this.teamStatus == 'newTeam') {
- getDefaultSubject({ chargeTypeId: type }).then(res => {
- if (res.code == 200) {
- this.activeSoundList = res.data.map(item => {
- 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': [] }
- return obj;
- })
- // 并且把所有soundLists 里面
- }
- });
- }
- // 修改带原有团的数据
- if (this.teamStatus == 'teamDraft' || this.teamStatus == 'teamAudit') {
- // 获取第二页的数据
- this.teamid = this.$route.query.id;
- findMusicGroupSubjectInfo({ musicGroupId: this.teamid }).then(res => {
- if (res.code == 200) {
- this.activeSoundList = res.data.musicGroupSubjectPlans.map(item => {
- this.soundLists[0].push(item.subjectId)
- let obj = { 'id': item.subjectId, 'sound': item.subName, 'jihua': item.expectedStudentNum, 'yuji': item.fee, 'zhonglei': [], 'fangshi': item.kitGroupPurchaseType, 'fangshiprice': item.depositFee, 'jiaopu': '', 'type': 1, 'typeVisible': false, 'provideVisible': false, 'markVisible': false, 'goodsList': [], 'markList': [{ 'name': '', 'goods': [], 'price': '' }], 'markChioseList': [] }
- return obj;
- })
- // 循环列表里的声部 拿取商品
- for (let i in this.activeSoundList) {
- for (let j in res.data.musicGroupSubjectGoodsGroups) {
- if (this.activeSoundList[i].id == res.data.musicGroupSubjectGoodsGroups[j].subjectId) {
- //
- if (res.data.musicGroupSubjectGoodsGroups[j].type == 'INSTRUMENT') {
- this.activeSoundList[i].zhonglei = this.activeSoundList[i].zhonglei.concat(res.data.musicGroupSubjectGoodsGroups[j].goodsIdList)
- console.log(this.activeSoundList[i].zhonglei)
- this.activeSoundList[i].zhonglei = this.activeSoundList[i].zhonglei.map(item => {
- return parseInt(item);
- })
- 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 = [];
- 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.payfor = this.$store.getters.payList;
- this.topfor = this.$store.getters.topinfo;
- this.checkfor = this.$store.getters.checkinfo;
- let type = this.topfor.type;
- // 判断进来的乐团状态
- this.teamStatus = this.$route.query.type;
- console.log(this.teamStatus)
- // console.log(this.topfor);
- // console.log(this.checkfor);
- // console.log(this.payfor);
- },
- watch: {
- },
- computed: {
- // 返回当前选中声部数量
- chioseSoundNum () {
- let num = 0;
- for (let key in this.soundList) {
- // console.log(this.soundLists[key])
- num += this.soundLists[key].length;
- }
- return num;
- },
- // 计划招生人数
- PlannedCount () {
- let Count = 0;
- for (let item in this.activeSoundList) {
- Count += parseInt(this.activeSoundList[item].jihua)
- }
- return Count
- }
- },
- }
- </script>
- <style lang="scss" >
- // .el-table__body tr.current-row > td {
- // background-color: #c6cbd4 !important;
- // }
- .el-checkbox__input.is-checked .el-checkbox__inner,
- .el-checkbox__input.is-indeterminate .el-checkbox__inner {
- background-color: #14928a;
- border-color: #14928a;
- }
- .el-select__tags .el-tag__close.el-icon-close {
- display: inline-block;
- }
- // .el-dialog__header {
- // padding: 0 32px !important;
- // height: 40px;
- // line-height: 40px;
- // background-color: #14928a;
- // .el-dialog__title {
- // color: #fff;
- // font-size: 16px;
- // }
- // }
- .el-checkbox__input.is-checked + .el-checkbox__label {
- color: #606266;
- }
- .sound-container {
- .chioseWrap {
- margin-bottom: 30px;
- display: flex;
- flex-direction: row;
- padding: 0 25px;
- p {
- font-size: 14px;
- margin-right: 30px;
- }
- }
- .topMsg {
- padding: 0 25px;
- display: flex;
- flex-direction: row;
- justify-content: flex-start;
- font-size: 14px;
- color: #444;
- margin-bottom: 15px;
- }
- .subTitle {
- width: 1203px;
- height: 40px;
- line-height: 40px;
- background-color: #fefceb;
- padding: 0 25px;
- box-sizing: border-box;
- font-size: 16px;
- color: #474747;
- margin-bottom: 20px;
- }
- .floor {
- display: flex;
- flex-direction: row;
- justify-content: flex-start;
- width: 100%;
- height: 48px;
- line-height: 48px;
- background: rgba(237, 238, 240, 1);
- font-size: 14px;
- color: #444;
- align-items: center;
- position: relative;
- z-index: 1;
- .remove {
- width: 98px;
- height: 32px;
- background: rgba(248, 80, 67, 1);
- border-radius: 3px;
- color: #fff;
- line-height: 32px;
- text-align: center;
- margin-left: 164px;
- cursor: pointer;
- }
- .add {
- width: 98px;
- height: 32px;
- background: rgba(20, 146, 138, 1);
- border-radius: 3px;
- color: #fff;
- line-height: 32px;
- text-align: center;
- margin-left: 20px;
- cursor: pointer;
- }
- }
- .xuanze {
- width: 71px;
- }
- .chiose {
- width: 65px;
- height: 24px;
- line-height: 24px;
- border: 1px solid rgba(151, 151, 151, 1);
- border-radius: 12px;
- text-align: center;
- cursor: pointer;
- }
- }
- .soundWrap {
- width: 100%;
- overflow: auto;
- .itemList {
- display: flex;
- flex-direction: row;
- justify-content: flex-start;
- flex-wrap: nowrap;
- flex-grow: 1;
- height: 300px;
- max-height: 300px;
- overflow: auto;
- .categroy {
- width: 150px;
- min-width: 150px;
- .el-checkbox {
- height: 30px;
- line-height: 30px;
- display: block;
- padding-left: 20px;
- }
- p {
- height: 40px;
- line-height: 40px;
- background-color: #edeef0;
- margin-bottom: 15px;
- text-align: center;
- }
- }
- }
- }
- .soundSubP {
- height: 40px;
- line-height: 40px;
- background-color: #edeef0;
- padding-left: 25px;
- }
- .btnWraps {
- display: flex;
- flex-direction: column;
- align-items: center;
- margin-top: 150px;
- .dialogBtn {
- width: 188px;
- height: 40px;
- background: rgba(249, 114, 21, 1);
- border-radius: 4px;
- line-height: 40px;
- color: #fff;
- text-align: center;
- cursor: pointer;
- }
- }
- .btnWrap {
- margin-top: 40px;
- .PrevBtn {
- background-color: #444444;
- width: 120px;
- }
- .submitBtn {
- background-color: #f85043;
- width: 120px;
- }
- }
- .el-icon-plus {
- cursor: pointer;
- }
- </style>
|