Bläddra i källkod

表格样式调整

chenrui 3 år sedan
förälder
incheckning
14649e975d

+ 27 - 28
src/views/reportData/actualSalesReport/list.vue

@@ -77,7 +77,7 @@
                 @click="handleExport"
                 :disabled="disabled"
                 :loading="exportLoading"
-                 v-if="$hasPermissions('B_actualSalesReport_export')"
+                v-if="$hasPermissions('B_actualSalesReport_export')"
                 id="actualSalesReportList-export">导出</a-button>
               <a @click="advanced=!advanced" style="margin-left: 8px">
                 {{ advanced ? '收起' : '展开' }}
@@ -95,7 +95,7 @@
         :rowKey="(record) => record.id"
         :columns="columns"
         :data="loadData"
-        :scroll="{ x: 3220 }"
+        :scroll="{ x: 2170 }"
         :defaultLoadData="false"
         bordered>
         <template slot="footer">
@@ -142,7 +142,7 @@ import custList from '@/views/common/custList.vue'
 import subarea from '@/views/common/subarea.js'
 import { getArea } from '@/api/data'
 import { salesBillRealAmountQueryPageList, salesBillRealReportCount } from '@/api/salesBillReport'
-import {actualSalesExport} from '@/api/reportData'
+import { actualSalesExport } from '@/api/reportData'
 export default {
   components: { STable, VSelect, rangeDate, subarea, custList },
   data () {
@@ -172,11 +172,10 @@ export default {
       disabled: false, //  查询、重置按钮是否可操作
       exportLoading: false,
       columns: [
-        { title: '序号', dataIndex: 'no', width: 80, align: 'center', fixed: 'left' },
-        { title: '区域', dataIndex: 'dealer.subareaNameSet', width: 220, align: 'center', customRender: function (text) { return (text && text.length > 0) ? text.join('/') : '--' } },
-        { title: '省份', dataIndex: 'dealer.provinceName', width: 200, align: 'center', customRender: function (text) { return text || '--' } },
+        { title: '区域', dataIndex: 'dealer.subareaNameSet', width: 120, align: 'center', customRender: function (text) { return (text && text.length > 0) ? text.join('/') : '--' } },
+        { title: '省份', dataIndex: 'dealer.provinceName', width: 90, align: 'center', customRender: function (text) { return text || '--' } },
         { title: '客户名称', dataIndex: 'dealer.dealerName', align: 'center', customRender: function (text) { return text || '--' }, ellipsis: true },
-        { title: '客户级别', dataIndex: 'dealer.dealerLevelDictValue', width: 200, align: 'center', customRender: function (text) { return text || '--' } },
+        { title: '客户级别', dataIndex: 'dealer.dealerLevelDictValue', width: 120, align: 'center', customRender: function (text) { return text || '--' } },
         { title: '品牌',
           align: 'center',
           children: [
@@ -188,35 +187,35 @@ export default {
                   title: '滤清器',
                   dataIndex: 'jpLqqAmount',
                   align: 'center',
-                  width: 100,
+                  width: 80,
                   customRender: function (text) { return (text || text == 0) ? ('¥' + text) : '--' }
                 },
                 {
                   title: '雨刮片',
                   dataIndex: 'jpYgpAmount',
                   align: 'center',
-                  width: 100,
+                  width: 80,
                   customRender: function (text) { return (text || text == 0) ? ('¥' + text) : '--' }
                 },
                 {
                   title: '喇叭',
                   dataIndex: 'jpLbAmount',
                   align: 'center',
-                  width: 100,
+                  width: 80,
                   customRender: function (text) { return (text || text == 0) ? ('¥' + text) : '--' }
                 },
                 {
                   title: '刹车片',
                   dataIndex: 'jpScpAmount',
                   align: 'center',
-                  width: 100,
+                  width: 80,
                   customRender: function (text) { return (text || text == 0) ? ('¥' + text) : '--' }
                 },
                 {
                   title: '感应线',
                   dataIndex: 'jpGyxAmount',
                   align: 'center',
-                  width: 100,
+                  width: 80,
                   customRender: function (text) { return (text || text == 0) ? ('¥' + text) : '--' }
                 }
               ]
@@ -229,21 +228,21 @@ export default {
                   title: '滤清器',
                   dataIndex: 'gpLqqAmount',
                   align: 'center',
-                  width: 100,
+                  width: 80,
                   customRender: function (text) { return (text || text == 0) ? ('¥' + text) : '--' }
                 },
                 {
                   title: '雨刮片',
                   dataIndex: 'gpYgpAmount',
                   align: 'center',
-                  width: 100,
+                  width: 80,
                   customRender: function (text) { return (text || text == 0) ? ('¥' + text) : '--' }
                 },
                 {
                   title: '刹车片',
                   dataIndex: 'gpScpAmount',
                   align: 'center',
-                  width: 100,
+                  width: 80,
                   customRender: function (text) { return (text || text == 0) ? ('¥' + text) : '--' }
                 }
               ]
@@ -252,35 +251,35 @@ export default {
               title: '汇箭',
               dataIndex: 'hjAmount',
               align: 'center',
-              width: 100,
+              width: 80,
               customRender: function (text) { return (text || text == 0) ? ('¥' + text) : '--' }
             },
             {
               title: '德路斯',
               dataIndex: 'dlsAmount',
               align: 'center',
-              width: 100,
+              width: 80,
               customRender: function (text) { return (text || text == 0) ? ('¥' + text) : '--' }
             },
             {
               title: '稳升',
               dataIndex: 'wsAmount',
               align: 'center',
-              width: 100,
+              width: 80,
               customRender: function (text) { return (text || text == 0) ? ('¥' + text) : '--' }
             },
             {
               title: 'TBU',
               dataIndex: 'tbuAmount',
               align: 'center',
-              width: 100,
+              width: 80,
               customRender: function (text) { return (text || text == 0) ? ('¥' + text) : '--' }
             },
             {
               title: '布瑞斯',
               dataIndex: 'brsAmount',
               align: 'center',
-              width: 100,
+              width: 80,
               customRender: function (text) { return (text || text == 0) ? ('¥' + text) : '--' }
             }
           ] },
@@ -291,53 +290,53 @@ export default {
               title: 'NGK',
               dataIndex: 'ngkAmount',
               align: 'center',
-              width: 100,
+              width: 80,
               customRender: function (text) { return (text || text == 0) ? ('¥' + text) : '--' }
             },
             {
               title: '飞利浦',
               dataIndex: 'flpAmount',
               align: 'center',
-              width: 100,
+              width: 80,
               customRender: function (text) { return (text || text == 0) ? ('¥' + text) : '--' }
             },
             {
               title: '车仆',
               dataIndex: 'cpAmount',
               align: 'center',
-              width: 100,
+              width: 80,
               customRender: function (text) { return (text || text == 0) ? ('¥' + text) : '--' }
             },
             {
               title: '瓦尔塔',
               dataIndex: 'wetAmount',
               align: 'center',
-              width: 100,
+              width: 80,
               customRender: function (text) { return (text || text == 0) ? ('¥' + text) : '--' }
             },
             {
               title: '雷贝斯托',
               dataIndex: 'lbstAmount',
               align: 'center',
-              width: 100,
+              width: 80,
               customRender: function (text) { return (text || text == 0) ? ('¥' + text) : '--' }
             },
             {
               title: '德尔福',
               dataIndex: 'defAmount',
               align: 'center',
-              width: 100,
+              width: 80,
               customRender: function (text) { return (text || text == 0) ? ('¥' + text) : '--' }
             },
             {
               title: '巴诺德',
               dataIndex: 'bndAmount',
               align: 'center',
-              width: 100,
+              width: 80,
               customRender: function (text) { return (text || text == 0) ? ('¥' + text) : '--' }
             }
           ] },
