大空间消毒机
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

2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
  1. import { defineStore } from 'pinia'
  2. export const useOperatorStore = defineStore({
  3. id: 'operator', // id必填,且需要唯一
  4. // state
  5. state: () => {
  6. return {
  7. // 是否开始消毒
  8. // 0 未开始
  9. // 1 预加热
  10. // 2 3 消毒中
  11. // 4 降解中
  12. // 5 已完成
  13. disinfectStatus: 0,
  14. // 预热时间和消毒剩余时间都用这个字段
  15. estimatedRemainingTimeS: 0,
  16. disinfection_id: '',
  17. drainingWorkState: 0,
  18. replenishingFluidsWorkState: 0,
  19. // 是否预热 废弃!!!
  20. preHeat: false,
  21. preHeatRaminTimeS: 0,
  22. // 准备消毒loading
  23. showStartReady: false,
  24. // 结束消毒loading
  25. showStopReady: false,
  26. // 加液量
  27. liquidAddtionVolume: 0,
  28. }
  29. },
  30. // actions
  31. actions: {
  32. updateStopReady(showStopReady) {
  33. this.showStopReady = showStopReady
  34. },
  35. updateShowStartReady(showStartReady) {
  36. this.showStartReady = showStartReady
  37. },
  38. updatePreHeatRaminTimeS(preHeatRaminTimeS) {
  39. this.preHeatRaminTimeS = preHeatRaminTimeS
  40. },
  41. updatePreHeat(preHeat) {
  42. this.preHeat = preHeat
  43. },
  44. updateDrainingWorkState(drainingWorkState) {
  45. this.drainingWorkState = drainingWorkState
  46. },
  47. updateReplenishingFluidsWorkState(replenishingFluidsWorkState) {
  48. this.replenishingFluidsWorkState = replenishingFluidsWorkState
  49. },
  50. updateDisinfectionId(disinfection_id) {
  51. this.disinfection_id = disinfection_id
  52. },
  53. updateDisinfectStatus(val) {
  54. this.disinfectStatus = val
  55. },
  56. updateEstimatedRemainingTimeS(estimatedRemainingTimeS) {
  57. this.estimatedRemainingTimeS = estimatedRemainingTimeS
  58. },
  59. },
  60. })