lilei 16 小時之前
父節點
當前提交
cc13acff96
共有 2 個文件被更改,包括 9 次插入20 次删除
  1. 5 4
      src/api/verifyAccountChange.js
  2. 4 16
      src/views/financialManagement/manualEntryForm/list.vue

+ 5 - 4
src/api/verifyAccountChange.js

@@ -142,14 +142,15 @@ export const verifyAccountBalanceDetailExport = (params) => {
   })
 }
 
-// 刷新历史对账余额
-export const verifyAccountBalanceRefresh = (params) => {
+// 人工录入单导出
+export const verifyAccountChangeExport = (params) => {
   return axios({
-    url: `/verifyAccountDealer/refreshData`,
+    url: `/verifyAccountChange/export`,
     data: params,
     method: 'post',
+    responseType: 'blob',
     headers: {
-      'module': encodeURIComponent('刷新历史对账余额')
+      'module': encodeURIComponent('人工录入单导出')
     }
   })
 }

+ 4 - 16
src/views/financialManagement/manualEntryForm/list.vue

@@ -133,7 +133,7 @@ import rangeDate from '@/views/common/rangeDate.vue'
 import baseModal from './baseModal.vue'
 import verifyModal from './verifyModal.vue'
 import chooseDepartUserModal from './chooseDepartUserModal.vue'
-import { verifyAccountChangeList, verifyAcountBillSubmit, verifyAccountChangeDel } from '@/api/verifyAccountChange.js'
+import { verifyAccountChangeList, verifyAcountBillSubmit, verifyAccountChangeDel, verifyAccountChangeExport } from '@/api/verifyAccountChange.js'
 export default {
   name: 'ManualEntryFormList',
   mixins: [commonMixin],
@@ -213,25 +213,13 @@ export default {
       this.queryParam.beginDate = date[0] ? date[0] : ''
       this.queryParam.endDate = date[1] ? date[1] : ''
     },
-    //  导出  必填判断
-    handleExport () {
-      const _this = this
-      this.$refs.ruleForm.validate(valid => {
-        if (valid) {
-          _this.exportList()
-        } else {
-          _this.$message.error('请选择查询月份')
-          return false
-        }
-      })
-    },
     // 导出
-    exportList () {
+    handleExport () {
       const _this = this
-      const params = JSON.parse(JSON.stringify(_this.queryParam))
+      const params = _this.queryParam
       _this.exportLoading = true
       _this.spinning = true
-      hdExportExcel(promoSalesExpenseExport, params, '人工录入单', function () {
+      hdExportExcel(verifyAccountChangeExport, params, '人工录入单', function () {
         _this.exportLoading = false
         _this.spinning = false
       })