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

优化登录 js逻辑,新增业务申请接口

上级 e044929d
...@@ -12,7 +12,7 @@ VUE_APP_CLIENT_SECRET = web-loong-secret ...@@ -12,7 +12,7 @@ VUE_APP_CLIENT_SECRET = web-loong-secret
VUE_APP_API_PREFIX = /api/v1 VUE_APP_API_PREFIX = /api/v1
// 网关服务 // 网关服务
VUE_APP_MS_GATEWAY_API = http://192.168.14.1:9140 VUE_APP_MS_GATEWAY_API = http://localhost:9140
// 业务服务 // 业务服务
...@@ -20,10 +20,10 @@ VUE_APP_AUTH_API = /ms-system/api/v1/sys-cust-info/permit_endpoint ...@@ -20,10 +20,10 @@ VUE_APP_AUTH_API = /ms-system/api/v1/sys-cust-info/permit_endpoint
VUE_APP_MS_SYSTEM_API = /ms-system/api/v1/sys-cust-info/permit_endpoint VUE_APP_MS_SYSTEM_API = /ms-system/api/v1/sys-cust-info/permit_endpoint
VUE_APP_MS_AUTH_API = http://82.157.46.222:9125/ms-auth VUE_APP_MS_AUTH_API = http://82.157.46.222:9125/ms-auth
VUE_APP_MS_NETTY_API = http://15.1.48.21:9140/ms-netty VUE_APP_MS_NETTY_API = http://15.1.48.21:9140/ms-netty
VUE_APP_MS_APPLICATION_API = http://15.1.48.21:9140/ms-application
VUE_APP_MS_APPLICATION_API = /ms-application
// 第三方服务 // 第三方服务
VUE_APP_QL_FORM_API = http://152.136.68.93:9018/ms-qing-long/api/v1/des-cache-info/permit_endpoint/query-cacheversion-by-appid-cachetype VUE_APP_QL_FORM_API = http://152.136.68.93:9018/ms-qing-long/api/v1/des-cache-info/permit_endpoint/query-cacheversion-by-appid-cachetype
// 启动网关 (on | off) // 启动网关 (on | off)
......
import { MethodType } from "@/constants/enum/general/method-type.enum"; import { MethodType } from "@/constants/enum/general/method-type.enum";
import { HeaderType } from "@/constants/enum/general/header-type.enum"; import { HeaderType } from "@/constants/enum/general/header-type.enum";
const prefix = `${process.env.VUE_APP_MS_APPLICATION_API}${process.env.VUE_APP_API_PREFIX}`; // const prefix = process.env.VUE_APP_MS_GATEWAY_API+process.env.VUE_APP_MS_APPLICATION_API+process.env.VUE_APP_API_PREFIX;
const prefix = "http://localhost:9145"+process.env.VUE_APP_MS_APPLICATION_API+process.env.VUE_APP_API_PREFIX;
console.log(prefix+"============")
const applicationApi = { const applicationApi = {
//新增上门营销 //新增上门营销
AddMarketing: { AddMarketing: {
...@@ -232,6 +235,18 @@ const applicationApi = { ...@@ -232,6 +235,18 @@ const applicationApi = {
headerType: HeaderType.BASE.code, headerType: HeaderType.BASE.code,
MCEP: 'MCEP' MCEP: 'MCEP'
}, },
savePersBusiAccept:{
url: prefix + "/persBusiAccept/savePersBusiAccept",
method: MethodType.POST.code,
header: HeaderType.AUTH.code,
// MCEP: 'MCEP'
},
getInfo:{
url: prefix + "/persBusiAccept/getPersBusiAcceptByPaperId",
method: MethodType.GET.code,
header: HeaderType.AUTH.code,
// MCEP: 'MCEP'
},
}; };
export default applicationApi; export default applicationApi;
...@@ -333,7 +333,7 @@ class ApiService { ...@@ -333,7 +333,7 @@ class ApiService {
} }
} }
// if (['local', 'production'].indexOf(process.env.NODE_ENV) == -1) { // if (['local', 'production'].indexOf(process.env.NODE_ENV) == -1) {
console.log('**返回数据**', params.tc, data); // console.log('**返回数据**', params.tc, data);
// } // }
return data; return data;
} else if (data.code == -1) { } else if (data.code == -1) {
......
...@@ -138,15 +138,20 @@ export default class LoginView extends Vue { ...@@ -138,15 +138,20 @@ export default class LoginView extends Vue {
created(){ created(){
//获取保存的登录账号 //获取保存的登录账号
if(localStorage.getItem("loginNo")!=null) if(localStorage.getItem("loginNo")!=null){
this.loginNo = String(localStorage.getItem("loginNo")); this.loginNo = String(localStorage.getItem("loginNo"));
}
//判断是否显示验证码
this.noChange(this.loginNo);
//获取验证码剩余时间,并启动倒计时 ,禁用超链接 //获取验证码剩余时间,并启动倒计时 ,禁用超链接
if(localStorage.getItem("smsTime")!=null){ if(localStorage.getItem("smsTime")!=null){
this.time =Number(localStorage.getItem("smsTime")); this.time =Number(localStorage.getItem("smsTime"));
this.changeCmstotal(); this.changeCmstotal();
this.smsCss="smsCss" this.smsCss="smsCss"
this.noChange(this.loginNo);
} }
......
...@@ -8,15 +8,12 @@ ...@@ -8,15 +8,12 @@
--> -->
<template> <template>
<div class="body"> <div class="body">
<div class="rarle"> <div class="rarle">
<tatle-bar :tatle="tatleName"></tatle-bar> <tatle-bar :tatle="tatleName"></tatle-bar>
</div> </div>
<scroller-view v-calculate-height pulldown="true" :height="10000" > <scroller-view v-calculate-height pulldown="true" :height="10000">
<div> <div>
<div class="layout"> <div class="layout">
<van-row type="flex" class="CoolName"> <van-row type="flex" class="CoolName">
...@@ -26,7 +23,11 @@ ...@@ -26,7 +23,11 @@
<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="idcard" input-align="right" /> <van-field
label="身份证号"
v-model="idcard"
input-align="right"
/>
</van-cell-group> </van-cell-group>
</van-col> </van-col>
</van-row> </van-row>
...@@ -52,10 +53,16 @@ ...@@ -52,10 +53,16 @@
<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="varieties" input-align="right" /> <van-field
label="贷款品种"
v-model="varieties"
input-align="right"
/>
</van-cell-group> </van-cell-group>
</van-col> </van-col>
</van-row> </van-row>
<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>
...@@ -72,7 +79,15 @@ ...@@ -72,7 +79,15 @@
</van-row> --> </van-row> -->
<van-row type="flex" class="layoutName"> <van-row type="flex" class="layoutName">
<van-col span="24"> <van-col span="24">
<van-field is-link readonly :value="loanValue" label="借款用途" input-align="right" placeholder="请选择借款用途" @click="showLoan = true" /> <van-field
is-link
readonly
:value="loanValue"
label="借款用途"
input-align="right"
placeholder="请选择借款用途"
@click="showLoan = true"
/>
<van-popup v-model="showLoan" round position="bottom"> <van-popup v-model="showLoan" round position="bottom">
<van-picker <van-picker
show-toolbar show-toolbar
...@@ -85,12 +100,16 @@ ...@@ -85,12 +100,16 @@
</van-row> </van-row>
<van-row type="flex" class="layoutName"> <van-row type="flex" class="layoutName">
<van-col span="24"> <van-col span="24">
<van-field :value="outcsinfo.place" is-link readonly label="意向地区" input-align="right" placeholder="请选择所在地区" @click="onAddress" /> <van-field
<van-popup :value="outcsinfo.place"
v-model="showAddress" is-link
position="bottom" readonly
label="意向地区"
> input-align="right"
placeholder="请选择所在地区"
@click="onAddress"
/>
<van-popup v-model="showAddress" position="bottom">
<van-area <van-area
title="请选择地区" title="请选择地区"
@confirm="changeAddress" @confirm="changeAddress"
...@@ -101,12 +120,19 @@ ...@@ -101,12 +120,19 @@
</van-col> </van-col>
</van-row> </van-row>
<van-divider :style="{ margin: 0 }"></van-divider> <van-divider :style="{ margin: 0 }"></van-divider>
<van-row type="flex" class="layoutName"> <van-row type="flex" class="layoutName">
<van-col span="24"> <van-col span="24">
<van-field is-link readonly :value="orgValue" label="意向机构" input-align="right" placeholder="请选择意向机构" @click="showOrg = true" /> <van-field
is-link
readonly
:value="orgValue"
label="意向机构"
input-align="right"
placeholder="请选择意向机构"
@click="showOrg = true"
/>
<van-popup v-model="showOrg" round position="bottom"> <van-popup v-model="showOrg" round position="bottom">
<van-picker <van-picker
show-toolbar show-toolbar
...@@ -118,12 +144,19 @@ ...@@ -118,12 +144,19 @@
</van-col> </van-col>
</van-row> </van-row>
<van-divider :style="{ margin: 0 }"></van-divider> <van-divider :style="{ margin: 0 }"></van-divider>
<van-row type="flex" class="layoutName"> <van-row type="flex" class="layoutName">
<van-col span="24"> <van-col span="24">
<van-field is-link readonly :value="mangerValue" label="意向客户经理" input-align="right" placeholder="请选择意向客户经理" @click="showManager = true" /> <van-field
is-link
readonly
:value="mangerValue"
label="意向客户经理"
input-align="right"
placeholder="请选择意向客户经理"
@click="showManager = true"
/>
<van-popup v-model="showManager" round position="bottom"> <van-popup v-model="showManager" round position="bottom">
<van-picker <van-picker
show-toolbar show-toolbar
...@@ -139,7 +172,13 @@ ...@@ -139,7 +172,13 @@
<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 readonly label="客户经理电话" :value="phoneCard" input-align="right" /> <van-field
readonly
label="客户经理电话"
v-model="phoneCard"
input-align="right"
/>
</van-cell-group> </van-cell-group>
</van-col> </van-col>
</van-row> </van-row>
...@@ -147,16 +186,26 @@ ...@@ -147,16 +186,26 @@
<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-button class="vbutton" size="normal" block type="info" style="width: 92%; margin:0px 4%; background-color: #3672F1; border-radius: 5px;" @click="recognition()">立即提交</van-button> <van-button
class="vbutton"
size="normal"
block
type="info"
style="
width: 92%;
margin: 0px 4%;
background-color: #3672f1;
border-radius: 5px;
"
@click="recognition()"
>立即提交</van-button
>
</van-cell-group> </van-cell-group>
</van-col> </van-col>
</van-row> </van-row>
</div> </div>
</div> </div>
</div> </div>
</scroller-view> </scroller-view>
</div> </div>
</template> </template>
...@@ -167,9 +216,13 @@ import { Component, Vue, Prop, Watch, Emit } from "vue-property-decorator"; ...@@ -167,9 +216,13 @@ import { Component, Vue, Prop, Watch, Emit } from "vue-property-decorator";
* title * title
*/ */
import { Picker } from "vant"; import { Picker, Toast } from "vant";
import { area } from "../../model/domain/areaData"; import { area } from "../../model/domain/areaData";
import { Area } from "vant"; import { Area } from "vant";
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";
Vue.use(Picker); Vue.use(Picker);
@Component({ @Component({
...@@ -178,27 +231,27 @@ Vue.use(Picker); ...@@ -178,27 +231,27 @@ Vue.use(Picker);
export default class Intention extends Vue { export default class Intention extends Vue {
tatleName = "产品意向申请"; tatleName = "产品意向申请";
//身份证 //身份证
idcard = "23232111978211"; idcard = "23232111978221";
//姓名 //姓名
name = "刘明明"; name = "刘明明";
//电话 //电话
phone = "15665025053"; phone = "";
//贷款详情 //贷款详情
varieties = "一般经营性贷款"; varieties = "一般经营性贷款";
//借款金融 //借款金融
amount = ""; amount = null;
//借款期限 //借款期限
// borrow = "24月" // borrow = "24月"
//借款用途 //借款用途
purposes = "经营"; purposes = "";
//业务办理地区 //业务办理地区
// area = "黑龙江省-哈尔滨市-松北区" // area = "黑龙江省-哈尔滨市-松北区"
//意向机构 //意向机构
intentions = "哈尔滨农信社松北区枝江大道分社"; intentions = "";
//客户经理 //客户经理
customer = "赵恒请"; customer = "";
//客户经理电话 //客户经理电话
phoneCard: any= ""; phoneCard: any = "";
//地区 //地区
show = false; show = false;
fieldValue = ""; fieldValue = "";
...@@ -209,9 +262,15 @@ export default class Intention extends Vue { ...@@ -209,9 +262,15 @@ export default class Intention extends Vue {
showManager = false; showManager = false;
mangerValue = ""; mangerValue = "";
mangerList = ["吕晨涛", "龙易轩","范丽","雷娟","郝芳"]; mangerList = ["吕晨涛", "龙易轩", "范丽", "雷娟", "郝芳"];
//phoneCardList = [["吕晨涛","13332323232"],["龙易轩","12321212121"],["范丽","15673989898"],["雷娟","15673981198"], ["郝芳","15622981198"]]; //phoneCardList = [["吕晨涛","13332323232"],["龙易轩","12321212121"],["范丽","15673989898"],["雷娟","15673981198"], ["郝芳","15622981198"]];
phoneCardList = new Map([["吕晨涛","13332323232"],["龙易轩","12321212121"],["范丽","15673989898"],["雷娟","15673981198"], ["郝芳","15622981198"]]); phoneCardList = new Map([
["吕晨涛", "13332323232"],
["龙易轩", "12321212121"],
["范丽", "15673989898"],
["雷娟", "15673981198"],
["郝芳", "15622981198"],
]);
//机构列表 //机构列表
orgList = ["哈尔滨道里区支行", "哈尔滨松北区支行"]; orgList = ["哈尔滨道里区支行", "哈尔滨松北区支行"];
...@@ -221,12 +280,19 @@ export default class Intention extends Vue { ...@@ -221,12 +280,19 @@ export default class Intention extends Vue {
}; };
showAddress = false; showAddress = false;
created(){
//如果之前申请过业务进行数据反显
this.getInfo();
};
//借款用途 //借款用途
loanValue ='' loanValue = "";
showLoan = false showLoan = false;
loanList = ["消费", "经营"]; loanList = ["消费", "经营"];
onAddress() { onAddress() {
this.showAddress = true; this.showAddress = true;
} }
...@@ -273,9 +339,57 @@ export default class Intention extends Vue { ...@@ -273,9 +339,57 @@ export default class Intention extends Vue {
// this.show = false; // this.show = false;
// this.fieldValue = selectedOptions.map((option) => option.text).join('/'); // this.fieldValue = selectedOptions.map((option) => option.text).join('/');
// } // }
//获取反显信息
getInfo(){
applicationApi.getInfo.url=applicationApi.getInfo.url+"/"+this.idcard;
// console.log(applicationApi.getInfo.url)
apiService.general(applicationApi.getInfo, {},undefined, undefined).then((response: RestfulResponse) => {
// console.log(response);
if (response.code == Code.SUCCESS.code) {
this.phone =response.data.phone;
this.amount=response.data.applyAmt;
this.loanValue=response.data.loanUseType;
//todo 地区
this.orgValue=response.data.handleOrg;
this.mangerValue=response.data.accountManager;
this.phoneCard=response.data.managerPhone
}
Toast(response.msg + "");
});
}
recognition() { recognition() {
let param = {
accountManager:this.mangerValue,//客户经理
managerPhone:this.phoneCard,//客户电话
applyAmt:this.amount ,//申请金额
custName:this.name,//客户姓名
handleOrg:this.orgValue,//意向机构
loanUseType:this.loanValue,//借款用途
paperId:this.idcard,//身份证号
phone:this.phone,//客户电话
productName:this.varieties,//产品名称
// loginNo: this.phone,
// //短信验证码TODO
// phoneVerifyCode: this.sms,
// //数字渠道
// method: "3",
// pwd: this.password,
// serviceAgreeStatus: this.checked
};
apiService.general(applicationApi.savePersBusiAccept, undefined, param, undefined).then((response: RestfulResponse) => {
console.log(response);
if (response.code == Code.SUCCESS.code) {
this.$router.push({ this.$router.push({
name: "LinSuccess", path: `/LinSuccess`,
})
}
Toast(response.msg + "");
}); });
} }
} }
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册