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
8879b7db
Commit
8879b7db
authored
May 07, 2025
by
靳野
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix:修复价格与库存单位显示问题
parent
5a1ffce2
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
1 deletion
+8
-1
FormPriceOrStock.jsx
src/pages/ServiceGoods/components/FormPriceOrStock.jsx
+8
-1
No files found.
src/pages/ServiceGoods/components/FormPriceOrStock.jsx
View file @
8879b7db
...
@@ -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
);
};
};
...
@@ -444,6 +447,10 @@ const FormPriceOrStock = forwardRef((props, ref) => {
...
@@ -444,6 +447,10 @@ const FormPriceOrStock = forwardRef((props, ref) => {
},
},
}));
}));
useEffect
(()
=>
{
customerRef
.
current
=
customer
;
},
[
customer
]);
useEffect
(()
=>
{
useEffect
(()
=>
{
if
(
customer
.
isEdit
||
customer
.
isUseCache
)
{
if
(
customer
.
isEdit
||
customer
.
isUseCache
)
{
if
(
!
editData
)
{
if
(
!
editData
)
{
...
...
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