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
b023f64b
Commit
b023f64b
authored
Dec 02, 2022
by
Step_by_step
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: 我的奖励券,合同签约
parent
46e3bfa4
Changes
17
Show whitespace changes
Inline
Side-by-side
Showing
17 changed files
with
462 additions
and
12 deletions
+462
-12
README.md
README.md
+2
-3
package.json
package.json
+2
-1
ListItem.vue
src/components/ListItem.vue
+3
-3
detail.vue
src/modules/calculator/views/detail.vue
+2
-2
index.js
src/modules/contractSign/api/index.js
+13
-0
SignListItem.vue
src/modules/contractSign/components/SignListItem.vue
+81
-0
index.js
src/modules/contractSign/store/index.js
+6
-0
index.vue
src/modules/contractSign/views/index.vue
+111
-0
pdfPre.vue
src/modules/contractSign/views/pdfPre.vue
+46
-0
ChangeListItem.vue
src/modules/infoChange/components/ChangeListItem.vue
+2
-1
authorize.vue
src/modules/selfService/views/authorize.vue
+2
-2
index.js
src/modules/ticket/api/index.js
+13
-0
kflc.png
src/modules/ticket/assets/kflc.png
+0
-0
TicketListItem.vue
src/modules/ticket/components/TicketListItem.vue
+90
-0
index.js
src/modules/ticket/store/index.js
+6
-0
index.vue
src/modules/ticket/views/index.vue
+78
-0
yarn.lock
yarn.lock
+5
-0
No files found.
README.md
View file @
b023f64b
...
@@ -19,7 +19,6 @@ npm run preview 本地预览打包完的文件
...
@@ -19,7 +19,6 @@ npm run preview 本地预览打包完的文件
}
}
</route>
</route>
```
```
🅰
---
---
...
@@ -30,7 +29,7 @@ npm run preview 本地预览打包完的文件
...
@@ -30,7 +29,7 @@ npm run preview 本地预览打包完的文件
1.
融资计算器
✅
(
✋
.5)
1.
融资计算器
✅
(
✋
.5)
2.
融资意向
✅
(
✋
.5)
2.
融资意向
✅
(
✋
.5)
3.
项目查询 (
✋
1.5 项目信息明细页面需要重头画)
3.
项目查询 (
✋
1.5 项目信息明细页面需要重头画)
4.
合同签约 (E签宝, 预览签署文件) (
✋
2)
4.
合同签约 (E签宝, 预览签署文件)
✅
(
✋
2)
5.
还款计划 (支付)(
✋
2)
5.
还款计划 (支付)(
✋
2)
6.
还款计划查询 (发票预览下载) (
✋
2)
6.
还款计划查询 (发票预览下载) (
✋
2)
7.
自助服务
✅
(
✋
.5)
7.
自助服务
✅
(
✋
.5)
...
@@ -43,7 +42,7 @@ npm run preview 本地预览打包完的文件
...
@@ -43,7 +42,7 @@ npm run preview 本地预览打包完的文件
#### 我的
#### 我的
1.
我的奖励券 (
✋
1)
1.
我的奖励券
✅
(
✋
1)
2.
关联项目
✅
(验证码)(
✋
1.5)
2.
关联项目
✅
(验证码)(
✋
1.5)
3.
投诉与建议
✅
(
✋
.5)
3.
投诉与建议
✅
(
✋
.5)
4.
关于我们
✅
(
✋
.5)
4.
关于我们
✅
(
✋
.5)
...
...
package.json
View file @
b023f64b
...
@@ -25,6 +25,7 @@
...
@@ -25,6 +25,7 @@
"
vant
"
:
"
^3.6.6
"
,
"
vant
"
:
"
^3.6.6
"
,
"
vconsole
"
:
"
^3.15.0
"
,
"
vconsole
"
:
"
^3.15.0
"
,
"
vue
"
:
"
^3.2.41
"
,
"
vue
"
:
"
^3.2.41
"
,
"
vue-pdf-embed
"
:
"
^1.1.5
"
,
"
vue-router
"
:
"
^4.1.5
"
"
vue-router
"
:
"
^4.1.5
"
},
},
"devDependencies"
:
{
"devDependencies"
:
{
...
...
src/components/ListItem.vue
View file @
b023f64b
<
template
>
<
template
>
<SwipeCell
class=
"swipe"
:disabled=
"!isSwiper"
>
<SwipeCell
class=
"swipe"
:disabled=
"!isSwiper"
>
<div
class=
"box"
>
<div
class=
"box"
@
click=
"$emit('click')"
>
<template
v-if=
"title"
>
<template
v-if=
"title"
>
<h1
class=
"title "
>
<h1
class=
"title "
>
{{
title
}}
{{
title
}}
...
@@ -18,7 +18,7 @@
...
@@ -18,7 +18,7 @@
</table>
</table>
</div>
</div>
<
template
#
right
>
<
template
#
right
v-if=
"isSwiper"
>
<Button
square
type=
"danger"
style=
"height: 100%"
@
click
.
stop=
"$emit('clickRight')"
>
<Button
square
type=
"danger"
style=
"height: 100%"
@
click
.
stop=
"$emit('clickRight')"
>
<slot
name=
"rightTxt"
>
<slot
name=
"rightTxt"
>
<Icon
name=
"delete"
color=
"#fff"
size=
"30"
/>
<Icon
name=
"delete"
color=
"#fff"
size=
"30"
/>
...
@@ -51,7 +51,7 @@ defineProps({
...
@@ -51,7 +51,7 @@ defineProps({
}
}
})
})
defineEmits
([
'clickRight'
])
defineEmits
([
'clickRight'
,
'click'
])
</
script
>
</
script
>
<
style
scoped
lang=
"less"
>
<
style
scoped
lang=
"less"
>
...
...
src/modules/calculator/views/detail.vue
View file @
b023f64b
...
@@ -2,7 +2,7 @@
...
@@ -2,7 +2,7 @@
<div
class=
"container"
>
<div
class=
"container"
>
<NavBar
title=
"试算详情"
left-arrow
@
click-left=
"goBack"
/>
<NavBar
title=
"试算详情"
left-arrow
@
click-left=
"goBack"
/>
<Notic
ce
detail=
"如需使用其他测算方式可联系当地代理店"
></Notic
ce>
<Notic
e
detail=
"如需使用其他测算方式可联系当地代理店"
></Noti
ce>
<div
class=
"content"
>
<div
class=
"content"
>
<section
class=
"form-area"
>
<section
class=
"form-area"
>
...
@@ -19,7 +19,7 @@
...
@@ -19,7 +19,7 @@
<
script
setup
>
<
script
setup
>
import
{
goBack
}
from
"@/utils/globalFun"
import
{
goBack
}
from
"@/utils/globalFun"
import
{
NavBar
,
Button
}
from
"vant"
;
import
{
NavBar
,
Button
}
from
"vant"
;
import
Notic
c
e
from
"@/components/Notice.vue"
import
Notice
from
"@/components/Notice.vue"
import
AuForm
from
'@/components/AuForm.vue'
;
import
AuForm
from
'@/components/AuForm.vue'
;
import
AuFormClass
from
"@/components/useAuForm"
;
import
AuFormClass
from
"@/components/useAuForm"
;
import
{
useRouter
}
from
"vue-router"
;
import
{
useRouter
}
from
"vue-router"
;
...
...
src/modules/contractSign/api/index.js
0 → 100644
View file @
b023f64b
import
{
get
,
put
,
post
,
File
,
deleteReq
}
from
'@/utils/http'
const
baseURL
=
import
.
meta
.
env
.
VITE_HTTP_BASE_URL
const
api
=
{
// getMakingList (data) { // 查询合同制作列表
// return get(
// `${baseURL}/hlct/v1/0/contracts/toMake`,
// {...data}
// )
// },
};
export
default
api
;
src/modules/contractSign/components/SignListItem.vue
0 → 100644
View file @
b023f64b
<
template
>
<div
class=
"box"
@
click=
"$emit('click')"
>
<div
class=
"left"
>
<p
class=
"priColor"
>
合同编号:
</p>
<p>
代理店:
</p>
<p
v-if=
"!sdata.isSign"
>
签署截止日:
</p>
</div>
<div
class=
"center"
>
<p>
{{
sdata
.
contractId
}}
</p>
<p>
{{
sdata
.
dl
}}
</p>
<p
v-if=
"!sdata.isSign"
>
{{
sdata
.
date
}}
</p>
</div>
<div
class=
"right"
:class=
"[sdata.isSign ? 'gayColor' : 'priColor']"
>
{{
sdata
.
isSign
?
'已签署'
:
'未签署'
}}
</div>
</div>
</
template
>
<
script
setup
>
defineProps
({
sdata
:
{
type
:
Object
,
default
:
{
isSign
:
false
,
contractId
:
''
,
dl
:
""
,
date
:
""
}
}
})
defineEmits
([
'click'
])
</
script
>
<
style
scoped
lang=
"less"
>
.box {
box-sizing: border-box;
height: auto;
background-color: white;
width: 92%;
padding: 8px 8px;
margin: 0 auto;
border-top-right-radius: 5px;
border-bottom-right-radius: 5px;
display: flex;
}
.box+.box {
margin-top: 10px;
}
.left {
flex: 1 0 30%;
}
.center {
flex: 1 0 50%;
}
.left p,
.center p {
line-height: 25px;
color: gray;
}
.right {
flex: 1 0 20%;
display: flex;
justify-content: center;
align-items: center;
font-weight: 600;
}
.priColor {
color: #0277bc !important;
}
.gayColor {
color: gray !important;
}
</
style
>
\ No newline at end of file
src/modules/contractSign/store/index.js
0 → 100644
View file @
b023f64b
const
state
=
{};
export
default
{
namespaced
:
true
,
state
,
};
src/modules/contractSign/views/index.vue
0 → 100644
View file @
b023f64b
<
template
>
<div
class=
"container"
>
<NavBar
title=
"合同签约"
left-arrow
@
click-left=
"goBack"
/>
<section
class=
"list"
>
<Tabs
v-model:active=
"active"
title-active-color=
"#0277bc"
color=
"#0277bc"
>
<Search
v-model=
"value"
placeholder=
"请输入合同编号/代理店"
/>
<Tab
title=
"未签署"
>
<Notice
detail=
"只对已关联的项目发送合同签约链接"
/>
<PullRefresh
v-model=
"refreshing"
@
refresh=
"onRefresh"
class=
"scroll"
>
<List
:finished=
"finished"
finished-text=
"没有更多了"
@
load=
"loadApproval"
>
<SignListItem
v-for=
"item in notList"
:sdata=
"item"
@
click=
"jump"
/>
</List>
</PullRefresh>
</Tab>
<Tab
title=
"已签署"
>
<PullRefresh
v-model=
"refreshing"
@
refresh=
"onRefresh"
class=
"scroll"
>
<List
:finished=
"finished"
finished-text=
"没有更多了"
@
load=
"loadApproval"
>
<SignListItem
v-for=
"item in alreadyList"
:sdata=
"item"
@
click=
"jump"
/>
</List>
</PullRefresh>
</Tab>
</Tabs>
</section>
</div>
</
template
>
<
script
setup
>
import
{
goBack
}
from
"@/utils/globalFun"
import
{
NavBar
,
List
,
PullRefresh
,
Tab
,
Tabs
,
Search
}
from
"vant"
;
import
Notice
from
'@/components/Notice.vue'
import
SignListItem
from
'../components/SignListItem.vue'
import
api
from
"../api"
;
import
{
useRouter
}
from
"vue-router"
;
const
notList
=
$ref
([
{
isSign
:
false
,
contractId
:
'KFLC22022002'
,
dl
:
"河南焦作"
,
date
:
"2022-11-03"
},
{
isSign
:
false
,
contractId
:
'KFLC22022002'
,
dl
:
"河南焦作"
,
date
:
"2022-11-03"
},
])
const
alreadyList
=
$ref
([
{
isSign
:
true
,
contractId
:
'KFLC22022002'
,
dl
:
"河南焦作"
,
date
:
"2022-11-03"
},
{
isSign
:
true
,
contractId
:
'KFLC22022002'
,
dl
:
"河南焦作"
,
date
:
"2022-11-03"
},
])
const
refreshing
=
$ref
(
true
);
const
finished
=
$ref
(
true
);
const
onRefresh
=
()
=>
{
// 下拉重置参数,重新加载
};
const
loadApproval
=
()
=>
{
}
const
router
=
useRouter
();
const
jump
=
()
=>
{
router
.
push
({
name
:
'contractSign-views-pdfPre'
})
}
</
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 - 56vw);
overflow-y: auto;
}
</
style
>
<route>
{
meta: {
title: '合同签约'
}
}
</route>
src/modules/contractSign/views/pdfPre.vue
0 → 100644
View file @
b023f64b
<
template
>
<div
class=
"container"
>
<NavBar
title=
"合同预览"
left-arrow
@
click-left=
"goBack"
/>
<div
class=
"content"
>
<VuePdfEmbed
ref=
"pdfRef"
:source=
"pdfSource"
:page=
"page"
@
rendered=
"handleDocumentRender"
></VuePdfEmbed>
</div>
</div>
</
template
>
<
script
setup
>
import
{
goBack
}
from
"@/utils/globalFun"
import
{
NavBar
,
Toast
}
from
"vant"
;
import
VuePdfEmbed
from
'vue-pdf-embed'
import
{
watchEffect
}
from
'vue'
const
isLoading
=
$ref
(
true
)
const
page
=
$ref
(
null
)
const
pdfRef
=
$ref
(
''
)
const
pageCount
=
$ref
(
1
)
const
pdfSource
=
$ref
(
'https://raw.githubusercontent.com/mozilla/pdf.js/ba2edeae/web/compressed.tracemonkey-pldi-09.pdf'
)
watchEffect
(()
=>
{
if
(
isLoading
)
{
Toast
.
loading
({
message
:
'加载中...'
,
forbidClick
:
true
,
overlay
:
true
,
duration
:
0
});
}
else
{
Toast
.
clear
()
}
})
const
handleDocumentRender
=
(
args
)
=>
{
isLoading
=
false
pageCount
=
pdfRef
.
pageCount
}
</
script
>
<
style
lang=
"less"
scoped
>
.content {
height: calc(100% - var(--van-nav-bar-height));
overflow-y: auto;
}
.vue-pdf-embed {
}
</
style
>
\ No newline at end of file
src/modules/infoChange/components/ChangeListItem.vue
View file @
b023f64b
<
template
>
<
template
>
<SwipeCell
class=
"swipe"
:disabled=
"true"
>
<SwipeCell
class=
"swipe"
:disabled=
"true"
>
<div
class=
"box"
>
<div
class=
"box"
@
click=
"$emit('click')"
>
<p>
<p>
<span>
申请编号:
</span>
<span>
申请编号:
</span>
<span>
{{
info
.
id
}}
</span>
<span>
{{
info
.
id
}}
</span>
...
@@ -32,6 +32,7 @@ defineProps({
...
@@ -32,6 +32,7 @@ defineProps({
}
}
})
})
defineEmits
([
'click'
])
</
script
>
</
script
>
<
style
scoped
lang=
"less"
>
<
style
scoped
lang=
"less"
>
...
...
src/modules/selfService/views/authorize.vue
View file @
b023f64b
...
@@ -2,7 +2,7 @@
...
@@ -2,7 +2,7 @@
<div
class=
"container"
>
<div
class=
"container"
>
<NavBar
title=
"授权"
left-arrow
@
click-left=
"goBack"
/>
<NavBar
title=
"授权"
left-arrow
@
click-left=
"goBack"
/>
<Notic
c
e
detail=
"授权该代理店后,该代理店可查看您的信息。"
/>
<Notice
detail=
"授权该代理店后,该代理店可查看您的信息。"
/>
<section
class=
"form"
>
<section
class=
"form"
>
<CellGroup
inset
>
<CellGroup
inset
>
...
@@ -29,7 +29,7 @@
...
@@ -29,7 +29,7 @@
<
script
setup
>
<
script
setup
>
import
{
goBack
}
from
"@/utils/globalFun"
import
{
goBack
}
from
"@/utils/globalFun"
import
Notic
c
e
from
"@/components/Notice.vue"
import
Notice
from
"@/components/Notice.vue"
import
{
NavBar
,
Field
,
CellGroup
,
Popup
,
Picker
,
Button
}
from
"vant"
;
import
{
NavBar
,
Field
,
CellGroup
,
Popup
,
Picker
,
Button
}
from
"vant"
;
const
showArea
=
$ref
(
false
)
const
showArea
=
$ref
(
false
)
...
...
src/modules/ticket/api/index.js
0 → 100644
View file @
b023f64b
import
{
get
,
put
,
post
,
File
,
deleteReq
}
from
'@/utils/http'
const
baseURL
=
import
.
meta
.
env
.
VITE_HTTP_BASE_URL
const
api
=
{
// getMakingList (data) { // 查询合同制作列表
// return get(
// `${baseURL}/hlct/v1/0/contracts/toMake`,
// {...data}
// )
// },
};
export
default
api
;
src/modules/ticket/assets/kflc.png
0 → 100644
View file @
b023f64b
7.64 KB
src/modules/ticket/components/TicketListItem.vue
0 → 100644
View file @
b023f64b
<
template
>
<div
class=
"box"
@
click=
"$emit('click')"
>
<div
class=
"left"
>
<p>
<span>
券号:
</span>
<span>
{{
sdata
.
id
}}
</span>
</p>
<p>
<span>
项目编号:
</span>
<span>
{{
sdata
.
pid
}}
</span>
</p>
<p
v-if=
"sdata.isUse"
>
有效期至 2022.10.28
</p>
</div>
<div
class=
"right"
>
<p
:class=
"[sdata.isUse ? 'used' : 'not_user']"
>
未使用
</p>
<p
v-if=
"!sdata.isUse"
>
查看兑换码
</p>
</div>
</div>
</
template
>
<
script
setup
>
defineProps
({
sdata
:
{
type
:
Object
,
default
:
{
isUse
:
false
,
id
:
'1234777'
,
pid
:
'****************'
,
VDate
:
'2022.10.28'
}
}
})
defineEmits
([
'click'
])
</
script
>
<
style
scoped
lang=
"less"
>
.box {
box-sizing: border-box;
min-height: 90px;
background-color: #f3f8f9;
width: 92%;
padding: 8px 8px;
margin: 0 auto;
border-top-right-radius: 5px;
border-bottom-right-radius: 5px;
display: flex;
box-shadow: 2px 1px 4px 3px rgba(211, 237, 249, .8);
color: #31b1f3;
font-size: 14px;
line-height: 23px;
background-image: url(../assets/kflc.png);
background-size: 42vw;
background-position: top right;
background-repeat: no-repeat;
}
.box+.box {
margin-top: 20px;
}
.left {
flex: 1 0 70%;
}
.right {
flex: 1 0 30%;
display: flex;
flex-direction: column-reverse;
align-items: flex-end;
img {
height: 30px;
}
}
.not_user {
color: #64ce6f;
font-weight: 600;
letter-spacing: 5px;
font-size: 15px;
}
.used {
color: #fd4c48;
font-weight: 600;
letter-spacing: 5px;
font-size: 15px;
}
</
style
>
\ No newline at end of file
src/modules/ticket/store/index.js
0 → 100644
View file @
b023f64b
const
state
=
{};
export
default
{
namespaced
:
true
,
state
,
};
src/modules/ticket/views/index.vue
0 → 100644
View file @
b023f64b
<
template
>
<div
class=
"container"
>
<NavBar
title=
"我的奖励券"
left-arrow
@
click-left=
"goBack"
/>
<section
class=
"list"
>
<PullRefresh
v-model=
"refreshing"
@
refresh=
"onRefresh"
class=
"scroll"
>
<List
:finished=
"finished"
finished-text=
"没有更多了"
@
load=
"loadApproval"
>
<TicketListItem
v-for=
"item in list"
:sdata=
"item"
/>
</List>
</PullRefresh>
</section>
</div>
</
template
>
<
script
setup
>
import
{
goBack
}
from
"@/utils/globalFun"
import
{
NavBar
,
List
,
PullRefresh
}
from
"vant"
;
import
TicketListItem
from
'../components/TicketListItem.vue'
import
api
from
"../api"
;
import
{
useRouter
}
from
"vue-router"
;
const
list
=
$ref
([
{
isUse
:
false
,
id
:
'1234777'
,
pid
:
'****************'
,
VDate
:
'2022.10.28'
},
{
isUse
:
true
,
id
:
'1234777'
,
pid
:
'****************'
,
VDate
:
'2022.10.28'
},
])
const
refreshing
=
$ref
(
true
);
const
finished
=
$ref
(
true
);
const
onRefresh
=
()
=>
{
// 下拉重置参数,重新加载
};
const
loadApproval
=
()
=>
{
}
const
router
=
useRouter
();
</
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: 10px;
padding-bottom: 10px;
}
.scroll {
box-sizing: border-box;
height: calc(100vh - var(--van-nav-bar-height));
overflow-y: auto;
}
</
style
>
<route>
{
meta: {
title: '我的奖励券'
}
}
</route>
yarn.lock
View file @
b023f64b
...
@@ -1387,6 +1387,11 @@ vue-demi@*:
...
@@ -1387,6 +1387,11 @@ vue-demi@*:
resolved "http://nexus.saas.hand-china.com/repository/hzero-npm-group/vue-demi/-/vue-demi-0.13.11.tgz#7d90369bdae8974d87b1973564ad390182410d99"
resolved "http://nexus.saas.hand-china.com/repository/hzero-npm-group/vue-demi/-/vue-demi-0.13.11.tgz#7d90369bdae8974d87b1973564ad390182410d99"
integrity sha512-IR8HoEEGM65YY3ZJYAjMlKygDQn25D5ajNFNoKh9RSDMQtlzCxtfQjdQgv9jjK+m3377SsJXY8ysq8kLCZL25A==
integrity sha512-IR8HoEEGM65YY3ZJYAjMlKygDQn25D5ajNFNoKh9RSDMQtlzCxtfQjdQgv9jjK+m3377SsJXY8ysq8kLCZL25A==
vue-pdf-embed@^1.1.5:
version "1.1.5"
resolved "https://registry.yarnpkg.com/vue-pdf-embed/-/vue-pdf-embed-1.1.5.tgz#e9a2ff6a027ce4afce9ec558aa5d683fb775ae34"
integrity sha512-aOUKlPFML9abOmFJgCuDujzcXmjN1Ck3X3vt0h2N/EGZYASS9TRXu96s+NzwZDr13iTZ8LGskLOzzXvf7FIpwQ==
vue-router@^4.1.5:
vue-router@^4.1.5:
version "4.1.6"
version "4.1.6"
resolved "http://nexus.saas.hand-china.com/repository/hzero-npm-group/vue-router/-/vue-router-4.1.6.tgz#b70303737e12b4814578d21d68d21618469375a1"
resolved "http://nexus.saas.hand-china.com/repository/hzero-npm-group/vue-router/-/vue-router-4.1.6.tgz#b70303737e12b4814578d21d68d21618469375a1"
...
...
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