Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
S
soss
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
hooloo
web
soss
Commits
5a0d77f0
Commit
5a0d77f0
authored
2 years ago
by
lixiaomin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改商品提示
parent
f65252d5
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
0 deletions
+8
-0
src/views/goods/goods/components/Form.vue
+4
-0
src/views/goods/goods/index.vue
+4
-0
No files found.
src/views/goods/goods/components/Form.vue
View file @
5a0d77f0
...
...
@@ -284,6 +284,10 @@ export default {
sendForm
.
pics
=
JSON
.
stringify
(
sendForm
.
pics
);
sendForm
.
goodsTagList
=
this
.
goodsTagList
;
if
(
sendForm
.
id
!=
null
)
{
if
(
sendForm
.
state
!=
"4"
){
this
.
$message
.
error
(
"下架商品之后才可以修改!"
);
return
;
}
updateSpu
(
sendForm
).
then
((
response
)
=>
{
this
.
$modal
.
msgSuccess
(
"修改成功"
);
this
.
open
=
false
;
...
...
This diff is collapsed.
Click to expand it.
src/views/goods/goods/index.vue
View file @
5a0d77f0
...
...
@@ -196,6 +196,10 @@ export default {
},
/** 删除按钮操作 */
handleDelete
(
row
)
{
if
(
row
.
state
!=
"4"
){
this
.
$message
.
error
(
"下架商品之后才可以删除!"
);
return
;
}
const
ids
=
row
.
id
||
this
.
ids
;
this
.
$modal
.
confirm
(
'本商品已在店铺中上架,删除商品会在店铺中下架,是否确认删除?'
)
...
...
This diff is collapsed.
Click to expand it.
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