index.vue 7.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336
  1. <template>
  2. <view class="page" :style="{'min-height':h+'px', 'padding-top':mt+'px'}">
  3. <cus-header title='运维服务' bgColor="transparent" :showback="false"></cus-header>
  4. <image class="topbg" :src="imgBase+'operation/top_bg.png'" mode="widthFix"></image>
  5. <div class="order">
  6. <div class="pre">
  7. <div class="top">
  8. <div class="left">
  9. <p>本月巡检次数</p>
  10. <p>{{5}}/{{40}}</p>
  11. </div>
  12. <div class="right">
  13. <p>异常:<span>{{0}}</span></p>
  14. <p>正常:<span>{{40}}</span></p>
  15. </div>
  16. </div>
  17. <div class="bottom">
  18. <div class="jd" :style="{'width':10+'%'}"></div>
  19. </div>
  20. </div>
  21. <div class="pre">
  22. <div class="top">
  23. <div class="left">
  24. <p>故障工单</p>
  25. <p>{{14}}/{{28}}</p>
  26. </div>
  27. <div class="right">
  28. <p>已解决:<span>{{5}}</span></p>
  29. <p>未解决:<span>{{40}}</span></p>
  30. </div>
  31. </div>
  32. <div class="bottom">
  33. <div class="jd green" :style="{'width':50+'%'}"></div>
  34. </div>
  35. </div>
  36. </div>
  37. <div class="menu">
  38. <div class="pre" @tap="turnPage('/pagesOperation/record/add')">
  39. <image :src="imgBase+'operation/menu_xjtd.png'" mode="widthFix"></image>
  40. <p>巡检提单</p>
  41. </div>
  42. <div class="pre" @tap="turnPage('/pagesOperation/record/index')">
  43. <image :src="imgBase+'operation/menu_xjjl.png'" mode="widthFix"></image>
  44. <p>巡检记录</p>
  45. </div>
  46. <div class="pre" @tap="turnPage('/pagesOperation/repair/index')">
  47. <image :src="imgBase+'operation/menu_gzbx.png'" mode="widthFix"></image>
  48. <p>故障报修</p>
  49. </div>
  50. <div class="pre" @tap="turnPage('/pagesOperation/workorder/index')">
  51. <image :src="imgBase+'operation/menu_gzgd.png'" mode="widthFix"></image>
  52. <p>故障工单</p>
  53. </div>
  54. </div>
  55. <div class="list">
  56. <div class="title">
  57. <div class="left">故障工单</div>
  58. <div class="right" @tap="turnPage('/pagesOperation/workorder/index')">
  59. <span>更多</span>
  60. <image :src="imgBase+'operation/arrow_right.png'" mode="widthFix"></image>
  61. </div>
  62. </div>
  63. <div class="boxs">
  64. <div class="item" v-for="(item,index) in [1,2]" :key="index">
  65. <div class="left">
  66. <div class="name">长鑫科技集团股份有限公司</div>
  67. <p>故障类型<span>{{'类型1'}}</span></p>
  68. <p>故障描述<span>{{'巡检任务'}}</span></p>
  69. <p>故障时间<span>{{'2025-03-28 13:00'}}</span></p>
  70. </div>
  71. <div class="right">
  72. <div class="top" :class="{'djj':index===0,'yjj':index===1}">{{index===0?'待解决':'已解决'}}</div>
  73. <div class="bottom" @tap="toDetail(item)">查看</div>
  74. </div>
  75. </div>
  76. </div>
  77. </div>
  78. </view>
  79. </template>
  80. <script>
  81. export default {
  82. data(){
  83. return {
  84. }
  85. },
  86. methods:{
  87. turnPage(url){
  88. if(!url) return
  89. uni.navigateTo({ url })
  90. },
  91. toDetail(item){
  92. uni.navigateTo({
  93. url:'/pagesOperation/workorder/detail?id='+item?.id
  94. })
  95. }
  96. }
  97. }
  98. </script>
  99. <style scoped lang="less">
  100. .page{
  101. padding: 0 24rpx 40rpx;
  102. background: #F5F8FA;
  103. box-sizing: border-box;
  104. .topbg{
  105. width: 100%;
  106. position: fixed;
  107. top: 0;
  108. left: 0;
  109. z-index: 0;
  110. }
  111. .order{
  112. display: flex;
  113. justify-content: space-between;
  114. position: relative;
  115. margin-top: 218rpx;
  116. .pre{
  117. width: calc(50% - 9rpx);
  118. background: rgba(255,255,255,0.7);
  119. border-radius: 12rpx;
  120. border: 2rpx solid #FFFFFF;
  121. padding: 30rpx 20rpx;
  122. box-sizing: border-box;
  123. .top{
  124. display: flex;
  125. align-items: center;
  126. justify-content: space-between;
  127. .left{
  128. p{
  129. font-family: PingFangSC, PingFang SC;
  130. font-weight: 400;
  131. font-size: 24rpx;
  132. color: #657588;
  133. line-height: 24rpx;
  134. &:last-child{
  135. font-family: DINAlternate, DINAlternate;
  136. font-weight: bold;
  137. font-size: 36rpx;
  138. color: #333333;
  139. line-height: 36rpx;
  140. margin-top: 20rpx;
  141. }
  142. }
  143. }
  144. .right{
  145. p{
  146. font-family: PingFangSC, PingFang SC;
  147. font-weight: 400;
  148. font-size: 20rpx;
  149. color: #657588;
  150. position: relative;
  151. padding-left: 16rpx;
  152. &::before{
  153. content: '';
  154. width: 10rpx;
  155. height: 10rpx;
  156. background: #FEA400;
  157. border-radius: 50%;
  158. position: absolute;
  159. left: 0;
  160. top: 50%;
  161. margin-top: -5rpx;
  162. }
  163. &:last-child{
  164. margin-top: 20rpx;
  165. &::before{
  166. background: #DDE0E6;
  167. }
  168. }
  169. span{
  170. color: #1D2129;
  171. }
  172. }
  173. }
  174. }
  175. .bottom{
  176. width: 100%;
  177. height: 6rpx;
  178. background: #DFE5EE;
  179. border-radius: 3rpx;
  180. margin-top: 24rpx;
  181. position: relative;
  182. .jd{
  183. height: 6rpx;
  184. background: #FEA400;
  185. border-radius: 3rpx;
  186. position: absolute;
  187. left: 0;
  188. top: 0;
  189. &.green{
  190. background: #31D1D6;
  191. }
  192. }
  193. }
  194. }
  195. }
  196. .menu{
  197. padding: 38rpx 0;
  198. background: #FFFFFF;
  199. border-radius: 12rpx;
  200. margin-top: 20rpx;
  201. display: flex;
  202. position: relative;
  203. .pre{
  204. width: 25%;
  205. display: flex;
  206. flex-direction: column;
  207. align-items: center;
  208. image{
  209. width: 64rpx;
  210. height: 64rpx;
  211. }
  212. p{
  213. font-family: PingFangSC, PingFang SC;
  214. font-weight: 400;
  215. font-size: 24rpx;
  216. color: #4E5969;
  217. line-height: 30rpx;
  218. text-align: center;
  219. margin-top: 18rpx;
  220. }
  221. }
  222. }
  223. .list{
  224. margin-top: 49rpx;
  225. .title{
  226. display: flex;
  227. align-items: center;
  228. justify-content: space-between;
  229. .left{
  230. font-family: PingFang-SC, PingFang-SC;
  231. font-weight: bold;
  232. font-size: 36rpx;
  233. color: #1D2129;
  234. line-height: 50rpx;
  235. }
  236. .right{
  237. display: flex;
  238. align-items: center;
  239. span{
  240. font-family: PingFangSC, PingFang SC;
  241. font-weight: 400;
  242. font-size: 26rpx;
  243. color: #86909C;
  244. line-height: 26rpx;
  245. }
  246. image{
  247. width: 24rpx;
  248. height: 24rpx;
  249. margin-left: 13rpx;
  250. }
  251. }
  252. }
  253. .boxs{
  254. margin-top: 36rpx;
  255. .item{
  256. background: #FFFFFF;
  257. box-shadow: inset 0rpx -1rpx 0rpx 0rpx #ECEEF5;
  258. padding: 36rpx 27rpx;
  259. display: flex;
  260. .left{
  261. width: calc(100% - 115rpx);
  262. padding-right: 20rpx;
  263. box-sizing: border-box;
  264. .name{
  265. font-family: PingFang-SC, PingFang-SC;
  266. font-weight: bold;
  267. font-size: 30rpx;
  268. color: #1D2129;
  269. line-height: 42rpx;
  270. text-align: left;
  271. white-space: nowrap;
  272. overflow: hidden;
  273. text-overflow: ellipsis;
  274. }
  275. p{
  276. margin-top: 36rpx;
  277. font-family: PingFangSC, PingFang SC;
  278. font-weight: 400;
  279. font-size: 26rpx;
  280. color: #86909C;
  281. line-height: 26rpx;
  282. span{
  283. color: #1D2129;
  284. margin-left: 64rpx;
  285. }
  286. }
  287. }
  288. .right{
  289. width: 115rpx;
  290. display: flex;
  291. flex-direction: column;
  292. justify-content: space-between;
  293. .top{
  294. width: 104rpx;
  295. height: 48rpx;
  296. border-radius: 6rpx;
  297. font-family: PingFangSC, PingFang SC;
  298. font-weight: 400;
  299. font-size: 26rpx;
  300. line-height: 48rpx;
  301. text-align: center;
  302. &.djj{
  303. color: #FEA400;
  304. background: rgba(254,164,0,0.08);
  305. }
  306. &.yjj{
  307. color: #05C17F;
  308. background: rgba(20,204,140,0.08);
  309. }
  310. }
  311. .bottom{
  312. width: 115rpx;
  313. height: 64rpx;
  314. background: #2E69EB;
  315. border-radius: 16rpx;
  316. font-family: PingFang-SC, PingFang-SC;
  317. font-weight: bold;
  318. font-size: 28rpx;
  319. color: #FFFFFF;
  320. line-height: 64rpx;
  321. text-align: center;
  322. }
  323. }
  324. }
  325. }
  326. }
  327. }
  328. </style>