-        { title: '实售销售合计金额', width: 200, dataIndex: 'totalAmount', align: 'center', customRender: function (text) { return (text || text == 0) ? ('¥' + text) : '--' } }
+        { title: '实售销售合计金额', width: 90, dataIndex: 'totalAmount', align: 'center', customRender: function (text) { return (text || text == 0) ? ('¥' + text) : '--' } }
       ],
       // 加载数据方法 必须为 Promise 对象
       loadData: parameter => {

+ 20 - 21
src/views/reportData/allocationDetails/list.vue

@@ -134,7 +134,7 @@
         :columns="columns"
         :data="loadData"
         :defaultLoadData="false"
-        :scroll="{ x: 3430 }"
+        :scroll="{ x: 2090 }"
         bordered>
         <template slot="footer">
           <a-row :gutter="15">
@@ -208,27 +208,26 @@ export default {
       },
       disabled: false, //  查询、重置按钮是否可操作
       columns: [
-        { title: '序号', dataIndex: 'no', width: 80, align: 'center', fixed: 'left' },
-        { title: '区域', dataIndex: 'subareaNames', width: 200, align: 'center', customRender: function (text) { return text || '--' } },
-        { title: '调拨单号', dataIndex: 'allocateNo', width: 220, align: 'center', sorter: true, customRender: function (text) { return text || '--' } },
-        { title: '调拨开单日期', dataIndex: 'allocateDate', width: 160, align: 'center', customRender: function (text) { return text || '--' } },
-        { title: '省份', dataIndex: 'dealerProvinceName', width: 200, align: 'center', customRender: function (text) { return text || '--' }, ellipsis: true },
+        { title: '区域', dataIndex: 'subareaNames', width: 120, align: 'center', customRender: function (text) { return text || '--' } },
+        { title: '调拨单号', dataIndex: 'allocateNo', width: 160, align: 'center', sorter: true, customRender: function (text) { return text || '--' } },
+        { title: '调拨开单日期', dataIndex: 'allocateDate', width: 130, align: 'center', customRender: function (text) { return text || '--' } },
+        { title: '省份', dataIndex: 'dealerProvinceName', width: 90, align: 'center', customRender: function (text) { return text || '--' }, ellipsis: true },
         { title: '客户名称', dataIndex: 'targetName', align: 'center', sorter: true, customRender: function (text) { return text || '--' }, ellipsis: true },
-        { title: '客户级别', dataIndex: 'dealerLevelDictValue', width: 200, align: 'center', customRender: function (text) { return text || '--' }, ellipsis: true },
-        { title: '品牌', dataIndex: 'productBrandName', width: 200, align: 'center', customRender: function (text) { return text || '--' }, ellipsis: true },
-        { title: '二级分类', dataIndex: 'productTypeName2', width: 200, align: 'center', customRender: function (text) { return text || '--' } },
-        { title: '产品名称', dataIndex: 'productName', align: 'center', sorter: true, customRender: function (text) { return text || '--' }, ellipsis: true },
-        { title: '产品编码', dataIndex: 'productCode', width: 200, align: 'center', sorter: true, customRender: function (text) { return text || '--' } },
-        { title: '调拨数量', dataIndex: 'qty', width: 100, align: 'center', customRender: function (text) { return ((text || text == 0) ? text : '--') } },
-        { title: '单位', dataIndex: 'productUnit', width: 100, align: 'center', customRender: function (text) { return text || '--' } },
-        { title: '成本价', dataIndex: 'cost', width: 100, align: 'center', customRender: function (text) { return ((text || text == 0) ? text : '--') } },
-        { title: '售价', dataIndex: 'price', width: 100, align: 'center', customRender: function (text) { return ((text || text == 0) ? text : '--') } },
-        { title: '总成本价', dataIndex: 'totalCost', width: 120, align: 'center', customRender: function (text) { return ((text || text == 0) ? text : '--') } },
-        { title: '毛利', dataIndex: 'grossProfit', width: 120, align: 'center', customRender: function (text) { return ((text || text == 0) ? text : '--') } },
-        { title: '仓库', dataIndex: 'warehouseName', width: 200, align: 'center', sorter: true, customRender: function (text) { return text || '--' } },
-        { title: '仓位', dataIndex: 'warehouseLocationName', width: 200, align: 'center', sorter: true, customRender: function (text) { return text || '--' } },
-        { title: '操作员', dataIndex: 'creatorName', width: 150, align: 'center', customRender: function (text) { return text || '--' }, ellipsis: true },
-        { title: '调拨类型', dataIndex: 'allocateTypeName', width: 140, align: 'center', customRender: function (text) { return text || '--' } }
+        { title: '客户级别', dataIndex: 'dealerLevelDictValue', width: 120, align: 'center', customRender: function (text) { return text || '--' }, ellipsis: true },
+        { title: '品牌', dataIndex: 'productBrandName', width: 130, align: 'center', customRender: function (text) { return text || '--' }, ellipsis: true },
+        { title: '二级分类', dataIndex: 'productTypeName2', width: 130, align: 'center', customRender: function (text) { return text || '--' } },
+        { title: '产品名称', dataIndex: 'productName', align: 'left', sorter: true, customRender: function (text) { return text || '--' }, ellipsis: true },
+        { title: '产品编码', dataIndex: 'productCode', width: 150, align: 'center', sorter: true, customRender: function (text) { return text || '--' } },
+        { title: '调拨数量', dataIndex: 'qty', width: 70, align: 'center', customRender: function (text) { return ((text || text == 0) ? text : '--') } },
+        { title: '单位', dataIndex: 'productUnit', width: 50, align: 'center', customRender: function (text) { return text || '--' } },
+        { title: '成本价', dataIndex: 'cost', width: 70, align: 'center', customRender: function (text) { return ((text || text == 0) ? text : '--') } },
+        { title: '售价', dataIndex: 'price', width: 70, align: 'center', customRender: function (text) { return ((text || text == 0) ? text : '--') } },
+        { title: '总成本价', dataIndex: 'totalCost', width: 70, align: 'center', customRender: function (text) { return ((text || text == 0) ? text : '--') } },
+        { title: '毛利', dataIndex: 'grossProfit', width: 70, align: 'center', customRender: function (text) { return ((text || text == 0) ? text : '--') } },
+        { title: '仓库', dataIndex: 'warehouseName', width: 90, align: 'center', sorter: true, customRender: function (text) { return text || '--' } },
+        { title: '仓位', dataIndex: 'warehouseLocationName', width: 90, align: 'center', sorter: true, customRender: function (text) { return text || '--' } },
+        { title: '操作员', dataIndex: 'creatorName', width: 100, align: 'center', customRender: function (text) { return text || '--' }, ellipsis: true },
+        { title: '调拨类型', dataIndex: 'allocateTypeName', width: 80, align: 'center', customRender: function (text) { return text || '--' } }
       ],
       // 加载数据方法 必须为 Promise 对象
       loadData: parameter => {

+ 7 - 9
src/views/reportData/allocationOrderTotal/list.vue

@@ -78,7 +78,6 @@
         :columns="columns"
         :data="loadData"
         :defaultLoadData="false"
-        :scroll="{ x: 1140 }"
         bordered>
         <template slot="footer" slot-scope="currentPageData">
           <a-row :gutter="15">
@@ -130,14 +129,13 @@ export default {
       },
       disabled: false, //  查询、重置按钮是否可操作
       columns: [
-        { title: '序号', dataIndex: 'no', width: 80, align: 'center', fixed: 'left' },
-        { title: '调拨单号', dataIndex: 'allocateNo', width: 200, align: 'center', customRender: function (text) { return text || '--' } },
-        { title: '调拨开单日期', dataIndex: 'allocateDate', width: 160, align: 'center', customRender: function (text) { return text || '--' } },
-        { title: '客户名称', dataIndex: 'targetName', align: 'center', customRender: function (text) { return text || '--' }, ellipsis: true },
-        { title: '调拨数量', dataIndex: 'totalQty', width: 120, align: 'center', customRender: function (text) { return ((text || text == 0) ? text : '--') } },
-        { title: '成本价', dataIndex: 'totalCost', width: 120, align: 'center', customRender: function (text) { return ((text || text == 0) ? text : '--') } },
-        { title: '毛利', dataIndex: 'totalGrossProfit', width: 120, align: 'center', customRender: function (text) { return ((text || text == 0) ? text : '--') } },
-        { title: '操作员', dataIndex: 'creatorName', width: 120, align: 'center', customRender: function (text) { return text || '--' }, ellipsis: true }
+        { title: '调拨单号', dataIndex: 'allocateNo', width: '20%', align: 'center', customRender: function (text) { return text || '--' } },
+        { title: '调拨开单日期', dataIndex: 'allocateDate', width: '15%', align: 'center', customRender: function (text) { return text || '--' } },
+        { title: '客户名称', dataIndex: 'targetName', width: '22%', align: 'left', customRender: function (text) { return text || '--' }, ellipsis: true },
+        { title: '调拨数量', dataIndex: 'totalQty', width: '9%', align: 'center', customRender: function (text) { return ((text || text == 0) ? text : '--') } },
+        { title: '成本价', dataIndex: 'totalCost', width: '9%', align: 'center', customRender: function (text) { return ((text || text == 0) ? text : '--') } },
+        { title: '毛利', dataIndex: 'totalGrossProfit', width: '9%', align: 'center', customRender: function (text) { return ((text || text == 0) ? text : '--') } },
+        { title: '操作员', dataIndex: 'creatorName', width: '16%', align: 'center', customRender: function (text) { return text || '--' }, ellipsis: true }
       ],
       // 加载数据方法 必须为 Promise 对象
       loadData: parameter => {

+ 25 - 26
src/views/reportData/billingReturnReport/list.vue

@@ -95,7 +95,7 @@
         :rowKey="(record) => record.id"
         :columns="columns"
         :data="loadData"
-        :scroll="{ x: 3120, y: tableHeight }"
+        :scroll="{ x: 2170, y: tableHeight }"
         :defaultLoadData="false"
         bordered>
         <template slot="footer">
@@ -174,11 +174,10 @@ export default {
       addrCityList: [], //  市下拉
       addrDistrictList: [], //  区下拉
       columns: [
-        { title: '序号', dataIndex: 'no', width: 80, align: 'center', fixed: 'left' },
-        { title: '区域', dataIndex: 'dealer.subareaNameSet', width: 220, align: 'center', customRender: function (text) { return (text && text.length > 0) ? text.join('/') : '--' } },
-        { title: '省份', dataIndex: 'dealer.provinceName', width: 200, align: 'center', customRender: function (text) { return text || '--' } },
+        { title: '区域', dataIndex: 'dealer.subareaNameSet', width: 120, align: 'center', customRender: function (text) { return (text && text.length > 0) ? text.join('/') : '--' } },
+        { title: '省份', dataIndex: 'dealer.provinceName', width: 90, align: 'center', customRender: function (text) { return text || '--' } },
         { title: '客户名称', dataIndex: 'dealer.dealerName', align: 'center', customRender: function (text) { return text || '--' }, ellipsis: true },
-        { title: '客户级别', dataIndex: 'dealer.dealerLevelDictValue', width: 200, align: 'center', customRender: function (text) { return text || '--' } },
+        { title: '客户级别', dataIndex: 'dealer.dealerLevelDictValue', width: 120, align: 'center', customRender: function (text) { return text || '--' } },
         { title: '品牌',
           align: 'center',
           children: [
@@ -190,35 +189,35 @@ export default {
                   title: '滤清器',
                   dataIndex: 'jpLqqAmount',
                   align: 'center',
-                  width: 100,
+                  width: 80,
                   customRender: function (text) { return (text || text == 0) ? ('¥' + text) : '--' }
                 },
                 {
                   title: '雨刮片',
                   dataIndex: 'jpYgpAmount',
                   align: 'center',
-                  width: 100,
+                  width: 80,
                   customRender: function (text) { return (text || text == 0) ? ('¥' + text) : '--' }
                 },
                 {
                   title: '喇叭',
                   dataIndex: 'jpLbAmount',
                   align: 'center',
-                  width: 100,
+                  width: 80,
                   customRender: function (text) { return (text || text == 0) ? ('¥' + text) : '--' }
                 },
                 {
                   title: '刹车片',
                   dataIndex: 'jpScpAmount',
                   align: 'center',
-                  width: 100,
+                  width: 80,
                   customRender: function (text) { return (text || text == 0) ? ('¥' + text) : '--' }
                 },
                 {
                   title: '感应线',
                   dataIndex: 'jpGyxAmount',
                   align: 'center',
-                  width: 100,
+                  width: 80,
                   customRender: function (text) { return (text || text == 0) ? ('¥' + text) : '--' }
                 }
               ]
@@ -231,21 +230,21 @@ export default {
                   title: '滤清器',
                   dataIndex: 'gpLqqAmount',
                   align: 'center',
-                  width: 100,
+                  width: 80,
                   customRender: function (text) { return (text || text == 0) ? ('¥' + text) : '--' }
                 },
                 {
                   title: '雨刮片',
                   dataIndex: 'gpYgpAmount',
                   align: 'center',
-                  width: 100,
+                  width: 80,
                   customRender: function (text) { return (text || text == 0) ? ('¥' + text) : '--' }
                 },
                 {
                   title: '刹车片',
                   dataIndex: 'gpScpAmount',
                   align: 'center',
-                  width: 100,
+                  width: 80,
                   customRender: function (text) { return (text || text == 0) ? ('¥' + text) : '--' }
                 }
               ]
@@ -254,35 +253,35 @@ export default {
               title: '汇箭',
               dataIndex: 'hjAmount',
               align: 'center',
-              width: 100,
+              width: 80,
               customRender: function (text) { return (text || text == 0) ? ('¥' + text) : '--' }
             },
             {
               title: '德路斯',
               dataIndex: 'dlsAmount',
               align: 'center',
-              width: 100,
+              width: 80,
               customRender: function (text) { return (text || text == 0) ? ('¥' + text) : '--' }
             },
             {
               title: '稳升',
               dataIndex: 'wsAmount',
               align: 'center',
-              width: 100,
+              width: 80,
               customRender: function (text) { return (text || text == 0) ? ('¥' + text) : '--' }
             },
             {
               title: 'TBU',
               dataIndex: 'tbuAmount',
               align: 'center',
-              width: 100,
+              width: 80,
               customRender: function (text) { return (text || text == 0) ? ('¥' + text) : '--' }
             },
             {
               title: '布瑞斯',
               dataIndex: 'brsAmount',
               align: 'center',
-              width: 100,
+              width: 80,
               customRender: function (text) { return (text || text == 0) ? ('¥' + text) : '--' }
             }
           ] },
@@ -293,53 +292,53 @@ export default {
               title: 'NGK',
               dataIndex: 'ngkAmount',
               align: 'center',
-              width: 100,
+              width: 80,
               customRender: function (text) { return (text || text == 0) ? ('¥' + text) : '--' }
             },
             {
               title: '飞利浦',
               dataIndex: 'flpAmount',
               align: 'center',
-              width: 100,
+              width: 80,
               customRender: function (text) { return (text || text == 0) ? ('¥' + text) : '--' }
             },
             {
               title: '车仆',
               dataIndex: 'cpAmount',
               align: 'center',
-              width: 100,
+              width: 80,
               customRender: function (text) { return (text || text == 0) ? ('¥' + text) : '--' }
             },
             {
               title: '瓦尔塔',
               dataIndex: 'wetAmount',
               align: 'center',
-              width: 100,
+              width: 80,
               customRender: function (text) { return (text || text == 0) ? ('¥' + text) : '--' }
             },
             {
               title: '雷贝斯托',
               dataIndex: 'lbstAmount',
               align: 'center',
-              width: 100,
+              width: 80,
               customRender: function (text) { return (text || text == 0) ? ('¥' + text) : '--' }
             },
             {
               title: '德尔福',
               dataIndex: 'defAmount',
               align: 'center',
-              width: 100,
+              width: 80,
               customRender: function (text) { return (text || text == 0) ? ('¥' + text) : '--' }
             },
             {
               title: '巴诺德',
               dataIndex: 'bndAmount',
               align: 'center',
-              width: 100,
+              width: 80,
               customRender: function (text) { return (text || text == 0) ? ('¥' + text) : '--' }
             }
           ] },
-        { title: '开单退货合计金额', width: 200, dataIndex: 'sumAmount', align: 'center', customRender: function (text) { return (text || text == 0) ? ('¥' + text) : '--' } }
+        { title: '开单退货合计金额', width: 90, dataIndex: 'sumAmount', align: 'center', customRender: function (text) { return (text || text == 0) ? ('¥' + text) : '--' } }
       ],
       // 加载数据方法 必须为 Promise 对象
       loadData: parameter => {

+ 16 - 17
src/views/reportData/hPriceDifferenceDetailReport/list.vue

@@ -100,7 +100,7 @@
         :columns="columns"
         :data="loadData"
         :defaultLoadData="false"
-        :scroll="{ x: 2800 }"
+        :scroll="{ x: 1850 }"
         bordered>
         <template slot="footer">
           <a-row :gutter="15">
@@ -171,23 +171,22 @@ export default {
       disabled: false, //  查询、重置按钮是否可操作
       addrProvinceList: [], //  省下拉
       columns: [
-        { title: '序号', dataIndex: 'no', width: 80, align: 'center', fixed: 'left' },
-        { title: '区域', dataIndex: 'dealer.subareaNameSet', width: 220, align: 'center', customRender: function (text) { return (text && text.length > 0) ? text.join('/') : '--' } },
-        { title: '订单号', dataIndex: 'bizNo', width: 200, align: 'center', customRender: function (text) { return text || '--' } },
-        { title: '日期', dataIndex: 'bizCreateDate', width: 160, align: 'center', customRender: function (text) { return text || '--' } },
-        { title: '省份', dataIndex: 'dealer.provinceName', width: 200, align: 'center', customRender: function (text) { return text || '--' } },
-        { title: '直接绑定客户名称', dataIndex: 'directDealerName', width: 200, align: 'center', customRender: function (text) { return text || '--' }, ellipsis: true },
-        { title: '间接绑定客户名称', dataIndex: 'indirectDealerName', width: 200, align: 'center', customRender: function (text) { return text || '--' }, ellipsis: true },
+        { title: '区域', dataIndex: 'dealer.subareaNameSet', width: 120, align: 'center', customRender: function (text) { return (text && text.length > 0) ? text.join('/') : '--' } },
+        { title: '订单号', dataIndex: 'bizNo', width: 160, align: 'center', customRender: function (text) { return text || '--' } },
+        { title: '日期', dataIndex: 'bizCreateDate', width: 90, align: 'center', customRender: function (text) { return text || '--' } },
+        { title: '省份', dataIndex: 'dealer.provinceName', width: 90, align: 'center', customRender: function (text) { return text || '--' } },
+        { title: '直接绑定客户名称', dataIndex: 'directDealerName', width: 120, align: 'center', customRender: function (text) { return text || '--' }, ellipsis: true },
+        { title: '间接绑定客户名称', dataIndex: 'indirectDealerName', width: 120, align: 'center', customRender: function (text) { return text || '--' }, ellipsis: true },
         { title: '客户名称', dataIndex: 'dealer.dealerName', align: 'center', customRender: function (text) { return text || '--' }, ellipsis: true },
-        { title: '客户级别', dataIndex: 'dealer.dealerLevelDictValue', width: 200, align: 'center', customRender: function (text) { return text || '--' } },
-        { title: '品牌', dataIndex: 'productBrandName', width: 200, align: 'center', customRender: function (text) { return text || '--' }, ellipsis: true },
-        { title: '二级分类', dataIndex: 'productTypeName2', width: 200, align: 'center', customRender: function (text) { return text || '--' } },
-        { title: '数量', dataIndex: 'qty', width: 100, align: 'center', customRender: function (text) { return ((text || text == 0) ? text : '--') } },
-        { title: '分公司金额', dataIndex: 'wholesalePrice1', width: 100, align: 'center', customRender: function (text) { return ((text || text == 0) ? text : '--') } },
-        { title: '加盟商金额', dataIndex: 'wholesalePrice2', width: 100, align: 'center', customRender: function (text) { return ((text || text == 0) ? text : '--') } },
-        { title: '特约加盟店金额', dataIndex: 'wholesalePrice3', width: 120, align: 'center', customRender: function (text) { return ((text || text == 0) ? text : '--') } },
-        { title: '直接差价', dataIndex: 'directRebateAmount', width: 100, align: 'center', customRender: function (text) { return ((text || text == 0) ? text : '--') } },
-        { title: '间接差价', dataIndex: 'indirectRebateAmount', width: 100, align: 'center', customRender: function (text) { return ((text || text == 0) ? text : '--') } },
+        { title: '客户级别', dataIndex: 'dealer.dealerLevelDictValue', width: 120, align: 'center', customRender: function (text) { return text || '--' } },
+        { title: '品牌', dataIndex: 'productBrandName', width: 130, align: 'center', customRender: function (text) { return text || '--' }, ellipsis: true },
+        { title: '二级分类', dataIndex: 'productTypeName2', width: 130, align: 'center', customRender: function (text) { return text || '--' } },
+        { title: '数量', dataIndex: 'qty', width: 80, align: 'center', customRender: function (text) { return ((text || text == 0) ? text : '--') } },
+        { title: '分公司金额', dataIndex: 'wholesalePrice1', width: 90, align: 'center', customRender: function (text) { return ((text || text == 0) ? text : '--') } },
+        { title: '加盟商金额', dataIndex: 'wholesalePrice2', width: 90, align: 'center', customRender: function (text) { return ((text || text == 0) ? text : '--') } },
+        { title: '特约加盟店金额', dataIndex: 'wholesalePrice3', width: 100, align: 'center', customRender: function (text) { return ((text || text == 0) ? text : '--') } },
+        { title: '直接差价', dataIndex: 'directRebateAmount', width: 80, align: 'center', customRender: function (text) { return ((text || text == 0) ? text : '--') } },
+        { title: '间接差价', dataIndex: 'indirectRebateAmount', width: 80, align: 'center', customRender: function (text) { return ((text || text == 0) ? text : '--') } },
         { title: '类型', dataIndex: 'bizTypeValue', width: 100, align: 'center', customRender: function (text) { return text || '--' } }
       ],
       // 加载数据方法 必须为 Promise 对象

+ 9 - 11
src/views/reportData/priceDifferenceDetailReport/list.vue

@@ -65,7 +65,6 @@
         :columns="columns"
         :data="loadData"
         :defaultLoadData="false"
-        :scroll="{ x: 1060 }"
         bordered>
         <template slot="footer">
           <a-row :gutter="15">
@@ -112,16 +111,15 @@ export default {
       disabled: false, //  查询、重置按钮是否可操作
       addrProvinceList: [], //  省下拉
       columns: [
-        { title: '序号', dataIndex: 'no', width: 70, align: 'center', fixed: 'left' },
-        { title: '月份', dataIndex: 'month', width: 80, align: 'center', customRender: function (text) { return text || '--' } },
-        { title: '省份', dataIndex: 'provinceName', width: 80, align: 'center', customRender: function (text) { return text || '--' } },
-        { title: '记账门店', dataIndex: 'rebateDealerName', width: 180, align: 'center', customRender: function (text) { return text || '--' } },
-        { title: '客户名称', dataIndex: 'dealerName', align: 'center', customRender: function (text) { return text || '--' } },
-        { title: '产品品牌+二级分类', dataIndex: 'productBrandAndType2', width: 150, align: 'center', customRender: function (text) { return text || '--' } },
-        { title: '实售金额', dataIndex: 'totalRealAmount', width: 80, align: 'center', customRender: function (text) { return ((text || text == 0) ? text : '--') } },
-        { title: '开单金额', dataIndex: 'totalAmount', width: 80, align: 'center', customRender: function (text) { return ((text || text == 0) ? text : '--') } },
-        { title: '直接差额', dataIndex: 'rebateAmount', width: 80, align: 'center', customRender: function (text) { return ((text || text == 0) ? text : '--') } },
-        { title: '类型', dataIndex: 'bizType', width: 80, align: 'center', customRender: function (text) { return text || '--' } }
+        { title: '月份', dataIndex: 'month', width: '10%', align: 'center', customRender: function (text) { return text || '--' } },
+        { title: '省份', dataIndex: 'provinceName', width: '10%', align: 'center', customRender: function (text) { return text || '--' } },
+        { title: '记账门店', dataIndex: 'rebateDealerName', width: '15%', align: 'left', customRender: function (text) { return text || '--' }, ellipsis: true },
+        { title: '客户名称', dataIndex: 'dealerName', width: '16%', align: 'left', customRender: function (text) { return text || '--' }, ellipsis: true },
+        { title: '产品品牌+二级分类', dataIndex: 'productBrandAndType2', width: '15%', align: 'left', customRender: function (text) { return text || '--' }, ellipsis: true },
+        { title: '实售金额', dataIndex: 'totalRealAmount', width: '8%', align: 'center', customRender: function (text) { return ((text || text == 0) ? text : '--') } },
+        { title: '开单金额', dataIndex: 'totalAmount', width: '8%', align: 'center', customRender: function (text) { return ((text || text == 0) ? text : '--') } },
+        { title: '直接差额', dataIndex: 'rebateAmount', width: '8%', align: 'center', customRender: function (text) { return ((text || text == 0) ? text : '--') } },
+        { title: '类型', dataIndex: 'bizType', width: '10%', align: 'center', customRender: function (text) { return text || '--' } }
       ],
       // 加载数据方法 必须为 Promise 对象
       loadData: parameter => {

+ 26 - 27
src/views/reportData/returnSlipReport/list.vue

@@ -100,7 +100,7 @@
         :rowKey="(record) => record.id"
         :columns="columns"
         :data="loadData"
-        :scroll="{ x: 3340, y: tableHeight }"
+        :scroll="{ x: 2330, y: tableHeight }"
         :defaultLoadData="false"
         bordered>
         <template slot="footer">
@@ -180,12 +180,11 @@ export default {
       addrCityList: [], //  市下拉
       addrDistrictList: [], //  区下拉
       columns: [
-        { title: '序号', dataIndex: 'no', width: 80, align: 'center', fixed: 'left' },
-        { title: '区域', dataIndex: 'dealer.subareaNameSet', width: 220, align: 'center', customRender: function (text) { return (text && text.length > 0) ? text.join('/') : '--' } },
-        { title: '退货单号', dataIndex: 'salesReturnBillNo', width: 220, align: 'center', customRender: function (text) { return text || '--' } },
-        { title: '省份', dataIndex: 'dealer.provinceName', width: 200, align: 'center', customRender: function (text) { return text || '--' } },
+        { title: '区域', dataIndex: 'dealer.subareaNameSet', width: 120, align: 'center', customRender: function (text) { return (text && text.length > 0) ? text.join('/') : '--' } },
+        { title: '退货单号', dataIndex: 'salesReturnBillNo', width: 160, align: 'center', customRender: function (text) { return text || '--' } },
+        { title: '省份', dataIndex: 'dealer.provinceName', width: 90, align: 'center', customRender: function (text) { return text || '--' }, ellipsis: true },
         { title: '客户名称', dataIndex: 'dealer.dealerName', align: 'center', customRender: function (text) { return text || '--' }, ellipsis: true },
-        { title: '客户级别', dataIndex: 'dealer.dealerLevelDictValue', width: 200, align: 'center', customRender: function (text) { return text || '--' } },
+        { title: '客户级别', dataIndex: 'dealer.dealerLevelDictValue', width: 120, align: 'center', customRender: function (text) { return text || '--' } },
         { title: '品牌',
           align: 'center',
           children: [
@@ -197,35 +196,35 @@ export default {
                   title: '滤清器',
                   dataIndex: 'jpLqqAmount',
                   align: 'center',
-                  width: 100,
+                  width: 80,
                   customRender: function (text) { return (text || text == 0) ? ('¥' + text) : '--' }
                 },
                 {
                   title: '雨刮片',
                   dataIndex: 'jpYgpAmount',
                   align: 'center',
-                  width: 100,
+                  width: 80,
                   customRender: function (text) { return (text || text == 0) ? ('¥' + text) : '--' }
                 },
                 {
                   title: '喇叭',
                   dataIndex: 'jpLbAmount',
                   align: 'center',
-                  width: 100,
+                  width: 80,
                   customRender: function (text) { return (text || text == 0) ? ('¥' + text) : '--' }
                 },
                 {
                   title: '刹车片',
                   dataIndex: 'jpScpAmount',
                   align: 'center',
-                  width: 100,
+                  width: 80,
                   customRender: function (text) { return (text || text == 0) ? ('¥' + text) : '--' }
                 },
                 {
                   title: '感应线',
                   dataIndex: 'jpGyxAmount',
                   align: 'center',
-                  width: 100,
+                  width: 80,
                   customRender: function (text) { return (text || text == 0) ? ('¥' + text) : '--' }
                 }
               ]
@@ -238,21 +237,21 @@ export default {
                   title: '滤清器',
                   dataIndex: 'gpLqqAmount',
                   align: 'center',
-                  width: 100,
+                  width: 80,
                   customRender: function (text) { return (text || text == 0) ? ('¥' + text) : '--' }
                 },
                 {
                   title: '雨刮片',
                   dataIndex: 'gpYgpAmount',
                   align: 'center',
-                  width: 100,
+                  width: 80,
                   customRender: function (text) { return (text || text == 0) ? ('¥' + text) : '--' }
                 },
                 {
                   title: '刹车片',
                   dataIndex: 'gpScpAmount',
                   align: 'center',
-                  width: 100,
+                  width: 80,
                   customRender: function (text) { return (text || text == 0) ? ('¥' + text) : '--' }
                 }
               ]
@@ -261,35 +260,35 @@ export default {
               title: '汇箭',
               dataIndex: 'hjAmount',
               align: 'center',
-              width: 100,
+              width: 80,
               customRender: function (text) { return (text || text == 0) ? ('¥' + text) : '--' }
             },
             {
               title: '德路斯',
               dataIndex: 'dlsAmount',
               align: 'center',
-              width: 100,
+              width: 80,
               customRender: function (text) { return (text || text == 0) ? ('¥' + text) : '--' }
             },
             {
               title: '稳升',
               dataIndex: 'wsAmount',
               align: 'center',
-              width: 100,
+              width: 80,
               customRender: function (text) { return (text || text == 0) ? ('¥' + text) : '--' }
             },
             {
               title: 'TBU',
               dataIndex: 'tbuAmount',
               align: 'center',
-              width: 100,
+              width: 80,
               customRender: function (text) { return (text || text == 0) ? ('¥' + text) : '--' }
             },
             {
               title: '布瑞斯',
               dataIndex: 'brsAmount',
               align: 'center',
-              width: 100,
+              width: 80,
               customRender: function (text) { return (text || text == 0) ? ('¥' + text) : '--' }
             }
           ] },
@@ -300,53 +299,53 @@ export default {
               title: 'NGK',
               dataIndex: 'ngkAmount',
               align: 'center',
-              width: 100,
+              width: 80,
               customRender: function (text) { return (text || text == 0) ? ('¥' + text) : '--' }
             },
             {
               title: '飞利浦',
               dataIndex: 'flpAmount',
               align: 'center',
-              width: 100,
+              width: 80,
               customRender: function (text) { return (text || text == 0) ? ('¥' + text) : '--' }
             },
             {
               title: '车仆',
               dataIndex: 'cpAmount',
               align: 'center',
-              width: 100,
+              width: 80,
               customRender: function (text) { return (text || text == 0) ? ('¥' + text) : '--' }
             },
             {
               title: '瓦尔塔',
               dataIndex: 'wetAmount',
               align: 'center',
-              width: 100,
+              width: 80,
               customRender: function (text) { return (text || text == 0) ? ('¥' + text) : '--' }
             },
             {
               title: '雷贝斯托',
               dataIndex: 'lbstAmount',
               align: 'center',
-              width: 100,
+              width: 80,
               customRender: function (text) { return (text || text == 0) ? ('¥' + text) : '--' }
             },
             {
               title: '德尔福',
               dataIndex: 'defAmount',
               align: 'center',
-              width: 100,
+              width: 80,
               customRender: function (text) { return (text || text == 0) ? ('¥' + text) : '--' }
             },
             {
               title: '巴诺德',
               dataIndex: 'bndAmount',
               align: 'center',
-              width: 100,
+              width: 80,
               customRender: function (text) { return (text || text == 0) ? ('¥' + text) : '--' }
             }
           ] },
-        { title: '开单退货单合计金额', width: 200, dataIndex: 'sumAmount', align: 'center', customRender: function (text) { return (text || text == 0) ? ('¥' + text) : '--' } }
+        { title: '开单退货单合计金额', width: 90, dataIndex: 'sumAmount', align: 'center', customRender: function (text) { return (text || text == 0) ? ('¥' + text) : '--' } }
       ],
       // 加载数据方法 必须为 Promise 对象
       loadData: parameter => {

+ 25 - 26
src/views/reportData/salesAmountReport/list.vue

@@ -96,7 +96,7 @@
         :rowKey="(record) => record.id"
         :columns="columns"
         :data="loadData"
-        :scroll="{ x: 3220 }"
+        :scroll="{ x: 2170 }"
         bordered>
         <template slot="footer">
           <a-row>
@@ -172,11 +172,10 @@ export default {
       disabled: false, //  查询、重置按钮是否可操作
       exportLoading: false,
       columns: [
-        { title: '序号', dataIndex: 'no', width: 80, align: 'center', fixed: 'left' },
-        { title: '区域', dataIndex: 'dealer.subareaNameSet', width: 220, align: 'center', customRender: function (text) { return (text && text.length > 0) ? text.join('/') : '--' } },
-        { title: '省份', dataIndex: 'dealer.provinceName', width: 200, align: 'center', customRender: function (text) { return text || '--' } },
+        { title: '区域', dataIndex: 'dealer.subareaNameSet', width: 120, align: 'center', customRender: function (text) { return (text && text.length > 0) ? text.join('/') : '--' } },
+        { title: '省份', dataIndex: 'dealer.provinceName', width: 90, align: 'center', customRender: function (text) { return text || '--' } },
         { title: '客户名称', dataIndex: 'dealer.dealerName', align: 'center', customRender: function (text) { return text || '--' }, ellipsis: true },
-        { title: '客户级别', dataIndex: 'dealer.dealerLevelDictValue', width: 200, align: 'center', customRender: function (text) { return text || '--' } },
+        { title: '客户级别', dataIndex: 'dealer.dealerLevelDictValue', width: 120, align: 'center', customRender: function (text) { return text || '--' } },
         { title: '品牌',
           align: 'center',
           children: [
@@ -188,35 +187,35 @@ export default {
                   title: '滤清器',
                   dataIndex: 'jpLqqAmount',
                   align: 'center',
-                  width: 100,
+                  width: 80,
                   customRender: function (text) { return (text || text == 0) ? ('¥' + text) : '--' }
                 },
                 {
                   title: '雨刮片',
                   dataIndex: 'jpYgpAmount',
                   align: 'center',
-                  width: 100,
+                  width: 80,
                   customRender: function (text) { return (text || text == 0) ? ('¥' + text) : '--' }
                 },
                 {
                   title: '喇叭',
                   dataIndex: 'jpLbAmount',
                   align: 'center',
-                  width: 100,
+                  width: 80,
                   customRender: function (text) { return (text || text == 0) ? ('¥' + text) : '--' }
                 },
                 {
                   title: '刹车片',
                   dataIndex: 'jpScpAmount',
                   align: 'center',
-                  width: 100,
+                  width: 80,
                   customRender: function (text) { return (text || text == 0) ? ('¥' + text) : '--' }
                 },
                 {
                   title: '感应线',
                   dataIndex: 'jpGyxAmount',
                   align: 'center',
-                  width: 100,
+                  width: 80,
                   customRender: function (text) { return (text || text == 0) ? ('¥' + text) : '--' }
                 }
               ]
@@ -229,21 +228,21 @@ export default {
                   title: '滤清器',
                   dataIndex: 'gpLqqAmount',
                   align: 'center',
-                  width: 100,
+                  width: 80,
                   customRender: function (text) { return (text || text == 0) ? ('¥' + text) : '--' }
                 },
                 {
                   title: '雨刮片',
                   dataIndex: 'gpYgpAmount',
                   align: 'center',
-                  width: 100,
+                  width: 80,
                   customRender: function (text) { return (text || text == 0) ? ('¥' + text) : '--' }
                 },
                 {
                   title: '刹车片',
                   dataIndex: 'gpScpAmount',
                   align: 'center',
-                  width: 100,
+                  width: 80,
                   customRender: function (text) { return (text || text == 0) ? ('¥' + text) : '--' }
                 }
               ]
@@ -252,35 +251,35 @@ export default {
               title: '汇箭',
               dataIndex: 'hjAmount',
               align: 'center',
-              width: 100,
+              width: 80,
               customRender: function (text) { return (text || text == 0) ? ('¥' + text) : '--' }
             },
             {
               title: '德路斯',
               dataIndex: 'dlsAmount',
               align: 'center',
-              width: 100,
+              width: 80,
               customRender: function (text) { return (text || text == 0) ? ('¥' + text) : '--' }
             },
             {
               title: '稳升',
               dataIndex: 'wsAmount',
               align: 'center',
-              width: 100,
+              width: 80,
               customRender: function (text) { return (text || text == 0) ? ('¥' + text) : '--' }
             },
             {
               title: 'TBU',
               dataIndex: 'tbuAmount',
               align: 'center',
-              width: 100,
+              width: 80,
               customRender: function (text) { return (text || text == 0) ? ('¥' + text) : '--' }
             },
             {
               title: '布瑞斯',
               dataIndex: 'brsAmount',
               align: 'center',
-              width: 100,
+              width: 80,
               customRender: function (text) { return (text || text == 0) ? ('¥' + text) : '--' }
             }
           ] },
@@ -291,53 +290,53 @@ export default {
               title: 'NGK',
               dataIndex: 'ngkAmount',
               align: 'center',
-              width: 100,
+              width: 80,
               customRender: function (text) { return (text || text == 0) ? ('¥' + text) : '--' }
             },
             {
               title: '飞利浦',
               dataIndex: 'flpAmount',
               align: 'center',
-              width: 100,
+              width: 80,
               customRender: function (text) { return (text || text == 0) ? ('¥' + text) : '--' }
             },
             {
               title: '车仆',
               dataIndex: 'cpAmount',
               align: 'center',
-              width: 100,
+              width: 80,
               customRender: function (text) { return (text || text == 0) ? ('¥' + text) : '--' }
             },
             {
               title: '瓦尔塔',
               dataIndex: 'wetAmount',
               align: 'center',
-              width: 100,
+              width: 80,
               customRender: function (text) { return (text || text == 0) ? ('¥' + text) : '--' }
             },
             {
               title: '雷贝斯托',
               dataIndex: 'lbstAmount',
               align: 'center',
-              width: 100,
+              width: 80,
               customRender: function (text) { return (text || text == 0) ? ('¥' + text) : '--' }
             },
             {
               title: '德尔福',
               dataIndex: 'defAmount',
               align: 'center',
-              width: 100,
+              width: 80,
               customRender: function (text) { return (text || text == 0) ? ('¥' + text) : '--' }
             },
             {
               title: '巴诺德',
               dataIndex: 'bndAmount',
               align: 'center',
-              width: 100,
+              width: 80,
               customRender: function (text) { return (text || text == 0) ? ('¥' + text) : '--' }
             }
           ] },
