lilei 3 주 전
부모
커밋
7291c62373

+ 60 - 33
src/api/verifyAccountChange.js

@@ -14,6 +14,52 @@ export const verifyAccountChangeList = (params) => {
     }
   })
 }
+// 调账保存
+export const verifyAccountChangeSave = params => {
+  return axios({
+    url: '/verifyAccountChange/save',
+    data: params,
+    method: 'post',
+    headers: {
+      'module': encodeURIComponent('创建调账')
+    }
+  })
+}
+// 调账调账  删除
+export const verifyAccountChangeDel = params => {
+  return axios({
+    url: `/verifyAccountChange/deleteBySn/${params.sn}`,
+    data: {},
+    method: 'post',
+    headers: {
+      'module': encodeURIComponent('删除调账')
+    }
+  })
+}
+// 调账调账  详情
+export const verifyAccountChangeDetail = params => {
+  return axios({
+    url: `/verifyAccountChange/queryBySn/${params.sn}`,
+    data: {},
+    method: 'post',
+    headers: {
+      'module': encodeURIComponent('查看调账详情')
+    }
+  })
+}
+ 
+// 调账调账  提交
+export const verifyAcountBillSubmit = params => {
+  return axios({
+    url: `/verifyAccountChange/submit`,
+    data: params,
+    method: 'post',
+    headers: {
+      'module': encodeURIComponent('调账提交')
+    }
+  })
+}
+
 // 经销商余额-分页列表
 export const verifyAccountBalanceQueryPage = (params) => {
   const url = `/verifyAccountBalance/queryPage/${params.pageNo}/${params.pageSize}`
@@ -56,48 +102,29 @@ export const verifyAccountBalanceQueryDetailCount = (params) => {
     }
   })
 }
-// 调账保存
-export const verifyAccountChangeSave = params => {
+// 对账余额导出
+export const verifyAccountBalanceExport = (params) => {
+  const url = `/verifyAccountBalance/export`
   return axios({
-    url: '/verifyAccountChange/save',
+    url: url,
     data: params,
     method: 'post',
-    headers: {
-      'module': encodeURIComponent('创建调账')
-    }
-  })
-}
-// 调账调账  删除
-export const verifyAccountChangeDel = params => {
-  return axios({
-    url: `/verifyAccountChange/deleteBySn/${params.sn}`,
-    data: {},
-    method: 'post',
-    headers: {
-      'module': encodeURIComponent('删除调账')
-    }
-  })
-}
-// 调账调账  详情
-export const verifyAccountChangeDetail = params => {
-  return axios({
-    url: `/verifyAccountChange/queryBySn/${params.sn}`,
-    data: {},
-    method: 'post',
-    headers: {
-      'module': encodeURIComponent('查看调账详情')
+    responseType: 'blob',
+    headers:{
+      'module': encodeURIComponent('对账余额列表导出')
     }
   })
 }
- 
-// 调账调账  提交
-export const verifyAcountBillSubmit = params => {
+// 对账余额明细导出
+export const verifyAccountBalanceDetailExport = (params) => {
+  const url = `/verifyAccountBalance/detailExport`
   return axios({
-    url: `/verifyAccountChange/submit`,
+    url: url,
     data: params,
     method: 'post',
-    headers: {
-      'module': encodeURIComponent('调账提交')
+    responseType: 'blob',
+    headers:{
+      'module': encodeURIComponent('对账余额明细列表导出')
     }
   })
 }

+ 8 - 2
src/views/financialManagement/accountStatementBill/detail.vue

@@ -120,11 +120,13 @@
 
 <script>
 import { commonMixin } from '@/utils/mixin'
+import { hdExportExcel } from '@/libs/exportExcel'
 import { STable, VSelect } from '@/components'
 import rangeDate from '@/views/common/rangeDate.vue'
 import {
   verifyAccountBalanceQueryDetailPage,
-  verifyAccountBalanceQueryDetailCount
+  verifyAccountBalanceQueryDetailCount,
+  verifyAccountBalanceDetailExport
 } from '@/api/verifyAccountChange'
 export default {
   name: 'AccountStatementBillDetail',
@@ -224,7 +226,11 @@ export default {
     },
     // 导出
     handleExport () {
-
+      const _this = this
+      _this.exportLoading = true
+      hdExportExcel(verifyAccountBalanceDetailExport, { dealerSn: this.dealerSn, ..._this.queryParam }, '(' + _this.$route.params.name + ')余额', function () {
+        _this.exportLoading = false
+      })
     },
     // 统计
     getCount (params) {

+ 7 - 2
src/views/financialManagement/accountStatementBill/list.vue

@@ -97,11 +97,12 @@
 <script>
 import { commonMixin } from '@/utils/mixin'
 import { STable, VSelect } from '@/components'
+import { hdExportExcel } from '@/libs/exportExcel'
 import subarea from '@/views/common/subarea.js'
 import dealerType from '@/views/common/dealerType.js'
 import customerService from '@/views/common/customerService.vue'
 import baseModal from './baseModal.vue'
-import { verifyAccountBalanceQueryPage } from '@/api/verifyAccountChange.js'
+import { verifyAccountBalanceQueryPage, verifyAccountBalanceExport } from '@/api/verifyAccountChange.js'
 export default {
   name: 'AccountStatementBillList',
   mixins: [commonMixin],
@@ -196,7 +197,11 @@ export default {
     },
     // 导出
     handleExport () {
-
+      const _this = this
+      _this.exportLoading = true
+      hdExportExcel(verifyAccountBalanceExport, _this.queryParam, '经销商对账单据余额', function () {
+        _this.exportLoading = false
+      })
     },
     // 新增
     handleAdd (row) {