源文件

This commit is contained in:
gyq
2024-05-23 14:39:33 +08:00
commit a1128dd791
2997 changed files with 500069 additions and 0 deletions

View File

@@ -0,0 +1,15 @@
/***
* 单位换算 分转元
* data, 原始数据
* list 需要装换的 数组 object的 key
* */
function yuan(data, list = []) {
const obj = data
list.forEach((v) => {
obj[v] = (obj[v] / 100).toFixed(2)
})
return obj
}
export default { yuan }