Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
梁建民
/
wmsApp
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
e4dc1690
authored
Dec 08, 2023
by
LJM
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
bug
parent
b0a4ae06
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
16 additions
and
0 deletions
pages/putaway/index.vue
pages/putaway/single.vue
pages/putaway/index.vue
View file @
e4dc1690
...
...
@@ -191,6 +191,18 @@
}
},
onShow
()
{
var
that
=
this
;
if
(
getApp
().
globalData
.
fromPage
===
"putwaySingle"
)
{
// 从特定页面返回
that
.
searchParams
.
search_keyword
=
''
;
// 重置全局变量或执行其他操作
getApp
().
globalData
.
fromPage
=
null
;
//再次获取焦点
that
.
isFocus
=
false
;
setTimeout
(()
=>
{
that
.
isFocus
=
true
;
},
1000
);
}
this
.
resetChange
();
this
.
getData
();
},
...
...
pages/putaway/single.vue
View file @
e4dc1690
...
...
@@ -414,6 +414,8 @@
icon
:
'success'
});
setTimeout
(()
=>
{
// 在进行导航之前设置全局变量
getApp
().
globalData
.
fromPage
=
"putwaySingle"
;
uni
.
navigateBack
({
delta
:
1
});
...
...
@@ -427,6 +429,8 @@
if
(
res
.
confirm
)
{
this
.
getData
();
}
else
if
(
res
.
cancel
)
{
// 在进行导航之前设置全局变量
getApp
().
globalData
.
fromPage
=
"putwaySingle"
;
uni
.
navigateBack
({
delta
:
1
});
...
...
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