Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
K
komatsu-lease-app
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
komatsu
komatsu-lease-app
Commits
a664c233
Commit
a664c233
authored
Jan 12, 2023
by
Step_by_step
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: 修改融资计算器接口,融资意向接口返回格式出错问题
parent
c6dffefc
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
18 additions
and
17 deletions
+18
-17
README.md
README.md
+1
-1
detail.vue
src/modules/calculator/views/detail.vue
+2
-2
index.vue
src/modules/calculator/views/index.vue
+8
-7
plan.vue
src/modules/calculator/views/plan.vue
+1
-1
index.vue
src/modules/intention/views/index.vue
+4
-4
globalFun.js
src/utils/globalFun.js
+2
-2
No files found.
README.md
View file @
a664c233
...
...
@@ -32,7 +32,7 @@ npm run preview 本地预览打包完的文件
4.
合同签约 (E签宝, 预览签署文件, 由消息推送后做) (
✋
2)
✅
5.
还款计划 (支付, 只能从上到下支付)(
✋
2)
6.
还款计划查询 (发票预览下载) (
✋
2)
7.
自助服务 (
✋
.5)
7.
自助服务 (
✋
.5)
✅
8.
客户信息变更 (
✋
1)
#### 首页
...
...
src/modules/calculator/views/detail.vue
View file @
a664c233
...
...
@@ -89,8 +89,8 @@ const updateForm = async () => {
isComplete
=
planStore
.
planData
?.
isComplete
;
if
(
testQuotationId
)
{
let
res
=
await
api
.
getFormInfo
({
testQuotationId
:
''
+
testQuotationId
})
if
(
res
.
result
===
'SUCCESS'
)
{
let
resData
=
res
.
data
[
0
];
if
(
res
.
success
)
{
let
resData
=
res
.
rows
[
0
];
formConfig
.
replace
(
formConfigArr
.
map
(
item
=>
{
item
.
value
=
resData
[
item
.
propName
]
||
''
;
if
(
item
.
propName
===
"firstGoldRatio"
)
{
...
...
src/modules/calculator/views/index.vue
View file @
a664c233
<
template
>
<div
class=
"container"
>
<NavBar
title=
"融资计算器"
left-arrow
@
click-left=
"goBack"
/>
<NavBar
title=
"融资计算器"
left-arrow
@
click-left=
"goBack
(true)
"
/>
<section
class=
"list"
>
<PullRefresh
v-model=
"refreshing"
@
refresh=
"getList"
class=
"scroll"
>
...
...
@@ -33,8 +33,8 @@ const listValue = $ref([])
let
getList
=
async
()
=>
{
let
list
=
await
api
.
financingCalculator
({
userId
:
window
.
localStorage
.
getItem
(
'userId'
)
})
if
(
list
.
data
&&
list
.
data
.
length
)
{
list
=
list
.
data
.
map
(
item
=>
if
(
list
.
rows
&&
list
.
rows
.
length
)
{
list
=
list
.
rows
.
map
(
item
=>
({
...
item
,
title
:
item
.
creationDate
.
split
(
' '
)[
0
],
values
:
[[
"物件价格"
,
"融资金额"
,
"每期还款"
],
[
`¥
${
item
.
priceOfItem
}
`
,
`¥
${
item
.
financeAmount
}
`
,
`¥
${
item
.
dueAmount
}
`
]]
})
)
}
else
{
...
...
@@ -48,10 +48,11 @@ getList()
const
router
=
useRouter
();
const
jump
=
async
(
testQuatationId
)
=>
{
if
(
testQuatationId
)
{
let
res
=
await
api
.
planInfo
({
testQuatationId
:
testQuatationId
+
''
})
if
(
res
.
result
===
'SUCCESS'
)
{
res
.
data
.
cashflow
=
res
.
data
.
cashflow
.
map
(
item
=>
{
item
.
chargeDueDate
=
item
.
chargeDueDate
.
split
(
" "
)[
0
];
return
item
})
planStore
.
planData
=
{
...
res
.
data
,
isComplete
:
true
};
let
res
=
await
api
.
planInfo
({
testQuotationId
:
testQuatationId
+
''
})
if
(
res
.
success
&&
res
.
rows
.
length
)
{
let
obj
=
res
.
rows
[
0
]
obj
.
cashflow
=
obj
.
cashflow
.
map
(
item
=>
{
item
.
chargeDueDate
=
item
.
chargeDueDate
.
split
(
" "
)[
0
];
return
item
})
planStore
.
planData
=
{
...
obj
,
isComplete
:
true
};
router
.
push
({
name
:
'calculator-views-plan'
})
}
else
{
Toast
.
fail
(
'获取不到计算数据'
);
...
...
src/modules/calculator/views/plan.vue
View file @
a664c233
...
...
@@ -68,7 +68,7 @@ const save = async () => {
let
res
=
await
api
.
saveInfo
(
plan
)
if
(
res
.
result
==
"SUCCESS"
)
{
if
(
res
.
success
)
{
router
.
push
({
name
:
'calculator-views'
})
Toast
.
success
(
'保存成功'
);
}
else
{
...
...
src/modules/intention/views/index.vue
View file @
a664c233
...
...
@@ -31,8 +31,8 @@ const listValue = $ref([])
const
getList
=
async
()
=>
{
let
res
=
await
api
.
getlist
()
if
(
res
.
result
===
'SUCCESS'
&&
res
.
data
.
length
)
{
listValue
=
res
.
data
.
map
(
item
=>
{
if
(
res
.
success
&&
res
.
rows
.
length
)
{
listValue
=
res
.
rows
.
map
(
item
=>
{
return
{
title
:
item
.
intentionNumber
,
other_title
:
item
.
creationDate
,
...
...
@@ -54,8 +54,8 @@ const router = useRouter();
const
jump
=
async
(
intentionId
=
''
)
=>
{
if
(
intentionId
)
{
let
res
=
await
api
.
getDetail
({
intentionId
:
intentionId
+
''
})
if
(
res
.
result
===
'SUCCESS'
&&
res
.
data
.
length
)
{
formStore
.
intentionData
=
res
.
data
[
0
];
if
(
res
.
success
&&
res
.
rows
.
length
)
{
formStore
.
intentionData
=
res
.
rows
[
0
];
router
.
push
({
name
:
'intention-views-intentionForm'
})
}
}
else
{
...
...
src/utils/globalFun.js
View file @
a664c233
...
...
@@ -144,8 +144,8 @@ export async function HlpsUpload(source, target, headers, successCb) {
}
// 判断还有可返回的路由吗? 无则退出
export
const
goBack
=
()
=>
{
if
(
window
.
history
.
state
.
position
>
0
)
return
window
.
history
.
back
();
export
const
goBack
=
(
isExit
=
false
)
=>
{
if
(
window
.
history
.
state
.
position
>
0
&&
!
isExit
)
return
window
.
history
.
back
();
// 海马汇退出子应用方法
let
args
=
{
...
...
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