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
e19c9d08
Commit
e19c9d08
authored
Jun 28, 2022
by
caimeng
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改审批
parent
8412a4b6
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
139 additions
and
150 deletions
+139
-150
approval.vue
src/components/approval.vue
+114
-127
detail.vue
src/views/approval/detail.vue
+15
-4
list.vue
src/views/approval/list.vue
+10
-19
No files found.
src/components/approval.vue
View file @
e19c9d08
<!-- 预授信申述 -->
<
template
>
<el-dialog
:visible
.
sync=
'dialogVisible'
:before-close=
'handleClose'
:destroy-on-close=
'true'
width=
'45%'
title=
'审批'
>
<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-scrollbar
class=
'com-approval'
>
<block-header
title=
'审批'
></block-header>
<!--搜索-->
<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.creditAmount'
disabled
style=
'width: 100%;'
clearable
/>
</el-col>
</el-row>
</el-form-item>
<el-form-item
label=
'申请期数(期)'
>
<el-row>
<el-col
:span=
'14'
>
<el-input
v-model=
'form.loanIntentionNum'
disabled
style=
'width: 100%;'
clearable
/>
</el-col>
</el-row>
</el-form-item>
<template
v-if=
'manualAmount && form.capitalCode==="FENGSHENGBUSINESS"'
>
<el-form-item
prop=
'perAllotAmount'
label=
'人审额度(元)'
>
<el-row>
<el-col
:span=
'14'
>
<span>
{{
money
(
manualAmount
)
}}
</span>
</el-col>
</el-row>
</el-form-item>
<el-form-item
prop=
'approveStatus'
label=
'审批意见'
>
<template
v-if=
'searchData!==null'
>
<el-radio-group
v-model=
'form.approveStatus'
>
<el-radio
v-for=
'(a,index) in searchData.opinionEnumResponses'
:key=
'index'
:label=
'a.code'
>
{{
a
.
desc
}}
</el-radio>
</el-radio-group>
</
template
>
</el-form-item>
<el-form-item
v-else
prop=
'perAllotAmount'
label=
'人审额度(元)'
>
<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=
'form.approveStatus==="PASS"'
>
<
template
v-if=
'searchData!==null'
>
<el-form-item
prop=
'capitalCodeLoanSign'
label=
'选择资方'
>
<el-row>
<el-col
:span=
'14'
>
<el-select
v-model=
'form.capitalCodeLoanSign'
style=
'width: 100%;'
clearable
>
<el-row>
<el-col
:span=
'10'
>
<template
v-if=
'manualAmount && form.capitalCode==="FENGSHENGBUSINESS"'
>
<el-form-item
prop=
'perAllotAmount'
label=
'人审额度'
>
<el-row>
<el-col
:span=
'14'
>
<span>
{{
money
(
manualAmount
)
}}
元
</span>
</el-col>
</el-row>
</el-form-item>
</
template
>
<el-form-item
v-else
prop=
'perAllotAmount'
label=
'人审额度'
>
<el-input
v-model=
'form.perAllotAmount'
style=
'width: 100%;'
clearable
placeholder=
'请输入人审额度'
/>
</el-form-item>
</el-col>
</el-row>
<el-row>
<el-col
:span=
'10'
>
<
template
v-if=
'searchData!==null'
>
<el-form-item
prop=
'capitalCodeLoanSign'
label=
'选择资方'
>
<el-select
v-model=
'form.capitalCodeLoanSign'
:popper-append-to-body=
'false'
style=
'width: 100%;'
clearable
>
<el-option
v-for=
'(f,index) in
searchData.financierResponseList
'
v-for=
'(f,index) in
a
'
:key=
'index'
@
click
.
native=
'handleCapitalChange(f)'
:value=
'f.capitalCodeLoanSign'
:label=
'f.message'
>
:label=
'f.message'
@
click
.
native=
'handleCapitalChange(f)'
>
</el-option>
</el-select>
</el-col>
</el-form-item>
</
template
>
</el-col>
<template
v-if=
'form.capitalCode==="FENGSHENGBUSINESS"'
>
<el-col
:span=
'8'
>
<el-button
style=
'margin-left: 10px'
:disabled=
'hasRisk'
type=
'primary'
@
click=
'handleRisk'
>
风审查询
</el-button>
</el-col>
</
template
>
<el-col
:span=
'4'
>
<
template
v-if=
'form.capitalCode==="FENGSHENGBUSINESS"'
>
<el-button
style=
'margin-left: 10px'
:disabled=
'hasRisk'
type=
'primary'
@
click=
'handleRisk'
>
风审查询
</el-button>
</
template
>
</el-col>
</el-row>
</el-row>
</el-form-item>
</template>
<
template
v-if=
'form.capitalCode==="FENGSHENGBUSINESS"'
>
<el-form-item
label=
'风审
查询
结果'
>
<el-form-item
label=
'风审结果'
>
<template
v-if=
'riskResult!==null'
>
<el-tag
v-if=
'riskResult.status==="CREDIT_ING"'
type=
'warning'
>
{{
riskResult
.
statusDesc
}}
</el-tag>
<el-tag
v-else-if=
'riskResult.status==="YES"'
type=
'success'
>
{{
riskResult
.
statusDesc
}}
</el-tag>
...
...
@@ -87,46 +74,40 @@
<el-tag
v-else
type=
'info'
size=
'mini'
>
结果未出
</el-tag>
</el-form-item>
</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.approveStatus'
>
<el-radio
v-for=
'(a,index) in searchData.opinionEnumResponses'
:key=
'index'
:label=
'a.code'
>
{{
a
.
desc
}}
</el-radio>
</el-radio-group>
</
template
>
</el-form-item>
</el-form>
</div>
<span
slot=
'footer'
class=
'dialog-footer'
>
<
template
v-if=
'form.capitalCode!=="FENGSHENGBUSINESS"'
>
<el-button
type=
'primary'
@
click=
'onSubmit("dForm")'
>
确 定
</el-button>
</template>
<
template
v-else-if=
'riskResult!==null && riskResult.status==="YES"'
>
<el-button
type=
'primary'
@
click=
'onSubmit("dForm")'
>
确 定
</el-button>
</
template
>
<el-button
@
click=
'handleClose'
>
取 消
</el-button>
</span>
</el-dialog>
<el-row>
<el-col
:span=
'10'
>
<el-form-item
prop=
'memo'
label=
'审批备注'
>
<el-input
v-model=
'form.memo'
type=
'textarea'
clearable
placeholder=
'请输入审批备注'
/>
</el-form-item>
</el-col>
</el-row>
<el-form-item>
<
template
v-if=
'form.capitalCode!=="FENGSHENGBUSINESS"'
>
<el-button
type=
'primary'
@
click=
'onSubmit("dForm")'
>
确 定
</el-button>
</
template
>
<
template
v-else-if=
'riskResult!==null && riskResult.status==="YES"'
>
<el-button
type=
'primary'
@
click=
'onSubmit("dForm")'
>
确 定
</el-button>
</
template
>
<el-button
type=
'default'
@
click=
'onBack'
>
取 消
</el-button>
</el-form-item>
</el-form>
</el-scrollbar>
</template>
<
script
>
import
API
from
'@/server/api'
import
_
from
'lodash'
import
{
mapGetters
}
from
'vuex'
export
default
{
name
:
'Approval'
,
props
:
{
dialogVisible
:
{
type
:
Boolean
,
require
:
true
},
item
:
{
type
:
Object
,
require
:
true
...
...
@@ -178,7 +159,23 @@
hasRisk
:
false
,
riskResult
:
null
,
manualAmount
:
''
,
a
:
[
{
capitalCodeLoanSign
:
'OWNBUSINESS_DR'
,
capitalCode
:
'OWNBUSINESS'
,
loanSign
:
'DR'
,
message
:
'自营-鼎荣'
},
{
capitalCodeLoanSign
:
'FENGSHENGBUSINESS_ZY'
,
capitalCode
:
'FENGSHENGBUSINESS'
,
loanSign
:
'ZY'
,
message
:
'自营-鼎荣1'
}
],
creditNo
:
''
,
form
:
{
creditType
:
''
,
creditAmount
:
''
,
applyAmount
:
''
,
approveStatus
:
''
,
...
...
@@ -188,6 +185,7 @@
memo
:
''
,
perAllotAmount
:
''
,
loanIntentionNum
:
''
,
capitalCodeLoanSign
:
''
,
userId
:
''
}
}
...
...
@@ -198,9 +196,13 @@
async
mounted
()
{
console
.
log
(
this
.
item
,
'nash '
)
if
(
this
.
item
!==
null
)
{
const
{
applyAmount
,
manualAmount
,
loanIntentionNum
,
creditAmount
,
creditNo
}
=
this
.
item
this
.
form
.
applyAmount
=
this
.
money
(
applyAmount
)
this
.
form
.
creditAmount
=
this
.
money
(
creditAmount
)
const
{
clientDetail
,
projectInfoResponse
}
=
this
.
item
const
{
creditNo
}
=
clientDetail
const
{
manualAmount
,
loanIntentionNum
}
=
projectInfoResponse
this
.
creditNo
=
creditNo
//const { applyAmount, manualAmount, loanIntentionNum, creditAmount, creditNo } = this.item
//this.form.applyAmount = this.money(applyAmount)
//this.form.creditAmount = this.money(creditAmount)
this
.
form
.
loanIntentionNum
=
loanIntentionNum
this
.
manualAmount
=
manualAmount
this
.
form
.
perAllotAmount
=
manualAmount
...
...
@@ -215,8 +217,8 @@
handleCapitalChange
(
item
)
{
if
(
item
)
{
const
{
capitalCode
,
loanSign
}
=
item
if
(
capitalCode
===
'FENGSHENGBUSINESS'
)
{
this
.
form
.
perAllotAmount
=
this
.
manualAmount
;
if
(
capitalCode
===
'FENGSHENGBUSINESS'
)
{
this
.
form
.
perAllotAmount
=
this
.
manualAmount
this
.
$refs
[
'dForm'
].
clearValidate
(
'perAllotAmount'
)
}
this
.
form
.
capitalCode
=
capitalCode
...
...
@@ -243,7 +245,6 @@
})
if
(
result
.
success
)
{
this
.
hasRisk
=
true
//await this.initRiskResult()
}
}
else
{
await
this
.
initRiskResult
()
...
...
@@ -254,7 +255,7 @@
// 风审查询结果
async
initRiskResult
()
{
const
{
creditNo
}
=
this
.
item
const
creditNo
=
this
.
creditNo
const
result
=
await
API
.
initCapitalResult
({
creditNo
})
...
...
@@ -292,8 +293,7 @@
message
:
'审批成功'
})
this
.
$emit
(
'handleClose'
)
this
.
$emit
(
'callback'
)
this
.
onBack
();
}
}).
catch
((
e
)
=>
{
console
.
log
(
e
,
'取消申述了'
)
...
...
@@ -301,34 +301,21 @@
}
})
},
handleClose
()
{
this
.
$
emit
(
'handleClose'
)
onBack
()
{
this
.
$
router
.
back
(
)
}
}
}
</
script
>
<
style
lang=
'scss'
scoped
>
.page-fence
{
::v-deep
{
i
{
cursor
:
pointer
;
}
}
box-sizing
:
border-box
;
padding
:
20px
;
}
</
style
>
<
style
lang=
'scss'
>
.custom-table-checkbox
{
.el-checkbox
{
display
:
block
!
important
;
margin
:
0
0
$base-padding
/
4
0
;
}
<
style
scoped
lang=
'scss'
>
html
body
{
position
:
inherit
;
}
.action-bar
{
margin-bottom
:
15px
;
.com-approval
{
//position: relative;
margin-top
:
15px
;
}
</
style
>
src/views/approval/detail.vue
View file @
e19c9d08
<
template
>
<div
v-if=
'detail!==null'
class=
'page'
>
<!--用户基础信息-->
<template
v-if=
'detail.clientDetail!==null'
>
<user-base-info
:base-info=
'detail.clientDetail'
/>
...
...
@@ -27,6 +26,8 @@
<pre-plead
/>
</
template
>
<!-- 审批操作 -->
<Approval
:item=
'item'
/>
</div>
</template>
...
...
@@ -38,6 +39,11 @@
name
:
'ApprovalDetail'
,
data
()
{
return
{
// 审批相关
visible
:
false
,
item
:
null
,
creditNo
:
''
,
detail
:
null
}
...
...
@@ -46,7 +52,6 @@
const
{
query
}
=
this
.
$route
if
(
query
&&
query
.
creditNo
)
{
this
.
creditNo
=
query
.
creditNo
await
this
.
init
()
}
},
...
...
@@ -56,9 +61,15 @@
const
result
=
await
API
.
initApproveDetail
({
creditNo
})
this
.
detail
=
result
.
result
;
this
.
detail
=
result
.
result
// 判断是否有审批
if
(
this
.
$route
.
query
&&
this
.
$route
.
query
.
approval
)
{
this
.
visible
=
true
this
.
item
=
result
.
result
}
console
.
log
(
'审批详情'
,
this
.
detail
)
console
.
log
(
'审批详情'
,
this
.
detail
)
}
}
}
...
...
src/views/approval/list.vue
View file @
e19c9d08
...
...
@@ -159,17 +159,6 @@
/>
</
template
>
<!--审批-->
<
template
v-if=
'ApprovalVisible'
>
<Approval
:dialog-visible=
'ApprovalVisible'
:item=
'ApprovalItem'
@
handleClose=
'()=>
{
this.ApprovalVisible = false;
this.fetchData()
}'
@callback='fetchData' />
</
template
>
</div>
</template>
...
...
@@ -195,11 +184,7 @@
item
:
null
,
// 审批相关
ApprovalVisible
:
false
,
ApprovalItem
:
null
,
checkList
:
[
'授信编号'
,
'客户信息'
,
'对应BD'
,
'商户区域'
,
'申请金额(元)'
,
'授信金额(元)'
,
'审批状态'
,
'申请时间'
],
checkList
:
[
'授信编号'
,
'客户信息'
,
'对应BD'
,
'商户区域'
,
'申请金额(元)'
,
'授信金额(元)'
,
'审批状态'
,
'申请时间'
],
columns
:
[
{
order
:
1
,
...
...
@@ -289,7 +274,7 @@
if
(
result
.
success
)
{
console
.
log
(
result
,
'当前的用户状态'
)
const
{
userDutyState
}
=
result
.
result
this
.
isOnLine
=
userDutyState
===
'ONLINE'
;
this
.
isOnLine
=
userDutyState
===
'ONLINE'
}
},
onSearch
()
{
...
...
@@ -345,8 +330,14 @@
},
// 审批
handleApproval
(
row
)
{
this
.
ApprovalItem
=
row
this
.
ApprovalVisible
=
true
const
{
creditNo
}
=
row
this
.
$router
.
push
({
path
:
'/approval/detail'
,
query
:
{
creditNo
,
approval
:
'approval'
}
})
},
// 转派
handleReassignment
(
row
)
{
...
...
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