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
83cb7c6c
Commit
83cb7c6c
authored
Sep 14, 2021
by
Facius
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
improve: 增加物流订单操作确认
parent
47fd0bc1
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
26 additions
and
5 deletions
+26
-5
appliedPartsCell.vue
src/components/parts/appliedPartsCell.vue
+10
-1
partsDetail.vue
src/pages/mine/warehouse/partsDetail.vue
+16
-4
No files found.
src/components/parts/appliedPartsCell.vue
View file @
83cb7c6c
...
...
@@ -192,7 +192,16 @@
this
.
$emit
(
'action'
,
this
.
info
)
},
handleOperate
()
{
this
.
$emit
(
'operate'
,
this
.
info
.
id
,
this
.
buttonOperateType
,
this
.
willStatus
)
uni
.
showModal
({
title
:
'提示'
,
content
:
'确定'
+
this
.
buttonText
+
'?'
,
success
:
function
(
res
)
{
if
(
res
.
confirm
)
{
this
.
$emit
(
'operate'
,
this
.
info
.
id
,
this
.
buttonOperateType
,
this
.
willStatus
)
}
else
if
(
res
.
cancel
)
{
}
}
})
},
handleClickExpress
()
{
this
.
$emit
(
'express'
,
this
.
info
)
...
...
src/pages/mine/warehouse/partsDetail.vue
View file @
83cb7c6c
...
...
@@ -84,15 +84,15 @@
'20'
:
''
,
'-2'
:
''
,
'-1'
:
''
,
'100'
:
''
,
'100'
:
''
,
'91'
:
''
}
},
buttonText
()
{
return
this
.
texts
[
this
.
info
.
status
]
},
showButton
()
{
return
this
.
info
.
status
==
'1'
||
this
.
info
.
status
==
'15'
},
showButton
()
{
return
this
.
info
.
status
==
'1'
||
this
.
info
.
status
==
'15'
},
hasExpress
()
{
return
this
.
$u
.
test
.
isEmpty
(
this
.
info
.
express
)
?
false
:
true
...
...
@@ -208,6 +208,18 @@
},
methods
:
{
handleClick
()
{
uni
.
showModal
({
title
:
'提示'
,
content
:
'确定'
+
this
.
buttonText
+
'?'
,
success
:
function
(
res
)
{
if
(
res
.
confirm
)
{
this
.
handleClickSure
()
}
else
if
(
res
.
cancel
)
{
}
}
})
},
handleClickSure
()
{
this
.
$u
.
api
[
this
.
buttonOperateType
](
this
.
info
.
id
).
then
(
res
=>
{
var
type
=
'error'
var
message
=
res
.
message
...
...
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