Browse Source

add bookie column

ethan 6 years ago
parent
commit
e610502687
2 changed files with 10 additions and 0 deletions
  1. 5 0
      src/views/gambleGameBucket/detail/index.vue
  2. 5 0
      src/views/room/detail/index.vue

+ 5 - 0
src/views/gambleGameBucket/detail/index.vue

65
               <div>{{scope.row.currentChips}}</div>
65
               <div>{{scope.row.currentChips}}</div>
66
             </template>
66
             </template>
67
           </el-table-column>  
67
           </el-table-column>  
68
+          <el-table-column label="閒家輸贏" prop="effectiveWagger"></el-table-column>          
69
+          <el-table-column label="閒家抽水" prop="effectiveServiceFees"></el-table-column>
68
         </el-table-column>             
70
         </el-table-column>             
69
       </el-table-column>                   
71
       </el-table-column>                   
70
     </el-table>
72
     </el-table>
320
         this.bookie[0].effectiveWagger = _.sumBy(this.detail, item => {
322
         this.bookie[0].effectiveWagger = _.sumBy(this.detail, item => {
321
           return Math.abs(item.MemberRecord.earned) ;
323
           return Math.abs(item.MemberRecord.earned) ;
322
         })
324
         })
325
+        this.bookie[0].effectiveServiceFees = _.sumBy(this.detail, item => {
326
+          return Math.abs(item.MemberRecord.serviceFees) ;
327
+        })
323
         console.log('ssss', this.detail)
328
         console.log('ssss', this.detail)
324
         this.bookie[0].currentChips = Number(this.bookie[0].MemberRecord.currentChips) + Number(this.bookie[0].MemberRecord.chips)
329
         this.bookie[0].currentChips = Number(this.bookie[0].MemberRecord.currentChips) + Number(this.bookie[0].MemberRecord.chips)
325
         this.bookie[0].bookieResult = this.bookie[0].MemberRecord.earned - this.bookie[0].MemberRecord.serviceFees - this.bookie[0].MemberRecord.wagerServiceFees -this.bookie[0].MemberRecord.FixedServiceFees
330
         this.bookie[0].bookieResult = this.bookie[0].MemberRecord.earned - this.bookie[0].MemberRecord.serviceFees - this.bookie[0].MemberRecord.wagerServiceFees -this.bookie[0].MemberRecord.FixedServiceFees

+ 5 - 0
src/views/room/detail/index.vue

65
               <div>{{scope.row.currentChips}}</div>
65
               <div>{{scope.row.currentChips}}</div>
66
             </template>
66
             </template>
67
           </el-table-column>  
67
           </el-table-column>  
68
+          <el-table-column label="閒家輸贏" prop="effectiveWagger"></el-table-column>          
69
+          <el-table-column label="閒家抽水" prop="effectiveServiceFees"></el-table-column>
68
         </el-table-column>             
70
         </el-table-column>             
69
       </el-table-column>                   
71
       </el-table-column>                   
70
     </el-table>
72
     </el-table>
321
         this.bookie[0].effectiveWagger = _.sumBy(this.detail, item => {
323
         this.bookie[0].effectiveWagger = _.sumBy(this.detail, item => {
322
           return Math.abs(item.MemberRecord.earned) ;
324
           return Math.abs(item.MemberRecord.earned) ;
323
         })
325
         })
326
+        this.bookie[0].effectiveServiceFees = _.sumBy(this.detail, item => {
327
+          return Math.abs(item.MemberRecord.serviceFees) ;
328
+        })
324
         console.log('ssss', this.detail)
329
         console.log('ssss', this.detail)
325
         this.bookie[0].currentChips = Number(this.bookie[0].MemberRecord.currentChips) + Number(this.bookie[0].MemberRecord.chips)
330
         this.bookie[0].currentChips = Number(this.bookie[0].MemberRecord.currentChips) + Number(this.bookie[0].MemberRecord.chips)
326
         this.bookie[0].bookieResult = this.bookie[0].MemberRecord.earned - this.bookie[0].MemberRecord.serviceFees - this.bookie[0].MemberRecord.wagerServiceFees -this.bookie[0].MemberRecord.FixedServiceFees
331
         this.bookie[0].bookieResult = this.bookie[0].MemberRecord.earned - this.bookie[0].MemberRecord.serviceFees - this.bookie[0].MemberRecord.wagerServiceFees -this.bookie[0].MemberRecord.FixedServiceFees