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
627a2326
authored
Jun 20, 2023
by
LJM
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
加入分页
parent
7256909d
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
1 deletions
pages/picking/me.vue
pages/picking/me.vue
View file @
627a2326
...
...
@@ -85,6 +85,9 @@ export default {
index
:
0
,
array
:
[
'出库单号'
],
list
:
[],
page
:
1
,
limit
:
20
,
hasMoreData
:
true
,
//是否分页加载
searchParams
:
{
stock_out_sn
:
''
//出库单号
}
...
...
@@ -97,6 +100,13 @@ export default {
});
}
},
onReachBottom
()
{
if
(
!
this
.
hasMoreData
)
{
return
;
}
this
.
page
++
;
this
.
getData
();
},
onShow
()
{
this
.
getData
();
},
...
...
@@ -124,6 +134,7 @@ export default {
}
else
{
this
.
input_flag
=
false
;
}
y
;
this
.
getData
();
},
500
),
/**
...
...
@@ -155,7 +166,12 @@ export default {
getData
()
{
this
.
request
(
API
.
getTakedList
,
'POST'
,
{
page
:
this
.
page
,
limit
:
this
.
limit
,
...
this
.
searchParams
},
false
).
then
(
res
=>
{
if
(
res
.
code
===
0
)
{
this
.
list
=
res
.
data
.
list
;
if
(
res
.
data
.
total
>
0
)
{
this
.
hasMoreData
=
true
;
this
.
list
=
this
.
list
.
concat
(
res
.
data
.
list
);
}
else
{
this
.
hasMoreData
=
false
;
}
}
else
{
uni
.
showToast
({
title
:
res
.
msg
,
...
...
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