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