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
ead2e5c7
authored
Dec 07, 2023
by
LJM
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
css
parent
4493d0b4
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
10 deletions
pages/putaway/index.vue
pages/putaway/index.vue
View file @
ead2e5c7
...
...
@@ -153,7 +153,7 @@
is_submit
:
true
,
input_flag
:
false
,
page
:
1
,
limit
:
2
00
,
limit
:
5
00
,
index
:
0
,
array
:
[
'入库批次号'
,
'全量搜索'
],
list
:
[],
...
...
@@ -189,6 +189,7 @@
}
},
onShow
()
{
this
.
resetChange
();
this
.
getData
();
},
methods
:
{
...
...
@@ -336,6 +337,7 @@
let
val
=
event
.
target
.
value
;
this
.
searchParams
.
search_keyword
=
''
;
if
(
val
)
{
this
.
resetChange
();
if
(
type
==
1
)
{
//入库批次号 如果开启了批量搜索就不要跳转详情
this
.
input_flag
=
true
;
...
...
@@ -343,20 +345,17 @@
this
.
search_keyword
=
''
;
this
.
search_keyword
=
val
;
this
.
input_flag
=
false
;
//记录历史搜索批次号
if
(
!
this
.
history_id
.
includes
(
val
))
{
this
.
history_id
.
push
(
val
);
}
this
.
searchParams
.
search_keyword
=
this
.
history_id
.
join
(
','
);
this
.
getData
((
data
,
msg
)
=>
{
//回调data里数据,加是否选中交互
if
(
data
.
length
>
0
)
{
this
.
is_batch_active
=
true
;
const
list
=
data
;
list
.
forEach
((
item
,
index
)
=>
{
this
.
list
=
data
;
this
.
list
.
forEach
((
item
,
index
)
=>
{
this
.
filterChange
(
index
);
});
}
...
...
@@ -405,14 +404,13 @@
});
}
else
{
this
.
searchParams
.
search_keyword
=
val
;
this
.
getData
();
setTimeout
(()
=>
{
if
(
this
.
list
.
length
==
1
)
{
this
.
getData
((
data
,
msg
)
=>
{
if
(
data
.
length
==
1
)
{
uni
.
navigateTo
({
url
:
'/pages/putaway/single?stock_in_batch_sn='
+
this
.
list
[
0
].
stock_in_batch_sn
+
'&tally_id='
+
this
.
list
[
0
].
tally_id
});
}
}
,
800
);
});
}
}
else
if
(
type
==
2
)
{
//全量搜索
...
...
@@ -422,6 +420,7 @@
this
.
getData
();
}
}
else
{
this
.
resetChange
();
this
.
getData
();
this
.
input_flag
=
false
;
}
...
...
@@ -504,6 +503,13 @@
});
}
});
},
/**
* 重置
*/
resetChange
()
{
this
.
list
=
[];
this
.
page
=
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