Commit d62d22e2 authored by zhengke's avatar zhengke

修改

parent 20bb0909
......@@ -152,6 +152,7 @@
EmployeeList: [], //员工列表
AllemployeeList: [], //所有员工列表
CourseList: [], //课程列表
choiceObj:{}
}
},
created() {
......@@ -193,6 +194,8 @@
//选择课程切换价格
changePrice() {
let temp = this.CourseList.find(x => x.CourseId == this.OrderMsg.CourseId);
console.log(temp,'temp');
this.choiceObj = temp;
if (temp) {
this.OrderMsg.Unit_Price = temp.SellPrice;
this.UnitPrice = temp.SellPrice;
......@@ -320,6 +323,8 @@
if (this.OrderMsg.Unit_Price && this.OrderMsg.Unit_Price > 0) {
unit_price = Number(this.OrderMsg.Unit_Price);
}
//计算应收价格
this.OrderMsg.PreferPrice = Number(guestNum * unit_price).toFixed(2);
if (this.OrderMsg.OrderType == 2) {
this.OrderMsg.OldPreferPrice = Number(guestNum * unit_price).toFixed(2);
......
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