|  | @@ -180,7 +180,8 @@
 | 
	
		
			
				|  |  |                    @pagination="getList" />
 | 
	
		
			
				|  |  |      </div>
 | 
	
		
			
				|  |  |      <el-dialog title="学员基本信息"
 | 
	
		
			
				|  |  | -               width="640px" class="studentInfo"
 | 
	
		
			
				|  |  | +               width="640px"
 | 
	
		
			
				|  |  | +               class="studentInfo"
 | 
	
		
			
				|  |  |                 :visible.sync="addStudentVisible">
 | 
	
		
			
				|  |  |        <el-form :model="maskForm"
 | 
	
		
			
				|  |  |                 label-position="right"
 | 
	
	
		
			
				|  | @@ -274,21 +275,45 @@
 | 
	
		
			
				|  |  |              </el-date-picker>
 | 
	
		
			
				|  |  |            </el-col>
 | 
	
		
			
				|  |  |          </el-form-item>
 | 
	
		
			
				|  |  | -
 | 
	
		
			
				|  |  | -        <el-form-item label="单技课班级"
 | 
	
		
			
				|  |  | -                      prop="signClass">
 | 
	
		
			
				|  |  | +        <el-form-item label="声部费用"
 | 
	
		
			
				|  |  | +                      prop="courseFee">
 | 
	
		
			
				|  |  | +          <el-input v-model="maskForm.courseFee"
 | 
	
		
			
				|  |  | +                    placeholder="请输入声部费用"></el-input>
 | 
	
		
			
				|  |  | +        </el-form-item>
 | 
	
		
			
				|  |  | +        <br>
 | 
	
		
			
				|  |  | +        <el-form-item label="单技班">
 | 
	
		
			
				|  |  |            <el-select v-model="maskForm.signClass">
 | 
	
		
			
				|  |  |              <el-option v-for="(item,index) in signList"
 | 
	
		
			
				|  |  |                         :key="index"
 | 
	
		
			
				|  |  |                         :value="item.id"
 | 
	
		
			
				|  |  |                         :label="item.name"></el-option>
 | 
	
		
			
				|  |  |            </el-select>
 | 
	
		
			
				|  |  | -        </el-form-item>
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  | -        <el-form-item label="声部费用"
 | 
	
		
			
				|  |  | -                      prop="courseFee">
 | 
	
		
			
				|  |  | -          <el-input v-model="maskForm.courseFee"
 | 
	
		
			
				|  |  | -                    placeholder="请输入声部费用"></el-input>
 | 
	
		
			
				|  |  | +        </el-form-item>
 | 
	
		
			
				|  |  | +        <el-form-item label="合奏班">
 | 
	
		
			
				|  |  | +          <el-select v-model="maskForm.mixClass">
 | 
	
		
			
				|  |  | +            <el-option v-for="(item,index) in mixList"
 | 
	
		
			
				|  |  | +                       :key="index"
 | 
	
		
			
				|  |  | +                       :value="item.id"
 | 
	
		
			
				|  |  | +                       :label="item.name"></el-option>
 | 
	
		
			
				|  |  | +          </el-select>
 | 
	
		
			
				|  |  | +        </el-form-item>
 | 
	
		
			
				|  |  | +        <el-form-item label="基础技能班">
 | 
	
		
			
				|  |  | +          <el-select v-model="maskForm.highClass">
 | 
	
		
			
				|  |  | +            <el-option v-for="(item,index) in highList"
 | 
	
		
			
				|  |  | +                       :key="index"
 | 
	
		
			
				|  |  | +                       :value="item.id"
 | 
	
		
			
				|  |  | +                       :label="item.name"></el-option>
 | 
	
		
			
				|  |  | +          </el-select>
 | 
	
		
			
				|  |  | +        </el-form-item>
 | 
	
		
			
				|  |  | +        <el-form-item label="临时班">
 | 
	
		
			
				|  |  | +          <el-select v-model="maskForm.snapClass"
 | 
	
		
			
				|  |  | +                     multiple>
 | 
	
		
			
				|  |  | +            <el-option v-for="(item,index) in snapList"
 | 
	
		
			
				|  |  | +                       :key="index"
 | 
	
		
			
				|  |  | +                       :value="item.id"
 | 
	
		
			
				|  |  | +                       :label="item.name"></el-option>
 | 
	
		
			
				|  |  | +          </el-select>
 | 
	
		
			
				|  |  |          </el-form-item>
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |          <el-divider>订单信息</el-divider>
 | 
	
	
		
			
				|  | @@ -413,7 +438,7 @@
 | 
	
		
			
				|  |  |    </div>
 | 
	
		
			
				|  |  |  </template>
 | 
	
		
			
				|  |  |  <script>
 | 
	
		
			
				|  |  | -import { getTeamStudentList, getTeamStudentInfo, getSingleClass, findSound, StudentQuit, findSubjectPlan, getGoods } from '@/api/buildTeam'
 | 
	
		
			
				|  |  | +import { getTeamStudentList, getTeamStudentInfo, getSingleClass, findSound, StudentQuit, findSubjectPlan, getGoods, getSubject, getMusicGroupAllClass } from '@/api/buildTeam'
 | 
	
		
			
				|  |  |  import { addStudent, getStudentClass, getStudentInfoByPhone } from '@/api/studentManager'
 | 
	
		
			
				|  |  |  import pagination from '@/components/Pagination/index'
 | 
	
		
			
				|  |  |  export default {
 | 
	
	
		
			
				|  | @@ -465,6 +490,9 @@ export default {
 | 
	
		
			
				|  |  |          studying: ''
 | 
	
		
			
				|  |  |        },
 | 
	
		
			
				|  |  |        signList: [],
 | 
	
		
			
				|  |  | +      mixList: [],
 | 
	
		
			
				|  |  | +      highList: [],
 | 
	
		
			
				|  |  | +      snapList: [],
 | 
	
		
			
				|  |  |        soundList: [],
 | 
	
		
			
				|  |  |        maskForm: {
 | 
	
		
			
				|  |  |          studentName: '',
 | 
	
	
		
			
				|  | @@ -475,6 +503,9 @@ export default {
 | 
	
		
			
				|  |  |          sound: '',
 | 
	
		
			
				|  |  |          timer: '',
 | 
	
		
			
				|  |  |          signClass: '',
 | 
	
		
			
				|  |  | +        mixClass: '',
 | 
	
		
			
				|  |  | +        highClass: '',
 | 
	
		
			
				|  |  | +        snapClass: [],
 | 
	
		
			
				|  |  |          // price: '',
 | 
	
		
			
				|  |  |          startClass: '',
 | 
	
		
			
				|  |  |          id: '',
 | 
	
	
		
			
				|  | @@ -540,15 +571,36 @@ export default {
 | 
	
		
			
				|  |  |          this.soundList = res.data;
 | 
	
		
			
				|  |  |        }
 | 
	
		
			
				|  |  |      })
 | 
	
		
			
				|  |  | +
 | 
	
		
			
				|  |  | +    // getSubject().then(res => {
 | 
	
		
			
				|  |  | +    //   if (res.code == 200) {
 | 
	
		
			
				|  |  | +    //     this.soundList = res.data;
 | 
	
		
			
				|  |  | +    //   }
 | 
	
		
			
				|  |  | +    // })
 | 
	
		
			
				|  |  |      // 获取乐团所有单技课班
 | 
	
		
			
				|  |  | -    getSingleClass({ musicGroupId: this.teamid }).then(res => {
 | 
	
		
			
				|  |  | +    // getSingleClass({ musicGroupId: this.teamid }).then(res => {
 | 
	
		
			
				|  |  | +    //   if (res.code == 200) {
 | 
	
		
			
				|  |  | +    //     this.signList = res.data;
 | 
	
		
			
				|  |  | +    //   }
 | 
	
		
			
				|  |  | +    // })
 | 
	
		
			
				|  |  | +    // 获取乐团所有合奏课
 | 
	
		
			
				|  |  | +    getMusicGroupAllClass({ musicGroupId: this.teamid }).then(res => {
 | 
	
		
			
				|  |  |        if (res.code == 200) {
 | 
	
		
			
				|  |  | -        this.signList = res.data;
 | 
	
		
			
				|  |  | +        res.data.forEach(item => {
 | 
	
		
			
				|  |  | +          if (item.type == 'NORMAL') {
 | 
	
		
			
				|  |  | +            this.signList.push(item);
 | 
	
		
			
				|  |  | +          } else if (item.type == 'MIX') {
 | 
	
		
			
				|  |  | +            this.mixList.push(item);
 | 
	
		
			
				|  |  | +          } else if (item.type == 'HIGH') {
 | 
	
		
			
				|  |  | +            this.highList.push(item)
 | 
	
		
			
				|  |  | +          } else if (item.type == 'SNAP') {
 | 
	
		
			
				|  |  | +            this.snapList.push(item);
 | 
	
		
			
				|  |  | +          }
 | 
	
		
			
				|  |  | +        })
 | 
	
		
			
				|  |  |        }
 | 
	
		
			
				|  |  |      })
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  | -
 | 
	
		
			
				|  |  |    },
 | 
	
		
			
				|  |  |    methods: {
 | 
	
		
			
				|  |  |      getList () {
 | 
	
	
		
			
				|  | @@ -614,8 +666,22 @@ export default {
 | 
	
		
			
				|  |  |        this.$refs['maskForm'].validate(res => {
 | 
	
		
			
				|  |  |          if (res) {
 | 
	
		
			
				|  |  |            // this.maskForm.parentName.timer  少个生日的字段
 | 
	
		
			
				|  |  | +          // classGroupId: maskForm.signClass
 | 
	
		
			
				|  |  | +          /**  <!--  signClass: '',
 | 
	
		
			
				|  |  | +        mixClass: '',
 | 
	
		
			
				|  |  | +        highClass: '',
 | 
	
		
			
				|  |  | +        snapClass: [], --> */
 | 
	
		
			
				|  |  | +
 | 
	
		
			
				|  |  |            let maskForm = this.maskForm
 | 
	
		
			
				|  |  | +          if (!maskForm.signClass && !maskForm.mixClassId) {
 | 
	
		
			
				|  |  | +            this.$message.error('必须加入一个单机班或合奏班')
 | 
	
		
			
				|  |  | +            return;
 | 
	
		
			
				|  |  | +          }
 | 
	
		
			
				|  |  |            let params = {
 | 
	
		
			
				|  |  | +            signClassId: maskForm.signClass,
 | 
	
		
			
				|  |  | +            mixClassId: maskForm.mixClass,
 | 
	
		
			
				|  |  | +            snapClassIds: maskForm.snapClass.join(','),
 | 
	
		
			
				|  |  | +            highClassId: maskForm.highClass,
 | 
	
		
			
				|  |  |              courseFee: maskForm.courseFee,
 | 
	
		
			
				|  |  |              temporaryCourseFee: maskForm.temporaryCourseFee,
 | 
	
		
			
				|  |  |              studentRegistration: {
 | 
	
	
		
			
				|  | @@ -627,7 +693,6 @@ export default {
 | 
	
		
			
				|  |  |                currentClass: maskForm.course,
 | 
	
		
			
				|  |  |                subjectId: maskForm.sound,
 | 
	
		
			
				|  |  |                musicGroupId: this.teamid,
 | 
	
		
			
				|  |  | -              classGroupId: maskForm.signClass
 | 
	
		
			
				|  |  |              }
 | 
	
		
			
				|  |  |            }
 | 
	
		
			
				|  |  |            params.studentPaymentOrderDetails = []
 |