Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
肖康
/
cloudSystem
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
ccceb7a9
authored
Jan 09, 2025
by
LJM
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
待提审或进行中且待入库状态为待入库
parent
95100888
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
3 deletions
src/views/consignmentManagement/consignmentApplication.vue
src/views/consignmentManagement/consignmentApplication.vue
View file @
ccceb7a9
...
...
@@ -242,10 +242,14 @@ export default {
this
.
$message
.
warning
(
'不支持批量操作'
);
return
;
}
// 作废:校验
const
invalidCancel
=
this
.
multipleSelection
.
filter
(
item
=>
!
([
0
,
2
].
includes
(
item
.
consignment_status
)
&&
item
.
stock_in_status
==
0
));
// 作废:校验 待提审或进行中且待入库状态为待入库
const
invalidCancel
=
this
.
multipleSelection
.
filter
(
item
=>
{
const
isPendingReview
=
item
.
consignment_status
===
0
;
const
isInProgressAndPendingStock
=
item
.
consignment_status
===
2
&&
item
.
stock_in_status
===
1
;
return
!
(
isPendingReview
||
isInProgressAndPendingStock
);
});
if
(
invalidCancel
.
length
)
{
this
.
$message
.
warning
(
'只能作废待提审
或进行中且待
入库的数据'
);
this
.
$message
.
warning
(
'只能作废待提审
状态或进行中且未
入库的数据'
);
return
;
}
this
.
consignment_ids
=
this
.
multipleSelection
.
map
(
item
=>
item
.
consignment_id
).
join
(
','
);
...
...
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