sangwenwei 1 年之前
父节点
当前提交
9fc8c7782a

+ 17 - 0
src/api/cw/reimbursementApproval/ReimbursementApprovalService.js

@@ -81,6 +81,14 @@ export default class ReimbursementApprovalService {
       responseType: 'blob'
     })
   }
+	exportFile2 (params) {
+		return request({
+			url: prefix + '/reimbursementApproval/info/exportFile2',
+			method: 'get',
+			params: params,
+			responseType: 'blob'
+		})
+	}
 	exportInvoiceReimbursementFile (params) {
     return request({
       url: prefix + '/reimbursementApproval/info/exportInvoiceReimbursementFile',
@@ -89,6 +97,15 @@ export default class ReimbursementApprovalService {
       responseType: 'blob'
     })
   }
+	exportInvoiceReimbursementFile2 (params) {
+		return request({
+			url: prefix + '/reimbursementApproval/info/exportInvoiceReimbursementFile2',
+			method: 'get',
+			params: params,
+			responseType: 'blob'
+		})
+	}
+
   queryByProIds (ids) {
     return request({
       url: prefix + '/reimbursementApproval/info/queryByProIds',

+ 7 - 7
src/views/cw/szfbReimbursementApproval/info/InfoList.vue

@@ -151,8 +151,8 @@
 					:sort-config="{remote:true}"
 					:export-config="{
                     remote: true,
-                    filename: `会计报销数据${moment(new Date()).format('YYYY-MM-DD')}`,
-                    sheetName: `会计报销数据${moment(new Date()).format('YYYY-MM-DD')}`,
+                    filename: `业务操作报销数据${moment(new Date()).format('YYYY-MM-DD')}`,
+                    sheetName: `业务操作报销数据${moment(new Date()).format('YYYY-MM-DD')}`,
                     exportMethod: exportMethod,
                     types: ['xlsx'],
                     modes: ['current', 'selected', 'all']
@@ -538,12 +538,12 @@
 			// 下载文档
 			exportFile () {
 				this.loading = true
-				this.reimbursementApprovalService.exportFile({
+				this.reimbursementApprovalService.exportFile2({
 					'itemType': '1',
 					...this.searchForm
 				}).then((res) => {
 					// 将二进制流文件写入excel表,以下为重要步骤
-					this.$utils.downloadExcel(res, '会计-报销审批列表信息')
+					this.$utils.downloadExcel(res, '业务操作报销列表信息')
 					this.loading = false
 				}).catch(function (err) {
 					this.loading = false
@@ -555,12 +555,12 @@
 			// 下载文档
 			exportInvoiceReimbursementFile () {
 				this.loading = true
-				this.reimbursementApprovalService.exportInvoiceReimbursementFile({
+				this.reimbursementApprovalService.exportInvoiceReimbursementFile2({
 					'itemType': '1',
 					...this.searchForm
 				}).then((res) => {
 					// 将二进制流文件写入excel表,以下为重要步骤
-					this.$utils.downloadExcel(res, '会计-报销数电发票报销列表')
+					this.$utils.downloadExcel(res, '业务操作报销列表')
 					this.loading = false
 				}).catch(function (err) {
 					this.loading = false
@@ -591,7 +591,7 @@
 					selectIds: options.mode === 'selected' ? options.map(item => item.id) : [],
 					exportFields: options.columns.map(column => column.property)
 				}
-				return this.reimbursementApprovalService.exportFile(params).then((res) => {
+				return this.reimbursementApprovalService.exportFile2(params).then((res) => {
 					// 将二进制流文件写入excel表,以下为重要步骤
 					this.$utils.downloadExcel(res, options.filename)
 				}).catch(function (err) {