workOrderDetails.vue 10.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515
  1. <template>
  2. <view>
  3. <u-navbar title="工单详情" title-color="#101010"></u-navbar>
  4. <!-- 工单详情 -->
  5. <view class="main">
  6. <view class="title">
  7. <view class="number">
  8. 工单编号:JP10001
  9. </view>
  10. <view class="state">
  11. 进行中
  12. </view>
  13. <view class="state state2">
  14. 处理中
  15. </view>
  16. <view class="state state3">
  17. 已解决
  18. </view>
  19. <view class="state state4">
  20. 已关闭
  21. </view>
  22. </view>
  23. <view class="content">
  24. <view class="content-item">
  25. <view class="item-title">
  26. 告警设备
  27. </view>
  28. <view class="item-value">
  29. 荆鹏集团-荆鹏软件园01
  30. </view>
  31. </view>
  32. <view class="content-item">
  33. <view class="item-title">
  34. 告警类型
  35. </view>
  36. <view class="item-value">
  37. 温度过高
  38. </view>
  39. </view>
  40. <view class="content-item">
  41. <view class="item-title">
  42. 地址
  43. </view>
  44. <view class="item-value">
  45. 沙市区江津东路附155号
  46. <image class="img" src="@/assets/img/riFill-navigation-fill 1.svg" mode=""></image>
  47. </view>
  48. </view>
  49. <view class="content-item">
  50. <view class="item-title">
  51. 告警时间
  52. </view>
  53. <view class="item-value">
  54. 2024-02-04 20:00:00
  55. </view>
  56. </view>
  57. <view class="content-picture">
  58. <view class="picture-title">
  59. 现场照片/视频
  60. </view>
  61. <view class="picture-box">
  62. <image v-for="item in 4" class="img" src="@/assets/img/pImage@1x.png" mode=""></image>
  63. </view>
  64. </view>
  65. <view class="content-item">
  66. <view class="item-title">
  67. 运维专员
  68. </view>
  69. <view class="item-value">
  70. <view class="photo">
  71. <image class="photo-img" src="@/assets/img/photo@x1.png" mode=""></image>
  72. </view>
  73. 郭群 15500001111
  74. <image class="img" src="@/assets/img/riFill-phone-fill.svg" mode=""></image>
  75. </view>
  76. </view>
  77. </view>
  78. </view>
  79. <!-- 处理记录 -->
  80. <view class="record">
  81. <view class="title">
  82. <view class="icon">
  83. </view>
  84. <view class="text">
  85. 处理记录
  86. </view>
  87. </view>
  88. <!-- 时间轴 -->
  89. <view class="time-line">
  90. <u-time-line>
  91. <!-- 关闭原因 -->
  92. <u-time-line-item nodeTop="10">
  93. <template v-slot:node>
  94. <view class="u-node" >
  95. </view>
  96. </template>
  97. <template v-slot:content>
  98. <view>
  99. <view class="u-order-title"> <text class="name">我 </text>关闭了工单</view>
  100. <view class="u-order-desc">关闭原因:错误告警</view>
  101. <view class="u-order-time">2019-05-08 12:12</view>
  102. </view>
  103. </template>
  104. </u-time-line-item>
  105. <!-- 关闭工单 -->
  106. <u-time-line-item nodeTop="10">
  107. <template v-slot:node>
  108. <view class="u-node" >
  109. </view>
  110. </template>
  111. <template v-slot:content>
  112. <view >
  113. <view class="u-order-title">关闭工单</view>
  114. <view class="u-order-time">2019-05-08 12:12</view>
  115. </view>
  116. </template>
  117. </u-time-line-item>
  118. <!-- 完成工单 -->
  119. <u-time-line-item nodeTop="10">
  120. <template v-slot:content>
  121. <view>
  122. <view class="u-order-title"> <text class="name">郭群 </text>完成工单</view>
  123. <view class="u-order-desc">处理结果:冻雨天气导致私变线路问题,已解决。</view>
  124. <view class="u-order-picture">
  125. <image v-for="item in 4" class="img" src="@/assets/img/pImage@1x.png" mode="">
  126. </image>
  127. </view>
  128. <view class="u-order-time">2019-05-08 12:12</view>
  129. </view>
  130. </template>
  131. </u-time-line-item>
  132. <u-time-line-item nodeTop="10">
  133. <template v-slot:content>
  134. <view>
  135. <view class="u-order-title">平台指派 <text class="name">郭群 </text>处理工单</view>
  136. <view class="u-order-time">2019-05-08 12:12</view>
  137. </view>
  138. </template>
  139. </u-time-line-item>
  140. <u-time-line-item nodeTop="10">
  141. <template v-slot:content>
  142. <view>
  143. <view class="u-order-title">触发告警 温度过高</view>
  144. <view class="u-order-time">2019-05-08 12:12</view>
  145. </view>
  146. </template>
  147. </u-time-line-item>
  148. </u-time-line>
  149. </view>
  150. </view>
  151. <!-- 底部 -->
  152. <view class="bottom">
  153. <button class="back">返回</button>
  154. <button class="confirm" @click="resultShow=true">确认解决</button>
  155. </view>
  156. <!-- 填写处理结果 -->
  157. <u-popup v-model="resultShow" mode="bottom" border-radius="12">
  158. <view class="result-content">
  159. <view class="title">
  160. 填写处理结果
  161. </view>
  162. <view class="textarea">
  163. <textarea placeholder="请填写处理结果"></textarea>
  164. </view>
  165. <!-- 上传照片 -->
  166. <view class="upload">
  167. <view class="title">
  168. 上传现场照片
  169. </view>
  170. <view class="upload-picture">
  171. <u-upload max-count="4" width="144" height="144" :action="action"
  172. :file-list="fileList"></u-upload>
  173. </view>
  174. </view>
  175. <!-- 按钮 -->
  176. <view class="btn-box">
  177. <button class="cancel">取消</button>
  178. <button class="submit">提交</button>
  179. </view>
  180. </view>
  181. </u-popup>
  182. </view>
  183. </template>
  184. <script>
  185. export default {
  186. data() {
  187. return {
  188. resultShow: false,
  189. }
  190. },
  191. methods: {
  192. }
  193. }
  194. </script>
  195. <style lang="scss" scoped>
  196. page {
  197. padding-bottom: 100px;
  198. }
  199. // 工单详情
  200. .main {
  201. background-color: #fff;
  202. .title {
  203. display: flex;
  204. justify-content: space-between;
  205. padding: 24rpx 32rpx;
  206. box-shadow: 0px 2px 2px 0px rgba(0, 0, 0, 0.1);
  207. .number {
  208. color: rgba(51, 51, 51, 1);
  209. }
  210. .state {
  211. border-radius: 4px;
  212. background-color: rgba(255, 255, 255, 1);
  213. color: rgba(22, 119, 255, 1);
  214. font-size: 24rpx;
  215. border: 1px solid rgba(22, 119, 255, 1);
  216. width: 96rpx;
  217. height: 48rpx;
  218. line-height: 48rpx;
  219. text-align: center;
  220. }
  221. .state2 {
  222. color: rgba(255, 68, 68, 1);
  223. border: 1px solid rgba(255, 68, 68, 1);
  224. }
  225. .state3 {
  226. color: rgba(0, 185, 98, 1);
  227. border: 1px solid rgba(0, 185, 98, 1);
  228. }
  229. .state4 {
  230. border: 1px solid rgba(171, 171, 171, 1);
  231. color: rgba(119, 119, 119, 1);
  232. }
  233. }
  234. .content {
  235. .content-item {
  236. display: flex;
  237. align-items: center;
  238. justify-content: space-between;
  239. padding: 24rpx 0;
  240. margin: 0 32rpx;
  241. border-bottom: 1px solid rgba(242, 242, 242, 1);
  242. font-size: 32rpx;
  243. .item-title {
  244. color: rgba(51, 51, 51, 1);
  245. }
  246. .item-value {
  247. color: rgba(16, 16, 16, 1);
  248. display: flex;
  249. align-items: center;
  250. .photo-img {
  251. width: 40rpx;
  252. height: 40rpx;
  253. border-radius: 999px;
  254. vertical-align: middle;
  255. margin-right: 24rpx;
  256. }
  257. .img {
  258. width: 32rpx;
  259. height: 32rpx;
  260. transform: scaleX(-1);
  261. margin-left: 8rpx;
  262. }
  263. }
  264. }
  265. .content-picture {
  266. padding: 24rpx 32rpx;
  267. border-bottom: 1px solid rgba(242, 242, 242, 1);
  268. .picture-title {
  269. color: rgba(51, 51, 51, 1);
  270. font-size: 32rpx;
  271. }
  272. .picture-box {
  273. margin-top: 16rpx;
  274. display: flex;
  275. justify-content: space-around;
  276. .img {
  277. width: 160rpx;
  278. height: 160rpx;
  279. border-radius: 4px;
  280. }
  281. }
  282. }
  283. }
  284. }
  285. // 处理记录
  286. .record {
  287. padding: 32rpx;
  288. margin-top: 54rpx;
  289. background-color: #fff;
  290. .title {
  291. display: flex;
  292. align-items: center;
  293. line-height: 32rpx;
  294. .icon {
  295. background-color: rgba(22, 119, 255, 1);
  296. width: 4px;
  297. height: 16px;
  298. }
  299. .text {
  300. color: rgb(16, 16, 16);
  301. font-size: 36rpx;
  302. margin-left: 12rpx;
  303. font-weight: bold;
  304. }
  305. }
  306. // 时间轴
  307. .time-line {
  308. margin-top: 28rpx;
  309. .u-node {
  310. width: 18rpx;
  311. height: 18rpx;
  312. border-radius: 10px;
  313. background-color: rgba(22,119,255,1);
  314. }
  315. /deep/.u-time-axis {
  316. padding-left: 4rpx;
  317. }
  318. // 照片
  319. .u-order-picture {
  320. .img {
  321. width: 120rpx;
  322. height: 120rpx;
  323. margin-right: 16rpx;
  324. }
  325. }
  326. .u-order-title {
  327. color: rgba(51, 51, 51, 1);
  328. font-size: 32rpx;
  329. .name {
  330. color: #1677FF;
  331. margin: 0 4rpx;
  332. font-weight: bold;
  333. }
  334. }
  335. .u-order-desc {
  336. color: rgba(51, 51, 51, 1);
  337. font-size: 28rpx;
  338. margin: 16rpx 0;
  339. }
  340. .u-order-time {
  341. color: rgba(119, 119, 119, 1);
  342. font-size: 24rpx;
  343. margin-top: 8rpx;
  344. }
  345. /deep/.u-dot {
  346. background: #cdcdcd !important;
  347. width: 18rpx;
  348. height: 18rpx;
  349. border-radius: 10px;
  350. }
  351. /deep/.u-time-axis-item::before {
  352. border-left: 1px solid #cdcdcd !important;
  353. }
  354. /deep/.u-time-axis-item {
  355. margin-bottom: 40rpx;
  356. }
  357. }
  358. }
  359. // 底部
  360. .bottom {
  361. display: flex;
  362. justify-content: space-between;
  363. position: fixed;
  364. bottom: 0;
  365. left: 0;
  366. right: 0;
  367. background-color: #fff;
  368. padding: 20rpx 32rpx;
  369. .back {
  370. width: 328rpx;
  371. line-height: 80rpx;
  372. border-radius: 4px;
  373. background-color: rgba(222, 225, 228, 1);
  374. color: rgba(51, 51, 51, 1);
  375. font-size: 32rpx
  376. }
  377. .confirm {
  378. width: 328rpx;
  379. line-height: 80rpx;
  380. border-radius: 4px;
  381. background-color: rgba(22, 119, 255, 1);
  382. color: rgba(255, 255, 255, 1);
  383. font-size: 32rpx
  384. }
  385. }
  386. // 填写处理结果
  387. .result-content {
  388. padding: 32rpx;
  389. .textarea {
  390. margin-top: 32rpx;
  391. uni-textarea {
  392. width: 100%;
  393. height: 160rpx;
  394. background-color: rgba(241, 242, 245, 1);
  395. text-indent: 28rpx;
  396. padding: 8rpx 0;
  397. border-radius: 8px;
  398. }
  399. }
  400. // 上传照片
  401. .upload {
  402. margin-top: 24rpx;
  403. .title {
  404. color: rgba(16, 16, 16, 1);
  405. font-size: 32rpx;
  406. }
  407. .upload-picture {
  408. margin-top: 16rpx;
  409. }
  410. }
  411. // 按钮
  412. .btn-box {
  413. display: flex;
  414. justify-content: space-between;
  415. background-color: #fff;
  416. margin-top: 68rpx;
  417. .cancel {
  418. width: 328rpx;
  419. line-height: 80rpx;
  420. border-radius: 4px;
  421. background-color: rgba(222, 225, 228, 1);
  422. color: rgba(51, 51, 51, 1);
  423. font-size: 32rpx
  424. }
  425. .submit {
  426. width: 328rpx;
  427. line-height: 80rpx;
  428. border-radius: 4px;
  429. background-color: rgba(22, 119, 255, 1);
  430. color: rgba(255, 255, 255, 1);
  431. font-size: 32rpx
  432. }
  433. }
  434. }
  435. </style>