Merge branch 'release/3.0' into 'release/3.1'
Release/3.0 See merge request !34
Showing
4 changed files
with
42 additions
and
2 deletions
@@ -69,10 +69,26 @@ export default { | @@ -69,10 +69,26 @@ export default { | ||
69 | return _.pickBy(params, val => val); | 69 | return _.pickBy(params, val => val); |
70 | }, | 70 | }, |
71 | search() { | 71 | search() { |
72 | + let sumParams = { | ||
73 | + balanceId: +this.filters.balanceId.model, | ||
74 | + brandId: +this.filters.brandId.model, | ||
75 | + orderCode: +this.filters.orderCode.model, | ||
76 | + status: +this.filters.status.model, | ||
77 | + productSku: +this.filters.sku.model | ||
78 | + }; | ||
79 | + | ||
72 | this.FinanceService.balanceDetail(this.filterValues()).then(ret => { | 80 | this.FinanceService.balanceDetail(this.filterValues()).then(ret => { |
73 | this.tableData = _.get(ret, 'data.records', []); | 81 | this.tableData = _.get(ret, 'data.records', []); |
74 | this.pageData.total = _.get(ret, 'data.totalCount', 0); | 82 | this.pageData.total = _.get(ret, 'data.totalCount', 0); |
75 | this.pageData.pageNo = _.get(ret, 'data.pageNo', 1); | 83 | this.pageData.pageNo = _.get(ret, 'data.pageNo', 1); |
84 | + | ||
85 | + this.FinanceService.balanceDetailSum(_.pickBy(sumParams, val => val)).then(result => { | ||
86 | + this.tableData.push({ | ||
87 | + sellTypeDesc: '总计', | ||
88 | + salesNums: result.data.sumNums, | ||
89 | + clearingPrice: result.data.sumAmount | ||
90 | + }); | ||
91 | + }); | ||
76 | }); | 92 | }); |
77 | }, | 93 | }, |
78 | reset() { | 94 | reset() { |
@@ -54,10 +54,24 @@ export default { | @@ -54,10 +54,24 @@ export default { | ||
54 | return _.pickBy(params, val => val); | 54 | return _.pickBy(params, val => val); |
55 | }, | 55 | }, |
56 | search() { | 56 | search() { |
57 | + let sumParams = { | ||
58 | + balanceId: +this.filters.balanceId.model, | ||
59 | + brandId: +this.filters.brandId.model, | ||
60 | + productSku: +this.filters.sku.model | ||
61 | + }; | ||
62 | + | ||
57 | this.FinanceService.settlementList(this.filterValues()).then(ret => { | 63 | this.FinanceService.settlementList(this.filterValues()).then(ret => { |
58 | this.tableData = _.get(ret, 'data.records', []); | 64 | this.tableData = _.get(ret, 'data.records', []); |
59 | this.pageData.total = _.get(ret, 'data.totalCount', 0); | 65 | this.pageData.total = _.get(ret, 'data.totalCount', 0); |
60 | this.pageData.pageNo = _.get(ret, 'data.pageNo', 1); | 66 | this.pageData.pageNo = _.get(ret, 'data.pageNo', 1); |
67 | + | ||
68 | + this.FinanceService.settlementListSum(_.pickBy(sumParams, val => val)).then(result => { | ||
69 | + this.tableData.push({ | ||
70 | + agencyTypeDesc: '总计', | ||
71 | + salesNums: result.data.sumNums, | ||
72 | + salesAmount: result.data.sumAmount | ||
73 | + }); | ||
74 | + }); | ||
61 | }); | 75 | }); |
62 | }, | 76 | }, |
63 | reset() { | 77 | reset() { |
@@ -5,7 +5,9 @@ let apiUrl = { | @@ -5,7 +5,9 @@ let apiUrl = { | ||
5 | balanceDetail: '/erp/balanceDetail', | 5 | balanceDetail: '/erp/balanceDetail', |
6 | settlementList: '/erp/settlementList', | 6 | settlementList: '/erp/settlementList', |
7 | inventoryLedgerList: '/erp/inventoryLedgerList', | 7 | inventoryLedgerList: '/erp/inventoryLedgerList', |
8 | - exportBalanceList: '/erp/exportBalanceList' | 8 | + exportBalanceList: '/erp/exportBalanceList', |
9 | + balanceDetailSum: '/erp/balanceDetailSum', | ||
10 | + settlementListSum: '/erp/settlementListSum' | ||
9 | }; | 11 | }; |
10 | 12 | ||
11 | class FinanceService extends Service { | 13 | class FinanceService extends Service { |
@@ -29,5 +31,11 @@ class FinanceService extends Service { | @@ -29,5 +31,11 @@ class FinanceService extends Service { | ||
29 | inventoryLedgerList(params) { | 31 | inventoryLedgerList(params) { |
30 | return this.post(apiUrl.inventoryLedgerList, params); | 32 | return this.post(apiUrl.inventoryLedgerList, params); |
31 | } | 33 | } |
34 | + balanceDetailSum(params) { | ||
35 | + return this.post(apiUrl.balanceDetailSum, params); | ||
36 | + } | ||
37 | + settlementListSum(params) { | ||
38 | + return this.post(apiUrl.settlementListSum, params); | ||
39 | + } | ||
32 | } | 40 | } |
33 | export default FinanceService; | 41 | export default FinanceService; |
@@ -47,7 +47,9 @@ let domainApis = { | @@ -47,7 +47,9 @@ let domainApis = { | ||
47 | inventoryLedgerList: '/erp-shop-web/inventoryLedger/list', | 47 | inventoryLedgerList: '/erp-shop-web/inventoryLedger/list', |
48 | exportBalanceList: '/erp-shop-web/export/exportBalanceList', | 48 | exportBalanceList: '/erp-shop-web/export/exportBalanceList', |
49 | exportSettlementDetail: '/erp-shop-web/export/exportSettlementDetail', | 49 | exportSettlementDetail: '/erp-shop-web/export/exportSettlementDetail', |
50 | - exportBalanceDetail: '/erp-shop-web/export/exportBalanceDetail' | 50 | + exportBalanceDetail: '/erp-shop-web/export/exportBalanceDetail', |
51 | + balanceDetailSum: '/erp-shop-web/financeBill/balanceDetailSum', | ||
52 | + settlementListSum: '/erp-shop-web/financeBill/settlementListSum' | ||
51 | }, | 53 | }, |
52 | platform: { | 54 | platform: { |
53 | queryShopsByAdminPid: '/SellerShopController/queryShopsByAdminPid', | 55 | queryShopsByAdminPid: '/SellerShopController/queryShopsByAdminPid', |
-
Please register or login to post a comment