浏览代码

报表导出

zhangdan 3 年之前
父节点
当前提交
49bb2f79ac

+ 72 - 0
src/api/reportData.js

@@ -151,3 +151,75 @@ export const reportRebateExport = (params) => {
     responseType: 'blob'
   })
 }
+// 销售退货单 导出
+export const salesReturnsExport = (params) => {
+  return axios({
+    url: '/report/reportSalesReturn/exportExcel',
+    data: params,
+    method: 'post',
+    responseType: 'blob'
+  })
+}
+// 销售退货明细 导出
+export const salesReturnDetailExport = (params) => {
+  return axios({
+    url: '/report/reportRebate/export',
+    data: params,
+    method: 'post',
+    responseType: 'blob'
+  })
+}
+// 开单销售单 导出
+export const salesSlipExport = (params) => {
+  return axios({
+    url: '/report/reportRebate/export',
+    data: params,
+    method: 'post',
+    responseType: 'blob'
+  })
+}
+// 开单退货单 导出
+export const returnSlipExport = (params) => {
+  return axios({
+    url: 'report/salesReturnBillReport/returnBillExportExcel',
+    data: params,
+    method: 'post',
+    responseType: 'blob'
+  })
+}
+// 开单销售 导出
+export const salesAmountExport = (params) => {
+  return axios({
+    url: '/report/reportRebate/export',
+    data: params,
+    method: 'post',
+    responseType: 'blob'
+  })
+}
+// 实售销售 导出
+export const actualSalesExport = (params) => {
+  return axios({
+    url: '/report/',
+    data: params,
+    method: 'post',
+    responseType: 'blob'
+  })
+}
+// 开单退货 导出
+export const billingReturnExport = (params) => {
+  return axios({
+    url: '/report/salesReturnBillReport/returnExportExcel',
+    data: params,
+    method: 'post',
+    responseType: 'blob'
+  })
+}
+// 实售退货 导出
+export const salesReturnExport = (params) => {
+  return axios({
+    url: '/report/salesReturnBillReport/returnRebateExportExcel',
+    data: params,
+    method: 'post',
+    responseType: 'blob'
+  })
+}

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

@@ -70,14 +70,14 @@
             <a-col :md="6" :sm="24">
               <a-button type="primary" @click="handleSearch" :disabled="disabled" id="billingReturnReportList-refresh">查询</a-button>
               <a-button style="margin-left: 8px" @click="resetSearchForm" :disabled="disabled" id="billingReturnReportList-reset">重置</a-button>
-              <!-- <a-button
+              <a-button
                 style="margin-left: 10px"
                 type="primary"
                 class="button-warning"
                 @click="handleExport"
                 :disabled="disabled"
                 :loading="exportLoading"
-                id="billingReturnReportList-export">导出</a-button> -->
+                id="billingReturnReportList-export">导出</a-button>
               <a @click="advanced=!advanced" style="margin-left: 8px">
                 {{ advanced ? '收起' : '展开' }}
                 <a-icon :type="advanced ? 'up' : 'down'"/>
@@ -140,7 +140,7 @@ import rangeDate from '@/views/common/rangeDate.vue'
 import custList from '@/views/common/custList.vue'
 import subarea from '@/views/common/subarea.js'
 import { getArea } from '@/api/data'
