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
cae5a4dd
Commit
cae5a4dd
authored
Mar 29, 2023
by
陈万宝
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat:更新库存
parent
6db69753
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
8 deletions
+7
-8
FormTakeaway.jsx
src/pages/ServiceGoods/components/FormTakeaway.jsx
+7
-8
No files found.
src/pages/ServiceGoods/components/FormTakeaway.jsx
View file @
cae5a4dd
...
...
@@ -257,18 +257,17 @@ const TakeawayGoodsInfo = forwardRef((props, ref) => {
if (tempMultiSpu.length) {
multiSpu.forEach((item, index) => {
tempMultiSpu.forEach((itm, idx) => {
console.log(
'itm',
itm);
console.log(
"itm",
itm);
if (item.unique === itm.unique) {
item.serviceItem = objectComparison(item.serviceItem, itm);
item.id = itm.id;
console.log('item', item);
item.id = itm.id
}
});
});
}
console.log('multiSpu=====11', tempMultiSpu);
console.log('multiSpu=====22', multiSpu);
// debugger
// debugger
console.log('multiSpu', multiSpu);
// debugger;
setMultiSpu(multiSpu);
...
...
@@ -532,15 +531,15 @@ const TakeawayGoodsInfo = forwardRef((props, ref) => {
const tempMultiSpu = editData?.skuList.map(item => {
if (item) {
let weightIdx = item.specs.findIndex(itm => itm.specGroupName === '份量');
console.log(
'weightIdx',
weightIdx);
console.log(
"weightIdx",
weightIdx);
let specsIdx = item.specs.findIndex(itm => itm.specGroupName !== '份量');
console.log(
'specsIdx',
specsIdx);
console.log(
"specsIdx",
specsIdx);
item.unique = `
$
{
item
.
specs
[
weightIdx
]?.
specName
}
-
$
{
item
.
specs
[
specsIdx
]?.
specGroupName
}
-
$
{
item
.
specs
[
specsIdx
]?.
specName
}
`;
}
return item;
});
setTempMultiSpu(tempMultiSpu || []);
//
debugger
debugger
}
form.setFieldsValue({ productRefShopId: editData.shopId });
...
...
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