bucket 6 years ago
parent
commit
4e1cfdbe84

+ 1 - 1
src/api/agnetManagement.js

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

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

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