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
127ec6d3
Commit
127ec6d3
authored
Aug 20, 2022
by
刘文虎
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' of
https://git.banshouhui.com/liuwenhu/account-book
parents
08f1612c
e1083a0b
Pipeline
#3293
canceled with stages
Changes
6
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
70 additions
and
11 deletions
+70
-11
index.vue
components/navbar-custom/index.vue
+16
-1
index.vue
components/navbar-normal/index.vue
+15
-0
index.vue
components/navbar-right/index.vue
+22
-1
debit-detail.vue
pages/bill/debit-note/components/debit-detail.vue
+12
-4
detail.vue
pages/maintain-bill/detail.vue
+3
-2
index.vue
pages/maintain-bill/index.vue
+2
-3
No files found.
components/navbar-custom/index.vue
View file @
127ec6d3
...
@@ -73,6 +73,7 @@ export default {
...
@@ -73,6 +73,7 @@ export default {
// 自定义返回逻辑
// 自定义返回逻辑
customBack
:
{
customBack
:
{
type
:
Function
,
type
:
Function
,
// #ifdef APP-PLUS
default
:
()
=>
{
default
:
()
=>
{
if
(
getCurrentPages
().
length
==
1
)
{
if
(
getCurrentPages
().
length
==
1
)
{
uni
.
switchTab
({
uni
.
switchTab
({
...
@@ -81,7 +82,21 @@ export default {
...
@@ -81,7 +82,21 @@ export default {
}
else
{
}
else
{
uni
.
navigateBack
();
uni
.
navigateBack
();
}
}
}
}
// #endif
// #ifdef MP
default
()
{
return
()
=>
{
if
(
getCurrentPages
().
length
==
1
)
{
uni
.
switchTab
({
url
:
'/pages/index/index'
});
}
else
{
uni
.
navigateBack
();
}
}
}
// #endif
},
},
right
:
{
right
:
{
type
:
Array
,
type
:
Array
,
...
...
components/navbar-normal/index.vue
View file @
127ec6d3
...
@@ -165,6 +165,7 @@ export default {
...
@@ -165,6 +165,7 @@ export default {
// 自定义返回逻辑
// 自定义返回逻辑
customBack
:
{
customBack
:
{
type
:
Function
,
type
:
Function
,
// #ifdef APP-PLUS
default
:
()
=>
{
default
:
()
=>
{
if
(
getCurrentPages
().
length
==
1
)
{
if
(
getCurrentPages
().
length
==
1
)
{
uni
.
switchTab
({
uni
.
switchTab
({
...
@@ -174,6 +175,20 @@ export default {
...
@@ -174,6 +175,20 @@ export default {
uni
.
navigateBack
();
uni
.
navigateBack
();
}
}
}
}
// #endif
// #ifdef MP
default
()
{
return
()
=>
{
if
(
getCurrentPages
().
length
==
1
)
{
uni
.
switchTab
({
url
:
'/pages/index/index'
});
}
else
{
uni
.
navigateBack
();
}
}
}
// #endif
}
}
},
},
data
()
{
data
()
{
...
...
components/navbar-right/index.vue
View file @
127ec6d3
...
@@ -83,6 +83,7 @@ export default {
...
@@ -83,6 +83,7 @@ export default {
// 自定义返回逻辑
// 自定义返回逻辑
customBack
:
{
customBack
:
{
type
:
Function
,
type
:
Function
,
// #ifdef APP-PLUS
default
:
()
=>
{
default
:
()
=>
{
if
(
getCurrentPages
().
length
==
1
)
{
if
(
getCurrentPages
().
length
==
1
)
{
uni
.
switchTab
({
uni
.
switchTab
({
...
@@ -92,7 +93,21 @@ export default {
...
@@ -92,7 +93,21 @@ export default {
uni
.
navigateBack
();
uni
.
navigateBack
();
}
}
}
}
// #endif
// #ifdef MP
default
()
{
return
()
=>
{
if
(
getCurrentPages
().
length
==
1
)
{
uni
.
switchTab
({
url
:
'/pages/index/index'
});
}
else
{
uni
.
navigateBack
();
}
}
}
// #endif
},
},
},
},
data
()
{
data
()
{
...
@@ -137,7 +152,13 @@ export default {
...
@@ -137,7 +152,13 @@ export default {
background-color
:
#ffffff
;
background-color
:
#ffffff
;
color
:
#333333
;
color
:
#333333
;
font-size
:
24rpx
;
font-size
:
24rpx
;
// #ifdef APP-PLUS
margin-right
:
24rpx
;
// #endif
// #ifdef MP
margin-right
:
8rpx
;
margin-right
:
8rpx
;
// #endif
.image-view
{
.image-view
{
width
:
20rpx
;
width
:
20rpx
;
height
:
24rpx
;
height
:
24rpx
;
...
...
pages/bill/debit-note/components/debit-detail.vue
View file @
127ec6d3
...
@@ -52,13 +52,21 @@ export default {
...
@@ -52,13 +52,21 @@ export default {
},
},
methods
:{
methods
:{
toBill
(){
toBill
(){
this
.
$Router
.
push
({
this
.
$u
.
route
({
path
:
"/pages/maintain-bill/index"
,
url
:
'/pages/maintain-bill/index'
,
query
:{
type
:
'navigateTo'
,
params
:
{
customerId
:
this
.
detail
.
customerId
,
customerId
:
this
.
detail
.
customerId
,
onlyDebt
:
1
,
onlyDebt
:
1
,
}
}
})
});
// this.$Router.push({
// path:"/pages/maintain-bill/index",
// query:{
// customerId:this.detail.customerId,
// onlyDebt:1,
// }
// })
}
}
}
}
};
};
...
...
pages/maintain-bill/detail.vue
View file @
127ec6d3
...
@@ -198,8 +198,9 @@ export default {
...
@@ -198,8 +198,9 @@ export default {
return
{
return
{
billId
:
''
,
billId
:
''
,
info
:
{
info
:
{
sendStatus
:
{},
sendStatus
:
{
code
:
'WAIT'
},
settleState
:
{},
settleState
:
{
code
:
'NO'
},
customer
:
{}
},
},
visible
:
false
,
visible
:
false
,
current
:
0
,
current
:
0
,
...
...
pages/maintain-bill/index.vue
View file @
127ec6d3
...
@@ -135,9 +135,8 @@ export default {
...
@@ -135,9 +135,8 @@ export default {
return
this
.
daterange
.
length
>
0
&&
this
.
daterange
[
1
]
?
this
.
daterange
[
1
]
+
' 23:59:59'
:
''
;
return
this
.
daterange
.
length
>
0
&&
this
.
daterange
[
1
]
?
this
.
daterange
[
1
]
+
' 23:59:59'
:
''
;
}
}
},
},
onLoad
()
{
onLoad
(
query
)
{
// 查欠账的传参
// 查欠账的传参
let
query
=
this
.
$Route
.
query
;
let
{
customerId
,
onlyDebt
}
=
query
;
let
{
customerId
,
onlyDebt
}
=
query
;
if
(
customerId
)
{
if
(
customerId
)
{
this
.
customerId
=
customerId
;
this
.
customerId
=
customerId
;
...
@@ -158,7 +157,7 @@ export default {
...
@@ -158,7 +157,7 @@ export default {
methods
:
{
methods
:
{
toDetail
(
item
)
{
toDetail
(
item
)
{
this
.
$u
.
route
({
this
.
$u
.
route
({
url
:
'pages/maintain-bill/detail'
,
url
:
'
/
pages/maintain-bill/detail'
,
type
:
'navigateTo'
,
type
:
'navigateTo'
,
params
:
{
params
:
{
billId
:
item
.
id
billId
:
item
.
id
...
...
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