faultReport.vue 3.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198
  1. <template>
  2. <view>
  3. <u-navbar title="故障上报" title-color="#101010"></u-navbar>
  4. <view class="main">
  5. <!-- 故障设备 -->
  6. <view class="fault-equipment">
  7. <view class="title">
  8. <text class="asterisk">*</text>故障设备
  9. </view>
  10. <view class="value">
  11. <view class="placeholder">
  12. 请选择设备
  13. </view>
  14. <view class="icon">
  15. <u-icon name="arrow-right" color="#acacac"></u-icon>
  16. </view>
  17. </view>
  18. </view>
  19. <!-- 故障类型 -->
  20. <view class="fault-type">
  21. <view class="title">
  22. <text class="asterisk">*</text>请选择故障类型:
  23. </view>
  24. <view class="type">
  25. <view class="type-item item-checked">
  26. 温度异常
  27. </view>
  28. <view class="type-item ">
  29. 电压异常
  30. </view>
  31. <view class="type-item ">
  32. 设备离线
  33. </view>
  34. <view class="type-item ">
  35. 其他问题
  36. </view>
  37. </view>
  38. </view>
  39. </view>
  40. <!-- 照片上传 -->
  41. <view class="picture-upload">
  42. <view class="title">
  43. 现场照片/视频(最多4张)
  44. </view>
  45. <view class="upload">
  46. <u-upload :action="action" :file-list="fileList" max-count="4" width="144" height="144"></u-upload>
  47. </view>
  48. </view>
  49. <!-- 故障描述 -->
  50. <view class="fault-description">
  51. <view class="title">
  52. 故障描述
  53. </view>
  54. <view class="textarea">
  55. <textarea placeholder="请详细描述故障现象,以便我们更准确快速的为您解决问题
  56. "></textarea>
  57. </view>
  58. </view>
  59. <!-- 底部 -->
  60. <view class="bottom">
  61. <button class="submit">提交工单</button>
  62. </view>
  63. </view>
  64. </template>
  65. <script>
  66. export default {
  67. data() {
  68. return {
  69. }
  70. },
  71. methods: {
  72. }
  73. }
  74. </script>
  75. <style lang="scss" scoped>
  76. .main {
  77. background-color: #fff;
  78. // 故障设备
  79. .fault-equipment {
  80. display: flex;
  81. align-items: center;
  82. padding: 24rpx 32rpx;
  83. border-bottom: 1px solid rgba(221, 221, 221, 1);
  84. .title {
  85. font-size: 32rpx;
  86. color: #777777;
  87. width: 144rpx;
  88. .asterisk {
  89. color: rgba(238, 49, 56, 1);
  90. }
  91. }
  92. .value {
  93. display: flex;
  94. align-items: center;
  95. justify-content: space-between;
  96. margin-left: 64rpx;
  97. flex: 1;
  98. .placeholder {
  99. color: rgba(172, 172, 172, 1);
  100. font-size: 32rpx;
  101. }
  102. }
  103. }
  104. // 故障类型
  105. .fault-type {
  106. .title {
  107. font-size: 32rpx;
  108. color: #111111;
  109. padding: 32rpx 32rpx 0;
  110. font-weight: bold;
  111. .asterisk {
  112. color: rgba(238, 49, 56, 1);
  113. }
  114. }
  115. .type {
  116. display: flex;
  117. justify-content: space-between;
  118. padding: 24rpx 32rpx;
  119. .type-item {
  120. border: 1px solid rgba(216, 223, 232, 1);
  121. color: rgba(16, 16, 16, 1);
  122. width: 160rpx;
  123. line-height: 66rpx;
  124. text-align: center;
  125. border-radius: 4px;
  126. }
  127. .item-checked {
  128. background-color: rgba(22, 119, 255, 1);
  129. color: rgba(255, 255, 255, 1);
  130. }
  131. }
  132. }
  133. }
  134. // 照片上传 故障描述
  135. .picture-upload,
  136. .fault-description {
  137. padding: 32rpx 32rpx;
  138. background-color: #fff;
  139. margin-top: 24rpx;
  140. .title {
  141. color: rgb(16, 16, 16);
  142. font-size: 32rpx;
  143. margin-bottom: 24rpx;
  144. font-weight: bold;
  145. }
  146. .textarea {
  147. /deep/.uni-textarea-placeholder {
  148. color: #b2b2b2;
  149. }
  150. /deep/uni-textarea {
  151. width: 660rpx;
  152. height: 180rpx;
  153. }
  154. }
  155. }
  156. // 底部
  157. .bottom{
  158. padding: 20rpx 32rpx;
  159. background-color: #fff;
  160. position: fixed;
  161. left: 0;
  162. right: 0;
  163. bottom: 0;
  164. .submit{
  165. border-radius: 4px;
  166. background-color: rgba(22,119,255,1);
  167. color: rgba(255,255,255,1);
  168. font-size: 32rpx;
  169. line-height: 80rpx;
  170. }
  171. }
  172. </style>