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
47dabc07
Commit
47dabc07
authored
Jan 29, 2023
by
WangRui
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' of
https://hel.hand-china.com/komatsu/komatsu-lease-app
parents
41740e43
9ed4a7ea
Changes
4
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
437 additions
and
434 deletions
+437
-434
index.vue
src/modules/intention/views/index.vue
+93
-92
intentionForm.vue
src/modules/intention/views/intentionForm.vue
+2
-2
index.vue
src/modules/repayPlan/views/index.vue
+102
-100
plan.vue
src/modules/repayPlan/views/plan.vue
+240
-240
No files found.
src/modules/intention/views/index.vue
View file @
47dabc07
<
template
>
<div
class=
"container"
>
<NavBar
title=
"融资意向"
left-arrow
@
click-left=
"goBack"
/>
<section
class=
"list"
>
<PullRefresh
v-model=
"refreshing"
@
refresh=
"getList"
class=
"scroll"
>
<List
:finished=
"finished"
finished-text=
"没有更多了"
>
<Empty
v-if=
"!listValue.length"
description=
"无记录"
/>
<ListItem
v-for=
"item in listValue"
:other_title=
"item.other_title"
:title=
"item.title"
:values=
"item.values"
@
click=
"jump(item.intentionId)"
/>
</List>
</PullRefresh>
</section>
<Plus
@
click=
"jump('')"
/>
</div>
</
template
>
<
script
setup
>
import
{
goBack
}
from
"@/utils/globalFun"
import
{
NavBar
,
List
,
PullRefresh
,
Empty
}
from
"vant"
;
import
ListItem
from
'@/components/ListItem.vue'
import
Plus
from
'@/components/Plus.vue'
import
api
from
"../api"
;
import
{
useRouter
}
from
"vue-router"
;
import
{
useIntention
}
from
'../store/index'
const
formStore
=
useIntention
()
const
listValue
=
$ref
([])
const
getList
=
async
()
=>
{
let
res
=
await
api
.
getlist
()
if
(
res
.
success
&&
res
.
rows
.
length
)
{
listValue
=
res
.
rows
.
map
(
item
=>
{
return
{
title
:
item
.
intentionNumber
,
other_title
:
item
.
creationDate
,
values
:
[[
"合同金额"
,
"状态"
],
[
"¥ "
+
(
item
.
contractAmount
||
'0.00'
),
item
.
intentionStatusN
]],
intentionId
:
item
.
intentionId
}
})
}
else
{
listValue
=
[]
}
refreshing
=
false
;
}
getList
()
const
refreshing
=
$ref
(
true
);
const
finished
=
$ref
(
true
);
const
router
=
useRouter
();
const
jump
=
async
(
intentionId
=
''
)
=>
{
if
(
intentionId
)
{
let
res
=
await
api
.
getDetail
({
intentionId
:
intentionId
+
''
})
if
(
res
.
success
&&
res
.
rows
.
length
)
{
formStore
.
intentionData
=
res
.
rows
[
0
];
router
.
push
({
name
:
'intention-views-intentionForm'
})
}
}
else
{
router
.
push
({
name
:
'intention-views-intentionForm'
})
}
}
</
script
>
<
style
scoped
lang=
"less"
>
.list {
box-sizing: border-box;
height: calc(100vh - var(--van-nav-bar-height));
display: flex;
flex-direction: column;
justify-content: space-between;
padding-top: 8px;
padding-bottom: 10px;
}
.scroll {
box-sizing: border-box;
height: 100%;
overflow-y: auto;
}
</
style
>
<route>
{
meta: {
title: '融资意向'
}
}
</route>
<
template
>
<div
class=
"container"
>
<NavBar
title=
"融资意向"
left-arrow
@
click-left=
"goBack"
/>
<section
class=
"list"
>
<PullRefresh
v-model=
"refreshing"
@
refresh=
"getList"
class=
"scroll"
>
<List
:finished=
"finished"
finished-text=
"没有更多了"
>
<Empty
v-if=
"!listValue.length"
description=
"无记录"
/>
<ListItem
v-for=
"item in listValue"
:other_title=
"item.other_title"
:title=
"item.title"
:values=
"item.values"
@
click=
"jump(item.intentionId)"
/>
</List>
</PullRefresh>
</section>
<Plus
@
click=
"jump('')"
/>
</div>
</
template
>
<
script
setup
>
import
{
goBack
}
from
"@/utils/globalFun"
import
{
NavBar
,
List
,
PullRefresh
,
Empty
}
from
"vant"
;
import
ListItem
from
'@/components/ListItem.vue'
import
Plus
from
'@/components/Plus.vue'
import
api
from
"../api"
;
import
{
useRouter
}
from
"vue-router"
;
import
{
useIntention
}
from
'../store/index'
import
{
currency
}
from
'@/utils/textFormat'
const
formStore
=
useIntention
()
const
listValue
=
$ref
([])
const
getList
=
async
()
=>
{
let
res
=
await
api
.
getlist
()
if
(
res
.
success
&&
res
.
rows
.
length
)
{
listValue
=
res
.
rows
.
map
(
item
=>
{
return
{
title
:
item
.
intentionNumber
,
other_title
:
item
.
creationDate
.
split
(
' '
)[
0
],
values
:
[[
"合同金额"
,
"状态"
],
[
"¥ "
+
(
currency
(
item
.
contractAmount
)
||
'0.00'
),
item
.
intentionStatusN
]],
intentionId
:
item
.
intentionId
}
})
}
else
{
listValue
=
[]
}
refreshing
=
false
;
}
getList
()
const
refreshing
=
$ref
(
true
);
const
finished
=
$ref
(
true
);
const
router
=
useRouter
();
const
jump
=
async
(
intentionId
=
''
)
=>
{
if
(
intentionId
)
{
let
res
=
await
api
.
getDetail
({
intentionId
:
intentionId
+
''
})
if
(
res
.
success
&&
res
.
rows
.
length
)
{
formStore
.
intentionData
=
res
.
rows
[
0
];
router
.
push
({
name
:
'intention-views-intentionForm'
})
}
}
else
{
router
.
push
({
name
:
'intention-views-intentionForm'
})
}
}
</
script
>
<
style
scoped
lang=
"less"
>
.list {
box-sizing: border-box;
height: calc(100vh - var(--van-nav-bar-height));
display: flex;
flex-direction: column;
justify-content: space-between;
padding-top: 8px;
padding-bottom: 10px;
}
.scroll {
box-sizing: border-box;
height: 100%;
overflow-y: auto;
}
</
style
>
<route>
{
meta: {
title: '融资意向'
}
}
</route>
src/modules/intention/views/intentionForm.vue
View file @
47dabc07
...
...
@@ -35,7 +35,7 @@ let location = useLocation()
const
formRaw
=
[
{
title
:
'合同总额'
,
propName
:
'
contract
Amount'
,
propName
:
'
finance
Amount'
,
type
:
'currency'
,
value
:
''
,
isRequired
:
true
...
...
@@ -123,7 +123,7 @@ const save = async () => {
}
console
.
log
(
formValueObj
);
if
(
formConfig
.
validate
())
{
let
res
=
await
api
.
saveInfo
({
remark
:
message
,
...
formValueObj
})
let
res
=
await
api
.
saveInfo
({
remark
:
message
,
...
formValueObj
,
financeAmount
:
+
formValueObj
.
financeAmount
})
if
(
res
.
success
)
{
Toast
.
success
(
'保存成功'
);
}
else
{
...
...
src/modules/repayPlan/views/index.vue
View file @
47dabc07
<
template
>
<div
class=
"container"
>
<NavBar
title=
"还款计划"
left-arrow
@
click-left=
"goBack"
/>
<section
class=
"list"
>
<Search
v-model=
"searchVal"
placeholder=
"请输入项目编号/融资金额"
/>
<Notice
detail=
"只可对已关联的项目还款"
/>
<PullRefresh
v-model=
"refreshing"
@
refresh=
"getList"
class=
"scroll"
>
<List
:finished=
"finished"
finished-text=
"没有更多了"
@
load=
"loadApproval"
>
<ListItem
v-for=
"item in listValue"
:other_title=
"item.other_title"
:title=
"item.title"
:values=
"item.values"
@
click=
"jump"
/>
</List>
</PullRefresh>
</section>
</div>
</
template
>
<
script
setup
>
import
{
goBack
}
from
"@/utils/globalFun"
import
{
NavBar
,
List
,
PullRefresh
,
Search
}
from
"vant"
;
import
Notice
from
'@/components/Notice.vue'
import
ListItem
from
'@/components/ListItem.vue'
import
api
from
"../api"
;
import
{
useRouter
}
from
"vue-router"
;
const
searchVal
=
$ref
(
''
);
let
listValue
=
$ref
([
// {
// title: '202204-DB001-001',
// other_title: "2022-07-18",
// values: [["剩余应还金额", "状态", "融资金额"], ["¥ 20,000.00", "正常", "¥ 20,000.00"]]
// },
// {
// title: '202204-DB001-001',
// other_title: "2022-07-18",
// values: [["剩余应还金额", "状态", "融资金额"], ["¥ 20,000.00", "正常", "¥ 20,000.00"]]
// },
])
let
refreshing
=
$ref
(
true
);
const
finished
=
$ref
(
true
);
const
getList
=
async
()
=>
{
// 下拉重置参数,重新加载
let
res
=
await
api
.
getRepayPlantList
({
userId
:
window
.
localStorage
.
getItem
(
'userId'
)});
let
list
=
[]
if
(
res
.
success
){
list
=
res
.
rows
.
map
(
item
=>
({
...
item
,
title
:
item
.
contractNumber
,
other_title
:
item
.
applyDate
?.
split
(
' '
)[
0
],
values
:
[[
"剩余应还金额"
,
"状态"
,
"融资金额"
],
[
item
.
residueAmount
,
item
.
contractStatusN
,
item
.
financeAmount
]]
}))
}
else
{
list
=
[];
}
listValue
=
list
;
refreshing
=
false
;
};
getList
();
const
loadApproval
=
()
=>
{
}
const
router
=
useRouter
();
const
jump
=
()
=>
{
router
.
push
({
name
:
'repayPlan-views-plan'
})
}
</
script
>
<
style
scoped
lang=
"less"
>
.list {
box-sizing: border-box;
height: calc(100vh - var(--van-nav-bar-height));
display: flex;
flex-direction: column;
justify-content: space-between;
padding-bottom: 10px;
}
.scroll {
box-sizing: border-box;
height: calc(100vh - 30vw);
overflow-y: auto;
}
</
style
>
<route>
{
meta: {
title: '还款计划查询'
}
}
</route>
<
template
>
<div
class=
"container"
>
<NavBar
title=
"还款计划"
left-arrow
@
click-left=
"goBack"
/>
<section
class=
"list"
>
<Search
v-model=
"searchVal"
placeholder=
"请输入项目编号/融资金额"
/>
<Notice
detail=
"只可对已关联的项目还款"
/>
<PullRefresh
v-model=
"refreshing"
@
refresh=
"getList"
class=
"scroll"
>
<List
:finished=
"finished"
finished-text=
"没有更多了"
@
load=
"loadApproval"
>
<ListItem
v-for=
"item in listValue"
:other_title=
"item.other_title"
:title=
"item.title"
:values=
"item.values"
@
click=
"jump"
/>
</List>
</PullRefresh>
</section>
</div>
</
template
>
<
script
setup
>
import
{
goBack
}
from
"@/utils/globalFun"
import
{
NavBar
,
List
,
PullRefresh
,
Search
}
from
"vant"
;
import
Notice
from
'@/components/Notice.vue'
import
ListItem
from
'@/components/ListItem.vue'
import
api
from
"../api"
;
import
{
useRouter
}
from
"vue-router"
;
import
{
currency
}
from
'@/utils/textFormat'
const
searchVal
=
$ref
(
''
);
let
listValue
=
$ref
([
// {
// title: '202204-DB001-001',
// other_title: "2022-07-18",
// values: [["剩余应还金额", "状态", "融资金额"], ["¥ 20,000.00", "正常", "¥ 20,000.00"]]
// },
// {
// title: '202204-DB001-001',
// other_title: "2022-07-18",
// values: [["剩余应还金额", "状态", "融资金额"], ["¥ 20,000.00", "正常", "¥ 20,000.00"]]
// },
])
let
refreshing
=
$ref
(
true
);
const
finished
=
$ref
(
true
);
const
getList
=
async
()
=>
{
// 下拉重置参数,重新加载
let
res
=
await
api
.
getRepayPlantList
({
userId
:
window
.
localStorage
.
getItem
(
'userId'
)});
let
list
=
[]
if
(
res
.
success
){
list
=
res
.
rows
.
map
(
item
=>
({
...
item
,
title
:
item
.
contractNumber
,
other_title
:
item
.
applyDate
?.
split
(
' '
)[
0
],
values
:
[[
"剩余应还金额"
,
"状态"
,
"融资金额"
],
[
currency
(
item
.
residueAmount
),
item
.
contractStatusN
,
currency
(
item
.
financeAmount
)]]
}))
}
else
{
list
=
[];
}
listValue
=
list
;
refreshing
=
false
;
};
getList
();
const
loadApproval
=
()
=>
{
}
const
router
=
useRouter
();
const
jump
=
()
=>
{
router
.
push
({
name
:
'repayPlan-views-plan'
})
}
</
script
>
<
style
scoped
lang=
"less"
>
.list {
box-sizing: border-box;
height: calc(100vh - var(--van-nav-bar-height));
display: flex;
flex-direction: column;
justify-content: space-between;
padding-bottom: 10px;
}
.scroll {
box-sizing: border-box;
height: calc(100vh - 30vw);
overflow-y: auto;
}
</
style
>
<route>
{
meta: {
title: '还款计划查询'
}
}
</route>
src/modules/repayPlan/views/plan.vue
View file @
47dabc07
This diff is collapsed.
Click to expand it.
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