workOrderManagement.vue 14 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638
  1. <template>
  2. <view>
  3. <view class="navbar-c">
  4. <view class="back" @click="toWorkOrderMap">
  5. <image class="img" src="@/assets/img/riLine-road-map-line.svg" mode=""></image>
  6. </view>
  7. <view class="title">
  8. 工单管理
  9. </view>
  10. <view class="right" >
  11. 故障上报
  12. </view>
  13. </view>
  14. <!-- 搜索 -->
  15. <view class="search-box">
  16. <u-search placeholder="搜索" bg-color="#fff" height="80" :show-action="true" v-model="keyword">
  17. </u-search>
  18. </view>
  19. <!-- 我的工单 -->
  20. <view class="my-work-order">
  21. <view class="title">
  22. <view class="name">
  23. <view class="icon">
  24. <image class="img" src="@/assets/img/riFill-bar-chart-fill.svg" mode=""></image>
  25. </view>
  26. 我的工单
  27. </view>
  28. <view class="more" @click="toWorkOrderStatistics">
  29. 工单统计<u-icon name="arrow-right" color="#777777"></u-icon>
  30. </view>
  31. </view>
  32. <!-- 分类 -->
  33. <view class="classify">
  34. <view class="item item-checked" >
  35. 全部18
  36. <view class="checked-circle">
  37. </view>
  38. </view>
  39. <view class="item">
  40. 待指派 2
  41. </view>
  42. <view class="item">
  43. 进行中 3
  44. </view>
  45. <view class="item">
  46. 已解决 13
  47. </view>
  48. </view>
  49. <!-- 工单详情 -->
  50. <view class="work-order">
  51. <!-- 紧急 -->
  52. <view class="urgency">
  53. 紧急
  54. </view>
  55. <view class="order-item">
  56. <view class="item-icon">
  57. <image class="img" src="@/assets/img/riFill-building-fill1.svg" mode=""></image>
  58. </view>
  59. <view class="item-value value-bold">
  60. 荆鹏集团-荆鹏软件园01
  61. </view>
  62. </view>
  63. <view class="order-item">
  64. <view class="item-icon">
  65. <image class="img" src="@/assets/img/riFill-alert-fill.svg" mode=""></image>
  66. </view>
  67. <view class="item-value value-bold">
  68. 温度过高
  69. </view>
  70. </view>
  71. <view class="order-item">
  72. <view class="item-icon">
  73. <image class="img" src="@/assets/img/riFill-map-pin-fill.svg" mode=""></image>
  74. </view>
  75. <view class="item-value">
  76. 沙市区江津东路附155号
  77. </view>
  78. </view>
  79. <view class="order-item">
  80. <view class="item-icon">
  81. <image class="img" src="@/assets/img/riFill-time-fill.svg" mode=""></image>
  82. </view>
  83. <view class="item-value">
  84. 2024-02-04 20:00:00
  85. </view>
  86. </view>
  87. <view class="button">
  88. <view class="state">
  89. 待指派
  90. </view>
  91. <view class="btn">
  92. <button class="close" @click="closeShow=true">关闭</button>
  93. <button class="reminder" @click="reminderShow=true">催单</button>
  94. </view>
  95. </view>
  96. </view>
  97. <view class="work-order">
  98. <view class="order-item">
  99. <view class="item-icon">
  100. <image class="img" src="@/assets/img/riFill-building-fill1.svg" mode=""></image>
  101. </view>
  102. <view class="item-value value-bold">
  103. 荆鹏集团-荆鹏软件园01
  104. </view>
  105. </view>
  106. <view class="order-item">
  107. <view class="item-icon">
  108. <image class="img" src="@/assets/img/riFill-alert-fill.svg" mode=""></image>
  109. </view>
  110. <view class="item-value value-bold">
  111. 温度过高
  112. </view>
  113. </view>
  114. <view class="order-item">
  115. <view class="item-icon">
  116. <image class="img" src="@/assets/img/riFill-map-pin-fill.svg" mode=""></image>
  117. </view>
  118. <view class="item-value">
  119. 沙市区江津东路附155号
  120. </view>
  121. </view>
  122. <view class="order-item">
  123. <view class="item-icon">
  124. <image class="img" src="@/assets/img/riFill-time-fill.svg" mode=""></image>
  125. </view>
  126. <view class="item-value">
  127. 2024-02-04 20:00:00
  128. </view>
  129. </view>
  130. <view class="button">
  131. <view class="state state2">
  132. 进行中
  133. </view>
  134. <view class="btn">
  135. <button class="resolved">确认解决</button>
  136. </view>
  137. </view>
  138. </view>
  139. <view class="work-order">
  140. <view class="order-item">
  141. <view class="item-icon">
  142. <image class="img" src="@/assets/img/riFill-building-fill1.svg" mode=""></image>
  143. </view>
  144. <view class="item-value value-bold">
  145. 荆鹏集团-荆鹏软件园01
  146. </view>
  147. </view>
  148. <view class="order-item">
  149. <view class="item-icon">
  150. <image class="img" src="@/assets/img/riFill-alert-fill.svg" mode=""></image>
  151. </view>
  152. <view class="item-value value-bold">
  153. 温度过高
  154. </view>
  155. </view>
  156. <view class="order-item">
  157. <view class="item-icon">
  158. <image class="img" src="@/assets/img/riFill-map-pin-fill.svg" mode=""></image>
  159. </view>
  160. <view class="item-value">
  161. 沙市区江津东路附155号
  162. </view>
  163. </view>
  164. <view class="order-item">
  165. <view class="item-icon">
  166. <image class="img" src="@/assets/img/riFill-time-fill.svg" mode=""></image>
  167. </view>
  168. <view class="item-value">
  169. 2024-02-04 20:00:00
  170. </view>
  171. </view>
  172. <view class="button">
  173. <view class="state state3">
  174. 已解决
  175. </view>
  176. <view class="btn">
  177. <button class="view">查看详情</button>
  178. </view>
  179. </view>
  180. </view>
  181. <view class="work-order">
  182. <view class="order-item">
  183. <view class="item-icon">
  184. <image class="img" src="@/assets/img/riFill-building-fill1.svg" mode=""></image>
  185. </view>
  186. <view class="item-value value-bold">
  187. 荆鹏集团-荆鹏软件园01
  188. </view>
  189. </view>
  190. <view class="order-item">
  191. <view class="item-icon">
  192. <image class="img" src="@/assets/img/riFill-alert-fill.svg" mode=""></image>
  193. </view>
  194. <view class="item-value value-bold">
  195. 温度过高
  196. </view>
  197. </view>
  198. <view class="order-item">
  199. <view class="item-icon">
  200. <image class="img" src="@/assets/img/riFill-map-pin-fill.svg" mode=""></image>
  201. </view>
  202. <view class="item-value">
  203. 沙市区江津东路附155号
  204. </view>
  205. </view>
  206. <view class="order-item">
  207. <view class="item-icon">
  208. <image class="img" src="@/assets/img/riFill-time-fill.svg" mode=""></image>
  209. </view>
  210. <view class="item-value">
  211. 2024-02-04 20:00:00
  212. </view>
  213. </view>
  214. <view class="button">
  215. <view class="state state4">
  216. 已关闭
  217. </view>
  218. <view class="btn">
  219. <button class="view">查看详情</button>
  220. </view>
  221. </view>
  222. </view>
  223. </view>
  224. <!-- 关闭原因 -->
  225. <u-popup v-model="closeShow" mode="bottom" closeable close-icon-size="24" close-icon-color="#101010" border-radius="24">
  226. <view class="close-reason">
  227. <view class="title">
  228. 请选择关闭原因:
  229. </view>
  230. <view class="reason-content">
  231. <view class="reason-item">
  232. <view class="item-title">
  233. 错误告警
  234. </view>
  235. <view class="item-value">
  236. <label class="radio">
  237. <radio value="" /><text></text>
  238. </label>
  239. </view>
  240. </view>
  241. <view class="reason-item">
  242. <view class="item-title">
  243. 设备已自动恢复
  244. </view>
  245. <view class="item-value">
  246. <label class="radio">
  247. <radio value="" /><text></text>
  248. </label>
  249. </view>
  250. </view>
  251. <view class="reason-item">
  252. <view class="item-title">
  253. 不需要上门解决
  254. </view>
  255. <view class="item-value">
  256. <label class="radio">
  257. <radio value="" /><text></text>
  258. </label>
  259. </view>
  260. </view>
  261. <view class="reason-item">
  262. <view class="item-title">
  263. 平台移桩,可忽视
  264. </view>
  265. <view class="item-value">
  266. <label class="radio">
  267. <radio value="" /><text></text>
  268. </label>
  269. </view>
  270. </view>
  271. <view class="reason-item">
  272. <view class="item-title">
  273. 其他
  274. </view>
  275. <view class="item-value">
  276. <label class="radio">
  277. <radio value="" /><text></text>
  278. </label>
  279. </view>
  280. </view>
  281. </view>
  282. <view class="button-box">
  283. <button class="think">我在想想</button>
  284. <button class="confirm" >确认关闭</button>
  285. </view>
  286. </view>
  287. </u-popup>
  288. <!-- 催单 -->
  289. <u-popup v-model="reminderShow" mode="bottom" closeable close-icon-size="24" close-icon-color="#101010" border-radius="24">
  290. <view class="reminder-content">
  291. <view class="title">
  292. 催单
  293. </view>
  294. <view class="content">
  295. 我们已催促平台尽快指派工程师处理工单。
  296. </view>
  297. <button class="know" >知道了</button>
  298. </view>
  299. </u-popup>
  300. <energyCenterTabbar :current="1"></energyCenterTabbar>
  301. </view>
  302. </template>
  303. <script>
  304. import energyCenterTabbar from '@/components/energyCenterTabbar.vue'
  305. export default {
  306. components: {
  307. energyCenterTabbar
  308. },
  309. data() {
  310. return {
  311. keyword: '',
  312. closeShow:false,
  313. reminderShow:false, }
  314. },
  315. methods: {
  316. toWorkOrderMap() {
  317. uni.navigateTo({
  318. url: '/pages/workOrderManagement/workOrderMap'
  319. })
  320. },
  321. toWorkOrderStatistics() {
  322. uni.navigateTo({
  323. url: '/pages/workOrderManagement/workOrderStatistics'
  324. })
  325. }
  326. }
  327. }
  328. </script>
  329. <style lang="scss" scoped>
  330. .back {
  331. z-index: 999;
  332. width: 200rpx;
  333. }
  334. page{
  335. padding-bottom: 100px;
  336. }
  337. // 搜索
  338. .search-box{
  339. padding: 16rpx 32rpx;
  340. position: sticky;
  341. top: 88rpx;
  342. z-index: 999;
  343. background-color:#F2F4F6;
  344. /deep/.u-content{
  345. border-radius: 8px !important;
  346. };
  347. /deep/.u-search{
  348. position: relative
  349. };
  350. /deep/.u-action {
  351. width: 96rpx;
  352. line-height: 56rpx;
  353. border-radius: 4px;
  354. background-color: rgba(22,119,255,1);
  355. color: rgba(255,255,255,1);
  356. text-align: center;
  357. z-index: 9999;
  358. position: absolute;
  359. right: 12rpx;
  360. }
  361. }
  362. // 我的工单
  363. .my-work-order{
  364. margin-top: 88rpx;
  365. .title{
  366. display: flex;
  367. align-items: center;
  368. justify-content: space-between;
  369. padding: 16rpx 32rpx;
  370. .name{
  371. display: flex;
  372. align-items: center;
  373. color: rgba(16,16,16,1);
  374. font-size: 36rpx;
  375. font-weight: bold;
  376. .icon{
  377. width: 36rpx;
  378. height: 36rpx;
  379. border-radius: 4px;
  380. background-color: rgba(22,119,255,1);
  381. display: flex;
  382. align-items: center;
  383. justify-content: center;
  384. margin-right: 12rpx;
  385. .img{
  386. width: 28rpx;
  387. height: 28rpx;
  388. }
  389. }
  390. }
  391. .more{
  392. color: #777777;
  393. font-size: 32rpx;
  394. }
  395. }
  396. // 分类
  397. .classify{
  398. display: flex;
  399. align-items: center;
  400. justify-content: space-between;
  401. padding: 0 32rpx;
  402. margin-top: 8rpx;
  403. .item{
  404. width: 160rpx;
  405. line-height: 72rpx;
  406. border-radius: 8px;
  407. background-color: rgba(255,255,255,1);
  408. border: 1px solid rgba(22,119,255,1);
  409. text-align: center;
  410. color: rgba(22,119,255,1);
  411. font-weight: bold;
  412. overflow: hidden;
  413. }
  414. .item-checked{
  415. background: linear-gradient(180deg, rgba(78,141,246,1) 0%,rgba(22,119,255,1) 100%);
  416. color: #fff;
  417. position: relative;
  418. .checked-circle{
  419. width: 20rpx;
  420. height: 20rpx;
  421. background-color: rgba(255,150,0,1);
  422. border-radius: 999px;
  423. position: absolute;
  424. bottom: -10rpx;
  425. left: 50%;
  426. transform: translateX(-50%);
  427. }
  428. }
  429. }
  430. // 工单详情
  431. .work-order{
  432. border-radius: 8px;
  433. background-color: rgba(255,255,255,1);
  434. margin: 24rpx 32rpx;
  435. padding: 32rpx 24rpx 0;
  436. position: relative;
  437. // 紧急
  438. .urgency{
  439. width: 120rpx;
  440. line-height: 56rpx;
  441. border-radius: 0px 8px 0px 8px;
  442. color: rgba(255,255,255,1);
  443. font-size: 32rpx;
  444. text-align: center;
  445. background: linear-gradient(180deg, rgba(255,79,63,1) 0%,rgba(255,124,112,1) 100%);
  446. position: absolute;
  447. top: 0;
  448. right: 0;
  449. }
  450. .order-item{
  451. display: flex;
  452. align-items: center;
  453. margin-bottom: 16rpx;
  454. .item-icon{
  455. .img{
  456. width: 40rpx;
  457. height: 40rpx;
  458. vertical-align: middle;
  459. }
  460. }
  461. .item-value{
  462. color: rgba(51,51,51,1);
  463. font-size: 32rpx;
  464. margin-left: 16rpx;
  465. }
  466. .value-bold{
  467. font-weight: bold;
  468. }
  469. }
  470. }
  471. // 按钮
  472. .button{
  473. margin-top: 32rpx;
  474. border-top: 1px solid rgba(232,232,232,1);
  475. padding: 20rpx 0;
  476. display: flex;
  477. justify-content: space-between;
  478. align-items: center;
  479. .state{
  480. color: rgba(255,123,0,1);
  481. }
  482. .state2{
  483. color: rgba(22,119,255,1);
  484. }
  485. .state3{
  486. color: rgba(0,185,98,1);
  487. }
  488. .state4{
  489. color: rgba(119,119,119,1);
  490. }
  491. .btn{
  492. display: flex;
  493. .close{
  494. border: 1px solid rgba(187,187,187,1);
  495. width: 144rpx;
  496. height: 64rpx;
  497. line-height: 64rpx;
  498. border-radius: 4px;
  499. background-color: rgba(255,255,255,1);
  500. color: rgba(119,119,119,1);
  501. margin-right: 24rpx;
  502. font-size: 28rpx
  503. }
  504. .reminder,.resolved{
  505. width: 144rpx;
  506. height: 64rpx;
  507. line-height: 64rpx;
  508. border-radius: 4px;
  509. color: rgba(255,255,255,1);
  510. background-color: rgba(22,119,255,1);
  511. font-size: 28rpx
  512. }
  513. .resolved{
  514. width: 176rpx;
  515. }
  516. .view{
  517. width: 176rpx;
  518. height: 64rpx;
  519. line-height: 64rpx;
  520. border-radius: 4px;
  521. background-color: rgba(255,255,255,1);
  522. color: rgba(119,119,119,1);
  523. font-size: 28rpx;
  524. border: 1px solid rgba(187,187,187,1);
  525. }
  526. }
  527. }
  528. }
  529. //关闭原因
  530. .close-reason{
  531. padding: 32rpx;
  532. .title{
  533. color: rgba(16,16,16,1);
  534. font-size: 36rpx;
  535. font-weight: bold;
  536. }
  537. .reason-content{
  538. margin-top: 60rpx;
  539. .reason-item{
  540. display: flex;
  541. align-items: center;
  542. justify-content: space-between;
  543. margin-bottom: 56rpx;
  544. .item-title{
  545. color: rgba(16,16,16,1);
  546. font-size: 32rpx;
  547. }
  548. }
  549. }
  550. .button-box{
  551. display: flex;
  552. .think{
  553. width: 328rpx;
  554. line-height: 80rpx;
  555. font-size: 32rpx;
  556. border-radius: 4px;
  557. background-color: rgba(222,225,228,1);
  558. color: rgba(51,51,51,1);
  559. }
  560. .confirm{
  561. width: 328rpx;
  562. line-height: 80rpx;
  563. font-size: 32rpx;
  564. border-radius: 4px;
  565. background-color: rgba(255,68,68,1);
  566. color: rgba(255,255,255,1);
  567. }
  568. }
  569. }
  570. // 催单
  571. .reminder-content{
  572. padding: 32rpx;
  573. text-align: center;
  574. .title{
  575. color: rgba(16,16,16,1);
  576. font-size: 36rpx;
  577. font-weight: bold;
  578. }
  579. .content{
  580. color: rgba(16,16,16,1);
  581. font-size: 32rpx;
  582. margin-top: 40rpx;
  583. }
  584. .know{
  585. width: 100%;
  586. line-height: 80rpx;
  587. border-radius: 4px;
  588. background-color: rgba(22,119,255,1);
  589. color: rgba(255,255,255,1);
  590. font-size: 32rpx;
  591. margin-top: 84rpx;
  592. }
  593. }
  594. </style>