Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
phsl
/
admin
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Members
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
dee8215d
authored
Dec 04, 2023
by
ZENGlei11350
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
优化:添加商品时0库存商品无法保存改为可以保存
parent
2f10f0ff
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
.vscode/settings.json
+1
-1
src/views/mall/product/spu/form/BasicInfoForm.vue
+2
-2
No files found.
.vscode/settings.json
View file @
dee8215d
...
...
@@ -83,7 +83,7 @@
"editor.defaultFormatter"
:
"esbenp.prettier-vscode"
},
"editor.codeActionsOnSave"
:
{
"source.fixAll.eslint"
:
true
"source.fixAll.eslint"
:
"explicit"
},
"[vue]"
:
{
"editor.defaultFormatter"
:
"rvest.vs-code-prettier-eslint"
...
...
src/views/mall/product/spu/form/BasicInfoForm.vue
View file @
dee8215d
...
...
@@ -197,7 +197,7 @@ defineOptions({ name: 'ProductSpuBasicInfoForm' })
const
ruleConfig
:
RuleConfig
[]
=
[
{
name
:
'stock'
,
rule
:
(
arg
)
=>
arg
>=
1
,
rule
:
(
arg
)
=>
arg
>=
0
,
message
:
'商品库存必须大于等于 1 !!!'
},
{
...
...
@@ -213,7 +213,7 @@ const ruleConfig: RuleConfig[] = [
{
name
:
'costPrice'
,
rule
:
(
arg
)
=>
arg
>=
0.01
,
message
:
'商品成本价格必须大于等于 0.0
1
元!!!'
message
:
'商品成本价格必须大于等于 0.0
0
元!!!'
}
]
...
...
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