|
|
|
@ -289,7 +289,11 @@ |
|
|
|
|
} |
|
|
|
|
// 3个分类的课程分别push到不同数组(0->理论 1-实训 2 数据产品) |
|
|
|
|
list.map(e => { |
|
|
|
|
e.serviceFee = (e.settlementPrice * (this.rate / 100)).toFixed(2) // 服务费 != 0 && 才需要算 |
|
|
|
|
console.log('e.=>',e) |
|
|
|
|
console.log('this.rate=>',this.rate) |
|
|
|
|
e.serviceFee = (e.finalPrice * (this.rate / 100)).toFixed(2) // 服务费 != 0 && 才需要算 |
|
|
|
|
|
|
|
|
|
console.log('e.serviceFee=>',e.serviceFee) |
|
|
|
|
const type = e.productType |
|
|
|
|
!type ? |
|
|
|
|
courses.theory.list.push(e) : |
|
|
|
@ -415,7 +419,6 @@ |
|
|
|
|
|
|
|
|
|
总成本和总利润为单个产品的采购成本价和利润的和 |
|
|
|
|
*/ |
|
|
|
|
console.log('list=>',list) |
|
|
|
|
list.map(e => { |
|
|
|
|
// out=1 && 试用,则把结算价等重置为0 |
|
|
|
|
if (out && isTrial) { |
|
|
|
@ -445,6 +448,7 @@ |
|
|
|
|
}, |
|
|
|
|
// 计算结算价及平台服务费 |
|
|
|
|
dealSettlePrice(row) { |
|
|
|
|
console.log('row==>',row) |
|
|
|
|
// 如果是试用,结算价和平台服务费都是0 |
|
|
|
|
if (this.form.orderType == 2) { |
|
|
|
|
row.settlementPrice = 0 |
|
|
|
|