fix : 分摊汇总表格及小计导出

This commit is contained in:
2024-06-21 15:22:22 +08:00
parent 9b758d41d0
commit b73b9aad4b
5 changed files with 212 additions and 70 deletions

View File

@@ -1,8 +1,9 @@
export const toThousands = (num) => {
if(num==undefined||num==null)return '--';
const options = {
style: 'currency',
currency: 'CNY',
};
return (num).toLocaleString('zh-CN', options)
let newNum=Number(num)
if (newNum == undefined || newNum == null) return '--';
const options = {
style: 'currency',
currency: 'CNY',
};
return (newNum).toLocaleString('zh-CN', options)
}