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

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

上级 cb12ea70
...@@ -247,6 +247,18 @@ const applicationApi = { ...@@ -247,6 +247,18 @@ const applicationApi = {
header: HeaderType.AUTH.code, header: HeaderType.AUTH.code,
// MCEP: 'MCEP' // 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; export default applicationApi;
...@@ -257,7 +257,7 @@ export default class LoginView extends Vue { ...@@ -257,7 +257,7 @@ export default class LoginView extends Vue {
} }
apiService.general(loginApi.loginSystem, undefined, param, undefined).then((response: RestfulResponse) => { apiService.general(loginApi.loginSystem, undefined, param, undefined).then((response: RestfulResponse) => {
console.log(response); console.log(response);
//发送请求就保存账号 //发送请求就保存账号 账号:18746555531 密码:123456
localStorage.setItem('loginNo', this.loginNo); localStorage.setItem('loginNo', this.loginNo);
// debugger; // debugger;
if (response.code == Code.SUCCESS.code) { if (response.code == Code.SUCCESS.code) {
......
<!-- <!--
* @Author: jiangzaicheng jiangzaicheng_jzc@163.com * @Author: jiangzaicheng jiangzaicheng_jzc@163.com
* @Date: 2022-07-07 16:13:13 * @Date: 2022-07-07 16:13:13
* @LastEditors: jiangzaicheng jiangzaicheng_jzc@163.com * @LastEditors: zhaowei
* @LastEditTime: 2022-07-28 14:56:06 * @LastEditTime: 2022-11-24 14:56:06
* @FilePath: \mcep-h5\src\components\common\Bottom.vue * @FilePath: \mcep-h5\src\components\common\Bottom.vue
* @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
--> -->
...@@ -66,7 +66,7 @@ ...@@ -66,7 +66,7 @@
<van-row type="flex" class="layoutName"> <van-row type="flex" class="layoutName">
<van-col span="24"> <van-col span="24">
<van-cell-group> <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-cell-group>
</van-col> </van-col>
</van-row> </van-row>
...@@ -127,7 +127,7 @@ ...@@ -127,7 +127,7 @@
<van-field <van-field
is-link is-link
readonly readonly
:value="orgValue" :value="handleOrg"
label="意向机构" label="意向机构"
input-align="right" input-align="right"
placeholder="请选择意向机构" placeholder="请选择意向机构"
...@@ -139,7 +139,14 @@ ...@@ -139,7 +139,14 @@
:columns="orgList" :columns="orgList"
@cancel="showOrg = false" @cancel="showOrg = false"
@confirm="onConfirmOrg" @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-popup>
</van-col> </van-col>
</van-row> </van-row>
...@@ -151,7 +158,7 @@ ...@@ -151,7 +158,7 @@
<van-field <van-field
is-link is-link
readonly readonly
:value="mangerValue" :value="accountManager"
label="意向客户经理" label="意向客户经理"
input-align="right" input-align="right"
placeholder="请选择意向客户经理" placeholder="请选择意向客户经理"
...@@ -163,7 +170,14 @@ ...@@ -163,7 +170,14 @@
:columns="mangerList" :columns="mangerList"
@cancel="showManager = false" @cancel="showManager = false"
@confirm="onConfirmManager" @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-popup>
</van-col> </van-col>
</van-row> </van-row>
...@@ -223,17 +237,22 @@ import applicationApi from "@/constants/api/ms-application/application.api"; ...@@ -223,17 +237,22 @@ import applicationApi from "@/constants/api/ms-application/application.api";
import apiService from "@/services/api.service"; import apiService from "@/services/api.service";
import { Code } from "@/constants/enum/general/code.enum"; import { Code } from "@/constants/enum/general/code.enum";
import { RestfulResponse } from "@/model/domain/RestfulResponse"; import { RestfulResponse } from "@/model/domain/RestfulResponse";
import eventBus from "@/services/goBackEntity"
import { json } from "mathjs";
import { List } from "echarts";
Vue.use(Picker); Vue.use(Picker);
@Component({ @Component({
name: "Intention", name: "Intention",
}) })
export default class Intention extends Vue { export default class Intention extends Vue {
tatleName = "产品意向申请"; tatleName = "产品意向申请";
//身份证 //身份证
idcard = "23232111978221"; idcard = "23232111978221";
//姓名 //姓名
name = "刘明明"; name = "";
//电话 //电话
phone = ""; phone = "";
//贷款详情 //贷款详情
...@@ -248,8 +267,6 @@ export default class Intention extends Vue { ...@@ -248,8 +267,6 @@ export default class Intention extends Vue {
// area = "黑龙江省-哈尔滨市-松北区" // area = "黑龙江省-哈尔滨市-松北区"
//意向机构 //意向机构
intentions = ""; intentions = "";
//客户经理
customer = "";
//客户经理电话 //客户经理电话
phoneCard: any = ""; phoneCard: any = "";
//地区 //地区
...@@ -258,32 +275,92 @@ export default class Intention extends Vue { ...@@ -258,32 +275,92 @@ export default class Intention extends Vue {
cascaderValue = ""; cascaderValue = "";
showOrg = false; showOrg = false;
handleOrg=""
orgValue = ""; orgValue = "";
showManager = false; showManager = false;
mangerValue = ""; accountManager = "";
mangerList = ["吕晨涛", "龙易轩", "范丽", "雷娟", "郝芳"]; managerValue = "";
//phoneCardList = [["吕晨涛","13332323232"],["龙易轩","12321212121"],["范丽","15673989898"],["雷娟","15673981198"], ["郝芳","15622981198"]];
phoneCardList = new Map([ // mangerList = ["吕晨涛", "龙易轩", "范丽", "雷娟", "郝芳",""];
["吕晨涛", "13332323232"], // phoneCardList = [["吕晨涛","13332323232"],["龙易轩","12321212121"],["范丽","15673989898"],["雷娟","15673981198"], ["郝芳","15622981198"]];
["龙易轩", "12321212121"], // // phoneCardList = new Map([
["范丽", "15673989898"], // // ["吕晨涛", "13332323232"],
["雷娟", "15673981198"], // // ["龙易轩", "12321212121"],
["郝芳", "15622981198"], // // ["范丽", "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; areaList = area;
outcsinfo = { outcsinfo = {
place: "请选择地区", //出行地点 place: "请选择地区", //出行地点
}; };
showAddress = false; showAddress = false;
created(){ 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.getInfo();
//获取意向机构列表
this.getOrgList();
//获取意向客户经理列表
this.getBussAccountManagerList();
}; };
...@@ -312,14 +389,18 @@ export default class Intention extends Vue { ...@@ -312,14 +389,18 @@ export default class Intention extends Vue {
this.showLoan = false; this.showLoan = false;
} }
onConfirmOrg(orgValue: string) { onConfirmOrg(org: any) {
this.orgValue = orgValue; // console.table(org);
this.handleOrg = org.handleOrg;
this.orgValue=org.handleOrgValue;
this.showOrg = false; this.showOrg = false;
} }
onConfirmManager(mangerValue: string) { onConfirmManager(manager: any) {
this.mangerValue = mangerValue; this.managerValue = manager.managerValue;
this.phoneCard = this.phoneCardList.get(mangerValue); this.accountManager = manager.accountManager;
this.phoneCard = manager.managerPhone;
this.showManager = false; this.showManager = false;
} }
// 选项列表,children 代表子选项,支持多级嵌套 // 选项列表,children 代表子选项,支持多级嵌套
...@@ -347,12 +428,16 @@ export default class Intention extends Vue { ...@@ -347,12 +428,16 @@ export default class Intention extends Vue {
apiService.general(applicationApi.getInfo, {},undefined, undefined).then((response: RestfulResponse) => { apiService.general(applicationApi.getInfo, {},undefined, undefined).then((response: RestfulResponse) => {
// console.log(response); // console.log(response);
if (response.code == Code.SUCCESS.code) { if (response.code == Code.SUCCESS.code) {
this.name =response.data.custName;
this.phone =response.data.phone; this.phone =response.data.phone;
this.amount=response.data.applyAmt; // this.amount=response.data.applyAmt;
this.loanValue=response.data.loanUseType; this.loanValue=response.data.loanUseType;
//todo 地区 //todo 地区
this.orgValue=response.data.handleOrg; this.handleOrg=response.data.handleOrg;
this.mangerValue=response.data.accountManager; this.orgValue = response.data.handleOrgValue;
this.managerValue =response.data.managerValue;
this.accountManager=response.data.accountManager;
this.phoneCard=response.data.managerPhone this.phoneCard=response.data.managerPhone
} }
...@@ -362,11 +447,13 @@ export default class Intention extends Vue { ...@@ -362,11 +447,13 @@ export default class Intention extends Vue {
recognition() { recognition() {
let param = { let param = {
accountManager:this.mangerValue,//客户经理 accountManager:this.accountManager,//客户经理
managerPhone:this.phoneCard,//客户电话 managerValue:this.managerValue,//客户经理号
managerPhone:this.phoneCard,//客户经理电话
applyAmt:this.amount ,//申请金额 applyAmt:this.amount ,//申请金额
custName:this.name,//客户姓名 custName:this.name,//客户姓名
handleOrg:this.orgValue,//意向机构 handleOrg:this.handleOrg,//意向机构
handleOrgValue: this.orgValue,//意向机构号
loanUseType:this.loanValue,//借款用途 loanUseType:this.loanValue,//借款用途
paperId:this.idcard,//身份证号 paperId:this.idcard,//身份证号
phone:this.phone,//客户电话 phone:this.phone,//客户电话
......
...@@ -37,12 +37,12 @@ ...@@ -37,12 +37,12 @@
<van-col span="8">无明显高光</van-col> <van-col span="8">无明显高光</van-col>
<van-col span="8">照片清晰</van-col> <van-col span="8">照片清晰</van-col>
</van-row> </van-row>
<van-form style="margin-top:4%"> <van-form style="margin-top:4%" @submit="volick()">
<van-field v-model="pointCard" name="身份证号" label="身份证号" placeholder="身份证号" <van-field v-model="pointCard" name="身份证号" label="身份证号" placeholder="身份证号"
:rules="[{ required: true, message: '请填写身份证号' }]" /> :rules="[{ required: true, message: '请填写身份证号' }]" />
<van-field v-model="name" name="姓名" label="姓名" placeholder="姓名" :rules="[{ required: true, message: '请填写姓名' }]" /> <van-field v-model="name" name="姓名" label="姓名" placeholder="姓名" :rules="[{ required: true, message: '请填写姓名' }]" />
<div style="margin: 16px;"> <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> </div>
</van-form> </van-form>
</div> </div>
...@@ -50,6 +50,7 @@ ...@@ -50,6 +50,7 @@
<script lang="ts"> <script lang="ts">
import { Component, Vue, Prop, Watch, Emit } from "vue-property-decorator"; import { Component, Vue, Prop, Watch, Emit } from "vue-property-decorator";
import eventBus from "@/services/goBackEntity"
/* /*
* title * title
*/ */
...@@ -58,13 +59,18 @@ import { Component, Vue, Prop, Watch, Emit } from "vue-property-decorator"; ...@@ -58,13 +59,18 @@ import { Component, Vue, Prop, Watch, Emit } from "vue-property-decorator";
}) })
export default class Recognition extends Vue { export default class Recognition extends Vue {
//身份证号 //身份证号
pointCard: string = ""; pointCard: string = "23232111978221";
//姓名 //姓名
name: string = ""; name: string = "";
//实名认证 //实名认证
tatleName = "实名认证" tatleName = "实名认证"
//button //button
volick(){ volick(){
eventBus.$emit("idcard",this.pointCard);
console.log(this.pointCard+"r")
eventBus.$emit("name",this.name);
this.$router.push({ this.$router.push({
name: `Agreement`, name: `Agreement`,
}) })
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册