|
@@ -427,7 +427,6 @@ export default {
|
|
|
formName.vipGroupActivityIndex = index
|
|
|
loadData.vipGroupActivitySelect = value
|
|
|
|
|
|
- // console.log(loadData.vipGroupCategorySelect)
|
|
|
// 换活动之后单价重置
|
|
|
form.onlineClassesUnitPrice = Math.ceil(loadData.vipGroupCategorySelect.onlineClassesUnitPrice)
|
|
|
form.offlineClassesUnitPrice = Math.ceil(loadData.vipGroupCategorySelect.offlineClassesUnitPrice)
|
|
@@ -743,14 +742,13 @@ export default {
|
|
|
if(vas.type == 'DISCOUNT') {
|
|
|
tempPrice = tempPrice * (vas.attribute1 ? Number(vas.attribute1) : 100) / 100
|
|
|
}
|
|
|
- console.log(tempPrice)
|
|
|
}
|
|
|
// 课程按课来计算
|
|
|
if (obj && obj.onlineSalarySettlement) {
|
|
|
let onss = obj.onlineSalarySettlement
|
|
|
// 有线上课
|
|
|
if(onss.salarySettlementType == 'TEACHER_DEFAULT') {
|
|
|
- form.onlineTeacherSalary = Math.round(tc.onlineClassesSalary) // 线上课酬
|
|
|
+ form.onlineTeacherSalary = Math.round(tc.offlineClassesSalary) // 线上课酬
|
|
|
} else if(onss.salarySettlementType == 'RATIO_DISCOUNT') {
|
|
|
// 老师课酬的折扣 如果有则不打折
|
|
|
// form.onlineTeacherSalary = Math.round(vcs.onlineClassesUnitPrice * (onss.settlementValue ? onss.settlementValue : 100) / 100)
|
|
@@ -769,7 +767,6 @@ export default {
|
|
|
} else if(offss.salarySettlementType == 'RATIO_DISCOUNT') {
|
|
|
// 老师课酬的折扣
|
|
|
// form.offlineTeacherSalary = Math.round((vcs.offlineClassesUnitPrice * (offss.settlementValue ? offss.settlementValue : 100) / 100))
|
|
|
-
|
|
|
form.offlineTeacherSalary = Math.round(tempPrice ? (tempPrice * (offss.settlementValue ? offss.settlementValue : 100) / 100) : 0)
|
|
|
} else if(offss.salarySettlementType == 'FIXED_SALARY') {
|
|
|
form.offlineTeacherSalary = Math.round(offss.settlementValue)
|