消毒机设备
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.

360 lines
8.9 KiB

2 months ago
2 months ago
  1. // 请求头里token的名称
  2. export const HEADER_TOKEN_KEY = 'Authorization'
  3. // sessionStorage里token的名称
  4. export const SESSIONSTORAGE_TOKEN_KEY = 'web_token'
  5. export const formulaNameMap: Record<string, any> = {
  6. stoped_gs: '停止H2o2浓度',
  7. continued_gs: '继续H2o2浓度',
  8. stoped_satur: '停止H2o2饱和度',
  9. continued_satur: '继续H2o2饱和度',
  10. max_humidity: '消毒最大湿度',
  11. injection_pump_speed: '喷射蠕动泵转速',
  12. pre_heat_time_s: '预热时间',
  13. stoped_humi: '停止相对湿度',
  14. continued_humi: '湿度',
  15. proportional_valve_default_value: '正负压比例',
  16. loglevel: '消毒等级',
  17. }
  18. // 空气压力初始化数据
  19. export const PARSSURE_DATA = {
  20. intensitys: {
  21. constantPressure: null,
  22. negativePressure: ['0', '10', '20', '30', '40', '50', '60', '70', '80', '90', '100'],
  23. positivePressure: ['0', '10', '20', '30', '40', '50', '60', '70', '80', '90', '100'],
  24. },
  25. typeDisplayNames: ['恒压', '正压', '负压'],
  26. types: ['constantPressure', 'positivePressure', 'negativePressure'],
  27. }
  28. // 配方是否可配置初始数据
  29. export const FORMULA_CONFIG_DATA: Formula.FormulaConfig[] = [
  30. {
  31. default_val: 300, // 消毒停止过氧化氢溶度 的 默认值
  32. enum_display_names: [],
  33. enums: [],
  34. is_editable: true, // 是否可编辑
  35. is_visible_in_formula_page: true, // 配方页面是否可配置
  36. is_visible_in_rt_page: true, // 运行中是否可配置
  37. is_visible_in_setting_page: true, // 设置页面中是否可配
  38. name_ch: '消毒停止过氧化氢溶度', // 名称
  39. setting_id: 'stoped_gs', // id
  40. val: 300, // 编辑后提交的值
  41. val_lower_limit: 0, // 最小值
  42. val_type: 'int', // 数据类型
  43. val_upper_limit: 2000, // 最大值
  44. },
  45. {
  46. default_val: 200,
  47. enum_display_names: [],
  48. enums: [],
  49. is_editable: true,
  50. is_visible_in_formula_page: true,
  51. is_visible_in_rt_page: true,
  52. is_visible_in_setting_page: true,
  53. name_ch: '消毒继续过氧化氢溶度',
  54. setting_id: 'continued_gs',
  55. val: 200,
  56. val_lower_limit: 0,
  57. val_type: 'int',
  58. val_upper_limit: 2000,
  59. },
  60. {
  61. default_val: 85,
  62. enum_display_names: [],
  63. enums: [],
  64. is_editable: true,
  65. is_visible_in_formula_page: true,
  66. is_visible_in_rt_page: true,
  67. is_visible_in_setting_page: true,
  68. name_ch: '消毒停止过氧化氢相对饱和度',
  69. setting_id: 'stoped_satur',
  70. val: 85,
  71. val_lower_limit: 0,
  72. val_type: 'int',
  73. val_upper_limit: 100,
  74. },
  75. {
  76. default_val: 60,
  77. enum_display_names: [],
  78. enums: [],
  79. is_editable: true,
  80. is_visible_in_formula_page: true,
  81. is_visible_in_rt_page: true,
  82. is_visible_in_setting_page: true,
  83. name_ch: '消毒继续过氧化氢相对饱和度',
  84. setting_id: 'continued_satur',
  85. val: 60,
  86. val_lower_limit: 0,
  87. val_type: 'int',
  88. val_upper_limit: 100,
  89. },
  90. {
  91. default_val: 90,
  92. enum_display_names: [],
  93. enums: [],
  94. is_editable: true,
  95. is_visible_in_formula_page: true,
  96. is_visible_in_rt_page: true,
  97. is_visible_in_setting_page: true,
  98. name_ch: '允许消毒最大湿度',
  99. setting_id: 'max_humidity',
  100. val: 90,
  101. val_lower_limit: 0,
  102. val_type: 'int',
  103. val_upper_limit: 100,
  104. },
  105. {
  106. default_val: 400,
  107. enum_display_names: [],
  108. enums: [],
  109. is_editable: true,
  110. is_visible_in_formula_page: false,
  111. is_visible_in_rt_page: false,
  112. is_visible_in_setting_page: false,
  113. name_ch: '排液蠕动泵最大转速',
  114. setting_id: 'drainage_pump_speed',
  115. val: 400,
  116. val_lower_limit: 0,
  117. val_type: 'int',
  118. val_upper_limit: 400,
  119. },
  120. {
  121. default_val: 15,
  122. enum_display_names: [],
  123. enums: [],
  124. is_editable: true,
  125. is_visible_in_formula_page: true,
  126. is_visible_in_rt_page: true,
  127. is_visible_in_setting_page: true,
  128. name_ch: '喷射蠕动泵转速',
  129. setting_id: 'injection_pump_speed',
  130. val: 15,
  131. val_lower_limit: 0,
  132. val_type: 'int',
  133. val_upper_limit: 40,
  134. },
  135. {
  136. default_val: 120,
  137. enum_display_names: [],
  138. enums: [],
  139. is_editable: true,
  140. is_visible_in_formula_page: true,
  141. is_visible_in_rt_page: true,
  142. is_visible_in_setting_page: true,
  143. name_ch: '预热时间',
  144. setting_id: 'pre_heat_time_s',
  145. val: 120,
  146. val_lower_limit: 0,
  147. val_type: 'int',
  148. val_upper_limit: 1200,
  149. },
  150. {
  151. default_val: 85,
  152. enum_display_names: [],
  153. enums: [],
  154. is_editable: true,
  155. is_visible_in_formula_page: true,
  156. is_visible_in_rt_page: true,
  157. is_visible_in_setting_page: true,
  158. name_ch: '消毒停止相对湿度',
  159. setting_id: 'stoped_humi',
  160. val: 85,
  161. val_lower_limit: 0,
  162. val_type: 'int',
  163. val_upper_limit: 100,
  164. },
  165. {
  166. default_val: 60,
  167. enum_display_names: [],
  168. enums: [],
  169. is_editable: true,
  170. is_visible_in_formula_page: true,
  171. is_visible_in_rt_page: true,
  172. is_visible_in_setting_page: true,
  173. name_ch: '消毒继续相对湿度',
  174. setting_id: 'continued_humi',
  175. val: 60,
  176. val_lower_limit: 0,
  177. val_type: 'int',
  178. val_upper_limit: 100,
  179. },
  180. {
  181. default_val: 10,
  182. enum_display_names: [],
  183. enums: [],
  184. is_editable: true,
  185. is_visible_in_formula_page: true,
  186. is_visible_in_rt_page: true,
  187. is_visible_in_setting_page: true,
  188. name_ch: '正负压默认开合比例',
  189. setting_id: 'proportional_valve_default_value',
  190. val: 10,
  191. val_lower_limit: 0,
  192. val_type: 'int',
  193. val_upper_limit: 100,
  194. },
  195. {
  196. default_val: 2,
  197. enum_display_names: [],
  198. enums: [],
  199. is_editable: true,
  200. is_visible_in_formula_page: false,
  201. is_visible_in_rt_page: false,
  202. is_visible_in_setting_page: true,
  203. name_ch: '消毒日志记录间隔(Min)',
  204. setting_id: 'record_period_min',
  205. val: 2,
  206. val_lower_limit: 1,
  207. val_type: 'int',
  208. val_upper_limit: 30,
  209. },
  210. {
  211. default_val: 5,
  212. enum_display_names: [],
  213. enums: [],
  214. is_editable: true,
  215. is_visible_in_formula_page: false,
  216. is_visible_in_rt_page: false,
  217. is_visible_in_setting_page: true,
  218. name_ch: '消毒日志打印间隔(Min)',
  219. setting_id: 'record_printer_period_min',
  220. val: 5,
  221. val_lower_limit: 1,
  222. val_type: 'int',
  223. val_upper_limit: 30,
  224. },
  225. {
  226. default_val: 1,
  227. enum_display_names: [
  228. 'LOG1',
  229. 'LOG2',
  230. 'LOG3',
  231. 'LOG4',
  232. 'LOG5',
  233. 'LOG6',
  234. 'LOG7',
  235. 'LOG8',
  236. 'LOG9',
  237. 'LOG10',
  238. 'LOG11',
  239. 'LOG12',
  240. ],
  241. enums: [
  242. 1,
  243. 2,
  244. 3,
  245. 4,
  246. 5,
  247. 6,
  248. 7,
  249. 8,
  250. 9,
  251. 10,
  252. 11,
  253. 12,
  254. ],
  255. is_editable: true,
  256. is_visible_in_formula_page: true,
  257. is_visible_in_rt_page: true,
  258. is_visible_in_setting_page: false,
  259. name_ch: '消毒等级',
  260. setting_id: 'loglevel',
  261. val: 1,
  262. val_lower_limit: 0,
  263. val_type: 'enum',
  264. val_upper_limit: 0,
  265. },
  266. {
  267. default_val: false,
  268. enum_display_names: [],
  269. enums: [],
  270. is_editable: true,
  271. is_visible_in_formula_page: false,
  272. is_visible_in_rt_page: false,
  273. is_visible_in_setting_page: false,
  274. name_ch: '是否启用消毒前除湿',
  275. setting_id: 'enable_bd_dehumidify',
  276. val: false,
  277. val_lower_limit: 0,
  278. val_type: 'boolean',
  279. val_upper_limit: 0,
  280. },
  281. {
  282. default_val: 0,
  283. enum_display_names: [],
  284. enums: [],
  285. is_editable: true,
  286. is_visible_in_formula_page: false,
  287. is_visible_in_rt_page: false,
  288. is_visible_in_setting_page: false,
  289. name_ch: '消毒前除湿阈值',
  290. setting_id: 'bd_dehumidify_threshold',
  291. val: 0,
  292. val_lower_limit: 0,
  293. val_type: 'int',
  294. val_upper_limit: 100,
  295. },
  296. {
  297. default_val: false,
  298. enum_display_names: [],
  299. enums: [],
  300. is_editable: true,
  301. is_visible_in_formula_page: false,
  302. is_visible_in_rt_page: false,
  303. is_visible_in_setting_page: false,
  304. name_ch: '是否启用消毒后除湿',
  305. setting_id: 'enable_ad_dehumidify',
  306. val: false,
  307. val_lower_limit: 0,
  308. val_type: 'boolean',
  309. val_upper_limit: 0,
  310. },
  311. {
  312. default_val: 0,
  313. enum_display_names: [],
  314. enums: [],
  315. is_editable: true,
  316. is_visible_in_formula_page: false,
  317. is_visible_in_rt_page: false,
  318. is_visible_in_setting_page: false,
  319. name_ch: '消毒后除湿阈值',
  320. setting_id: 'ad_dehumidify_threshold',
  321. val: 0,
  322. val_lower_limit: 0,
  323. val_type: 'int',
  324. val_upper_limit: 100,
  325. },
  326. {
  327. default_val: false,
  328. enum_display_names: [],
  329. enums: [],
  330. is_editable: true,
  331. is_visible_in_formula_page: false,
  332. is_visible_in_rt_page: false,
  333. is_visible_in_setting_page: false,
  334. name_ch: '是否启用消毒后降解',
  335. setting_id: 'enable_ad_degrade',
  336. val: false,
  337. val_lower_limit: 0,
  338. val_type: 'boolean',
  339. val_upper_limit: 0,
  340. },
  341. {
  342. default_val: 0,
  343. enum_display_names: [],
  344. enums: [],
  345. is_editable: true,
  346. is_visible_in_formula_page: false,
  347. is_visible_in_rt_page: false,
  348. is_visible_in_setting_page: false,
  349. name_ch: '消毒后降解阈值',
  350. setting_id: 'ad_degrade_threshold',
  351. val: 0,
  352. val_lower_limit: 0,
  353. val_type: 'int',
  354. val_upper_limit: 100,
  355. },
  356. ]