Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
loan-manager-customer
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
zhanhai
loan-manager-customer
Commits
6da24062
Commit
6da24062
authored
Oct 24, 2022
by
刘雅文
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
新增需求
parent
c8bc8563
Changes
5
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
262 additions
and
1 deletion
+262
-1
ByhServiceDetail.vue
src/components/byh/ByhServiceDetail.vue
+1
-0
CreateLrdDerate.vue
src/components/byh/CreateLrdDerate.vue
+248
-0
Messages.vue
src/components/byh/componments/Messages.vue
+1
-1
index.js
src/router/index.js
+10
-0
routes.js
src/router/routes.js
+2
-0
No files found.
src/components/byh/ByhServiceDetail.vue
View file @
6da24062
...
@@ -174,6 +174,7 @@ export default {
...
@@ -174,6 +174,7 @@ export default {
}
}
},
},
async
created
()
{
async
created
()
{
// console.log(this.$route.query,'上一页');
const
{
const
{
clientNo
,
clientNo
,
clientProductName
,
clientProductName
,
...
...
src/components/byh/CreateLrdDerate.vue
0 → 100644
View file @
6da24062
<
template
>
<div
style=
"width: 600px"
>
<block-header
title=
"创建百灵美选结清减免单"
/>
<el-form
size=
"small"
label-suffix=
":"
:model=
"ruleForm"
:rules=
"rules"
ref=
"ruleForm"
label-width=
"120px"
class=
"demo-ruleForm"
>
<el-form-item
label=
"借款编号"
prop=
"loanNo"
>
<el-col
:span=
"20"
>
<el-input
v-model=
"ruleForm.loanNo"
placeholder=
"请正确填写借款编号"
></el-input>
</el-col>
<el-button
type=
"primary"
@
click=
"settlement"
>
结清试算
</el-button>
</el-form-item>
<el-form-item
v-if=
"settleData.serviceAmt"
>
<div
class=
"tableBox"
>
<div
class=
"boxItem"
>
<p
class=
"Itemleft"
>
应还本金
</p>
<p>
{{
settleData
.
principleAmt
}}
</p>
</div>
<div
class=
"boxItem"
>
<p
class=
"Itemleft"
>
应还利息
</p>
<p>
{{
settleData
.
interestAmt
}}
</p>
</div>
<div
class=
"boxItem"
>
<p
class=
"Itemleft"
>
应还服务费
</p>
<p>
{{
settleData
.
serviceAmt
}}
</p>
</div>
<div
class=
"boxItem"
>
<p
class=
"Itemleft"
>
应还融担费
</p>
<p>
{{
settleData
.
burdenAmt
}}
</p>
</div>
<div
class=
"boxItem"
>
<p
class=
"Itemleft"
>
应还违约金
</p>
<p>
{{
settleData
.
breakAmt
}}
</p>
</div>
<div
class=
"boxItem"
>
<p
class=
"Itemleft"
>
应还款总额
</p>
<p>
{{
settleData
.
settleAmt
}}
</p>
</div>
<div
class=
"boxItem"
>
<p
class=
"Itemleft"
>
退款金额
</p>
<p>
{{
settleData
.
refundAmt
}}
</p>
</div>
</div>
</el-form-item>
<el-form-item
label=
"减免金额"
prop=
"derateAmt"
>
<el-col
:span=
"20"
>
<el-input
type=
"number"
v-model=
"ruleForm.derateAmt"
placeholder=
"请输入减免金额"
@
blur=
"submitAmt"
></el-input>
</el-col>
</el-form-item>
<el-form-item
v-if=
"derateData.derateBreak"
>
<div
class=
"tableBox"
>
<div
class=
"boxItem"
>
<p
class=
"Itemleft"
>
减免违约金
</p>
<p>
{{
derateData
.
derateBreak
}}
</p>
</div>
<div
class=
"boxItem"
>
<p
class=
"Itemleft"
>
减免服务费
</p>
<p>
{{
derateData
.
derateFu
}}
</p>
</div>
<div
class=
"boxItem"
>
<p
class=
"Itemleft"
>
减免融担费
</p>
<p>
{{
derateData
.
derateBurden
}}
</p>
</div>
<div
class=
"boxItem"
>
<p
class=
"Itemleft"
>
减免利息
</p>
<p>
{{
derateData
.
derateXi
}}
</p>
</div>
<div
class=
"boxItem"
>
<p
class=
"Itemleft"
>
减免本金
</p>
<p>
{{
derateData
.
derateBen
}}
</p>
</div>
</div>
</el-form-item>
<el-form-item
label=
"描述信息"
prop=
"applyDesc"
>
<el-col
:span=
"20"
>
<el-input
v-model=
"ruleForm.applyDesc"
placeholder=
"请输入减免描述信息"
></el-input>
</el-col>
</el-form-item>
<el-form-item>
<el-button
size=
"small"
type=
"primary"
@
click=
"createDerate('ruleForm')"
>
确 定
</el-button
>
</el-form-item>
</el-form>
</div>
</
template
>
<
script
>
export
default
{
name
:
"DerateCreate"
,
props
:
{},
data
()
{
return
{
ruleForm
:
{
loanNo
:
""
,
derateAmt
:
""
,
applyUser
:
""
,
applyDesc
:
""
,
},
rules
:
{
loanNo
:
[
{
required
:
true
,
message
:
"请正确填写借款编号"
,
trigger
:
"blur"
},
],
derateAmt
:
[
{
required
:
true
,
message
:
"请输入减免金额"
,
trigger
:
"blur"
},
],
applyDesc
:
[
{
required
:
true
,
message
:
"请输入减免描述信息"
,
trigger
:
"blur"
},
],
},
loginName
:
""
,
settleData
:
{},
derateData
:
{},
};
},
mounted
()
{
this
.
loginName
=
localStorage
.
getItem
(
"loginName"
);
},
methods
:
{
//结清试算
settlement
()
{
this
.
$$get
(
`/back/countSettle`
,
{
loanNo
:
this
.
ruleForm
.
loanNo
,
})
.
then
((
res
)
=>
{
if
(
res
.
data
.
code
!=
200
)
{
this
.
$message
.
error
(
res
.
data
.
message
);
return
;
}
this
.
$message
({
message
:
"提交成功!"
,
type
:
"success"
});
console
.
log
(
res
.
data
.
result
,
"结果"
);
this
.
settleData
=
res
.
data
.
result
;
// setTimeout(() => {
// window.location.reload();
// }, 1500);
})
.
catch
((
err
)
=>
{
this
.
$message
.
error
(
"试算失败!!!"
);
});
},
//减免金额
submitAmt
()
{
console
.
log
(
this
.
ruleForm
.
derateAmt
,
"000000"
);
this
.
$$post
(
`/loan/amountSettle`
,
{
loanNo
:
this
.
ruleForm
.
loanNo
,
derateAmt
:
this
.
ruleForm
.
derateAmt
,
})
.
then
((
res
)
=>
{
if
(
res
.
data
.
code
!=
200
)
{
this
.
$message
.
error
(
res
.
data
.
message
);
return
;
}
this
.
$message
({
message
:
"提交成功!"
,
type
:
"success"
});
console
.
log
(
res
.
data
.
result
,
"试算结果"
);
this
.
derateData
=
res
.
data
.
result
;
})
.
catch
((
err
)
=>
{
this
.
$message
.
error
(
"试算失败!!!"
);
});
},
/** 提交点击 */
createDerate
()
{
const
{
derateBen
,
derateBreak
,
derateBurden
,
derateFu
,
derateXi
}
=
this
.
derateData
this
.
$refs
[
"ruleForm"
].
validate
((
valid
)
=>
{
if
(
!
valid
)
{
return
false
;
}
this
.
$confirm
(
"操作将创建减免单, 是否继续?"
,
"提示"
,
{
confirmButtonText
:
"确定"
,
cancelButtonText
:
"取消"
,
type
:
"warning"
,
})
.
then
(()
=>
{
this
.
$$post
(
`/loan/createLrdDerate`
,
{
loanNo
:
this
.
ruleForm
.
loanNo
,
derateAmt
:
this
.
ruleForm
.
derateAmt
,
applyDesc
:
this
.
ruleForm
.
applyDesc
,
applyUser
:
this
.
loginName
,
derateBen
,
derateBreak
,
derateBurden
,
derateFu
,
derateXi
})
.
then
((
res
)
=>
{
if
(
res
.
data
.
code
!=
200
)
{
this
.
$message
.
error
(
res
.
data
.
message
);
return
;
}
this
.
$message
({
message
:
"提交成功!"
,
type
:
"success"
});
setTimeout
(()
=>
{
window
.
location
.
reload
();
},
1500
);
})
.
catch
((
err
)
=>
{
this
.
$message
.
error
(
"提交减免单失败!!!"
);
});
})
.
catch
(()
=>
{
this
.
$message
({
type
:
"info"
,
message
:
"已取消提交"
,
});
});
});
},
},
};
</
script
>
<
style
scoped
>
.tableBox
{
width
:
400px
;
border
:
1px
solid
#eee
;
/* padding: 20px; */
}
.tableBox
.boxItem
{
border-bottom
:
1px
solid
#eee
;
display
:
flex
;
}
.tableBox
.boxItem
:last-child
{
border
:
none
;
}
.tableBox
.boxItem
p
{
padding
:
5px
10px
;
}
.tableBox
.Itemleft
{
border-right
:
1px
solid
#eee
;
width
:
45%
;
}
</
style
>
src/components/byh/componments/Messages.vue
View file @
6da24062
...
@@ -95,7 +95,7 @@ export default {
...
@@ -95,7 +95,7 @@ export default {
async
created
()
{
async
created
()
{
const
params
=
this
.
params
;
const
params
=
this
.
params
;
// console.log(params,'手机号');
// console.log(params,'手机号');
this
.
form
.
cell
=
params
.
clientCell
;
this
.
form
.
cell
=
params
.
phoneNo
;
this
.
form
.
productName
=
params
.
clientProductName
;
this
.
form
.
productName
=
params
.
clientProductName
;
await
this
.
init
();
await
this
.
init
();
},
},
...
...
src/router/index.js
View file @
6da24062
...
@@ -20,6 +20,7 @@ import {
...
@@ -20,6 +20,7 @@ import {
ServiceProblem
,
ServiceProblem
,
ClientManagerment
,
ClientManagerment
,
DerateCreate
,
DerateCreate
,
CreateLrdDerate
,
CreateRefund
CreateRefund
}
from
'./routes'
}
from
'./routes'
...
@@ -140,6 +141,15 @@ export default new Router({
...
@@ -140,6 +141,15 @@ export default new Router({
component
:
DerateCreate
,
component
:
DerateCreate
,
meta
:
{
title
:
'减免单管理'
,
filter
:
true
}
meta
:
{
title
:
'减免单管理'
,
filter
:
true
}
},
},
{
path
:
'/byh/CreateLrdDerate'
,
name
:
'CreateLrdDerate'
,
component
:
CreateLrdDerate
,
meta
:
{
title
:
'创建百灵美选减免单'
,
filter
:
true
}
},
{
{
path
:
'/byh/RiskLevelList'
,
path
:
'/byh/RiskLevelList'
,
name
:
'RiskLevelList'
,
name
:
'RiskLevelList'
,
...
...
src/router/routes.js
View file @
6da24062
...
@@ -27,6 +27,7 @@ export const ByhLoanBackedDetails = resolve => require(['../components/byh/ByhLo
...
@@ -27,6 +27,7 @@ export const ByhLoanBackedDetails = resolve => require(['../components/byh/ByhLo
export
const
ByhLoanSnapList
=
resolve
=>
require
([
'../components/byh/ByhLoanSnapList.vue'
],
resolve
)
export
const
ByhLoanSnapList
=
resolve
=>
require
([
'../components/byh/ByhLoanSnapList.vue'
],
resolve
)
export
const
Controlswitch
=
resolve
=>
require
([
'../components/byh/Controlswitch.vue'
],
resolve
)
export
const
Controlswitch
=
resolve
=>
require
([
'../components/byh/Controlswitch.vue'
],
resolve
)
export
const
DerateCreate
=
resolve
=>
require
([
'../components/byh/DerateCreate.vue'
],
resolve
)
export
const
DerateCreate
=
resolve
=>
require
([
'../components/byh/DerateCreate.vue'
],
resolve
)
export
const
CreateLrdDerate
=
resolve
=>
require
([
'../components/byh/CreateLrdDerate.vue'
],
resolve
)
//创建退款单
//创建退款单
export
const
CreateRefund
=
resolve
=>
require
([
'../components/byh/CreateRefund.vue'
],
resolve
)
export
const
CreateRefund
=
resolve
=>
require
([
'../components/byh/CreateRefund.vue'
],
resolve
)
...
@@ -55,6 +56,7 @@ export default {
...
@@ -55,6 +56,7 @@ export default {
ClientManagerment
,
ClientManagerment
,
Controlswitch
,
Controlswitch
,
DerateCreate
,
DerateCreate
,
CreateLrdDerate
,
// 创建退款单
// 创建退款单
CreateRefund
CreateRefund
}
}
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