|
@@ -156,8 +156,9 @@
|
|
|
<view class="top-dialog-area">
|
|
|
<view class="dialog-item">
|
|
|
<text class="dialog-label">班次:</text>
|
|
|
- <uni-data-select placeholder="请选择班次" disabled style="text-align: center;" :clear="true"
|
|
|
- v-model="formState.bc" :localdata="rangeBc"></uni-data-select>
|
|
|
+ <uni-data-select placeholder="请选择班次" style="text-align: center;" :clear="true"
|
|
|
+ v-model="formState.bc" :disabled="statusShow == 'edit'" :localdata="rangeBc"
|
|
|
+ @change="changeBc"></uni-data-select>
|
|
|
</view>
|
|
|
<view class="dialog-item">
|
|
|
<text class="dialog-label">检测次数:</text>
|
|
@@ -571,7 +572,119 @@ export default {
|
|
|
this.indexParam = {}
|
|
|
this.imageSrc = ''
|
|
|
},
|
|
|
+ //班次选项切换
|
|
|
+ changeBc(e) {
|
|
|
+ let that = this
|
|
|
+ that.formState.bc = e
|
|
|
+ if (that.formState.bc == '早班' && that.formState.count == '第一次') {
|
|
|
+ let param = {
|
|
|
+ deviceId: that.deviceId,
|
|
|
+ bxySdzEarly1: that.formState.bxy,
|
|
|
+ ch4Early1: that.formState.ch4,
|
|
|
+ checkPersonEarly: that.formState.jcy,
|
|
|
+ co2Early1: that.formState.co2,
|
|
|
+ coEarly1: that.formState.co,
|
|
|
+ gwSdzEarly1: that.formState.gw,
|
|
|
+ jwSdzEarly1: that.formState.jw,
|
|
|
+ o2Early1: that.formState.o2,
|
|
|
+ strInstallPos: that.formState.jcdd,
|
|
|
+ timeEarly1: that.formState.time,
|
|
|
+ reportTime: that.formState.tbrq,
|
|
|
+ tearly1: that.formState.temp,
|
|
|
+ }
|
|
|
+ that.paramData = Object.assign({}, that.saveShowList, param)
|
|
|
+ } else if (that.formState.bc == '早班' && that.formState.count == '第二次') {
|
|
|
+ let param = {
|
|
|
+ deviceId: that.deviceId,
|
|
|
+ bxySdzEarly2: that.formState.bxy,
|
|
|
+ ch4Early2: that.formState.ch4,
|
|
|
+ checkPersonEarly: that.formState.jcy,
|
|
|
+ co2Early2: that.formState.co2,
|
|
|
+ coEarly2: that.formState.co,
|
|
|
+ gwSdzEarly2: that.formState.gw,
|
|
|
+ jwSdzEarly2: that.formState.jw,
|
|
|
+ o2Early2: that.formState.o2,
|
|
|
+ strInstallPos: that.formState.jcdd,
|
|
|
+ timeEarly2: that.formState.time,
|
|
|
+ reportTime: that.formState.tbrq,
|
|
|
+ tearly2: that.formState.temp,
|
|
|
+ }
|
|
|
+ that.paramData = Object.assign({}, that.saveShowList, param)
|
|
|
|
|
|
+ } else if (that.formState.bc == '中班' && that.formState.count == '第一次') {
|
|
|
+ let param = {
|
|
|
+ deviceId: that.deviceId,
|
|
|
+ bxySdzNoon1: that.formState.bxy,
|
|
|
+ ch4Noon1: that.formState.ch4,
|
|
|
+ checkPersonNoon: that.formState.jcy,
|
|
|
+ co2Noon1: that.formState.co2,
|
|
|
+ coNoon1: that.formState.co,
|
|
|
+ gwSdzNoon1: that.formState.gw,
|
|
|
+ jwSdzNoon1: that.formState.jw,
|
|
|
+ o2Noon1: that.formState.o2,
|
|
|
+ strInstallPos: that.formState.jcdd,
|
|
|
+ timeNoon1: that.formState.time,
|
|
|
+ reportTime: that.formState.tbrq,
|
|
|
+ tnoon1: that.formState.temp,
|
|
|
+ }
|
|
|
+ that.paramData = Object.assign({}, that.saveShowList, param)
|
|
|
+
|
|
|
+ } else if (that.formState.bc == '中班' && that.formState.count == '第二次') {
|
|
|
+ let param = {
|
|
|
+ deviceId: that.deviceId,
|
|
|
+ bxySdzNoon2: that.formState.bxy,
|
|
|
+ ch4Noon2: that.formState.ch4,
|
|
|
+ checkPersonNoon: that.formState.jcy,
|
|
|
+ co2Noon2: that.formState.co2,
|
|
|
+ coNoon2: that.formState.co,
|
|
|
+ gwSdzNoon2: that.formState.gw,
|
|
|
+ jwSdzNoon2: that.formState.jw,
|
|
|
+ o2Noon2: that.formState.o2,
|
|
|
+ strInstallPos: that.formState.jcdd,
|
|
|
+ timeNoon2: that.formState.time,
|
|
|
+ reportTime: that.formState.tbrq,
|
|
|
+ tnoon2: that.formState.temp,
|
|
|
+ }
|
|
|
+ that.paramData = Object.assign({}, that.saveShowList, param)
|
|
|
+
|
|
|
+ } else if (that.formState.bc == '夜班' && that.formState.count == '第一次') {
|
|
|
+ let param = {
|
|
|
+ deviceId: that.deviceId,
|
|
|
+ bxySdzNight1: that.formState.bxy,
|
|
|
+ ch4Night1: that.formState.ch4,
|
|
|
+ checkPersonNight: that.formState.jcy,
|
|
|
+ co2Night1: that.formState.co2,
|
|
|
+ coNight1: that.formState.co,
|
|
|
+ gwSdzNight1: that.formState.gw,
|
|
|
+ jwSdzNight1: that.formState.jw,
|
|
|
+ o2Night1: that.formState.o2,
|
|
|
+ strInstallPos: that.formState.jcdd,
|
|
|
+ timeNight1: that.formState.time,
|
|
|
+ reportTime: that.formState.tbrq,
|
|
|
+ tnight1: that.formState.temp,
|
|
|
+ }
|
|
|
+ that.paramData = Object.assign({}, that.saveShowList, param)
|
|
|
+
|
|
|
+
|
|
|
+ } else if (that.formState.bc == '夜班' && that.formState.count == '第二次') {
|
|
|
+ let param = {
|
|
|
+ deviceId: that.deviceId,
|
|
|
+ bxySdzNight2: that.formState.bxy,
|
|
|
+ ch4Night2: that.formState.ch4,
|
|
|
+ checkPersonNight: that.formState.jcy,
|
|
|
+ co2Night2: that.formState.co2,
|
|
|
+ coNight2: that.formState.co,
|
|
|
+ gwSdzNight2: that.formState.gw,
|
|
|
+ jwSdzNight2: that.formState.jw,
|
|
|
+ o2Night2: that.formState.o2,
|
|
|
+ strInstallPos: that.formState.jcdd,
|
|
|
+ timeNight2: that.formState.time,
|
|
|
+ reportTime: that.formState.tbrq,
|
|
|
+ tnight2: that.formState.temp,
|
|
|
+ }
|
|
|
+ that.paramData = Object.assign({}, that.saveShowList, param)
|
|
|
+ }
|
|
|
+ },
|
|
|
//监测次数选项切换
|
|
|
changeCount(e) {
|
|
|
let that = this
|