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