Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
A
account-book
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
刘文虎
account-book
Commits
ec1bcb2b
Commit
ec1bcb2b
authored
Aug 16, 2022
by
刘文虎
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' of
https://git.banshouhui.com/liuwenhu/account-book
parents
d6ce40f7
6182ffc6
Pipeline
#3241
canceled with stages
Changes
8
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
111 additions
and
25 deletions
+111
-25
index.vue
components/cell-card-swiper/index.vue
+83
-0
index.vue
components/cell-card/index.vue
+1
-5
index.vue
pages/card/index.vue
+3
-3
chart-view.vue
pages/index/bill/components/chart-view.vue
+4
-3
scroll-box.vue
pages/index/bill/components/scroll-box.vue
+2
-0
create.vue
pages/maintain-bill/create.vue
+7
-3
show.vue
pages/maintain-bill/show.vue
+10
-10
config.js
utils/config.js
+1
-1
No files found.
components/cell-card-swiper/index.vue
0 → 100644
View file @
ec1bcb2b
<
template
>
<view
class=
"cell-card"
hover-class=
"u-hover-class"
@
click
.
stop=
"$u.throttle(handleClickCard, 500)"
>
<swiper
class=
"swiper"
:indicator-dots=
"true"
indicator-color=
"rgba(252, 184, 42, 0.45)"
indicator-active-color=
"#FCB82A"
style=
"height: 420rpx"
>
<swiper-item>
<Card
ref=
"card"
:info=
"info"
@
save=
"handleCanvas"
@
update=
"handleUpdate"
/>
</swiper-item>
<swiper-item>
<CardBack
ref=
"cardBack"
:info=
"info"
@
save=
"handleCanvasBack"
/>
</swiper-item>
</swiper>
</view>
</
template
>
<
script
>
import
Card
from
'@/components/cell-card'
import
CardBack
from
'@/components/cell-card-back'
export
default
{
components
:
{
Card
,
CardBack
,
},
props
:
{
info
:
{
type
:
Object
,
default
()
{
return
{}
},
},
},
data
()
{
return
{}
},
computed
:
{},
methods
:
{
updateImage
()
{
this
.
$refs
.
card
.
updateImage
()
},
saveImage
()
{
this
.
$refs
.
card
.
saveImage
()
return
this
.
$refs
.
cardBack
.
saveImage
()
},
handleClickCard
()
{
this
.
$emit
(
'click'
)
},
handleCanvas
(
res
)
{
this
.
$emit
(
'save'
,
res
)
},
handleUpdate
(
url
)
{
this
.
$emit
(
'update'
,
url
)
},
handleCanvasBack
(
res
)
{
this
.
$refs
.
card
.
saveImage
()
},
},
}
</
script
>
<
style
scoped
lang=
"scss"
>
.cell-card
{
width
:
100%
;
height
:
420rpx
;
border-radius
:
16rpx
;
background-color
:
#ffffff
;
position
:
relative
;
overflow
:
hidden
;
}
</
style
>
components/cell-card/index.vue
View file @
ec1bcb2b
<
template
>
<
template
>
<view
<view
class=
"cell-card"
>
class=
"cell-card"
hover-class=
"u-hover-class"
@
click
.
stop=
"$u.throttle(handleClick, 500)"
>
<template
v-if=
"isGreen"
>
<template
v-if=
"isGreen"
>
<view
class=
"back-view"
>
<view
class=
"back-view"
>
<image
:src=
"settings.image"
></image>
<image
:src=
"settings.image"
></image>
...
...
pages/card/index.vue
View file @
ec1bcb2b
...
@@ -31,7 +31,7 @@
...
@@ -31,7 +31,7 @@
</view>
</view>
<template
v-else
>
<template
v-else
>
<view
class=
"card-content"
>
<view
class=
"card-content"
>
<Card
<Card
Swiper
ref=
"card"
ref=
"card"
:info=
"info"
:info=
"info"
@
click=
"handleClickCard"
@
click=
"handleClickCard"
...
@@ -114,7 +114,7 @@
...
@@ -114,7 +114,7 @@
<
script
>
<
script
>
import
NavbarRight
from
'@/components/navbar-right'
import
NavbarRight
from
'@/components/navbar-right'
import
NoData
from
'@/components/no-data'
import
NoData
from
'@/components/no-data'
import
Card
from
'@/components/cell-card
'
import
Card
Swiper
from
'@/components/cell-card-swiper
'
import
CellRelation
from
'@/components/cell-relation'
import
CellRelation
from
'@/components/cell-relation'
import
{
import
{
getBusinessCardSelf
,
getBusinessCardSelf
,
...
@@ -128,7 +128,7 @@ export default {
...
@@ -128,7 +128,7 @@ export default {
components
:
{
components
:
{
NavbarRight
,
NavbarRight
,
NoData
,
NoData
,
Card
,
Card
Swiper
,
CellRelation
,
CellRelation
,
},
},
data
()
{
data
()
{
...
...
pages/index/bill/components/chart-view.vue
View file @
ec1bcb2b
...
@@ -205,7 +205,7 @@ export default {
...
@@ -205,7 +205,7 @@ export default {
date
:
this
.
$u
.
timeFormat
(
new
Date
().
getTime
(),
'yyyy-mm'
)
+
'-01'
,
date
:
this
.
$u
.
timeFormat
(
new
Date
().
getTime
(),
'yyyy-mm'
)
+
'-01'
,
daterange
:
[],
daterange
:
[],
showDatePicker
:
false
,
showDatePicker
:
false
,
infoIndex
:
0
,
infoIndex
:
1
,
info
:
{},
info
:
{},
loading
:
false
,
loading
:
false
,
triggered
:
true
,
triggered
:
true
,
...
@@ -693,12 +693,13 @@ export default {
...
@@ -693,12 +693,13 @@ export default {
align-items
:
center
;
align-items
:
center
;
justify-content
:
space-between
;
justify-content
:
space-between
;
padding
:
0
24rpx
;
padding
:
0
24rpx
;
font-size
:
24rpx
;
.left-view
{
.left-view
{
display
:
flex
;
display
:
flex
;
align-items
:
center
;
align-items
:
center
;
.item-view
{
.item-view
{
height
:
48rpx
;
height
:
48rpx
;
width
:
104
rpx
;
width
:
96
rpx
;
line-height
:
48rpx
;
line-height
:
48rpx
;
font-weight
:
bold
;
font-weight
:
bold
;
color
:
#8d8d8d
;
color
:
#8d8d8d
;
...
@@ -778,7 +779,7 @@ export default {
...
@@ -778,7 +779,7 @@ export default {
.item-text
{
.item-text
{
font-size
:
32rpx
;
font-size
:
32rpx
;
font-weight
:
bold
;
font-weight
:
bold
;
margin
:
20rpx
0
1
0
rpx
0
;
margin
:
20rpx
0
1
4
rpx
0
;
padding
:
0
24rpx
;
padding
:
0
24rpx
;
}
}
.item-data
{
.item-data
{
...
...
pages/index/bill/components/scroll-box.vue
View file @
ec1bcb2b
...
@@ -126,6 +126,8 @@ export default {
...
@@ -126,6 +126,8 @@ export default {
let
{
value
}
=
e
.
detail
;
let
{
value
}
=
e
.
detail
;
this
.
date
=
value
+
'-01'
;
this
.
date
=
value
+
'-01'
;
this
.
form
.
date
=
this
.
parseTime
(
value
+
'-01'
,
'{y}年{m}月'
);
this
.
form
.
date
=
this
.
parseTime
(
value
+
'-01'
,
'{y}年{m}月'
);
this
.
defaultDate
=
this
.
parseTime
(
value
,
'{y}-{m}'
)
+
'-01'
;
console
.
log
(
this
.
date
);
console
.
log
(
this
.
date
);
this
.
$nextTick
(()
=>
{
this
.
$nextTick
(()
=>
{
// this.getMouthStatistics();
// this.getMouthStatistics();
...
...
pages/maintain-bill/create.vue
View file @
ec1bcb2b
...
@@ -277,14 +277,18 @@ export default {
...
@@ -277,14 +277,18 @@ export default {
if
(
this
.
billId
)
{
if
(
this
.
billId
)
{
this
.
repairDetail
();
this
.
repairDetail
();
}
else
{
this
.
getLocation
();
}
}
uni
.
$on
(
'maintain-bill-detail'
,
(
res
)
=>
{
this
.
repairDetail
()
})
this
.
getLocation
();
},
},
onReady
()
{
onReady
()
{
this
.
$refs
.
uForm
.
setRules
(
this
.
rules
);
this
.
$refs
.
uForm
.
setRules
(
this
.
rules
);
},
},
onUnload
()
{},
onUnload
()
{
uni
.
$off
(
'maintain-bill-detail'
)
},
onShow
()
{},
onShow
()
{},
methods
:
{
methods
:
{
preview
()
{
preview
()
{
...
...
pages/maintain-bill/show.vue
View file @
ec1bcb2b
...
@@ -625,8 +625,8 @@ export default {
...
@@ -625,8 +625,8 @@ export default {
views
:
[
views
:
[
{
{
css
:
{
css
:
{
color
:
'
#8d8d8d'
,
color
:
'#8d8d8d'
,
width
:
'1
42
rpx'
,
width
:
'1
50
rpx'
,
},
},
type
:
'text'
,
type
:
'text'
,
text
:
this
.
infoKeys
[
key
],
text
:
this
.
infoKeys
[
key
],
...
@@ -638,7 +638,7 @@ export default {
...
@@ -638,7 +638,7 @@ export default {
textAlign
:
'right'
,
textAlign
:
'right'
,
'line-clamp'
:
2
,
'line-clamp'
:
2
,
boxSizing
:
'border-box'
,
boxSizing
:
'border-box'
,
width
:
'5
12
rpx'
,
width
:
'5
08
rpx'
,
},
},
type
:
'text'
,
type
:
'text'
,
text
:
this
.
info
[
key
],
text
:
this
.
info
[
key
],
...
@@ -697,8 +697,8 @@ export default {
...
@@ -697,8 +697,8 @@ export default {
views
:
[
views
:
[
{
{
css
:
{
css
:
{
color
:
'
#8d8d8d'
,
color
:
'#8d8d8d'
,
width
:
'1
42
rpx'
,
width
:
'1
50
rpx'
,
},
},
type
:
'text'
,
type
:
'text'
,
text
:
item
.
title
,
text
:
item
.
title
,
...
@@ -710,7 +710,7 @@ export default {
...
@@ -710,7 +710,7 @@ export default {
textAlign
:
'right'
,
textAlign
:
'right'
,
'line-clamp'
:
2
,
'line-clamp'
:
2
,
boxSizing
:
'border-box'
,
boxSizing
:
'border-box'
,
width
:
'5
12
rpx'
,
width
:
'5
08
rpx'
,
color
:
item
.
color
,
color
:
item
.
color
,
},
},
type
:
'text'
,
type
:
'text'
,
...
@@ -838,7 +838,7 @@ export default {
...
@@ -838,7 +838,7 @@ export default {
views
:
[
views
:
[
{
{
css
:
{
css
:
{
color
:
'
#8d8d8d'
,
color
:
'#8d8d8d'
,
},
},
type
:
'text'
,
type
:
'text'
,
text
:
'品牌:'
,
text
:
'品牌:'
,
...
@@ -865,7 +865,7 @@ export default {
...
@@ -865,7 +865,7 @@ export default {
views
:
[
views
:
[
{
{
css
:
{
css
:
{
color
:
'
#8d8d8d'
,
color
:
'#8d8d8d'
,
},
},
type
:
'text'
,
type
:
'text'
,
text
:
'型号:'
,
text
:
'型号:'
,
...
@@ -906,7 +906,7 @@ export default {
...
@@ -906,7 +906,7 @@ export default {
views
:
[
views
:
[
{
{
css
:
{
css
:
{
color
:
'
#8d8d8d'
,
color
:
'#8d8d8d'
,
},
},
type
:
'text'
,
type
:
'text'
,
text
:
'故障现象:'
,
text
:
'故障现象:'
,
...
@@ -943,7 +943,7 @@ export default {
...
@@ -943,7 +943,7 @@ export default {
views
:
[
views
:
[
{
{
css
:
{
css
:
{
color
:
'
#8d8d8d'
,
color
:
'#8d8d8d'
,
},
},
type
:
'text'
,
type
:
'text'
,
text
:
'检修结果:'
,
text
:
'检修结果:'
,
...
...
utils/config.js
View file @
ec1bcb2b
export
const
version
=
"1.0.
7
"
export
const
version
=
"1.0.
11
"
export
const
baseURL
=
"/baseapi"
export
const
baseURL
=
"/baseapi"
export
const
token
=
"TOKEN"
export
const
token
=
"TOKEN"
export
const
PHONENUMBER
=
"PHONENUMBER"
export
const
PHONENUMBER
=
"PHONENUMBER"
...
...
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