Browse Source

导出明细

chenrui 2 years ago
parent
commit
64be475dd4
1 changed files with 8 additions and 9 deletions
  1. 8 9
      src/views/purchasingManagement/purchaseReturn/list.vue

+ 8 - 9
src/views/purchasingManagement/purchaseReturn/list.vue

@@ -152,7 +152,7 @@ import reportModal from '@/views/common/reportModal.vue'
 import { hdExportExcel } from '@/libs/exportExcel'
 import { toFixedDecimal } from '@/libs/tools.js'
 import supplier from '@/views/common/supplier.js'
-import { sparePartsReturnList, sparePartsReturnDelete, sparePartsDetailExport, againSubmit } from '@/api/sparePartsReturn'
+import { sparePartsReturnList, sparePartsReturnDelete, sparePartsReturnExportDetail, againSubmit } from '@/api/sparePartsReturn'
 export default {
   name: 'PurchaseReturnList',
   mixins: [commonMixin],
@@ -218,14 +218,13 @@ export default {
     //  导出
     handleExport () {
       const _this = this
-      _this.showExport = true
-      // _this.exportLoading = true
-      // _this.spinning = true
-      // hdExportExcel(sparePartsDetailExport, _this.queryParam, '散件入库明细', function () {
-      //   _this.exportLoading = false
-      //   _this.spinning = false
-      //   _this.showExport = true
-      // })
+      _this.exportLoading = true
+      _this.spinning = true
+      hdExportExcel(sparePartsReturnExportDetail, _this.queryParam, '采购退货', function () {
+        _this.exportLoading = false
+        _this.spinning = false
+        _this.showExport = true
+      })
     },
     //  新增
     handleAdd () {