Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
S
self-support
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
李俊赕
self-support
Commits
00deb534
Commit
00deb534
authored
Aug 11, 2021
by
Facius
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: 点击了异常单的去处理,应该调接口告知后台
parent
15fe0b6c
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
3 deletions
+8
-3
order.js
src/common/api/order.js
+4
-2
order.vue
src/pages/index/order.vue
+4
-1
No files found.
src/common/api/order.js
View file @
00deb534
...
@@ -196,7 +196,8 @@ let orderApiFun = function(vm){
...
@@ -196,7 +196,8 @@ let orderApiFun = function(vm){
let
receiveParts
=
async
(
partOrderId
)
=>
await
vm
.
$u
.
put
(
prefix
+
'parts/'
+
vm
.
vuex_token
+
'/orders/'
+
partOrderId
+
'/receive'
,{},
formType
);
let
receiveParts
=
async
(
partOrderId
)
=>
await
vm
.
$u
.
put
(
prefix
+
'parts/'
+
vm
.
vuex_token
+
'/orders/'
+
partOrderId
+
'/receive'
,{},
formType
);
// 配件申请单-取消申请
// 配件申请单-取消申请
let
cancelParts
=
async
(
partOrderId
)
=>
await
vm
.
$u
.
put
(
prefix
+
'parts/'
+
vm
.
vuex_token
+
'/orders/'
+
partOrderId
+
'/cancel'
,{},
formType
);
let
cancelParts
=
async
(
partOrderId
)
=>
await
vm
.
$u
.
put
(
prefix
+
'parts/'
+
vm
.
vuex_token
+
'/orders/'
+
partOrderId
+
'/cancel'
,{},
formType
);
// 点击了异常单去处理
let
workerDealWithError
=
async
(
params
=
{},
orderId
)
=>
await
vm
.
$u
.
get
(
prefix
+
vm
.
vuex_token
+
'/order/'
+
orderId
+
'/workerDealWithError'
,
params
)
const
orderApi
=
{
const
orderApi
=
{
listByRecommendOrder
,
listByRecommendOrder
,
listOrderCount
,
listOrderCount
,
...
@@ -247,7 +248,8 @@ let orderApiFun = function(vm){
...
@@ -247,7 +248,8 @@ let orderApiFun = function(vm){
getLogistics
,
getLogistics
,
getOrderPartsSum
,
getOrderPartsSum
,
receiveParts
,
receiveParts
,
cancelParts
cancelParts
,
workerDealWithError
}
}
return
orderApi
return
orderApi
}
}
...
...
src/pages/index/order.vue
View file @
00deb534
...
@@ -300,7 +300,10 @@ export default {
...
@@ -300,7 +300,10 @@ export default {
}
}
})
})
},
},
handleClickCellButton
(
item
)
{
handleClickCellButton
(
item
,
type
)
{
if
(
type
==
'exception'
)
{
this
.
$u
.
api
.
workerDealWithError
(
item
.
orderId
).
then
(()
=>
{})
}
// 去完工
// 去完工
uni
.
navigateTo
({
uni
.
navigateTo
({
url
:
url
:
...
...
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