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
298dbc21
Commit
298dbc21
authored
Aug 30, 2024
by
吴春
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1
parent
d58fe242
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
5 deletions
+7
-5
order-form.vue
src/components/school/student/transfer-order/order-form.vue
+7
-5
No files found.
src/components/school/student/transfer-order/order-form.vue
View file @
298dbc21
...
...
@@ -431,7 +431,7 @@
:dense=
"false"
type=
"number"
:min=
"1"
@
input=
"oneTotalCourseFee()"
@
input=
"oneTotalCourseFee(
1
)"
v-model=
"OrderMsg.TotalClassHours"
class=
"col-6 q-py-sm"
label=
"总课时数"
...
...
@@ -443,7 +443,7 @@
:dense=
"false"
type=
"number"
:min=
"0"
@
input=
"oneTotalCourseFee()"
@
input=
"oneTotalCourseFee(
0
)"
v-model=
"OrderMsg.TextbookFee"
class=
"col-6 q-py-sm"
label=
"课件费"
...
...
@@ -454,7 +454,7 @@
:dense=
"false"
type=
"number"
:min=
"0"
@
input=
"oneTotalCourseFee()"
@
input=
"oneTotalCourseFee(
0
)"
v-model=
"OrderMsg.CoursewareFee"
class=
"col-6 q-py-sm"
label=
"教材费"
...
...
@@ -907,8 +907,11 @@ export default {
methods: {
//单个课程计算
oneTotalCourseFee(){
oneTotalCourseFee(
type
){
if(this.OrderMsg.Unit_PriceType==2){
if(type==1){
this.OrderMsg.TextbookFee=Number((this.OrderMsg.TotalClassHours*this.OrderMsg.Unit_Price*this.OrderMsg.GuestNum)*(20/100)).toFixed(2);
}
this.OrderMsg.PreferPrice = this.OrderMsg.GuestNum*this.OrderMsg.Unit_Price*this.OrderMsg.TotalClassHours+Number(this.OrderMsg.TextbookFee)+Number(this.OrderMsg.CoursewareFee)
}
},
...
...
@@ -928,7 +931,6 @@ 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);
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