From 75aaa1930df7a7cbf738812a17f118d53352d24d Mon Sep 17 00:00:00 2001 From: qb <1191961160@qq.com> Date: Thu, 24 Oct 2024 19:06:08 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E5=AF=BC=E5=87=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/option/finance/WaybillAudit.js | 2 +- src/utils/export.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/option/finance/WaybillAudit.js b/src/option/finance/WaybillAudit.js index bc78a06e..8a0ae86e 100644 --- a/src/option/finance/WaybillAudit.js +++ b/src/option/finance/WaybillAudit.js @@ -39,7 +39,7 @@ export const columnList = [ { prop: 'orderNo', label: '订单编号', - type: 1, + type: 2, values: '', width: '150', checkarr: [], diff --git a/src/utils/export.js b/src/utils/export.js index dc7dcd6c..c2e3fe28 100644 --- a/src/utils/export.js +++ b/src/utils/export.js @@ -10,7 +10,7 @@ import { getObjType, isNumber } from '@/utils/util'; */ export function exportExcelByDom(dom, fileName) { const book = XLSX.utils.book_new(); - const sheet = XLSX.utils.table_to_sheet(dom); + const sheet = XLSX.utils.table_to_sheet(dom, { raw: true }); XLSX.utils.book_append_sheet(book, sheet, 'Sheet1'); addRangeBorder(sheet['!merges'], sheet); // 给合并行列赋值样式