ewjcj.vue 6.0 KB

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