warpKnitting.vue 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535
  1. <template>
  2. <!-- 精编机 -->
  3. <view class="equipmentDtl">
  4. <commons-header title="精编机"></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/jinbian/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. 离线
  20. </view>
  21. </view>
  22. </view>
  23. <view class="state-box">
  24. <image src="../../static/jinbian/icon_gzms.png" mode=""></image>
  25. <view class="text">
  26. <view class="label">
  27. 主轴转速
  28. </view>
  29. <view class="state-text">
  30. 0 RPM
  31. </view>
  32. </view>
  33. </view>
  34. </view>
  35. <ul class="action">
  36. <li>
  37. <image src="../../static/jinbian/icon_ebc2.png" mode=""></image>
  38. <p>EBC</p>
  39. <view class="state-text">离线</view>
  40. </li>
  41. <li>
  42. <image src="../../static/jinbian/icon_jk2.png" mode=""></image>
  43. <p>贾卡</p>
  44. <view class="state-text">离线</view>
  45. </li>
  46. <li>
  47. <image src="../../static/jinbian/icon_hy.png" mode=""></image>
  48. <p>横移</p>
  49. <view class="state-text">离线</view>
  50. </li>
  51. </ul>
  52. <view class="echarts">
  53. <view class="title">
  54. <image src="../../static/jinbian/btn_kanban_blue.png" mode=""></image>
  55. <span>产量数据</span>
  56. </view>
  57. <view class="content">
  58. <view class="text">
  59. 12小时产量
  60. </view>
  61. <qiun-data-charts type="line" :opts="opts" :chartData="chartData" />
  62. </view>
  63. </view>
  64. <view class="ebc-content">
  65. <view class="commons-title">
  66. EBC
  67. </view>
  68. <view class="list-bc">
  69. <view class="bc-box">
  70. <image src="../../static/jinbian/icon_currentl.png" mode=""></image>
  71. <view class="text">
  72. <view class="list-label">当前布长</view>
  73. <view class="list-val">
  74. 0M
  75. </view>
  76. </view>
  77. </view>
  78. <view class="bc-box">
  79. <image src="../../static/jinbian/icon_currentl.png" mode=""></image>
  80. <view class="text">
  81. <view class="list-label">设定布长</view>
  82. <view class="list-val">
  83. 0M
  84. </view>
  85. </view>
  86. </view>
  87. </view>
  88. <view class="list-long">
  89. <view class="" style="display: flex;">
  90. <image src="../../static/jinbian/icon_density.png" mode=""></image>
  91. <view class="list-label" style="line-height: 80rpx;">密度</view>
  92. </view>
  93. <view class="list-val" style="line-height: 80rpx;">
  94. 0M
  95. </view>
  96. </view>
  97. <view class="list-long">
  98. <view class="" style="display: flex;">
  99. <image src="../../static/jinbian/icon_xlj.png" mode=""></image>
  100. <view class="list-label" style="line-height: 80rpx;font-size: 28rpx;font-weight: bold;">送经轴1</view>
  101. </view>
  102. <view class="list-val" style="line-height: 40rpx;color: #666666;font-size: 24rpx;">
  103. <p>剩余圈数:0 N</p>
  104. <p>剩余时间:0 H</p>
  105. </view>
  106. </view>
  107. <view class="list-bc mt-24">
  108. <view class="bc-box">
  109. <image src="../../static/jinbian/icon_drawoff.png" mode=""></image>
  110. <view class="text" style="line-height: 80rpx;">
  111. 牵拉
  112. </view>
  113. </view>
  114. <view class="bc-box">
  115. <image src="../../static/jinbian/icon_batching.png" mode=""></image>
  116. <view class="text" style="line-height: 80rpx;">
  117. 卷曲
  118. </view>
  119. </view>
  120. </view>
  121. </view>
  122. <view class="ebc-content">
  123. <view class="commons-title">
  124. 贾卡
  125. </view>
  126. <view class="list-bc">
  127. <view class="bc-box">
  128. <image src="../../static/jinbian/icon_currentl.png" mode=""></image>
  129. <view class="text">
  130. <view class="list-label">工艺宽度</view>
  131. <view class="list-val">
  132. 0
  133. </view>
  134. </view>
  135. </view>
  136. <view class="bc-box">
  137. <image src="../../static/jinbian/icon_currentl.png" mode=""></image>
  138. <view class="text">
  139. <view class="list-label">工艺高度</view>
  140. <view class="list-val">
  141. 0
  142. </view>
  143. </view>
  144. </view>
  145. </view>
  146. </view>
  147. <view class="ebc-content">
  148. <view class="commons-title">
  149. 横移
  150. </view>
  151. <view class="list-long">
  152. <view class="" style="display: flex;">
  153. <image src="../../static/jinbian/icon_density.png" mode=""></image>
  154. <view class="list-label" style="line-height: 80rpx;">总轴数</view>
  155. </view>
  156. <view class="list-val" style="line-height: 80rpx;">
  157. 0
  158. </view>
  159. </view>
  160. </view>
  161. </view>
  162. </template>
  163. <script>
  164. import {
  165. getInfo
  166. } from "@/util/api.js";
  167. import Vue from 'vue'
  168. import commonsHeader from '../../components/commons-header/index.vue'
  169. export default {
  170. components: {
  171. commonsHeader
  172. },
  173. data() {
  174. return {
  175. userInfoData: [],
  176. notificationData: [],
  177. opts: {
  178. color: ["#1890FF", "#91CB74", "#FAC858", "#EE6666", "#73C0DE", "#3CA272", "#FC8452", "#9A60B4",
  179. "#ea7ccc"
  180. ],
  181. padding: [15, 10, 0, 15],
  182. legend: {},
  183. xAxis: {
  184. disableGrid: true
  185. },
  186. yAxis: {
  187. gridType: "dash",
  188. dashLength: 2
  189. },
  190. extra: {
  191. line: {
  192. type: "curve",
  193. width: 2
  194. }
  195. }
  196. },
  197. chartData: {
  198. categories: ["2016", "2017", "2018", "2019", "2020", "2021"],
  199. series: [{
  200. name: "极限产量",
  201. data: [0,0,0,0,0,0,0,0]
  202. },
  203. {
  204. name: "实际产量",
  205. data: [0, 0, 0, 0, 0, 0]
  206. },
  207. ]
  208. }
  209. }
  210. },
  211. onLoad() {
  212. const v = this
  213. // v.$post('/wx/login/getUserInfo').then(res => {
  214. // v.userInfoData = res.data
  215. // Vue.prototype.$userInfo = res.data
  216. // uni.setStorage({
  217. // key: "userInfo",
  218. // data: res.data,
  219. // success(res) {
  220. // },
  221. // fail(res) {}
  222. // })
  223. // })
  224. // v.$post('/wx/message/notification',{}).then(res=>{
  225. // v.notificationData = res.data
  226. // })
  227. },
  228. methods: {
  229. toRouter(j) {
  230. console.log(j)
  231. uni.navigateTo({
  232. url: '/pages/' + j.menuKey + '/' + j.menuKey
  233. })
  234. },
  235. },
  236. }
  237. </script>
  238. <style lang="less">
  239. .equipmentDtl {
  240. background-color: #f0f0f0;
  241. min-height: 100vh;
  242. margin-top: 128rpx;
  243. .ebc-content{
  244. background-color: #fff;
  245. margin: 24rpx 24rpx;
  246. border-radius: 10rpx;
  247. padding-bottom: 24rpx;
  248. .list-long{
  249. height: 112rpx;
  250. margin: 24rpx 24rpx 0;
  251. display: flex;
  252. justify-content: space-between;
  253. background-color: #F1F1F1;
  254. padding: 18rpx 24rpx;
  255. box-sizing: border-box;
  256. border-radius: 10rpx;
  257. font-size: 24rpx;
  258. .list-val{
  259. font-size: 32rpx;
  260. font-weight: bold;
  261. }
  262. image{
  263. width: 80rpx;
  264. height: 80rpx;
  265. margin-right: 24rpx;
  266. }
  267. }
  268. .list-bc{
  269. display: flex;
  270. justify-content: space-between;
  271. padding: 0 24rpx;
  272. .bc-box{
  273. height: 112rpx;
  274. width: 48%;
  275. display: flex;
  276. background-color: #F1F1F1;
  277. padding: 18rpx 24rpx;
  278. box-sizing: border-box;
  279. border-radius: 10rpx;
  280. font-size: 24rpx;
  281. .list-val{
  282. font-size: 32rpx;
  283. font-weight: bold;
  284. }
  285. image{
  286. width: 80rpx;
  287. height: 80rpx;
  288. margin-right: 24rpx;
  289. }
  290. }
  291. }
  292. }
  293. .action{
  294. display: flex;
  295. justify-content: space-between;
  296. margin: 24rpx 24rpx 0;
  297. li{
  298. width: 32%;
  299. text-align: center;
  300. background-color: #fff;
  301. font-size: 28rpx;
  302. border-radius: 10rpx;
  303. padding: 24rpx 0;
  304. image{
  305. width: 100rpx;
  306. height: 100rpx;
  307. }
  308. .state-text{
  309. text-align: center;
  310. }
  311. }
  312. }
  313. .rate-warp{
  314. margin-top: 20rpx;
  315. .sm-rate{
  316. display: flex;
  317. justify-content: space-between;
  318. flex-wrap: wrap;
  319. padding: 0 24rpx;
  320. li{
  321. background-color: #fff;
  322. border-radius: 10rpx;
  323. height: 120rpx;
  324. display: flex;
  325. justify-content: space-between;
  326. margin-top: 24rpx;
  327. align-items: center;
  328. padding: 0 24rpx;
  329. width: 296rpx;
  330. font-size: 28rpx;
  331. color: #666;
  332. .right-box{
  333. font-size: 32rpx;
  334. color: #333;
  335. .line{
  336. width: 70rpx;
  337. height: 8rpx;
  338. background: rgba(238,238,238,1);
  339. border-radius: 4rpx;
  340. margin-top: 6rpx;
  341. .box{
  342. width:50%;
  343. background-color: #BB99F6;
  344. height: 100%;
  345. border-radius: 12rpx;
  346. }
  347. }
  348. }
  349. }
  350. }
  351. .big-rate{
  352. li{
  353. margin-top: 24rpx;
  354. height: 128rpx;
  355. display: flex;
  356. align-items: center;
  357. background-color: #fff;
  358. margin: 0 24rpx;
  359. border-radius: 10rpx;
  360. padding: 0 24rpx;
  361. .text{
  362. font-weight: 500;
  363. font-size: 28rpx;
  364. color: #333;
  365. }
  366. .line{
  367. width: 240rpx;
  368. margin-left: 90rpx;
  369. height: 24rpx;
  370. background: rgba(238,238,238,1);
  371. margin-right: 40rpx;
  372. border-radius: 12rpx;
  373. .box{
  374. width:50%;
  375. background-color: rgba(255,175,83,1);
  376. height: 100%;
  377. border-radius: 12rpx;
  378. }
  379. }
  380. }
  381. }
  382. }
  383. .parts-list{
  384. padding: 0 24rpx;
  385. margin-top: 24rpx;
  386. ul{
  387. display: flex;
  388. justify-content: space-between;
  389. }
  390. li{
  391. width: 32%;
  392. padding: 30rpx 0;
  393. text-align: center;
  394. position: relative;
  395. background-color: #fff;
  396. image{
  397. width: 60rpx;
  398. height: 60rpx;
  399. display: block;
  400. margin: 0 auto 20rpx;
  401. }
  402. }
  403. .before{
  404. width: 30rpx;
  405. height: 30rpx;
  406. border-radius: 50%;
  407. background-color: rgba(204,204,204,0.2);
  408. display: block;
  409. position: absolute;
  410. right: 16rpx;
  411. top: 16rpx;
  412. }
  413. .before::before{
  414. position: absolute;
  415. display: block;
  416. top: 7rpx;
  417. left: 7rpx;
  418. width: 19rpx;
  419. height: 19rpx;
  420. border-radius: 50%;
  421. content:" ";
  422. background: #cccccc;
  423. }
  424. .before.succes{
  425. background-color: rgba(63,191,49,0.2);
  426. }
  427. .before.succes::before{
  428. background: #3FBF31;
  429. }
  430. }
  431. .echarts {
  432. background: #fff;
  433. margin: 24rpx 24rpx 0;
  434. .content{
  435. .text{
  436. font-size: 28rpx;
  437. font-weight: 700;
  438. color: #333;
  439. text-align: center;
  440. margin-bottom: 40rpx;
  441. }
  442. }
  443. .title{
  444. font-size: 28rpx;
  445. height: 90rpx;
  446. line-height: 90rpx;
  447. display: flex;
  448. padding: 0 24rpx;
  449. font-weight: 500;
  450. image{
  451. width: 40rpx;
  452. height: 40rpx;
  453. margin-top: 25rpx;
  454. margin-right: 16rpx;
  455. }
  456. }
  457. }
  458. .parts-list {}
  459. .equ-img {
  460. padding: 24rpx;
  461. background-color: #ffffff;
  462. position: relative;
  463. image {
  464. width: 100%;
  465. height: 395rpx;
  466. }
  467. .err-modal{
  468. position: absolute;
  469. left: 0;
  470. right: 0;
  471. bottom: 0;
  472. top: 0;
  473. background: rgba(0,0,0,0.60);
  474. text-align: center;
  475. display: flex;
  476. align-items: center;
  477. image{
  478. width: 160rpx;
  479. height: 160rpx;
  480. margin: 0 auto;
  481. }
  482. }
  483. }
  484. .state {
  485. display: flex;
  486. justify-content: space-between;
  487. margin: 24rpx 24rpx 0;
  488. .state-box {
  489. padding: 20rpx;
  490. width: 48%;
  491. background-color: #fff;
  492. display: flex;
  493. box-sizing: border-box;
  494. border-radius: 10rpx;
  495. .text{
  496. padding: 12rpx 0;
  497. }
  498. .state-text{
  499. font-size: 32rpx;
  500. font-weight: bold;
  501. margin-top: 5rpx;
  502. }
  503. .label{
  504. font-weight: 400;
  505. font-size: 28rpx;
  506. }
  507. image {
  508. width: 110rpx;
  509. height: 110rpx;
  510. }
  511. }
  512. }
  513. }
  514. </style>