patroldetail.vue 4.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158
  1. <template>
  2. <view class="irecord">
  3. <view class="patlist">
  4. <view class="pattop flexc">
  5. <image :src="home" class="imgs"></image>
  6. <view class="tit">幸福小区1栋2单元电梯间</view>
  7. <view class="flex1"></view>
  8. <view class="txt cd" v-if="datainfo.type==1">未巡更</view>
  9. <view class="txt cc" v-if="datainfo.type==2">已巡更</view>
  10. </view>
  11. <view class="patlistr">
  12. <view class="clist"><view class="tit">巡检类型</view>:设备维修</view>
  13. <view class="clist"><view class="tit">巡检时间</view>:2024-11-27 10:00</view>
  14. <view class="clist"><view class="tit">巡检路线</view>:幸福小区1号楼1-2单元</view>
  15. <view class="clist"><view class="tit">巡检人</view>:刘兵琦</view>
  16. </view>
  17. </view>
  18. <view class="chtop flexc">
  19. <image :src="line"></image>
  20. <view>巡更详情</view>
  21. <view class="flex1"></view>
  22. </view>
  23. <view class="patlist">
  24. <view class="patlistr" style="padding-bottom: 14rpx;">
  25. <view class="clist"><view class="tit">巡检人</view>:设备维修</view>
  26. <view class="clist"><view class="tit">手机号码</view>:2024-11-27 10:00</view>
  27. <view class="clist"><view class="tit">巡检时间</view>:幸福小区1号楼1-2单元</view>
  28. <view class="clist"><view class="tit">巡检结果</view>:刘兵琦</view>
  29. <view class="clist"><view class="tit">巡检详情</view>:
  30. <view class="flexdc">
  31. <view>1.设备正常,无任何异动和意向;</view>
  32. <view>2.电力系统正常,无故障提示;</view>
  33. <view>3.设备使用正常,无异常提示;</view>
  34. </view>
  35. </view>
  36. <view class="clist mt6"><view class="tit">照片</view>:
  37. <!-- 图片 -->
  38. <view class="imgs">
  39. <image :src="home" class="img" @click="getPreview"></image>
  40. <image :src="home" class="img" @click="getPreview"></image>
  41. <image :src="home" class="img" @click="getPreview"></image>
  42. </view>
  43. </view>
  44. </view>
  45. </view>
  46. <loading></loading>
  47. </view>
  48. </template>
  49. <script>
  50. import config from '@/config'
  51. import { checkPermi, checkRole } from "@/utils/permission"; // 权限判断函数
  52. export default{
  53. components:{},
  54. data(){
  55. return{
  56. line:require('@/work/static/car/line.png'),
  57. home:require("@/work/static/service/home.png"),
  58. baseUrl:config.baseUrl,
  59. datainfo:{
  60. type:1,heiflag:true
  61. },
  62. }
  63. },
  64. onLoad: function() {
  65. },
  66. methods:{
  67. checkPermi, checkRole,
  68. getPreview(idx,arr) {
  69. var newArr=[];
  70. arr.forEach(ite=>{
  71. var ds=this.baseUrl+ite
  72. newArr.push(ds)
  73. })
  74. uni.previewImage({
  75. urls: newArr,
  76. current:idx,
  77. success: function(data) {},
  78. fail: function(err) {}
  79. });
  80. },
  81. getDelFn(){
  82. var that=this;
  83. uni.showModal({
  84. title: '解除黑名单',
  85. content: "是否确认解除",
  86. cancelText: '取消',
  87. confirmText: '确认',
  88. success: function(res) {
  89. if (res.confirm) {
  90. // that.filelist.splice(idx,1)
  91. } else if (res.cancel) {
  92. }
  93. }
  94. });
  95. },
  96. getOcrIdCard(obj){
  97. var params={
  98. image:obj.url,
  99. idCardSide:obj.type
  100. }
  101. getOcrIdCard(params).then(res=>{
  102. if(res.code==200){
  103. var datainfo=res.data;
  104. if(obj.type=='front'){
  105. this.datainfo.realName=datainfo.realName;
  106. this.datainfo.idCard=datainfo.idCard;
  107. this.datainfo.address=datainfo.address;
  108. }else{
  109. this.datainfo.expirationDate=datainfo.expirationDate
  110. }
  111. }
  112. })
  113. }
  114. }
  115. }
  116. </script>
  117. <style>
  118. page{
  119. background:#F3F3F0;padding-top:24rpx;
  120. }
  121. </style>
  122. <style lang="scss" scoped>
  123. .bgef{background: #EFF4FF;}
  124. .irecord{flex: 1;background: #ffffff;min-height: calc(100vh - 24rpx);padding-bottom: 24rpx;box-sizing: border-box;
  125. .patlist{border-radius: 20rpx;padding: 0 18rpx 4rpx;
  126. .pattop{padding:32rpx 30rpx;margin-bottom: 2rpx;
  127. .imgs{width: 28rpx;height: 28rpx;margin-right: 12rpx;}
  128. .tit{font-size: 30rpx;color: #272727;font-weight: bold;margin-right: 14rpx;}
  129. .txt{font-weight: 500;font-size:24rpx;
  130. &.ca{color: #3565ED;}
  131. &.cb{color: #FE5A0E;}
  132. &.cc{color: #28C529;}
  133. &.cd{color: #FF6969;}
  134. }
  135. }
  136. .patlistr{background: #EFF4FF;border-radius: 20rpx;padding: 24rpx 0 24rpx 40rpx;
  137. .clist{font-weight: 500;font-size: 26rpx;color: #272727;display: flex;line-height: 52rpx;
  138. .tit{font-size: 26rpx;flex: 0 0 auto;min-width: 108rpx;text-align-last: justify;font-weight: bold;}
  139. }
  140. }
  141. }
  142. .chtop{padding-top: 36rpx;margin-bottom: 32rpx;padding-right: 48rpx;
  143. image{width: 14rpx;height: 48rpx;margin-right: 20rpx;}
  144. view{font-weight: bold;font-size: 32rpx;color: #272727;}
  145. .num{font-weight: 500;font-size: 24rpx;color: #AAAAAA;}
  146. }
  147. }
  148. .imgs{display: flex;align-items: center;flex-wrap: wrap;
  149. .img{width: 160rpx;height:160rpx;border-radius: 20rpx;margin: 0 26rpx 26rpx 0;position: relative;
  150. &:nth-of-type(3n){margin-right: 0;}
  151. }
  152. }
  153. </style>