Browse Source

加液增加排液状态的判断

排液增加加液状态的判断
master
王梦远 2 weeks ago
parent
commit
d978900344
  1. 12
      src/views/liquid/index.vue

12
src/views/liquid/index.vue

@ -98,6 +98,10 @@ const onStartAddLiquid = async () => {
FtMessage.warning('加液容量不能大于总容量')
return
}
if (drainWorkState.value.workState !== 'idle') {
ElMessage.warning('正在排液中,不可进行加液操作')
return
}
const params = {
className: 'AddLiquidService',
fnName: 'start',
@ -123,6 +127,10 @@ const onStopAddLiquid = async () => {
}
//
const onStartDrainLiquid = async () => {
if (addWorkState.value.workState !== 'idle') {
ElMessage.warning('正在加液中,不可进行排液操作')
return
}
const statusName = getDeviceStatus()
if (statusName) {
FtMessageBox.error(statusName)
@ -140,10 +148,6 @@ const onStartDrainLiquid = async () => {
}
const onStopDrainLiquid = async () => {
if (drainWorkState.value.workState === 'idle') {
ElMessage.warning('正在加液中,不可进行排液操作')
return
}
const params = {
className: 'DrainLiquidService',
fnName: 'stop',

Loading…
Cancel
Save