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 @@
...
@@ -153,7 +153,7 @@
is_submit
:
true
,
is_submit
:
true
,
input_flag
:
false
,
input_flag
:
false
,
page
:
1
,
page
:
1
,
limit
:
2
00
,
limit
:
5
00
,
index
:
0
,
index
:
0
,
array
:
[
'入库批次号'
,
'全量搜索'
],
array
:
[
'入库批次号'
,
'全量搜索'
],
list
:
[],
list
:
[],
...
@@ -189,6 +189,7 @@
...
@@ -189,6 +189,7 @@
}
}
},
},
onShow
()
{
onShow
()
{
this
.
resetChange
();
this
.
getData
();
this
.
getData
();
},
},
methods
:
{
methods
:
{
...
@@ -336,6 +337,7 @@
...
@@ -336,6 +337,7 @@
let
val
=
event
.
target
.
value
;
let
val
=
event
.
target
.
value
;
this
.
searchParams
.
search_keyword
=
''
;
this
.
searchParams
.
search_keyword
=
''
;
if
(
val
)
{
if
(
val
)
{
this
.
resetChange
();
if
(
type
==
1
)
{
if
(
type
==
1
)
{
//入库批次号 如果开启了批量搜索就不要跳转详情
//入库批次号 如果开启了批量搜索就不要跳转详情
this
.
input_flag
=
true
;
this
.
input_flag
=
true
;
...
@@ -343,20 +345,17 @@
...
@@ -343,20 +345,17 @@
this
.
search_keyword
=
''
;
this
.
search_keyword
=
''
;
this
.
search_keyword
=
val
;
this
.
search_keyword
=
val
;
this
.
input_flag
=
false
;
this
.
input_flag
=
false
;
//记录历史搜索批次号
//记录历史搜索批次号
if
(
!
this
.
history_id
.
includes
(
val
))
{
if
(
!
this
.
history_id
.
includes
(
val
))
{
this
.
history_id
.
push
(
val
);
this
.
history_id
.
push
(
val
);
}
}
this
.
searchParams
.
search_keyword
=
this
.
history_id
.
join
(
','
);
this
.
searchParams
.
search_keyword
=
this
.
history_id
.
join
(
','
);
this
.
getData
((
data
,
msg
)
=>
{
this
.
getData
((
data
,
msg
)
=>
{
//回调data里数据,加是否选中交互
//回调data里数据,加是否选中交互
if
(
data
.
length
>
0
)
{
if
(
data
.
length
>
0
)
{
this
.
is_batch_active
=
true
;
this
.
is_batch_active
=
true
;
const
list
=
data
;
this
.
list
=
data
;
list
.
forEach
((
item
,
index
)
=>
{
this
.
list
.
forEach
((
item
,
index
)
=>
{
this
.
filterChange
(
index
);
this
.
filterChange
(
index
);
});
});
}
}
...
@@ -405,14 +404,13 @@
...
@@ -405,14 +404,13 @@
});
});
}
else
{
}
else
{
this
.
searchParams
.
search_keyword
=
val
;
this
.
searchParams
.
search_keyword
=
val
;
this
.
getData
();
this
.
getData
((
data
,
msg
)
=>
{
setTimeout
(()
=>
{
if
(
data
.
length
==
1
)
{
if
(
this
.
list
.
length
==
1
)
{
uni
.
navigateTo
({
uni
.
navigateTo
({
url
:
'/pages/putaway/single?stock_in_batch_sn='
+
this
.
list
[
0
].
stock_in_batch_sn
+
'&tally_id='
+
this
.
list
[
0
].
tally_id
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
)
{
}
else
if
(
type
==
2
)
{
//全量搜索
//全量搜索
...
@@ -422,6 +420,7 @@
...
@@ -422,6 +420,7 @@
this
.
getData
();
this
.
getData
();
}
}
}
else
{
}
else
{
this
.
resetChange
();
this
.
getData
();
this
.
getData
();
this
.
input_flag
=
false
;
this
.
input_flag
=
false
;
}
}
...
@@ -504,6 +503,13 @@
...
@@ -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