Commit 6bd0108b authored by Hagsn3's avatar Hagsn3

提交

parent f44d6e1f
...@@ -531,13 +531,15 @@ ...@@ -531,13 +531,15 @@
/> />
</el-form-item> </el-form-item>
<el-form-item class="emptyInput" /> <el-form-item class="emptyInput" />
<el-form-item label="cyPn:" class="inspectJbAlInputBody"> <el-form-item label="cyPn:" class="inspectJbAlInputBody">
<el-input <span
v-model="inspectJbAl2o3List.cyPn"
:disabled="(controlsForm.controls ==='1'&& controlsForm.approveStatus ==='1') :disabled="(controlsForm.controls ==='1'&& controlsForm.approveStatus ==='1')
|| (controlsForm.controls == '3' && controlsForm.approveStatus === '1') || (controlsForm.controls ==='3'&&controlsForm.approveStatus === '9' )" || (controlsForm.controls == '3' && controlsForm.approveStatus === '1') || (controlsForm.controls ==='3'&&controlsForm.approveStatus === '9' )"
class="inspectJbAlInput" class="inspectJbAlInput"
/> >
{{ inspectJbAl2o3List.cyPn }}
</span>
</el-form-item> </el-form-item>
<el-form-item class="emptyInput" /> <el-form-item class="emptyInput" />
<el-form-item class="emptyInput" /> <el-form-item class="emptyInput" />
...@@ -663,7 +665,8 @@ ...@@ -663,7 +665,8 @@
<el-form-item label="检验结果:"> <el-form-item label="检验结果:">
<div <div
v-if="((controlsForm.controls ==='1'&& controlsForm.approveStatus ==='1') v-if="((controlsForm.controls ==='1'&& controlsForm.approveStatus ==='1')
|| (controlsForm.controls == '3' && controlsForm.approveStatus === '1') || (controlsForm.controls ==='3'&&controlsForm.approveStatus === '9' ))" || (controlsForm.controls == '3' && controlsForm.approveStatus === '1')
|| (controlsForm.controls ==='3'&&controlsForm.approveStatus === '9' ))"
> >
<span :class="radioTextClass">{{ radioText }}</span> <span :class="radioTextClass">{{ radioText }}</span>
</div> </div>
...@@ -942,7 +945,7 @@ export default { ...@@ -942,7 +945,7 @@ export default {
wxPn: '5', wxPn: '5',
wxRes: '1', wxRes: '1',
cyN: '5', cyN: '5',
cyPn: '5', cyPn: '',
cyRes: '1', cyRes: '1',
finalRes: '1', finalRes: '1',
noProject: '5', noProject: '5',
...@@ -1041,6 +1044,7 @@ export default { ...@@ -1041,6 +1044,7 @@ export default {
this.resetRecord() this.resetRecord()
this.judgmentParam() this.judgmentParam()
this.getJcCode() this.getJcCode()
this.handleCyPn()
}, },
methods: { methods: {
// 校验方法1 // 校验方法1
...@@ -1067,11 +1071,38 @@ export default { ...@@ -1067,11 +1071,38 @@ export default {
} }
}, },
handleCyPn() { handleCyPn() {
this.inspectJbAl2o3List.cyPn = const standard = !isNaN(
Number(this.inspectJbAl2o3List.wgKx) + Number(this.inspectJbAl2o3List.wgKx) +
this.inspectJbAl2o3List.wgLlw + this.inspectJbAl2o3List.wgWlw + this.inspectJbAl2o3List.wgJbwq + this.inspectJbAl2o3List.wgZk + Number(this.inspectJbAl2o3List.wgLlw) +
this.inspectJbAl2o3List.wgSh + this.inspectJbAl2o3List.wgBm + this.inspectJbAl2o3List.wgTc + this.inspectJbAl2o3List.wgQg + Number(this.inspectJbAl2o3List.wgWlw) +
this.inspectJbAl2o3List.wgCq + this.inspectJbAl2o3List.wgFf + this.inspectJbAl2o3List.wgTf Number(this.inspectJbAl2o3List.wgJbwq) +
Number(this.inspectJbAl2o3List.wgZk) +
Number(this.inspectJbAl2o3List.wgSh) +
Number(this.inspectJbAl2o3List.wgBm) +
Number(this.inspectJbAl2o3List.wgTc) +
Number(this.inspectJbAl2o3List.wgQg) +
Number(this.inspectJbAl2o3List.wgCq) +
Number(this.inspectJbAl2o3List.wgFf) +
Number(this.inspectJbAl2o3List.wgTf)
)
if (standard) {
this.inspectJbAl2o3List.cyPn =
Number(this.inspectJbAl2o3List.wgKx) +
Number(this.inspectJbAl2o3List.wgLlw) +
Number(this.inspectJbAl2o3List.wgWlw) +
Number(this.inspectJbAl2o3List.wgJbwq) +
Number(this.inspectJbAl2o3List.wgZk) +
Number(this.inspectJbAl2o3List.wgSh) +
Number(this.inspectJbAl2o3List.wgBm) +
Number(this.inspectJbAl2o3List.wgTc) +
Number(this.inspectJbAl2o3List.wgQg) +
Number(this.inspectJbAl2o3List.wgCq) +
Number(this.inspectJbAl2o3List.wgFf) +
Number(this.inspectJbAl2o3List.wgTf)
} else {
this.$message.error('请输入有效的数值')
}
console.log('cyPn:', this.inspectJbAl2o3List.cyPn) console.log('cyPn:', this.inspectJbAl2o3List.cyPn)
}, },
/* 动态获取css的颜色*/ /* 动态获取css的颜色*/
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment