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
78ae2cb0
Commit
78ae2cb0
authored
Nov 23, 2022
by
武广
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: 去掉生成商品按钮 添加拉取公共图片
parent
ff8bf25d
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
25 additions
and
10 deletions
+25
-10
EditFormTable.jsx
src/pages/ServiceGoods/components/EditFormTable.jsx
+2
-2
FormPriceOrStock.jsx
src/pages/ServiceGoods/components/FormPriceOrStock.jsx
+10
-7
FormRuleVPictures.jsx
src/pages/ServiceGoods/components/FormRuleVPictures.jsx
+13
-1
No files found.
src/pages/ServiceGoods/components/EditFormTable.jsx
View file @
78ae2cb0
...
@@ -174,8 +174,8 @@ const EditFormTable = forwardRef((props, ref) => {
...
@@ -174,8 +174,8 @@ const EditFormTable = forwardRef((props, ref) => {
<
Form
form=
{
form
}
scrollToFirstError
component=
{
false
}
>
<
Form
form=
{
form
}
scrollToFirstError
component=
{
false
}
>
<
EditableContext
.
Provider
value=
{
form
}
>
<
EditableContext
.
Provider
value=
{
form
}
>
<
Table
<
Table
scroll=
{
{
y
:
3
0
0
,
x
:
1000
}
}
scroll=
{
{
y
:
3
2
0
,
x
:
1000
}
}
height=
{
3
0
0
}
height=
{
3
2
0
}
pagination=
{
false
}
pagination=
{
false
}
size=
"small"
size=
"small"
bordered
bordered
...
...
src/pages/ServiceGoods/components/FormPriceOrStock.jsx
View file @
78ae2cb0
...
@@ -77,7 +77,6 @@ const SpecificationTemplate = (props, _) => {
...
@@ -77,7 +77,6 @@ const SpecificationTemplate = (props, _) => {
return
;
return
;
}
}
addCallback
();
addCallback
();
onChange
();
};
};
const
bundlePlusRemoveSpecEvent
=
(
removeCallback
,
fieldName
)
=>
{
const
bundlePlusRemoveSpecEvent
=
(
removeCallback
,
fieldName
)
=>
{
...
@@ -353,10 +352,12 @@ const FormPriceOrStock = forwardRef((props, ref) => {
...
@@ -353,10 +352,12 @@ const FormPriceOrStock = forwardRef((props, ref) => {
);
);
onSpecChange
(
firstSpecValueList
);
onSpecChange
(
firstSpecValueList
);
}
}
onFinish
();
};
};
const
seconOnChangeEvent
=
async
()
=>
{
const
seconOnChangeEvent
=
async
()
=>
{
await
onSpecificationEvent
();
await
onSpecificationEvent
();
onFinish
();
};
};
useImperativeHandle
(
ref
,
()
=>
({
useImperativeHandle
(
ref
,
()
=>
({
...
@@ -405,16 +406,18 @@ const FormPriceOrStock = forwardRef((props, ref) => {
...
@@ -405,16 +406,18 @@ const FormPriceOrStock = forwardRef((props, ref) => {
specList=
{
specList
}
specList=
{
specList
}
specDataList=
{
specInitValue
.
secondSpecValue
}
specDataList=
{
specInitValue
.
secondSpecValue
}
/>
/>
<
div
style=
{
{
display
:
'
flex
'
,
justifyContent
:
'
center
'
,
marginBottom
:
20
}
}
>
{
/*
<div style={{ display: 'flex', justifyContent: 'center', marginBottom: 20 }}>
<Button type="primary" onClick={onFinish}>
<Button type="primary" onClick={onFinish}>
生成商品信息
生成商品信息
</Button>
</Button>
</
div
>
</div> */
}
<
div
>
<
CreateBatchFormItems
<
CreateBatchFormItems
batchChange=
{
batchChange
}
batchChange=
{
batchChange
}
specInitValue=
{
specInitValue
}
specInitValue=
{
specInitValue
}
defaultColumns=
{
defaultColumns
}
defaultColumns=
{
defaultColumns
}
/>
/>
</
div
>
</
Form
>
</
Form
>
<
EditFormTable
<
EditFormTable
ref=
{
editRef
}
ref=
{
editRef
}
...
...
src/pages/ServiceGoods/components/FormRuleVPictures.jsx
View file @
78ae2cb0
...
@@ -100,6 +100,14 @@ const FormRuleVPictures = forwardRef((props, ref) => {
...
@@ -100,6 +100,14 @@ const FormRuleVPictures = forwardRef((props, ref) => {
});
});
};
};
// 拉取公共图片
const
onPullCommonImg
=
key
=>
{
const
cimg
=
form
.
getFieldValue
(
'
commonImageList
'
);
const
obj
=
{
...
imageList
};
obj
[
key
]
=
cimg
;
setImageList
(
obj
);
};
const
onDetailSuccessImageList
=
imgList
=>
{
const
onDetailSuccessImageList
=
imgList
=>
{
setDetailImageList
(
imgList
);
setDetailImageList
(
imgList
);
form
.
setFieldsValue
({
form
.
setFieldsValue
({
...
@@ -190,7 +198,11 @@ const FormRuleVPictures = forwardRef((props, ref) => {
...
@@ -190,7 +198,11 @@ const FormRuleVPictures = forwardRef((props, ref) => {
setPictureList=
{
list
=>
onPictureSuccessEvent
(
list
,
key
)
}
setPictureList=
{
list
=>
onPictureSuccessEvent
(
list
,
key
)
}
/>
/>
</
Form
.
Item
>
</
Form
.
Item
>
<
Button
className=
{
commonStyle
.
pullImage
}
type=
"primary"
>
<
Button
className=
{
commonStyle
.
pullImage
}
onClick=
{
()
=>
onPullCommonImg
(
key
)
}
type=
"primary"
>
拉取公共图
拉取公共图
</
Button
>
</
Button
>
</
div
>
</
div
>
...
...
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