Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
M
merchant-manage-ui
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
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
ui
merchant-manage-ui
Commits
8b8d564f
Commit
8b8d564f
authored
Jun 21, 2024
by
guang.wu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: 修改重量最大限制
parent
9bb1b190
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
2 deletions
+11
-2
config.js
src/pages/ServiceGoods/config.js
+2
-2
index.jsx
src/pages/ServiceGoods/index.jsx
+9
-0
No files found.
src/pages/ServiceGoods/config.js
View file @
8b8d564f
...
@@ -230,14 +230,14 @@ export const StaticColumns = customer => [
...
@@ -230,14 +230,14 @@ export const StaticColumns = customer => [
batchProps
:
{
batchProps
:
{
min
:
0
,
min
:
0
,
precision
:
customer
.
isGold
?
2
:
3
,
precision
:
customer
.
isGold
?
2
:
3
,
max
:
999999.999
,
max
:
customer
.
isGold
?
100
:
999999.999
,
},
},
role
:
[
1
],
role
:
[
1
],
roleRules
:
{
required
:
true
},
roleRules
:
{
required
:
true
},
roleProps
:
{
roleProps
:
{
min
:
0
,
min
:
0
,
precision
:
customer
.
isGold
?
2
:
3
,
precision
:
customer
.
isGold
?
2
:
3
,
max
:
999999.999
,
max
:
customer
.
isGold
?
100
:
999999.999
,
},
},
disabeldRender
:
()
=>
customer
.
isDisabled
,
disabeldRender
:
()
=>
customer
.
isDisabled
,
},
},
...
...
src/pages/ServiceGoods/index.jsx
View file @
8b8d564f
...
@@ -440,6 +440,15 @@ const ServiceGoods = options => {
...
@@ -440,6 +440,15 @@ const ServiceGoods = options => {
// 切换类目
// 切换类目
const
onCategoryChange
=
e
=>
{
const
onCategoryChange
=
e
=>
{
setCategoryIds
(
e
);
setCategoryIds
(
e
);
let
txt
=
''
;
if
(
categoryIds
.
includes
(
GoldCategory
))
{
txt
=
'
千克
'
;
}
else
if
(
e
.
includes
(
GoldCategory
))
{
txt
=
'
克
'
;
}
if
(
txt
)
{
message
.
warning
(
`商品品类已切换,规格重量单位已自动切换为
${
txt
}
`
,
6
);
}
};
};
// 保存草稿
// 保存草稿
...
...
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