lilei 2 anos atrás
pai
commit
0a3140b992

+ 1 - 1
src/views/bigScreen/fPanalysisReport/index.vue

@@ -84,7 +84,7 @@ export default {
   },
   created () {
 	  this.$nextTick(() => {
-		  this.$tv.requestFocus(this.$refs.curTab1)
+		  this.$tv.requestFocus(this.$refs.curTab2)
 	  })
   },
   mounted () {},

+ 1 - 2
src/views/bigScreen/fPanalysisReport/right-bottom.vue

@@ -60,7 +60,7 @@ export default {
       list: [],
       pageflag: true,
       timer: null,
-      queryType: 'qty'
+      queryType: 'amount'
     }
   },
   created () {
@@ -94,7 +94,6 @@ export default {
       this.timer = setInterval(looper, this.$store.state.setting.echartsAutoTime)
     },
     getData () {
-      this.list = []
       const date = new Date().getFullYear() + '-01-01'
       queryProductPurchase({ queryDate: date, queryType: this.queryType }).then(res => {
         if (res.status == 200) {

+ 7 - 5
src/views/bigScreen/realTimeSalesReport/center-bottom.vue

@@ -39,7 +39,7 @@ export default {
           const ret = { category: [], barData: [] }
           res.data.map(item => {
             ret.category.push(item.productBrandName)
-            ret.barData.push(item.resultAmount)
+            ret.barData.push((item.resultAmount / 1000).toFixed(2))
           })
           this.$nextTick(() => {
             this.init(ret)
@@ -87,7 +87,7 @@ export default {
                   item.seriesName +
                   ' : ' +
                   item.value +
-                  '元</br>'
+                  '元</br>'
               } else {
                 result += item.marker + ' ' + item.seriesName + ' :  0 </br>'
               }
@@ -103,7 +103,7 @@ export default {
           top: '0'
         },
         grid: {
-          left: '80px',
+          left: '50px',
           right: '10px',
           bottom: '30px',
           top: '30px'
@@ -123,13 +123,15 @@ export default {
           {
             splitLine: { show: false },
             axisLine: {
+              show: true,
               lineStyle: {
                 color: '#B4B4B4'
               }
             },
             axisLabel: {
-              formatter: '{value}'
-            }
+              formatter: '{value}万'
+            },
+            name: '销售额'
           }
         ],
         series: [

+ 3 - 3
src/views/bigScreen/realTimeSalesReport/left-bottom.vue

@@ -1,6 +1,6 @@
 <template>
   <div class="left-bottom">
-    <dv-capsule-chart :config="config" style="width:96%;height:505px" />
+    <dv-capsule-chart :config="config" style="width:98%;height:505px" />
   </div>
 </template>
 
@@ -12,7 +12,7 @@ export default {
       gatewayno: '',
       config: {
         showValue: true,
-        unit: '元',
+        unit: '元',
         data: []
       },
       timer: null
@@ -54,7 +54,7 @@ export default {
           res.data.map(item => {
             ret.push({
               name: item.provinceName,
-              value: item.resultAmount
+              value: (item.resultAmount / 1000).toFixed(2)
             })
           })
           this.config = {