From 484df916a9268fe412e28126a40874419ee67442 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E2=80=9Cgrape=E2=80=9D?= <18746553572@163.com> Date: Wed, 30 Nov 2022 18:42:00 +0800 Subject: [PATCH] =?UTF-8?q?=E4=B8=AA=E4=BA=BA=E4=B8=9A=E5=8A=A1=E7=9B=B8?= =?UTF-8?q?=E5=85=B3=E6=8E=A5=E5=8F=A3=E8=81=94=E8=B0=83=E4=B8=8E=E4=BC=98?= =?UTF-8?q?=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../api/ms-application/application.api.ts | 12 ++ src/views/authentication/LoginView.vue | 2 +- src/views/recognition/Intention.vue | 153 ++++++++++++++---- src/views/recognition/Recognition.vue | 12 +- 4 files changed, 142 insertions(+), 37 deletions(-) diff --git a/src/constants/api/ms-application/application.api.ts b/src/constants/api/ms-application/application.api.ts index 0f79bee..873cf25 100644 --- a/src/constants/api/ms-application/application.api.ts +++ b/src/constants/api/ms-application/application.api.ts @@ -247,6 +247,18 @@ const applicationApi = { header: HeaderType.AUTH.code, // MCEP: 'MCEP' }, + getBussOrgList:{ + url: prefix + "/persBusiAccept/getBussOrgList", + method: MethodType.GET.code, + header: HeaderType.AUTH.code, + // MCEP: 'MCEP' + }, + getBussAccountManagerList:{ + url: prefix + "/bussAccountManager/getBussAccountManagerList", + method: MethodType.GET.code, + header: HeaderType.AUTH.code, + // MCEP: 'MCEP' + }, }; export default applicationApi; diff --git a/src/views/authentication/LoginView.vue b/src/views/authentication/LoginView.vue index 504b916..8ca8276 100644 --- a/src/views/authentication/LoginView.vue +++ b/src/views/authentication/LoginView.vue @@ -257,7 +257,7 @@ export default class LoginView extends Vue { } apiService.general(loginApi.loginSystem, undefined, param, undefined).then((response: RestfulResponse) => { console.log(response); - //发送请求就保存账号 + //发送请求就保存账号 账号:18746555531 密码:123456 localStorage.setItem('loginNo', this.loginNo); // debugger; if (response.code == Code.SUCCESS.code) { diff --git a/src/views/recognition/Intention.vue b/src/views/recognition/Intention.vue index 183e9fa..0ed73ee 100644 --- a/src/views/recognition/Intention.vue +++ b/src/views/recognition/Intention.vue @@ -1,8 +1,8 @@ @@ -66,7 +66,7 @@ - + @@ -127,7 +127,7 @@ + > + + + {{option.handleOrg}} + + + + @@ -151,7 +158,7 @@ + > + + + {{option.accountManager}} + + + + @@ -223,17 +237,22 @@ import applicationApi from "@/constants/api/ms-application/application.api"; import apiService from "@/services/api.service"; import { Code } from "@/constants/enum/general/code.enum"; import { RestfulResponse } from "@/model/domain/RestfulResponse"; +import eventBus from "@/services/goBackEntity" +import { json } from "mathjs"; +import { List } from "echarts"; Vue.use(Picker); @Component({ name: "Intention", }) export default class Intention extends Vue { + + tatleName = "产品意向申请"; //身份证 idcard = "23232111978221"; //姓名 - name = "刘明明"; + name = ""; //电话 phone = ""; //贷款详情 @@ -248,8 +267,6 @@ export default class Intention extends Vue { // area = "黑龙江省-哈尔滨市-松北区" //意向机构 intentions = ""; - //客户经理 - customer = ""; //客户经理电话 phoneCard: any = ""; //地区 @@ -258,32 +275,92 @@ export default class Intention extends Vue { cascaderValue = ""; showOrg = false; + handleOrg="" orgValue = ""; showManager = false; - mangerValue = ""; - mangerList = ["吕晨涛", "龙易轩", "范丽", "雷娟", "郝芳"]; - //phoneCardList = [["吕晨涛","13332323232"],["龙易轩","12321212121"],["范丽","15673989898"],["雷娟","15673981198"], ["郝芳","15622981198"]]; - phoneCardList = new Map([ - ["吕晨涛", "13332323232"], - ["龙易轩", "12321212121"], - ["范丽", "15673989898"], - ["雷娟", "15673981198"], - ["郝芳", "15622981198"], - ]); + accountManager = ""; + managerValue = ""; + + // mangerList = ["吕晨涛", "龙易轩", "范丽", "雷娟", "郝芳",""]; + // phoneCardList = [["吕晨涛","13332323232"],["龙易轩","12321212121"],["范丽","15673989898"],["雷娟","15673981198"], ["郝芳","15622981198"]]; + // // phoneCardList = new Map([ + // // ["吕晨涛", "13332323232"], + // // ["龙易轩", "12321212121"], + // // ["范丽", "15673989898"], + // // ["雷娟", "15673981198"], + // // ["郝芳", "15622981198"], + // // ]); + + //机构列表 - orgList = ["哈尔滨道里区支行", "哈尔滨松北区支行"]; + orgList = []; + //获取意向机构列表 + getOrgList(){ + apiService.general(applicationApi.getBussOrgList, {},undefined, undefined).then((response: RestfulResponse) => { + // console.log(response); + if (response.code == Code.SUCCESS.code) { + this.orgList=response.data; + // console.log(JSON.parse(response.data)) + + + // response.data.forEach((element: any[]) => { + // this.orgList.set(element[0],element[1]) + // }); + console.log(this.orgList); + // console.log(this.phoneCardList) + } + + }); + } + //意向客户经理列表 + mangerList = []; + //获取意向客户经理列表 + getBussAccountManagerList(){ + apiService.general(applicationApi.getBussAccountManagerList, {},undefined, undefined).then((response: RestfulResponse) => { + // console.log(response); + if (response.code == Code.SUCCESS.code) { + this.mangerList=response.data; + // console.log(JSON.parse(response.data)) + + + // response.data.forEach((element: any[]) => { + // this.orgList.set(element[0],element[1]) + // }); + console.log(this.mangerList); + // console.log(this.phoneCardList) + } + + }); + } areaList = area; outcsinfo = { place: "请选择地区", //出行地点 }; showAddress = false; - + created(){ + // debugger;; + // let that = this; + //获取实名认证页面的数据 + eventBus.$on("idcard",function (this:any,data:any){ + console.log("I"+data); + this.idcard =data; + }.bind(this)); + + eventBus.$on("name",function (this:any,data:any){ + this.name = data; + }.bind(this)); + //如果之前申请过业务进行数据反显 this.getInfo(); + //获取意向机构列表 + this.getOrgList(); + //获取意向客户经理列表 + this.getBussAccountManagerList(); + }; @@ -312,14 +389,18 @@ export default class Intention extends Vue { this.showLoan = false; } - onConfirmOrg(orgValue: string) { - this.orgValue = orgValue; + onConfirmOrg(org: any) { + // console.table(org); + this.handleOrg = org.handleOrg; + this.orgValue=org.handleOrgValue; this.showOrg = false; } - onConfirmManager(mangerValue: string) { - this.mangerValue = mangerValue; - this.phoneCard = this.phoneCardList.get(mangerValue); + onConfirmManager(manager: any) { + this.managerValue = manager.managerValue; + this.accountManager = manager.accountManager; + this.phoneCard = manager.managerPhone; + this.showManager = false; } // 选项列表,children 代表子选项,支持多级嵌套 @@ -347,12 +428,16 @@ export default class Intention extends Vue { apiService.general(applicationApi.getInfo, {},undefined, undefined).then((response: RestfulResponse) => { // console.log(response); if (response.code == Code.SUCCESS.code) { + this.name =response.data.custName; this.phone =response.data.phone; - this.amount=response.data.applyAmt; + // this.amount=response.data.applyAmt; this.loanValue=response.data.loanUseType; //todo 地区 - this.orgValue=response.data.handleOrg; - this.mangerValue=response.data.accountManager; + this.handleOrg=response.data.handleOrg; + this.orgValue = response.data.handleOrgValue; + + this.managerValue =response.data.managerValue; + this.accountManager=response.data.accountManager; this.phoneCard=response.data.managerPhone } @@ -362,11 +447,13 @@ export default class Intention extends Vue { recognition() { let param = { - accountManager:this.mangerValue,//客户经理 - managerPhone:this.phoneCard,//客户电话 + accountManager:this.accountManager,//客户经理 + managerValue:this.managerValue,//客户经理号 + managerPhone:this.phoneCard,//客户经理电话 applyAmt:this.amount ,//申请金额 custName:this.name,//客户姓名 - handleOrg:this.orgValue,//意向机构 + handleOrg:this.handleOrg,//意向机构 + handleOrgValue: this.orgValue,//意向机构号 loanUseType:this.loanValue,//借款用途 paperId:this.idcard,//身份证号 phone:this.phone,//客户电话 diff --git a/src/views/recognition/Recognition.vue b/src/views/recognition/Recognition.vue index b794efe..1797e35 100644 --- a/src/views/recognition/Recognition.vue +++ b/src/views/recognition/Recognition.vue @@ -37,12 +37,12 @@ 无明显高光 照片清晰 - + - 下一步 + 下一步 @@ -50,6 +50,7 @@