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
875d4dc7
Commit
875d4dc7
authored
Apr 12, 2023
by
陈万宝
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat:更新分组下创建商品
parent
60719448
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
6 deletions
+9
-6
FormInformationBasic.jsx
src/pages/ServiceGoods/components/FormInformationBasic.jsx
+5
-2
index.jsx
src/pages/ServiceGoods/index.jsx
+4
-4
No files found.
src/pages/ServiceGoods/components/FormInformationBasic.jsx
View file @
875d4dc7
...
...
@@ -167,8 +167,11 @@ const FormInformationBasic = forwardRef((props, ref) => {
if
((
editData
?.
productType
===
5
&&
editData
?.
name
)
||
customer
.
productType
===
5
)
{
shopGetByProductType
(
5
);
if
(
editData
?.
productRefShopId
)
{
setShopIdSource
(
editData
?.
productRefShopId
);
queryShopList
({
shopId
:
editData
?.
productRefShopId
});
const
productRefShopId
=
Array
.
isArray
(
editData
?.
productRefShopId
)
?
(
editData
?.
productRefShopId
).
toString
()
:
editData
?.
productRefShopId
;
setShopIdSource
(
productRefShopId
);
queryShopList
({
shopId
:
productRefShopId
});
}
setIsEditTakeaway
(
true
);
}
...
...
src/pages/ServiceGoods/index.jsx
View file @
875d4dc7
...
...
@@ -357,8 +357,8 @@ const ServiceGoods = options => {
onValuesChange
(
SourceData
,
!
0
);
// 外卖类型---
if
(
SourceData
&&
SourceData
?.
type
===
5
)
{
setTakeawayEditData
(
SourceData
);
setIsUseCache
(
true
);
setTakeawayEditData
(
SourceData
);
setIsUseCache
(
true
);
}
}
else
{
setEditData
(
SourceData
);
...
...
@@ -450,8 +450,8 @@ const ServiceGoods = options => {
!
info
||
!
info
.
infoMation
||
!
info
.
infoMation
.
name
||
!
info
.
infoMation
.
categoryId
||
(
info
.
infoMation
.
categoryId
.
length
!==
3
&&
info
.
type
!==
5
)
!
info
.
infoMation
.
categoryId
//
(info.infoMation.categoryId.length !== 3 && info.type !== 5)
)
{
message
.
warning
(
'
请添加商品类目和名称
'
);
return
;
...
...
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