You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
61 lines
1.7 KiB
61 lines
1.7 KiB
import { defineStore } from 'pinia'
|
|
export const useOperatorStore = defineStore({
|
|
id: 'operator', // id必填,且需要唯一
|
|
// state
|
|
state: () => {
|
|
return {
|
|
// 是否开始消毒
|
|
// 0 未开始
|
|
// 1 预加热
|
|
// 2 3 消毒中
|
|
// 4 降解中
|
|
// 5 已完成
|
|
disinfectStatus: 0,
|
|
// 预热时间和消毒剩余时间都用这个字段
|
|
estimatedRemainingTimeS: 0,
|
|
disinfection_id: '',
|
|
drainingWorkState: 0,
|
|
replenishingFluidsWorkState: 0,
|
|
// 是否预热 废弃!!!
|
|
preHeat: false,
|
|
preHeatRaminTimeS: 0,
|
|
// 准备消毒loading
|
|
showStartReady: false,
|
|
// 结束消毒loading
|
|
showStopReady: false,
|
|
|
|
// 加液量
|
|
liquidAddtionVolume: 0,
|
|
}
|
|
},
|
|
// actions
|
|
actions: {
|
|
updateStopReady(showStopReady) {
|
|
this.showStopReady = showStopReady
|
|
},
|
|
updateShowStartReady(showStartReady) {
|
|
this.showStartReady = showStartReady
|
|
},
|
|
updatePreHeatRaminTimeS(preHeatRaminTimeS) {
|
|
this.preHeatRaminTimeS = preHeatRaminTimeS
|
|
},
|
|
updatePreHeat(preHeat) {
|
|
this.preHeat = preHeat
|
|
},
|
|
updateDrainingWorkState(drainingWorkState) {
|
|
this.drainingWorkState = drainingWorkState
|
|
},
|
|
updateReplenishingFluidsWorkState(replenishingFluidsWorkState) {
|
|
this.replenishingFluidsWorkState = replenishingFluidsWorkState
|
|
},
|
|
updateDisinfectionId(disinfection_id) {
|
|
this.disinfection_id = disinfection_id
|
|
},
|
|
updateDisinfectStatus(val) {
|
|
this.disinfectStatus = val
|
|
},
|
|
updateEstimatedRemainingTimeS(estimatedRemainingTimeS) {
|
|
this.estimatedRemainingTimeS = estimatedRemainingTimeS
|
|
},
|
|
},
|
|
})
|