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); // 给合并行列赋值样式