给欠款详情增加打印和导出excel功能

This commit is contained in:
季圣华
2022-10-18 21:49:37 +08:00
parent 6ad7f157a6
commit b0b1ddf8cb
2 changed files with 29 additions and 29 deletions

View File

@@ -1,4 +1,3 @@
import * as api from '@/api/api'
import { isURL } from '@/utils/validate'
import XLSX from 'xlsx'
import Vue from 'vue'
@@ -527,8 +526,7 @@ export function getNowFormatStr() {
if (strSeconds >= 0 && strSeconds <= 9) {
strSeconds = "0" + strSeconds;
}
let currentdate = month + strDate + strHours + strMinutes + strSeconds;
return currentdate;
return month +''+ strDate +''+ strHours +''+ strMinutes +''+ strSeconds;
}
/**
@@ -609,7 +607,7 @@ export function sheet2blob (aoa, sheetName) {
workbook.Sheets[sheetName] = sheet
// 生成excel的配置项
let wopts = {
bookType: 'xlsx', // 要生成的文件类型
bookType: 'xls', // 要生成的文件类型
bookSST: false, // 是否生成Shared String Table官方解释是如果开启生成速度会下降但在低版本IOS设备上有更好的兼容性
type: 'binary'
}