Browse Source

新增报表

chenrui 1 year ago
parent
commit
8084d04f95

+ 26 - 2
src/api/reportData.js

@@ -854,7 +854,7 @@ export const sparePartsReturnReportExportDetail = (params) => {
   })
   })
 }
 }
 
 
-// 返利报
+// 订单差价
 export const rebateQueryList = (params) => {
 export const rebateQueryList = (params) => {
   const url = `/report/productRebate/queryPage/${params.pageNo}/${params.pageSize}`
   const url = `/report/productRebate/queryPage/${params.pageNo}/${params.pageSize}`
   delete params.pageNo
   delete params.pageNo
@@ -877,7 +877,31 @@ export const rebateQueryCount = (params) => {
     method: 'post'
     method: 'post'
   })
   })
 }
 }
-// 返利明细报表
+// 订单经销商差价表
+export const productRebateParentList = (params) => {
+  const url = `/report/productRebateParent/queryPage/${params.pageNo}/${params.pageSize}`
+  delete params.pageNo
+  delete params.pageSize
+  return axios({
+    url: url,
+    data: params,
+    method: 'post',
+    headers: {
+      'module': encodeURIComponent('列表查询')
+    }
+  })
+}
+// 订单经销商差价表 统计
+export const productRebateParentCount = (params) => {
+  const url = `/report/productRebateParent/queryCount`
+  return axios({
+    url: url,
+    data: params,
+    method: 'post'
+  })
+}
+
+// 产品差价表
 export const rebateDetailQueryList = (params) => {
 export const rebateDetailQueryList = (params) => {
   const url = `/report/productRebateDetail/queryPage/${params.pageNo}/${params.pageSize}`
   const url = `/report/productRebateDetail/queryPage/${params.pageNo}/${params.pageSize}`
   delete params.pageNo
   delete params.pageNo

+ 330 - 0
src/views/reportData/productRebateReport/dealerList.vue

@@ -0,0 +1,330 @@
+<template>
+  <div>
+    <a-card size="small" :bordered="false" class="searchBoxNormal">
+      <!-- 搜索条件 -->
+      <div class="table-page-search-wrapper" ref="tableSearch2">
+        <a-form-model
+          id="rebateDetailReport-form"
+          ref="ruleForm"
+          class="form-model-con"
+          layout="inline"
+          :model="queryParam"
+          :rules="rules"
+          :labelCol="labelCol"
+          :wrapperCol="wrapperCol"
+          @keyup.enter.native="handleSearch" >
+          <a-row :gutter="15">
+            <a-col :md="6" :sm="24">
+              <a-form-model-item label="日期" prop="time">
+                <rangeDate ref="rangeDate" @change="dateChange" />
+              </a-form-model-item>
+            </a-col>
+            <a-col :md="6" :sm="24">
+              <a-form-model-item label="单号">
+                <a-input id="srebateReport-bizNo" v-model.trim="queryParam.bizNo" allowClear placeholder="请输入单号"/>
+              </a-form-model-item>
+            </a-col>
+            <a-col :md="6" :sm="24">
+              <a-form-model-item label="客户名称">
+                <dealerSearchList ref="dealer" id="srebateReport-buyerName" @change="dealerChange" />
+              </a-form-model-item>
+            </a-col>
+            <template v-if="advanced">
+              <a-col :md="6" :sm="24">
+                <a-form-model-item label="客户级别">
+                  <v-select
+                    v-model="queryParam.dealer.dealerLevel"
+                    id="srebateReport-dealerLevel"
+                    code="DEALER_LEVEL"
+                    placeholder="请选择客户级别"
+                    allowClear></v-select>
+                </a-form-model-item>
+              </a-col>
+              <a-col :md="6" :sm="24">
+                <a-form-model-item label="所在区域">
+                  <subarea id="srebateReport-subareaSn" ref="subarea" @change="subareaChange"></subarea>
+                </a-form-model-item>
+              </a-col>
+              <a-col :md="6" :sm="24">
+                <a-form-model-item label="区域负责人">
+                  <BizUser v-model="queryParam.subareaArea.bizUserSn"></BizUser>
+                </a-form-model-item>
+              </a-col>
+              <a-col :md="6" :sm="24">
+                <a-form-model-item label="省级区域">
+                  <Area id="srebateReport-provinceSn" v-model="queryParam.dealer.provinceSn" placeholder="请选择省"></Area>
+                </a-form-model-item>
+              </a-col>
+              <a-col :md="6" :sm="24">
+                <a-form-model-item label="差价归属方">
+                  <dealerSearchList ref="parentDealer" id="srebateReport-parentDealer" @change="parentDealerChange" placeholder="请输入差价归属方"/>
+                </a-form-model-item>
+              </a-col>
+              <a-col :md="6" :sm="24">
+                <a-form-model-item label="差价归属类型">
+                  <v-select code="RELATION_REBATE_PARENT_TYPE" v-model="queryParam.rebateParentType" allowClear placeholder="请选择差价归属类型"></v-select>
+                </a-form-model-item>
+              </a-col>
+              <a-col :md="6" :sm="24">
+                <a-form-model-item label="类型" prop="bizType">
+                  <a-select id="srebateReport-bizType" allowClear v-model="queryParam.bizType" placeholder="请选择类型">
+                    <a-select-option v-for="item in bizTypeList" :value="item.value" :key="item.value">{{ item.name }}</a-select-option>
+                  </a-select>
+                </a-form-model-item>
+              </a-col>
+              <a-col :md="6" :sm="24">
+                <a-form-model-item label="客服">
+                  <customerService ref="customerName" v-model="queryParam.bizUserSn"></customerService>
+                </a-form-model-item>
+              </a-col>
+            </template>
+            <a-col :md="6" :sm="24" style="margin-bottom: 10px;">
+              <a-button type="primary" @click="handleSearch" :disabled="disabled" id="rebateDetailReport-refresh">查询</a-button>
+              <a-button style="margin-left: 5px" @click="resetSearchForm" :disabled="disabled" id="rebateDetailReport-reset">重置</a-button>
+              <a @click="advanced=!advanced" style="margin-left: 5px">
+                {{ advanced ? '收起' : '展开' }}
+                <a-icon :type="advanced ? 'up' : 'down'"/>
+              </a>
+            </a-col>
+          </a-row>
+        </a-form-model>
+      </div>
+    </a-card>
+    <a-card size="small" :bordered="false">
+      <a-spin :spinning="spinning" tip="Loading...">
+        <!-- 列表 -->
+        <s-table
+          class="sTable fixPagination"
+          ref="table"
+          size="small"
+          :rowKey="(record) => record.no"
+          rowKeyName="no"
+          :columns="columns"
+          :data="loadData"
+          :pageSize="30"
+          :style="{ height: tableHeight-5+'px' }"
+          :scroll="{ x: 2200,y: tableHeight-120 }"
+          :defaultLoadData="false"
+          bordered>
+          <template slot="footer">
+            <a-row type="flex" justify="end" :gutter="10">
+              <a-col flex="10%">总开单金额:{{ (totalData && (totalData.totalAmount || totalData.totalAmount==0)) ? toThousands(totalData.totalAmount) : '--' }}</a-col>
+              <a-col flex="10%">总实售金额:{{ (totalData && (totalData.totalRealAmount || totalData.totalRealAmount==0)) ? toThousands(totalData.totalRealAmount) : '--' }}</a-col>
+              <a-col flex="10%">总差价金额:{{ (totalData && (totalData.directRebateAmount || totalData.directRebateAmount==0)) ? toThousands(totalData.directRebateAmount) : '--' }}</a-col>
+            </a-row>
+          </template>
+        </s-table>
+      </a-spin>
+    </a-card>
+  </div>
+</template>
+
+<script>
+import { commonMixin } from '@/utils/mixin'
+import { STable, VSelect } from '@/components'
+import rangeDate from '@/views/common/rangeDate.vue'
+import dealerSearchList from '@/views/common/dealerSearchList.vue'
+import subarea from '@/views/common/subarea.js'
+import Area from '@/views/common/area.js'
+import BizUser from '@/views/common/bizUser.js'
+import customerService from '@/views/common/customerService'
+import { productRebateParentList, productRebateParentCount } from '@/api/reportData'
+export default {
+  components: { STable, VSelect, rangeDate, dealerSearchList, subarea, Area, BizUser, customerService },
+  mixins: [commonMixin],
+  data () {
+    return {
+      spinning: false,
+      labelCol: { span: 8 },
+      wrapperCol: { span: 16 },
+      advanced: true, // 高级搜索 展开/关闭
+      tableHeight: 0,
+      queryParam: { //  查询条件
+        time: [],
+        beginDate: '',
+        endDate: '',
+        bizNo: '', // 单号
+        buyerSn: undefined, // 客户sn
+        subareaArea: {
+          subareaSn: undefined,
+          subareaAreaSn: undefined,
+          bizUserSn: undefined // 区域负责人
+        },
+        dealer: {
+          dealerSn: undefined,
+          dealerLevel: undefined,
+          provinceSn: undefined
+        },
+        parentDealerSn: undefined, // 差价归属方
+        rebateParentType: undefined, // 差价归属类型
+        bizType: undefined, // 类型
+        bizUserSn: undefined // 客服类型
+      },
+      bizTypeList: [
+        { value: 'SALES', name: '采购差价' },
+        { value: 'SALES_RETURN', name: '退货差价' }
+      ],
+      rules: {
+        'time': [{ required: true, message: '请选择日期', trigger: 'change' }]
+      },
+      disabled: false, //  查询、重置按钮是否可操作
+      // 加载数据方法 必须为 Promise 对象
+      loadData: parameter => {
+        this.disabled = true
+        const params = Object.assign(parameter, this.queryParam)
+        this.spinning = true
+        delete params.time
+        // 总计
+        this.getCount(params)
+        return productRebateParentList(params).then(res => {
+          let data
+          if (res.status == 200) {
+            data = res.data
+            const no = (data.pageNo - 1) * data.pageSize
+            for (var i = 0; i < data.list.length; i++) {
+              data.list[i].no = no + i + 1
+            }
+            this.disabled = false
+          }
+          this.spinning = false
+          return data
+        })
+      },
+      totalData: null //  合计
+    }
+  },
+  computed: {
+    columns () {
+      const _this = this
+      const arr = [
+        { title: '序号', dataIndex: 'no', width: 60, align: 'center' },
+        { title: '区域', dataIndex: 'subareaArea.subareaName', width: 100, align: 'center', customRender: function (text) { return text || '--' } },
+        { title: '分区', dataIndex: 'subareaArea.subareaAreaName', width: 100, align: 'center', customRender: function (text) { return text || '--' } },
+        { title: '区域负责人', dataIndex: 'subareaArea.bizUserName', width: 100, align: 'center', customRender: function (text) { return text || '--' }, ellipsis: true },
+        { title: '订单号', dataIndex: 'bizNo', width: 160, align: 'center', customRender: function (text) { return text || '--' } },
+        { title: '日期', dataIndex: 'bizDate', width: 90, align: 'center', customRender: function (text) { return text || '--' } },
+        { title: '省份', dataIndex: 'provinceName', width: 90, align: 'center', customRender: function (text) { return text || '--' } },
+        { title: '客户名称', dataIndex: 'buyerName', width: 120, align: 'center', customRender: function (text) { return text || '--' }, ellipsis: true },
+        { title: '客户级别', dataIndex: 'buyerLevelDictValue', width: 120, align: 'center', customRender: function (text) { return text || '--' } },
+        { title: '差价归属方', dataIndex: 'parentDealerName', width: 120, align: 'center', customRender: function (text) { return text || '--' } },
+        { title: '百分比', dataIndex: 'rebateRate', width: 120, align: 'center', customRender: function (text) { return text || '--' } },
+        { title: '差价归属类型', dataIndex: 'rebateParentTypeDictValue', width: 100, align: 'center', customRender: function (text) { return text || '--' } },
+        { title: '总开单金额', dataIndex: 'totalAmount', width: 90, align: 'right', customRender: function (text) { return ((text || text == 0) ? _this.toThousands(text) : '--') } },
+        { title: '总实售金额', dataIndex: 'totalRealAmount', width: 90, align: 'right', customRender: function (text) { return ((text || text == 0) ? _this.toThousands(text) : '--') } },
+        { title: '总差价金额', dataIndex: 'directRebateAmount', width: 100, align: 'right', customRender: function (text) { return ((text || text == 0) ? _this.toThousands(text) : '--') } },
+        { title: '差价金额', dataIndex: 'rebateAmount', width: 80, align: 'right', customRender: function (text) { return ((text || text == 0) ? _this.toThousands(text) : '--') } },
+        { title: '单据类型', dataIndex: 'bizTypeDictValue', width: 100, align: 'center', customRender: function (text) { return text || '--' } }
+      ]
+      return arr
+    }
+  },
+  watch: {
+    advanced (newValue, oldValue) {
+      this.setTableH()
+    },
+    '$store.state.app.winHeight' (newValue, oldValue) { //  窗口变更时,需同时更改表格高度
+      this.setTableH()
+    }
+  },
+  methods: {
+    // 合计
+    getCount (params) {
+      productRebateParentCount(params).then(res => {
+        if (res.status == 200) {
+          this.totalData = res.data
+        } else {
+          this.totalData = null
+        }
+      })
+    },
+    //  创建时间  change
+    dateChange (date) {
+      this.queryParam.time = date
+      this.queryParam.beginDate = date[0] || ''
+      this.queryParam.endDate = date[1] || ''
+    },
+    dealerChange (val) {
+      if (val.row) {
+        this.queryParam.buyerSn = val.row.dealerSn
+      } else {
+        this.queryParam.buyerSn = undefined
+      }
+    },
+    subareaChange (val) {
+      this.queryParam.subareaArea.subareaSn = val[0] ? val[0] : undefined
+      this.queryParam.subareaArea.subareaAreaSn = val[1] ? val[1] : undefined
+    },
+    // 差价归属方
+    parentDealerChange (val) {
+      if (val.row) {
+        this.queryParam.parentDealerSn = val.row.dealerSn
+      } else {
+        this.queryParam.parentDealerSn = undefined
+      }
+    },
+    //  查询
+    handleSearch () {
+      this.$refs.ruleForm.validate(valid => {
+        if (valid) {
+          this.$refs.table.refresh(true)
+        } else {
+          this.$message.error('请选择日期')
+          return false
+        }
+      })
+    },
+    //  重置
+    resetSearchForm () {
+      this.$refs.rangeDate.resetDate()
+      this.queryParam.time = []
+      this.queryParam.beginDate = ''
+      this.queryParam.endDate = ''
+      this.queryParam.bizNo = ''
+      this.queryParam.buyerSn = undefined// 客户sn
+      this.queryParam.subareaArea.subareaSn = undefined
+      this.queryParam.subareaArea.subareaAreaSn = undefined
+      this.queryParam.subareaArea.bizUserSn = undefined// 区域负责人
+      this.queryParam.dealer.dealerSn = undefined// 客户名称
+      this.queryParam.dealer.dealerLevel = undefined// 客户等级
+      this.queryParam.dealer.provinceSn = undefined// 省区域
+      this.queryParam.parentDealerSn = undefined// 差价归属方
+      this.queryParam.rebateParentType = undefined// 差价归属类型
+      this.queryParam.bizType = undefined// 类型
+      this.queryParam.bizUserSn = undefined// 客服类型
+
+      this.$refs.dealer.resetForm()
+      this.$refs.parentDealer.resetForm()
+      this.$refs.ruleForm.resetFields()
+      this.totalData = null
+      this.$refs.table.clearTable()
+    },
+    pageInit () {
+      this.disabled = false
+      this.spinning = false
+      this.setTableH()
+    },
+    setTableH () {
+      this.$nextTick(() => { // 页面渲染完成后的回调
+        const tableSearchH = this.$refs.tableSearch2.offsetHeight
+        this.tableHeight = window.innerHeight - tableSearchH - 300
+      })
+    }
+  },
+  mounted () {
+    if (!this.$store.state.app.isNewTab) { // 页签刷新时调用
+      this.pageInit()
+      this.resetSearchForm()
+    }
+  },
+  activated () {
+    // 如果是新页签打开,则重置当前页面
+    if (this.$store.state.app.isNewTab) {
+      this.pageInit()
+      this.resetSearchForm()
+    }
+  },
+  beforeRouteEnter (to, from, next) {
+    next(vm => {})
+  }
+}
+</script>

+ 14 - 5
src/views/reportData/productRebateReport/detailList.vue

@@ -36,7 +36,7 @@
             </a-col>
             </a-col>
             <a-col :md="6" :sm="24">
             <a-col :md="6" :sm="24">
               <a-form-model-item label="差价归属方">
               <a-form-model-item label="差价归属方">
-                <v-select code="REBATE_PARENT_TYPE" v-model="queryParam.parentDealerSn" allowClear placeholder="请选择差价归属方"></v-select>
+                <dealerSearchList ref="parentDealer" id="srebateReport-parentDealer" @change="parentDealerChange" placeholder="请输入差价归属方"/>
               </a-form-model-item>
               </a-form-model-item>
             </a-col>
             </a-col>
             <a-col :md="6" :sm="24">
             <a-col :md="6" :sm="24">
@@ -105,8 +105,8 @@
           :columns="columns"
           :columns="columns"
           :data="loadData"
           :data="loadData"
           :pageSize="30"
           :pageSize="30"
-          :style="{ height: tableHeight+110+'px' }"
-          :scroll="{ x: 2200,y: tableHeight+10 }"
+          :style="{ height: tableHeight+38+'px' }"
+          :scroll="{ x: 2200,y: tableHeight-80 }"
           :defaultLoadData="false"
           :defaultLoadData="false"
           bordered>
           bordered>
           <template slot="footer">
           <template slot="footer">
@@ -205,7 +205,9 @@ export default {
         { title: '客户级别', dataIndex: 'buyerLevelDictValue', width: '90px', align: 'center', customRender: function (text) { return text || '--' } },
         { title: '客户级别', dataIndex: 'buyerLevelDictValue', width: '90px', align: 'center', customRender: function (text) { return text || '--' } },
         { title: '客户名称', dataIndex: 'buyerName', width: '150px', align: 'left', customRender: function (text) { return text || '--' }, ellipsis: true },
         { title: '客户名称', dataIndex: 'buyerName', width: '150px', align: 'left', customRender: function (text) { return text || '--' }, ellipsis: true },
         { title: '差价归属方', dataIndex: 'parentDealerName', width: '130px', align: 'left', customRender: function (text) { return text || '--' }, ellipsis: true },
         { title: '差价归属方', dataIndex: 'parentDealerName', width: '130px', align: 'left', customRender: function (text) { return text || '--' }, ellipsis: true },
+        { title: '百分比', dataIndex: 'rebateRate', width: '80px', align: 'center', customRender: function (text) { return text || '--' } },
         { title: '差价归属类型', dataIndex: 'rebateParentTypeDictValue', width: '120px', align: 'center', customRender: function (text) { return text || '--' } },
         { title: '差价归属类型', dataIndex: 'rebateParentTypeDictValue', width: '120px', align: 'center', customRender: function (text) { return text || '--' } },
+        { title: '价格级别', dataIndex: 'priceLevelDictValue', width: '80px', align: 'center', customRender: function (text) { return text || '--' } },
         { title: '品牌', dataIndex: 'productEntity.productBrandName', width: '100px', align: 'center', customRender: function (text) { return text || '--' } },
         { title: '品牌', dataIndex: 'productEntity.productBrandName', width: '100px', align: 'center', customRender: function (text) { return text || '--' } },
         { title: '产品分类', width: '160px', align: 'center', customRender: function (text, record) { return record.productEntity.productTypeName1 + (record.productEntity.productTypeName2 ? '>' : '') + (record.productEntity.productTypeName2 || '') } },
         { title: '产品分类', width: '160px', align: 'center', customRender: function (text, record) { return record.productEntity.productTypeName1 + (record.productEntity.productTypeName2 ? '>' : '') + (record.productEntity.productTypeName2 || '') } },
         { title: '产品编码', dataIndex: 'productEntity.code', width: '100px', align: 'center', customRender: function (text) { return text || '--' } },
         { title: '产品编码', dataIndex: 'productEntity.code', width: '100px', align: 'center', customRender: function (text) { return text || '--' } },
@@ -259,13 +261,19 @@ export default {
       })
       })
     },
     },
     dealerChange (val) {
     dealerChange (val) {
-      console.log('1111:', val)
       if (val.row) {
       if (val.row) {
         this.queryParam.buyerSn = val.row.dealerSn
         this.queryParam.buyerSn = val.row.dealerSn
       } else {
       } else {
         this.queryParam.buyerSn = undefined
         this.queryParam.buyerSn = undefined
       }
       }
     },
     },
