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
b4396b47
Commit
b4396b47
authored
Apr 11, 2023
by
陈万宝
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat: 更新数据
parent
82902dc9
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
2 deletions
+6
-2
index.jsx
src/pages/GoodsManage/index.jsx
+2
-1
FormTakeaway.jsx
src/pages/ServiceGoods/components/FormTakeaway.jsx
+1
-1
index.jsx
src/pages/ServiceGoods/index.jsx
+3
-0
No files found.
src/pages/GoodsManage/index.jsx
View file @
b4396b47
...
@@ -62,7 +62,7 @@ class goodsManage extends Component {
...
@@ -62,7 +62,7 @@ class goodsManage extends Component {
auditRow
:
{},
// 查看审核信息使用
auditRow
:
{},
// 查看审核信息使用
isVisibleDraft
:
false
,
// 显示隐藏草稿箱
isVisibleDraft
:
false
,
// 显示隐藏草稿箱
isEditDraft
:
false
,
// 是否编辑草稿
isEditDraft
:
false
,
// 是否编辑草稿
productType
:
5
,
// 商品类型
productType
:
1
,
// 商品类型
takeAway
:
{},
// 弹窗外卖商品参数
takeAway
:
{},
// 弹窗外卖商品参数
searchValue
:
{},
// 搜索条件
searchValue
:
{},
// 搜索条件
refresh
:
''
,
// 外卖刷新
refresh
:
''
,
// 外卖刷新
...
@@ -82,6 +82,7 @@ class goodsManage extends Component {
...
@@ -82,6 +82,7 @@ class goodsManage extends Component {
this
.
categoryListByType
(
this
.
state
.
productType
);
this
.
categoryListByType
(
this
.
state
.
productType
);
this
.
getVirtualCategory
();
this
.
getVirtualCategory
();
this
.
specList
();
this
.
specList
();
console
.
log
(
'
this.state.productType
'
,
this
.
state
.
productType
);
}
}
handleSearch
=
page
=>
{
handleSearch
=
page
=>
{
...
...
src/pages/ServiceGoods/components/FormTakeaway.jsx
View file @
b4396b47
...
@@ -632,7 +632,7 @@ const TakeawayGoodsInfo = forwardRef((props, ref) => {
...
@@ -632,7 +632,7 @@ const TakeawayGoodsInfo = forwardRef((props, ref) => {
}
}
}
}
if (customer.isUseCache) {
if (customer.isUseCache) {
onValuesChange(editData, !0);
props.
onValuesChange(editData, !0);
let tempEdit = JSON.parse(JSON.stringify(editData));
let tempEdit = JSON.parse(JSON.stringify(editData));
tempEdit = Object.assign({}, editData, { ...tempEdit.takeawayItem });
tempEdit = Object.assign({}, editData, { ...tempEdit.takeawayItem });
console.log('tempEdit', tempEdit);
console.log('tempEdit', tempEdit);
...
...
src/pages/ServiceGoods/index.jsx
View file @
b4396b47
...
@@ -94,6 +94,7 @@ const ServiceGoods = options => {
...
@@ -94,6 +94,7 @@ const ServiceGoods = options => {
const
typeObj
=
{
const
typeObj
=
{
type
:
productType
,
type
:
productType
,
};
};
console
.
log
(
'
visibleCacheEdit
'
,
visibleCacheEdit
,
e
);
if
(
visibleCacheEdit
)
{
if
(
visibleCacheEdit
)
{
setVisibleCacheEdit
(
false
);
setVisibleCacheEdit
(
false
);
localStorage
.
remove
(
localAutoSaveKey
);
localStorage
.
remove
(
localAutoSaveKey
);
...
@@ -101,6 +102,7 @@ const ServiceGoods = options => {
...
@@ -101,6 +102,7 @@ const ServiceGoods = options => {
}
}
onAutoSaveValue
(
Object
.
assign
(
typeObj
,
e
));
onAutoSaveValue
(
Object
.
assign
(
typeObj
,
e
));
}
}
console
.
log
(
'
productType
'
,
productType
,
!
isEdit
);
if
(
productType
===
5
)
{
if
(
productType
===
5
)
{
setTakeawayInfoMation
(
e
);
setTakeawayInfoMation
(
e
);
// console.log('takeawayInfoMation', takeawayInfoMation);
// console.log('takeawayInfoMation', takeawayInfoMation);
...
@@ -401,6 +403,7 @@ const ServiceGoods = options => {
...
@@ -401,6 +403,7 @@ const ServiceGoods = options => {
);
);
useEffect
(()
=>
{
useEffect
(()
=>
{
// 外卖类型
// 外卖类型
console
.
log
(
'
takeAway
'
,
takeAway
);
if
(
Object
.
keys
(
takeAway
)?.
length
)
{
if
(
Object
.
keys
(
takeAway
)?.
length
)
{
const
{
spuId
=
''
,
groupId
=
''
}
=
takeAway
;
const
{
spuId
=
''
,
groupId
=
''
}
=
takeAway
;
if
(
spuId
)
{
if
(
spuId
)
{
...
...
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