sterilization.vue 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589
  1. <template>
  2. <!-- 灭菌柜 -->
  3. <view class="equipmentDtl">
  4. <commons-header title='灭菌柜'></commons-header>
  5. <view class="equ-img">
  6. <image src="../../static/images/mjg.png" mode=""></image>
  7. <!-- <view class="err-modal">
  8. <image src="../../static/images/icon_dqwd.png" mode=""></image>
  9. </view> -->
  10. </view>
  11. <view class="state">
  12. <view class="state-box">
  13. <image src="../../static/icon_sbzt.png" mode=""></image>
  14. <view class="text">
  15. <view class="label">
  16. 设备状态
  17. </view>
  18. <view class="state-text" style="color:#3FBF31">
  19. {{Module.IsWorking ? '工作中' : '待机'}}
  20. </view>
  21. </view>
  22. </view>
  23. <view class="state-box">
  24. <image src="../../static/icon_gzms-1.png" mode=""></image>
  25. <view class="text">
  26. <view class="label">
  27. 当前工序
  28. </view>
  29. <view class="state-text">
  30. {{ProcInfo.StepName ? Readings.StepName : '--'}}
  31. </view>
  32. </view>
  33. </view>
  34. </view>
  35. <view class="parts-list">
  36. <ul>
  37. <li>
  38. <view class="temperature">
  39. {{Readings.AvePressure}} bar
  40. </view>
  41. <view>
  42. 气压
  43. </view>
  44. <view class="before-icon">
  45. <!-- 无基础值隐藏 -->
  46. <!-- <i class="iconfont">&#xe6c6;</i> -->
  47. </view>
  48. </li>
  49. <li>
  50. <view class="temperature">
  51. {{Readings.GasTemperature}}℃
  52. </view>
  53. <view>
  54. Gas Temp
  55. </view>
  56. <view class="before-icon">
  57. <i class="iconfont" v-if="TechInfo.GasTemp.Target > Readings.GasTemperature" style="color:#FF8800">&#xe6c6;</i>
  58. <i class="iconfont" v-if="TechInfo.GasTemp.Target < Readings.GasTemperature" style="color:#FF8800">&#xe6c8;</i>
  59. </view>
  60. </li>
  61. <li>
  62. <view class="temperature">
  63. {{Readings.EOTemperature}}℃
  64. </view>
  65. <view>
  66. E.O.温度
  67. </view>
  68. <view class="before-icon">
  69. <!-- 无基础值隐藏 -->
  70. <!-- <i class="iconfont" style="color:#3FBF31">&#xe6c8;</i> -->
  71. </view>
  72. </li>
  73. </ul>
  74. </view>
  75. <view class="state">
  76. <view class="state-box">
  77. <image src="../../static/images/icon_sw.png" mode=""></image>
  78. <view class="text" style="margin-left:20rpx;line-height: 40rpx;">
  79. <view class="label" style="font-size: 30rpx;font-weight: bold;">
  80. {{Readings.WaterTemperature}}℃
  81. </view>
  82. <view class="state-text" style="color:#666">
  83. 水温
  84. </view>
  85. </view>
  86. <view class="before-icon">
  87. <i class="iconfont" :style="TechInfo.WaterTemp.Target >= Readings.WaterTemperature ? 'color:#3FBF31' : 'color:#999999'" >&#xe6c8;</i>
  88. </view>
  89. </view>
  90. <view class="state-box">
  91. <image src="../../static/images/icon_shidu.png" mode=""></image>
  92. <view class="text" style="margin-left:20rpx;line-height: 40rpx;">
  93. <view class="label" style="font-size: 30rpx;font-weight: bold;">
  94. {{Readings.AveHumidity}}%
  95. </view>
  96. <view class="state-text" style="color:#666">
  97. 湿度
  98. </view>
  99. </view>
  100. <view class="before-icon">
  101. <!-- 无基础值隐藏 -->
  102. <!-- <i class="iconfont" style="color:#3FBF31">&#xe6c8;</i> -->
  103. </view>
  104. </view>
  105. </view>
  106. <view class="parts-list">
  107. <ul>
  108. <li>
  109. <view class="temperature">
  110. {{Readings.AveTemperature}}℃
  111. </view>
  112. <view>
  113. 平均温度
  114. </view>
  115. <view class="before-icon">
  116. <!-- 无基础值隐藏 -->
  117. <!-- <i class="iconfont">&#xe6c7;</i> -->
  118. </view>
  119. </li>
  120. <li>
  121. <view class="temperature">
  122. {{Readings.Temperatures[0]}}℃
  123. </view>
  124. <view>
  125. 温箱1#
  126. </view>
  127. <view class="before-icon">
  128. <!-- 无基础值隐藏 -->
  129. <!-- <i class="iconfont" style="color:#FF8800">&#xe6c6;</i> -->
  130. </view>
  131. </li>
  132. <li>
  133. <view class="temperature">
  134. {{Readings.Temperatures[1]}}℃
  135. </view>
  136. <view>
  137. 温箱2#
  138. </view>
  139. <view class="before-icon">
  140. <!-- 无基础值隐藏 -->
  141. <!-- <i class="iconfont" style="color:#3FBF31">&#xe6c8;</i> -->
  142. </view>
  143. </li>
  144. </ul>
  145. </view>
  146. </view>
  147. </template>
  148. <script>
  149. import {
  150. getInfo
  151. } from "@/util/api.js";
  152. import Vue from 'vue'
  153. import commonsHeader from '../../components/commons-header/index.vue'
  154. export default {
  155. components: {
  156. commonsHeader
  157. },
  158. data() {
  159. return {
  160. tongdao:[
  161. {
  162. name:"通道1",
  163. yali:10,
  164. sudu:70,
  165. },
  166. {
  167. name:"通道1",
  168. yali:50,
  169. sudu:80,
  170. },
  171. {
  172. name:"通道1",
  173. yali:80,
  174. sudu:50,
  175. },{
  176. name:"通道1",
  177. yali:40,
  178. sudu:40,
  179. }
  180. ],
  181. tongdao1:[
  182. {
  183. name:"通道1",
  184. yali:12,
  185. sudu:72,
  186. },
  187. {
  188. name:"通道1",
  189. yali:53,
  190. sudu:83,
  191. },
  192. {
  193. name:"通道1",
  194. yali:84,
  195. sudu:55,
  196. },{
  197. name:"通道1",
  198. yali:46,
  199. sudu:46,
  200. }
  201. ],
  202. tongdao2:[
  203. {
  204. name:"通道1",
  205. yali:6,
  206. sudu:66,
  207. },
  208. {
  209. name:"通道1",
  210. yali:44,
  211. sudu:84,
  212. },
  213. {
  214. name:"通道1",
  215. yali:54,
  216. sudu:33,
  217. },{
  218. name:"通道1",
  219. yali:22,
  220. sudu:11,
  221. }
  222. ],
  223. userInfoData: [],
  224. notificationData: [],
  225. opts: {
  226. color: ["#1890FF", "#91CB74", "#FAC858", "#EE6666", "#73C0DE", "#3CA272", "#FC8452", "#9A60B4",
  227. "#ea7ccc"
  228. ],
  229. padding: [15, 10, 0, 15],
  230. legend: {},
  231. xAxis: {
  232. disableGrid: true
  233. },
  234. yAxis: {
  235. gridType: "dash",
  236. dashLength: 2
  237. },
  238. extra: {
  239. line: {
  240. type: "straight",
  241. width: 2
  242. }
  243. }
  244. },
  245. chartData: {
  246. categories: ["8", "9", "10", "11", "12", "13"],
  247. series: [
  248. {
  249. name: "实际产量",
  250. data: [200, 410, 350, 400, 440, 450]
  251. },{
  252. name: "极限产量",
  253. data: [500, 500, 500, 500, 500, 500]
  254. },
  255. ]
  256. },
  257. qiehuantype:1,
  258. tongti:80,
  259. yeya:80,
  260. Readings:{
  261. Temperatures:['1','1']
  262. },
  263. Module:{},
  264. ProcInfo:{},
  265. TechInfo:{
  266. GasTemp:{
  267. Target:0,
  268. },
  269. WaterTemp:{
  270. Target:0,
  271. },
  272. },
  273. }
  274. },
  275. onLoad() {
  276. const v = this
  277. v.getData()
  278. },
  279. methods: {
  280. toRouter(j) {
  281. console.log(j)
  282. uni.navigateTo({
  283. url: '/pages/' + j.menuKey + '/' + j.menuKey
  284. })
  285. },
  286. getData(){
  287. const v = this
  288. v.$post('/api/syringe-production/dataAutoclaves/getData',{
  289. "nodeId": "7C581286F5B112DF605178A62AF181AD"
  290. }).then(res => {
  291. if(res.data.Readings.Temperatures.length != 2){
  292. }
  293. v.Readings = res.data.Readings
  294. v.Module = res.data.Module
  295. v.ProcInfo = res.data.ProcInfo
  296. v.TechInfo = res.data.TechInfo
  297. console.log(res)
  298. // setTimeout(function() {
  299. // // 获取当前页面的实例
  300. // let pages = getCurrentPages();
  301. // //这句话 获取的才是当前页面实例
  302. // let currentPage = pages[pages.length-1]
  303. // console.log(currentPage)
  304. // if(v.getData) v.getData()
  305. // }, 10000);
  306. })
  307. },
  308. },
  309. }
  310. </script>
  311. <style lang="less" scoped>
  312. .equipmentDtl {
  313. background-color: #f0f0f0;
  314. min-height: 100vh;
  315. margin-top: 128rpx;
  316. .pressure-chart{
  317. height: 100rpx;
  318. width: 100rpx;
  319. // background-image: conic-gradient(from 135deg ,#fff 90deg, #EEEEEE 26%);
  320. background: url(../../static/images/ybp.png);
  321. background-size: 100% 100%;
  322. border-radius: 50%;
  323. margin: 20rpx auto;
  324. position: relative;
  325. .pressure-zhen{
  326. position: absolute;
  327. z-index: 2;
  328. top:0;
  329. left: 0;
  330. right: 0;
  331. bottom: 0;
  332. transform: rotate(70deg);
  333. transition: all ease .5s;
  334. image{
  335. width:36rpx;
  336. height: 36rpx;
  337. margin-top: 22rpx;
  338. }
  339. }
  340. .pressure-line{
  341. position: absolute;
  342. top:0;
  343. left: 0;
  344. right: 0;
  345. bottom: 0;
  346. z-index: 1;
  347. // background-image: conic-gradient(from 135deg ,#fff 90deg,#FFAF53 90deg,#FF8800 0%, #EEEEEE 0%);
  348. border-radius: 50%;
  349. transition: all ease .5s;
  350. }
  351. .pressure-line::before{
  352. position: absolute;
  353. display: block;
  354. top:20rpx;
  355. left: 20rpx;
  356. right: 20rpx;
  357. bottom: 20rpx;
  358. content:" ";
  359. background-color: #fff;
  360. border-radius: 50%;
  361. }
  362. }
  363. .pressure-chart::before{
  364. position: absolute;
  365. display: block;
  366. inset: 20rpx 20rpx 20rpx 20rpx;
  367. content:" ";
  368. background-color: #fff;
  369. border-radius: 50%;
  370. }
  371. .pressure-warp{
  372. display: flex;
  373. justify-content: space-between;
  374. padding: 0 24rpx;
  375. margin-top: 24rpx;
  376. li{
  377. width: 23%;
  378. text-align: center;
  379. background-color: #fff;
  380. padding: 32rpx 0;
  381. border-radius: 10rpx;
  382. font-size: 24rpx;
  383. color: #666666;
  384. .pressure-chart{
  385. }
  386. .label{
  387. color: #333333;
  388. font-size: 28rpx;
  389. }
  390. .pressure{
  391. font-size: 32rpx;
  392. color: #333;
  393. margin: 10rpx 0;
  394. }
  395. .line{
  396. width: 100rpx;
  397. height: 20rpx;
  398. background: #EEEEEE;
  399. border-radius: 10rpx;
  400. margin: 16rpx auto 0;
  401. .box{
  402. width:80%;
  403. background: linear-gradient(270deg, #3370FF 0%, #A0BBFB 100%);
  404. height: 100%;
  405. border-radius: 10rpx;
  406. transition: all ease .5s;
  407. }
  408. }
  409. }
  410. }
  411. .parts-list{
  412. padding: 0 24rpx;
  413. margin-top: 24rpx;
  414. ul{
  415. display: flex;
  416. justify-content: space-between;
  417. }
  418. li{
  419. width: 32%;
  420. padding: 30rpx 0;
  421. text-align: center;
  422. position: relative;
  423. background-color: #fff;
  424. .temperature{
  425. font-size: 40rpx;
  426. font-weight: bold;
  427. height: 60rpx;
  428. margin: 0 auto 20rpx;
  429. line-height: 60rpx;
  430. }
  431. image{
  432. width: 60rpx;
  433. height: 60rpx;
  434. display: block;
  435. margin: 0 auto 20rpx;
  436. }
  437. }
  438. .before-icon{
  439. width: 30rpx;
  440. height: 30rpx;
  441. position: absolute;
  442. right: 10rpx;
  443. top: 10rpx;
  444. i{
  445. color: #F54A45;
  446. }
  447. }
  448. .before{
  449. width: 30rpx;
  450. height: 30rpx;
  451. border-radius: 50%;
  452. background-color: rgba(204,204,204,0.2);
  453. display: block;
  454. position: absolute;
  455. right: 16rpx;
  456. top: 16rpx;
  457. }
  458. .before::before{
  459. position: absolute;
  460. display: block;
  461. top: 7rpx;
  462. left: 7rpx;
  463. width: 19rpx;
  464. height: 19rpx;
  465. border-radius: 50%;
  466. content:" ";
  467. background: #cccccc;
  468. }
  469. .before.succes{
  470. background-color: rgba(63,191,49,0.2);
  471. }
  472. .before.succes::before{
  473. background: #3FBF31;
  474. }
  475. }
  476. .echarts {
  477. background: #fff;
  478. margin: 24rpx 24rpx 0;
  479. .content{
  480. .text{
  481. font-size: 28rpx;
  482. font-weight: 700;
  483. color: #333;
  484. text-align: center;
  485. margin-bottom: 40rpx;
  486. }
  487. }
  488. .title{
  489. font-size: 28rpx;
  490. height: 90rpx;
  491. line-height: 90rpx;
  492. display: flex;
  493. padding: 0 24rpx;
  494. font-weight: 500;
  495. image{
  496. width: 40rpx;
  497. height: 40rpx;
  498. margin-top: 25rpx;
  499. margin-right: 16rpx;
  500. }
  501. }
  502. }
  503. .parts-list {}
  504. .equ-img {
  505. padding: 24rpx;
  506. background-color: #ffffff;
  507. position: relative;
  508. image {
  509. width: 100%;
  510. height: 395rpx;
  511. }
  512. .err-modal{
  513. position: absolute;
  514. left: 0;
  515. right: 0;
  516. bottom: 0;
  517. top: 0;
  518. background: rgba(0,0,0,0.60);
  519. text-align: center;
  520. display: flex;
  521. align-items: center;
  522. image{
  523. width: 160rpx;
  524. height: 160rpx;
  525. margin: 0 auto;
  526. }
  527. }
  528. }
  529. .state {
  530. display: flex;
  531. justify-content: space-between;
  532. margin: 24rpx 24rpx 0;
  533. .state-box {
  534. padding: 20rpx;
  535. width: 48%;
  536. background-color: #fff;
  537. display: flex;
  538. box-sizing: border-box;
  539. border-radius: 10rpx;
  540. position: relative;
  541. .before-icon{
  542. width: 30rpx;
  543. height: 30rpx;
  544. position: absolute;
  545. right: 10rpx;
  546. top: 10rpx;
  547. i{
  548. color: #F54A45;
  549. }
  550. }
  551. .text{
  552. padding: 12rpx 0;
  553. }
  554. .state-text{
  555. font-size: 26rpx;
  556. color: #FF8800;
  557. font-weight: bold;
  558. margin-top: 5rpx;
  559. }
  560. .label{
  561. font-weight: 400;
  562. font-size: 28rpx;
  563. }
  564. image {
  565. width: 110rpx;
  566. height: 110rpx;
  567. }
  568. }
  569. }
  570. }
  571. </style>