|
@@ -177,7 +177,6 @@ export default {
|
177
|
177
|
this.allCombine = []
|
178
|
178
|
this.combine = []
|
179
|
179
|
await fetchMemberList(this.data.secondLayer, this.listQuery).then(response => {
|
180
|
|
- console.log('response', response)
|
181
|
180
|
response.data.rows.map(member => {
|
182
|
181
|
let row = {
|
183
|
182
|
id: member.id,
|
|
@@ -200,7 +199,6 @@ export default {
|
200
|
199
|
memberCheckOut: 0,
|
201
|
200
|
feeRatio: new Decimal(this.data.secondLayer.feeRatio/100),
|
202
|
201
|
}
|
203
|
|
- console.log('www', response)
|
204
|
202
|
let bookie = _.groupBy(member['GambleGame-Bucket-MemberRecords'], 'isBookie')
|
205
|
203
|
if (bookie.false) {
|
206
|
204
|
row.memberEarned = _.sumBy(bookie.false, item => {
|
|
@@ -228,7 +226,7 @@ export default {
|
228
|
226
|
row.effectiveTotal = _.sumBy(member['GambleGame-Bucket-RoundRecords'], item => {
|
229
|
227
|
return item.used_quota
|
230
|
228
|
}) + row.memberEarned
|
231
|
|
-
|
|
229
|
+
|
232
|
230
|
row.totalServiceFees = Number(new Decimal(row.bookieServiceFees).plus(row.memberServiceFees).plus(row.bookieWagerFee).times(row.feeRatio).valueOf())
|
233
|
231
|
let chipsLog = _.groupBy(member.GambleMemberChipsLogs, 'type')
|
234
|
232
|
// console.log('type', chipsLog)
|