fshxx.vue 6.1 KB

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