Browse Source

fix earned display

EthnaYeh 6 years ago
parent
commit
0c141a9661
1 changed files with 2 additions and 2 deletions
  1. 2 2
      src/views/gambleGameBucket/detail/index.vue

+ 2 - 2
src/views/gambleGameBucket/detail/index.vue

95
         </el-table-column>
95
         </el-table-column>
96
         <el-table-column label="輸贏">
96
         <el-table-column label="輸贏">
97
           <template slot-scope="scope">
97
           <template slot-scope="scope">
98
-            <div :style="moneyColor(scope.row.MemberRecord.earned)">{{scope.row.MemberRecord.earned}}</div>
98
+            <div :style="moneyColor(scope.row.MemberRecord.earned)">{{scope.row.MemberRecord.earned - scope.row.MemberRecord.serviceFees}}</div>
99
           </template>
99
           </template>
100
         </el-table-column>
100
         </el-table-column>
101
         <el-table-column prop="MemberRecord.serviceFees" label="抽水">
101
         <el-table-column prop="MemberRecord.serviceFees" label="抽水">
265
         this.group.map((item, itemIndex) => {
265
         this.group.map((item, itemIndex) => {
266
           let totalChips = 0
266
           let totalChips = 0
267
           item.map((person, personIndex) => {
267
           item.map((person, personIndex) => {
268
-            totalChips += person.MemberRecord.earned
268
+            totalChips = totalChips + person.MemberRecord.earned - person.MemberRecord.serviceFees
269
             item.length - 1 === personIndex ? this.detail[this._sum(itemIndex)].totalChips = totalChips : false
269
             item.length - 1 === personIndex ? this.detail[this._sum(itemIndex)].totalChips = totalChips : false
270
           })
270
           })
271
         })
271
         })