From 17dae88049b0a1023c4add8aa2348f911e313d85 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=BE=99=E8=BF=90=E6=A8=A1?= <1724894114@qq.com> Date: Tue, 10 Sep 2024 18:01:12 +0800 Subject: [PATCH] =?UTF-8?q?=E6=96=B0=E5=A2=9E=E8=B4=B9=E7=94=A8=E6=B1=87?= =?UTF-8?q?=E6=80=BB?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/model/finance.js | 7 + src/components/scEcharts/index.vue | 6 +- src/components/scSearch/index.vue | 2 + src/layout/components/userbar.vue | 18 +- src/layout/index.vue | 1 - src/style/app.scss | 3 +- src/views/cost/feeRecords/index.vue | 4 +- .../shipmentStatistics/components/table.vue | 97 +++++ src/views/cost/shipmentStatistics/index.vue | 376 ++++++++---------- .../feesStatistics/components/table.vue | 96 +++++ src/views/finance/feesStatistics/index.vue | 337 ++++++---------- src/views/home/widgets/components/echarts.vue | 2 +- src/views/setting/company/index.vue | 39 +- 13 files changed, 546 insertions(+), 442 deletions(-) create mode 100644 src/views/cost/shipmentStatistics/components/table.vue create mode 100644 src/views/finance/feesStatistics/components/table.vue diff --git a/src/api/model/finance.js b/src/api/model/finance.js index f3127cf..f555665 100644 --- a/src/api/model/finance.js +++ b/src/api/model/finance.js @@ -73,5 +73,12 @@ export default { return await http.post(this.url,params,{'Content-Type': 'multipart/form-data'}); } }, + summary:{ + url: `${config.API_URL}/cost.summary.list`, + name: "成本汇总", + post: async function (params) { + return await http.post(this.url, params); + } + } }, }; diff --git a/src/components/scEcharts/index.vue b/src/components/scEcharts/index.vue index 9e2112c..8819cd0 100644 --- a/src/components/scEcharts/index.vue +++ b/src/components/scEcharts/index.vue @@ -27,7 +27,9 @@ option: { deep:true, handler (v) { - unwarp(this.myChart).setOption(v); + if(unwarp(this.myChart)){ + unwarp(this.myChart).setOption(v); + } } } }, @@ -54,7 +56,7 @@ }, methods: { draw(){ - var myChart = echarts.init(this.$refs.scEcharts, 'T'); + const myChart = echarts.init(this.$refs.scEcharts, 'T'); myChart.setOption(this.myOptions); this.myChart = myChart; window.addEventListener('resize', () => myChart.resize()); diff --git a/src/components/scSearch/index.vue b/src/components/scSearch/index.vue index ebd2dba..3d1f114 100644 --- a/src/components/scSearch/index.vue +++ b/src/components/scSearch/index.vue @@ -12,6 +12,7 @@