ewjcj.vue 6.3 KB

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