|  | @@ -258,20 +258,47 @@
 | 
	
		
			
				|  |  |          <div class="checkRow">
 | 
	
		
			
				|  |  |            <el-checkbox label="学员"
 | 
	
		
			
				|  |  |                         class='classCheckBox'
 | 
	
		
			
				|  |  | -                       v-model="student.ischeck"></el-checkbox>
 | 
	
		
			
				|  |  | +                       v-model="payList.student.ischeck"></el-checkbox>
 | 
	
		
			
				|  |  |            <div class="chioseList">
 | 
	
		
			
				|  |  |              <div class="chioseItem"
 | 
	
		
			
				|  |  | -                 :class="student.chiose == 'ONE_OFF'?'active':''"
 | 
	
		
			
				|  |  | -                 @click="student.chiose='ONE_OFF'">一次性</div>
 | 
	
		
			
				|  |  | +                 :class="payList.student.chiose == 'ONE_OFF'?'active':''"
 | 
	
		
			
				|  |  | +                 @click="payList.student.chiose='ONE_OFF'">一次性</div>
 | 
	
		
			
				|  |  |              <div class="chioseItem"
 | 
	
		
			
				|  |  | -                 :class="student.chiose == 'loop'?'active':''"
 | 
	
		
			
				|  |  | -                 @click="student.chiose='loop'">周期循环</div>
 | 
	
		
			
				|  |  | +                 :class="payList.student.chiose == 'loop'?'active':''"
 | 
	
		
			
				|  |  | +                 @click="payList.student.chiose='loop'">周期循环</div>
 | 
	
		
			
				|  |  |            </div>
 | 
	
		
			
				|  |  |          </div>
 | 
	
		
			
				|  |  | +        <p class="subTitle"
 | 
	
		
			
				|  |  | +           v-if='payList.student.chiose == "loop"'>按月缴费时,将在所选月份的1号的前一周提醒用户缴费操作,单次的缴费金额为当前列表「预计收费」的设置金额</p>
 | 
	
		
			
				|  |  | +        <div class="chioseWrap"
 | 
	
		
			
				|  |  | +             v-if='payList.student.chiose == "loop"'>
 | 
	
		
			
				|  |  | +          <p>请选择缴费月份:</p>
 | 
	
		
			
				|  |  | +          <el-checkbox-group v-model="chioseMonth"
 | 
	
		
			
				|  |  | +                             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>
 | 
	
		
			
				|  |  |      </div>
 | 
	
		
			
				|  |  |      <div class="btnWrap">
 | 
	
		
			
				|  |  |        <div class="nextBtn"
 | 
	
		
			
				|  |  | +           @click="resetSubmit">
 | 
	
		
			
				|  |  | +        修改
 | 
	
		
			
				|  |  | +      </div>
 | 
	
		
			
				|  |  | +      <div class="nextBtn"
 | 
	
		
			
				|  |  |             @click="gotoNext(1)">
 | 
	
		
			
				|  |  |          下一步
 | 
	
		
			
				|  |  |        </div>
 | 
	
	
		
			
				|  | @@ -327,7 +354,7 @@
 | 
	
		
			
				|  |  |    </div>
 | 
	
		
			
				|  |  |  </template>
 | 
	
		
			
				|  |  |  <script>
 | 
	
		
			
				|  |  | -import { getSection, getType, getCooperation, getTeacher, getAddress, getPayMaster, getPayStatus, getTeamBaseInfo } from '@/api/buildTeam'
 | 
	
		
			
				|  |  | +import { getSection, getType, getCooperation, getTeacher, getAddress, getPayMaster, getPayStatus, getTeamBaseInfo, resetTeamBaseInfo } from '@/api/buildTeam'
 | 
	
		
			
				|  |  |  import { scrollTo } from '@/utils/scroll-to'
 | 
	
		
			
				|  |  |  export default {
 | 
	
		
			
				|  |  |    data () {
 | 
	
	
		
			
				|  | @@ -366,7 +393,7 @@ export default {
 | 
	
		
			
				|  |  |            value: '年度安排个月共xxx课时,课时,原价xxx元,现价xxxx元/月(约 xxxx元/月 )'
 | 
	
		
			
				|  |  |          }
 | 
	
		
			
				|  |  |        }, // 选中的集合
 | 
	
		
			
				|  |  | -      chioseMonth: '', // 选中的月份
 | 
	
		
			
				|  |  | +      chioseMonth: [], // 选中的月份
 | 
	
		
			
				|  |  |        baseInfo: {},
 | 
	
		
			
				|  |  |        money: 580,
 | 
	
		
			
				|  |  |        orderInfo: {
 | 
	
	
		
			
				|  | @@ -396,11 +423,8 @@ export default {
 | 
	
		
			
				|  |  |            chiose: 'loop'
 | 
	
		
			
				|  |  |          }
 | 
	
		
			
				|  |  |        },
 | 
	
		
			
				|  |  | -      student: {
 | 
	
		
			
				|  |  | -        ischeck: true,
 | 
	
		
			
				|  |  | -        chiose: 'loop'
 | 
	
		
			
				|  |  | -      },
 | 
	
		
			
				|  |  | -      activeTeam: []
 | 
	
		
			
				|  |  | +      activeTeam: [],
 | 
	
		
			
				|  |  | +      teamid: ''
 | 
	
		
			
				|  |  |      }
 | 
	
		
			
				|  |  |    },
 | 
	
		
			
				|  |  |    created () {
 | 
	
	
		
			
				|  | @@ -408,7 +432,8 @@ export default {
 | 
	
		
			
				|  |  |      // 传过来的乐团信息
 | 
	
		
			
				|  |  |      this.activeTeam = [{ id: 191014135135001, name: '测试1团' }]
 | 
	
		
			
				|  |  |      if (this.activeTeam && this.activeTeam.length == 1) {
 | 
	
		
			
				|  |  | -      getTeamBaseInfo({ musicGroupId: '191014135135001' }).then(res => {
 | 
	
		
			
				|  |  | +      this.teamid = this.activeTeam[0].id;
 | 
	
		
			
				|  |  | +      getTeamBaseInfo({ musicGroupId: this.teamid }).then(res => {
 | 
	
		
			
				|  |  |          if (res.code == 200) {
 | 
	
		
			
				|  |  |            // 头部
 | 
	
		
			
				|  |  |            this.topFrom.name = res.data.musicGroup.name;
 | 
	
	
		
			
				|  | @@ -424,7 +449,29 @@ export default {
 | 
	
		
			
				|  |  |            this.topFrom.head = res.data.musicGroup.directorUserId;
 | 
	
		
			
				|  |  |            // 课程组成形式
 | 
	
		
			
				|  |  |            this.checkList = JSON.parse(res.data.musicGroup.courseForm);
 | 
	
		
			
				|  |  | -
 | 
	
		
			
				|  |  | +          // 付费方式和周期
 | 
	
		
			
				|  |  | +          for (let i in res.data.musicGroupPaymentEntities) {
 | 
	
		
			
				|  |  | +            if (res.data.musicGroupPaymentEntities[i].name == '学校') {
 | 
	
		
			
				|  |  | +              this.payList.school.ischeck = true;
 | 
	
		
			
				|  |  | +              /**
 | 
	
		
			
				|  |  | +               *   value: '',
 | 
	
		
			
				|  |  | +                price: '',
 | 
	
		
			
				|  |  | +               chiose: ''
 | 
	
		
			
				|  |  | +               */
 | 
	
		
			
				|  |  | +              this.payList.school.value = res.data.musicGroupPaymentEntities[i].memo;
 | 
	
		
			
				|  |  | +              this.payList.school.price = res.data.musicGroupPaymentEntities[i].amount;
 | 
	
		
			
				|  |  | +              this.payList.school.chiose = res.data.musicGroupPaymentEntities[i].paymentMethod;
 | 
	
		
			
				|  |  | +            }
 | 
	
		
			
				|  |  | +            if (res.data.months.length > 0) {
 | 
	
		
			
				|  |  | +              this.payList.student.ischeck = true;
 | 
	
		
			
				|  |  | +              this.payList.student.chiose = 'loop'
 | 
	
		
			
				|  |  | +              this.chioseMonth = res.data.months;
 | 
	
		
			
				|  |  | +              console.log(this.chioseMonth)
 | 
	
		
			
				|  |  | +            } else {
 | 
	
		
			
				|  |  | +              this.payList.student.ischeck = true;
 | 
	
		
			
				|  |  | +              this.payList.student.chiose = 'ONE_OFF'
 | 
	
		
			
				|  |  | +            }
 | 
	
		
			
				|  |  | +          }
 | 
	
		
			
				|  |  |          }
 | 
	
		
			
				|  |  |        })
 | 
	
		
			
				|  |  |      }
 | 
	
	
		
			
				|  | @@ -483,29 +530,75 @@ export default {
 | 
	
		
			
				|  |  |      gotoNext (num) {
 | 
	
		
			
				|  |  |        // 1.效验数据    判断是否数据正常=> 正常放入store存储  
 | 
	
		
			
				|  |  |        //                       不正常=>  进行效验提示
 | 
	
		
			
				|  |  | -      // this.$refs['topinfo'].validate((valid, object) => {
 | 
	
		
			
				|  |  | -      //   if (!valid) {
 | 
	
		
			
				|  |  | -      //     this.$message.error('请填写建团必要参数')
 | 
	
		
			
				|  |  | -      //   } else {
 | 
	
		
			
				|  |  | -      //     // 我存三个对象
 | 
	
		
			
				|  |  | -      //     // 1. topform
 | 
	
		
			
				|  |  | -      //     // 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.$refs['topinfo'].validate((valid, object) => {
 | 
	
		
			
				|  |  | +        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);
 | 
	
		
			
				|  |  | +          this.$emit('chiosetab', num);
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  | -      //   }
 | 
	
		
			
				|  |  | -      // })
 | 
	
		
			
				|  |  | -      this.$store.dispatch('topinfo', this.topFrom);
 | 
	
		
			
				|  |  | -      this.$store.dispatch('checkinfo', this.checkList);
 | 
	
		
			
				|  |  | -      this.$store.dispatch('getpayInfo', this.payList);
 | 
	
		
			
				|  |  | -      // checkinfo getpayInfo
 | 
	
		
			
				|  |  | +        }
 | 
	
		
			
				|  |  | +      })
 | 
	
		
			
				|  |  | +
 | 
	
		
			
				|  |  | +    },
 | 
	
		
			
				|  |  | +    resetSubmit () {
 | 
	
		
			
				|  |  | +      this.$refs['topinfo'].validate((valid, object) => {
 | 
	
		
			
				|  |  | +        if (!valid) {
 | 
	
		
			
				|  |  | +          this.$message.error('请填写必要参数')
 | 
	
		
			
				|  |  | +        } else {
 | 
	
		
			
				|  |  | +          let obj = {};
 | 
	
		
			
				|  |  | +          this.payList.student.chiose == 'loop' ? obj.months = this.chioseMonth : obj.months = [];
 | 
	
		
			
				|  |  | +          obj.musicGroup = {
 | 
	
		
			
				|  |  | +            settlementType: this.topFrom.salary,
 | 
	
		
			
				|  |  | +            applyExpireDate: this.topFrom.time + ' 00:00:01',
 | 
	
		
			
				|  |  | +            chargeTypeId: this.topFrom.type,
 | 
	
		
			
				|  |  | +            cooperationOrganId: this.topFrom.school,
 | 
	
		
			
				|  |  | +            teamTeacherId: this.topFrom.boss,
 | 
	
		
			
				|  |  | +            educationalTeacherId: this.topFrom.teacher,
 | 
	
		
			
				|  |  | +            enrollClasses: this.topFrom.startClass.join(','),
 | 
	
		
			
				|  |  | +            name: this.topFrom.name,
 | 
	
		
			
				|  |  | +            organId: this.topFrom.section,
 | 
	
		
			
				|  |  | +            // paymentMonths:obj.months  有待确认
 | 
	
		
			
				|  |  | +            schoolId: this.topFrom.address,
 | 
	
		
			
				|  |  | +            courseForm: JSON.stringify(this.checkfor),
 | 
	
		
			
				|  |  | +            id: this.teamid
 | 
	
		
			
				|  |  | +          }
 | 
	
		
			
				|  |  | +          obj.musicGroupPaymentEntities = []
 | 
	
		
			
				|  |  | +          // 添加学校主体付费方式
 | 
	
		
			
				|  |  | +          // console.log(this.payfor.company.ischeck)
 | 
	
		
			
				|  |  | +          if (this.payList.school.ischeck) {
 | 
	
		
			
				|  |  | +
 | 
	
		
			
				|  |  | +            obj.musicGroupPaymentEntities.push({
 | 
	
		
			
				|  |  | +              'amount': this.payList.school.price,
 | 
	
		
			
				|  |  | +              'memo': this.payList.school.value,
 | 
	
		
			
				|  |  | +              'paymentMethod': this.payList.school.chiose,
 | 
	
		
			
				|  |  | +              'name': '学校'
 | 
	
		
			
				|  |  | +            })
 | 
	
		
			
				|  |  | +          }
 | 
	
		
			
				|  |  | +          // 添加公司主体付费方式
 | 
	
		
			
				|  |  | +          if (this.payList.company.ischeck) {
 | 
	
		
			
				|  |  | +            obj.musicGroupPaymentEntities.push({
 | 
	
		
			
				|  |  | +              'amount': this.payList.company.price,
 | 
	
		
			
				|  |  | +              'memo': this.payList.company.value,
 | 
	
		
			
				|  |  | +              'paymentMethod': this.payList.company.chiose,
 | 
	
		
			
				|  |  | +              'name': '公司'
 | 
	
		
			
				|  |  | +            })
 | 
	
		
			
				|  |  | +          }
 | 
	
		
			
				|  |  | +          // 发请求
 | 
	
		
			
				|  |  | +          resetTeamBaseInfo(obj).then(res => {
 | 
	
		
			
				|  |  | +
 | 
	
		
			
				|  |  | +          })
 | 
	
		
			
				|  |  | +        }
 | 
	
		
			
				|  |  | +      })
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  | -      this.$emit('chiosetab', num);
 | 
	
		
			
				|  |  |      }
 | 
	
		
			
				|  |  |    },
 | 
	
		
			
				|  |  |    computed: {
 |