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
e4910505
Commit
e4910505
authored
May 15, 2025
by
靳野
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Revert "fix:切换类目保留添加的状态"
This reverts commit
91f0e1df
.
parent
91f0e1df
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
2 deletions
+9
-2
FormPriceOrStock.jsx
src/pages/ServiceGoods/components/FormPriceOrStock.jsx
+9
-2
No files found.
src/pages/ServiceGoods/components/FormPriceOrStock.jsx
View file @
e4910505
...
@@ -233,6 +233,7 @@ const FormPriceOrStock = forwardRef((props, ref) => {
...
@@ -233,6 +233,7 @@ const FormPriceOrStock = forwardRef((props, ref) => {
const
editRef
=
useRef
(
null
);
const
editRef
=
useRef
(
null
);
const
packageRef
=
useRef
(
null
);
const
packageRef
=
useRef
(
null
);
const
customer
=
useContext
(
ServiceContext
);
const
customer
=
useContext
(
ServiceContext
);
const
customerRef
=
useRef
(
customer
);
const
[
form
]
=
Form
.
useForm
();
const
[
form
]
=
Form
.
useForm
();
const
[
specInitValue
,
setSpecInitValue
]
=
useState
(
initSpecReced
());
const
[
specInitValue
,
setSpecInitValue
]
=
useState
(
initSpecReced
());
...
@@ -321,7 +322,9 @@ const FormPriceOrStock = forwardRef((props, ref) => {
...
@@ -321,7 +322,9 @@ const FormPriceOrStock = forwardRef((props, ref) => {
const
isGoodsManage
=
window
.
location
.
pathname
.
indexOf
(
'
popGoodsManage
'
)
<
0
;
const
isGoodsManage
=
window
.
location
.
pathname
.
indexOf
(
'
popGoodsManage
'
)
<
0
;
const
dynamicColumns
=
[
const
dynamicColumns
=
[
...
columsData
,
...
columsData
,
...(
isGoodsManage
?
StaticColumns
(
customer
)
:
StaticColumnsPop
(
customer
)),
...(
isGoodsManage
?
StaticColumns
(
customerRef
.
current
)
:
StaticColumnsPop
(
customerRef
.
current
)),
];
];
setDefaultColumns
(
dynamicColumns
);
setDefaultColumns
(
dynamicColumns
);
};
};
...
@@ -476,6 +479,10 @@ const FormPriceOrStock = forwardRef((props, ref) => {
...
@@ -476,6 +479,10 @@ const FormPriceOrStock = forwardRef((props, ref) => {
},
},
}));
}));
useEffect
(()
=>
{
customerRef
.
current
=
customer
;
},
[
customer
]);
useEffect
(()
=>
{
useEffect
(()
=>
{
(
async
()
=>
{
(
async
()
=>
{
await
onSpecificationEvent
();
await
onSpecificationEvent
();
...
@@ -495,7 +502,7 @@ const FormPriceOrStock = forwardRef((props, ref) => {
...
@@ -495,7 +502,7 @@ const FormPriceOrStock = forwardRef((props, ref) => {
setMergeTable
(
Boolean
(
editData
.
secondSpecValue
&&
editData
.
secondSpecValue
.
length
));
setMergeTable
(
Boolean
(
editData
.
secondSpecValue
&&
editData
.
secondSpecValue
.
length
));
setTableData
(
fliterSkuListSortData
(
skuList
)
||
[]);
setTableData
(
fliterSkuListSortData
(
skuList
)
||
[]);
}
}
},
[
customer
.
isEdit
,
customer
.
isUseCache
,
editData
]);
},
[
customer
.
isEdit
,
customer
.
isUseCache
,
editData
,
customer
.
isGold
]);
return
(
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