+    parentDealerChange (val) {
+      if (val.row) {
+        this.queryParam.parentDealerSn = val.row.dealerSn
+      } else {
+        this.queryParam.parentDealerSn = undefined
+      }
+    },
     //  重置
     //  重置
     resetSearchForm () {
     resetSearchForm () {
       this.$refs.rangeDate.resetDate()
       this.$refs.rangeDate.resetDate()
@@ -279,6 +287,7 @@ export default {
       this.queryParam.parentDealerSn = undefined
       this.queryParam.parentDealerSn = undefined
       this.queryParam.rebateParentType = undefined
       this.queryParam.rebateParentType = undefined
       this.$refs.dealer.resetForm()
       this.$refs.dealer.resetForm()
+      this.$refs.parentDealer.resetForm()
 
 
       this.queryParam.productEntity.productBrandSn = undefined
       this.queryParam.productEntity.productBrandSn = undefined
       this.queryParam.productEntity.productTypeSn1 = ''
       this.queryParam.productEntity.productTypeSn1 = ''
@@ -307,7 +316,7 @@ export default {
       this.$nextTick(() => { // 页面渲染完成后的回调
       this.$nextTick(() => { // 页面渲染完成后的回调
         const tableSearchH = this.$refs.tableSearch1.offsetHeight
         const tableSearchH = this.$refs.tableSearch1.offsetHeight
         console.log(tableSearchH)
         console.log(tableSearchH)
-        this.tableHeight = window.innerHeight - tableSearchH - 280
+        this.tableHeight = window.innerHeight - tableSearchH - 300
       })
       })
     }
     }
   },
   },

