Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
丽
丽人贷管理后台
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
百灵美选
丽人贷管理后台
Commits
20f70885
Commit
20f70885
authored
Jun 09, 2022
by
caimeng
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
保存一下
parent
73545cd7
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
86 additions
and
30 deletions
+86
-30
approval.vue
src/components/approval.vue
+85
-29
approval.vue
src/views/credit/approval.vue
+1
-1
No files found.
src/components/approval.vue
View file @
20f70885
...
...
@@ -9,8 +9,21 @@
<div
class=
'page'
>
<!--搜索-->
<el-form
ref=
'dForm'
label-suffix=
':'
label-width=
'120px'
:rules=
'rules'
:model=
'form'
class=
'form-inline'
>
<el-form-item
label=
'申请额度(元)'
>
<el-row>
<el-col
:span=
'14'
>
<el-input
v-model=
'form.applyAmount'
disabled
style=
'width: 100%;'
clearable
/>
</el-col>
</el-row>
</el-form-item>
<el-form-item
prop=
'perAllotAmount'
label=
'人审额度(元)'
>
<el-input
v-model=
'form.perAllotAmount'
clearable
placeholder=
'请输入人审额度'
/>
<el-row>
<el-col
:span=
'14'
>
<el-input
v-model=
'form.perAllotAmount'
style=
'width: 100%;'
clearable
placeholder=
'请输入人审额度'
/>
</el-col>
</el-row>
</el-form-item>
<template
v-if=
'searchData!==null'
>
<el-form-item
prop=
'capitalCode'
label=
'选择资方'
>
...
...
@@ -18,36 +31,40 @@
<el-col
:span=
'14'
>
<el-select
v-model=
'form.capitalCode'
style=
'width: 100%;'
clearable
>
<el-option
v-for=
'(
item
,index) in searchData.financierResponseList'
v-for=
'(
f
,index) in searchData.financierResponseList'
:key=
'index'
:value=
'item.capitalCode'
:label=
'item.message'
>
@
click
.
native=
'handleCapitalChange(f)'
:value=
'f.capitalCode'
:label=
'f.message'
>
</el-option>
</el-select>
</el-col>
<template
v-if=
'form.capitalCode==="FENGSHENGBUSINESS"'
>
<el-col
:span=
'8'
>
<el-button
style=
'margin-left: 10px'
type=
'primary'
@
click=
'handleRisk'
>
风审查询
</el-button>
<el-button
style=
'margin-left: 10px'
:disabled=
'hasRisk'
type=
'primary'
@
click=
'handleRisk'
>
风审查询
</el-button>
</el-col>
</
template
>
</el-row>
</el-form-item>
</template>
<el-form-item
prop=
'perAllotAmount'
label=
'风审查询结果'
>
<
template
v-if=
'form.capitalCode==="FENGSHENGBUSINESS"'
>
<el-form-item
prop=
'riskResult'
label=
'风审查询结果'
>
<el-tag
v-if=
'riskResult'
>
结果
</el-tag>
<el-tag
v-else
type=
'info'
size=
'mini'
>
结果未出
</el-tag>
</el-form-item>
<el-form-item
prop=
'memo'
label=
'备注'
>
<el-input
v-model=
'form.memo'
type=
'textarea'
clearable
placeholder=
'请输入备注'
/>
</
template
>
<el-form-item
prop=
'memo'
label=
'
审批
备注'
>
<el-input
v-model=
'form.memo'
type=
'textarea'
clearable
placeholder=
'请输入
审批
备注'
/>
</el-form-item>
<el-form-item
prop=
'approveStatus'
label=
'审批意见'
>
<
template
v-if=
'searchData!==null'
>
<el-radio-group
v-model=
'form.approve
Opinion
'
>
<el-radio
v-for=
'(
item,index) in searchData.allotOpinionEnumResponseList
'
<el-radio-group
v-model=
'form.approve
Status
'
>
<el-radio
v-for=
'(
a,index) in searchData.opinionEnumResponses
'
:key=
'index'
:label=
'
item.code'
>
{{
item
.
desc
}}
:label=
'
a.code'
>
{{
a
.
desc
}}
</el-radio>
</el-radio-group>
</
template
>
...
...
@@ -81,12 +98,26 @@
},
data
()
{
return
{
financeList
:
[],
rules
:
{
riskResult
:
[
{
required
:
true
,
trigger
:
'change'
,
message
:
'风审结果未出'
}
],
approveStatus
:
[
{
required
:
true
,
trigger
:
'change'
,
message
:
'请选择审批意见'
}
],
capitalCode
:
[
{
required
:
true
,
trigger
:
'
blur
'
,
trigger
:
'
change
'
,
message
:
'请选择放款资方'
}
],
...
...
@@ -95,14 +126,35 @@
required
:
true
,
trigger
:
'blur'
,
message
:
'请输入人审额度'
},
{
validator
:
(
rule
,
value
,
callback
)
=>
{
const
reg
=
/^
\d
+$/
if
(
!
reg
.
test
(
value
))
{
callback
(
new
Error
(
'请输入合法的额度'
))
}
else
{
callback
()
}
},
trigger
:
'blur'
}
],
memo
:
[
{
required
:
true
,
trigger
:
'blur'
,
message
:
'请输入审批备注'
}
]
},
hasRisk
:
false
,
riskResult
:
''
,
form
:
{
applyAmount
:
''
,
approveStatus
:
''
,
capitalCode
:
''
,
creditNo
:
''
,
loanSign
:
''
,
memo
:
''
,
perAllotAmount
:
''
,
userId
:
''
...
...
@@ -112,30 +164,34 @@
computed
:
{
...
mapGetters
([
'searchData'
,
'user'
])
},
async
crea
ted
()
{
async
moun
ted
()
{
console
.
log
(
this
.
item
,
'nash '
)
if
(
this
.
item
!==
null
)
{
this
.
form
.
preCreditNo
=
this
.
item
.
preCreditNo
const
{
applyAmount
,
creditNo
}
=
this
.
item
this
.
form
.
applyAmount
=
this
.
money
(
applyAmount
)
this
.
form
.
creditNo
=
creditNo
// 初始化丰盛查询结果
await
this
.
initRiskResult
()
}
},
methods
:
{
// 资金方选择下拉
handleCapitalChange
(
item
)
{
if
(
item
)
{
const
{
loanSign
}
=
item
this
.
form
.
loanSign
=
loanSign
}
},
// 风审查询
async
handleRisk
()
{
if
(
!
this
.
hasRisk
)
{
const
{
creditNo
,
loanIntentionNum
}
=
this
.
item
console
.
log
(
loanIntentionNum
,
'那啥'
)
const
creditAmount
=
this
.
form
.
perAllotAmount
if
(
!
creditAmount
&&
/^
[
0-9
]
*$/
.
test
(
creditAmount
))
{
if
(
!
creditAmount
||
!
/^
[
0-9
]
*$/
.
test
(
creditAmount
))
{
this
.
$message
({
type
:
'error'
,
message
:
'请输入正确的
审批金额!
'
message
:
'请输入正确的
额度
'
})
return
}
...
...
@@ -146,7 +202,6 @@
creditAmount
})
if
(
result
.
success
)
{
this
.
hasRisk
=
true
await
this
.
initRiskResult
()
}
}
else
{
...
...
@@ -162,7 +217,8 @@
creditNo
})
if
(
result
.
success
)
{
console
.
log
(
result
,
'结果'
)
this
.
riskResult
=
result
.
result
this
.
hasRisk
=
!!
result
.
result
}
},
onSubmit
(
formName
)
{
...
...
@@ -179,13 +235,13 @@
const
form
=
this
.
form
form
.
userId
=
this
.
user
.
userId
console
.
log
(
form
,
'表单数据'
)
const
result
=
await
API
.
preCreditPlead
({
const
result
=
await
API
.
approveSubmit
({
...
form
})
if
(
result
.
success
)
{
this
.
$message
({
type
:
'success'
,
message
:
'
申述成功!
'
message
:
'
审批成功
'
})
this
.
$emit
(
'handleClose'
)
...
...
src/views/credit/approval.vue
View file @
20f70885
...
...
@@ -124,7 +124,7 @@
>
<
template
#
default=
'{ row }'
>
<el-button
type=
'text'
@
click=
'handleDetail(row)'
>
详情
</el-button>
<template
v-if=
'row.creditResult==="MANUAL_REJECT"'
>
<template
v-if=
'row.creditResult==="MANUAL_REJECT"
|| row.creditResult==="REJECT"
'
>
<el-button
type=
'text'
@
click=
'handleDetail(row)'
>
申述
</el-button>
</
template
>
</template>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment