Browse Source

add agent colunm

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

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

102
           </el-table-column> -->
102
           </el-table-column> -->
103
           <el-table-column label="莊家總投注量抽水" align="center">
103
           <el-table-column label="莊家總投注量抽水" align="center">
104
             <template slot-scope="scope">
104
             <template slot-scope="scope">
105
-              <span>{{0}}</span>
105
+              <span>{{scope.row.bookieWagerFee}}</span>
106
             </template>
106
             </template>
107
           </el-table-column>
107
           </el-table-column>
108
           <el-table-column label="莊家總投注量退水" align="center">
108
           <el-table-column label="莊家總投注量退水" align="center">
109
             <template slot-scope="scope">
109
             <template slot-scope="scope">
110
-              <span>{{scope.row.bookieWagerFee}}</span>
110
+              <span>{{scope.row.bookieWagerFee * this.data.secondLayer.feeRatio/100}}</span>
111
             </template>
111
             </template>
112
           </el-table-column>
112
           </el-table-column>
113
           <el-table-column label="莊家總抽水" align="center">
113
           <el-table-column label="莊家總抽水" align="center">
114
             <template slot-scope="scope">
114
             <template slot-scope="scope">
115
-              <span>{{0}}</span>
115
+              <span>{{scope.row.bookieServiceFees}}</span>
116
             </template>
116
             </template>
117
           </el-table-column>
117
           </el-table-column>
118
           <el-table-column label="莊家退水" align="center">
118
           <el-table-column label="莊家退水" align="center">
119
             <template slot-scope="scope">
119
             <template slot-scope="scope">
120
-              <span>{{scope.row.bookieServiceFees}}</span>
120
+              <span>{{scope.row.bookieServiceFees * this.data.secondLayer.feeRatio/100}}</span>
121
             </template>
121
             </template>
122
           </el-table-column>
122
           </el-table-column>
123
           <el-table-column label="閒家總抽水" align="center">
123
           <el-table-column label="閒家總抽水" align="center">
124
             <template slot-scope="scope">
124
             <template slot-scope="scope">
125
-              <span>{{0}}</span>
125
+              <span>{{scope.row.memberServiceFees}}</span>
126
             </template>
126
             </template>
127
           </el-table-column>
127
           </el-table-column>
128
           <el-table-column label="閒家退水" align="center">
128
           <el-table-column label="閒家退水" align="center">
129
             <template slot-scope="scope">
129
             <template slot-scope="scope">
130
-              <span>{{scope.row.memberServiceFees}}</span>
130
+              <span>{{scope.row.memberServiceFees * this.data.secondLayer.feeRatio/100}}</span>
131
             </template>
131
             </template>
132
           </el-table-column>
132
           </el-table-column>
133
           <el-table-column label="總退水" align="center">
133
           <el-table-column label="總退水" align="center">
253
               return Math.abs(item.earned)
253
               return Math.abs(item.earned)
254
             });
254
             });
255
             console.log('membeEarned', row.memberEarned)
255
             console.log('membeEarned', row.memberEarned)
256
-            row.memberServiceFees = _.sumBy(bookie.false, 'serviceFees')*this.data.secondLayer.feeRatio/100;
256
+            row.memberServiceFees = _.sumBy(bookie.false, 'serviceFees');
257
           }
257
           }
258
           if (bookie.true) {
258
           if (bookie.true) {
259
             row.bookieWagerFee = _.sumBy(bookie.true, (item) => {
259
             row.bookieWagerFee = _.sumBy(bookie.true, (item) => {
260
               return item.wagerServiceFees
260
               return item.wagerServiceFees
261
-            }) * this.data.secondLayer.feeRatio/100;
261
+            });
262
             console.log('eeee', bookie.true)
262
             console.log('eeee', bookie.true)
263
             row.bookieEarned = _.sumBy(bookie.true, item => {
263
             row.bookieEarned = _.sumBy(bookie.true, item => {
264
               return Math.abs(item.earned)
264
               return Math.abs(item.earned)
265
             });
265
             });
266
             console.log('bookieEarned' , row.bookieEarned)
266
             console.log('bookieEarned' , row.bookieEarned)
267
-            row.bookieServiceFees = _.sumBy(bookie.true, (item) => { return item.serviceFees})*this.data.secondLayer.feeRatio/100;
267
+            row.bookieServiceFees = _.sumBy(bookie.true, (item) => { return item.serviceFees});
268
           }
268
           }
269
           row.totalServiceFees = Number(new Decimal(row.bookieServiceFees).plus(row.memberServiceFees).plus(row.bookieWagerFee).valueOf())
269
           row.totalServiceFees = Number(new Decimal(row.bookieServiceFees).plus(row.memberServiceFees).plus(row.bookieWagerFee).valueOf())
270
           let chipsLog = _.groupBy(member.GambleMemberChipsLogs, 'type')
270
           let chipsLog = _.groupBy(member.GambleMemberChipsLogs, 'type')