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
dad240d6
Commit
dad240d6
authored
Sep 14, 2021
by
Damon
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: 物流订单操作确认
parent
5cf7656c
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
23 additions
and
15 deletions
+23
-15
appliedPartsCell.vue
src/components/parts/appliedPartsCell.vue
+9
-5
partsDetail.vue
src/pages/mine/warehouse/partsDetail.vue
+14
-10
No files found.
src/components/parts/appliedPartsCell.vue
View file @
dad240d6
...
...
@@ -3,7 +3,7 @@
<view
class=
"return-cell"
@
click=
"handleClick"
>
<view
class=
"title-view"
>
<text
class=
"title-text"
:style=
"
{'color': titleColor}">
{{
title
}}
</text>
<view
class=
"express-view"
@
click
.
stop=
"$u.throttle(handleClickExpress, 500)"
v-if=
"info.express.number"
>
<view
class=
"express-view"
@
click
.
stop=
"$u.throttle(handleClickExpress, 500)"
v-if=
"info.express.number"
hover-class=
"u-hover-class"
>
<text>
物流单号:
</text>
<view
class=
"order-file-right"
>
<text>
{{
info
.
express
.
number
}}
</text>
...
...
@@ -192,16 +192,20 @@
this
.
$emit
(
'action'
,
this
.
info
)
},
handleOperate
()
{
uni
.
showModal
({
if
(
this
.
willStatus
===
'-1'
)
{
uni
.
showModal
({
title
:
'提示'
,
content
:
'确定'
+
this
.
buttonText
+
'?'
,
success
:
function
(
res
)
{
success
:
(
res
)
=>
{
if
(
res
.
confirm
)
{
this
.
$emit
(
'operate'
,
this
.
info
.
id
,
this
.
buttonOperateType
,
this
.
willStatus
)
this
.
$emit
(
'operate'
,
this
.
info
.
id
,
this
.
buttonOperateType
,
this
.
willStatus
)
}
else
if
(
res
.
cancel
)
{
}
}
})
})
}
else
{
this
.
$emit
(
'operate'
,
this
.
info
.
id
,
this
.
buttonOperateType
,
this
.
willStatus
)
}
},
handleClickExpress
()
{
this
.
$emit
(
'express'
,
this
.
info
)
...
...
src/pages/mine/warehouse/partsDetail.vue
View file @
dad240d6
...
...
@@ -208,16 +208,20 @@
},
methods
:
{
handleClick
()
{
uni
.
showModal
({
title
:
'提示'
,
content
:
'确定'
+
this
.
buttonText
+
'?'
,
success
:
function
(
res
)
{
if
(
res
.
confirm
)
{
this
.
handleClickSure
()
}
else
if
(
res
.
cancel
)
{
}
}
})
if
(
this
.
buttonText
===
'取消申请'
)
{
uni
.
showModal
({
title
:
'提示'
,
content
:
'确定'
+
this
.
buttonText
+
'?'
,
success
:
(
res
)
=>
{
if
(
res
.
confirm
)
{
this
.
handleClickSure
()
}
else
if
(
res
.
cancel
)
{
}
}
})
}
else
{
this
.
handleClickSure
()
}
},
handleClickSure
()
{
this
.
$u
.
api
[
this
.
buttonOperateType
](
this
.
info
.
id
).
then
(
res
=>
{
...
...
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