details.vue 5.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163
  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. idCard:'34282419730618003X',realName:'林振宇',userId:'1'
  75. }
  76. }
  77. },
  78. onLoad(e) {
  79. this.id=e.id;
  80. this.init()
  81. this.getDataFn()
  82. },
  83. methods:{
  84. checkPermi, checkRole,
  85. init(){
  86. // 申贷银行
  87. getDictionaryFn('shendai_bank').then(res=>{
  88. if(res.code==200){
  89. this.sdyhlist = res.data.map(v => {
  90. return {
  91. label: v.dictLabel,
  92. value: v.dictValue
  93. }
  94. })
  95. }
  96. })
  97. //担保类型
  98. getDictionaryFn('guarantee_type').then(res=>{
  99. if(res.code==200){
  100. this.dblxlist = res.data.map(v => {
  101. return {
  102. label: v.dictLabel,
  103. value: v.dictValue
  104. }
  105. })
  106. }
  107. })
  108. },
  109. getDetail(e){
  110. this.$tab.navigateTo("/work/pages/business/details?id="+e)
  111. },
  112. getZheFn(idx){
  113. this.zheList[idx].zheflag=!this.zheList[idx].zheflag
  114. },
  115. getDataFn(){
  116. getIdCardDet(this.id).then(res=>{
  117. if(res.code==200){
  118. this.datainfo=res.data;
  119. if(res.data.sysUserEnterpriseList){
  120. this.qylist=JSON.parse(JSON.stringify(res.data.sysUserEnterpriseList))||[]
  121. }
  122. if(res.data.loanApplicationList){
  123. this.sdjllist=JSON.parse(JSON.stringify(res.data.loanApplicationList))||[]
  124. }
  125. }
  126. })
  127. }
  128. }
  129. }
  130. </script>
  131. <style lang="scss" scoped>
  132. .detop{
  133. background-color: #ffffff;padding: 0rpx 24rpx 2rpx;
  134. .headbox{display: flex;align-items: center;padding: 42rpx 12rpx;border-bottom: 2rpx solid #E6E6E6;;
  135. .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;}
  136. .headt{font-weight: bold;font-size: 40rpx;color: #222327;margin-bottom: 10rpx;}
  137. .headx{font-weight: 500;font-size: 24rpx;color: #666666;}
  138. }
  139. }
  140. .tit{font-weight: bold;font-size: 30rpx;color: $com-cd3;display: flex;align-items: center;padding-top: 44rpx;margin-bottom:32rpx;padding-left: 14rpx;
  141. image{width: 30rpx;height: 30rpx;margin-right: 12rpx;}
  142. }
  143. .txt{font-weight: bold;font-size: 30rpx;color: #222327;margin-bottom: 44rpx;padding-left: 14rpx;
  144. text{color: #666666;font-weight: 500;
  145. &.txta{color: #28C529;}
  146. }
  147. }
  148. .flexcw{display: flex;
  149. .txt{min-width: 50%;padding-right: 20rpx;box-sizing: border-box;}
  150. }
  151. .zhead{padding: 30rpx 40rpx 30rpx 24rpx;
  152. .tit{margin-bottom: 0;padding-top: 0;flex: 1;}
  153. .zheadr{font-weight: 500;font-size: 26rpx;flex: 0 0 auto;color: #666666;
  154. &.act{
  155. image{transform: rotate(180deg);}
  156. }
  157. image{width: 26rpx;height: 22rpx;margin-left: 18rpx;transition: all 0.3;}
  158. }
  159. }
  160. </style>