lilei 3 ngày trước cách đây
mục cha
commit
67e2bc281f

+ 4 - 5
src/views/reportData/billingStatistics/customerCountList.vue

@@ -238,12 +238,11 @@ export default {
       this.columns = _this.tableTitle.list
       this.countLabel = _this.tableTitle.count
       this.columns.map(item => {
-        item.titleNum = item.title
-        const mw = item.customRender == 'amount' ? 15 : 17
-        const textLen = typeof item.title === 'string' ? item.title.length : (item.title.children && item.title.children[0].text && item.title.children[0].text.length)
+        const mw = item.type == 'amount' ? 15 : 17
+        const textLen = typeof item.title === 'string' ? item.title.length : item.txtLen
         const w = textLen * mw
         const tw = w <= 80 ? mw * 5 : w
-        if (item.customRender == 'amount') {
+        if (item.type == 'amount') {
           if (item.colour && item.colour === 'red') {
             item.title = <span style="color:red;">{ item.title }</span>
             item.customRender = (text) => { return <span style="color:red;">{(text || text == 0) ? _this.toThousands(text) : '--'}</span> }
@@ -343,7 +342,7 @@ export default {
       params.removeReportFlag = this.removeReportFlag
       _this.exportLoading = true
       _this.spinning = true
-      hdExportExcel(salesStatsDealerExport, params, '开单统计报表(客户)', function () {
+      hdExportExcel(salesStatsDealerExport, params, this.removeReportFlag == 0 ? '开单统计报表(客户)' : '未统计销售退货(客户)', function () {
         _this.exportLoading = false
         _this.spinning = false
       })

+ 81 - 70
src/views/reportData/billingStatistics/dataCustomer.js

@@ -1,21 +1,21 @@
 export default {
     'count': [
       {
-        'customRender': 'amount',
+        'type': 'amount',
         'dataIndex': 'jplqq',
         'title': '箭牌滤清器',
         'align': 'right',
         'key': 'jplqq'
       },
       {
-        'customRender': 'amount',
+        'type': 'amount',
         'dataIndex': 'jpbsxlqq',
         'title': '箭牌变速箱滤清器',
         'align': 'right',
         'key': 'jpbsxlqq'
       },
       {
-        'customRender': 'amount',
+        'type': 'amount',
         'dataIndex': 'gplqq',
         'title': '冠牌滤清器',
         'align': 'right',
@@ -23,28 +23,28 @@ export default {
       },
       {
         'colour': 'red',
-        'customRender': 'amount',
+        'type': 'amount',
         'dataIndex': 'lqqhj',
         'title': '滤清器合计',
         'align': 'right',
         'key': 'lqqhj'
       },
       {
-        'customRender': 'amount',
+        'type': 'amount',
         'dataIndex': 'jpygp',
         'title': '箭牌雨刮片',
         'align': 'right',
         'key': 'jpygp'
       },
       {
-        'customRender': 'amount',
+        'type': 'amount',
         'dataIndex': 'jpyyygp',
         'title': '箭牌雨燕雨刮片',
         'align': 'right',
         'key': 'jpyyygp'
       },
       {
-        'customRender': 'amount',
+        'type': 'amount',
         'dataIndex': 'gpygp',
         'title': '冠牌雨刮片',
         'align': 'right',
@@ -52,7 +52,7 @@ export default {
       },
       {
         'colour': 'red',
-        'customRender': 'amount',
+        'type': 'amount',
         'dataIndex': 'ygphj',
         'title': '雨刮片合计',
         'align': 'right',
@@ -60,56 +60,56 @@ export default {
       },
       {
         'colour': 'red',
-        'customRender': 'amount',
+        'type': 'amount',
         'dataIndex': 'jplb',
         'title': '箭牌喇叭',
         'align': 'right',
         'key': 'jplb'
       },
       {
-        'customRender': 'amount',
+        'type': 'amount',
         'dataIndex': 'jpscp',
         'title': '箭牌刹车片',
         'align': 'right',
         'key': 'jpscp'
       },
       {
-        'customRender': 'amount',
+        'type': 'amount',
         'dataIndex': 'tbujpgyx',
         'title': 'TBU+箭牌感应线',
         'align': 'right',
         'key': 'tbujpgyx'
       },
       {
-        'customRender': 'amount',
+        'type': 'amount',
         'dataIndex': 'gpscp',
         'title': '冠牌刹车片',
         'align': 'right',
         'key': 'gpscp'
       },
       {
-        'customRender': 'amount',
+        'type': 'amount',
         'dataIndex': 'tbuscp',
         'title': 'TBU刹车片',
         'align': 'right',
         'key': 'tbuscp'
       },
       {
-        'customRender': 'amount',
+        'type': 'amount',
         'dataIndex': 'tbuzhscp',
         'title': 'TBU至惠刹车片',
         'align': 'right',
         'key': 'tbuzhscp'
       },
       {
-        'customRender': 'amount',
+        'type': 'amount',
         'dataIndex': 'tbuscy',
         'title': 'TBU刹车油',
         'align': 'right',
         'key': 'tbuscy'
       },
       {
-        'customRender': 'amount',
+        'type': 'amount',
         'dataIndex': 'tubpscp',
         'title': 'TBU-P刹车盘',
         'align': 'right',
@@ -117,21 +117,21 @@ export default {
       },
       {
         'colour': 'red',
-        'customRender': 'amount',
+        'type': 'amount',
         'dataIndex': 'scphj',
         'title': '刹车片合计',
         'align': 'right',
         'key': 'scphj'
       },
       {
-        'customRender': 'amount',
+        'type': 'amount',
         'dataIndex': 'hjxdc',
         'title': '汇箭蓄电池',
         'align': 'right',
         'key': 'hjxdc'
       },
       {
-        'customRender': 'amount',
+        'type': 'amount',
         'dataIndex': 'brsxdc',
         'title': '布瑞斯蓄电池',
         'align': 'right',
@@ -139,42 +139,42 @@ export default {
       },
       {
         'colour': 'red',
-        'customRender': 'amount',
+        'type': 'amount',
         'dataIndex': 'xdchj',
         'title': '蓄电池合计',
         'align': 'right',
         'key': 'xdchj'
       },
       {
-        'customRender': 'amount',
+        'type': 'amount',
         'dataIndex': 'dlsjy',
         'title': '德路斯机油',
         'align': 'right',
         'key': 'dlsjy'
       },
       {
-        'customRender': 'amount',
+        'type': 'amount',
         'dataIndex': 'dlsbsxy',
         'title': '德路斯变速箱油',
         'align': 'right',
         'key': 'dlsbsxy'
       },
       {
-        'customRender': 'amount',
+        'type': 'amount',
         'dataIndex': 'dlsscy',
         'title': '德路斯刹车油',
         'align': 'right',
         'key': 'dlsscy'
       },
       {
-        'customRender': 'amount',
+        'type': 'amount',
         'dataIndex': 'dlsqcyhcp',
         'title': '德路斯汽车养护产品',
         'align': 'right',
         'key': 'dlsqcyhcp'
       },
       {
-        'customRender': 'amount',
+        'type': 'amount',
         'dataIndex': 'krxjy',
         'title': '科润星机油',
         'align': 'right',
@@ -182,21 +182,21 @@ export default {
       },
       {
         'colour': 'red',
-        'customRender': 'amount',
+        'type': 'amount',
         'dataIndex': 'rhyhj',
         'title': '润滑油合计',
         'align': 'right',
         'key': 'rhyhj'
       },
       {
-        'customRender': 'amount',
+        'type': 'amount',
         'dataIndex': 'wsdhxq',
         'title': '稳升点火线圈',
         'align': 'right',
         'key': 'wsdhxq'
       },
       {
-        'customRender': 'amount',
+        'type': 'amount',
         'dataIndex': 'wsledd',
         'title': '稳升LED灯',
         'align': 'right',
@@ -204,7 +204,7 @@ export default {
       },
       {
         'colour': 'red',
-        'customRender': 'amount',
+        'type': 'amount',
         'dataIndex': 'wshj',
         'title': '稳升合计',
         'align': 'right',
@@ -212,7 +212,7 @@ export default {
       },
       {
         'colour': 'red',
-        'customRender': 'amount',
+        'type': 'amount',
         'dataIndex': 'pphj',
         'title': '品牌合计',
         'align': 'right',
@@ -220,21 +220,21 @@ export default {
       },
       {
         'colour': 'red',
-        'customRender': 'amount',
+        'type': 'amount',
         'dataIndex': 'luntai',
         'title': '轮胎',
         'align': 'right',
         'key': 'luntai'
       },
       {
-        'customRender': 'amount',
+        'type': 'amount',
         'dataIndex': 'ngkhhs',
         'title': 'NGK火花塞',
         'align': 'right',
         'key': 'ngkhhs'
       },
       {
-        'customRender': 'amount',
+        'type': 'amount',
         'dataIndex': 'flp',
         'title': '飞利浦',
         'align': 'right',
@@ -242,7 +242,7 @@ export default {
       },
       {
         'colour': 'red',
-        'customRender': 'amount',
+        'type': 'amount',
         'dataIndex': 'dlpphj',
         'title': '代理品牌合计',
         'align': 'right',
@@ -250,7 +250,7 @@ export default {
       },
       {
         'colour': 'red',
-        'customRender': 'amount',
+        'type': 'amount',
         'dataIndex': 'ppdlpphj',
         'title': '合计',
         'align': 'right',
@@ -310,21 +310,21 @@ export default {
       },
       { 'title': '销售退货单号', 'key': 'bizNo', 'dataIndex': 'bizNo', 'fixed': 'left', 'align': 'center'},
       {
-        'customRender': 'amount',
+        'type': 'amount',
         'dataIndex': 'jplqq',
         'title': '箭牌滤清器',
         'align': 'right',
         'key': 'jplqq'
       },
       {
-        'customRender': 'amount',
+        'type': 'amount',
         'dataIndex': 'jpbsxlqq',
         'title': '箭牌变速箱滤清器',
         'align': 'right',
         'key': 'jpbsxlqq'
       },
       {
-        'customRender': 'amount',
+        'type': 'amount',
         'dataIndex': 'gplqq',
         'title': '冠牌滤清器',
         'align': 'right',
@@ -332,28 +332,29 @@ export default {
       },
       {
         'colour': 'red',
-        'customRender': 'amount',
+        'txtLen': '5',
+        'type': 'amount',
         'dataIndex': 'lqqhj',
         'title': '滤清器合计',
         'align': 'right',
         'key': 'lqqhj'
       },
       {
-        'customRender': 'amount',
+        'type': 'amount',
         'dataIndex': 'jpygp',
         'title': '箭牌雨刮片',
         'align': 'right',
         'key': 'jpygp'
       },
       {
-        'customRender': 'amount',
+        'type': 'amount',
         'dataIndex': 'jpyyygp',
         'title': '箭牌雨燕雨刮片',
         'align': 'right',
         'key': 'jpyyygp'
       },
       {
-        'customRender': 'amount',
+        'type': 'amount',
         'dataIndex': 'gpygp',
         'title': '冠牌雨刮片',
         'align': 'right',
@@ -361,7 +362,8 @@ export default {
       },
       {
         'colour': 'red',
-        'customRender': 'amount',
+        'type': 'amount',
+        'txtLen': '5',
         'dataIndex': 'ygphj',
         'title': '雨刮片合计',
         'align': 'right',
@@ -369,56 +371,57 @@ export default {
       },
       {
         'colour': 'red',
-        'customRender': 'amount',
+        'type': 'amount',
         'dataIndex': 'jplb',
+        'txtLen': '4',
         'title': '箭牌喇叭',
         'align': 'right',
         'key': 'jplb'
       },
       {
-        'customRender': 'amount',
+        'type': 'amount',
         'dataIndex': 'jpscp',
         'title': '箭牌刹车片',
         'align': 'right',
         'key': 'jpscp'
       },
       {
-        'customRender': 'amount',
+        'type': 'amount',
         'dataIndex': 'tbujpgyx',
         'title': 'TBU+箭牌感应线',
         'align': 'right',
         'key': 'tbujpgyx'
       },
       {
-        'customRender': 'amount',
+        'type': 'amount',
         'dataIndex': 'gpscp',
         'title': '冠牌刹车片',
         'align': 'right',
         'key': 'gpscp'
       },
       {
-        'customRender': 'amount',
+        'type': 'amount',
         'dataIndex': 'tbuscp',
         'title': 'TBU刹车片',
         'align': 'right',
         'key': 'tbuscp'
       },
       {
-        'customRender': 'amount',
+        'type': 'amount',
         'dataIndex': 'tbuzhscp',
         'title': 'TBU至惠刹车片',
         'align': 'right',
         'key': 'tbuzhscp'
       },
       {
-        'customRender': 'amount',
+        'type': 'amount',
         'dataIndex': 'tbuscy',
         'title': 'TBU刹车油',
         'align': 'right',
         'key': 'tbuscy'
       },
       {
-        'customRender': 'amount',
+        'type': 'amount',
         'dataIndex': 'tubpscp',
         'title': 'TBU-P刹车盘',
         'align': 'right',
@@ -426,21 +429,22 @@ export default {
       },
       {
         'colour': 'red',
-        'customRender': 'amount',
+        'txtLen': '5',
+        'type': 'amount',
         'dataIndex': 'scphj',
         'title': '刹车片合计',
         'align': 'right',
         'key': 'scphj'
       },
       {
-        'customRender': 'amount',
+        'type': 'amount',
         'dataIndex': 'hjxdc',
         'title': '汇箭蓄电池',
         'align': 'right',
         'key': 'hjxdc'
       },
       {
-        'customRender': 'amount',
+        'type': 'amount',
         'dataIndex': 'brsxdc',
         'title': '布瑞斯蓄电池',
         'align': 'right',
@@ -448,42 +452,43 @@ export default {
       },
       {
         'colour': 'red',
-        'customRender': 'amount',
+        'txtLen': '5',
+        'type': 'amount',
         'dataIndex': 'xdchj',
         'title': '蓄电池合计',
         'align': 'right',
         'key': 'xdchj'
       },
       {
-        'customRender': 'amount',
+        'type': 'amount',
         'dataIndex': 'dlsjy',
         'title': '德路斯机油',
         'align': 'right',
         'key': 'dlsjy'
       },
       {
-        'customRender': 'amount',
+        'type': 'amount',
         'dataIndex': 'dlsbsxy',
         'title': '德路斯变速箱油',
         'align': 'right',
         'key': 'dlsbsxy'
       },
       {
-        'customRender': 'amount',
+        'type': 'amount',
         'dataIndex': 'dlsscy',
         'title': '德路斯刹车油',
         'align': 'right',
         'key': 'dlsscy'
       },
       {
-        'customRender': 'amount',
+        'type': 'amount',
         'dataIndex': 'dlsqcyhcp',
         'title': '德路斯汽车养护产品',
         'align': 'right',
         'key': 'dlsqcyhcp'
       },
       {
-        'customRender': 'amount',
+        'type': 'amount',
         'dataIndex': 'krxjy',
         'title': '科润星机油',
         'align': 'right',
@@ -491,21 +496,22 @@ export default {
       },
       {
         'colour': 'red',
-        'customRender': 'amount',
+        'type': 'amount',
+        'txtLen': '5',
         'dataIndex': 'rhyhj',
         'title': '润滑油合计',
         'align': 'right',
         'key': 'rhyhj'
       },
       {
-        'customRender': 'amount',
+        'type': 'amount',
         'dataIndex': 'wsdhxq',
         'title': '稳升点火线圈',
         'align': 'right',
         'key': 'wsdhxq'
       },
       {
-        'customRender': 'amount',
+        'type': 'amount',
         'dataIndex': 'wsledd',
         'title': '稳升LED灯',
         'align': 'right',
@@ -513,15 +519,17 @@ export default {
       },
       {
         'colour': 'red',
-        'customRender': 'amount',
+        'type': 'amount',
         'dataIndex': 'wshj',
+        'txtLen': '4',
         'title': '稳升合计',
         'align': 'right',
         'key': 'wshj'
       },
       {
         'colour': 'red',
-        'customRender': 'amount',
+        'type': 'amount',
+        'txtLen': '4',
         'dataIndex': 'pphj',
         'title': '品牌合计',
         'align': 'right',
@@ -529,21 +537,22 @@ export default {
       },
       {
         'colour': 'red',
-        'customRender': 'amount',
+        'type': 'amount',
         'dataIndex': 'luntai',
+        'txtLen': '2',
         'title': '轮胎',
         'align': 'right',
         'key': 'luntai'
       },
       {
-        'customRender': 'amount',
+        'type': 'amount',
         'dataIndex': 'ngkhhs',
         'title': 'NGK火花塞',
         'align': 'right',
         'key': 'ngkhhs'
       },
       {
-        'customRender': 'amount',
+        'type': 'amount',
         'dataIndex': 'flp',
         'title': '飞利浦',
         'align': 'right',
@@ -551,15 +560,17 @@ export default {
       },
       {
         'colour': 'red',
-        'customRender': 'amount',
+        'type': 'amount',
         'dataIndex': 'dlpphj',
+        'txtLen': '6',
         'title': '代理品牌合计',
         'align': 'right',
         'key': 'dlpphj'
       },
       {
         'colour': 'red',
-        'customRender': 'amount',
+        'type': 'amount',
+        'txtLen': '2',
         'dataIndex': 'ppdlpphj',
         'title': '合计',
         'align': 'right',

+ 70 - 70
src/views/reportData/billingStatistics/dataProvince.js

@@ -1,21 +1,21 @@
 export default {
   "count": [
     {
-      "customRender": "amount",
+      "type": "amount",
       "dataIndex": "jplqq",
       "title": "箭牌滤清器",
       "align": "right",
       "key": "jplqq"
     },
     {
-      "customRender": "amount",
+      "type": "amount",
       "dataIndex": "jpbsxlqq",
       "title": "箭牌变速箱滤清器",
       "align": "right",
       "key": "jpbsxlqq"
     },
     {
-      "customRender": "amount",
+      "type": "amount",
       "dataIndex": "gplqq",
       "title": "冠牌滤清器",
       "align": "right",
@@ -23,28 +23,28 @@ export default {
     },
     {
       "colour": "red",
-      "customRender": "amount",
+      "type": "amount",
       "dataIndex": "lqqhj",
       "title": "滤清器合计",
       "align": "right",
       "key": "lqqhj"
     },
     {
-      "customRender": "amount",
+      "type": "amount",
       "dataIndex": "jpygp",
       "title": "箭牌雨刮片",
       "align": "right",
       "key": "jpygp"
     },
     {
-      "customRender": "amount",
+      "type": "amount",
       "dataIndex": "jpyyygp",
       "title": "箭牌雨燕雨刮片",
       "align": "right",
       "key": "jpyyygp"
     },
     {
-      "customRender": "amount",
+      "type": "amount",
       "dataIndex": "gpygp",
       "title": "冠牌雨刮片",
       "align": "right",
@@ -52,7 +52,7 @@ export default {
     },
     {
       "colour": "red",
-      "customRender": "amount",
+      "type": "amount",
       "dataIndex": "ygphj",
       "title": "雨刮片合计",
       "align": "right",
@@ -60,56 +60,56 @@ export default {
     },
     {
       "colour": "red",
-      "customRender": "amount",
+      "type": "amount",
       "dataIndex": "jplb",
       "title": "箭牌喇叭",
       "align": "right",
       "key": "jplb"
     },
     {
-      "customRender": "amount",
+      "type": "amount",
       "dataIndex": "jpscp",
       "title": "箭牌刹车片",
       "align": "right",
       "key": "jpscp"
     },
     {
-      "customRender": "amount",
+      "type": "amount",
       "dataIndex": "tbujpgyx",
       "title": "TBU+箭牌感应线",
       "align": "right",
       "key": "tbujpgyx"
     },
     {
-      "customRender": "amount",
+      "type": "amount",
       "dataIndex": "gpscp",
       "title": "冠牌刹车片",
       "align": "right",
       "key": "gpscp"
     },
     {
-      "customRender": "amount",
+      "type": "amount",
       "dataIndex": "tbuscp",
       "title": "TBU刹车片",
       "align": "right",
       "key": "tbuscp"
     },
     {
-      "customRender": "amount",
+      "type": "amount",
       "dataIndex": "tbuzhscp",
       "title": "TBU至惠刹车片",
       "align": "right",
       "key": "tbuzhscp"
     },
     {
-      "customRender": "amount",
+      "type": "amount",
       "dataIndex": "tbuscy",
       "title": "TBU刹车油",
       "align": "right",
       "key": "tbuscy"
     },
     {
-      "customRender": "amount",
+      "type": "amount",
       "dataIndex": "tubpscp",
       "title": "TBU-P刹车盘",
       "align": "right",
@@ -117,21 +117,21 @@ export default {
     },
     {
       "colour": "red",
-      "customRender": "amount",
+      "type": "amount",
       "dataIndex": "scphj",
       "title": "刹车片合计",
       "align": "right",
       "key": "scphj"
     },
     {
-      "customRender": "amount",
+      "type": "amount",
       "dataIndex": "hjxdc",
       "title": "汇箭蓄电池",
       "align": "right",
       "key": "hjxdc"
     },
     {
-      "customRender": "amount",
+      "type": "amount",
       "dataIndex": "brsxdc",
       "title": "布瑞斯蓄电池",
       "align": "right",
@@ -139,42 +139,42 @@ export default {
     },
     {
       "colour": "red",
-      "customRender": "amount",
+      "type": "amount",
       "dataIndex": "xdchj",
       "title": "蓄电池合计",
       "align": "right",
       "key": "xdchj"
     },
     {
-      "customRender": "amount",
+      "type": "amount",
       "dataIndex": "dlsjy",
       "title": "德路斯机油",
       "align": "right",
       "key": "dlsjy"
     },
     {
-      "customRender": "amount",
+      "type": "amount",
       "dataIndex": "dlsbsxy",
       "title": "德路斯变速箱油",
       "align": "right",
       "key": "dlsbsxy"
     },
     {
-      "customRender": "amount",
+      "type": "amount",
       "dataIndex": "dlsscy",
       "title": "德路斯刹车油",
       "align": "right",
       "key": "dlsscy"
     },
     {
-      "customRender": "amount",
+      "type": "amount",
       "dataIndex": "dlsqcyhcp",
       "title": "德路斯汽车养护产品",
       "align": "right",
       "key": "dlsqcyhcp"
     },
     {
-      "customRender": "amount",
+      "type": "amount",
       "dataIndex": "krxjy",
       "title": "科润星机油",
       "align": "right",
@@ -182,21 +182,21 @@ export default {
     },
     {
       "colour": "red",
-      "customRender": "amount",
+      "type": "amount",
       "dataIndex": "rhyhj",
       "title": "润滑油合计",
       "align": "right",
       "key": "rhyhj"
     },
     {
-      "customRender": "amount",
+      "type": "amount",
       "dataIndex": "wsdhxq",
       "title": "稳升点火线圈",
       "align": "right",
       "key": "wsdhxq"
     },
     {
-      "customRender": "amount",
+      "type": "amount",
       "dataIndex": "wsledd",
       "title": "稳升LED灯",
       "align": "right",
@@ -204,7 +204,7 @@ export default {
     },
     {
       "colour": "red",
-      "customRender": "amount",
+      "type": "amount",
       "dataIndex": "wshj",
       "title": "稳升合计",
       "align": "right",
@@ -212,7 +212,7 @@ export default {
     },
     {
       "colour": "red",
-      "customRender": "amount",
+      "type": "amount",
       "dataIndex": "pphj",
       "title": "品牌合计",
       "align": "right",
@@ -220,21 +220,21 @@ export default {
     },
     {
       "colour": "red",
-      "customRender": "amount",
+      "type": "amount",
       "dataIndex": "luntai",
       "title": "轮胎",
       "align": "right",
       "key": "luntai"
     },
     {
-      "customRender": "amount",
+      "type": "amount",
       "dataIndex": "ngkhhs",
       "title": "NGK火花塞",
       "align": "right",
       "key": "ngkhhs"
     },
     {
-      "customRender": "amount",
+      "type": "amount",
       "dataIndex": "flp",
       "title": "飞利浦",
       "align": "right",
@@ -242,7 +242,7 @@ export default {
     },
     {
       "colour": "red",
-      "customRender": "amount",
+      "type": "amount",
       "dataIndex": "dlpphj",
       "title": "代理品牌合计",
       "align": "right",
@@ -250,7 +250,7 @@ export default {
     },
     {
       "colour": "red",
-      "customRender": "amount",
+      "type": "amount",
       "dataIndex": "ppdlpphj",
       "title": "合计",
       "align": "right",
@@ -289,21 +289,21 @@ export default {
     },
     { 'title': '销售退货单号', 'key': 'bizNo', 'dataIndex': 'bizNo', 'fixed': 'left', 'align': 'center'},
     {
-      "customRender": "amount",
+      "type": "amount",
       "dataIndex": "jplqq",
       "title": "箭牌滤清器",
       "align": "right",
       "key": "jplqq"
     },
     {
-      "customRender": "amount",
+      "type": "amount",
       "dataIndex": "jpbsxlqq",
       "title": "箭牌变速箱滤清器",
       "align": "right",
       "key": "jpbsxlqq"
     },
     {
-      "customRender": "amount",
+      "type": "amount",
       "dataIndex": "gplqq",
       "title": "冠牌滤清器",
       "align": "right",
@@ -311,28 +311,28 @@ export default {
     },
     {
       "colour": "red",
-      "customRender": "amount",
+      "type": "amount",
       "dataIndex": "lqqhj",
       "title": "滤清器合计",
       "align": "right",
       "key": "lqqhj"
     },
     {
-      "customRender": "amount",
+      "type": "amount",
       "dataIndex": "jpygp",
       "title": "箭牌雨刮片",
       "align": "right",
       "key": "jpygp"
     },
     {
-      "customRender": "amount",
+      "type": "amount",
       "dataIndex": "jpyyygp",
       "title": "箭牌雨燕雨刮片",
       "align": "right",
       "key": "jpyyygp"
     },
     {
-      "customRender": "amount",
+      "type": "amount",
       "dataIndex": "gpygp",
       "title": "冠牌雨刮片",
       "align": "right",
@@ -340,7 +340,7 @@ export default {
     },
     {
       "colour": "red",
-      "customRender": "amount",
+      "type": "amount",
       "dataIndex": "ygphj",
       "title": "雨刮片合计",
       "align": "right",
@@ -348,56 +348,56 @@ export default {
     },
     {
       "colour": "red",
-      "customRender": "amount",
+      "type": "amount",
       "dataIndex": "jplb",
       "title": "箭牌喇叭",
       "align": "right",
       "key": "jplb"
     },
     {
-      "customRender": "amount",
+      "type": "amount",
       "dataIndex": "jpscp",
       "title": "箭牌刹车片",
       "align": "right",
       "key": "jpscp"
     },
     {
-      "customRender": "amount",
+      "type": "amount",
       "dataIndex": "tbujpgyx",
       "title": "TBU+箭牌感应线",
       "align": "right",
       "key": "tbujpgyx"
     },
     {
-      "customRender": "amount",
+      "type": "amount",
       "dataIndex": "gpscp",
       "title": "冠牌刹车片",
       "align": "right",
       "key": "gpscp"
     },
     {
-      "customRender": "amount",
+      "type": "amount",
       "dataIndex": "tbuscp",
       "title": "TBU刹车片",
       "align": "right",
       "key": "tbuscp"
     },
     {
-      "customRender": "amount",
+      "type": "amount",
       "dataIndex": "tbuzhscp",
       "title": "TBU至惠刹车片",
       "align": "right",
       "key": "tbuzhscp"
     },
     {
-      "customRender": "amount",
+      "type": "amount",
       "dataIndex": "tbuscy",
       "title": "TBU刹车油",
       "align": "right",
       "key": "tbuscy"
     },
     {
-      "customRender": "amount",
+      "type": "amount",
       "dataIndex": "tubpscp",
       "title": "TBU-P刹车盘",
       "align": "right",
@@ -405,21 +405,21 @@ export default {
     },
     {
       "colour": "red",
-      "customRender": "amount",
+      "type": "amount",
       "dataIndex": "scphj",
       "title": "刹车片合计",
       "align": "right",
       "key": "scphj"
     },
     {
-      "customRender": "amount",
+      "type": "amount",
       "dataIndex": "hjxdc",
       "title": "汇箭蓄电池",
       "align": "right",
       "key": "hjxdc"
     },
     {
-      "customRender": "amount",
+      "type": "amount",
       "dataIndex": "brsxdc",
       "title": "布瑞斯蓄电池",
       "align": "right",
@@ -427,42 +427,42 @@ export default {
     },
     {
       "colour": "red",
-      "customRender": "amount",
+      "type": "amount",
       "dataIndex": "xdchj",
       "title": "蓄电池合计",
       "align": "right",
       "key": "xdchj"
     },
     {
-      "customRender": "amount",
+      "type": "amount",
       "dataIndex": "dlsjy",
       "title": "德路斯机油",
       "align": "right",
       "key": "dlsjy"
     },
     {
-      "customRender": "amount",
+      "type": "amount",
       "dataIndex": "dlsbsxy",
       "title": "德路斯变速箱油",
       "align": "right",
       "key": "dlsbsxy"
     },
     {
-      "customRender": "amount",
+      "type": "amount",
       "dataIndex": "dlsscy",
       "title": "德路斯刹车油",
       "align": "right",
       "key": "dlsscy"
     },
     {
-      "customRender": "amount",
+      "type": "amount",
       "dataIndex": "dlsqcyhcp",
       "title": "德路斯汽车养护产品",
       "align": "right",
       "key": "dlsqcyhcp"
     },
     {
-      "customRender": "amount",
+      "type": "amount",
       "dataIndex": "krxjy",
       "title": "科润星机油",
       "align": "right",
@@ -470,21 +470,21 @@ export default {
     },
     {
       "colour": "red",
-      "customRender": "amount",
+      "type": "amount",
       "dataIndex": "rhyhj",
       "title": "润滑油合计",
       "align": "right",
       "key": "rhyhj"
     },
     {
-      "customRender": "amount",
+      "type": "amount",
       "dataIndex": "wsdhxq",
       "title": "稳升点火线圈",
       "align": "right",
       "key": "wsdhxq"
     },
     {
-      "customRender": "amount",
+      "type": "amount",
       "dataIndex": "wsledd",
       "title": "稳升LED灯",
       "align": "right",
@@ -492,7 +492,7 @@ export default {
     },
     {
       "colour": "red",
-      "customRender": "amount",
+      "type": "amount",
       "dataIndex": "wshj",
       "title": "稳升合计",
       "align": "right",
@@ -500,7 +500,7 @@ export default {
     },
     {
       "colour": "red",
-      "customRender": "amount",
+      "type": "amount",
       "dataIndex": "pphj",
       "title": "品牌合计",
       "align": "right",
@@ -508,21 +508,21 @@ export default {
     },
     {
       "colour": "red",
-      "customRender": "amount",
+      "type": "amount",
       "dataIndex": "luntai",
       "title": "轮胎",
       "align": "right",
       "key": "luntai"
     },
     {
-      "customRender": "amount",
+      "type": "amount",
       "dataIndex": "ngkhhs",
       "title": "NGK火花塞",
       "align": "right",
       "key": "ngkhhs"
     },
     {
-      "customRender": "amount",
+      "type": "amount",
       "dataIndex": "flp",
       "title": "飞利浦",
       "align": "right",
@@ -530,7 +530,7 @@ export default {
     },
     {
       "colour": "red",
-      "customRender": "amount",
+      "type": "amount",
       "dataIndex": "dlpphj",
       "title": "代理品牌合计",
       "align": "right",
@@ -538,7 +538,7 @@ export default {
     },
     {
       "colour": "red",
-      "customRender": "amount",
+      "type": "amount",
       "dataIndex": "ppdlpphj",
       "title": "合计",
       "align": "right",

+ 3 - 4
src/views/reportData/billingStatistics/provinceCountList.vue

@@ -202,12 +202,11 @@ export default {
       this.columns = _this.tableTitle.list
       this.countLabel = _this.tableTitle.count
       this.columns.map(item => {
-        item.titleNum = item.title
-        const mw = item.customRender == 'amount' ? 15 : 17
+        const mw = item.type == 'amount' ? 15 : 17
         const textLen = typeof item.title === 'string' ? item.title.length : (item.title.children && item.title.children[0].text && item.title.children[0].text.length)
         const w = textLen * mw
         const tw = w <= 80 ? mw * 5 : w
-        if (item.customRender == 'amount') {
+        if (item.type == 'amount') {
           if (item.colour && item.colour === 'red') {
             item.title = <span style="color:red;">{ item.title }</span>
             item.customRender = (text) => { return <span style="color:red;">{(text || text == 0) ? _this.toThousands(text) : '--'}</span> }
@@ -285,7 +284,7 @@ export default {
       params.removeReportFlag = this.removeReportFlag
       _this.exportLoading = true
       _this.spinning = true
-      hdExportExcel(salesStatsProvinceExport, params, '开单统计报表(省份)', function () {
+      hdExportExcel(salesStatsProvinceExport, params, this.removeReportFlag == 0 ? '开单统计报表(省份)' : '未统计销售退货(省份)', function () {
         _this.exportLoading = false
         _this.spinning = false
       })