-import { salesReportReturnList, salesReportReturnCount } from '@/api/reportData'
+import { salesReportReturnList, salesReportReturnCount, billingReturnExport } from '@/api/reportData'
 export default {
   components: { STable, VSelect, custList, subarea, rangeDate },
   data () {
@@ -372,7 +372,7 @@ export default {
       const params = this.queryParam
       this.exportLoading = true
       _this.spinning = true
-      reportSalesReturnDetailExport(params).then(res => {
+      billingReturnExport(params).then(res => {
         this.exportLoading = false
         _this.spinning = false
         if (res.type == 'application/json') {

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

@@ -75,14 +75,14 @@
             <a-col :md="6" :sm="24">
               <a-button type="primary" @click="handleSearch" :disabled="disabled" id="returnSlipReportList-refresh">查询</a-button>
               <a-button style="margin-left: 8px" @click="resetSearchForm" :disabled="disabled" id="returnSlipReportList-reset">重置</a-button>
-              <!-- <a-button
+              <a-button
                 style="margin-left: 10px"
                 type="primary"
                 class="button-warning"
                 @click="handleExport"
                 :disabled="disabled"
                 :loading="exportLoading"
-                id="returnSlipReportList-export">导出</a-button> -->
+                id="returnSlipReportList-export">导出</a-button>
               <a @click="advanced=!advanced" style="margin-left: 8px">
                 {{ advanced ? '收起' : '展开' }}
                 <a-icon :type="advanced ? 'up' : 'down'"/>
@@ -145,7 +145,7 @@ import rangeDate from '@/views/common/rangeDate.vue'
 import custList from '@/views/common/custList.vue'
 import subarea from '@/views/common/subarea.js'
 import { getArea } from '@/api/data'
-import { salesReportReturnBillList, salesReportReturnBillCount } from '@/api/reportData'
+import { salesReportReturnBillList, salesReportReturnBillCount, returnSlipExport } from '@/api/reportData'
 export default {
   components: { STable, VSelect, custList, subarea, rangeDate },
   data () {
@@ -378,7 +378,7 @@ export default {
       const params = this.queryParam
       this.exportLoading = true
       _this.spinning = true
-      reportSalesReturnDetailExport(params).then(res => {
+      returnSlipExport(params).then(res => {
         this.exportLoading = false
         _this.spinning = false
         if (res.type == 'application/json') {

+ 2 - 1
src/views/reportData/salesAmountReport/list.vue

@@ -141,6 +141,7 @@ import custList from '@/views/common/custList.vue'
 import subarea from '@/views/common/subarea.js'
 import { getArea } from '@/api/data'
 import { salesBillReportGroupByBuyerList, salesBillReportCount } from '@/api/salesBillReport'
+import { salesAmountExport } from '@/api/reportData'
 export default {
   components: { STable, VSelect, rangeDate, subarea, custList },
   data () {
@@ -371,7 +372,7 @@ export default {
       const params = this.queryParam
       this.exportLoading = true
       _this.spinning = true
-      reportSalesReturnDetailExport(params).then(res => {
+      salesAmountExport(params).then(res => {
         this.exportLoading = false
         _this.spinning = false
         if (res.type == 'application/json') {

+ 4 - 3
src/views/reportData/salesReturnReport/list.vue

@@ -70,14 +70,14 @@
             <a-col :md="6" :sm="24">
               <a-button type="primary" @click="handleSearch" :disabled="disabled" id="salesReturnReportList-refresh">查询</a-button>
               <a-button style="margin-left: 8px" @click="resetSearchForm" :disabled="disabled" id="salesReturnReportList-reset">重置</a-button>
-              <!-- <a-button
+              <a-button
                 style="margin-left: 10px"
                 type="primary"
                 class="button-warning"
                 @click="handleExport"
                 :disabled="disabled"
                 :loading="exportLoading"
-                id="salesReturnReportList-export">导出</a-button> -->
+                id="salesReturnReportList-export">导出</a-button>
               <a @click="advanced=!advanced" style="margin-left: 8px">
                 {{ advanced ? '收起' : '展开' }}
                 <a-icon :type="advanced ? 'up' : 'down'"/>
@@ -141,6 +141,7 @@ import custList from '@/views/common/custList.vue'
 import subarea from '@/views/common/subarea.js'
 import { getArea } from '@/api/data'
 import { salesReportReturnRebateList, salesReportReturnRebateCount } from '@/api/reportData'
+import { salesReturnExport } from '@/api/reportData'
 export default {
   components: { STable, VSelect, custList, subarea, rangeDate },
   data () {
@@ -372,7 +373,7 @@ export default {
       const params = this.queryParam
       this.exportLoading = true
       _this.spinning = true
-      reportSalesReturnDetailExport(params).then(res => {
+      salesReturnExport(params).then(res => {
         this.exportLoading = false
         _this.spinning = false
         if (res.type == 'application/json') {

+ 2 - 2
src/views/reportData/salesReturnsReport/list.vue

@@ -142,7 +142,7 @@ import rangeDate from '@/views/common/rangeDate.vue'
 import subarea from '@/views/common/subarea.js'
 import custList from '@/views/common/custList.vue'
 import { getArea } from '@/api/data'
-import { reportSalesReturnList, reportSalesReturnCount } from '@/api/reportData'
+import { reportSalesReturnList, reportSalesReturnCount, salesReturnsExport } from '@/api/reportData'
 import moment from 'moment'
 export default {
   components: { STable, VSelect, rangeDate, subarea, custList },
@@ -221,7 +221,7 @@ export default {
       const params = this.queryParam
       this.exportLoading = true
       _this.spinning = true
-      oosDetailExport(params).then(res => {
+      salesReturnsExport(params).then(res => {
         this.exportLoading = false
         _this.spinning = false
         if (res.type == 'application/json') {

+ 4 - 3
src/views/reportData/salesSlipReport/list.vue

@@ -75,14 +75,14 @@
             <a-col :md="6" :sm="24">
               <a-button type="primary" @click="handleSearch" :disabled="disabled" id="salesSlipReportList-refresh">查询</a-button>
               <a-button style="margin-left: 8px" @click="resetSearchForm" :disabled="disabled" id="salesSlipReportList-reset">重置</a-button>
-              <!-- <a-button
+              <a-button
                 style="margin-left: 10px"
                 type="primary"
                 class="button-warning"
                 @click="handleExport"
                 :disabled="disabled"
                 :loading="exportLoading"
-                id="salesSlipReportList-export">导出</a-button> -->
+                id="salesSlipReportList-export">导出</a-button>
               <a @click="advanced=!advanced" style="margin-left: 8px">
                 {{ advanced ? '收起' : '展开' }}
                 <a-icon :type="advanced ? 'up' : 'down'"/>
@@ -146,6 +146,7 @@ import custList from '@/views/common/custList.vue'
 import subarea from '@/views/common/subarea.js'
 import { getArea } from '@/api/data'
 import { salesBillReportList, salesBillReportCount } from '@/api/salesBillReport'
+import { salesSlipExport } from '@/api/reportData'
 export default {
   components: { STable, VSelect, rangeDate, subarea, custList },
   data () {
@@ -378,7 +379,7 @@ export default {
       const params = this.queryParam
       this.exportLoading = true
       _this.spinning = true
-      reportSalesReturnDetailExport(params).then(res => {
+      salesSlipExport(params).then(res => {
         this.exportLoading = false
         _this.spinning = false
         if (res.type == 'application/json') {