ewjcj.vue 9.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261
  1. <template>
  2. <view>
  3. <!-- 有文件出具的权限 -->
  4. <!-- 风险报告只能有风险修改删除 -->
  5. <!-- <view class="edit" v-if="ite.val=='psyjqpb'||ite.val=='gdhyjy'||ite.val=='wtdbht'" @click="getQmFn">
  6. <image :src="edit"></image>
  7. <view>在线签名</view>
  8. </view> -->
  9. <!-- <view class="boxt" v-for="(ite,idx) in wjcjlist" :key="idx">
  10. <view class="txt">
  11. <view class="flex1 flexc">{{ite.label}}
  12. <template v-if="checkPermi(['system:fj:add'])&&datainfo.loanApplicationType!=4&&pfrom!='vote'&&pfrom!='bhxx'&&datainfo.loanApplicationType!=3">
  13. <template v-if="ite.val=='fxbg'||ite.val=='fkhgb'">
  14. <view class="editf" v-if="userId==datainfo.fUserId" @click="getfjEdit(ite.val)">
  15. <image :src="editf"></image>
  16. <view>上传</view>
  17. </view>
  18. </template>
  19. <view class="editf" v-else @click="getfjEdit(ite.val)">
  20. <image :src="editf"></image>
  21. <view>上传</view>
  22. </view>
  23. </template>
  24. </view>
  25. </view>
  26. <view class="mt18" v-if="fileFj&&fileFj[ite.val]&&fileFj[ite.val].length">
  27. <view class="fjlists" v-for="(fite,fidx) in fileFj[ite.val]" :key='fidx'>
  28. <view class="flext flex1" @click="getDown(fite.url)">
  29. <view class="imgl"><image :src="filico" ></image></view>
  30. <view class="tit">{{fite.name}}</view>
  31. </view>
  32. <template v-if="pfrom!='vote'&&pfrom!='bhxx'&&datainfo.loanApplicationType!=3&&datainfo.loanApplicationType!=4">
  33. <template v-if="ite.val=='fxbg'||ite.val=='fkhgb'">
  34. <template v-if="userId==datainfo.fUserId">
  35. <view class="edit" v-if="(ite.val=='gdhyjy')&&checkPermi(['word:wordFilePath:wordFilePath'])" @click="getQmFn(fite.url)">
  36. <image :src="edit"></image>
  37. <view>在线签名</view>
  38. </view>
  39. <view class="delimg flex0" v-if="checkPermi(['system:fj:remove'])" @click.stop="getDelwjFj(fite.fjId)">
  40. <image :src="fdelimg"></image>
  41. </view>
  42. </template>
  43. </template>
  44. <template v-else>
  45. <view class="edit" v-if="(ite.val=='gdhyjy')&&checkPermi(['word:wordFilePath:wordFilePath'])" @click="getQmFn(fite.url)">
  46. <image :src="edit"></image>
  47. <view>在线签名</view>
  48. </view>
  49. <view class="delimg flex0" v-if="checkPermi(['system:fj:remove'])" @click.stop="getDelwjFj(fite.fjId)">
  50. <image :src="fdelimg"></image>
  51. </view>
  52. </template>
  53. </template>
  54. <text class="txta" @click="getDown(fite.url)">预览</text>
  55. </view>
  56. </view>
  57. </view> -->
  58. <!-- 其他附件 -->
  59. <view class="boxt" >
  60. <view class="txt">
  61. <view class="flex1 flexc">其他附件
  62. <!-- <template v-if="checkPermi(['system:fj:add'])&&datainfo.loanApplicationType!=4&&pfrom!='vote'&&pfrom!='bhxx'&&datainfo.loanApplicationType!=3">
  63. <view class="editf" @click="getQtfjEdit('qtfj')">
  64. <image :src="editf"></image>
  65. <view>上传</view>
  66. </view>
  67. </template> -->
  68. </view>
  69. </view>
  70. <!-- 文件出具信息 -->
  71. <view class="mt18" v-if="fileFj">
  72. <block v-for="(ite,name, index) in fileFj" :key="index">
  73. <view class="fjlists" v-for="(fite,fidx) in ite" :key='fidx'>
  74. <view class="flext flex1" @click="getDown(fite.url)">
  75. <view class="imgl"><image :src="filico" ></image></view>
  76. <view class="tit">{{fite.name}}</view>
  77. </view>
  78. <!-- ||ite.val=='wtdbht' -->
  79. <template v-if="pfrom!='vote'&&pfrom!='bhxx'&&datainfo.loanApplicationType!=3&&datainfo.loanApplicationType!=4">
  80. <!-- 放款合规表 -->
  81. <template v-if="name=='fxbg'||name=='fkhgb'">
  82. <template v-if="userId==datainfo.fUserId">
  83. <view class="edit" v-if="(name=='gdhyjy')&&checkPermi(['word:wordFilePath:wordFilePath'])" @click="getQmFn(fite.url)">
  84. <image :src="edit"></image>
  85. <view>在线签名</view>
  86. </view>
  87. <view class="delimg flex0" v-if="checkPermi(['system:fj:remove'])" @click.stop="getDelwjFj(fite.fjId)">
  88. <image :src="fdelimg"></image>
  89. </view>
  90. </template>
  91. </template>
  92. <template v-else>
  93. <view class="edit" v-if="(name=='gdhyjy')&&checkPermi(['word:wordFilePath:wordFilePath'])" @click="getQmFn(fite.url)">
  94. <image :src="edit"></image>
  95. <view>在线签名</view>
  96. </view>
  97. <view class="delimg flex0" v-if="checkPermi(['system:fj:remove'])" @click.stop="getDelwjFj(fite.fjId)">
  98. <image :src="fdelimg"></image>
  99. </view>
  100. </template>
  101. <text class="txta coa1" v-if="checkPermi(['system:fj:edit'])" @click="getfjXiu(name,fite.fjId)">修改</text>
  102. </template>
  103. <text class="txta" @click="getDown(fite.url)">预览</text>
  104. </view>
  105. </block>
  106. </view>
  107. <!-- <text class="txta" @click="getDown(fite.url)">预览</text> -->
  108. <!-- <view class="delimg flex0" @click.stop="getDelFj(idx)">
  109. <image :src="fdelimg"></image>
  110. </view> -->
  111. <view class="mt18" v-if="qtfileFj&&qtfileFj.qtfj&&qtfileFj.qtfj.length">
  112. <view class="fjlists" v-for="(fite,fidx) in qtfileFj.qtfj" :key='fidx'>
  113. <view class="flext flex1" @click="getDown(fite.url)">
  114. <view class="imgl"><image :src="filico" ></image></view>
  115. <view class="tit">{{fite.name}}</view>
  116. </view>
  117. <template v-if="pfrom!='vote'&&pfrom!='bhxx'&&datainfo.loanApplicationType!=3&&datainfo.loanApplicationType!=4">
  118. <view class="delimg flex0" v-if="checkPermi(['system:fj:remove'])&&pfrom!='vote'&&pfrom!='bhxx'&&datainfo.loanApplicationType!=3&&datainfo.loanApplicationType!=4" @click.stop="getDelwjFj(fite.fjId)">
  119. <image :src="fdelimg"></image>
  120. </view>
  121. <text class="txta coa1" v-if="checkPermi(['system:fj:edit'])" @click="getQtfjEdit('qtfj',fite.fjId)">修改</text>
  122. </template>
  123. <text class="txta" @click="getDown(fite.url)">预览</text>
  124. </view>
  125. </view>
  126. </view>
  127. </view>
  128. </template>
  129. <script>
  130. import { checkPermi, checkRole } from "@/utils/permission"; // 权限判断函数
  131. import { selectValue } from '@/utils/common.js';
  132. import noData from "@/components/nodata/nodata.vue"
  133. export default {
  134. props:{
  135. datainfo: {
  136. type: Object,
  137. default () {
  138. return {}
  139. }
  140. },
  141. fileFj:{
  142. type: Object,
  143. default () {
  144. return {}
  145. }
  146. },
  147. qtfileFj:{
  148. type: Object,
  149. default () {
  150. return {}
  151. }
  152. },
  153. wjcjlist:{
  154. type: Array,
  155. default () {
  156. return []
  157. }
  158. },
  159. pfrom:{
  160. type: String,
  161. default () {
  162. return ''
  163. }
  164. }
  165. },
  166. components:{
  167. noData
  168. },
  169. data(){
  170. return{
  171. upimg: require('@/work/static/images/up.png'),
  172. fupimg:require('@/work/static/images/fup.png'),
  173. filico:require('@/work/static/images/filico.png'),
  174. edit:require('@/work/static/images/edit.png'),
  175. editf:require('@/work/static/images/editfile.png'),
  176. fdelimg:require('@/work/static/images/del.png'),
  177. gdfilelist:[],
  178. zheList:[],
  179. userId:this.$store.state.user.userId,
  180. fileList:[]
  181. }
  182. },
  183. onLoad: function() {
  184. },
  185. methods:{
  186. checkPermi, checkRole,
  187. kaType(ite){
  188. return selectValue(this.tajdlist, ite);
  189. },
  190. getZheFn(idx){
  191. this.zheList[idx].zheflag=!this.zheList[idx].zheflag
  192. },
  193. getfjEdit(val){
  194. this.$emit('getfjEdit',val)
  195. },
  196. getfjXiu(val,id){
  197. this.$emit('getfjXiu',val,id)
  198. },
  199. getQtfjEdit(val,id){
  200. this.$emit('getQtfjEdit',val,id)
  201. },
  202. getDown(url){
  203. this.$emit('getDown',url)
  204. },
  205. getPreview(url){
  206. this.$emit('getPreview',url)
  207. },
  208. getDelwjFj(id){
  209. this.$emit('getDelwjFj',id)
  210. },
  211. getQmFn(url){
  212. this.$emit('getQmFn',url)
  213. },
  214. },
  215. }
  216. </script>
  217. <style lang="scss" scoped>
  218. .boxt{padding:44rpx 36rpx 40rpx;border-top: 2rpx solid #E6E6E6;}
  219. .txt{display: flex;align-items: flex-start;
  220. view{font-weight: bold;font-size: 30rpx;color: #222327;}
  221. text{color: #28C529;font-weight: 500;line-height: 40rpx;flex: 0 0 auto;margin-left: 46rpx;padding: 0 6rpx;}
  222. .upimg{width:40rpx;height: 40rpx;margin-left: 18rpx;display: flex;align-items: center;justify-content: center;
  223. image{width: 30rpx;height: 28rpx;}
  224. }
  225. }
  226. .fjlists {display: flex;align-items: flex-start;justify-content: space-between;margin-bottom: 20rpx;
  227. &:last-child{margin-bottom: 0;}
  228. .imgl{width: 40rpx;height: 40rpx;display: flex;align-items: center;flex: 0 0 auto;
  229. image{width: 26rpx;height: 24rpx;}
  230. }
  231. .tit{font-size: 26rpx;color: #222327;font-weight: 500;margin-top: 4rpx;word-break: break-all;}
  232. .delimg{width: 40rpx;height:40rpx;margin-left: 16rpx;display: flex;align-items: center;justify-content: center;flex: 0 0 auto;
  233. image{width: 24rpx;height: 24rpx;}
  234. }
  235. .txta{color: #28C529;font-weight: 500;line-height: 40rpx;flex: 0 0 auto;margin-left: 18rpx;padding: 0 6rpx;
  236. &.coa1{color: #00A9F0;}
  237. }
  238. }
  239. .upbox{display: flex;flex-direction: column;align-items: center;padding: 56rpx 0 40rpx;border-top: 2rpx solid #E6E6E6;
  240. image{width: 30rpx;height: 26rpx;margin-bottom: 18rpx;transform: rotate(180deg);}
  241. view{font-weight: 500;font-size: 26rpx;color: #666666;}
  242. }
  243. .editf{flex:0 0 auto;display: flex;align-items: center;margin-left: 24rpx;
  244. view{font-weight: 500;font-size: 26rpx;color: #00A9F0;}
  245. image{width: 22rpx;height: 24rpx;margin-right:8rpx;}
  246. }
  247. .edit{flex:0 0 auto;display: flex;align-items: center;
  248. view{font-weight: 500;font-size: 26rpx;color: #00A9F0;}
  249. image{width: 20rpx;height: 24rpx;margin-right: 2rpx;}
  250. }
  251. </style>