Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
T
template_vue
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
胡宝山
template_vue
Commits
2c4b4f46
Commit
2c4b4f46
authored
Mar 18, 2024
by
Hagsn3
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改合格判定标准
parent
e343f6c8
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
139 additions
and
93 deletions
+139
-93
templateFirst.vue
src/views/template/templateFirst.vue
+139
-93
No files found.
src/views/template/templateFirst.vue
View file @
2c4b4f46
...
@@ -79,7 +79,6 @@
...
@@ -79,7 +79,6 @@
</div>
</div>
</el-form>
</el-form>
</div>
</div>
<hr
class=
"oneHr"
>
<el-tabs
v-model=
"activeName"
@
tab-click=
"handleClick"
>
<el-tabs
v-model=
"activeName"
@
tab-click=
"handleClick"
>
<el-tab-pane
label=
"标签一"
name=
"first"
>
<el-tab-pane
label=
"标签一"
name=
"first"
>
<div
class=
"OneTable"
>
<div
class=
"OneTable"
>
...
@@ -108,7 +107,7 @@
...
@@ -108,7 +107,7 @@
<div
class=
"recordOneContainer"
>
<div
class=
"recordOneContainer"
>
<div
class=
"inspectionStandards"
>
<div
class=
"inspectionStandards"
>
<el-form
ref=
"inspectJbAl2o3List"
label-width=
"80"
label-position=
"right"
:model=
"inspectJbAl2o3List"
:rules=
"rules"
>
<el-form
ref=
"inspectJbAl2o3List"
label-width=
"80"
label-position=
"right"
:model=
"inspectJbAl2o3List"
:rules=
"rules"
>
<el-form-item
label=
"检验标准1:"
prop=
"standardOne"
>
<el-form-item
label=
"检验标准1:"
prop=
"standardOne"
>
<el-input
<el-input
v-model=
"inspectJbAl2o3List.standardOne"
v-model=
"inspectJbAl2o3List.standardOne"
class=
"inspectionStandardsInput"
class=
"inspectionStandardsInput"
...
@@ -118,7 +117,7 @@
...
@@ -118,7 +117,7 @@
@
input=
"getCalculateDifference"
@
input=
"getCalculateDifference"
/>
/>
</el-form-item>
</el-form-item>
<el-form-item
label=
"检验标准2:"
prop=
"standonePlus"
>
<el-form-item
label=
"检验标准2:"
prop=
"standonePlus"
>
<el-input
<el-input
v-model=
"inspectJbAl2o3List.standonePlus"
v-model=
"inspectJbAl2o3List.standonePlus"
class=
"inspectionStandardsInput"
class=
"inspectionStandardsInput"
...
@@ -1260,21 +1259,21 @@
...
@@ -1260,21 +1259,21 @@
</el-form-item>
</el-form-item>
<el-form-item
label=
"差异:"
>
<el-form-item
label=
"差异:"
>
<span
v-if=
"inspectJbAl2o3List.limitThree"
>
{{
inspectJbAl2o3List
.
limitThree
}}
</span>
<span
v-if=
"inspectJbAl2o3List.limitThree"
>
{{
inspectJbAl2o3List
.
limitThree
}}
</span>
<span
v-else
></span
>
<span
v-else
/
>
<!--
<el-input-->
<!--
<el-input-->
<!-- v-model="inspectJbAl2o3List.limitThree"-->
<!-- v-model="inspectJbAl2o3List.limitThree"-->
<!-- class="inspectionStandardsInput"-->
<!-- class="inspectionStandardsInput"-->
<!-- :maxlength="7"-->
<!-- :maxlength="7"-->
<!-- :disabled="(firstFromDisabled)"-->
<!-- :disabled="(firstFromDisabled)"-->
<!-- @input="CalculateDifference"-->
<!-- @input="CalculateDifference"-->
<!-- />-->
<!-- />-->
</el-form-item>
</el-form-item>
</el-form>
</el-form>
<!--
<div-->
<!--
<div-->
<!-- class="inspectDifferent"-->
<!-- class="inspectDifferent"-->
<!-- :disabled="(firstFromDisabled)"-->
<!-- :disabled="(firstFromDisabled)"-->
<!-- @input="CalculateDifference"-->
<!-- @input="CalculateDifference"-->
<!-- >差异 :
</div>
-->
<!-- >差异 :
</div>
-->
</div>
</div>
<div
class=
"recordFourTitle"
>
<div
class=
"recordFourTitle"
>
<div
class=
"input"
>
输入
</div>
<div
class=
"input"
>
输入
</div>
...
@@ -2398,7 +2397,7 @@ export default {
...
@@ -2398,7 +2397,7 @@ export default {
{
pattern
:
/^
(
0|
[
1-9
]\d
*
)(\.\d{0,6})?
$/
,
message
:
'请输入有效的数字'
,
trigger
:
'change'
},
{
pattern
:
/^
(
0|
[
1-9
]\d
*
)(\.\d{0,6})?
$/
,
message
:
'请输入有效的数字'
,
trigger
:
'change'
},
{
validator
:
this
.
validateMethod3
,
trigger
:
'blur'
}
{
validator
:
this
.
validateMethod3
,
trigger
:
'blur'
}
],
],
standoneCy
:
[
{
required
:
true
,
message
:
'请输入差异'
,
trigger
:
'blur'
},
standoneCy
:
[{
required
:
true
,
message
:
'请输入差异'
,
trigger
:
'blur'
},
{
pattern
:
/^
(
0|
[
1-9
]\d
*
)(\.\d{0,6})?
$/
,
message
:
'请输入有效的数字'
,
trigger
:
'change'
}],
{
pattern
:
/^
(
0|
[
1-9
]\d
*
)(\.\d{0,6})?
$/
,
message
:
'请输入有效的数字'
,
trigger
:
'change'
}],
standtwoCy
:
[{
required
:
true
,
message
:
'请输入差异'
,
trigger
:
'blur'
},
standtwoCy
:
[{
required
:
true
,
message
:
'请输入差异'
,
trigger
:
'blur'
},
{
pattern
:
/^
(
0|
[
1-9
]\d
*
)(\.\d{0,6})?
$/
,
message
:
'请输入有效的数字'
,
trigger
:
'change'
}],
{
pattern
:
/^
(
0|
[
1-9
]\d
*
)(\.\d{0,6})?
$/
,
message
:
'请输入有效的数字'
,
trigger
:
'change'
}],
...
@@ -2881,16 +2880,16 @@ export default {
...
@@ -2881,16 +2880,16 @@ export default {
/* 表单1的计算方法*/
/* 表单1的计算方法*/
handleData1Input
(
index
)
{
handleData1Input
(
index
)
{
// 两种情况 1.单数 2.双数
// 两种情况 1.单数 2.双数
if
(
index
%
2
===
0
)
{
if
(
index
%
2
===
0
)
{
/**
/**
* 1.单数情况下计算 自身与自身加1 的差值和均值
* 1.单数情况下计算 自身与自身加1 的差值和均值
*
*
* **/
* **/
if
(
this
.
inspectJbAl2o3List
.
recode1
[
index
].
recordData
&&
this
.
inspectJbAl2o3List
.
recode1
[
index
].
recordData
!==
''
&&
this
.
inspectJbAl2o3List
.
recode1
[
index
].
recordData
!==
undefined
&&
this
.
inspectJbAl2o3List
.
recode1
[
index
+
1
].
recordData
&&
this
.
inspectJbAl2o3List
.
recode1
[
index
+
1
].
recordData
!==
''
&&
this
.
inspectJbAl2o3List
.
recode1
[
index
+
1
].
recordData
!==
undefined
)
{
if
(
this
.
inspectJbAl2o3List
.
recode1
[
index
].
recordData
&&
this
.
inspectJbAl2o3List
.
recode1
[
index
].
recordData
!==
''
&&
this
.
inspectJbAl2o3List
.
recode1
[
index
].
recordData
!==
undefined
&&
this
.
inspectJbAl2o3List
.
recode1
[
index
+
1
].
recordData
&&
this
.
inspectJbAl2o3List
.
recode1
[
index
+
1
].
recordData
!==
''
&&
this
.
inspectJbAl2o3List
.
recode1
[
index
+
1
].
recordData
!==
undefined
)
{
const
num1
=
parseFloat
(
this
.
inspectJbAl2o3List
.
recode1
[
index
].
recordData
)
const
num1
=
parseFloat
(
this
.
inspectJbAl2o3List
.
recode1
[
index
].
recordData
)
const
num2
=
parseFloat
(
this
.
inspectJbAl2o3List
.
recode1
[
index
+
1
].
recordData
)
const
num2
=
parseFloat
(
this
.
inspectJbAl2o3List
.
recode1
[
index
+
1
].
recordData
)
this
.
inspectJbAl2o3List
.
recode1
[
index
+
1
].
differenceValue
=
this
.
digitalFormat
(
Math
.
abs
(
num1
-
num2
).
toFixed
(
this
.
LIMITNGHOURS
))
this
.
inspectJbAl2o3List
.
recode1
[
index
+
1
].
differenceValue
=
this
.
digitalFormat
(
Math
.
abs
(
num1
-
num2
).
toFixed
(
this
.
LIMITNGHOURS
))
this
.
inspectJbAl2o3List
.
recode1
[
index
+
1
].
differenceValue1
=
this
.
digitalFormat
(((
num1
+
num2
)
/
2
).
toFixed
(
this
.
LIMITNGHOURS
))
this
.
inspectJbAl2o3List
.
recode1
[
index
+
1
].
differenceValue1
=
this
.
digitalFormat
(((
num1
+
num2
)
/
2
).
toFixed
(
this
.
LIMITNGHOURS
))
}
else
{
}
else
{
this
.
inspectJbAl2o3List
.
recode1
[
index
+
1
].
differenceValue
=
''
this
.
inspectJbAl2o3List
.
recode1
[
index
+
1
].
differenceValue
=
''
this
.
inspectJbAl2o3List
.
recode1
[
index
+
1
].
differenceValue1
=
''
this
.
inspectJbAl2o3List
.
recode1
[
index
+
1
].
differenceValue1
=
''
...
@@ -2900,7 +2899,7 @@ export default {
...
@@ -2900,7 +2899,7 @@ export default {
* 1.单数情况下计算 自身与自身减一 的差值和均值
* 1.单数情况下计算 自身与自身减一 的差值和均值
*
*
* **/
* **/
if
(
this
.
inspectJbAl2o3List
.
recode1
[
index
].
recordData
&&
this
.
inspectJbAl2o3List
.
recode1
[
index
].
recordData
!==
''
&&
this
.
inspectJbAl2o3List
.
recode1
[
index
-
1
].
recordData
!==
undefined
&&
this
.
inspectJbAl2o3List
.
recode1
[
index
-
1
].
recordData
&&
this
.
inspectJbAl2o3List
.
recode1
[
index
-
1
].
recordData
!==
''
&&
this
.
inspectJbAl2o3List
.
recode1
[
index
-
1
].
recordData
!==
undefined
)
{
if
(
this
.
inspectJbAl2o3List
.
recode1
[
index
].
recordData
&&
this
.
inspectJbAl2o3List
.
recode1
[
index
].
recordData
!==
''
&&
this
.
inspectJbAl2o3List
.
recode1
[
index
-
1
].
recordData
!==
undefined
&&
this
.
inspectJbAl2o3List
.
recode1
[
index
-
1
].
recordData
&&
this
.
inspectJbAl2o3List
.
recode1
[
index
-
1
].
recordData
!==
''
&&
this
.
inspectJbAl2o3List
.
recode1
[
index
-
1
].
recordData
!==
undefined
)
{
const
num1
=
parseFloat
(
this
.
inspectJbAl2o3List
.
recode1
[
index
].
recordData
)
const
num1
=
parseFloat
(
this
.
inspectJbAl2o3List
.
recode1
[
index
].
recordData
)
const
num2
=
parseFloat
(
this
.
inspectJbAl2o3List
.
recode1
[
index
-
1
].
recordData
)
const
num2
=
parseFloat
(
this
.
inspectJbAl2o3List
.
recode1
[
index
-
1
].
recordData
)
this
.
inspectJbAl2o3List
.
recode1
[
index
].
differenceValue
=
this
.
digitalFormat
(
Math
.
abs
(
num1
-
num2
).
toFixed
(
this
.
LIMITNGHOURS
))
this
.
inspectJbAl2o3List
.
recode1
[
index
].
differenceValue
=
this
.
digitalFormat
(
Math
.
abs
(
num1
-
num2
).
toFixed
(
this
.
LIMITNGHOURS
))
...
@@ -2910,17 +2909,17 @@ export default {
...
@@ -2910,17 +2909,17 @@ export default {
this
.
inspectJbAl2o3List
.
recode1
[
index
].
differenceValue1
=
''
this
.
inspectJbAl2o3List
.
recode1
[
index
].
differenceValue1
=
''
}
}
}
}
if
(
index
<
this
.
inspectJbAl2o3List
.
recode1
.
length
)
{
if
(
index
<
this
.
inspectJbAl2o3List
.
recode1
.
length
)
{
if
(
this
.
inspectJbAl2o3List
.
recode1
[
index
].
recordData
===
''
)
{
if
(
this
.
inspectJbAl2o3List
.
recode1
[
index
].
recordData
===
''
)
{
this
.
SumList
[
index
]
=
null
this
.
SumList
[
index
]
=
null
}
else
{
}
else
{
this
.
SumList
[
index
]
=
Number
(
this
.
inspectJbAl2o3List
.
recode1
[
index
].
recordData
)
this
.
SumList
[
index
]
=
Number
(
this
.
inspectJbAl2o3List
.
recode1
[
index
].
recordData
)
}
this
.
calculate
(
this
.
removeEmptyValues
(
this
.
SumList
),
1
)
}
}
this
.
calculateStandardTagOne
(
index
,
this
.
inspectJbAl2o3List
.
standardOne
,
this
.
inspectJbAl2o3List
.
standonePlus
,
this
.
inspectJbAl2o3List
.
standoneCy
)
this
.
calculate
(
this
.
removeEmptyValues
(
this
.
SumList
),
1
)
}
this
.
calculateStandardTagOne
(
index
,
this
.
inspectJbAl2o3List
.
standardOne
,
this
.
inspectJbAl2o3List
.
standonePlus
,
this
.
inspectJbAl2o3List
.
standoneCy
)
// console.log('11111', this.SumList)
// console.log('11111', this.SumList)
},
},
/**
/**
...
@@ -2931,9 +2930,9 @@ export default {
...
@@ -2931,9 +2930,9 @@ export default {
**/
**/
compute
(
index
)
{
compute
(
index
)
{
var
result
=
false
var
result
=
false
console
.
log
(
'index'
,
index
%
2
)
console
.
log
(
'index'
,
index
%
2
)
if
(
index
%
2
===
1
)
{
if
(
index
%
2
===
1
)
{
result
=
true
result
=
true
}
}
return
result
return
result
},
},
...
@@ -3006,12 +3005,12 @@ export default {
...
@@ -3006,12 +3005,12 @@ export default {
/* 表单2的计算方法*/
/* 表单2的计算方法*/
handleData2Input
(
index
)
{
handleData2Input
(
index
)
{
// 两种情况 1.单数 2.双数
// 两种情况 1.单数 2.双数
if
(
index
%
2
===
0
)
{
if
(
index
%
2
===
0
)
{
/**
/**
* 1.单数情况下计算 自身与自身加1 的差值和均值
* 1.单数情况下计算 自身与自身加1 的差值和均值
*
*
* **/
* **/
if
(
this
.
inspectJbAl2o3List
.
recode2
[
index
].
recordData
&&
this
.
inspectJbAl2o3List
.
recode2
[
index
].
recordData
!==
''
&&
this
.
inspectJbAl2o3List
.
recode2
[
index
].
recordData
!==
undefined
&&
this
.
inspectJbAl2o3List
.
recode2
[
index
+
1
].
recordData
&&
this
.
inspectJbAl2o3List
.
recode2
[
index
+
1
].
recordData
!==
''
&&
this
.
inspectJbAl2o3List
.
recode2
[
index
+
1
].
recordData
!==
undefined
)
{
if
(
this
.
inspectJbAl2o3List
.
recode2
[
index
].
recordData
&&
this
.
inspectJbAl2o3List
.
recode2
[
index
].
recordData
!==
''
&&
this
.
inspectJbAl2o3List
.
recode2
[
index
].
recordData
!==
undefined
&&
this
.
inspectJbAl2o3List
.
recode2
[
index
+
1
].
recordData
&&
this
.
inspectJbAl2o3List
.
recode2
[
index
+
1
].
recordData
!==
''
&&
this
.
inspectJbAl2o3List
.
recode2
[
index
+
1
].
recordData
!==
undefined
)
{
const
num1
=
parseFloat
(
this
.
inspectJbAl2o3List
.
recode2
[
index
].
recordData
)
const
num1
=
parseFloat
(
this
.
inspectJbAl2o3List
.
recode2
[
index
].
recordData
)
const
num2
=
parseFloat
(
this
.
inspectJbAl2o3List
.
recode2
[
index
+
1
].
recordData
)
const
num2
=
parseFloat
(
this
.
inspectJbAl2o3List
.
recode2
[
index
+
1
].
recordData
)
this
.
inspectJbAl2o3List
.
recode2
[
index
+
1
].
differenceValue
=
this
.
digitalFormat
(
Math
.
abs
(
num1
-
num2
).
toFixed
(
this
.
LIMITNGHOURS
))
this
.
inspectJbAl2o3List
.
recode2
[
index
+
1
].
differenceValue
=
this
.
digitalFormat
(
Math
.
abs
(
num1
-
num2
).
toFixed
(
this
.
LIMITNGHOURS
))
...
@@ -3025,7 +3024,7 @@ export default {
...
@@ -3025,7 +3024,7 @@ export default {
* 1.单数情况下计算 自身与自身减一 的差值和均值
* 1.单数情况下计算 自身与自身减一 的差值和均值
*
*
* **/
* **/
if
(
this
.
inspectJbAl2o3List
.
recode2
[
index
].
recordData
&&
this
.
inspectJbAl2o3List
.
recode2
[
index
].
recordData
!==
''
&&
this
.
inspectJbAl2o3List
.
recode2
[
index
-
1
].
recordData
!==
undefined
&&
this
.
inspectJbAl2o3List
.
recode2
[
index
-
1
].
recordData
&&
this
.
inspectJbAl2o3List
.
recode2
[
index
-
1
].
recordData
!==
''
&&
this
.
inspectJbAl2o3List
.
recode2
[
index
-
1
].
recordData
!==
undefined
)
{
if
(
this
.
inspectJbAl2o3List
.
recode2
[
index
].
recordData
&&
this
.
inspectJbAl2o3List
.
recode2
[
index
].
recordData
!==
''
&&
this
.
inspectJbAl2o3List
.
recode2
[
index
-
1
].
recordData
!==
undefined
&&
this
.
inspectJbAl2o3List
.
recode2
[
index
-
1
].
recordData
&&
this
.
inspectJbAl2o3List
.
recode2
[
index
-
1
].
recordData
!==
''
&&
this
.
inspectJbAl2o3List
.
recode2
[
index
-
1
].
recordData
!==
undefined
)
{
const
num1
=
parseFloat
(
this
.
inspectJbAl2o3List
.
recode2
[
index
].
recordData
)
const
num1
=
parseFloat
(
this
.
inspectJbAl2o3List
.
recode2
[
index
].
recordData
)
const
num2
=
parseFloat
(
this
.
inspectJbAl2o3List
.
recode2
[
index
-
1
].
recordData
)
const
num2
=
parseFloat
(
this
.
inspectJbAl2o3List
.
recode2
[
index
-
1
].
recordData
)
this
.
inspectJbAl2o3List
.
recode2
[
index
].
differenceValue
=
this
.
digitalFormat
(
Math
.
abs
(
num1
-
num2
).
toFixed
(
this
.
LIMITNGHOURS
))
this
.
inspectJbAl2o3List
.
recode2
[
index
].
differenceValue
=
this
.
digitalFormat
(
Math
.
abs
(
num1
-
num2
).
toFixed
(
this
.
LIMITNGHOURS
))
...
@@ -3035,52 +3034,83 @@ export default {
...
@@ -3035,52 +3034,83 @@ export default {
this
.
inspectJbAl2o3List
.
recode2
[
index
].
differenceValue1
=
''
this
.
inspectJbAl2o3List
.
recode2
[
index
].
differenceValue1
=
''
}
}
}
}
if
(
index
<
this
.
inspectJbAl2o3List
.
recode2
.
length
)
{
if
(
index
<
this
.
inspectJbAl2o3List
.
recode2
.
length
)
{
if
(
this
.
inspectJbAl2o3List
.
recode2
[
index
].
recordData
===
''
)
{
if
(
this
.
inspectJbAl2o3List
.
recode2
[
index
].
recordData
===
''
)
{
this
.
SumList1
[
index
]
=
null
this
.
SumList1
[
index
]
=
null
}
else
{
}
else
{
this
.
SumList1
[
index
]
=
Number
(
this
.
inspectJbAl2o3List
.
recode2
[
index
].
recordData
)
this
.
SumList1
[
index
]
=
Number
(
this
.
inspectJbAl2o3List
.
recode2
[
index
].
recordData
)
}
this
.
calculate
(
this
.
removeEmptyValues
(
this
.
SumList1
),
2
)
}
}
this
.
calculateStandardTagTwo
(
index
,
this
.
inspectJbAl2o3List
.
standardTwo
,
this
.
inspectJbAl2o3List
.
standtwoPlus
,
this
.
inspectJbAl2o3List
.
standtwoCy
)
this
.
calculate
(
this
.
removeEmptyValues
(
this
.
SumList1
),
2
)
},
}
this
.
calculateStandardTagTwo
(
index
,
this
.
inspectJbAl2o3List
.
standardTwo
,
this
.
inspectJbAl2o3List
.
standtwoPlus
,
this
.
inspectJbAl2o3List
.
standtwoCy
)
},
calculateStandardTagOne
(
index
,
standardOne
,
standardTwo
,
difference
)
{
calculateStandardTagOne
(
index
,
standardOne
,
standardTwo
,
difference
)
{
if
(
standardOne
&&
standardOne
!==
null
&&
standardTwo
&&
standardTwo
!==
null
&&
difference
&&
difference
!==
null
)
{
if
(
standardOne
&&
standardOne
!==
null
&&
standardTwo
&&
standardTwo
!==
null
&&
difference
&&
difference
!==
null
)
{
const
limitOne
=
parseFloat
(
standardOne
)
const
limitOne
=
parseFloat
(
standardOne
)
const
limitTwo
=
parseFloat
(
standardTwo
)
const
limitTwo
=
parseFloat
(
standardTwo
)
const
difference1
=
parseFloat
(
difference
)
const
difference1
=
parseFloat
(
difference
)
const
recordData
=
this
.
inspectJbAl2o3List
.
recode1
[
index
].
recordData
const
recordData
=
this
.
inspectJbAl2o3List
.
recode1
[
index
].
recordData
const
differenceValue1
=
this
.
inspectJbAl2o3List
.
recode1
[
index
].
differenceValue1
if
(
recordData
!==
''
)
{
console
.
log
(
'recordData'
,
recordData
)
const
num
=
parseFloat
(
recordData
)
console
.
log
(
'differenceValue1'
,
differenceValue1
)
if
(
num
>=
(
limitOne
-
difference1
)
&&
num
<=
(
limitTwo
+
difference1
)
)
{
// if (recordData !== '') {
this
.
inspectJbAl2o3List
.
recode1
[
index
].
differenceValue2
=
'合格'
// const num = parseFloat(recordData)
}
else
{
// if (num >= (limitOne - difference1) && num
<=
(
limitTwo
+
difference1
))
{
this
.
inspectJbAl2o3List
.
recode1
[
index
].
differenceValue2
=
'不合格'
// this.inspectJbAl2o3List.recode1[index].differenceValue2 = '合格'
}
// } else {
}
// this.inspectJbAl2o3List.recode1[index].differenceValue2 = '不合格'
}
// }
// } else {
// this.inspectJbAl2o3List.recode1[index].differenceValue2 = ''
// }
if
(
differenceValue1
!==
''
)
{
const
num
=
parseFloat
(
differenceValue1
)
console
.
log
(
'num'
,
num
)
if
(
num
>=
(
limitOne
-
difference1
)
&&
num
<=
(
limitTwo
+
difference1
))
{
this
.
inspectJbAl2o3List
.
recode1
[
index
].
differenceValue2
=
'合格'
}
else
{
this
.
inspectJbAl2o3List
.
recode1
[
index
].
differenceValue2
=
'不合格'
}
}
else
{
this
.
inspectJbAl2o3List
.
recode1
[
index
].
differenceValue2
=
''
}
}
},
},
calculateStandardTagTwo
(
index
,
standardOne
,
standardTwo
,
difference
)
{
calculateStandardTagTwo
(
index
,
standardOne
,
standardTwo
,
difference
)
{
if
(
standardOne
&&
standardOne
!==
null
&&
standardTwo
&&
standardTwo
!==
null
&&
difference
&&
difference
!==
null
)
{
if
(
standardOne
&&
standardOne
!==
null
&&
standardTwo
&&
standardTwo
!==
null
&&
difference
&&
difference
!==
null
)
{
const
limitOne
=
parseFloat
(
standardOne
)
const
limitOne
=
parseFloat
(
standardOne
)
const
limitTwo
=
parseFloat
(
standardTwo
)
const
limitTwo
=
parseFloat
(
standardTwo
)
const
difference1
=
parseFloat
(
difference
)
const
difference1
=
parseFloat
(
difference
)
const
recordData
=
this
.
inspectJbAl2o3List
.
recode2
[
index
].
recordData
const
recordData
=
this
.
inspectJbAl2o3List
.
recode2
[
index
].
recordData
if
(
recordData
!==
''
)
{
const
differenceValue1
=
this
.
inspectJbAl2o3List
.
recode2
[
index
].
differenceValue1
const
num
=
parseFloat
(
recordData
)
console
.
log
(
'recordData'
,
recordData
)
if
(
num
>=
(
limitOne
-
difference1
)
&&
num
<=
(
limitTwo
+
difference1
))
{
console
.
log
(
'differenceValue1'
,
differenceValue1
)
this
.
inspectJbAl2o3List
.
recode2
[
index
].
differenceValue2
=
'合格'
// const recordData = this.inspectJbAl2o3List.recode2[index].recordData
}
else
{
// if (recordData !== '') {
this
.
inspectJbAl2o3List
.
recode2
[
index
].
differenceValue2
=
'不合格'
// const num = parseFloat(recordData)
}
// if (num >= (limitOne - difference1) && num
<=
(
limitTwo
+
difference1
))
{
}
// this.inspectJbAl2o3List.recode2[index].differenceValue2 = '合格'
}
// } else {
// this.inspectJbAl2o3List.recode2[index].differenceValue2 = '不合格'
// }
// } else {
// this.inspectJbAl2o3List.recode2[index].differenceValue2 = ''
// }
if
(
differenceValue1
!==
''
)
{
const
num
=
parseFloat
(
differenceValue1
)
console
.
log
(
'num'
,
num
)
if
(
num
>=
(
limitOne
-
difference1
)
&&
num
<=
(
limitTwo
+
difference1
))
{
this
.
inspectJbAl2o3List
.
recode2
[
index
].
differenceValue2
=
'合格'
}
else
{
this
.
inspectJbAl2o3List
.
recode2
[
index
].
differenceValue2
=
'不合格'
}
}
else
{
this
.
inspectJbAl2o3List
.
recode2
[
index
].
differenceValue2
=
''
}
}
},
},
/* 表单3的计算方法*/
/* 表单3的计算方法*/
...
@@ -3119,7 +3149,7 @@ export default {
...
@@ -3119,7 +3149,7 @@ export default {
for
(
let
i
=
0
;
i
<
15
;
i
++
)
{
for
(
let
i
=
0
;
i
<
15
;
i
++
)
{
this
.
handleData3Input
(
i
)
this
.
handleData3Input
(
i
)
}
}
if
(
this
.
inspectJbAl2o3List
.
limitOne
&&
this
.
inspectJbAl2o3List
.
limitOne
!==
''
&&
this
.
inspectJbAl2o3List
.
limitOne
!==
undefined
&&
this
.
inspectJbAl2o3List
.
limitTwo
&&
this
.
inspectJbAl2o3List
.
limitTwo
!==
''
&&
this
.
inspectJbAl2o3List
.
limitTwo
!==
undefined
)
{
if
(
this
.
inspectJbAl2o3List
.
limitOne
&&
this
.
inspectJbAl2o3List
.
limitOne
!==
''
&&
this
.
inspectJbAl2o3List
.
limitOne
!==
undefined
&&
this
.
inspectJbAl2o3List
.
limitTwo
&&
this
.
inspectJbAl2o3List
.
limitTwo
!==
''
&&
this
.
inspectJbAl2o3List
.
limitTwo
!==
undefined
)
{
const
limitOne
=
parseFloat
(
this
.
inspectJbAl2o3List
.
limitOne
)
const
limitOne
=
parseFloat
(
this
.
inspectJbAl2o3List
.
limitOne
)
const
limitTwo
=
parseFloat
(
this
.
inspectJbAl2o3List
.
limitTwo
)
const
limitTwo
=
parseFloat
(
this
.
inspectJbAl2o3List
.
limitTwo
)
this
.
inspectJbAl2o3List
.
limitThree
=
Math
.
abs
(
limitOne
-
limitTwo
)
this
.
inspectJbAl2o3List
.
limitThree
=
Math
.
abs
(
limitOne
-
limitTwo
)
...
@@ -3129,16 +3159,16 @@ export default {
...
@@ -3129,16 +3159,16 @@ export default {
},
},
// 计算标签一的校验标准1 和 检验标准2 之间的差值
// 计算标签一的校验标准1 和 检验标准2 之间的差值
getCalculateDifference
()
{
getCalculateDifference
()
{
// if (this.inspectJbAl2o3List.standardOne && this.inspectJbAl2o3List.standardOne !== '' && this.inspectJbAl2o3List.standonePlus && this.inspectJbAl2o3List.standonePlus != '' ) {
// if (this.inspectJbAl2o3List.standardOne && this.inspectJbAl2o3List.standardOne !== '' && this.inspectJbAl2o3List.standonePlus && this.inspectJbAl2o3List.standonePlus != '' ) {
// const limitOne = parseFloat(this.inspectJbAl2o3List.standardOne )
// const limitOne = parseFloat(this.inspectJbAl2o3List.standardOne )
// const limitTwo = parseFloat(this.inspectJbAl2o3List.standonePlus)
// const limitTwo = parseFloat(this.inspectJbAl2o3List.standonePlus)
// this.inspectJbAl2o3List.standoneCy = Math.abs(limitOne - limitTwo)
// this.inspectJbAl2o3List.standoneCy = Math.abs(limitOne - limitTwo)
// } else {
// } else {
// this.inspectJbAl2o3List.standoneCy = ''
// this.inspectJbAl2o3List.standoneCy = ''
// }
// }
for
(
var
i
=
0
;
i
<
10
;
i
++
)
{
for
(
var
i
=
0
;
i
<
10
;
i
++
)
{
this
.
calculateStandardTagOne
(
i
,
this
.
inspectJbAl2o3List
.
standardOne
,
this
.
inspectJbAl2o3List
.
standonePlus
,
this
.
inspectJbAl2o3List
.
standoneCy
)
this
.
calculateStandardTagOne
(
i
,
this
.
inspectJbAl2o3List
.
standardOne
,
this
.
inspectJbAl2o3List
.
standonePlus
,
this
.
inspectJbAl2o3List
.
standoneCy
)
}
}
},
},
// 计算标签一的校验标准1 和 检验标准2 之间的差值
// 计算标签一的校验标准1 和 检验标准2 之间的差值
...
@@ -3150,8 +3180,8 @@ export default {
...
@@ -3150,8 +3180,8 @@ export default {
// } else {
// } else {
// this.inspectJbAl2o3List.standtwoPlus = ''
// this.inspectJbAl2o3List.standtwoPlus = ''
// }
// }
for
(
var
i
=
0
;
i
<
10
;
i
++
)
{
for
(
var
i
=
0
;
i
<
10
;
i
++
)
{
this
.
calculateStandardTagTwo
(
i
,
this
.
inspectJbAl2o3List
.
standardTwo
,
this
.
inspectJbAl2o3List
.
standtwoPlus
,
this
.
inspectJbAl2o3List
.
standtwoCy
)
this
.
calculateStandardTagTwo
(
i
,
this
.
inspectJbAl2o3List
.
standardTwo
,
this
.
inspectJbAl2o3List
.
standtwoPlus
,
this
.
inspectJbAl2o3List
.
standtwoCy
)
}
}
},
},
...
@@ -4462,6 +4492,8 @@ export default {
...
@@ -4462,6 +4492,8 @@ export default {
}
}
.compareValue
{
.compareValue
{
/**挪一下位置*/
margin-top
:
-7%
;
width
:
25%
;
width
:
25%
;
font-size
:
14px
;
font-size
:
14px
;
font-family
:
Microsoft
YaHei
,
Microsoft
YaHei-400
;
font-family
:
Microsoft
YaHei
,
Microsoft
YaHei-400
;
...
@@ -4473,6 +4505,8 @@ export default {
...
@@ -4473,6 +4505,8 @@ export default {
align-items
:
center
;
align-items
:
center
;
}
}
.eorrCompareValue
{
.eorrCompareValue
{
/**挪一下位置*/
margin-top
:
-8%
;
width
:
25%
;
width
:
25%
;
font-size
:
14px
;
font-size
:
14px
;
font-family
:
Microsoft
YaHei
,
Microsoft
YaHei-400
;
font-family
:
Microsoft
YaHei
,
Microsoft
YaHei-400
;
...
@@ -4557,6 +4591,8 @@ export default {
...
@@ -4557,6 +4591,8 @@ export default {
}
}
.compareValue
{
.compareValue
{
/**挪一下位置*/
margin-top
:
-7%
;
width
:
25%
;
width
:
25%
;
font-size
:
14px
;
font-size
:
14px
;
font-family
:
Microsoft
YaHei
,
Microsoft
YaHei-400
;
font-family
:
Microsoft
YaHei
,
Microsoft
YaHei-400
;
...
@@ -4569,6 +4605,8 @@ export default {
...
@@ -4569,6 +4605,8 @@ export default {
}
}
.eorrCompareValue
{
.eorrCompareValue
{
/**挪一下位置*/
margin-top
:
-8%
;
width
:
25%
;
width
:
25%
;
font-size
:
14px
;
font-size
:
14px
;
font-family
:
Microsoft
YaHei
,
Microsoft
YaHei-400
;
font-family
:
Microsoft
YaHei
,
Microsoft
YaHei-400
;
...
@@ -5004,6 +5042,8 @@ export default {
...
@@ -5004,6 +5042,8 @@ export default {
}
}
.compareValue
{
.compareValue
{
/**挪一下位置*/
margin-top
:
-7%
;
width
:
25%
;
width
:
25%
;
font-size
:
14px
;
font-size
:
14px
;
font-family
:
Microsoft
YaHei
,
Microsoft
YaHei-400
;
font-family
:
Microsoft
YaHei
,
Microsoft
YaHei-400
;
...
@@ -5015,6 +5055,8 @@ export default {
...
@@ -5015,6 +5055,8 @@ export default {
align-items
:
center
;
align-items
:
center
;
}
}
.errorCompareValue
{
.errorCompareValue
{
/**挪一下位置*/
margin-top
:
-8%
;
width
:
25%
;
width
:
25%
;
font-size
:
14px
;
font-size
:
14px
;
font-family
:
Microsoft
YaHei
,
Microsoft
YaHei-400
;
font-family
:
Microsoft
YaHei
,
Microsoft
YaHei-400
;
...
@@ -5101,6 +5143,8 @@ export default {
...
@@ -5101,6 +5143,8 @@ export default {
}
}
.compareValue
{
.compareValue
{
/**挪一下位置*/
margin-top
:
-7%
;
width
:
25%
;
width
:
25%
;
font-size
:
14px
;
font-size
:
14px
;
font-family
:
Microsoft
YaHei
,
Microsoft
YaHei-400
;
font-family
:
Microsoft
YaHei
,
Microsoft
YaHei-400
;
...
@@ -5112,6 +5156,8 @@ export default {
...
@@ -5112,6 +5156,8 @@ export default {
align-items
:
center
;
align-items
:
center
;
}
}
.errorCompareValue
{
.errorCompareValue
{
/**挪一下位置*/
margin-top
:
-8%
;
width
:
25%
;
width
:
25%
;
font-size
:
14px
;
font-size
:
14px
;
font-family
:
Microsoft
YaHei
,
Microsoft
YaHei-400
;
font-family
:
Microsoft
YaHei
,
Microsoft
YaHei-400
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment