Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
K
ka-op-ui
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
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
QA
ka-op-ui
Commits
d1d14822
Commit
d1d14822
authored
Sep 25, 2019
by
智勇
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
贷后关单
parent
b727d509
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
46 additions
and
9 deletions
+46
-9
order.js
src/api/order.js
+8
-0
index.vue
src/views/order/index.vue
+38
-9
No files found.
src/api/order.js
View file @
d1d14822
...
...
@@ -40,6 +40,14 @@ export function cancelLoan(data) {
})
}
export
function
cancelLoanAfter
(
data
)
{
return
request
({
url
:
'
/order/cancel/after/loan
'
,
method
:
'
post
'
,
params
:
data
})
}
export
function
lendLoan
(
data
)
{
return
request
({
url
:
'
/order/lending
'
,
...
...
src/views/order/index.vue
View file @
d1d14822
...
...
@@ -150,7 +150,17 @@
</template>
<
script
>
import
{
getOrders
,
getOrderHistory
,
approve
,
cancelLoan
,
lendLoan
,
callbackRecord
,
logHistory
,
secondAudit
}
from
'
@/api/order
'
import
{
getOrders
,
getOrderHistory
,
approve
,
cancelLoan
,
lendLoan
,
callbackRecord
,
logHistory
,
secondAudit
,
cancelLoanAfter
}
from
'
@/api/order
'
import
Pagination
from
'
@/components/Pagination
'
import
store
from
'
@/store
'
...
...
@@ -253,6 +263,11 @@ export default {
this
.
dialogDeleteVisible
=
true
}
if
(
opt
.
action
===
'
cancel_after
'
)
{
this
.
opt
=
'
贷后关单
'
this
.
dialogDeleteVisible
=
true
}
if
(
opt
.
action
===
'
pay_succ
'
)
{
this
.
handleLendLoan
(
true
)
}
...
...
@@ -298,15 +313,29 @@ export default {
},
cancelLoan
()
{
cancelLoan
({
channelOrderNumber
:
this
.
order
.
channelOrderNumber
}).
then
(()
=>
{
this
.
$notify
({
message
:
'
关单完毕
'
,
type
:
'
success
'
,
duration
:
2000
if
(
this
.
opt
===
'
贷前关单
'
)
{
cancelLoan
({
channelOrderNumber
:
this
.
order
.
channelOrderNumber
}).
then
((
res
)
=>
{
this
.
$notify
({
message
:
res
.
message
,
type
:
'
success
'
,
duration
:
2000
})
this
.
dialogDeleteVisible
=
false
this
.
getOrders
()
})
this
.
dialogDeleteVisible
=
false
this
.
getOrders
()
})
}
if
(
this
.
opt
===
'
贷后关单
'
)
{
cancelLoanAfter
({
channelOrderNumber
:
this
.
order
.
channelOrderNumber
}).
then
((
res
)
=>
{
this
.
$notify
({
message
:
res
.
message
,
type
:
'
success
'
,
duration
:
2000
})
this
.
dialogDeleteVisible
=
false
this
.
getOrders
()
})
}
},
handleApprove
(
data
)
{
...
...
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