Commit 3b4381e6 authored by 罗超's avatar 罗超

2

parent 9a9fddd5
......@@ -503,9 +503,11 @@ export default {
//计算课程单价和应收金额
calcPrice() {
var guestNum = 0;
if (this.OrderMsg.GuestNum && this.OrderMsg.GuestNum > 0) {
guestNum = Number(this.OrderMsg.GuestNum);
}
let temp = this.CourseList.find(
x => x.CourseId == this.OrderMsg.CourseId
);
......@@ -618,12 +620,12 @@ export default {
if (e.IsRenewGuest == 0) {
this.OrderMsg.DiscountMoney = this.accAdd(
this.OrderMsg.DiscountMoney,
this.accMul(this.OrderMsg.Class_Price, this.OrderMsg.B2CRatio)
this.accMul(this.OrderMsg.Class_Price, this.OrderMsg.B2CRatio/100)
);
} else {
this.OrderMsg.DiscountMoney = this.accAdd(
this.OrderMsg.DiscountMoney,
this.accMul(this.OrderMsg.Class_Price, this.OrderMsg.B2CReNewRatio)
this.accMul(this.OrderMsg.Class_Price, this.OrderMsg.B2CReNewRatio/100)
);
}
});
......@@ -671,16 +673,10 @@ export default {
this.OrderMsg.CourseId = "";
}
if (this.saveObj.B2CRatio) {
this.OrderMsg.B2CRatio =
this.saveObj.B2CRatio > 0
? this.saveObj.B2CRatio / 100
: this.saveObj.B2CRatio;
this.OrderMsg.B2CRatio = this.saveObj.B2CRatio
}
if (this.saveObj.B2CReNewRatio) {
this.OrderMsg.B2CReNewRatio =
this.saveObj.B2CReNewRatio > 0
? this.saveObj.B2CReNewRatio / 100
: this.saveObj.B2CReNewRatio;
this.OrderMsg.B2CReNewRatio = this.saveObj.B2CReNewRatio
}
}
this.IsShowEditOrder = true;
......@@ -726,7 +722,7 @@ export default {
getEmployee(n) {
var qMsg = {
IsLeave: 1,
UserRole: 2
UserRole: n
};
queryEmployee(qMsg).then(res => {
if (res.Code == 1) {
......
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