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
41a1755f
Commit
41a1755f
authored
May 06, 2025
by
guang.wu
1
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat: 修改投资金转换问题
parent
9b668ec5
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
6 deletions
+13
-6
FormPriceOrStock.jsx
src/pages/ServiceGoods/components/FormPriceOrStock.jsx
+9
-2
index.jsx
src/pages/ServiceGoods/index.jsx
+4
-4
No files found.
src/pages/ServiceGoods/components/FormPriceOrStock.jsx
View file @
41a1755f
...
...
@@ -229,7 +229,6 @@ const CreateBatchFormItems = ({ specInitValue, batchChange, defaultColumns }) =>
const
FormPriceOrStock
=
forwardRef
((
props
,
ref
)
=>
{
const
{
specList
,
editData
,
skuList
=
[],
onSpecChange
}
=
props
;
const
editRef
=
useRef
(
null
);
const
packageRef
=
useRef
(
null
);
const
customer
=
useContext
(
ServiceContext
);
...
...
@@ -457,7 +456,15 @@ const FormPriceOrStock = forwardRef((props, ref) => {
setMergeTable
(
Boolean
(
editData
.
secondSpecValue
&&
editData
.
secondSpecValue
.
length
));
setTableData
(
fliterSkuListSortData
(
skuList
)
||
[]);
}
},
[
customer
.
isEdit
,
customer
.
isUseCache
,
editData
]);
},
[
customer
.
isEdit
,
customer
.
isUseCache
,
editData
,
skuList
]);
useEffect
(()
=>
{
if
(
!
editData
)
{
onFinish
();
return
;
}
CreateColumnsEvent
(
editData
);
},
[
customer
.
isGold
]);
return
(
<>
...
...
src/pages/ServiceGoods/index.jsx
View file @
41a1755f
...
...
@@ -377,7 +377,7 @@ const ServiceGoods = options => {
}
setPageLoading
(
false
);
})();
},
[
SourceData
,
categoryIds
]);
},
[
SourceData
]);
useEffect
(()
=>
{
if
(
options
.
visible
)
{
...
...
@@ -443,10 +443,10 @@ const ServiceGoods = options => {
const
onCategoryChange
=
e
=>
{
setCategoryIds
(
e
);
let
txt
=
''
;
if
(
categoryIds
.
includes
(
GoldCategory
))
{
txt
=
'
千克
'
;
}
else
if
(
e
.
includes
(
GoldCategory
))
{
if
(
e
.
includes
(
GoldCategory
))
{
txt
=
'
克
'
;
}
else
if
(
categoryIds
.
includes
(
GoldCategory
)
&&
!
e
.
includes
(
GoldCategory
))
{
txt
=
'
千克
'
;
}
if
(
txt
)
{
message
.
warning
(
`商品品类已切换,规格重量单位已自动切换为
${
txt
}
`
,
6
);
...
...
靳野
@ye.jin
mentioned in commit
5a1ffce2
·
May 07, 2025
mentioned in commit
5a1ffce2
mentioned in commit 5a1ffce26edbe2f84906596de318fe61832e2a2f
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