Commit 03a10d15 authored by 黄奎's avatar 黄奎

订单计算应收修改

parent 03da7023
...@@ -293,10 +293,11 @@ ...@@ -293,10 +293,11 @@
var preferPrice = 0; //应收 var preferPrice = 0; //应收
var coursewareFee = 0; //课件费 var coursewareFee = 0; //课件费
var textbookFee = 0; //教材费 var textbookFee = 0; //教材费
console.log("his.OrderMsg.OrderCourseList",this.OrderMsg.OrderCourseList);
if (this.OrderMsg.OrderCourseList && this.OrderMsg.OrderCourseList.length > 0) { if (this.OrderMsg.OrderCourseList && this.OrderMsg.OrderCourseList.length > 0) {
this.OrderMsg.OrderCourseList.forEach(item => { this.OrderMsg.OrderCourseList.forEach(item => {
if (this.OrderMsg.Unit_PriceType == 1) { if (this.OrderMsg.Unit_PriceType == 1) {
preferPrice += this.OrderMsg.Unit_Price * guestNum; preferPrice += item.SellPrice* guestNum;
coursewareFee += item.CoursewareFee * guestNum; coursewareFee += item.CoursewareFee * guestNum;
textbookFee += item.TextbookFee * guestNum; textbookFee += item.TextbookFee * guestNum;
} else { } else {
......
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