Parcourir la Source

fix agent service display wrong

ethan il y a 6 ans
Parent
commit
b869d52909
1 fichiers modifiés avec 5 ajouts et 13 suppressions
  1. 5 13
      src/views/agnetManagement/gambleMemberManagement/index.vue

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

@@ -97,7 +97,7 @@
97 97
           </el-table-column> -->
98 98
           <el-table-column label="莊家投注量抽水" align="center">
99 99
             <template slot-scope="scope">
100
-              <span>{{0}}</span>
100
+              <span>{{scope.row.bookieWagerFee}}</span>
101 101
             </template>
102 102
           </el-table-column>
103 103
           <el-table-column label="莊家抽水" align="center">
@@ -235,19 +235,11 @@ export default {
235 235
             row.memberServiceFees = _.sumBy(bookie.false, 'serviceFees')*this.data.secondLayer.feeRatio/100;
236 236
           }
237 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 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 244
           row.totalServiceFees = new Decimal(row.bookieServiceFees).plus(row.memberServiceFees).valueOf()
253 245