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
4035f0b8
Commit
4035f0b8
authored
Nov 24, 2022
by
武广
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: 修改拉取jd图片按钮禁用问题和选规格自动生成数据
parent
f698043e
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
13 additions
and
5 deletions
+13
-5
CommonTemplate.jsx
src/pages/ServiceGoods/components/CommonTemplate.jsx
+7
-2
FormPriceOrStock.jsx
src/pages/ServiceGoods/components/FormPriceOrStock.jsx
+5
-3
config.js
src/pages/ServiceGoods/config.js
+1
-0
No files found.
src/pages/ServiceGoods/components/CommonTemplate.jsx
View file @
4035f0b8
import
React
,
{
useState
}
from
'
react
'
;
import
React
from
'
react
'
;
import
{
Select
,
Form
,
InputNumber
,
Input
,
Button
,
Popover
}
from
'
antd
'
;
import
commonStyle
from
'
../common.less
'
;
...
...
@@ -108,7 +108,12 @@ export const CreateFormInput = props => {
return
(
<>
{
record
.
skuLink
&&
(
<
Button
type=
"primary"
size=
"small"
onClick=
{
()
=>
onClickEvent
(
'
cloneImg
'
,
record
)
}
>
<
Button
type=
"primary"
size=
"small"
disabled=
{
props
.
disabled
}
onClick=
{
()
=>
onClickEvent
(
'
cloneImg
'
,
record
)
}
>
拉图片
</
Button
>
)
}
...
...
src/pages/ServiceGoods/components/FormPriceOrStock.jsx
View file @
4035f0b8
...
...
@@ -58,7 +58,7 @@ const SpecificationTemplate = (props, _) => {
const
handleChange
=
(
val
,
option
)
=>
{
const
optionSpecName
=
option
?
option
.
specName
:
null
;
form
.
setFieldsValue
({
[
selectName
]:
optionSpecName
});
//
onChange();
onChange
();
};
const
inputOnblurEvent
=
event
=>
{
...
...
@@ -113,8 +113,9 @@ const SpecificationTemplate = (props, _) => {
{
fields
.
map
((
field
,
index
)
=>
(
<
Form
.
Item
key=
{
field
.
key
}
noStyle
shouldUpdate=
{
(
prevValues
,
curValues
)
=>
false
}
>
{
()
=>
(
<
Space
key=
{
field
.
key
}
align=
"baseline"
>
<
Space
key=
{
`space_${field.key}`
}
align=
"baseline"
>
<
Form
.
Item
key=
{
`item_${field.key}`
}
style=
{
{
marginLeft
:
10
}
}
name=
{
[
field
.
name
,
specName
]
}
rules=
{
[
...
...
@@ -142,6 +143,7 @@ const SpecificationTemplate = (props, _) => {
</
Form
.
Item
>
{
!
(
specDataList
[
index
]
&&
specDataList
[
index
].
id
)
&&
(
<
MinusCircleOutlined
key=
{
`minus_${field.key}`
}
onClick=
{
()
=>
bundlePlusRemoveSpecEvent
(
remove
,
field
.
name
)
}
/>
)
}
...
...
@@ -150,7 +152,7 @@ const SpecificationTemplate = (props, _) => {
</
Form
.
Item
>
))
}
{
fields
.
length
<
3
&&
(
!
customer
.
isEdit
||
customer
.
isCard
)
&&
(
<
Form
.
Item
noStyle
>
<
Form
.
Item
noStyle
key=
"btnpush"
>
<
Button
style=
{
{
marginLeft
:
10
,
marginBottom
:
24
}
}
type=
"dashed"
...
...
src/pages/ServiceGoods/config.js
View file @
4035f0b8
...
...
@@ -260,6 +260,7 @@ export const StaticColumns = customer => [
inputType
:
'
option
'
,
roleProps
:
{
isJDGoods
:
customer
.
isJDGoods
,
disabled
:
customer
.
isEdit
&&
!
customer
.
isCard
,
min
:
0
,
},
roleRules
:
{
required
:
false
},
...
...
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