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
ebe649fb
Commit
ebe649fb
authored
Nov 09, 2022
by
Facius
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat: 通用账单复制
parent
befaec7f
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
36 additions
and
11 deletions
+36
-11
detail.vue
pages/maintain-bill/detail.vue
+17
-3
normal-create.vue
pages/maintain-bill/normal-create.vue
+19
-8
No files found.
pages/maintain-bill/detail.vue
View file @
ebe649fb
...
...
@@ -620,9 +620,23 @@ export default {
}
},
copyBill
()
{
this
.
toCreatePage
({
copyId
:
this
.
billId
},
'redirectTo'
);
if
(
this
.
isCollection
)
{
this
.
$u
.
route
({
url
:
'/pages/maintain-bill/normal-create'
,
type
:
'redirectTo'
,
params
:
{
copyId
:
this
.
billId
}
});
}
else
{
this
.
$u
.
route
({
url
:
'pages/maintain-bill/create'
,
type
:
'redirectTo'
,
params
:
{
copyId
:
this
.
billId
}
});
}
},
handleClickPreview
(
index
)
{
uni
.
previewImage
({
...
...
pages/maintain-bill/normal-create.vue
View file @
ebe649fb
...
...
@@ -156,6 +156,8 @@
},
data
()
{
return
{
copyId
:
''
,
billId
:
''
,
chooseMemberImage
:
billBaseUrl
+
'tiaozhuantongxunlu@3x.png'
,
loading
:
false
,
buttonLoading
:
false
,
...
...
@@ -216,13 +218,15 @@
onLoad
(
options
)
{
// 测试数据
// options.billId = '1550685581418168320'
if
(
options
&&
options
.
copyId
)
{
this
.
copyId
=
options
.
copyId
;
}
if
(
options
&&
options
.
billId
)
{
this
.
billId
=
options
.
billId
;
}
if
(
this
.
billId
)
{
this
.
repairDetail
();
if
(
this
.
billId
||
this
.
copyId
)
{
this
.
repairDetail
(
this
.
billId
||
this
.
copyId
);
}
// uni.$on('maintain-bill-detail', res => {
// this.repairDetail();
...
...
@@ -247,10 +251,10 @@
this
.
form
.
customerPhone
=
item
.
phone
;
this
.
showMember
=
false
;
},
repairDetail
()
{
repairDetail
(
id
)
{
this
.
loading
=
true
;
repairDetail
({
id
:
this
.
billI
d
id
:
i
d
})
.
then
(
res
=>
{
if
(
res
.
data
)
{
...
...
@@ -264,10 +268,10 @@
},
setForm
(
data
)
{
this
.
form
=
{
id
:
data
.
id
,
actualAmount
:
data
.
actualAmount
,
customerName
:
data
.
customerName
,
customerPhone
:
data
.
customerPhone
,
customerName
:
data
.
customer
.
name
,
customerPhone
:
data
.
customer
.
phone
,
remark
:
data
.
remark
,
extend
:
{
collectionReason
:
data
.
extend
.
collectionReason
,
collectionTime
:
data
.
extend
.
collectionTime
,
...
...
@@ -277,6 +281,13 @@
receivableAmount
:
data
.
receivableAmount
,
type
:
data
.
type
||
'collection'
,
// 收据样式
};
if
(
this
.
billId
)
{
this
.
form
.
id
=
data
.
id
this
.
form
.
copyId
=
''
}
else
if
(
this
.
copyId
)
{
this
.
form
.
id
=
''
this
.
form
.
copyId
=
data
.
id
}
},
handleSelectType
(
name
)
{
this
.
form
.
extend
.
payType
=
name
...
...
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