Browse Source

fix agentmangment bug to zero

EthnaYeh 6 years ago
parent
commit
48fda4bd89
1 changed files with 4 additions and 1 deletions
  1. 4 1
      src/views/agnetManagement/gambleMemberManagement/index.vue

+ 4 - 1
src/views/agnetManagement/gambleMemberManagement/index.vue

@@ -236,13 +236,16 @@ export default {
236 236
 
237 237
           let chipsLog = _.groupBy(member.GambleMemberChipsLogs, 'type')
238 238
           console.log('type', chipsLog)
239
-          if (chipsLog['0']) {
239
+          if (chipsLog['0'] || chipsLog['2']) {
240 240
             row.totalUp = _.sumBy(chipsLog['0'], (item) => { 
241 241
               return item.chips > 0 ? item.chips : 0
242 242
             })
243 243
             row.totalDown = _.sumBy(chipsLog['0'], (item) => { 
244 244
               return item.chips < 0 ? item.chips : 0
245
+            }) + _.sumBy(chipsLog['2'], (item) => { 
246
+              return item.chips < 0 ? item.chips : 0
245 247
             })
248
+
246 249
           }
247 250
           row.memberCheckOut = row.totalUp + row.totalDown - row.chips
248 251
           // TODO CHECK 是否需要