ewjcj.vue 4.6 KB

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