Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
saas
/
scrm-micro-mall
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 97fa2966
authored
Sep 10, 2025
by
chenwq
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
fix(warehouse): 添加批量上架前检查不可上架商品逻辑
在批量上架操作前增加对商品状态的检查,如果有状态为1002(不可上架)的商品,则提示错误并终止操作
1 parent
7cea7852
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
0 deletions
src/views/pointProducts/warehouse.vue
src/views/pointProducts/warehouse.vue
View file @
97fa296
...
@@ -442,6 +442,14 @@ export default {
...
@@ -442,6 +442,14 @@ export default {
// 点击批量上架
// 点击批量上架
batchSale
(
item
,
isAll
)
{
batchSale
(
item
,
isAll
)
{
// 筛选有没有不可上架的商品
const
list
=
!
isAll
?
[
item
]
:
this
.
getAllData
()
for
(
let
i
=
0
;
i
<
list
.
length
;
i
++
)
{
if
(
list
[
i
].
shelvesStatus
==
1002
)
{
this
.
$message
.
error
(
'有商品不可上架'
)
return
true
}
}
// 有未设置前端分类的
// 有未设置前端分类的
if
(
this
.
judgeCategory
(
item
,
isAll
))
{
if
(
this
.
judgeCategory
(
item
,
isAll
))
{
!
isAll
?
this
.
editCategory
(
item
)
:
this
.
$message
.
error
(
'有商品未设置前端分类'
)
!
isAll
?
this
.
editCategory
(
item
)
:
this
.
$message
.
error
(
'有商品未设置前端分类'
)
...
...
Write
Preview
Markdown
is supported
Attach a file
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 post a comment