Browse Source

fix ratio

ethan 6 years ago
parent
commit
b1b93db285
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/views/agnetManagement/gambleMemberManagement/index.vue

+ 1 - 1
src/views/agnetManagement/gambleMemberManagement/index.vue

267
             console.log('bookieEarned' , row.bookieEarned)
267
             console.log('bookieEarned' , row.bookieEarned)
268
             row.bookieServiceFees = _.sumBy(bookie.true, (item) => { return item.serviceFees});
268
             row.bookieServiceFees = _.sumBy(bookie.true, (item) => { return item.serviceFees});
269
           }
269
           }
270
-          row.totalServiceFees = Number(new Decimal(row.bookieServiceFees).plus(row.memberServiceFees).plus(row.bookieWagerFee).valueOf())
270
+          row.totalServiceFees = Number(new Decimal(row.bookieServiceFees).plus(row.memberServiceFees).plus(row.bookieWagerFee).times(row.feeRatio).valueOf())
271
           let chipsLog = _.groupBy(member.GambleMemberChipsLogs, 'type')
271
           let chipsLog = _.groupBy(member.GambleMemberChipsLogs, 'type')
272
           // console.log('type', chipsLog)
272
           // console.log('type', chipsLog)
273
           if (chipsLog['0'] || chipsLog['2']) {
273
           if (chipsLog['0'] || chipsLog['2']) {