Commit 5d222561 authored by 吴春's avatar 吴春

1

parent 298dbc21
...@@ -102,7 +102,7 @@ ...@@ -102,7 +102,7 @@
:dense="false" :dense="false"
type="number" type="number"
:min="1" :min="1"
@input="totalCourseFee()" @input="totalCourseFee(1)"
v-model="item.TotalClassHours" v-model="item.TotalClassHours"
class="col-6 q-py-sm" class="col-6 q-py-sm"
label="总课时数" label="总课时数"
...@@ -114,7 +114,7 @@ ...@@ -114,7 +114,7 @@
:dense="false" :dense="false"
type="number" type="number"
:min="0" :min="0"
@input="totalCourseFee()" @input="totalCourseFee(0)"
v-model="item.TextbookFee" v-model="item.TextbookFee"
class="col-6 q-py-sm" class="col-6 q-py-sm"
label="课件费" label="课件费"
...@@ -125,7 +125,7 @@ ...@@ -125,7 +125,7 @@
:dense="false" :dense="false"
type="number" type="number"
:min="0" :min="0"
@input="totalCourseFee()" @input="totalCourseFee(0)"
v-model="item.CoursewareFee" v-model="item.CoursewareFee"
class="col-6 q-py-sm" class="col-6 q-py-sm"
label="教材费" label="教材费"
...@@ -899,7 +899,7 @@ export default { ...@@ -899,7 +899,7 @@ export default {
} }
this.courseInformationList.push(dataObj) this.courseInformationList.push(dataObj)
}); });
this.totalCourseFee() this.totalCourseFee(1)
} }
...@@ -917,7 +917,7 @@ export default { ...@@ -917,7 +917,7 @@ export default {
}, },
// 多个课程计算 // 多个课程计算
totalCourseFee(){ totalCourseFee(type){
this.courseInformationList.forEach((item)=>{ this.courseInformationList.forEach((item)=>{
if(this.stuData.StuList[0].IsRenewGuest==1){ if(this.stuData.StuList[0].IsRenewGuest==1){
item.DiscountMoney = this.accAdd( item.DiscountMoney = this.accAdd(
...@@ -931,7 +931,9 @@ export default { ...@@ -931,7 +931,9 @@ export default {
item.PreferPrice = item.GuestNum*item.Unit_Price item.PreferPrice = item.GuestNum*item.Unit_Price
} }
else if(item.Unit_PriceType==2){ else if(item.Unit_PriceType==2){
item.TextbookFee=Number((item.TotalClassHours*item.Unit_Price*item.GuestNum)*(20/100)).toFixed(2); if(type==1){
item.TextbookFee=Number((item.TotalClassHours*item.Unit_Price*item.GuestNum)*(20/100)).toFixed(2);
}
item.PreferPrice = (item.GuestNum*item.Unit_Price*item.TotalClassHours)+Number(item.TextbookFee)+Number(item.CoursewareFee) item.PreferPrice = (item.GuestNum*item.Unit_Price*item.TotalClassHours)+Number(item.TextbookFee)+Number(item.CoursewareFee)
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment