fixcoding764 水泥包装

This commit is contained in:
shijing 2024-12-30 11:03:33 +08:00
parent 2c58eec472
commit 620d0345f1
1 changed files with 1 additions and 2 deletions

View File

@ -195,13 +195,12 @@ export default {
}
})
}
arr[6] = huanbi; //kW·h/t\
arr[6] =Number(huanbi); //kW·h/t\
if (arr[6] !== "/"){
arr[7] = (arr[3] - arr[6]).toFixed(2); //kW·h/t
}else{
arr[7] = "/"; //kW·h/t
}
// console.log(arr[7], arr[6])
if (arr[7] !=="/" && arr[6] !==0 && arr[7] !== "undefined"){
arr[8] = ((arr[7]/arr[6])*100).toFixed(2);
}else{