|
|
@@ -147,7 +147,7 @@
|
|
|
</el-col>
|
|
|
</el-row>
|
|
|
<el-row>
|
|
|
- <el-col :span="12" v-if="lei_xing_!='12-紫外灯消毒'">
|
|
|
+ <el-col :span="12" v-if="lei_xing_ != '12-紫外灯消毒'">
|
|
|
<el-form-item label="监控设备:">
|
|
|
<ibps-link-data
|
|
|
v-model="form.deviceno2_"
|
|
|
@@ -170,9 +170,8 @@
|
|
|
<el-form-item
|
|
|
v-if="shouldRequired('deviceno1_')"
|
|
|
label="被控设备/设施编号"
|
|
|
-
|
|
|
>
|
|
|
- <template slot="label">
|
|
|
+ <template slot="label" v-if="!ei_xing_ == '12-紫外灯消毒'">
|
|
|
<span class="required">被控设备/设施编号:</span>
|
|
|
</template>
|
|
|
<ibps-custom-dialog
|
|
|
@@ -189,11 +188,7 @@
|
|
|
@change-link-data="deviceno1Change"
|
|
|
/>
|
|
|
</el-form-item>
|
|
|
- <el-form-item
|
|
|
- v-else
|
|
|
- label="被控设备/设施编号:"
|
|
|
-
|
|
|
- >
|
|
|
+ <el-form-item v-else label="被控设备/设施编号:">
|
|
|
<ibps-link-data
|
|
|
v-model="form.deviceno1_"
|
|
|
style="width: 80%"
|
|
|
@@ -209,11 +204,13 @@
|
|
|
/>
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
- <el-col v-show="form.deviceno1_||lei_xing_=='12-紫外灯消毒'" :span="12">
|
|
|
+ <el-col
|
|
|
+ v-show="form.deviceno1_ || lei_xing_ == '12-紫外灯消毒'"
|
|
|
+ :span="12"
|
|
|
+ >
|
|
|
<el-form-item
|
|
|
v-if="shouldRequired('devicename1_')"
|
|
|
label="被控设备/设施名称:"
|
|
|
-
|
|
|
>
|
|
|
<template slot="label">
|
|
|
<span>被控设备/设施名称</span>
|
|
|
@@ -227,10 +224,10 @@
|
|
|
</template>
|
|
|
<div>{{ form.devicename1_ }}</div>
|
|
|
</el-form-item>
|
|
|
- <el-form-item
|
|
|
- v-else
|
|
|
- :label="lei_xing_!='12-紫外灯消毒'?'被控设备/设施名称:':'紫外灯/设备名:'"
|
|
|
- >
|
|
|
+ <el-form-item v-else label="被控设备/设施名称:">
|
|
|
+ <template slot="label" v-if="lei_xing_ == '12-紫外灯消毒'">
|
|
|
+ <span class="required">紫外灯/设备名:</span>
|
|
|
+ </template>
|
|
|
<el-input
|
|
|
v-model="form.devicename1_"
|
|
|
size="mini"
|
|
|
@@ -241,7 +238,7 @@
|
|
|
</el-row>
|
|
|
<el-row v-if="shouldShowColumn('deviceno3_')">
|
|
|
<el-col :span="12">
|
|
|
- <el-form-item label="被控试剂/耗材:" >
|
|
|
+ <el-form-item label="被控试剂/耗材:">
|
|
|
<template slot="label">
|
|
|
<span class="required">被控试剂/耗材:</span>
|
|
|
</template>
|
|
|
@@ -261,7 +258,7 @@
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
<el-col v-show="form.deviceno1_" :span="12">
|
|
|
- <el-form-item label="试剂/耗材名称:" >
|
|
|
+ <el-form-item label="试剂/耗材名称:">
|
|
|
<template slot="label">
|
|
|
<span>试剂/耗材名称</span>
|
|
|
<el-tooltip
|
|
|
@@ -585,7 +582,7 @@ export default {
|
|
|
{ label: '按需监测', value: '按需' }
|
|
|
],
|
|
|
config: {},
|
|
|
- quYuLeiXingList:['06-每日安全检查','15-日常防护消毒','12-紫外灯消毒']
|
|
|
+ quYuLeiXingList: ['06-每日安全检查', '15-日常防护消毒', '12-紫外灯消毒']
|
|
|
}
|
|
|
},
|
|
|
computed: {
|
|
|
@@ -880,9 +877,18 @@ export default {
|
|
|
) {
|
|
|
throw new Error('监测岗位信息缺失!')
|
|
|
}
|
|
|
- if (this.shouldRequired('deviceno1_') && this.form.deviceno1_ === ''&&this.lei_xing_!='12-紫外灯消毒') {
|
|
|
+ if (
|
|
|
+ this.shouldRequired('deviceno1_') &&
|
|
|
+ this.form.deviceno1_ === '' &&
|
|
|
+ this.lei_xing_ != '12-紫外灯消毒'
|
|
|
+ ) {
|
|
|
throw new Error('请先选择设备或试剂耗材!')
|
|
|
}
|
|
|
+ if (
|
|
|
+ this.lei_xing_ = '12-紫外灯消毒'
|
|
|
+ ) {
|
|
|
+ throw new Error('紫外灯/设备名缺失!')
|
|
|
+ }
|
|
|
if (this.shouldRequired('fang_jian_') && this.form.fang_jian_ === '') {
|
|
|
throw new Error('请先选择房间!')
|
|
|
}
|