[update] - 统计增加相应的查询条件;增加科室总体统计页面

This commit is contained in:
fengchenchen
2022-06-08 17:05:04 +08:00
parent 0cc0e754e4
commit 0e07bf1338
12 changed files with 771 additions and 68 deletions
+14
View File
@@ -47,3 +47,17 @@ export function formatMoney(money) {
}
return ___(__(_(result) + point))
}
/* 将数字 转换成 3个数字一组,并且中间用,分隔得方式 */
export function handleCostNumber(value) {
if(!value){
return 0.00
}
//toFixed()方法可以把Number四舍五入为指定位数的数字
let str=parseFloat(value).toFixed(2)
//"?="表示查询的要满足的条件,
return str&&str.toString().replace(/(\d)(?=(\d{3})+\.)/g,function ($0,$1) {
return $1+','
})
}