浏览代码

调拨导出

chenrui 1 年之前
父节点
当前提交
16a291a8eb

+ 5 - 3
src/views/allocationManagement/chainTransferIn/list.vue

@@ -65,6 +65,7 @@
                 :disabled="disabled"
                 :loading="exportLoading"
                 class="button-warning"
+
                 id="chainTransferInList-export-btn">导出</a-button>
               <a @click="advanced=!advanced" style="margin-left: 5px">
                 {{ advanced ? '收起' : '展开' }}
@@ -148,7 +149,7 @@ import { commonMixin } from '@/utils/mixin'
 import { STable, VSelect } from '@/components'
 import { formatDecimal } from '@/libs/tools'
 import rangeDate from '@/views/common/rangeDate.vue'
-import { allocLinkagePutList, allocLinkagePutAudit, allocLinkagePutQueryCount } from '@/api/allocLinkagePut'
+import { allocLinkagePutList, allocLinkagePutAudit, allocLinkagePutQueryCount, allocLinkagePutExport } from '@/api/allocLinkagePut'
 import getTenantList from '@/views/common/getTenantList.js'
 import stateIcon from '@/views/common/stateIcon'
 import { downloadExcel } from '@/libs/JGPrint.js'
@@ -285,10 +286,11 @@ export default {
     handleExport () {
       const _this = this
       const params = _this.queryParam
+      params.showCost = _this.$hasPermissions('M_ShowAllCost') ? 1 : 0
       _this.exportLoading = true
       _this.spinning = true
-      reportSalesBillExport(params).then(res => {
-        downloadExcel(res, '仓库调拨列表')
+      allocLinkagePutExport(params).then(res => {
+        downloadExcel(res, '连锁调入列表')
         _this.exportLoading = false
         _this.spinning = false
       })

+ 4 - 2
src/views/allocationManagement/warehouseAllocation/list.vue

@@ -53,6 +53,7 @@
                 :disabled="disabled"
                 :loading="exportLoading"
                 class="button-warning"
+                v-if="$hasPermissions('B_allocWarehouseExport')"
                 id="warehouseAllocation-export-btn">导出</a-button>
               <a @click="advanced = !advanced" style="margin-left: 8px">
                 {{ advanced ? '收起' : '展开' }}
@@ -135,7 +136,7 @@
 
 <script>
 import { commonMixin } from '@/utils/mixin'
-import { allocWarehouseList, allocWarehouseAudit, allocWarehouseDel, allocWarehouseQueryCount } from '@/api/allocWarehouse'
+import { allocWarehouseList, allocWarehouseAudit, allocWarehouseDel, allocWarehouseQueryCount, allocWarehouseExport } from '@/api/allocWarehouse'
 import { warehouseAllList } from '@/api/warehouse.js'
 import { STable, VSelect } from '@/components'
 import basicInfoModal from './basicInfoModal.vue'
@@ -315,9 +316,10 @@ export default {
     handleExport () {
       const _this = this
       const params = _this.queryParam
+      params.showCost = _this.$hasPermissions('M_ShowAllCost') ? 1 : 0
       _this.exportLoading = true
       _this.spinning = true
-      reportSalesBillExport(params).then(res => {
+      allocWarehouseExport(params).then(res => {
         downloadExcel(res, '仓库调拨列表')
         _this.exportLoading = false
         _this.spinning = false