|
@@ -103,10 +103,7 @@
|
|
|
form.type == 'GROUP'
|
|
|
"
|
|
|
>
|
|
|
- <el-input
|
|
|
- v-model="changeCourseFee"
|
|
|
- disabled
|
|
|
- >
|
|
|
+ <el-input v-model="changeCourseFee" disabled>
|
|
|
<template slot="append">元</template>
|
|
|
</el-input>
|
|
|
</el-form-item>
|
|
@@ -399,48 +396,48 @@ export default {
|
|
|
return items || "未选择教辅";
|
|
|
},
|
|
|
editSpread() {
|
|
|
- this.$nextTick(()=>{
|
|
|
- console.log(this.form.type,'editSpread','type')
|
|
|
- })
|
|
|
-
|
|
|
const data = this.changeInfo || {};
|
|
|
const payed =
|
|
|
(data.originalAccessoriesPrice || 0) +
|
|
|
- // (data.originalCourseFee || 0) +
|
|
|
+ (data.originalCourseFee || 0) +
|
|
|
(data.originalMusicalPrice || 0);
|
|
|
- return this.changeInfo.kitGroupPurchaseType =='GROUP'?(
|
|
|
- (data.changeMusicalPrice || 0) +
|
|
|
- (data.changeAccessoriesPrice || 0) +
|
|
|
- (data.originalCourseFee || 0) -
|
|
|
- payed
|
|
|
- ):(
|
|
|
- (data.changeMusicalPrice || 0) +
|
|
|
- (data.changeAccessoriesPrice || 0)
|
|
|
- -
|
|
|
- payed
|
|
|
- );
|
|
|
+ return this.form.type == "GROUP"
|
|
|
+ ? (data.changeMusicalPrice || 0) +
|
|
|
+ (data.changeAccessoriesPrice || 0) +
|
|
|
+ this.changeCourseFee -
|
|
|
+ (data.originalCourseFee || 0) -
|
|
|
+ payed
|
|
|
+ : (data.changeMusicalPrice || 0) +
|
|
|
+ (data.changeAccessoriesPrice || 0) -
|
|
|
+ payed;
|
|
|
},
|
|
|
spread() {
|
|
|
- const money = this.form.type =='GROUP'? this.numFormat(
|
|
|
- this.musicalPrice +
|
|
|
- this.selectAccessoriesMoney +
|
|
|
- this.originalCourseFee +
|
|
|
- this.musicGroupSubjectPlanFee -
|
|
|
- this.originalAccessoriesPrice -
|
|
|
- this.originalMusicalPrice -
|
|
|
-
|
|
|
- this.coursePurchaseTypeJsonTypePrice -
|
|
|
- this.kitGroupPurchaseTypePrice
|
|
|
- ):this.numFormat(
|
|
|
- this.musicalPrice +
|
|
|
- this.selectAccessoriesMoney +
|
|
|
- this.musicGroupSubjectPlanFee -
|
|
|
- this.originalAccessoriesPrice -
|
|
|
- this.originalMusicalPrice -
|
|
|
-
|
|
|
- this.coursePurchaseTypeJsonTypePrice -
|
|
|
- this.kitGroupPurchaseTypePrice
|
|
|
- );
|
|
|
+ console.log( this.changeCourseFee ,' this.changeCourseFee', this.form.type, this.musicalPrice +
|
|
|
+ this.selectAccessoriesMoney +
|
|
|
+ this.musicGroupSubjectPlanFee +
|
|
|
+ this.changeCourseFee)
|
|
|
+ const money =
|
|
|
+ this.form.type == "GROUP"
|
|
|
+ ? this.numFormat(
|
|
|
+ this.musicalPrice +
|
|
|
+ this.selectAccessoriesMoney +
|
|
|
+ this.musicGroupSubjectPlanFee +
|
|
|
+ this.changeCourseFee -
|
|
|
+ this.originalCourseFee -
|
|
|
+ this.originalAccessoriesPrice -
|
|
|
+ this.originalMusicalPrice -
|
|
|
+ this.coursePurchaseTypeJsonTypePrice -
|
|
|
+ this.kitGroupPurchaseTypePrice
|
|
|
+ )
|
|
|
+ : this.numFormat(
|
|
|
+ this.musicalPrice +
|
|
|
+ this.selectAccessoriesMoney +
|
|
|
+ this.musicGroupSubjectPlanFee -
|
|
|
+ this.originalAccessoriesPrice -
|
|
|
+ this.originalMusicalPrice -
|
|
|
+ this.coursePurchaseTypeJsonTypePrice -
|
|
|
+ this.kitGroupPurchaseTypePrice
|
|
|
+ );
|
|
|
// this.originalCourseFee -
|
|
|
// console.log(
|
|
|
// this.item.kitGroupPurchaseType,
|
|
@@ -471,15 +468,14 @@ export default {
|
|
|
const setRes = (res) => {
|
|
|
const { data } = res;
|
|
|
this.item = data || {};
|
|
|
- console.log(data, "fetchDetail");
|
|
|
if (data) {
|
|
|
this.$set(this.form, "type", this.item.kitGroupPurchaseType);
|
|
|
this.originalAccessoriesPrice = data.changeAccessoriesPrice;
|
|
|
this.originalMusicalPrice = data.changeMusicalPrice;
|
|
|
- // if(this.item.kitGroupPurchaseType == 'GROUP'){
|
|
|
- this.originalCourseFee = data.changeCourseFee; // 改为原乐器分润
|
|
|
- // }
|
|
|
- // console.log( this.originalCourseFee,'originalCourseFee')
|
|
|
+ if(this.item.kitGroupPurchaseType == 'GROUP'){
|
|
|
+ this.originalCourseFee = data.changeCourseFee; // 改为原乐器分润
|
|
|
+ }
|
|
|
+ // console.log( this.originalCourseFee,'originalCourseFee')
|
|
|
this.originalMusicalGoods =
|
|
|
data.changeMusicalGoods && data.changeMusicalGoods.name;
|
|
|
this.originalAccessoriesGoods = (data.changeAccessoriesGoods || [])
|