From b0b1ddf8cbbcc96abf88387702e96ef5d63ed3f1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=AD=A3=E5=9C=A3=E5=8D=8E?= <752718920@qq.com> Date: Tue, 18 Oct 2022 21:49:37 +0800 Subject: [PATCH] =?UTF-8?q?=E7=BB=99=E6=AC=A0=E6=AC=BE=E8=AF=A6=E6=83=85?= =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E6=89=93=E5=8D=B0=E5=92=8C=E5=AF=BC=E5=87=BA?= =?UTF-8?q?excel=E5=8A=9F=E8=83=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- jshERP-web/src/utils/util.js | 6 +-- .../views/report/modules/DebtAccountList.vue | 52 ++++++++++--------- 2 files changed, 29 insertions(+), 29 deletions(-) diff --git a/jshERP-web/src/utils/util.js b/jshERP-web/src/utils/util.js index d1daa94e..78484f18 100644 --- a/jshERP-web/src/utils/util.js +++ b/jshERP-web/src/utils/util.js @@ -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' } diff --git a/jshERP-web/src/views/report/modules/DebtAccountList.vue b/jshERP-web/src/views/report/modules/DebtAccountList.vue index 08bc3197..bc048944 100644 --- a/jshERP-web/src/views/report/modules/DebtAccountList.vue +++ b/jshERP-web/src/views/report/modules/DebtAccountList.vue @@ -28,27 +28,30 @@ 查询 - 重置 + 打印 + 导出 - - - {{record.number}} - - +
+ + + {{record.number}} + + +
@@ -58,6 +61,7 @@