浏览代码

添加报表导出权限

chenrui 2 年之前
父节点
当前提交
943c782873

+ 1 - 0
src/views/reportData/urchaseDetailReturn/detailList.vue

@@ -365,6 +365,7 @@ export default {
           _this.showExport = true
           _this.exportLoading = true
           _this.spinning = true
+          params.showCostFlag = _this.$hasPermissions('B_isShowCost') ? 1 : 0
           hdExportExcel(sparePartsReturnReportExportDetail, params, '采购退货明细报表', function () {
             _this.exportLoading = false
             _this.spinning = false

+ 1 - 0
src/views/reportData/urchaseReturn/list.vue

@@ -177,6 +177,7 @@ export default {
           _this.showExport = true
           _this.exportLoading = true
           _this.spinning = true
+          params.showCostFlag = _this.$hasPermissions('B_isShowPrice') ? 1 : 0
           hdExportExcel(sparePartsReturnReportExport, params, '采购退货单报表', function () {
             _this.exportLoading = false
             _this.spinning = false