assemblyMachine.vue 8.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460
  1. <template>
  2. <!-- 组装机 -->
  3. <view class="equipmentDtl">
  4. <commons-header></commons-header>
  5. <view class="equ-img">
  6. <image src="../../static/images/icon_dqwd.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">
  19. 正常
  20. </view>
  21. </view>
  22. </view>
  23. <view class="state-box">
  24. <image src="../../static/icon_gzms.png" mode=""></image>
  25. <view class="text">
  26. <view class="label">
  27. 设备状态
  28. </view>
  29. <view class="state-text">
  30. 正常
  31. </view>
  32. </view>
  33. </view>
  34. </view>
  35. <view class="echarts">
  36. <view class="title">
  37. <image src="../../static/btn_kanban_blue.png" mode=""></image>
  38. <span>产量数据</span>
  39. </view>
  40. <view class="content">
  41. <view class="text">
  42. 12小时产量
  43. </view>
  44. <qiun-data-charts type="line" :opts="opts" :chartData="chartData" />
  45. </view>
  46. </view>
  47. <view class="parts-list">
  48. <ul>
  49. <li>
  50. <image src="../../static/btn_kanban_blue.png" mode=""></image>
  51. <view>
  52. 主电机
  53. </view>
  54. <view class="before succes">
  55. </view>
  56. </li>
  57. <li>
  58. <image src="../../static/btn_kanban_blue.png" mode=""></image>
  59. <view>
  60. 气阀
  61. </view>
  62. <view class="before">
  63. </view>
  64. </li>
  65. <li>
  66. <image src="../../static/btn_kanban_blue.png" mode=""></image>
  67. <view>
  68. 离心机
  69. </view>
  70. <view class="before">
  71. </view>
  72. </li>
  73. </ul>
  74. </view>
  75. <view class="rate-warp">
  76. <ul class="big-rate">
  77. <li>
  78. <view class="commons-before-40 bg-cl-yl bf-bg-cl-yl">
  79. </view>
  80. <view class="text">
  81. 主电机频率
  82. </view>
  83. <view class="line">
  84. <view class="box">
  85. </view>
  86. </view>
  87. <view class="num">
  88. 99%
  89. </view>
  90. </li>
  91. </ul>
  92. <ul class="sm-rate">
  93. <li>
  94. <view class="commons-before-40 bg-cl-pp bf-bg-cl-pp"></view>
  95. <view class="text">
  96. 胶塞速率
  97. </view>
  98. <view class="right-box">
  99. <view class="num">
  100. 95%
  101. </view>
  102. <view class="line">
  103. <view class="box"></view>
  104. </view>
  105. </view>
  106. </li>
  107. <li>
  108. <view class="commons-before-40 bg-cl-pp bf-bg-cl-pp">
  109. </view>
  110. <view class="text">
  111. 胶塞速率
  112. </view>
  113. <view class="right-box">
  114. <view class="num">
  115. 95%
  116. </view>
  117. <view class="line">
  118. <view class="box"></view>
  119. </view>
  120. </view>
  121. </li>
  122. <li>
  123. <view class="commons-before-40 bg-cl-pp bf-bg-cl-pp">
  124. </view>
  125. <view class="text">
  126. 胶塞速率
  127. </view>
  128. <view class="right-box">
  129. <view class="num">
  130. 95%
  131. </view>
  132. <view class="line">
  133. <view class="box"></view>
  134. </view>
  135. </view>
  136. </li>
  137. <li>
  138. <view class="commons-before-40 bg-cl-pp bf-bg-cl-pp">
  139. </view>
  140. <view class="text">
  141. 胶塞速率
  142. </view>
  143. <view class="right-box">
  144. <view class="num">
  145. 95%
  146. </view>
  147. <view class="line">
  148. <view class="box"></view>
  149. </view>
  150. </view>
  151. </li>
  152. </ul>
  153. </view>
  154. </view>
  155. </template>
  156. <script>
  157. import {
  158. getInfo
  159. } from "@/util/api.js";
  160. import Vue from 'vue'
  161. import commonsHeader from '../../components/commons-header/index.vue'
  162. export default {
  163. components: {
  164. commonsHeader
  165. },
  166. data() {
  167. return {
  168. userInfoData: [],
  169. notificationData: [],
  170. opts: {
  171. color: ["#1890FF", "#91CB74", "#FAC858", "#EE6666", "#73C0DE", "#3CA272", "#FC8452", "#9A60B4",
  172. "#ea7ccc"
  173. ],
  174. padding: [15, 10, 0, 15],
  175. legend: {},
  176. xAxis: {
  177. disableGrid: true
  178. },
  179. yAxis: {
  180. gridType: "dash",
  181. dashLength: 2
  182. },
  183. extra: {
  184. line: {
  185. type: "straight",
  186. width: 2
  187. }
  188. }
  189. },
  190. chartData: {
  191. categories: ["2016", "2017", "2018", "2019", "2020", "2021"],
  192. series: [{
  193. name: "成交量A",
  194. data: [35, 8, 25, 37, 4, 20]
  195. },
  196. {
  197. name: "成交量B",
  198. data: [70, 40, 65, 100, 44, 68]
  199. },
  200. {
  201. name: "成交量C",
  202. data: [100, 80, 95, 150, 112, 132]
  203. }
  204. ]
  205. }
  206. }
  207. },
  208. onLoad() {
  209. const v = this
  210. // v.$post('/wx/login/getUserInfo').then(res => {
  211. // v.userInfoData = res.data
  212. // Vue.prototype.$userInfo = res.data
  213. // uni.setStorage({
  214. // key: "userInfo",
  215. // data: res.data,
  216. // success(res) {
  217. // },
  218. // fail(res) {}
  219. // })
  220. // })
  221. // v.$post('/wx/message/notification',{}).then(res=>{
  222. // v.notificationData = res.data
  223. // })
  224. },
  225. methods: {
  226. toRouter(j) {
  227. console.log(j)
  228. uni.navigateTo({
  229. url: '/pages/' + j.menuKey + '/' + j.menuKey
  230. })
  231. },
  232. },
  233. }
  234. </script>
  235. <style lang="less">
  236. .equipmentDtl {
  237. background-color: #f0f0f0;
  238. min-height: 100vh;
  239. margin-top: 128rpx;
  240. .rate-warp{
  241. margin-top: 20rpx;
  242. .sm-rate{
  243. display: flex;
  244. justify-content: space-between;
  245. flex-wrap: wrap;
  246. padding: 0 24rpx;
  247. li{
  248. background-color: #fff;
  249. border-radius: 10rpx;
  250. height: 120rpx;
  251. display: flex;
  252. justify-content: space-between;
  253. margin-top: 24rpx;
  254. align-items: center;
  255. padding: 0 24rpx;
  256. width: 296rpx;
  257. font-size: 28rpx;
  258. color: #666;
  259. .right-box{
  260. font-size: 32rpx;
  261. color: #333;
  262. .line{
  263. width: 70rpx;
  264. height: 8rpx;
  265. background: rgba(238,238,238,1);
  266. border-radius: 4rpx;
  267. margin-top: 6rpx;
  268. .box{
  269. width:50%;
  270. background-color: #BB99F6;
  271. height: 100%;
  272. border-radius: 12rpx;
  273. }
  274. }
  275. }
  276. }
  277. }
  278. .big-rate{
  279. li{
  280. margin-top: 24rpx;
  281. height: 128rpx;
  282. display: flex;
  283. align-items: center;
  284. background-color: #fff;
  285. margin: 0 24rpx;
  286. border-radius: 10rpx;
  287. padding: 0 24rpx;
  288. .text{
  289. font-weight: 500;
  290. font-size: 28rpx;
  291. color: #333;
  292. }
  293. .line{
  294. width: 240rpx;
  295. margin-left: 90rpx;
  296. height: 24rpx;
  297. background: rgba(238,238,238,1);
  298. margin-right: 40rpx;
  299. border-radius: 12rpx;
  300. .box{
  301. width:50%;
  302. background-color: rgba(255,175,83,1);
  303. height: 100%;
  304. border-radius: 12rpx;
  305. }
  306. }
  307. }
  308. }
  309. }
  310. .parts-list{
  311. padding: 0 24rpx;
  312. margin-top: 24rpx;
  313. ul{
  314. display: flex;
  315. justify-content: space-between;
  316. }
  317. li{
  318. width: 32%;
  319. padding: 30rpx 0;
  320. text-align: center;
  321. position: relative;
  322. background-color: #fff;
  323. image{
  324. width: 60rpx;
  325. height: 60rpx;
  326. display: block;
  327. margin: 0 auto 20rpx;
  328. }
  329. }
  330. .before{
  331. width: 30rpx;
  332. height: 30rpx;
  333. border-radius: 50%;
  334. background-color: rgba(204,204,204,0.2);
  335. display: block;
  336. position: absolute;
  337. right: 16rpx;
  338. top: 16rpx;
  339. }
  340. .before::before{
  341. position: absolute;
  342. display: block;
  343. top: 7rpx;
  344. left: 7rpx;
  345. width: 19rpx;
  346. height: 19rpx;
  347. border-radius: 50%;
  348. content:" ";
  349. background: #cccccc;
  350. }
  351. .before.succes{
  352. background-color: rgba(63,191,49,0.2);
  353. }
  354. .before.succes::before{
  355. background: #3FBF31;
  356. }
  357. }
  358. .echarts {
  359. background: #fff;
  360. margin: 24rpx 24rpx 0;
  361. .content{
  362. .text{
  363. font-size: 28rpx;
  364. font-weight: 700;
  365. color: #333;
  366. text-align: center;
  367. margin-bottom: 40rpx;
  368. }
  369. }
  370. .title{
  371. font-size: 28rpx;
  372. height: 90rpx;
  373. line-height: 90rpx;
  374. display: flex;
  375. padding: 0 24rpx;
  376. font-weight: 500;
  377. image{
  378. width: 40rpx;
  379. height: 40rpx;
  380. margin-top: 25rpx;
  381. margin-right: 16rpx;
  382. }
  383. }
  384. }
  385. .parts-list {}
  386. .equ-img {
  387. padding: 24rpx;
  388. background-color: #ffffff;
  389. position: relative;
  390. image {
  391. width: 100%;
  392. height: 395rpx;
  393. }
  394. .err-modal{
  395. position: absolute;
  396. left: 0;
  397. right: 0;
  398. bottom: 0;
  399. top: 0;
  400. background: rgba(0,0,0,0.60);
  401. text-align: center;
  402. display: flex;
  403. align-items: center;
  404. image{
  405. width: 160rpx;
  406. height: 160rpx;
  407. margin: 0 auto;
  408. }
  409. }
  410. }
  411. .state {
  412. display: flex;
  413. justify-content: space-between;
  414. margin: 24rpx 24rpx 0;
  415. .state-box {
  416. padding: 20rpx;
  417. width: 48%;
  418. background-color: #fff;
  419. display: flex;
  420. box-sizing: border-box;
  421. border-radius: 10rpx;
  422. .text{
  423. padding: 12rpx 0;
  424. }
  425. .state-text{
  426. font-size: 32rpx;
  427. font-weight: bold;
  428. margin-top: 5rpx;
  429. }
  430. .label{
  431. font-weight: 400;
  432. font-size: 28rpx;
  433. }
  434. image {
  435. width: 110rpx;
  436. height: 110rpx;
  437. }
  438. }
  439. }
  440. }
  441. </style>