ewjcj.vue 9.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266
  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. <view 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. <view class="upimg" @click="getXzFn(fite)"><image :src="fupimg"></image></view>
  104. <text class="txta" @click="getDown(fite.url)">预览</text>
  105. </view>
  106. </view>
  107. </view>
  108. <!-- <text class="txta" @click="getDown(fite.url)">预览</text> -->
  109. <!-- <view class="delimg flex0" @click.stop="getDelFj(idx)">
  110. <image :src="fdelimg"></image>
  111. </view> -->
  112. <view class="mt18" v-if="qtfileFj&&qtfileFj.qtfj&&qtfileFj.qtfj.length">
  113. <view class="fjlists" v-for="(fite,fidx) in qtfileFj.qtfj" :key='fidx'>
  114. <view class="flext flex1" @click="getDown(fite.url)">
  115. <view class="imgl"><image :src="filico" ></image></view>
  116. <view class="tit">{{fite.name}}</view>
  117. </view>
  118. <template v-if="pfrom!='vote'&&pfrom!='bhxx'&&datainfo.loanApplicationType!=3&&datainfo.loanApplicationType!=4">
  119. <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)">
  120. <image :src="fdelimg"></image>
  121. </view>
  122. <text class="txta coa1" v-if="checkPermi(['system:fj:edit'])" @click="getQtfjEdit('qtfj',fite.fjId)">修改</text>
  123. </template>
  124. <view class="upimg" @click="getXzFn(fite)"><image :src="fupimg"></image></view>
  125. <text class="txta" @click="getDown(fite.url)">预览</text>
  126. </view>
  127. </view>
  128. </view>
  129. </view>
  130. </template>
  131. <script>
  132. import { checkPermi, checkRole } from "@/utils/permission"; // 权限判断函数
  133. import { selectValue } from '@/utils/common.js';
  134. import noData from "@/components/nodata/nodata.vue"
  135. export default {
  136. props:{
  137. datainfo: {
  138. type: Object,
  139. default () {
  140. return {}
  141. }
  142. },
  143. fileFj:{
  144. type: Object,
  145. default () {
  146. return {}
  147. }
  148. },
  149. qtfileFj:{
  150. type: Object,
  151. default () {
  152. return {}
  153. }
  154. },
  155. wjcjlist:{
  156. type: Array,
  157. default () {
  158. return []
  159. }
  160. },
  161. pfrom:{
  162. type: String,
  163. default () {
  164. return ''
  165. }
  166. }
  167. },
  168. components:{
  169. noData
  170. },
  171. data(){
  172. return{
  173. upimg: require('@/work/static/images/up.png'),
  174. fupimg:require('@/work/static/images/fdown.png'),
  175. filico:require('@/work/static/images/filico.png'),
  176. edit:require('@/work/static/images/edit.png'),
  177. editf:require('@/work/static/images/editfile.png'),
  178. fdelimg:require('@/work/static/images/del.png'),
  179. gdfilelist:[],
  180. zheList:[],
  181. userId:this.$store.state.user.userId,
  182. fileList:[]
  183. }
  184. },
  185. onLoad: function() {
  186. },
  187. methods:{
  188. checkPermi, checkRole,
  189. kaType(ite){
  190. return selectValue(this.tajdlist, ite);
  191. },
  192. getZheFn(idx){
  193. this.zheList[idx].zheflag=!this.zheList[idx].zheflag
  194. },
  195. getfjEdit(val){
  196. this.$emit('getfjEdit',val)
  197. },
  198. getfjXiu(val,id){
  199. this.$emit('getfjXiu',val,id)
  200. },
  201. getQtfjEdit(val,id){
  202. this.$emit('getQtfjEdit',val,id)
  203. },
  204. getDown(url){
  205. this.$emit('getDown',url)
  206. },
  207. getPreview(url){
  208. this.$emit('getPreview',url)
  209. },
  210. getDelwjFj(id){
  211. this.$emit('getDelwjFj',id)
  212. },
  213. getQmFn(url){
  214. this.$emit('getQmFn',url)
  215. },
  216. getXzFn(ite){
  217. this.$emit("getXzFn",ite)
  218. },
  219. },
  220. }
  221. </script>
  222. <style lang="scss" scoped>
  223. .boxt{padding:44rpx 36rpx 40rpx;border-top: 2rpx solid #E6E6E6;}
  224. .txt{display: flex;align-items: flex-start;
  225. view{font-weight: bold;font-size: 30rpx;color: #222327;}
  226. text{color: #28C529;font-weight: 500;line-height: 40rpx;flex: 0 0 auto;margin-left: 46rpx;padding: 0 6rpx;}
  227. }
  228. .upimg{width:40rpx;height: 40rpx;margin-left: 18rpx;display: flex;align-items: center;justify-content: center;
  229. image{width: 30rpx;height: 28rpx;}
  230. }
  231. .fjlists {display: flex;align-items: flex-start;justify-content: space-between;margin-bottom: 20rpx;
  232. &:last-child{margin-bottom: 0;}
  233. .imgl{width: 40rpx;height: 40rpx;display: flex;align-items: center;flex: 0 0 auto;
  234. image{width: 26rpx;height: 24rpx;}
  235. }
  236. .tit{font-size: 26rpx;color: #222327;font-weight: 500;margin-top: 4rpx;word-break: break-all;}
  237. .delimg{width: 40rpx;height:40rpx;margin-left: 16rpx;display: flex;align-items: center;justify-content: center;flex: 0 0 auto;
  238. image{width: 24rpx;height: 24rpx;}
  239. }
  240. .txta{color: #28C529;font-weight: 500;line-height: 40rpx;flex: 0 0 auto;margin-left: 18rpx;padding: 0 6rpx;
  241. &.coa1{color: #00A9F0;}
  242. }
  243. }
  244. .upbox{display: flex;flex-direction: column;align-items: center;padding: 56rpx 0 40rpx;border-top: 2rpx solid #E6E6E6;
  245. image{width: 30rpx;height: 26rpx;margin-bottom: 18rpx;transform: rotate(180deg);}
  246. view{font-weight: 500;font-size: 26rpx;color: #666666;}
  247. }
  248. .editf{flex:0 0 auto;display: flex;align-items: center;margin-left: 24rpx;
  249. view{font-weight: 500;font-size: 26rpx;color: #00A9F0;}
  250. image{width: 22rpx;height: 24rpx;margin-right:8rpx;}
  251. }
  252. .edit{flex:0 0 auto;display: flex;align-items: center;
  253. view{font-weight: 500;font-size: 26rpx;color: #00A9F0;}
  254. image{width: 20rpx;height: 24rpx;margin-right: 2rpx;}
  255. }
  256. </style>