feat:样品分析元素显示与隐藏

This commit is contained in:
houjunxiang
2026-02-04 15:47:05 +08:00
parent b5d87a072e
commit e10c70e819
3 changed files with 22 additions and 61 deletions

View File

@@ -60,14 +60,17 @@ const Get_C_KNO3_bySValue = function (sValue, weight, operator) {
return ''
}
const Get_C_KNO3 = function (sValue, weight, operator) {
const Get_C_KNO3 = function (weight, sValue, operator) {
//判断sValue是数字
const S = number(sValue)
const W = number(weight)
console.log(S, W)
if (sValue === 0 || weight === 0) {
//如果样重为0就不计算
if (W === 0) {
console.log('结束')
return ''
}
let S = number(sValue)
const W = number(weight)
if (W === 0) return ''
const V = ((W * S) / 100) * 22 - 75
if (operator === '<' && V < 0) {