zclist.vue 6.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246
  1. <template>
  2. <view class="listbox">
  3. <!-- 列表 -->
  4. <view class="plr18">
  5. <bus-list :datalist="list" :wtdt="wtdt" :sdyhlist="sdyhlist" :dblxlist="dblxlist" :shjdlist="shjdlist" :type="type" @getDetail="getDetail"></bus-list>
  6. </view>
  7. </view>
  8. </template>
  9. <script>
  10. import config from '@/config'
  11. const baseUrl = config.baseUrl
  12. import busList from "@/work/components/business/list.vue"
  13. import {getApplicationList} from "@/api/mine/work.js"
  14. import {getDictionaryFn} from "@/api/mine/register.js"
  15. import { checkPermi, checkRole } from "@/utils/permission"; // 权限判断函数
  16. export default{
  17. components:{busList},
  18. data(){
  19. return{
  20. upimg:require('@/work/static/images/sup.png'),
  21. resetimg:require('@/work/static/images/reset.png'),
  22. list:[],
  23. pageSize: 10,
  24. pageNum: 1,
  25. reachflag: true,
  26. wtdt:'',
  27. // limit:''
  28. type:'work',
  29. tabval:'0',
  30. tabList:[
  31. {tit:'全部',val:'0',},{tit:'申报审核',val:'2',},{tit:'担保初审',val:'3',},
  32. {tit:'尽职调查',val:'4',},{tit:'评审会',val:'6',},{tit:'签署合同',val:'7',},
  33. ],
  34. sbsj:'',
  35. shidx:[0],
  36. shzt:'',
  37. shztid:'',
  38. sdyhidx:[0],
  39. sdyh:'',
  40. sdyhid:'',
  41. dblxidx:[0],
  42. dblx:'',
  43. dblxid:'',
  44. sdyhlist:[],//申贷银行
  45. shlist:[],//审核状态
  46. dblxlist:[],//担保类型
  47. shjdlist:[],//审核进度
  48. }
  49. },
  50. onUnload() {
  51. uni.$off('refreshywlist')
  52. uni.$off('refreshdatalist')
  53. },
  54. onLoad(e) {
  55. if(e.type){
  56. this.tabval=e.type;
  57. }
  58. uni.$on('refreshywlist',(e) => {
  59. this.getrefreshData()
  60. })
  61. uni.$on('refreshdatalist',(e) => {
  62. this.getrefreshData()
  63. })
  64. this.init()
  65. this.getDataFn()
  66. },
  67. // 上拉触底加载更多触发事件
  68. onReachBottom() {
  69. if (this.reachflag) {
  70. this.pageNum++
  71. this.getDataFn()
  72. }
  73. },
  74. methods:{
  75. checkPermi, checkRole,
  76. init(){
  77. // 申贷银行
  78. getDictionaryFn('shendai_bank').then(res=>{
  79. if(res.code==200){
  80. this.sdyhlist = res.data.map(v => {
  81. return {
  82. label: v.dictLabel,
  83. value: v.dictValue
  84. }
  85. })
  86. }
  87. })
  88. //审核状态
  89. // getDictionaryFn('sh_status').then(res=>{
  90. // if(res.code==200){
  91. // this.shlist = res.data.map(v => {
  92. // return {
  93. // label: v.dictLabel,
  94. // value: v.dictValue
  95. // }
  96. // })
  97. // }
  98. // })
  99. //担保类型
  100. getDictionaryFn('guarantee_type').then(res=>{
  101. if(res.code==200){
  102. this.dblxlist = res.data.map(v => {
  103. return {
  104. label: v.dictLabel,
  105. value: v.dictValue
  106. }
  107. })
  108. }
  109. })
  110. //审核进度
  111. // getDictionaryFn('loan_schedule').then(res=>{
  112. // if(res.code==200){
  113. // this.shjdlist = res.data.map(v => {
  114. // return {
  115. // label: v.dictLabel,
  116. // value: v.dictValue
  117. // }
  118. // })
  119. // }
  120. // })
  121. },
  122. getDetail(e){
  123. this.$tab.navigateTo("/work/pages/business/details?id="+e)
  124. },
  125. getTabFn(val){
  126. this.tabval=val;
  127. this.getrefreshData()
  128. },
  129. bindDateChangea(e){
  130. var val=e.detail.value;
  131. this.sbsj=val;
  132. this.getrefreshData()
  133. },
  134. bindDateChangeb(e){
  135. var val=e.detail.value;
  136. this.shzt=this.shlist[val].label;
  137. this.shztid=this.shlist[val].value;
  138. this.getrefreshData()
  139. },
  140. bindDateChangec(e){
  141. var val=e.detail.value;
  142. this.sdyh=this.sdyhlist[val].label;
  143. this.sdyhid=this.sdyhlist[val].value;
  144. this.getrefreshData()
  145. },
  146. bindDateChanged(e){
  147. var val=e.detail.value;
  148. this.dblx=this.dblxlist[val].label;
  149. this.dblxid=this.dblxlist[val].value;
  150. this.getrefreshData()
  151. },
  152. getResetFn(){
  153. // 重置
  154. this.sbsj='';
  155. this.shzt='';
  156. this.sdyh='';
  157. this.dblx='';
  158. this.shidx=[0];
  159. this.sdyhidx=[0];
  160. this.dblxidx=[0];
  161. this.getrefreshData()
  162. },
  163. getrefreshData(){
  164. this.pageNum=1;
  165. this.list=[];
  166. this.reachflag=true;
  167. this.getDataFn()
  168. },
  169. getDataFn(){
  170. var params={
  171. pageSize:this.pageSize,
  172. pageNum: this.pageNum,
  173. loanApplicationType:1
  174. }
  175. if(this.tabval!=0){
  176. params.loanSchedule=this.tabval
  177. }
  178. if(this.sbsj){
  179. params.applicationTime=this.sbsj
  180. }
  181. if(this.shzt){
  182. params.auditType=this.shztid
  183. }
  184. if(this.sdyh){
  185. params.applicationBank=this.sdyhid
  186. }
  187. if(this.dblx){
  188. params.guaranteeType=this.dblxid
  189. }
  190. getApplicationList(params).then(res=>{
  191. if(res.code==200){
  192. if (res.rows.length < this.pageSize) {
  193. this.reachflag = false
  194. this.wtdt = '到底了~';
  195. } else {
  196. var num = parseInt(res.rows.length) + parseInt(this.pageSize) * parseInt(this.pageNum - 1)
  197. if (num < res.total) {
  198. this.reachflag = true
  199. this.wtdt = ''
  200. } else {
  201. this.reachflag = false
  202. this.wtdt = '到底了~';
  203. }
  204. }
  205. if (this.pageNum == 1) {
  206. this.list = res.rows;
  207. } else {
  208. this.list = this.list.concat(res.rows)
  209. }
  210. }else{
  211. this.$toast(res.msg)
  212. }
  213. })
  214. },
  215. },
  216. }
  217. </script>
  218. <style lang="scss" scoped>
  219. .fixedt{position: fixed;left: 0;right: 0;top: 0;z-index: 2;}
  220. .fixedt /deep/ uni-picker{flex: 1;}
  221. .tablists{background: $com-cd3;overflow: auto;flex-wrap: nowrap;padding:4rpx 16rpx 16rpx;
  222. view{font-weight: bold;font-size: 26rpx;color: #FFFFFF;position: relative;flex: 1 0 auto;padding: 0rpx 20rpx;margin-right: 6rpx;box-sizing: border-box;text-align: center;
  223. height: 80rpx;display: flex;align-items: center;
  224. &:last-child{margin-right: 0;}
  225. &.act{font-size: 30rpx;
  226. &::after{content: '';width: 30rpx;height: 10rpx;background: #FFFFFF;border-radius: 4rpx;left: 50%;margin-left: -15rpx;bottom: 0rpx;position: absolute;}
  227. }
  228. }
  229. }
  230. .checkbox{padding: 4rpx 0 0 20rpx ;background-color: #efefef;
  231. .chekt{display: flex;align-items: center;margin-right: 12rpx;height:88rpx;
  232. view{text-align: center;
  233. font-weight: bold;font-size: 26rpx;color: #374B61;width: 136rpx;word-break: break-all;text-overflow: ellipsis;overflow: hidden;display: -webkit-box;-webkit-line-clamp: 2;-webkit-box-orient: vertical;white-space: normal;}
  234. image{width: 16rpx;height: 12rpx;flex: 0 0 auto;margin-left: 4rpx;}
  235. }
  236. }
  237. .reset{width:56rpx; height: 88rpx;display: flex;align-items: center;justify-content: center;
  238. image{width: 26rpx;height: 30rpx;}
  239. }
  240. .listbox{padding-top: 24rpx;padding-bottom: 24rpx;}
  241. </style>