feat:样品分析元素显示与隐藏
This commit is contained in:
@@ -60,14 +60,17 @@ const Get_C_KNO3_bySValue = function (sValue, weight, operator) {
|
|||||||
|
|
||||||
return ''
|
return ''
|
||||||
}
|
}
|
||||||
const Get_C_KNO3 = function (sValue, weight, operator) {
|
const Get_C_KNO3 = function (weight, sValue, operator) {
|
||||||
//判断sValue是数字
|
//判断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 ''
|
return ''
|
||||||
}
|
}
|
||||||
let S = number(sValue)
|
|
||||||
const W = number(weight)
|
|
||||||
if (W === 0) return ''
|
if (W === 0) return ''
|
||||||
const V = ((W * S) / 100) * 22 - 75
|
const V = ((W * S) / 100) * 22 - 75
|
||||||
if (operator === '<' && V < 0) {
|
if (operator === '<' && V < 0) {
|
||||||
|
|||||||
File diff suppressed because it is too large
Load Diff
@@ -331,10 +331,10 @@ function checkPropertyEquality() {
|
|||||||
for (const column of allColumns) {
|
for (const column of allColumns) {
|
||||||
const formula = column.formula
|
const formula = column.formula
|
||||||
if (!formula) continue
|
if (!formula) continue
|
||||||
for (const [key, value] of Object.entries(dynamicFormData.value)) {
|
for (const [key, value] of Object.entries(realFormData.value)) {
|
||||||
if (formula.includes(key)) {
|
if (formula.includes(key)) {
|
||||||
const originalValue = value
|
const currentValue = value
|
||||||
const currentValue = realFormData.value[key]
|
const originalValue = dynamicFormData.value[key]
|
||||||
if (!looseEqual(originalValue, currentValue)) {
|
if (!looseEqual(originalValue, currentValue)) {
|
||||||
return true
|
return true
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user