+ 13 - 7
src/views/reportData/productRebateReport/index.vue

@@ -2,13 +2,15 @@
   <div class="tabsReportList-wrap">
   <div class="tabsReportList-wrap">
     <div style="background-color: #fff;margin-bottom: 5px;">
     <div style="background-color: #fff;margin-bottom: 5px;">
       <a-tabs default-active-key="1" v-model="curTab" @change="changeTab">
       <a-tabs default-active-key="1" v-model="curTab" @change="changeTab">
-        <a-tab-pane key="1" tab="返利表"></a-tab-pane>
-        <a-tab-pane key="2" tab="返利明细报表" force-render></a-tab-pane>
+        <a-tab-pane key="1" tab="订单差价表"></a-tab-pane>
+        <a-tab-pane key="2" tab="订单经销商差价表"></a-tab-pane>
+        <a-tab-pane key="3" tab="产品差价表" force-render></a-tab-pane>
       </a-tabs>
       </a-tabs>
     </div>
     </div>
     <div>
     <div>
       <report v-show="curTab==1"></report>
       <report v-show="curTab==1"></report>
-      <detailReport ref="detailList" v-show="curTab==2"></detailReport>
+      <dealerReport ref="detailList" v-show="curTab==2"></dealerReport>
+      <detailReport ref="dealerList" v-show="curTab==3"></detailReport>
     </div>
     </div>
   </div>
   </div>
 </template>
 </template>
