repairDetails.vue 4.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215
  1. <template>
  2. <view class="container">
  3. <view class="title">工单信息</view>
  4. <view class="box">
  5. <view class="box_key">工单编号:</view>
  6. <view class="box_value">656262219626262</view>
  7. </view>
  8. <view class="box_time">
  9. <view class="time_msg">
  10. 报修时间:
  11. <text>2023.07.05 09:25:26</text>
  12. </view>
  13. <!-- v-if="item.type === 1" -->
  14. <view class="time_type">待接单</view>
  15. <!-- <view class="time_type color_type" v-if="item.type === 2">维修中</view>
  16. <view class="time_type" v-if="item.type === 3">待确认</view>
  17. <view class="time_type color_type2" v-if="item.type === 4">已完成</view>
  18. <view class="time_type" v-if="item.type === 5">已取消</view> -->
  19. </view>
  20. <view class="box">
  21. <view class="box_key">报修姓名:</view>
  22. <view class="box_value">张三</view>
  23. </view>
  24. <view class="box">
  25. <view class="box_key">报修电话:</view>
  26. <view class="box_value phone">
  27. 13659585689
  28. <img src="../../static/images/repairsImg/phone.png" />
  29. </view>
  30. </view>
  31. <view class="box">
  32. <view class="box_key">报修区域:</view>
  33. <view class="box_value">行政楼</view>
  34. </view>
  35. <view class="box">
  36. <view class="box_key">详细地址:</view>
  37. <view class="box_value">3楼309</view>
  38. </view>
  39. <view class="box">
  40. <view class="box_key">报修物品:</view>
  41. <view class="box_value">电脑</view>
  42. </view>
  43. <view class="box">
  44. <view class="box_key">故障描述:</view>
  45. <view class="box_value">水龙头坏了</view>
  46. </view>
  47. <view class="box_img">
  48. <view class="img_key">上传图片:</view>
  49. <view class="img_value"></view>
  50. </view>
  51. <view class="title top">报修跟踪</view>
  52. <!-- 步骤条区域 -->
  53. <!-- activeIcon="checkmark-circle-fill" -->
  54. <uv-steps activeColor="#6FB6B8" direction="column" current="3">
  55. <uv-steps-item :customStyle="customStyle" v-for="item in stepsList" :key="item.id">
  56. <template v-slot:title>
  57. <view class="steps_title" :class="{ active: item.type }">{{ item.title }}</view>
  58. </template>
  59. <template v-slot:desc>
  60. <view class="steps_desc" v-for="(element, index) in item.desc" :key="index">{{ element }}</view>
  61. </template>
  62. </uv-steps-item>
  63. </uv-steps>
  64. </view>
  65. </template>
  66. <script>
  67. export default {
  68. data() {
  69. return {
  70. customStyle: {
  71. marginBottom: '5px'
  72. },
  73. stepsList: [
  74. {
  75. id: 1,
  76. title: '提交订单',
  77. type: true,
  78. desc: ['2023-07-05 08:25:25']
  79. },
  80. {
  81. id: 2,
  82. title: '已接单',
  83. type: true,
  84. desc: ['2023-07-05 08:25:25']
  85. },
  86. {
  87. id: 3,
  88. title: '待确认',
  89. type: true,
  90. desc: ['2023-07-05 08:25:25', '张发财转后勤:太贵了', '系统管理员改价:耗材为螺丝刀,价格50元', '系统管理员改价:耗材为螺丝刀,价格50元']
  91. },
  92. {
  93. id: 4,
  94. title: '待确认',
  95. type: false,
  96. desc: ['2023-07-05 08:25:25']
  97. },
  98. {
  99. id: 5,
  100. title: '已完成',
  101. type: false,
  102. desc: ['2023-07-05 08:25:25']
  103. }
  104. ]
  105. }
  106. }
  107. }
  108. </script>
  109. <style lang="scss" scoped>
  110. .container {
  111. padding: 0 30rpx 50rpx;
  112. .title {
  113. height: 90rpx;
  114. line-height: 90rpx;
  115. font-size: 32rpx;
  116. font-weight: bold;
  117. }
  118. .top {
  119. margin-top: 20rpx;
  120. }
  121. .box {
  122. display: flex;
  123. height: 60rpx;
  124. font-size: 28rpx;
  125. .box_key {
  126. color: #808080;
  127. }
  128. .box_value {
  129. display: flex;
  130. img {
  131. margin-top: 5rpx;
  132. margin-left: 10rpx;
  133. width: 28rpx;
  134. height: 28rpx;
  135. }
  136. }
  137. .phone {
  138. color: #6fb6b8;
  139. }
  140. }
  141. .box_time {
  142. display: flex;
  143. height: 60rpx;
  144. .time_msg {
  145. font-size: 28rpx;
  146. color: #808080;
  147. text {
  148. color: #000000;
  149. }
  150. }
  151. .time_type {
  152. margin-left: 123rpx;
  153. margin-top: -5rpx;
  154. font-size: 32rpx;
  155. color: #ff5733;
  156. }
  157. .color_type {
  158. color: #1e7dfb;
  159. }
  160. .color_type2 {
  161. color: #6fb6b8;
  162. }
  163. }
  164. .box_img {
  165. display: flex;
  166. align-items: center;
  167. height: 120rpx;
  168. color: #808080;
  169. font-size: 28rpx;
  170. .img_key {
  171. }
  172. .img_value {
  173. width: 120rpx;
  174. height: 120rpx;
  175. border-radius: 14rpx;
  176. background-color: salmon;
  177. }
  178. }
  179. .steps_title {
  180. color: #969799;
  181. font-size: 28rpx;
  182. }
  183. .active {
  184. color: #6fb6b8;
  185. }
  186. .steps_desc {
  187. line-height: 45rpx;
  188. font-size: 24rpx;
  189. }
  190. }
  191. </style>