Skip to content
项目
群组
代码片段
帮助
正在加载...
帮助
Support
提交反馈
为 GitLab 提交贡献
登录/注册
切换导航
M
mcep-h5
项目
项目
详情
动态
版本
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
计划
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
统计图
创建新议题
作业
提交
议题看板
打开侧边栏
jiangzaicheng
mcep-h5
提交
cb12ea70
提交
cb12ea70
编写于
11月 14, 2022
作者:
“grape”
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
优化登录 js逻辑,新增业务申请接口
上级
e044929d
变更
5
显示空白字符变更
内嵌
并排
正在显示
5 个修改的文件
包含
290 行增加
和
156 行删除
+290
-156
.env.dev
.env.dev
+3
-3
application.api.ts
src/constants/api/ms-application/application.api.ts
+16
-1
api.service.ts
src/services/api.service.ts
+1
-1
LoginView.vue
src/views/authentication/LoginView.vue
+8
-3
Intention.vue
src/views/recognition/Intention.vue
+262
-148
未找到文件。
.env.dev
浏览文件 @
cb12ea70
...
...
@@ -12,7 +12,7 @@ VUE_APP_CLIENT_SECRET = web-loong-secret
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
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_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
// 启动网关 (on | off)
...
...
src/constants/api/ms-application/application.api.ts
浏览文件 @
cb12ea70
import
{
MethodType
}
from
"
@/constants/enum/general/method-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
=
{
//新增上门营销
AddMarketing
:
{
...
...
@@ -232,6 +235,18 @@ const applicationApi = {
headerType
:
HeaderType
.
BASE
.
code
,
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
;
src/services/api.service.ts
浏览文件 @
cb12ea70
...
...
@@ -333,7 +333,7 @@ class ApiService {
}
}
// if (['local', 'production'].indexOf(process.env.NODE_ENV) == -1) {
console
.
log
(
'
**返回数据**
'
,
params
.
tc
,
data
);
//
console.log('**返回数据**', params.tc, data);
// }
return
data
;
}
else
if
(
data
.
code
==
-
1
)
{
...
...
src/views/authentication/LoginView.vue
浏览文件 @
cb12ea70
...
...
@@ -138,15 +138,20 @@ export default class LoginView extends Vue {
created
(){
//获取保存的登录账号
if
(
localStorage
.
getItem
(
"
loginNo
"
)
!=
null
)
if
(
localStorage
.
getItem
(
"
loginNo
"
)
!=
null
)
{
this
.
loginNo
=
String
(
localStorage
.
getItem
(
"
loginNo
"
));
}
//判断是否显示验证码
this
.
noChange
(
this
.
loginNo
);
//获取验证码剩余时间,并启动倒计时 ,禁用超链接
if
(
localStorage
.
getItem
(
"
smsTime
"
)
!=
null
){
this
.
time
=
Number
(
localStorage
.
getItem
(
"
smsTime
"
));
this
.
changeCmstotal
();
this
.
smsCss
=
"
smsCss
"
this
.
noChange
(
this
.
loginNo
);
}
...
...
src/views/recognition/Intention.vue
浏览文件 @
cb12ea70
...
...
@@ -8,15 +8,12 @@
-->
<
template
>
<div
class=
"body"
>
<div
class=
"rarle"
>
<tatle-bar
:tatle=
"tatleName"
></tatle-bar>
</div>
<scroller-view
v-calculate-height
pulldown=
"true"
:height=
"10000"
>
<scroller-view
v-calculate-height
pulldown=
"true"
:height=
"10000"
>
<div>
<div
class=
"layout"
>
<van-row
type=
"flex"
class=
"CoolName"
>
...
...
@@ -26,7 +23,11 @@
<van-row
type=
"flex"
class=
"layoutName"
>
<van-col
span=
"24"
>
<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-col>
</van-row>
...
...
@@ -52,10 +53,16 @@
<van-row
type=
"flex"
class=
"layoutName"
>
<van-col
span=
"24"
>
<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-col>
</van-row>
<van-row
type=
"flex"
class=
"layoutName"
>
<van-col
span=
"24"
>
<van-cell-group>
...
...
@@ -72,7 +79,15 @@
</van-row>
-->
<van-row
type=
"flex"
class=
"layoutName"
>
<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-picker
show-toolbar
...
...
@@ -85,12 +100,16 @@
</van-row>
<van-row
type=
"flex"
class=
"layoutName"
>
<van-col
span=
"24"
>
<van-field
:value=
"outcsinfo.place"
is-link
readonly
label=
"意向地区"
input-align=
"right"
placeholder=
"请选择所在地区"
@
click=
"onAddress"
/>
<van-popup
v-model=
"showAddress"
position=
"bottom"
>
<van-field
:value=
"outcsinfo.place"
is-link
readonly
label=
"意向地区"
input-align=
"right"
placeholder=
"请选择所在地区"
@
click=
"onAddress"
/>
<van-popup
v-model=
"showAddress"
position=
"bottom"
>
<van-area
title=
"请选择地区"
@
confirm=
"changeAddress"
...
...
@@ -101,12 +120,19 @@
</van-col>
</van-row>
<van-divider
:style=
"
{ margin: 0 }">
</van-divider>
<van-row
type=
"flex"
class=
"layoutName"
>
<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-picker
show-toolbar
...
...
@@ -118,12 +144,19 @@
</van-col>
</van-row>
<van-divider
:style=
"
{ margin: 0 }">
</van-divider>
<van-row
type=
"flex"
class=
"layoutName"
>
<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-picker
show-toolbar
...
...
@@ -139,7 +172,13 @@
<van-row
type=
"flex"
class=
"layoutName"
>
<van-col
span=
"24"
>
<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-col>
</van-row>
...
...
@@ -147,16 +186,26 @@
<van-row
type=
"flex"
class=
"layoutName"
>
<van-col
span=
"24"
>
<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-col>
</van-row>
</div>
</div>
</div>
</scroller-view>
</div>
</
template
>
...
...
@@ -167,9 +216,13 @@ import { Component, Vue, Prop, Watch, Emit } from "vue-property-decorator";
* title
*/
import
{
Picker
}
from
"
vant
"
;
import
{
Picker
,
Toast
}
from
"
vant
"
;
import
{
area
}
from
"
../../model/domain/areaData
"
;
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
);
@
Component
({
...
...
@@ -178,27 +231,27 @@ Vue.use(Picker);
export
default
class
Intention
extends
Vue
{
tatleName
=
"
产品意向申请
"
;
//身份证
idcard
=
"
232321119782
1
1
"
;
idcard
=
"
232321119782
2
1
"
;
//姓名
name
=
"
刘明明
"
;
//电话
phone
=
"
15665025053
"
;
phone
=
""
;
//贷款详情
varieties
=
"
一般经营性贷款
"
;
//借款金融
amount
=
""
;
amount
=
null
;
//借款期限
// borrow = "24月"
//借款用途
purposes
=
"
经营
"
;
purposes
=
""
;
//业务办理地区
// area = "黑龙江省-哈尔滨市-松北区"
//意向机构
intentions
=
"
哈尔滨农信社松北区枝江大道分社
"
;
intentions
=
""
;
//客户经理
customer
=
"
赵恒请
"
;
customer
=
""
;
//客户经理电话
phoneCard
:
any
=
""
;
phoneCard
:
any
=
""
;
//地区
show
=
false
;
fieldValue
=
""
;
...
...
@@ -209,9 +262,15 @@ export default class Intention extends Vue {
showManager
=
false
;
mangerValue
=
""
;
mangerList
=
[
"
吕晨涛
"
,
"
龙易轩
"
,
"
范丽
"
,
"
雷娟
"
,
"
郝芳
"
];
mangerList
=
[
"
吕晨涛
"
,
"
龙易轩
"
,
"
范丽
"
,
"
雷娟
"
,
"
郝芳
"
];
//phoneCardList = [["吕晨涛","13332323232"],["龙易轩","12321212121"],["范丽","15673989898"],["雷娟","15673981198"], ["郝芳","15622981198"]];
phoneCardList
=
new
Map
([[
"
吕晨涛
"
,
"
13332323232
"
],[
"
龙易轩
"
,
"
12321212121
"
],[
"
范丽
"
,
"
15673989898
"
],[
"
雷娟
"
,
"
15673981198
"
],
[
"
郝芳
"
,
"
15622981198
"
]]);
phoneCardList
=
new
Map
([
[
"
吕晨涛
"
,
"
13332323232
"
],
[
"
龙易轩
"
,
"
12321212121
"
],
[
"
范丽
"
,
"
15673989898
"
],
[
"
雷娟
"
,
"
15673981198
"
],
[
"
郝芳
"
,
"
15622981198
"
],
]);
//机构列表
orgList
=
[
"
哈尔滨道里区支行
"
,
"
哈尔滨松北区支行
"
];
...
...
@@ -221,12 +280,19 @@ export default class Intention extends Vue {
};
showAddress
=
false
;
created
(){
//如果之前申请过业务进行数据反显
this
.
getInfo
();
};
//借款用途
loanValue
=
''
showLoan
=
false
loanValue
=
""
;
showLoan
=
false
;
loanList
=
[
"
消费
"
,
"
经营
"
];
onAddress
()
{
this
.
showAddress
=
true
;
}
...
...
@@ -273,9 +339,57 @@ export default class Intention extends Vue {
// this.show = false;
// 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
()
{
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
({
name
:
"
LinSuccess
"
,
path
:
`/LinSuccess`
,
})
}
Toast
(
response
.
msg
+
""
);
});
}
}
...
...
编辑
预览
Markdown
格式
0%
请重试
or
添加新附件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
先完成此消息的编辑!
取消
想要评论请
注册
或
登录