ewjcj.vue 5.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166
  1. <template>
  2. <view>
  3. <view class="boxt" v-for="(ite,idx) in wjcjlist" :key="idx">
  4. <view class="txt">
  5. <view class="flex1 flexc">{{ite.label}}
  6. <view class="editf" @click="getfjEdit(ite.val)">
  7. <image :src="editf"></image>
  8. <view>上传</view>
  9. </view>
  10. </view>
  11. <!-- v-if="ite.qflag" -->
  12. <view class="edit" v-if="ite.val=='psyjqpb'||ite.val=='gdhyjy'||ite.val=='wtdbht'">
  13. <image :src="edit"></image>
  14. <view>在线签名</view>
  15. </view>
  16. <!-- <view class="flex1"></view>
  17. <text class="txta" @click="getDown(ite.val)">预览</text> -->
  18. </view>
  19. <!-- <text class="txta" @click="getDown(fite.url)">预览</text> -->
  20. <view class="mt18" v-if="fileFj[ite.val]&&fileFj[ite.val].length">
  21. <view class="fjlists" v-for="(fite,fidx) in fileFj[ite.val]" :key='fidx'>
  22. <view class="flext" @click="getDown(fite.url)">
  23. <view class="imgl"><image :src="filico" ></image></view>
  24. <view class="tit">{{fite.name}}</view>
  25. </view>
  26. <view class="delimg flex0" @click.stop="getDelwjFj(fite.fjId)">
  27. <image :src="fdelimg"></image>
  28. </view>
  29. <text class="txta" @click="getDown(fite.url)">预览</text>
  30. </view>
  31. </view>
  32. </view>
  33. <!-- 其他附件 -->
  34. <view class="boxt" >
  35. <view class="txt">
  36. <view class="flex1 flexc">其他附件
  37. </view>
  38. </view>
  39. <!-- <text class="txta" @click="getDown(fite.url)">预览</text> -->
  40. <!-- <view class="delimg flex0" @click.stop="getDelFj(idx)">
  41. <image :src="fdelimg"></image>
  42. </view> -->
  43. <view class="mt18" v-if="datainfo.otherFj&&datainfo.otherFj.length">
  44. <view class="fjlists" v-for="(fite,fidx) in datainfo.otherFj" :key='fidx'>
  45. <view class="flext" @click="getDown(fite.url)">
  46. <view class="imgl"><image :src="filico" ></image></view>
  47. <view class="tit">{{fite.url}}</view>
  48. </view>
  49. </view>
  50. </view>
  51. </view>
  52. </view>
  53. </template>
  54. <script>
  55. import { checkPermi, checkRole } from "@/utils/permission"; // 权限判断函数
  56. import { selectValue } from '@/utils/common.js';
  57. import noData from "@/components/nodata/nodata.vue"
  58. export default {
  59. props:{
  60. datainfo: {
  61. type: Object,
  62. default () {
  63. return {}
  64. }
  65. },
  66. fileFj:{
  67. type: Object,
  68. default () {
  69. return {}
  70. }
  71. },
  72. wjcjlist:{
  73. type: Array,
  74. default () {
  75. return []
  76. }
  77. }
  78. },
  79. components:{
  80. noData
  81. },
  82. data(){
  83. return{
  84. upimg: require('@/work/static/images/up.png'),
  85. fupimg:require('@/work/static/images/fup.png'),
  86. filico:require('@/work/static/images/filico.png'),
  87. edit:require('@/work/static/images/edit.png'),
  88. editf:require('@/work/static/images/editfile.png'),
  89. fdelimg:require('@/work/static/images/del.png'),
  90. gdfilelist:[{name:'123'}],
  91. zheList:[{zheflag:true}],
  92. fileList:[
  93. // {tit:'担保意向函',files:[{url:"",name:'安徽嘉欣医疗用品有限公司0403担保意向函.doc'}]},
  94. // {tit:'材料合规表',files:[]},
  95. // {tit:'尽职调查报告',files:[]},
  96. // {tit:'担保项目合法合规表',files:[]},
  97. // {tit:'评审意见签批表',qflag:true,files:[]},
  98. // {tit:'股东会决议',qflag:true,files:[]},
  99. // {tit:'委托保证合同',qflag:true,files:[]},
  100. // {tit:'其他附件',files:[{url:"",name:'安徽嘉欣医疗用品有限公司0403担保意向函.doc'},{url:"",name:'安徽嘉欣医疗用品有限公司0403担保意向函.doc'}]},
  101. ]
  102. }
  103. },
  104. onLoad: function() {
  105. },
  106. methods:{
  107. checkPermi, checkRole,
  108. kaType(ite){
  109. return selectValue(this.tajdlist, ite);
  110. },
  111. getZheFn(idx){
  112. this.zheList[idx].zheflag=!this.zheList[idx].zheflag
  113. },
  114. getfjEdit(val){
  115. this.$emit('getfjEdit',val)
  116. },
  117. getDown(url){
  118. this.$emit('getDown',url)
  119. },
  120. getPreview(url){
  121. this.$emit('getPreview',url)
  122. },
  123. getDelwjFj(id){
  124. this.$emit('getDelwjFj',id)
  125. },
  126. },
  127. }
  128. </script>
  129. <style lang="scss" scoped>
  130. .boxt{padding:44rpx 36rpx 40rpx;border-top: 2rpx solid #E6E6E6;}
  131. .txt{display: flex;align-items: flex-start;
  132. view{font-weight: bold;font-size: 30rpx;color: #222327;}
  133. text{color: #28C529;font-weight: 500;line-height: 40rpx;flex: 0 0 auto;margin-left: 46rpx;padding: 0 6rpx;}
  134. .upimg{width:40rpx;height: 40rpx;margin-left: 18rpx;display: flex;align-items: center;justify-content: center;
  135. image{width: 30rpx;height: 28rpx;}
  136. }
  137. }
  138. .fjlists {display: flex;align-items: flex-start;justify-content: space-between;margin-bottom: 20rpx;
  139. &:last-child{margin-bottom: 0;}
  140. .imgl{width: 40rpx;height: 40rpx;display: flex;align-items: center;flex: 0 0 auto;
  141. image{width: 26rpx;height: 24rpx;}
  142. }
  143. .tit{font-size: 26rpx;color: #222327;font-weight: 500;margin-top: 4rpx;}
  144. .delimg{width: 40rpx;height:40rpx;margin-left: 16rpx;display: flex;align-items: center;justify-content: center;flex: 0 0 auto;
  145. image{width: 24rpx;height: 24rpx;}
  146. }
  147. .txta{color: #28C529;font-weight: 500;line-height: 40rpx;flex: 0 0 auto;margin-left: 18rpx;padding: 0 6rpx;}
  148. }
  149. .upbox{display: flex;flex-direction: column;align-items: center;padding: 56rpx 0 40rpx;border-top: 2rpx solid #E6E6E6;
  150. image{width: 30rpx;height: 26rpx;margin-bottom: 18rpx;transform: rotate(180deg);}
  151. view{font-weight: 500;font-size: 26rpx;color: #666666;}
  152. }
  153. .editf{flex:0 0 auto;display: flex;align-items: center;margin-left: 24rpx;
  154. view{font-weight: 500;font-size: 26rpx;color: #00A9F0;}
  155. image{width: 22rpx;height: 24rpx;margin-right:8rpx;}
  156. }
  157. .edit{flex:0 0 auto;display: flex;align-items: center;
  158. view{font-weight: 500;font-size: 26rpx;color: #00A9F0;}
  159. image{width: 20rpx;height: 24rpx;margin-right: 2rpx;}
  160. }
  161. </style>