ewjcj.vue 4.2 KB

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