feat:样品分析元素显示与隐藏
This commit is contained in:
@@ -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) {
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
@@ -331,10 +331,10 @@ function checkPropertyEquality() {
|
||||
for (const column of allColumns) {
|
||||
const formula = column.formula
|
||||
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)) {
|
||||
const originalValue = value
|
||||
const currentValue = realFormData.value[key]
|
||||
const currentValue = value
|
||||
const originalValue = dynamicFormData.value[key]
|
||||
if (!looseEqual(originalValue, currentValue)) {
|
||||
return true
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user