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
ab9dde94
Commit
ab9dde94
authored
Mar 30, 2023
by
陈万宝
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat:修改新增入口
parent
0febb3b0
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
TaskTypeSelect.jsx
src/pages/ServiceGoods/components/TaskTypeSelect.jsx
+1
-1
index.jsx
src/pages/ServiceGoods/index.jsx
+2
-2
No files found.
src/pages/ServiceGoods/components/TaskTypeSelect.jsx
View file @
ab9dde94
...
@@ -11,7 +11,7 @@ export const TaskTypeSelect = props => {
...
@@ -11,7 +11,7 @@ export const TaskTypeSelect = props => {
customer
.
canTakeawayService
,
customer
.
canTakeawayService
,
);
);
const
selectTabs
=
task
=>
{
const
selectTabs
=
task
=>
{
if
(
!
customer
.
isEdit
)
{
if
(
!
customer
.
isEdit
&&
Object
.
keys
(
props
.
takeAway
).
length
===
0
)
{
props
.
onChange
(
task
);
props
.
onChange
(
task
);
}
}
};
};
...
...
src/pages/ServiceGoods/index.jsx
View file @
ab9dde94
...
@@ -370,7 +370,7 @@ const ServiceGoods = options => {
...
@@ -370,7 +370,7 @@ const ServiceGoods = options => {
useEffect
(()
=>
{
useEffect
(()
=>
{
console
.
log
(
'
takeAway
'
,
takeAway
);
console
.
log
(
'
takeAway
'
,
takeAway
);
// 外卖类型
// 外卖类型
if
(
takeAway
)
{
if
(
Object
.
keys
(
takeAway
).
length
)
{
const
{
spuId
=
''
,
groupId
=
''
}
=
takeAway
const
{
spuId
=
''
,
groupId
=
''
}
=
takeAway
if
(
spuId
)
{
if
(
spuId
)
{
querGetShopDetail
(
takeAway
);
querGetShopDetail
(
takeAway
);
...
@@ -510,7 +510,7 @@ const ServiceGoods = options => {
...
@@ -510,7 +510,7 @@ const ServiceGoods = options => {
)
}
)
}
<
ServiceContext
.
Provider
value=
{
providerValue
}
>
<
ServiceContext
.
Provider
value=
{
providerValue
}
>
<
Title
title=
"商品类型"
/>
<
Title
title=
"商品类型"
/>
<
TaskTypeSelect
productType=
{
productType
}
onChange=
{
productChange
}
/>
<
TaskTypeSelect
productType=
{
productType
}
takeAway=
{
takeAway
}
onChange=
{
productChange
}
/>
<
Title
title=
"商品基本信息编辑"
/>
<
Title
title=
"商品基本信息编辑"
/>
<
FormInformationBasic
<
FormInformationBasic
...
...
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