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
f317f0f7
Commit
f317f0f7
authored
Jan 18, 2022
by
beisir
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat: merge-master
parent
0b03c0f7
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
28 additions
and
9 deletions
+28
-9
index.jsx
src/pages/GoodsManage/SearchForm/index.jsx
+26
-7
index.jsx
src/pages/GoodsManage/createModal/index.jsx
+2
-2
No files found.
src/pages/GoodsManage/SearchForm/index.jsx
View file @
f317f0f7
...
@@ -73,15 +73,21 @@ class goodsManage extends Component {
...
@@ -73,15 +73,21 @@ class goodsManage extends Component {
return
(
return
(
<
Form
name=
"horizontal_login"
layout=
"inline"
className=
{
styles
.
searchForm
}
>
<
Form
name=
"horizontal_login"
layout=
"inline"
className=
{
styles
.
searchForm
}
>
<
FormItem
label=
"SKU编码"
>
<
FormItem
label=
"SKU编码"
>
{
getFieldDecorator
(
'
skuId
'
,
{})(<
Input
allowClear
style=
{
selectW
}
/>)
}
{
getFieldDecorator
(
'
skuId
'
,
{})(
<
Input
placeholder=
"请输入SKU编码"
allowClear
style=
{
selectW
}
/>,
)
}
</
FormItem
>
</
FormItem
>
<
FormItem
label=
"商品名称"
>
<
FormItem
label=
"商品名称"
>
{
getFieldDecorator
(
'
skuName
'
,
{})(<
Input
allowClear
style=
{
selectW
}
/>)
}
{
getFieldDecorator
(
'
skuName
'
,
{})(
<
Input
placeholder=
"请输入商品名称"
allowClear
style=
{
selectW
}
/>,
)
}
</
FormItem
>
</
FormItem
>
<
FormItem
label=
"类目"
>
<
FormItem
label=
"类目"
>
{
getFieldDecorator
(
'
productCategoryId
'
,
{})(
{
getFieldDecorator
(
'
productCategoryId
'
,
{})(
<
Cascader
<
Cascader
placeholder=
"请选择类目"
style=
{
selectW
}
style=
{
selectW
}
showSearch
changeOnSelect
changeOnSelect
fieldNames=
{
{
label
:
'
name
'
,
value
:
'
id
'
,
children
:
'
children
'
}
}
fieldNames=
{
{
label
:
'
name
'
,
value
:
'
id
'
,
children
:
'
children
'
}
}
options=
{
treeData
}
options=
{
treeData
}
...
@@ -90,7 +96,12 @@ class goodsManage extends Component {
...
@@ -90,7 +96,12 @@ class goodsManage extends Component {
</
FormItem
>
</
FormItem
>
<
FormItem
label=
"审核状态"
>
<
FormItem
label=
"审核状态"
>
{
getFieldDecorator
(
'
state
'
,
{})(
{
getFieldDecorator
(
'
state
'
,
{})(
<
Select
style=
{
selectW
}
allowClear
showSearch
filterOption=
{
filterOption
}
>
<
Select
style=
{
selectW
}
placeholder=
"请选择审核状态"
allowClear
filterOption=
{
filterOption
}
>
{
stateList
?.
map
(
item
=>
(
{
stateList
?.
map
(
item
=>
(
<
Option
key=
{
item
.
value
}
value=
{
item
.
value
}
>
<
Option
key=
{
item
.
value
}
value=
{
item
.
value
}
>
{
item
.
label
}
{
item
.
label
}
...
@@ -101,17 +112,25 @@ class goodsManage extends Component {
...
@@ -101,17 +112,25 @@ class goodsManage extends Component {
</
FormItem
>
</
FormItem
>
<
FormItem
label=
"供货价区间"
>
<
FormItem
label=
"供货价区间"
>
<
FormItem
className=
{
styles
.
iptNumRight
}
>
<
FormItem
className=
{
styles
.
iptNumRight
}
>
{
getFieldDecorator
(
'
supplyPriceMin
'
,
{})(<
InputNumber
style=
{
iptNumWidth
}
/>)
}
{
getFieldDecorator
(
'
supplyPriceMin
'
,
{})(
<
InputNumber
placeholder=
"请输入"
style=
{
iptNumWidth
}
/>,
)
}
</
FormItem
>
</
FormItem
>
<
span
>
--
</
span
>
<
span
>
--
</
span
>
<
FormItem
className=
{
styles
.
iptNumRight
}
>
<
FormItem
className=
{
styles
.
iptNumRight
}
>
{
getFieldDecorator
(
'
supplyPriceMax
'
,
{})(
{
getFieldDecorator
(
'
supplyPriceMax
'
,
{})(
<
InputNumber
style=
{
iptNumWidth
}
min=
{
getFieldValue
(
'
supplyPriceMin
'
)
}
/>,
<
InputNumber
style=
{
iptNumWidth
}
placeholder=
"请输入"
min=
{
getFieldValue
(
'
supplyPriceMin
'
)
}
/>,
)
}
)
}
</
FormItem
>
</
FormItem
>
</
FormItem
>
</
FormItem
>
<
FormItem
label=
"第三方SKU编码"
>
<
FormItem
label=
"第三方SKU编码"
>
{
getFieldDecorator
(
'
thirdSkuNo
'
,
{})(<
Input
allowClear
style=
{
selectW
}
/>)
}
{
getFieldDecorator
(
'
thirdSkuNo
'
,
{})(
<
Input
placeholder=
"请输入第三方SKU编码"
allowClear
style=
{
selectW
}
/>,
)
}
</
FormItem
>
</
FormItem
>
<
FormItem
className=
{
styles
.
queryBtn
}
>
<
FormItem
className=
{
styles
.
queryBtn
}
>
<
Button
onClick=
{
()
=>
this
.
handleSearch
()
}
type=
"primary"
className=
{
styles
.
button
}
>
<
Button
onClick=
{
()
=>
this
.
handleSearch
()
}
type=
"primary"
className=
{
styles
.
button
}
>
...
@@ -121,7 +140,7 @@ class goodsManage extends Component {
...
@@ -121,7 +140,7 @@ class goodsManage extends Component {
重置
重置
</
Button
>
</
Button
>
</
FormItem
>
</
FormItem
>
<
FormItem
style=
{
{
width
:
'
100%
'
,
textAlign
:
'
right
'
}
}
>
<
FormItem
style=
{
{
float
:
'
right
'
}
}
>
<
Button
type=
"primary"
className=
{
styles
.
button
}
onClick=
{
this
.
addSpu
}
>
<
Button
type=
"primary"
className=
{
styles
.
button
}
onClick=
{
this
.
addSpu
}
>
新增商品
新增商品
</
Button
>
</
Button
>
...
...
src/pages/GoodsManage/createModal/index.jsx
View file @
f317f0f7
...
@@ -534,7 +534,7 @@ class goodsManage extends Component {
...
@@ -534,7 +534,7 @@ class goodsManage extends Component {
style=
{
{
width
:
690
}
}
style=
{
{
width
:
690
}
}
changeOnSelect
changeOnSelect
showSearch
showSearch
placeholder=
"请
输入商品名称
"
placeholder=
"请
选择类目,支持模糊搜索
"
fieldNames=
{
{
label
:
'
name
'
,
value
:
'
id
'
,
children
:
'
children
'
}
}
fieldNames=
{
{
label
:
'
name
'
,
value
:
'
id
'
,
children
:
'
children
'
}
}
options=
{
treeDataArray
}
options=
{
treeDataArray
}
onChange=
{
(
val
,
label
,
ext
)
=>
this
.
treeChange
(
val
,
label
,
ext
)
}
onChange=
{
(
val
,
label
,
ext
)
=>
this
.
treeChange
(
val
,
label
,
ext
)
}
...
@@ -566,7 +566,7 @@ class goodsManage extends Component {
...
@@ -566,7 +566,7 @@ class goodsManage extends Component {
showSearch
showSearch
style=
{
{
width
:
280
}
}
style=
{
{
width
:
280
}
}
filterOption=
{
filterOption
}
filterOption=
{
filterOption
}
placeholder=
"请选择,支持模糊搜索"
placeholder=
"请选择
商品品牌
,支持模糊搜索"
>
>
{
brandListArray
?.
length
&&
{
brandListArray
?.
length
&&
brandListArray
.
map
(
item
=>
(
brandListArray
.
map
(
item
=>
(
...
...
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