提交 484df916 编写于 作者: “grape”'s avatar “grape”

个人业务相关接口联调与优化

上级 cb12ea70
......@@ -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;
......@@ -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) {
......
<!--
* @Author: jiangzaicheng jiangzaicheng_jzc@163.com
* @Date: 2022-07-07 16:13:13
* @LastEditors: jiangzaicheng jiangzaicheng_jzc@163.com
* @LastEditTime: 2022-07-28 14:56:06
* @LastEditors: zhaowei
* @LastEditTime: 2022-11-24 14:56:06
* @FilePath: \mcep-h5\src\components\common\Bottom.vue
* @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
-->
......@@ -66,7 +66,7 @@
<van-row type="flex" class="layoutName">
<van-col span="24">
<van-cell-group>
<van-field label="借款金额" v-model="amount" input-align="right" />
<van-field label="借款金额" placeholder="请输入借款金额" v-model="amount" input-align="right" />
</van-cell-group>
</van-col>
</van-row>
......@@ -127,7 +127,7 @@
<van-field
is-link
readonly
:value="orgValue"
:value="handleOrg"
label="意向机构"
input-align="right"
placeholder="请选择意向机构"
......@@ -139,7 +139,14 @@
:columns="orgList"
@cancel="showOrg = false"
@confirm="onConfirmOrg"
/>
>
<template #option="option">
<div style=" display: flex; flex-direction:colum; align-item: center;">
<div>{{option.handleOrg}}</div>
</div>
</template>
</van-picker>
</van-popup>
</van-col>
</van-row>
......@@ -151,7 +158,7 @@
<van-field
is-link
readonly
:value="mangerValue"
:value="accountManager"
label="意向客户经理"
input-align="right"
placeholder="请选择意向客户经理"
......@@ -163,7 +170,14 @@
:columns="mangerList"
@cancel="showManager = false"
@confirm="onConfirmManager"
/>
>
<template #option="option">
<div style=" display: flex; flex-direction:colum; align-item: center;">
<div>{{option.accountManager}}</div>
</div>
</template>
</van-picker>
</van-popup>
</van-col>
</van-row>
......@@ -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,//客户电话
......
......@@ -37,12 +37,12 @@
<van-col span="8">无明显高光</van-col>
<van-col span="8">照片清晰</van-col>
</van-row>
<van-form style="margin-top:4%">
<van-form style="margin-top:4%" @submit="volick()">
<van-field v-model="pointCard" name="身份证号" label="身份证号" placeholder="身份证号"
:rules="[{ required: true, message: '请填写身份证号' }]" />
<van-field v-model="name" name="姓名" label="姓名" placeholder="姓名" :rules="[{ required: true, message: '请填写姓名' }]" />
<div style="margin: 16px;">
<van-button class="vbutton" style="background-color: #3672F1; border-radius: 5px; " block type="info" native-type="submit" @click="volick()">下一步</van-button>
<van-button class="vbutton" style="background-color: #3672F1; border-radius: 5px; " block type="info" native-type="submit">下一步</van-button>
</div>
</van-form>
</div>
......@@ -50,6 +50,7 @@
<script lang="ts">
import { Component, Vue, Prop, Watch, Emit } from "vue-property-decorator";
import eventBus from "@/services/goBackEntity"
/*
* title
*/
......@@ -58,13 +59,18 @@ import { Component, Vue, Prop, Watch, Emit } from "vue-property-decorator";
})
export default class Recognition extends Vue {
//身份证号
pointCard: string = "";
pointCard: string = "23232111978221";
//姓名
name: string = "";
//实名认证
tatleName = "实名认证"
//button
volick(){
eventBus.$emit("idcard",this.pointCard);
console.log(this.pointCard+"r")
eventBus.$emit("name",this.name);
this.$router.push({
name: `Agreement`,
})
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册