@@ -16,20 +18,24 @@
 <script>
 <script>
 import report from './list.vue'
 import report from './list.vue'
 import detailReport from './detailList.vue'
 import detailReport from './detailList.vue'
+import dealerReport from './dealerList.vue'
 export default {
 export default {
   name: 'ProductRebateReportIndex',
   name: 'ProductRebateReportIndex',
   components: {
   components: {
     report,
     report,
-    detailReport
+    detailReport,
+    dealerReport
   },
   },
   data () {
   data () {
     return {
     return {
       curTab: '1'
       curTab: '1'
     }
     }
   },
   },
-  methods:{
-    changeTab(v){
-      if(v==2){
+  methods: {
+    changeTab (v) {
+      if (v == 2) {
+        this.$refs.dealerList.setTableH()
+      } else if (v == 3) {
         this.$refs.detailList.setTableH()
         this.$refs.detailList.setTableH()
       }
       }
     }
     }

+ 4 - 4
src/views/reportData/productRebateReport/list.vue

@@ -77,8 +77,8 @@
           class="sTable fixPagination"
           class="sTable fixPagination"
           ref="table"
           ref="table"
           size="small"
           size="small"
-          :style="{ height: tableHeight+75+'px' }"
-          :scroll="{ y: tableHeight-20 }"
+          :style="{ height: tableHeight+'px' }"
+          :scroll="{ y: tableHeight-120 }"
           :rowKey="(record) => record.bizNo"
           :rowKey="(record) => record.bizNo"
           rowKeyName="bizNo"
           rowKeyName="bizNo"
           :columns="columns"
           :columns="columns"
@@ -104,7 +104,7 @@
 import { commonMixin } from '@/utils/mixin'
 import { commonMixin } from '@/utils/mixin'
 import { STable, VSelect } from '@/components'
 import { STable, VSelect } from '@/components'
 import rangeDate from '@/views/common/rangeDate.vue'
 import rangeDate from '@/views/common/rangeDate.vue'
-import { downloadExcel } from '@/libs/JGPrint.js'
+// import { downloadExcel } from '@/libs/JGPrint.js'
 import dealerSearchList from '@/views/common/dealerSearchList.vue'
 import dealerSearchList from '@/views/common/dealerSearchList.vue'
 import { rebateQueryList, rebateQueryCount } from '@/api/reportData'
 import { rebateQueryList, rebateQueryCount } from '@/api/reportData'
 export default {
 export default {
@@ -269,7 +269,7 @@ export default {
     // },
     // },
     setTableH () {
     setTableH () {
       const tableSearchH = this.$refs.tableSearch.offsetHeight
       const tableSearchH = this.$refs.tableSearch.offsetHeight
-      this.tableHeight = window.innerHeight - tableSearchH - 250
+      this.tableHeight = window.innerHeight - tableSearchH - 210
     }
     }
   },
   },
   watch: {
   watch: {