Browse Source

订单统计图标数字显示

fenghaifu 2 years ago
parent
commit
0402f85e3c

+ 7 - 5
src/views/reportForms/order-statistics/chart/external/customerChart.vue

@@ -56,8 +56,8 @@ export default {
             // console.log('部门统计图数据', res.result)
             res.result.forEach(item => {
               this.ccusNameArr.push(item.ccusName)
-              this.iquantityArr.push(item.iquantity)
-              this.inatMoneyArr.push(item.inatMoney)
+              this.iquantityArr.push(parseFloat(item.iquantity))
+              this.inatMoneyArr.push(parseFloat(item.inatMoney))
             })
             // console.log('部门三数组', this.ccusNameArr, this.iquantityArr, this.inatMoneyArr)
           }
@@ -78,8 +78,8 @@ export default {
           // console.log('客户统计图数据', res.result)
           res.result.forEach(item => {
             this.ccusNameArr.push(item.ccusName)
-            this.iquantityArr.push(item.iquantity)
-            this.inatMoneyArr.push(item.inatMoney)
+            this.iquantityArr.push(parseFloat(item.iquantity))
+            this.inatMoneyArr.push(parseFloat(item.inatMoney))
           })
           // console.log('三数组', this.ccusNameArr, this.iquantityArr, this.inatMoneyArr)
         }
@@ -153,7 +153,7 @@ export default {
             // max: 100000,
             // interval: 10000,
             axisLabel: {
-              // formatter: '{value} ml'
+              //formatter: '{value} ml'
             }
           },
           {
@@ -171,6 +171,7 @@ export default {
           {
             name: '实际数量',
             type: 'bar',
+            itemStyle : { normal: {label : {show: true}}},
             // tooltip: {
             //   valueFormatter: function(value) {
             //     // return value + ' ml';
@@ -192,6 +193,7 @@ export default {
           {
             name: '本币金额',
             type: 'line',
+            itemStyle : { normal: {label : {show: true}}},
             tooltip: {
               // valueFormatter: function(value) {
               //   // return value + ' ml'

+ 7 - 5
src/views/reportForms/order-statistics/chart/external/departmentChart.vue

@@ -56,8 +56,8 @@ export default {
             // console.log('部门统计图数据', res.result)
             res.result.forEach(item => {
               this.cdepNameArr.push(item.cdepName)
-              this.iquantityArr.push(item.iquantity)
-              this.inatMoneyArr.push(item.inatMoney)
+              this.iquantityArr.push(parseFloat(item.iquantity))
+              this.inatMoneyArr.push(parseFloat(item.inatMoney))
             })
             // console.log('部门三数组', this.cdepNameArr, this.iquantityArr, this.inatMoneyArr)
           }
@@ -78,8 +78,8 @@ export default {
           // console.log('部门统计图数据', res.result)
           res.result.forEach(item => {
             this.cdepNameArr.push(item.cdepName)
-            this.iquantityArr.push(item.iquantity)
-            this.inatMoneyArr.push(item.inatMoney)
+            this.iquantityArr.push(parseFloat(item.iquantity))
+            this.inatMoneyArr.push(parseFloat(item.inatMoney))
           })
           // console.log('部门三数组', this.cdepNameArr, this.iquantityArr, this.inatMoneyArr)
         }
@@ -175,7 +175,8 @@ export default {
             //   }
             // },
             itemStyle: {
-              color: 'orange'
+              color: 'orange',
+              normal: {label : {show: true}}
               // normal:{
               // 颜色:  function ( params )  {
               //     	//注意,如果颜色太少,后面的颜色不会自动循环。最好再定义几个颜色
@@ -190,6 +191,7 @@ export default {
           {
             name: '本币金额',
             type: 'line',
+            itemStyle : { normal: {label : {show: true}}},
             tooltip: {
               // valueFormatter: function(value) {
               //   // return value + ' ml'

+ 1 - 21
src/views/reportForms/order-statistics/external-statistics.vue

@@ -130,27 +130,7 @@ export default {
           className: 'replacecolor'
         },
         {
-          title: '供应商分类',
-          width: 120,
-          dataIndex: 'ccusCode',
-          className: 'replacecolor'
-          // customRender: function(text) {
-          //   if (text == '1') {
-          //     return '销售类型1'
-          //   }
-          //   if (text == '2') {
-          //     return '销售类型2'
-          //   }
-          //   if (text == '3') {
-          //     return '销售类型3'
-          //   }
-          //   if (text == '4') {
-          //     return '销售类型4'
-          //   }
-          // }
-        },
-        {
-          title: '供应商',
+          title: '客户',
           width: 140,
           dataIndex: 'cvenAbbName',
           className: 'replacecolor'

+ 1 - 21
src/views/reportForms/order-statistics/interior-statistics.vue

@@ -133,27 +133,7 @@ export default {
           className: 'replacecolor'
         },
         {
-          title: '供应商分类',
-          width: 120,
-          dataIndex: 'ccusCode',
-          className: 'replacecolor'
-          // customRender: function(text) {
-          //   if (text == '1') {
-          //     return '销售类型1'
-          //   }
-          //   if (text == '2') {
-          //     return '销售类型2'
-          //   }
-          //   if (text == '3') {
-          //     return '销售类型3'
-          //   }
-          //   if (text == '4') {
-          //     return '销售类型4'
-          //   }
-          // }
-        },
-        {
-          title: '供应商',
+          title: '客户',
           width: 140,
           dataIndex: 'cvenAbbName',
           className: 'replacecolor'