fshxx.vue 5.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194
  1. <template>
  2. <view>
  3. <view class="time" >
  4. <!-- <view class="time_t" @click="getLook(lidx)" :class="lite.check?'act':''">
  5. <view>{{lite.ayear}}年<text>{{lite.amonth}}月</text></view>
  6. <image :src="timeup" class="timeup"></image>
  7. </view> -->
  8. <view v-if="datalist&&datalist.length">
  9. <view class="timebox" v-for="(ite,idx) in datalist" :key="idx">
  10. <view class="list">
  11. <image :src="stepa" class="timel"></image>
  12. <view class="listr">
  13. <view class="listrt">
  14. {{kaType(ite.auditSchedule,shjdlist)}}
  15. </view>
  16. <view class="listrx flext">
  17. <view class="ltit">审核状态:</view>
  18. <view class="ltxt">{{ite.auditType=='3'?'未通过':'通过'}}</view>
  19. </view>
  20. <view class="listrx flext">
  21. <view class="ltit">审核意见:</view>
  22. <view class="ltxt">{{ite.auditView}}</view>
  23. </view>
  24. <view class="listrx flext " v-if="ite.imageUrl&&ite.imageUrl.length">
  25. <view class="ltit">图片信息:</view>
  26. <view class="ltxt">
  27. <view class="limgs">
  28. <block v-for="(pit,pid) in ite.imageUrl" :key="pid">
  29. <image :src="baseUrl+pit" @click.stop="getPreimg(ite.imageUrl,pid)"></image>
  30. </block>
  31. </view>
  32. </view>
  33. </view>
  34. <view class="listrx flext" v-if="ite.fjUrl&&ite.fjUrl.length">
  35. <view class="ltit">附件信息:</view>
  36. <view class="ltxt">
  37. <view class="fjlists" v-for="(fite,fidx) in ite.fjUrl" :key='fidx'>
  38. <view class="flext" @click="getDown(fite.url)">
  39. <view class="imgl"><image :src="filico" ></image></view>
  40. <view class="tit">{{fite.name}}</view>
  41. </view>
  42. </view>
  43. </view>
  44. </view>
  45. <!-- <view class="limg flexc mt15">
  46. <view class="limgs flex1 flexc" >
  47. <block v-for="(pit,pid) in ite.imageUrl" :key="pid">
  48. <image :src="baseUrl+pit" @click.stop="getPreimg(ite.imageUrl,pid)"></image>
  49. </block>
  50. <image :src="upimg" @click.stop="getPreimg(ite.urls,pid)"></image>
  51. </view>
  52. <block v-if="ite.urls.length>3">
  53. <view class="tit" @click="getPreimg(ite.urls,3)">查看更多</view>
  54. <image :src="morimg" class="rimg"></image>
  55. </block>
  56. </view> -->
  57. </view>
  58. </view>
  59. </view>
  60. </view>
  61. <block v-else>
  62. <no-data notxt='暂无审核信息'></no-data>
  63. </block>
  64. </view>
  65. </view>
  66. </template>
  67. <script>
  68. import { checkPermi, checkRole } from "@/utils/permission"; // 权限判断函数
  69. import { selectValue } from '@/utils/common.js';
  70. import noData from "@/components/nodata/nodata.vue"
  71. import config from '@/config'
  72. const baseUrl = config.baseUrl
  73. export default {
  74. props:{
  75. shjdlist: {
  76. type: Array,
  77. default () {
  78. return []
  79. }
  80. },
  81. datalist:{
  82. type: Array,
  83. default () {
  84. return []
  85. }
  86. },
  87. },
  88. components:{
  89. noData
  90. },
  91. data(){
  92. return{
  93. stepa:require('@/work/static/images/busin/stepa.png'),
  94. stepb:require('@/work/static/images/busin/stepb.png'),
  95. stepc:require('@/work/static/images/busin/stepc.png'),
  96. baseUrl:'',
  97. filico:require('@/work/static/images/filico.png'),
  98. }
  99. },
  100. mounted: function() {
  101. this.baseUrl=baseUrl;
  102. },
  103. methods:{
  104. checkPermi, checkRole,
  105. kaType(ite,list){
  106. return selectValue(list, ite);
  107. },
  108. getPreimg(arr,idx){
  109. var newArr=[];
  110. arr.forEach(ite=>{
  111. var ds=this.baseUrl+ite
  112. newArr.push(ds)
  113. })
  114. uni.previewImage({
  115. urls: newArr,
  116. current:idx,
  117. success: function(data) {
  118. },
  119. fail: function(err) {
  120. }
  121. });
  122. },
  123. getZheFn(idx){
  124. this.zheList[idx].zheflag=!this.zheList[idx].zheflag
  125. },
  126. getEdit(url){
  127. this.$emit('getEdit',url)
  128. },
  129. getDown(url){
  130. this.$emit('getDown',url)
  131. },
  132. getPreview(url){
  133. this.$emit('getPreview',url)
  134. },
  135. },
  136. }
  137. </script>
  138. <style lang="scss" scoped>
  139. .time{padding: 0 16rpx;
  140. .time_t{padding: 24rpx 0;display: flex;align-items: center;
  141. view{font-weight: bold;color: #4775EA;font-size: 32rpx;}
  142. text{margin-left:12rpx;}
  143. .timeup{width: 26rpx;height: 24rpx;margin-left: 30rpx;transition: all 0.3s; }
  144. &.act .timeup{transform: rotate(-180deg);}
  145. }
  146. // .timebox{display: none;}
  147. .list{display: flex;align-items: flex-start;padding-left: 10rpx;padding-bottom: 36rpx;position: relative;
  148. &::before{width: 2rpx;content: "";position: absolute;top: 44rpx;bottom: 14rpx;left: 26rpx;
  149. background: #DADADA;}
  150. .timel{width: 32rpx;height: 32rpx;margin-right: 20rpx;position: relative;flex: 0 0 auto;}
  151. .listr{flex:1;
  152. .listrt{line-height: 32rpx;font-size: 30rpx;font-weight: bold;color: #161616;margin-bottom: 16rpx;display: flex;align-items: center;
  153. .type{height: 30rpx;border-radius: 10rpx;margin-left: 20rpx;font-size: 24rpx;color: #FFFFFF;padding:2rpx 8rpx;
  154. &.bg1{background: #AABCE9;}
  155. &.bg2{background: #8CD5B3;}
  156. }
  157. }
  158. .listrx{padding: 6rpx 0;
  159. .ltit{flex:0 0 auto;font-size: 28rpx;color: #AAAAAA;}
  160. .ltxt{font-weight: 500;color: #161616;flex:1;font-size: 28rpx;}
  161. }
  162. // 图片
  163. .limgs{display: flex;flex: 1;flex-wrap: wrap;
  164. image{width: 160rpx;height: 110rpx;margin-right: 20rpx;}
  165. }
  166. // .limg{
  167. // .tit{font-size: 28rpx;font-weight: 500;color: #AAAAAA;margin-right: 12rpx;flex:0 0 auto;width: 60rpx;}
  168. // .rimg{width: 14rpx;height: 24rpx; flex:0 0 auto;}
  169. // }
  170. }
  171. }
  172. &.act .timebox{display: block;}
  173. // 附件
  174. .fjlists {display: flex;align-items: flex-start;justify-content: space-between;margin-bottom: 20rpx;
  175. &:last-child{margin-bottom: 0;}
  176. .imgl{width: 40rpx;height: 40rpx;display: flex;align-items: center;flex: 0 0 auto;
  177. image{width: 26rpx;height: 24rpx;}
  178. }
  179. .tit{font-size: 26rpx;color: #222327;font-weight: 500;margin-top: 4rpx;}
  180. .delimg{width: 40rpx;height:40rpx;margin-left: 16rpx;display: flex;align-items: center;justify-content: center;flex: 0 0 auto;
  181. image{width: 24rpx;height: 24rpx;}
  182. }
  183. .txta{color: #28C529;font-weight: 500;line-height: 40rpx;flex: 0 0 auto;margin-left: 18rpx;padding: 0 6rpx;}
  184. }
  185. }
  186. </style>