Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
C
confucius
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
罗超
confucius
Commits
5d222561
Commit
5d222561
authored
Aug 30, 2024
by
吴春
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1
parent
298dbc21
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
6 deletions
+8
-6
order-form.vue
src/components/school/student/transfer-order/order-form.vue
+8
-6
No files found.
src/components/school/student/transfer-order/order-form.vue
View file @
5d222561
...
...
@@ -102,7 +102,7 @@
:dense=
"false"
type=
"number"
:min=
"1"
@
input=
"totalCourseFee()"
@
input=
"totalCourseFee(
1
)"
v-model=
"item.TotalClassHours"
class=
"col-6 q-py-sm"
label=
"总课时数"
...
...
@@ -114,7 +114,7 @@
:dense=
"false"
type=
"number"
:min=
"0"
@
input=
"totalCourseFee()"
@
input=
"totalCourseFee(
0
)"
v-model=
"item.TextbookFee"
class=
"col-6 q-py-sm"
label=
"课件费"
...
...
@@ -125,7 +125,7 @@
:dense=
"false"
type=
"number"
:min=
"0"
@
input=
"totalCourseFee()"
@
input=
"totalCourseFee(
0
)"
v-model=
"item.CoursewareFee"
class=
"col-6 q-py-sm"
label=
"教材费"
...
...
@@ -899,7 +899,7 @@ export default {
}
this.courseInformationList.push(dataObj)
});
this.totalCourseFee()
this.totalCourseFee(
1
)
}
...
...
@@ -917,7 +917,7 @@ export default {
},
// 多个课程计算
totalCourseFee(){
totalCourseFee(
type
){
this.courseInformationList.forEach((item)=>{
if(this.stuData.StuList[0].IsRenewGuest==1){
item.DiscountMoney = this.accAdd(
...
...
@@ -931,7 +931,9 @@ export default {
item.PreferPrice = item.GuestNum*item.Unit_Price
}
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)
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment