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 @@
+ @@ -31,6 +32,7 @@
+ + + diff --git a/src/views/cost/shipmentStatistics/index.vue b/src/views/cost/shipmentStatistics/index.vue index e368930..5c3dfab 100644 --- a/src/views/cost/shipmentStatistics/index.vue +++ b/src/views/cost/shipmentStatistics/index.vue @@ -1,76 +1,48 @@ + + diff --git a/src/views/finance/feesStatistics/index.vue b/src/views/finance/feesStatistics/index.vue index ae7fc30..b568ca2 100644 --- a/src/views/finance/feesStatistics/index.vue +++ b/src/views/finance/feesStatistics/index.vue @@ -1,73 +1,38 @@