bucket 6 gadi atpakaļ
vecāks
revīzija
4e1cfdbe84

+ 1 - 1
src/api/agnetManagement.js

@@ -19,7 +19,7 @@ export function createAgent(data) {
19 19
     url: '/agents',
20 20
     method: 'post',
21 21
     data: {
22
-      name: `101俱樂部_推推_代理商_OA01_${data.name}`,
22
+      name: `101俱樂部_推推_代理商_0001_${data.name}`,
23 23
       feeRatio: data.feeRatio
24 24
     }
25 25
   })

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

@@ -262,7 +262,7 @@ export default {
262 262
           allDown: _.sumBy(this.combine, 'totalDown'),
263 263
           allChips: _.sumBy(this.combine, 'chips'),
264 264
           allEarned: _.sumBy(this.combine, (item) => {return item.bookieEarned + item.memberEarned}),
265
-          allServiceFees: _.sumBy(this.combine, (item) => {return item.totalServiceFees }),
265
+          allServiceFees: _.sumBy(this.combine, (item) => {return item.totalServiceFees }).toFixed(2),
266 266
         })
267 267
         this.listLoading = false
268 268
       })
@@ -333,11 +333,11 @@ export default {
333 333
             sums[index] = values.reduce((prev, curr) => {
334 334
               const value = Number(curr);
335 335
               if (!isNaN(value)) {
336
-                return prev + curr;
336
+                return new Decimal(prev).plus(curr);
337 337
               } else {
338
-                return prev;
338
+                return new Decimal(prev);
339 339
               }
340
-            }, 0);
340
+            }, 0).valueOf();
341 341
             sums[index];
342 342
           } else {
343 343
             sums[index] = 'N/A';