|
|
|
|
27
|
<span>{{`${scope.row.DealingRecord.point1} | ${scope.row.DealingRecord.point2} / ${point(scope.row.DealingRecord)}`}}</span>
|
27
|
<span>{{`${scope.row.DealingRecord.point1} | ${scope.row.DealingRecord.point2} / ${point(scope.row.DealingRecord)}`}}</span>
|
28
|
</template>
|
28
|
</template>
|
29
|
</el-table-column>
|
29
|
</el-table-column>
|
30
|
- <el-table-column label="上莊分數" prop="bidChips"></el-table-column>
|
|
|
|
|
30
|
+ <el-table-column label="上莊分數" prop="bidChips"></el-table-column>
|
|
|
31
|
+ <el-table-column label="有效下注量">
|
|
|
32
|
+ <template slot-scope="scope">
|
|
|
33
|
+ <div :style="moneyColor(scope.row.effectiveWagger)">{{scope.row.effectiveWagger}}</div>
|
|
|
34
|
+ </template>
|
|
|
35
|
+ </el-table-column>
|
31
|
<el-table-column label="莊輸贏">
|
36
|
<el-table-column label="莊輸贏">
|
32
|
<template slot-scope="scope">
|
37
|
<template slot-scope="scope">
|
33
|
<div :style="moneyColor(scope.row.MemberRecord.earned)">{{scope.row.MemberRecord.earned}}</div>
|
38
|
<div :style="moneyColor(scope.row.MemberRecord.earned)">{{scope.row.MemberRecord.earned}}</div>
|
|
|
|
|
79
|
</el-table-column>
|
84
|
</el-table-column>
|
80
|
</el-table-column>
|
85
|
</el-table-column>
|
81
|
</el-table>
|
86
|
</el-table>
|
82
|
- <el-table :data="bookie" v-loading.body="listLoading" element-loading-text="Loading" border fit highlight-current-row
|
|
|
83
|
- style="width: 100%">
|
|
|
84
|
- <el-table-column label="莊家紀錄" align="center">
|
|
|
85
|
- <el-table-column label="莊家" prop="MemberRecord.GambleMember.name"></el-table-column>
|
|
|
86
|
- <el-table-column label="點數">
|
|
|
87
|
- <template slot-scope="scope">
|
|
|
88
|
- <span>{{`${scope.row.DealingRecord.point1} | ${scope.row.DealingRecord.point2} / ${point(scope.row.DealingRecord)}`}}</span>
|
|
|
89
|
- </template>
|
|
|
90
|
- </el-table-column>
|
|
|
91
|
- <el-table-column label="上莊分數" prop="bidChips"></el-table-column>
|
|
|
92
|
- <el-table-column label="莊輸贏">
|
|
|
93
|
- <template slot-scope="scope">
|
|
|
94
|
- <div :style="moneyColor(scope.row.MemberRecord.earned)">{{scope.row.MemberRecord.earned}}</div>
|
|
|
95
|
- </template>
|
|
|
96
|
- </el-table-column>
|
|
|
97
|
- <el-table-column label="抽水" prop="MemberRecord.serviceFees"></el-table-column>
|
|
|
98
|
- <el-table-column prop="ass" label="服務費">
|
|
|
99
|
- </el-table-column>
|
|
|
100
|
- </el-table-column>
|
|
|
101
|
- </el-table>
|
|
|
102
|
<el-table :data="detail" :span-method="objectSpanMethod" v-loading.body="listLoading" element-loading-text="Loading" border fit highlight-current-row
|
87
|
<el-table :data="detail" :span-method="objectSpanMethod" v-loading.body="listLoading" element-loading-text="Loading" border fit highlight-current-row
|
103
|
style="width: 100%">
|
88
|
style="width: 100%">
|
104
|
<el-table-column label="此關結果" align="center">
|
89
|
<el-table-column label="此關結果" align="center">
|
|
|
|
|
283
|
record.MemberRecord.door === -1 &&
|
268
|
record.MemberRecord.door === -1 &&
|
284
|
record.MemberRecord.door === record.DealingRecord.door
|
269
|
record.MemberRecord.door === record.DealingRecord.door
|
285
|
})
|
270
|
})
|
|
|
271
|
+ console.log('this', this.bookie)
|
286
|
this.bidChips ? this.bookie[0].bidChips = this.bidChips : false
|
272
|
this.bidChips ? this.bookie[0].bidChips = this.bidChips : false
|
287
|
this.group = _.groupBy(detailTemp, record => {
|
273
|
this.group = _.groupBy(detailTemp, record => {
|
288
|
return record.MemberRecord.GambleMember.name
|
274
|
return record.MemberRecord.GambleMember.name
|
|
|
|
|
292
|
this.detail = this.group.reduce((arr, element) => {
|
278
|
this.detail = this.group.reduce((arr, element) => {
|
293
|
return arr.concat(element)
|
279
|
return arr.concat(element)
|
294
|
}, [])
|
280
|
}, [])
|
|
|
281
|
+
|
|
|
282
|
+ this.bookie[0].effectiveWagger = _.sumBy(this.detail, item => {
|
|
|
283
|
+ return Math.abs(item.MemberRecord.earned);
|
|
|
284
|
+ })
|
|
|
285
|
+ console.log('bookie', this.bookie[0].effectiveWagger)
|
295
|
this.group.map((item, itemIndex) => {
|
286
|
this.group.map((item, itemIndex) => {
|
296
|
let totalChips = 0
|
287
|
let totalChips = 0
|
297
|
item.map((person, personIndex) => {
|
288
|
item.map((person, personIndex) => {
|