-        { title: '开单销售合计金额', width: 200, dataIndex: 'totalAmount', align: 'center', customRender: function (text) { return (text || text == 0) ? ('¥' + text) : '--' } }
+        { title: '开单销售合计金额', width: 90, dataIndex: 'totalAmount', align: 'center', customRender: function (text) { return (text || text == 0) ? ('¥' + text) : '--' } }
       ],
       // 加载数据方法 必须为 Promise 对象
       loadData: parameter => {

+ 7 - 8
src/views/reportData/salesDetails/list.vue

@@ -140,7 +140,7 @@
         :rowKey="(record) => record.id"
         :columns="columns"
         :data="loadData"
-        :scroll="{ x: 2720 }"
+        :scroll="{ x: 2480 }"
         :defaultLoadData="false"
         bordered>
         <template slot="footer">
@@ -218,14 +218,13 @@ export default {
       disabled: false, //  查询、重置按钮是否可操作
       exportLoading: false,
       columns: [
-        { title: '序号', dataIndex: 'no', width: 60, align: 'center', fixed: 'left' },
-        { title: '区域', dataIndex: 'subareaNames', width: 150, align: 'center', customRender: function (text) { return text || '--' } },
+        { title: '区域', dataIndex: 'subareaNames', width: 120, align: 'center', customRender: function (text) { return text || '--' } },
         { title: '销售单号', dataIndex: 'salesBillNo', width: 160, align: 'center', customRender: function (text) { return text || '--' } },
-        { title: '省份', dataIndex: 'dealerProvinceName', width: 100, align: 'center', customRender: function (text) { return text || '--' }, ellipsis: true },
+        { title: '省份', dataIndex: 'dealerProvinceName', width: 90, align: 'center', customRender: function (text) { return text || '--' }, ellipsis: true },
         { title: '客户名称', dataIndex: 'dealerName', align: 'center', customRender: function (text) { return text || '--' }, ellipsis: true },
-        { title: '客户级别', dataIndex: 'dealerLevelDictValue', width: 150, align: 'center', customRender: function (text) { return text || '--' }, ellipsis: true },
-        { title: '直接绑定客户名称', dataIndex: 'directDealerName', width: 150, align: 'center', customRender: function (text) { return text || '--' }, ellipsis: true },
-        { title: '间接绑定客户名称', dataIndex: 'indirectDealerName', width: 150, align: 'center', customRender: function (text) { return text || '--' }, ellipsis: true },
+        { title: '客户级别', dataIndex: 'dealerLevelDictValue', width: 120, align: 'center', customRender: function (text) { return text || '--' }, ellipsis: true },
+        { title: '直接绑定客户名称', dataIndex: 'directDealerName', width: 120, align: 'center', customRender: function (text) { return text || '--' }, ellipsis: true },
+        { title: '间接绑定客户名称', dataIndex: 'indirectDealerName', width: 120, align: 'center', customRender: function (text) { return text || '--' }, ellipsis: true },
         { title: '开单日期', dataIndex: 'createDate', width: 130, align: 'center', customRender: function (text) { return text || '--' } },
         { title: '销售日期', dataIndex: 'salesTime', width: 130, align: 'center', customRender: function (text) { return text || '--' } },
         { title: '品牌', dataIndex: 'productBrandName', width: 130, align: 'center', customRender: function (text) { return text || '--' }, ellipsis: true },
@@ -242,7 +241,7 @@ export default {
         { title: '间接差价', dataIndex: 'indirectRebateAmount', width: 70, align: 'center', customRender: function (text) { return ((text || text == 0) ? text : '--') } },
         { title: '折后单价', dataIndex: 'discountedPrice', width: 70, align: 'center', customRender: function (text) { return ((text || text == 0) ? text : '--') } },
         { title: '折扣金额', dataIndex: 'discountAmount', width: 70, align: 'center', customRender: function (text) { return ((text || text == 0) ? text : '--') } },
-        { title: '操作员', dataIndex: 'operatorName', align: 'center', customRender: function (text) { return text || '--' }, ellipsis: true }
+        { title: '操作员', dataIndex: 'operatorName', align: 'left', customRender: function (text) { return text || '--' }, ellipsis: true }
       ],
       // 加载数据方法 必须为 Promise 对象
       loadData: parameter => {

+ 4 - 5
src/views/reportData/salesOrderTotal/list.vue

@@ -102,7 +102,7 @@
         :rowKey="(record) => record.id"
         :columns="columns"
         :data="loadData"
-        :scroll="{ x: 2110 }"
+        :scroll="{ x: 1990 }"
         :defaultLoadData="false"
         bordered>
         <template slot="footer">
@@ -175,14 +175,13 @@ export default {
       disabled: false, //  查询、重置按钮是否可操作
       exportLoading: false,
       columns: [
-        { title: '序号', dataIndex: 'no', width: 60, align: 'center', fixed: 'left' },
         { title: '销售单号', dataIndex: 'salesBillNo', width: 160, align: 'center', customRender: function (text) { return text || '--' } },
         { title: '开单日期', dataIndex: 'createDate', width: 130, align: 'center', customRender: function (text) { return text || '--' } },
         { title: '销售日期', dataIndex: 'auditDate', width: 130, align: 'center', customRender: function (text) { return text || '--' } },
         { title: '客户名称', dataIndex: 'dealerName', align: 'center', customRender: function (text) { return text || '--' }, ellipsis: true },
-        { title: '客户级别', dataIndex: 'dealerLevelDictValue', width: 150, align: 'center', customRender: function (text) { return text || '--' }, ellipsis: true },
-        { title: '直接绑定客户名称', dataIndex: 'directDealerName', width: 150, align: 'center', customRender: function (text) { return text || '--' }, ellipsis: true },
-        { title: '间接绑定客户名称', dataIndex: 'indirectDealerName', width: 150, align: 'center', customRender: function (text) { return text || '--' }, ellipsis: true },
+        { title: '客户级别', dataIndex: 'dealerLevelDictValue', width: 120, align: 'center', customRender: function (text) { return text || '--' }, ellipsis: true },
+        { title: '直接绑定客户名称', dataIndex: 'directDealerName', width: 120, align: 'center', customRender: function (text) { return text || '--' }, ellipsis: true },
+        { title: '间接绑定客户名称', dataIndex: 'indirectDealerName', width: 120, align: 'center', customRender: function (text) { return text || '--' }, ellipsis: true },
         { title: '总数量', dataIndex: 'totalQty', width: 70, align: 'center', customRender: function (text) { return ((text || text == 0) ? text : '--') } },
         { title: '实售价', dataIndex: 'totalRealSaleAmount', width: 70, align: 'center', customRender: function (text) { return ((text || text == 0) ? text : '--') } },
         { title: '开单价', dataIndex: 'totalAmount', width: 70, align: 'center', customRender: function (text) { return ((text || text == 0) ? text : '--') } },

+ 28 - 29
src/views/reportData/salesReturnDetailReport/list.vue

@@ -140,7 +140,7 @@
         :rowKey="(record) => record.id"
         :columns="columns"
         :data="loadData"
-        :scroll="{ x: 4450 }"
+        :scroll="{ x: 2960 }"
         :defaultLoadData="false"
         bordered>
         <template slot="footer">
@@ -192,7 +192,7 @@ import { productTypeQuery } from '@/api/productType'
 import ProductBrand from '@/views/common/productBrand.js'
 import { reportSalesReturnDetailList, reportSalesReturnDetailCount, reportSalesReturnDetailExport } from '@/api/reportData'
 export default {
-  components: { STable, VSelect, rangeDateTime, custList, subarea,ProductBrand },
+  components: { STable, VSelect, rangeDateTime, custList, subarea, ProductBrand },
   data () {
     return {
       spinning: false,
@@ -227,35 +227,34 @@ export default {
       disabled: false, //  查询、重置按钮是否可操作
       exportLoading: false,
       columns: [
-        { title: '序号', dataIndex: 'no', width: 80, align: 'center', fixed: 'left' },
-        { title: '区域', dataIndex: 'subareaNames', width: 200, align: 'center', customRender: function (text) { return text || '--' } },
-        { title: '退货单号', dataIndex: 'salesReturnBillNo', width: 220, align: 'center', customRender: function (text) { return text || '--' } },
-        { title: '省份', dataIndex: 'dealerProvinceName', width: 200, align: 'center', customRender: function (text) { return text || '--' }, ellipsis: true },
+        { title: '区域', dataIndex: 'subareaNames', width: 120, align: 'center', customRender: function (text) { return text || '--' } },
+        { title: '退货单号', dataIndex: 'salesReturnBillNo', width: 160, align: 'center', customRender: function (text) { return text || '--' } },
+        { title: '省份', dataIndex: 'dealerProvinceName', width: 90, align: 'center', customRender: function (text) { return text || '--' }, ellipsis: true },
         { title: '客户名称', dataIndex: 'dealerName', align: 'center', customRender: function (text) { return text || '--' }, ellipsis: true },
-        { title: '客户级别', dataIndex: 'dealerLevelDictValue', width: 200, align: 'center', customRender: function (text) { return text || '--' }, ellipsis: true },
-        { title: '直接绑定客户名称', dataIndex: 'directDealerName', width: 200, align: 'center', customRender: function (text) { return text || '--' }, ellipsis: true },
-        { title: '间接绑定客户名称', dataIndex: 'indirectDealerName', width: 200, align: 'center', customRender: function (text) { return text || '--' }, ellipsis: true },
-        { title: '退货完成日期', dataIndex: 'salesReturnDate', width: 160, align: 'center', customRender: function (text) { return text || '--' } },
-        { title: '品牌', dataIndex: 'productBrandName', width: 200, align: 'center', customRender: function (text) { return text || '--' }, ellipsis: true },
-        { title: '二级分类', dataIndex: 'productTypeName2', width: 200, align: 'center', customRender: function (text) { return text || '--' } },
+        { title: '客户级别', dataIndex: 'dealerLevelDictValue', width: 120, align: 'center', customRender: function (text) { return text || '--' }, ellipsis: true },
+        { title: '直接绑定客户名称', dataIndex: 'directDealerName', width: 120, align: 'left', customRender: function (text) { return text || '--' }, ellipsis: true },
+        { title: '间接绑定客户名称', dataIndex: 'indirectDealerName', width: 120, align: 'left', customRender: function (text) { return text || '--' }, ellipsis: true },
+        { title: '退货完成日期', dataIndex: 'salesReturnDate', width: 130, align: 'center', customRender: function (text) { return text || '--' } },
+        { title: '品牌', dataIndex: 'productBrandName', width: 130, align: 'center', customRender: function (text) { return text || '--' }, ellipsis: true },
+        { title: '二级分类', dataIndex: 'productTypeName2', width: 130, align: 'center', customRender: function (text) { return text || '--' } },
         { title: '产品名称', dataIndex: 'productName', align: 'center', customRender: function (text) { return text || '--' }, ellipsis: true },
-        { title: '产品编码', dataIndex: 'productCode', width: 200, align: 'center', customRender: function (text) { return text || '--' } },
-        { title: '单位', dataIndex: 'productUnit', width: 100, align: 'center', customRender: function (text) { return text || '--' } },
-        { title: '退货数量', dataIndex: 'qty', width: 120, align: 'center', customRender: function (text) { return ((text || text == 0) ? text : '--') } },
-        { title: '返库数量', dataIndex: 'backStockQty', width: 120, align: 'center', customRender: function (text) { return ((text || text == 0) ? text : '--') } },
-        { title: '坏件数量', dataIndex: 'badQty', width: 120, align: 'center', customRender: function (text) { return ((text || text == 0) ? text : '--') } },
-        { title: '退货开单价', dataIndex: 'price', width: 120, align: 'center', customRender: function (text) { return ((text || text == 0) ? text : '--') } },
-        { title: '退货开单金额', dataIndex: 'totalPrice', width: 120, align: 'center', customRender: function (text) { return ((text || text == 0) ? text : '--') } },
-        { title: '退货实售价', dataIndex: 'realPrice', width: 140, align: 'center', customRender: function (text) { return ((text || text == 0) ? text : '--') } },
-        { title: '退货实售金额', dataIndex: 'totalRealAmount', width: 120, align: 'center', customRender: function (text) { return ((text || text == 0) ? text : '--') } },
-        { title: '市级价金额', dataIndex: 'totalWholesalePrice2', width: 120, align: 'center', customRender: function (text) { return ((text || text == 0) ? text : '--') } },
-        { title: '直接差价', dataIndex: 'directRebateAmount', width: 120, align: 'center', customRender: function (text) { return ((text || text == 0) ? text : '--') } },
-        { title: '间接差价', dataIndex: 'indirectRebateAmount', width: 120, align: 'center', customRender: function (text) { return ((text || text == 0) ? text : '--') } },
-        { title: '再入库单价', dataIndex: 'cost', width: 120, align: 'center', customRender: function (text) { return ((text || text == 0) ? text : '--') } },
-        { title: '正常退货数量', dataIndex: 'normalQty', width: 120, align: 'center', customRender: function (text) { return ((text || text == 0) ? text : '--') } },
-        { title: '正常退货金额', dataIndex: 'totalNormalPrice', width: 120, align: 'center', customRender: function (text) { return ((text || text == 0) ? text : '--') } },
-        { title: '正常再入库金额', dataIndex: 'totalNormalCost', width: 120, align: 'center', customRender: function (text) { return ((text || text == 0) ? text : '--') } },
-        { title: '正常退货入库差额', dataIndex: 'totalNormalBalance', width: 150, align: 'center', customRender: function (text) { return ((text || text == 0) ? text : '--') } }
+        { title: '产品编码', dataIndex: 'productCode', width: 150, align: 'center', customRender: function (text) { return text || '--' } },
+        { title: '单位', dataIndex: 'productUnit', width: 50, align: 'center', customRender: function (text) { return text || '--' } },
+        { title: '退货数量', dataIndex: 'qty', width: 80, align: 'center', customRender: function (text) { return ((text || text == 0) ? text : '--') } },
+        { title: '返库数量', dataIndex: 'backStockQty', width: 80, align: 'center', customRender: function (text) { return ((text || text == 0) ? text : '--') } },
+        { title: '坏件数量', dataIndex: 'badQty', width: 80, align: 'center', customRender: function (text) { return ((text || text == 0) ? text : '--') } },
+        { title: '退货开单价', dataIndex: 'price', width: 80, align: 'center', customRender: function (text) { return ((text || text == 0) ? text : '--') } },
+        { title: '退货开单金额', dataIndex: 'totalPrice', width: 90, align: 'center', customRender: function (text) { return ((text || text == 0) ? text : '--') } },
+        { title: '退货实售价', dataIndex: 'realPrice', width: 90, align: 'center', customRender: function (text) { return ((text || text == 0) ? text : '--') } },
+        { title: '退货实售金额', dataIndex: 'totalRealAmount', width: 90, align: 'center', customRender: function (text) { return ((text || text == 0) ? text : '--') } },
+        { title: '市级价金额', dataIndex: 'totalWholesalePrice2', width: 90, align: 'center', customRender: function (text) { return ((text || text == 0) ? text : '--') } },
+        { title: '直接差价', dataIndex: 'directRebateAmount', width: 80, align: 'center', customRender: function (text) { return ((text || text == 0) ? text : '--') } },
+        { title: '间接差价', dataIndex: 'indirectRebateAmount', width: 80, align: 'center', customRender: function (text) { return ((text || text == 0) ? text : '--') } },
+        { title: '再入库单价', dataIndex: 'cost', width: 90, align: 'center', customRender: function (text) { return ((text || text == 0) ? text : '--') } },
+        { title: '正常退货数量', dataIndex: 'normalQty', width: 100, align: 'center', customRender: function (text) { return ((text || text == 0) ? text : '--') } },
+        { title: '正常退货金额', dataIndex: 'totalNormalPrice', width: 100, align: 'center', customRender: function (text) { return ((text || text == 0) ? text : '--') } },
+        { title: '正常再入库金额', dataIndex: 'totalNormalCost', width: 100, align: 'center', customRender: function (text) { return ((text || text == 0) ? text : '--') } },
+        { title: '正常退货入库差额', dataIndex: 'totalNormalBalance', width: 110, align: 'center', customRender: function (text) { return ((text || text == 0) ? text : '--') } }
       ],
       // 加载数据方法 必须为 Promise 对象
       loadData: parameter => {

+ 25 - 26
src/views/reportData/salesReturnReport/list.vue

@@ -95,7 +95,7 @@
         :rowKey="(record) => record.id"
         :columns="columns"
         :data="loadData"
-        :scroll="{ x: 3120, y: tableHeight }"
+        :scroll="{ x: 2170, y: tableHeight }"
         :defaultLoadData="false"
         bordered>
         <template slot="footer">
@@ -175,11 +175,10 @@ export default {
       addrCityList: [], //  市下拉
       addrDistrictList: [], //  区下拉
       columns: [
-        { title: '序号', dataIndex: 'no', width: 80, align: 'center', fixed: 'left' },
-        { title: '区域', dataIndex: 'dealer.subareaNameSet', width: 220, align: 'center', customRender: function (text) { return (text && text.length > 0) ? text.join('/') : '--' } },
-        { title: '省份', dataIndex: 'dealer.provinceName', width: 200, align: 'center', customRender: function (text) { return text || '--' } },
+        { title: '区域', dataIndex: 'dealer.subareaNameSet', width: 120, align: 'center', customRender: function (text) { return (text && text.length > 0) ? text.join('/') : '--' } },
+        { title: '省份', dataIndex: 'dealer.provinceName', width: 90, align: 'center', customRender: function (text) { return text || '--' } },
         { title: '客户名称', dataIndex: 'dealer.dealerName', align: 'center', customRender: function (text) { return text || '--' }, ellipsis: true },
-        { title: '客户级别', dataIndex: 'dealer.dealerLevelDictValue', width: 200, align: 'center', customRender: function (text) { return text || '--' } },
+        { title: '客户级别', dataIndex: 'dealer.dealerLevelDictValue', width: 120, align: 'center', customRender: function (text) { return text || '--' } },
         { title: '品牌',
           align: 'center',
           children: [
@@ -191,35 +190,35 @@ export default {
                   title: '滤清器',
                   dataIndex: 'jpLqqAmount',
                   align: 'center',
-                  width: 100,
+                  width: 80,
                   customRender: function (text) { return (text || text == 0) ? ('¥' + text) : '--' }
                 },
                 {
                   title: '雨刮片',
                   dataIndex: 'jpYgpAmount',
                   align: 'center',
-                  width: 100,
+                  width: 80,
                   customRender: function (text) { return (text || text == 0) ? ('¥' + text) : '--' }
                 },
                 {
                   title: '喇叭',
                   dataIndex: 'jpLbAmount',
                   align: 'center',
-                  width: 100,
+                  width: 80,
                   customRender: function (text) { return (text || text == 0) ? ('¥' + text) : '--' }
                 },
                 {
                   title: '刹车片',
                   dataIndex: 'jpScpAmount',
                   align: 'center',
-                  width: 100,
+                  width: 80,
                   customRender: function (text) { return (text || text == 0) ? ('¥' + text) : '--' }
                 },
                 {
                   title: '感应线',
                   dataIndex: 'jpGyxAmount',
                   align: 'center',
-                  width: 100,
+                  width: 80,
                   customRender: function (text) { return (text || text == 0) ? ('¥' + text) : '--' }
                 }
               ]
@@ -232,21 +231,21 @@ export default {
                   title: '滤清器',
                   dataIndex: 'gpLqqAmount',
                   align: 'center',
-                  width: 100,
+                  width: 80,
                   customRender: function (text) { return (text || text == 0) ? ('¥' + text) : '--' }
                 },
                 {
                   title: '雨刮片',
                   dataIndex: 'gpYgpAmount',
                   align: 'center',
-                  width: 100,
+                  width: 80,
                   customRender: function (text) { return (text || text == 0) ? ('¥' + text) : '--' }
                 },
                 {
                   title: '刹车片',
                   dataIndex: 'gpScpAmount',
                   align: 'center',
-                  width: 100,
+                  width: 80,
                   customRender: function (text) { return (text || text == 0) ? ('¥' + text) : '--' }
                 }
               ]
@@ -255,35 +254,35 @@ export default {
               title: '汇箭',
               dataIndex: 'hjAmount',
               align: 'center',
-              width: 100,
+              width: 80,
               customRender: function (text) { return (text || text == 0) ? ('¥' + text) : '--' }
             },
             {
               title: '德路斯',
               dataIndex: 'dlsAmount',
               align: 'center',
-              width: 100,
+              width: 80,
               customRender: function (text) { return (text || text == 0) ? ('¥' + text) : '--' }
             },
             {
               title: '稳升',
               dataIndex: 'wsAmount',
               align: 'center',
-              width: 100,
+              width: 80,
               customRender: function (text) { return (text || text == 0) ? ('¥' + text) : '--' }
             },
             {
               title: 'TBU',
               dataIndex: 'tbuAmount',
               align: 'center',
-              width: 100,
+              width: 80,
               customRender: function (text) { return (text || text == 0) ? ('¥' + text) : '--' }
             },
             {
               title: '布瑞斯',
               dataIndex: 'brsAmount',
               align: 'center',
-              width: 100,
+              width: 80,
               customRender: function (text) { return (text || text == 0) ? ('¥' + text) : '--' }
             }
           ] },
@@ -294,53 +293,53 @@ export default {
               title: 'NGK',
               dataIndex: 'ngkAmount',
               align: 'center',
-              width: 100,
+              width: 80,
               customRender: function (text) { return (text || text == 0) ? ('¥' + text) : '--' }
             },
             {
               title: '飞利浦',
               dataIndex: 'flpAmount',
               align: 'center',
-              width: 100,
+              width: 80,
               customRender: function (text) { return (text || text == 0) ? ('¥' + text) : '--' }
             },
             {
               title: '车仆',
               dataIndex: 'cpAmount',
               align: 'center',
-              width: 100,
+              width: 80,
               customRender: function (text) { return (text || text == 0) ? ('¥' + text) : '--' }
             },
             {
               title: '瓦尔塔',
               dataIndex: 'wetAmount',
               align: 'center',
-              width: 100,
+              width: 80,
               customRender: function (text) { return (text || text == 0) ? ('¥' + text) : '--' }
             },
             {
               title: '雷贝斯托',
               dataIndex: 'lbstAmount',
               align: 'center',
-              width: 100,
+              width: 80,
               customRender: function (text) { return (text || text == 0) ? ('¥' + text) : '--' }
             },
             {
               title: '德尔福',
               dataIndex: 'defAmount',
               align: 'center',
-              width: 100,
+              width: 80,
               customRender: function (text) { return (text || text == 0) ? ('¥' + text) : '--' }
             },
             {
               title: '巴诺德',
               dataIndex: 'bndAmount',
               align: 'center',
-              width: 100,
+              width: 80,
               customRender: function (text) { return (text || text == 0) ? ('¥' + text) : '--' }
             }
           ] },
-        { title: '实售退货合计金额', width: 200, dataIndex: 'sumAmount', align: 'center', customRender: function (text) { return (text || text == 0) ? ('¥' + text) : '--' } }
+        { title: '实售退货合计金额', width: 90, dataIndex: 'sumAmount', align: 'center', customRender: function (text) { return (text || text == 0) ? ('¥' + text) : '--' } }
       ],
       // 加载数据方法 必须为 Promise 对象
       loadData: parameter => {

+ 20 - 21
src/views/reportData/salesReturnsReport/list.vue

@@ -22,7 +22,7 @@
                 <a-input id="salesReturnsReportList-salesReturnBillNo" v-model.trim="queryParam.salesReturnBillNo" allowClear placeholder="请输入退货单号"/>
               </a-form-model-item>
             </a-col>
-            <a-col :md="5" :sm="24">
+            <a-col :md="4" :sm="24">
               <a-form-model-item label="所在区域">
                 <subarea id="salesReturnsReportList-subareaSn" v-model="queryParam.subareaSn"></subarea>
               </a-form-model-item>
@@ -33,7 +33,7 @@
                   <custList id="salesReturnsReportList-dealerName" ref="custList" :itemSn="queryParam.dealerSn" @change="custChange"></custList>
                 </a-form-model-item>
               </a-col>
-              <a-col :md="6" :sm="24">
+              <a-col :md="5" :sm="24">
                 <a-form-model-item label="客户级别">
                   <v-select
                     v-model="queryParam.dealerLevel"
@@ -72,7 +72,7 @@
                 </a-row>
               </a-col>
             </template>
-            <a-col :md="7" :sm="24" style="margin-bottom: 10px;">
+            <a-col :md="8" :sm="24" style="margin-bottom: 10px;">
               <a-button
                 type="primary"
                 class="button-info"
@@ -106,7 +106,7 @@
         :rowKey="(record) => record.id"
         :columns="columns"
         :data="loadData"
-        :scroll="{ x: 2510 }"
+        :scroll="{ x: 1740 }"
         :defaultLoadData="false"
         bordered>
         <template slot="footer">
@@ -173,23 +173,22 @@ export default {
       },
       disabled: false, //  查询、重置按钮是否可操作
       columns: [
-        { title: '序号', dataIndex: 'no', width: 80, align: 'center', fixed: 'left' },
-        { title: '退货单号', dataIndex: 'salesReturnBillNo', width: 220, align: 'center', customRender: function (text) { return text || '--' } },
-        { title: '退货完成日期', dataIndex: 'salesReturnDate', width: 160, align: 'center', customRender: function (text) { return text || '--' } },
-        { title: '客户名称', dataIndex: 'dealerName', align: 'center', customRender: function (text) { return text || '--' }, ellipsis: true },
-        { title: '客户级别', dataIndex: 'dealerLevelDictValue', width: 200, align: 'center', customRender: function (text) { return text || '--' } },
-        { title: '直接绑定客户名称', dataIndex: 'directDealerName', width: 200, align: 'center', customRender: function (text) { return text || '--' } },
-        { title: '间接绑定客户名称', dataIndex: 'indirectDealerName', width: 200, align: 'center', customRender: function (text) { return text || '--' } },
-        { title: '退货数量', dataIndex: 'totalQty', width: 120, align: 'center', customRender: function (text) { return ((text || text == 0) ? text : '--') } },
-        { title: '开单退货金额', dataIndex: 'totalAmount', width: 120, align: 'center', customRender: function (text) { return ((text || text == 0) ? text : '--') } },
-        { title: '经销商价', dataIndex: 'totalWholesalePrice2', width: 120, align: 'center', customRender: function (text) { return ((text || text == 0) ? text : '--') } },
-        { title: '服务中心价', dataIndex: 'totalWholesalePrice1', width: 120, align: 'center', customRender: function (text) { return ((text || text == 0) ? text : '--') } },
-        { title: '特约加盟店价', dataIndex: 'totalWholesalePrice3', width: 120, align: 'center', ellipsis: true, customRender: function (text) { return ((text || text == 0) ? text : '--') } },
-        { title: '实售退货金额', dataIndex: 'totalRealAmount', width: 120, align: 'center', ellipsis: true, customRender: function (text) { return ((text || text == 0) ? text : '--') } },
-        { title: '直接差价', dataIndex: 'totalDirectRebate', width: 120, align: 'center', customRender: function (text) { return ((text || text == 0) ? text : '--') } },
-        { title: '间接差价', dataIndex: 'totalIndirectRebate', width: 120, align: 'center', customRender: function (text) { return ((text || text == 0) ? text : '--') } },
-        { title: '坏件数量', dataIndex: 'totalBadQty', width: 120, align: 'center', customRender: function (text) { return ((text || text == 0) ? text : '--') } },
-        { title: '操作员', dataIndex: 'operatorName', width: 150, align: 'center', customRender: function (text) { return text || '--' }, ellipsis: true }
+        { title: '退货单号', dataIndex: 'salesReturnBillNo', width: 160, align: 'center', customRender: function (text) { return text || '--' } },
+        { title: '退货完成日期', dataIndex: 'salesReturnDate', width: 130, align: 'center', customRender: function (text) { return text || '--' } },
+        { title: '客户名称', dataIndex: 'dealerName', align: 'left', customRender: function (text) { return text || '--' }, ellipsis: true },
+        { title: '客户级别', dataIndex: 'dealerLevelDictValue', width: 120, align: 'center', customRender: function (text) { return text || '--' } },
+        { title: '直接绑定客户名称', dataIndex: 'directDealerName', width: 120, align: 'left', customRender: function (text) { return text || '--' }, ellipsis: true },
+        { title: '间接绑定客户名称', dataIndex: 'indirectDealerName', width: 120, align: 'left', customRender: function (text) { return text || '--' }, ellipsis: true },
+        { title: '退货数量', dataIndex: 'totalQty', width: 90, align: 'center', customRender: function (text) { return ((text || text == 0) ? text : '--') } },
+        { title: '开单退货金额', dataIndex: 'totalAmount', width: 90, align: 'center', customRender: function (text) { return ((text || text == 0) ? text : '--') } },
+        { title: '经销商价', dataIndex: 'totalWholesalePrice2', width: 90, align: 'center', customRender: function (text) { return ((text || text == 0) ? text : '--') } },
+        { title: '服务中心价', dataIndex: 'totalWholesalePrice1', width: 90, align: 'center', customRender: function (text) { return ((text || text == 0) ? text : '--') } },
+        { title: '特约加盟店价', dataIndex: 'totalWholesalePrice3', width: 90, align: 'center', customRender: function (text) { return ((text || text == 0) ? text : '--') } },
+        { title: '实售退货金额', dataIndex: 'totalRealAmount', width: 90, align: 'center', customRender: function (text) { return ((text || text == 0) ? text : '--') } },
+        { title: '直接差价', dataIndex: 'totalDirectRebate', width: 90, align: 'center', customRender: function (text) { return ((text || text == 0) ? text : '--') } },
+        { title: '间接差价', dataIndex: 'totalIndirectRebate', width: 90, align: 'center', customRender: function (text) { return ((text || text == 0) ? text : '--') } },
+        { title: '坏件数量', dataIndex: 'totalBadQty', width: 90, align: 'center', customRender: function (text) { return ((text || text == 0) ? text : '--') } },
+        { title: '操作员', dataIndex: 'operatorName', width: 130, align: 'center', customRender: function (text) { return text || '--' }, ellipsis: true }
       ],
       // 加载数据方法 必须为 Promise 对象
       loadData: parameter => {

+ 27 - 28
src/views/reportData/salesSlipReport/list.vue

@@ -101,7 +101,7 @@
         :rowKey="(record) => record.id"
         :columns="columns"
         :data="loadData"
-        :scroll="{ x: 3320 }"
+        :scroll="{ x: 2330 }"
         bordered>
         <template slot="footer">
           <a-row>
@@ -178,12 +178,11 @@ export default {
       disabled: false, //  查询、重置按钮是否可操作
       exportLoading: false,
       columns: [
-        { title: '序号', dataIndex: 'no', width: 80, align: 'center', fixed: 'left' },
-        { title: '区域', dataIndex: 'dealer.subareaNameSet', width: 220, align: 'center', customRender: function (text) { return (text && text.length > 0) ? text.join('/') : '--' } },
-        { title: '销售单号', dataIndex: 'salesBillNo', width: 220, align: 'center', customRender: function (text) { return text || '--' } },
-        { title: '省份', dataIndex: 'dealer.provinceName', width: 200, align: 'center', customRender: function (text) { return text || '--' } },
-        { title: '客户名称', dataIndex: 'dealer.dealerName', align: 'center', customRender: function (text) { return text || '--' } },
-        { title: '客户级别', dataIndex: 'dealer.dealerLevelDictValue', width: 200, align: 'center', customRender: function (text) { return text || '--' } },
+        { title: '区域', dataIndex: 'dealer.subareaNameSet', width: 120, align: 'center', customRender: function (text) { return (text && text.length > 0) ? text.join('/') : '--' } },
+        { title: '销售单号', dataIndex: 'salesBillNo', width: 160, align: 'center', customRender: function (text) { return text || '--' } },
+        { title: '省份', dataIndex: 'dealer.provinceName', width: 90, align: 'center', customRender: function (text) { return text || '--' }, ellipsis: true },
+        { title: '客户名称', dataIndex: 'dealer.dealerName', align: 'left', customRender: function (text) { return text || '--' }, ellipsis: true },
+        { title: '客户级别', dataIndex: 'dealer.dealerLevelDictValue', width: 120, align: 'center', customRender: function (text) { return text || '--' } },
         { title: '品牌',
           align: 'center',
           children: [
@@ -195,35 +194,35 @@ export default {
                   title: '滤清器',
                   dataIndex: 'jpLqqAmount',
                   align: 'center',
-                  width: 100,
+                  width: 80,
                   customRender: function (text) { return (text || text == 0) ? ('¥' + text) : '--' }
                 },
                 {
                   title: '雨刮片',
                   dataIndex: 'jpYgpAmount',
                   align: 'center',
-                  width: 100,
+                  width: 80,
                   customRender: function (text) { return (text || text == 0) ? ('¥' + text) : '--' }
                 },
                 {
                   title: '喇叭',
                   dataIndex: 'jpLbAmount',
                   align: 'center',
-                  width: 100,
+                  width: 80,
                   customRender: function (text) { return (text || text == 0) ? ('¥' + text) : '--' }
                 },
                 {
                   title: '刹车片',
                   dataIndex: 'jpScpAmount',
                   align: 'center',
-                  width: 100,
+                  width: 80,
                   customRender: function (text) { return (text || text == 0) ? ('¥' + text) : '--' }
                 },
                 {
                   title: '感应线',
                   dataIndex: 'jpGyxAmount',
                   align: 'center',
-                  width: 100,
+                  width: 80,
                   customRender: function (text) { return (text || text == 0) ? ('¥' + text) : '--' }
                 }
               ]
@@ -236,21 +235,21 @@ export default {
                   title: '滤清器',
                   dataIndex: 'gpLqqAmount',
                   align: 'center',
-                  width: 100,
+                  width: 80,
                   customRender: function (text) { return (text || text == 0) ? ('¥' + text) : '--' }
                 },
                 {
                   title: '雨刮片',
                   dataIndex: 'gpYgpAmount',
                   align: 'center',
-                  width: 100,
+                  width: 80,
                   customRender: function (text) { return (text || text == 0) ? ('¥' + text) : '--' }
                 },
                 {
                   title: '刹车片',
                   dataIndex: 'gpScpAmount',
                   align: 'center',
-                  width: 100,
+                  width: 80,
                   customRender: function (text) { return (text || text == 0) ? ('¥' + text) : '--' }
                 }
               ]
@@ -259,35 +258,35 @@ export default {
               title: '汇箭',
               dataIndex: 'hjAmount',
               align: 'center',
-              width: 100,
+              width: 80,
               customRender: function (text) { return (text || text == 0) ? ('¥' + text) : '--' }
             },
             {
               title: '德路斯',
               dataIndex: 'dlsAmount',
               align: 'center',
-              width: 100,
+              width: 80,
               customRender: function (text) { return (text || text == 0) ? ('¥' + text) : '--' }
             },
             {
               title: '稳升',
               dataIndex: 'wsAmount',
               align: 'center',
-              width: 100,
+              width: 80,
               customRender: function (text) { return (text || text == 0) ? ('¥' + text) : '--' }
             },
             {
               title: 'TBU',
               dataIndex: 'tbuAmount',
               align: 'center',
-              width: 100,
+              width: 80,
               customRender: function (text) { return (text || text == 0) ? ('¥' + text) : '--' }
             },
             {
               title: '布瑞斯',
               dataIndex: 'brsAmount',
               align: 'center',
-              width: 100,
+              width: 80,
               customRender: function (text) { return (text || text == 0) ? ('¥' + text) : '--' }
             }
           ] },
@@ -298,53 +297,53 @@ export default {
               title: 'NGK',
               dataIndex: 'ngkAmount',
               align: 'center',
-              width: 100,
+              width: 80,
               customRender: function (text) { return (text || text == 0) ? ('¥' + text) : '--' }
             },
             {
               title: '飞利浦',
               dataIndex: 'flpAmount',
               align: 'center',
-              width: 100,
+              width: 80,
               customRender: function (text) { return (text || text == 0) ? ('¥' + text) : '--' }
             },
             {
               title: '车仆',
               dataIndex: 'cpAmount',
               align: 'center',
-              width: 100,
+              width: 80,
               customRender: function (text) { return (text || text == 0) ? ('¥' + text) : '--' }
             },
             {
               title: '瓦尔塔',
               dataIndex: 'wetAmount',
               align: 'center',
-              width: 100,
+              width: 80,
               customRender: function (text) { return (text || text == 0) ? ('¥' + text) : '--' }
             },
             {
               title: '雷贝斯托',
               dataIndex: 'lbstAmount',
               align: 'center',
-              width: 100,
+              width: 80,
               customRender: function (text) { return (text || text == 0) ? ('¥' + text) : '--' }
             },
             {
               title: '德尔福',
               dataIndex: 'defAmount',
               align: 'center',
-              width: 100,
+              width: 80,
               customRender: function (text) { return (text || text == 0) ? ('¥' + text) : '--' }
             },
             {
               title: '巴诺德',
               dataIndex: 'bndAmount',
               align: 'center',
-              width: 100,
+              width: 80,
               customRender: function (text) { return (text || text == 0) ? ('¥' + text) : '--' }
             }
           ] },
-        { title: '开单销售单合计金额', width: 200, dataIndex: 'totalAmount', align: 'center', customRender: function (text) { return (text || text == 0) ? ('¥' + text) : '--' } }
+        { title: '开单销售单合计金额', width: 90, dataIndex: 'totalAmount', align: 'center', customRender: function (text) { return (text || text == 0) ? ('¥' + text) : '--' } }
       ],
       // 加载数据方法 必须为 Promise 对象
       loadData: parameter => {

+ 8 - 8
src/views/salesManagement/backorder/detailModal.vue

@@ -40,7 +40,7 @@
           :columns="columns"
           :data="loadData"
           :defaultLoadData="false"
-          :scroll="{ x: 1040, y: 500 }"
+          :scroll="{ y: 500 }"
           bordered>
         </s-table>
       </a-card>
@@ -73,13 +73,13 @@ export default {
       detailData: null, //  详情数据
       // 表头
       columns: [
-        { title: '序号', dataIndex: 'no', width: 80, align: 'center', fixed: 'left' },
-        { title: '产品编码', dataIndex: 'productEntity.code', width: 220, align: 'center', customRender: function (text) { return text || '--' } },
-        { title: '产品名称', dataIndex: 'productEntity.name', align: 'center', customRender: function (text) { return text || '--' }, ellipsis: true },
-        { title: '原厂编码', dataIndex: 'productEntity.origCode', width: 220, align: 'center', customRender: function (text) { return text || '--' } },
-        { title: '缺货数量', dataIndex: 'qty', width: 110, align: 'center', customRender: function (text) { return ((text || text == 0) ? text : '--') } },
-        { title: '单位', dataIndex: 'productEntity.unit', width: 80, align: 'center', customRender: function (text) { return text || '--' } },
-        { title: '缺货金额', dataIndex: 'totalAmount', width: 110, align: 'center', customRender: function (text) { return ((text || text == 0) ? text : '--') } }
+        { title: '序号', dataIndex: 'no', width: '4%', align: 'center' },
+        { title: '产品编码', dataIndex: 'productEntity.code', width: '24%', align: 'center', customRender: function (text) { return text || '--' } },
+        { title: '产品名称', dataIndex: 'productEntity.name', width: '24%', align: 'left', customRender: function (text) { return text || '--' }, ellipsis: true },
+        { title: '原厂编码', dataIndex: 'productEntity.origCode', width: '20%', align: 'center', customRender: function (text) { return text || '--' } },
+        { title: '缺货数量', dataIndex: 'qty', width: '10%', align: 'center', customRender: function (text) { return ((text || text == 0) ? text : '--') } },
+        { title: '单位', dataIndex: 'productEntity.unit', width: '8%', align: 'center', customRender: function (text) { return text || '--' } },
+        { title: '缺货金额', dataIndex: 'totalAmount', width: '10%', align: 'center', customRender: function (text) { return ((text || text == 0) ? text : '--') } }
       ],
       // 加载数据方法 必须为 Promise 对象
       loadData: parameter => {

+ 9 - 9
src/views/salesManagement/backorder/list.vue

@@ -31,7 +31,7 @@
         :rowKey="(record) => record.id"
         :columns="columns"
         :data="loadData"
-        :scroll="{ x: 890, y: tableHeight }"
+        :scroll="{ y: tableHeight }"
         :defaultLoadData="false"
         bordered>
         <!-- 操作 -->
@@ -65,14 +65,14 @@ export default {
       },
       disabled: false, //  查询、重置按钮是否可操作
       columns: [
-        { title: '序号', dataIndex: 'no', width: 70, align: 'center' },
-        { title: '创建时间', dataIndex: 'createDate', width: 140, align: 'center', customRender: function (text) { return text || '--' } },
-        { title: '销售单号', dataIndex: 'salesBillNo', width: 180, align: 'center', customRender: function (text) { return text || '--' } },
-        { title: '客户名称', dataIndex: 'dealerName', align: 'center', customRender: function (text) { return text || '--' }, ellipsis: true },
-        { title: '缺货款数', dataIndex: 'totalCategory', width: 80, align: 'center', customRender: function (text) { return ((text || text == 0) ? text : '--') } },
-        { title: '缺货数量', dataIndex: 'totalQty', width: 80, align: 'center', customRender: function (text) { return ((text || text == 0) ? text : '--') } },
-        { title: '缺货金额', dataIndex: 'totalAmount', width: 80, align: 'center', customRender: function (text) { return ((text || text == 0) ? text : '--') } },
-        { title: '操作', scopedSlots: { customRender: 'action' }, width: 80, align: 'center', fixed: 'right' }
+        { title: '序号', dataIndex: 'no', width: '4%', align: 'center' },
+        { title: '创建时间', dataIndex: 'createDate', width: '12%', align: 'center', customRender: function (text) { return text || '--' } },
+        { title: '销售单号', dataIndex: 'salesBillNo', width: '20%', align: 'center', customRender: function (text) { return text || '--' } },
+        { title: '客户名称', dataIndex: 'dealerName', width: '20%', align: 'left', customRender: function (text) { return text || '--' }, ellipsis: true },
+        { title: '缺货款数', dataIndex: 'totalCategory', width: '11%', align: 'center', customRender: function (text) { return ((text || text == 0) ? text : '--') } },
+        { title: '缺货数量', dataIndex: 'totalQty', width: '11%', align: 'center', customRender: function (text) { return ((text || text == 0) ? text : '--') } },
+        { title: '缺货金额', dataIndex: 'totalAmount', width: '11%', align: 'center', customRender: function (text) { return ((text || text == 0) ? text : '--') } },
+        { title: '操作', scopedSlots: { customRender: 'action' }, width: '11%', align: 'center' }
       ],
       // 加载数据方法 必须为 Promise 对象
       loadData: parameter => {