修正汇总表BUG

This commit is contained in:
杰 朱
2021-08-02 12:54:21 +08:00
parent 5fa6a403f6
commit df4395a14b
4 changed files with 86 additions and 85 deletions

View File

@@ -274,9 +274,8 @@ export const export_col_to_excel = (colums, data, filename) => {
ws[XLSX.utils.encode_cell({ c: _col.left, r: _dataRow })] = v
} else {
if (v) {
// if (typeof v == 'Number') t = 'n'
// else
if (typeof v == 'boolean') t = 'b'
if (typeof v === 'number') {t = 'n'}
else if (typeof v === 'boolean') {t = 'b'}
else if (v instanceof Date) {
t = 'd'
// t = "n";