Przeglądaj źródła

开单销售报表增加导出

zhangdan 3 lat temu
rodzic
commit
c033b88870

+ 1 - 1
src/api/reportData.js

@@ -190,7 +190,7 @@ export const returnSlipExport = (params) => {
 // 开单销售 导出
 export const salesAmountExport = (params) => {
   return axios({
-    url: '/report/reportRebate/export',
+    url: '/report/salesBillReport/queryGroupByBuyerExportExcel',
     data: params,
     method: 'post',
     responseType: 'blob'

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

@@ -70,14 +70,15 @@
             <a-col :md="6" :sm="24">
               <a-button type="primary" @click="handleSearch" :disabled="disabled" id="salesAmountReportList-refresh">查询</a-button>
               <a-button style="margin-left: 8px" @click="resetSearchForm" :disabled="disabled" id="salesAmountReportList-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> -->
+                v-if="$hasPermissions('B_salesAmountReport_export')"
+                id="returnSlipReportList-export">导出</a-button>
               <a @click="advanced=!advanced" style="margin-left: 8px">
                 {{ advanced ? '收起' : '展开' }}
                 <a-icon :type="advanced ? 'up' : 'down'"/>