Browse Source

实售销售报表导出

zhangdan 3 năm trước cách đây
mục cha
commit
84c9df9694
2 tập tin đã thay đổi với 6 bổ sung4 xóa
  1. 1 1
      src/api/reportData.js
  2. 5 3
      src/views/reportData/actualSalesReport/list.vue

+ 1 - 1
src/api/reportData.js

@@ -199,7 +199,7 @@ export const salesAmountExport = (params) => {
 // 实售销售 导出
 export const actualSalesExport = (params) => {
   return axios({
-    url: '/report/',
+    url: '/report/salesBillReport/totalRealExportExcel',
     data: params,
     method: 'post',
     responseType: 'blob'

+ 5 - 3
src/views/reportData/actualSalesReport/list.vue

@@ -70,14 +70,15 @@
             <a-col :md="6" :sm="24">
               <a-button type="primary" @click="handleSearch" :disabled="disabled" id="actualSalesReportList-refresh">查询</a-button>
               <a-button style="margin-left: 8px" @click="resetSearchForm" :disabled="disabled" id="actualSalesReportList-reset">重置</a-button>
-              <!-- <a-button
+              <a-button
                 style="margin-left: 10px"
                 type="primary"
                 class="button-warning"
                 @click="handleExport"
                 :disabled="disabled"
                 :loading="exportLoading"
-                id="actualSalesReportList-export">导出</a-button> -->
+                 v-if="$hasPermissions('B_actualSalesReport_export')"
+                id="actualSalesReportList-export">导出</a-button>
               <a @click="advanced=!advanced" style="margin-left: 8px">
                 {{ advanced ? '收起' : '展开' }}
                 <a-icon :type="advanced ? 'up' : 'down'"/>
@@ -141,6 +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'
 export default {
   components: { STable, VSelect, rangeDate, subarea, custList },
   data () {
@@ -370,7 +372,7 @@ export default {
       const params = this.queryParam
       this.exportLoading = true
       _this.spinning = true
-      reportSalesReturnDetailExport(params).then(res => {
+      actualSalesExport(params).then(res => {
         this.exportLoading = false
         _this.spinning = false
         if (res.type == 'application/json') {