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
872753a6
authored
Nov 10, 2023
by
LJM
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
移动端--复核页面--取消勾选时复核任务消失
parent
9325339e
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
10 deletions
pages/stockRecheck/sort.vue
pages/stockRecheck/sort.vue
View file @
872753a6
...
@@ -695,7 +695,7 @@
...
@@ -695,7 +695,7 @@
* @param {Object} e
* @param {Object} e
* @param {Object} type 1旧标签 批量扫描监听
* @param {Object} type 1旧标签 批量扫描监听
*/
*/
switchChange
(
e
)
{
switchChange
(
e
,
type
)
{
console
.
log
(
'switch 发生 change 事件,携带值为'
,
e
.
detail
.
value
);
console
.
log
(
'switch 发生 change 事件,携带值为'
,
e
.
detail
.
value
);
if
(
type
==
1
)
{
if
(
type
==
1
)
{
...
@@ -756,23 +756,25 @@
...
@@ -756,23 +756,25 @@
this
.
$set
(
this
.
filter_list
,
index
,
(
this
.
filter_list
[
index
]
=
!
this
.
filter_list
[
index
]));
this
.
$set
(
this
.
filter_list
,
index
,
(
this
.
filter_list
[
index
]
=
!
this
.
filter_list
[
index
]));
let
filter_arr
=
this
.
findIndex
(
this
.
filter_list
,
true
);
let
filter_arr
=
this
.
findIndex
(
this
.
filter_list
,
true
);
this
.
filter_id
=
filter_arr
.
map
(
i
=>
this
.
list
[
i
].
stock_out_item_id
);
this
.
filter_id
=
filter_arr
.
map
(
i
=>
this
.
list
[
i
].
stock_out_item_id
);
//开启了批量搜索,如果取消勾选则删除
//开启了批量搜索,如果取消勾选则删除
if
(
this
.
is_batch
)
{
if
(
this
.
is_batch
)
{
//取消勾选
if
(
!
this
.
filter_list
[
index
])
{
if
(
!
this
.
filter_list
[
index
])
{
this
.
history_id
.
splice
(
index
,
1
);
//开启了批量扫描,并且已扫描了入库单号
this
.
searchParams
.
stock_in_batch_sn
=
this
.
history_id
.
join
(
','
);
if
(
this
.
history_id
.
length
>
0
)
{
this
.
history_id
.
splice
(
index
,
1
);
this
.
searchParams
.
stock_in_batch_sn
=
this
.
history_id
.
join
(
','
);
//当检测到全部取消的时候不应该调用接口
if
(
this
.
history_id
.
length
==
0
)
{
this
.
list
=
[];
this
.
search_keyword
=
''
;
return
false
;
}
//当检测到全部取消的时候不应该调用接口
if
(
this
.
history_id
.
length
==
0
)
{
this
.
list
=
[];
this
.
search_keyword
=
''
;
return
false
;
}
}
//搜索之后添加选择状态
//搜索之后添加选择状态
this
.
getData
(
data
=>
{
this
.
getData
(
data
=>
{
console
.
log
(
data
)
if
(
data
.
length
>
0
)
{
if
(
data
.
length
>
0
)
{
const
list
=
data
;
const
list
=
data
;
list
.
forEach
((
item
,
index
)
=>
{
list
.
forEach
((
item
,
index
)
=>
{
...
...
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