Browse Source

fix agent service display wrong

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

+ 5 - 13
src/views/agnetManagement/gambleMemberManagement/index.vue

97
           </el-table-column> -->
97
           </el-table-column> -->
98
           <el-table-column label="莊家投注量抽水" align="center">
98
           <el-table-column label="莊家投注量抽水" align="center">
99
             <template slot-scope="scope">
99
             <template slot-scope="scope">
100
-              <span>{{0}}</span>
100
+              <span>{{scope.row.bookieWagerFee}}</span>
101
             </template>
101
             </template>
102
           </el-table-column>
102
           </el-table-column>
103
           <el-table-column label="莊家抽水" align="center">
103
           <el-table-column label="莊家抽水" align="center">
235
             row.memberServiceFees = _.sumBy(bookie.false, 'serviceFees')*this.data.secondLayer.feeRatio/100;
235
             row.memberServiceFees = _.sumBy(bookie.false, 'serviceFees')*this.data.secondLayer.feeRatio/100;
236
           }
236
           }
237
           if (bookie.true) {
237
           if (bookie.true) {
238
-            console.log('ddd', bookie.true)
239
-            // TODO 請福哥加 此關總投著涼 bookie
240
-            //row.bookieWagerFee = _.sumBy(bookie.true, (item) => {
241
-            //  if(item.傯投注量>= item.wager上裝分數) {
242
-            //    return item.wagerServiceFees * this.data.secondLayer.feeRatio/100
243
-            //  } 
244
-            // if(item.總投注量<item.wager){
245
-            //   return item.總投注量 * * this.data.secondLayer.feeRatio/100
246
-            //
247
-            // }
248
-            //});
238
+            row.bookieWagerFee = _.sumBy(bookie.true, (item) => {
239
+              return item.wagerServiceFees
240
+            }) * this.data.secondLayer.feeRatio/100;
249
             row.bookieEarned = _.sumBy(bookie.true, 'earned');
241
             row.bookieEarned = _.sumBy(bookie.true, 'earned');
250
-            row.bookieServiceFees = _.sumBy(bookie.true, (item) => { return item.serviceFees-item.FixedServiceFees })*this.data.secondLayer.feeRatio/100;
242
+            row.bookieServiceFees = _.sumBy(bookie.true, (item) => { return item.serviceFees})*this.data.secondLayer.feeRatio/100;
251
           }
243
           }
252
           row.totalServiceFees = new Decimal(row.bookieServiceFees).plus(row.memberServiceFees).valueOf()
244
           row.totalServiceFees = new Decimal(row.bookieServiceFees).plus(row.memberServiceFees).valueOf()
253
 
245