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
89351e9e
Commit
89351e9e
authored
Aug 29, 2024
by
吴春
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1
parent
df74261e
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
11 deletions
+16
-11
order-form.vue
src/components/school/student/transfer-order/order-form.vue
+16
-11
No files found.
src/components/school/student/transfer-order/order-form.vue
View file @
89351e9e
...
...
@@ -870,7 +870,12 @@ export default {
if
(
item
.
ClassHours
)
{
dataObj
.
TotalClassHours
=
item
.
ClassHours
;
}
if
(
item
.
CoursewareFee
)
{
dataObj
.
CoursewareFee
=
item
.
CoursewareFee
;
}
if
(
item
.
TextbookFee
)
{
dataObj
.
TextbookFee
=
item
.
TextbookFee
;
}
if
(
item
.
SourceId
)
{
dataObj
.
SourceId
=
item
.
SourceId
;
}
...
...
@@ -1008,9 +1013,7 @@ export default {
let temp = this.CourseList.find(
x => x.CourseId == this.OrderMsg.CourseId
);
console.log("我是计算价格",temp);
if (temp) {
console.log("我是计算价格111",temp);
this.courseObj = temp;
var tempDiscountMoney = 0; //优惠金额
// var tempSaleRemark = `
直客首次报名优惠比例
$
{
temp
.
B2CRatio
??
0
}
%
`; //备注
...
...
@@ -1066,7 +1069,6 @@ export default {
// }
// this.OrderMsg.SaleRemark = tempSaleRemark;
} else {
console.log("我是计算价格2222",temp);
if (this.saveObj.ClassId) {
this.OrderMsg.ClassId = this.saveObj.ClassId;
}
...
...
@@ -1107,18 +1109,17 @@ export default {
newPreferPrice = chaBanPrice * guestNum*this.OrderMsg.TotalClassHours
}
}
console.log("我进来了...",this.OrderMsg);
this.OrderMsg.PreferPrice =
Number(newPreferPrice).toFixed(2) - this.OrderMsg.LessPrice;
} else {
if(this.OrderMsg.Unit_PriceType==1){
this.OrderMsg.PreferPrice =
Number(guestNum * unit_price).toFixed(2) - this.OrderMsg.LessPrice;
Number(guestNum * unit_price).toFixed(2) - this.OrderMsg.LessPrice
;
}
else if(this.OrderMsg.Unit_PriceType==2){
this.OrderMsg.PreferPrice =
Number((guestNum * unit_price*this.OrderMsg.TotalClassHours)+Number(this.OrderMsg.TextbookFee)).toFixed(2) - this.OrderMsg.LessPrice;
Number((guestNum * unit_price*this.OrderMsg.TotalClassHours)+Number(this.OrderMsg.TextbookFee)
+Number(this.OrderMsg.CoursewareFee)
).toFixed(2) - this.OrderMsg.LessPrice;
}
}
//留学就业订单
...
...
@@ -1173,6 +1174,7 @@ export default {
if (this.OrderMsg.OrderType == 2) {
this.OrderMsg.OrderNature = 1;
}
console.log("saveObj",this.saveObj);
if (this.saveObj) {
if (this.saveObj.ClassId) {
this.OrderMsg.ClassId = this.saveObj.ClassId;
...
...
@@ -1191,10 +1193,13 @@ export default {
if (this.saveObj.ClassHours) {
this.OrderMsg.TotalClassHours = this.saveObj.ClassHours;
}
console.log("this.OrderMsg.TotalClassHours",this.OrderMsg.TotalClassHours);
console.log("this.OrderMsg.Unit_Price",this.OrderMsg.Unit_Price);
console.log("this.OrderMsg.GuestNum",this.OrderMsg.GuestNum);
if (this.saveObj.TextbookFee) {
this.OrderMsg.TextbookFee = this.saveObj.TextbookFee;
}
if (this.saveObj.CoursewareFee) {
this.OrderMsg.CoursewareFee = this.saveObj.CoursewareFee;
}
if (this.saveObj.CourseId) {
this.OrderMsg.CourseId = this.saveObj.CourseId;
} else {
...
...
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