ewjcj.vue 6.1 KB

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