Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Q
qk_admin
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
quanku
qk_admin
Commits
9726fdd5
Commit
9726fdd5
authored
Jul 16, 2024
by
yaya
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat: 完成结款
parent
d4179fa0
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
18 additions
and
21 deletions
+18
-21
src/api/business/order.js
src/api/business/order.js
+7
-0
src/views/finance/components/FinishFinanceDialog.vue
src/views/finance/components/FinishFinanceDialog.vue
+10
-20
src/views/finance/financeList.vue
src/views/finance/financeList.vue
+1
-1
No files found.
src/api/business/order.js
View file @
9726fdd5
...
...
@@ -119,3 +119,10 @@ export function exportUserBillDetail(data) {
data
})
}
export
function
finishSettlement
(
data
)
{
return
request
({
url
:
'
/sysFinance/finishSettlement
'
,
method
:
'
post
'
,
data
})
}
src/views/finance/components/FinishFinanceDialog.vue
View file @
9726fdd5
...
...
@@ -41,7 +41,6 @@
<
/template
>
<
script
>
import
{
MessageBox
}
from
'
element-ui
'
import
{
finishSettlement
}
from
'
@/api/business/order
'
import
{
uploadPath
}
from
'
@/api/business/storage
'
import
{
getToken
}
from
'
@/utils/auth
'
...
...
@@ -89,25 +88,16 @@ export default {
}
if
(
this
.
fianceItem
.
billId
)
{
const
params
=
{
billId
:
this
.
fianceItem
.
billId
,
voucher
:
this
.
finishForm
.
images
[
0
]
}
this
.
$refs
.
cancel
.
validate
((
valid
)
=>
{
if
(
valid
)
{
finishSettlement
(
params
)
.
then
(
response
=>
{
this
.
$notify
.
success
({
message
:
'
操作成功
'
}
)
this
.
cancelForm
=
{
}
this
.
$emit
(
'
refreshItem
'
,
this
.
fianceItem
.
billId
)
}
)
.
catch
(
response
=>
{
MessageBox
.
alert
(
'
业务错误:
'
+
response
.
data
.
errmsg
,
'
警告
'
,
{
confirmButtonText
:
'
确定
'
,
type
:
'
error
'
}
)
this
.
$emit
(
'
refreshItem
'
,
this
.
fianceItem
.
billId
)
}
)
}
}
)
finishSettlement
(
params
)
.
then
(
response
=>
{
this
.
$notify
.
success
({
message
:
'
操作成功
'
}
)
this
.
finishForm
=
{
}
this
.
$emit
(
'
refreshItem
'
,
this
.
fianceItem
.
billId
)
}
)
.
catch
(
response
=>
{
}
)
}
}
,
uploadOverrun
:
function
()
{
...
...
src/views/finance/financeList.vue
View file @
9726fdd5
...
...
@@ -273,7 +273,7 @@ export default {
}
}
,
handleFinishSuccess
(
billId
)
{
this
.
list
=
this
.
list
.
filter
((
item
)
=>
{
this
.
list
=
this
.
list
.
map
((
item
)
=>
{
if
(
item
.
billId
===
billId
)
{
item
.
state
=
1
return
item
...
...
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