ewjcj.vue 3.8 KB

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