|  | @@ -3,7 +3,7 @@
 | 
	
		
			
				|  |  |      <!-- <h4>单次课次参考时长:30min</h4> -->
 | 
	
		
			
				|  |  |      <div class="tableList">
 | 
	
		
			
				|  |  |        <div class="left">
 | 
	
		
			
				|  |  | -        <h3>单次课次参考时长:30min
 | 
	
		
			
				|  |  | +        <h3>
 | 
	
		
			
				|  |  |            <el-button @click="onMusicGroupSave2()" type="text">保存</el-button>
 | 
	
		
			
				|  |  |          </h3>
 | 
	
		
			
				|  |  |          <el-table :data='teamTable'
 | 
	
	
		
			
				|  | @@ -13,12 +13,22 @@
 | 
	
		
			
				|  |  |                {{ scope.row.courseScheduleType | coursesType }}
 | 
	
		
			
				|  |  |              </template>
 | 
	
		
			
				|  |  |            </el-table-column>
 | 
	
		
			
				|  |  | -          <el-table-column label="主教课酬">
 | 
	
		
			
				|  |  | +          <el-table-column label="主教30min课酬">
 | 
	
		
			
				|  |  |              <template slot-scope="scope">
 | 
	
		
			
				|  |  |                <el-input v-model="scope.row.mainTeacherSalary" placeholder="请输入课酬"></el-input>
 | 
	
		
			
				|  |  |              </template>
 | 
	
		
			
				|  |  |            </el-table-column>
 | 
	
		
			
				|  |  | -          <el-table-column label="助教课酬">
 | 
	
		
			
				|  |  | +          <el-table-column label="助教30min课酬">
 | 
	
		
			
				|  |  | +            <template slot-scope="scope">
 | 
	
		
			
				|  |  | +              <el-input v-model="scope.row.assistantTeacherSalary" placeholder="请输入课酬"></el-input>
 | 
	
		
			
				|  |  | +            </template>
 | 
	
		
			
				|  |  | +          </el-table-column>
 | 
	
		
			
				|  |  | +          <el-table-column label="主教3.0梯度课酬">
 | 
	
		
			
				|  |  | +            <template slot-scope="scope">
 | 
	
		
			
				|  |  | +              <el-input v-model="scope.row.mainTeacherSalary" placeholder="请输入课酬"></el-input>
 | 
	
		
			
				|  |  | +            </template>
 | 
	
		
			
				|  |  | +          </el-table-column>
 | 
	
		
			
				|  |  | +          <el-table-column label="助教3.0梯度课酬">
 | 
	
		
			
				|  |  |              <template slot-scope="scope">
 | 
	
		
			
				|  |  |                <el-input v-model="scope.row.assistantTeacherSalary" placeholder="请输入课酬"></el-input>
 | 
	
		
			
				|  |  |              </template>
 | 
	
	
		
			
				|  | @@ -28,7 +38,7 @@
 | 
	
		
			
				|  |  |          <h3>单次课次参考时长:30min
 | 
	
		
			
				|  |  |            <el-button @click="onVIPSave()" type="text">保存</el-button>
 | 
	
		
			
				|  |  |          </h3>
 | 
	
		
			
				|  |  | -        <el-table :data='vipTable'
 | 
	
		
			
				|  |  | +        <el-table :data='vipTable' style="width: 70%"
 | 
	
		
			
				|  |  |                    :header-cell-style="{background:'#EDEEF0',color:'#444'}">
 | 
	
		
			
				|  |  |            <el-table-column label="VIP课课酬参考值" prop="vipGroupCategoryName">
 | 
	
		
			
				|  |  |            </el-table-column>
 | 
	
	
		
			
				|  | @@ -44,7 +54,7 @@
 | 
	
		
			
				|  |  |            </el-table-column>
 | 
	
		
			
				|  |  |          </el-table>
 | 
	
		
			
				|  |  |        </div>
 | 
	
		
			
				|  |  | -      <div class="right">
 | 
	
		
			
				|  |  | +      <!-- <div class="right">
 | 
	
		
			
				|  |  |          <h3>乐团课梯度课酬结算
 | 
	
		
			
				|  |  |            <el-button @click="onMusicGroupSave()" type="text">保存</el-button>
 | 
	
		
			
				|  |  |          </h3>
 | 
	
	
		
			
				|  | @@ -70,7 +80,7 @@
 | 
	
		
			
				|  |  |            </el-table-column>
 | 
	
		
			
				|  |  |          </el-table>
 | 
	
		
			
				|  |  |          
 | 
	
		
			
				|  |  | -      </div>
 | 
	
		
			
				|  |  | +      </div> -->
 | 
	
		
			
				|  |  |      </div>
 | 
	
		
			
				|  |  |    </div>
 | 
	
		
			
				|  |  |  </template>
 | 
	
	
		
			
				|  | @@ -87,7 +97,7 @@ export default {
 | 
	
		
			
				|  |  |          courseScheduleType: "SINGLE",
 | 
	
		
			
				|  |  |          mainTeacherSalary: null,
 | 
	
		
			
				|  |  |          settlementType: "FIXED_SALARY",
 | 
	
		
			
				|  |  | -        userId: this.$route.query.teacherId
 | 
	
		
			
				|  |  | +        userId: this.$route.query.teacherId,
 | 
	
		
			
				|  |  |        },{
 | 
	
		
			
				|  |  |          assistantTeacherSalary: null,
 | 
	
		
			
				|  |  |          courseScheduleType: "HIGH",
 | 
	
	
		
			
				|  | @@ -100,6 +110,30 @@ export default {
 | 
	
		
			
				|  |  |          mainTeacherSalary: null,
 | 
	
		
			
				|  |  |          settlementType: "FIXED_SALARY",
 | 
	
		
			
				|  |  |          userId: this.$route.query.teacherId
 | 
	
		
			
				|  |  | +      },{
 | 
	
		
			
				|  |  | +        assistantTeacherSalary: null,
 | 
	
		
			
				|  |  | +        courseScheduleType: "COMPREHENSIVE",
 | 
	
		
			
				|  |  | +        mainTeacherSalary: null,
 | 
	
		
			
				|  |  | +        settlementType: "FIXED_SALARY",
 | 
	
		
			
				|  |  | +        userId: this.$route.query.teacherId
 | 
	
		
			
				|  |  | +      },{
 | 
	
		
			
				|  |  | +        assistantTeacherSalary: null,
 | 
	
		
			
				|  |  | +        courseScheduleType: "TRAINING_SINGLE",
 | 
	
		
			
				|  |  | +        mainTeacherSalary: null,
 | 
	
		
			
				|  |  | +        settlementType: "FIXED_SALARY",
 | 
	
		
			
				|  |  | +        userId: this.$route.query.teacherId
 | 
	
		
			
				|  |  | +      },{
 | 
	
		
			
				|  |  | +        assistantTeacherSalary: null,
 | 
	
		
			
				|  |  | +        courseScheduleType: "TRAINING_MIX",
 | 
	
		
			
				|  |  | +        mainTeacherSalary: null,
 | 
	
		
			
				|  |  | +        settlementType: "FIXED_SALARY",
 | 
	
		
			
				|  |  | +        userId: this.$route.query.teacherId
 | 
	
		
			
				|  |  | +      },{
 | 
	
		
			
				|  |  | +        assistantTeacherSalary: null,
 | 
	
		
			
				|  |  | +        courseScheduleType: "CLASSROOM",
 | 
	
		
			
				|  |  | +        mainTeacherSalary: null,
 | 
	
		
			
				|  |  | +        settlementType: "FIXED_SALARY",
 | 
	
		
			
				|  |  | +        userId: this.$route.query.teacherId
 | 
	
		
			
				|  |  |        }],
 | 
	
		
			
				|  |  |        vipTable: [],
 | 
	
		
			
				|  |  |        musicGroupTable: [],
 | 
	
	
		
			
				|  | @@ -120,8 +154,10 @@ export default {
 | 
	
		
			
				|  |  |            let vipData = []
 | 
	
		
			
				|  |  |            res.data.forEach(item => {
 | 
	
		
			
				|  |  |              vipData.push({
 | 
	
		
			
				|  |  | -              offlineClassesSalary: item.offlineClassesUnitPrice,
 | 
	
		
			
				|  |  | -              onlineClassesSalary: item.onlineClassesUnitPrice,
 | 
	
		
			
				|  |  | +              offlineClassesSalary: null,
 | 
	
		
			
				|  |  | +              // offlineClassesSalary: item.offlineClassesUnitPrice,
 | 
	
		
			
				|  |  | +              onlineClassesSalary: null,
 | 
	
		
			
				|  |  | +              // onlineClassesSalary: item.onlineClassesUnitPrice,
 | 
	
		
			
				|  |  |                vipGroupCategoryId: item.id,
 | 
	
		
			
				|  |  |                vipGroupCategoryName: item.name,
 | 
	
		
			
				|  |  |                userId: this.teacherId
 | 
	
	
		
			
				|  | @@ -155,52 +191,52 @@ export default {
 | 
	
		
			
				|  |  |        })
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |        // 乐团梯度结算
 | 
	
		
			
				|  |  | -      sysConfigList({ group: 'settlement_rule' }).then(res => {
 | 
	
		
			
				|  |  | -        if(res.code == 200 && res.data.length > 0) {
 | 
	
		
			
				|  |  | -          let domain = []
 | 
	
		
			
				|  |  | -          res.data.forEach(item => {
 | 
	
		
			
				|  |  | -              let courseScheduleType
 | 
	
		
			
				|  |  | -              if(item.paramName == 'sigle_gradient_settlement_rule') {
 | 
	
		
			
				|  |  | -                  courseScheduleType = "SINGLE"
 | 
	
		
			
				|  |  | -              }
 | 
	
		
			
				|  |  | -              if(item.paramName == "max_gradient_settlement_rule") {
 | 
	
		
			
				|  |  | -                  courseScheduleType = "MIX"
 | 
	
		
			
				|  |  | -              }
 | 
	
		
			
				|  |  | -              if(item.paramName == "high_gradient_settlement_rule") {
 | 
	
		
			
				|  |  | -                  courseScheduleType = "HIGH"
 | 
	
		
			
				|  |  | -              }
 | 
	
		
			
				|  |  | -              if(item.paranValue) {
 | 
	
		
			
				|  |  | -                let value = JSON.parse(item.paranValue)
 | 
	
		
			
				|  |  | -                value.forEach(type => {
 | 
	
		
			
				|  |  | -                  domain.push({
 | 
	
		
			
				|  |  | -                    courseScheduleType: courseScheduleType,
 | 
	
		
			
				|  |  | -                    durationMax: type.max,
 | 
	
		
			
				|  |  | -                    durationMin: type.min,
 | 
	
		
			
				|  |  | -                    mainTeacherSalary: null,
 | 
	
		
			
				|  |  | -                    assistantTeacherSalary: null,
 | 
	
		
			
				|  |  | -                    userId: this.teacherId,
 | 
	
		
			
				|  |  | -                    settlementType: 'GRADIENT_SALARY'
 | 
	
		
			
				|  |  | -                  })
 | 
	
		
			
				|  |  | -                })
 | 
	
		
			
				|  |  | -              }
 | 
	
		
			
				|  |  | -          })
 | 
	
		
			
				|  |  | -          // this.ruleList.push(domain)
 | 
	
		
			
				|  |  | +      // sysConfigList({ group: 'settlement_rule' }).then(res => {
 | 
	
		
			
				|  |  | +      //   if(res.code == 200 && res.data.length > 0) {
 | 
	
		
			
				|  |  | +      //     let domain = []
 | 
	
		
			
				|  |  | +      //     res.data.forEach(item => {
 | 
	
		
			
				|  |  | +      //         let courseScheduleType
 | 
	
		
			
				|  |  | +      //         if(item.paramName == 'sigle_gradient_settlement_rule') {
 | 
	
		
			
				|  |  | +      //             courseScheduleType = "SINGLE"
 | 
	
		
			
				|  |  | +      //         }
 | 
	
		
			
				|  |  | +      //         if(item.paramName == "max_gradient_settlement_rule") {
 | 
	
		
			
				|  |  | +      //             courseScheduleType = "MIX"
 | 
	
		
			
				|  |  | +      //         }
 | 
	
		
			
				|  |  | +      //         if(item.paramName == "high_gradient_settlement_rule") {
 | 
	
		
			
				|  |  | +      //             courseScheduleType = "HIGH"
 | 
	
		
			
				|  |  | +      //         }
 | 
	
		
			
				|  |  | +      //         if(item.paranValue) {
 | 
	
		
			
				|  |  | +      //           let value = JSON.parse(item.paranValue)
 | 
	
		
			
				|  |  | +      //           value.forEach(type => {
 | 
	
		
			
				|  |  | +      //             domain.push({
 | 
	
		
			
				|  |  | +      //               courseScheduleType: courseScheduleType,
 | 
	
		
			
				|  |  | +      //               durationMax: type.max,
 | 
	
		
			
				|  |  | +      //               durationMin: type.min,
 | 
	
		
			
				|  |  | +      //               mainTeacherSalary: null,
 | 
	
		
			
				|  |  | +      //               assistantTeacherSalary: null,
 | 
	
		
			
				|  |  | +      //               userId: this.teacherId,
 | 
	
		
			
				|  |  | +      //               settlementType: 'GRADIENT_SALARY'
 | 
	
		
			
				|  |  | +      //             })
 | 
	
		
			
				|  |  | +      //           })
 | 
	
		
			
				|  |  | +      //         }
 | 
	
		
			
				|  |  | +      //     })
 | 
	
		
			
				|  |  | +      //     // this.ruleList.push(domain)
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  | -          // 乐团
 | 
	
		
			
				|  |  | -          teacherSalaryList({
 | 
	
		
			
				|  |  | -            rows: 9999,
 | 
	
		
			
				|  |  | -            page: 1,
 | 
	
		
			
				|  |  | -            teacherId: this.teacherId,
 | 
	
		
			
				|  |  | -            settlementType: 'GRADIENT_SALARY'
 | 
	
		
			
				|  |  | -          }).then(res => {
 | 
	
		
			
				|  |  | -            if(res.code == 200) {
 | 
	
		
			
				|  |  | -              let rows = res.data.rows
 | 
	
		
			
				|  |  | -              // this.musicGroupTable = res.data.rows
 | 
	
		
			
				|  |  | -              this.teacherSalaryList(domain, rows)
 | 
	
		
			
				|  |  | -            }
 | 
	
		
			
				|  |  | -          })
 | 
	
		
			
				|  |  | -        }
 | 
	
		
			
				|  |  | -      })
 | 
	
		
			
				|  |  | +      //     // 乐团
 | 
	
		
			
				|  |  | +      //     teacherSalaryList({
 | 
	
		
			
				|  |  | +      //       rows: 9999,
 | 
	
		
			
				|  |  | +      //       page: 1,
 | 
	
		
			
				|  |  | +      //       teacherId: this.teacherId,
 | 
	
		
			
				|  |  | +      //       settlementType: 'GRADIENT_SALARY'
 | 
	
		
			
				|  |  | +      //     }).then(res => {
 | 
	
		
			
				|  |  | +      //       if(res.code == 200) {
 | 
	
		
			
				|  |  | +      //         let rows = res.data.rows
 | 
	
		
			
				|  |  | +      //         // this.musicGroupTable = res.data.rows
 | 
	
		
			
				|  |  | +      //         this.teacherSalaryList(domain, rows)
 | 
	
		
			
				|  |  | +      //       }
 | 
	
		
			
				|  |  | +      //     })
 | 
	
		
			
				|  |  | +      //   }
 | 
	
		
			
				|  |  | +      // })
 | 
	
		
			
				|  |  |      },
 | 
	
		
			
				|  |  |      vipListCompare(vipData, rows) { // vip 做对比
 | 
	
		
			
				|  |  |        if(!rows) { // 判断是否有数据
 | 
	
	
		
			
				|  | @@ -372,11 +408,10 @@ export default {
 | 
	
		
			
				|  |  |    }
 | 
	
		
			
				|  |  |    .tableList {
 | 
	
		
			
				|  |  |      .left, .right {
 | 
	
		
			
				|  |  | -      
 | 
	
		
			
				|  |  |        float: left;
 | 
	
		
			
				|  |  |      }
 | 
	
		
			
				|  |  |      .left {
 | 
	
		
			
				|  |  | -      width: 40%;
 | 
	
		
			
				|  |  | +      width: 70%;
 | 
	
		
			
				|  |  |        margin-right: 2%;
 | 
	
		
			
				|  |  |      }
 | 
	
		
			
				|  |  |      .right {
 |