details.vue 5.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161
  1. <template>
  2. <view class="details">
  3. <view class="detop">
  4. <view class="headbox">
  5. <view class="head">{{datainfo.realName.substring(0,1)}}</view>
  6. <view class="flex1">
  7. <view class="headt">{{datainfo.realName}}</view>
  8. <view class="headx">资料更新时间 | {{datainfo.updateTime||datainfo.createTime}}</view>
  9. </view>
  10. </view>
  11. <view class="tit">
  12. <image :src="titimg"></image>客户基本信息
  13. </view>
  14. <view class="txt">身份证号:<text>{{datainfo.idCard}}</text></view>
  15. <view class="txt">证件有效期:<text>{{datainfo.expirationDate}}</text></view>
  16. <view class="txt">居住地址:<text>{{datainfo.address}}</text></view>
  17. <view class="txt">手机号码:<text>{{datainfo.phonenumber}}</text></view>
  18. </view>
  19. <!-- 已添加关联企业 -->
  20. <view class="zhead flexc">
  21. <view class="tit">
  22. <image :src="titimg"></image>已添加关联企业
  23. </view>
  24. <view class="zheadr flexc" :class="zheList[0].zheflag?'':'act'" @click="getZheFn(0)">
  25. {{zheList[0].zheflag?'折叠信息':'展开信息'}}
  26. <image :src="upimg"></image></view>
  27. </view>
  28. <!-- 列表 -->
  29. <block v-if="zheList[0].zheflag">
  30. <bus-list :datalist="qylist" type="qy"></bus-list>
  31. </block>
  32. <!-- 历史申贷记录 -->
  33. <view class="zhead flexc">
  34. <view class="tit">
  35. <image :src="titimg"></image>历史申贷记录
  36. </view>
  37. <view class="zheadr flexc" :class="zheList[1].zheflag?'':'act'" @click="getZheFn(1)">
  38. {{zheList[1].zheflag?'折叠信息':'展开信息'}}
  39. <image :src="upimg"></image></view>
  40. </view>
  41. <!-- 列表 -->
  42. <block v-if="zheList[1].zheflag">
  43. <bus-list :datalist="sdjllist" :sdyhlist="sdyhlist" :dblxlist="dblxlist" type="sdjl" @getDetail="getDetail"></bus-list>
  44. </block>
  45. </view>
  46. </template>
  47. <script>
  48. import config from '@/config'
  49. const baseUrl = config.baseUrl
  50. import busList from "@/work/components/business/list.vue"
  51. import {getIdCardDet} from "@/api/mine/card.js"
  52. import {uploadmore} from '@/utils/common.js'
  53. import {getDictionaryFn} from "@/api/mine/register.js"
  54. import { checkPermi, checkRole } from "@/utils/permission"; // 权限判断函数
  55. export default{
  56. components:{busList},
  57. data(){
  58. return{
  59. titimg:require('@/work/static/images/infotit.png'),
  60. upimg:require('@/work/static/images/up.png'),
  61. list:[],
  62. qylist:[],
  63. sdjllist:[],
  64. zheList:[{zheflag:true},{zheflag:true},{zheflag:true},{zheflag:true}],
  65. type:'qy',
  66. pageSize: 10,
  67. pageNum: 1,
  68. reachflag: true,
  69. wtdt:'',
  70. id:'',
  71. sdyhlist:[],
  72. dblxlist:[],
  73. datainfo:{}
  74. }
  75. },
  76. onLoad(e) {
  77. this.id=e.id;
  78. this.init()
  79. this.getDataFn()
  80. },
  81. methods:{
  82. checkPermi, checkRole,
  83. init(){
  84. // 申贷银行
  85. getDictionaryFn('shendai_bank').then(res=>{
  86. if(res.code==200){
  87. this.sdyhlist = res.data.map(v => {
  88. return {
  89. label: v.dictLabel,
  90. value: v.dictValue
  91. }
  92. })
  93. }
  94. })
  95. //担保类型
  96. getDictionaryFn('guarantee_type').then(res=>{
  97. if(res.code==200){
  98. this.dblxlist = res.data.map(v => {
  99. return {
  100. label: v.dictLabel,
  101. value: v.dictValue
  102. }
  103. })
  104. }
  105. })
  106. },
  107. getDetail(e){
  108. this.$tab.navigateTo("/work/pages/business/details?id="+e)
  109. },
  110. getZheFn(idx){
  111. this.zheList[idx].zheflag=!this.zheList[idx].zheflag
  112. },
  113. getDataFn(){
  114. getIdCardDet(this.id).then(res=>{
  115. if(res.code==200){
  116. this.datainfo=res.data;
  117. if(res.data.sysUserEnterpriseList){
  118. this.qylist=JSON.parse(JSON.stringify(res.data.sysUserEnterpriseList))||[]
  119. }
  120. if(res.data.loanApplicationList){
  121. this.sdjllist=JSON.parse(JSON.stringify(res.data.loanApplicationList))||[]
  122. }
  123. }
  124. })
  125. }
  126. }
  127. }
  128. </script>
  129. <style lang="scss" scoped>
  130. .detop{
  131. background-color: #ffffff;padding: 0rpx 24rpx 2rpx;
  132. .headbox{display: flex;align-items: center;padding: 42rpx 12rpx;border-bottom: 2rpx solid #E6E6E6;;
  133. .head{width: 86rpx;height: 86rpx;background: #00A9F0;border-radius: 10rpx;font-weight: bold;margin-right: 36rpx;flex: 0 0 auto;font-size: 40rpx;display: flex;align-items: center;justify-content: center;color: #FFFFFF;}
  134. .headt{font-weight: bold;font-size: 40rpx;color: #222327;margin-bottom: 10rpx;}
  135. .headx{font-weight: 500;font-size: 24rpx;color: #666666;}
  136. }
  137. }
  138. .tit{font-weight: bold;font-size: 30rpx;color: $com-cd3;display: flex;align-items: center;padding-top: 44rpx;margin-bottom:32rpx;padding-left: 14rpx;
  139. image{width: 30rpx;height: 30rpx;margin-right: 12rpx;}
  140. }
  141. .txt{font-weight: bold;font-size: 30rpx;color: #222327;margin-bottom: 44rpx;padding-left: 14rpx;
  142. text{color: #666666;font-weight: 500;
  143. &.txta{color: #28C529;}
  144. }
  145. }
  146. .flexcw{display: flex;
  147. .txt{min-width: 50%;padding-right: 20rpx;box-sizing: border-box;}
  148. }
  149. .zhead{padding: 30rpx 40rpx 30rpx 24rpx;
  150. .tit{margin-bottom: 0;padding-top: 0;flex: 1;}
  151. .zheadr{font-weight: 500;font-size: 26rpx;flex: 0 0 auto;color: #666666;
  152. &.act{
  153. image{transform: rotate(180deg);}
  154. }
  155. image{width: 26rpx;height: 22rpx;margin-left: 18rpx;transition: all 0.3;}
  156. }
  157. }
  158. </style>