wjdetails.vue 3.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115
  1. <template>
  2. <view class="wjlists">
  3. <view class="tabs">
  4. <view class="tab" :class="tabval==ite.val?'act':''" v-for="(ite,idx) in tabList" :key="idx" @click="getTab(ite.val)">{{ite.tit}}</view>
  5. </view>
  6. <view class="fjlists" v-for="(fite,fidx) in filelist" :key='fidx'>
  7. <view class="flext" @click="getDown(fite.url)">
  8. <view class="imgl"><image :src="filico" ></image></view>
  9. <view class="tit">{{fite.name}}</view>
  10. </view>
  11. </view>
  12. </view>
  13. </template>
  14. <script>
  15. import config from '@/config'
  16. const baseUrl = config.baseUrl
  17. import {uploadmore} from '@/utils/common.js'
  18. import {getApplicationDet} from "@/api/mine/work.js"
  19. import { checkPermi, checkRole } from "@/utils/permission"; // 权限判断函数
  20. export default{
  21. components:{},
  22. data(){
  23. return{
  24. hrimg:require('@/work/static/images/hrimg.png'),
  25. filico:require('@/work/static/images/filico.png'),
  26. tabval:0,
  27. // tabList:[{tit:"客户上传",val:0},{tit:"平台上传",val:1}],
  28. tabList:[{tit:"客户上传",val:0},{tit:"申报附件",val:1},{tit:"文件出具",val:2},{tit:"其他附件",val:3}],
  29. filelist:[{name:"安徽嘉欣医疗用品有限公司0403委托担保申请书.pdf"},{name:"安徽嘉欣医疗用品有限公司0403委托担保申请书.pdf"},],
  30. id:'',
  31. }
  32. },
  33. onLoad(e) {
  34. this.id=e.id;
  35. this.getDetail()
  36. },
  37. methods:{
  38. checkPermi, checkRole,
  39. getTab(val){
  40. this.tabval=val
  41. },
  42. getDetail(){
  43. getApplicationDet(this.id).then(res=>{
  44. if(res.code==200){
  45. this.datainfo=res.data;
  46. if(res.data.sysUserEnterprise){
  47. this.qyinfo=res.data.sysUserEnterprise
  48. }
  49. this.stepval=res.data.loanSchedule||0;
  50. // if(res.data.shareholderFjLis){
  51. // this.gdlists=res.data.shareholderFjLis
  52. // }
  53. if(res.data.basicFj){
  54. this.basicFj=res.data.basicFj;
  55. }
  56. // this.declareFj=res.data.declareFj;
  57. // 附件信息
  58. // this.otherFj=res.data.otherFj||[]
  59. }
  60. })
  61. },
  62. getDown(e){
  63. uni.showLoading({
  64. title: '加载中'
  65. });
  66. var url=baseUrl+e;
  67. uni.downloadFile({
  68. url: url,//文件的下载路径
  69. success(result) {
  70. uni.hideLoading()
  71. var filePath = result.tempFilePath;
  72. uni.openDocument({
  73. filePath: filePath,
  74. showMenu: true,
  75. success: function (res) {
  76. // console.log('打开文档成功');
  77. }
  78. });
  79. },
  80. fail(res) {uni.hideLoading()}
  81. })
  82. },
  83. }
  84. }
  85. </script>
  86. <style>
  87. page{background:#ffffff;}
  88. </style>
  89. <style lang="scss" scoped>
  90. .tabs{padding: 0 6rpx 0 36rpx;display: flex;flex-wrap: nowrap;overflow: auto;flex: 0 0 auto;border-bottom: 2rpx solid #E6E6E6;position: fixed;left: 0;top: 0;right: 0;z-index: 2;
  91. .tab{font-weight: 500;font-size: 26rpx;color: #666666;height: 116rpx;display: flex;align-items: center;margin-right:180rpx;flex: 0 0 auto;position: relative;
  92. &.act{color: #00A9F0;font-weight: bold;
  93. &::after{width: 100%;background: #00A9F0;position: absolute;left: 0;bottom: 0;
  94. border-radius: 2rpx;height: 4rpx;content: '';}
  95. }
  96. }
  97. }
  98. .wjlists{
  99. padding: 120rpx 0 40rpx;
  100. // 附件
  101. .fjlists {display: flex;align-items: flex-start;justify-content: space-between;margin-top: 60rpx;padding: 0 36rpx;
  102. &:last-child{margin-bottom: 0;}
  103. .imgl{width: 40rpx;height: 40rpx;display: flex;align-items: center;flex: 0 0 auto;
  104. image{width: 26rpx;height: 24rpx;}
  105. }
  106. .tit{font-size: 26rpx;color: #222327;font-weight: 500;margin-top: 4rpx;}
  107. .delimg{width: 40rpx;height:40rpx;margin-left: 16rpx;display: flex;align-items: center;justify-content: center;flex: 0 0 auto;
  108. image{width: 24rpx;height: 24rpx;}
  109. }
  110. .txta{color: #28C529;font-weight: 500;line-height: 40rpx;flex: 0 0 auto;margin-left: 18rpx;padding: 0 6rpx;}
  111. }
  112. }
  113. </style>