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
4cb1f9d0
Commit
4cb1f9d0
authored
Mar 30, 2023
by
武广
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix:修改切换类型不清空问题
parent
08804872
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
27 additions
and
3 deletions
+27
-3
index.jsx
src/pages/GoodsManage/SearchForm/index.jsx
+27
-3
No files found.
src/pages/GoodsManage/SearchForm/index.jsx
View file @
4cb1f9d0
...
...
@@ -12,6 +12,7 @@ import {
Divider
,
}
from
'
antd
'
;
import
React
,
{
Component
,
useState
}
from
'
react
'
;
import
{
SwapRightOutlined
}
from
'
@ant-design/icons
'
;
import
{
connect
}
from
'
dva
'
;
import
{
saveAs
}
from
'
file-saver
'
;
import
{
format
}
from
'
date-fns
'
;
...
...
@@ -60,6 +61,10 @@ class goodsManage extends Component {
const
form
=
this
.
formRef
.
current
;
form
.
resetFields
();
this
.
props
.
onReset
();
this
.
props
.
changeProductType
(
1
);
this
.
setState
({
productType
:
1
,
});
};
addSpu
=
()
=>
{
...
...
@@ -80,6 +85,17 @@ class goodsManage extends Component {
};
onChangeProductType
=
(
v
=
null
)
=>
{
const
form
=
this
.
formRef
.
current
;
form
.
setFieldsValue
({
skuId
:
''
,
skuName
:
''
,
thirdSkuNo
:
''
,
productCategoryId
:
null
,
state
:
null
,
supplyPriceMin
:
null
,
supplyPriceMax
:
null
,
productType
:
v
,
});
this
.
props
.
changeProductType
(
v
);
this
.
setState
({
productType
:
v
,
...
...
@@ -194,11 +210,19 @@ class goodsManage extends Component {
)
}
<
FormItem
label=
"供货价区间"
>
<
FormItem
name=
"supplyPriceMin"
className=
{
styles
.
iptNumRight
}
noStyle
>
<
InputNumber
placeholder=
"请输入"
style=
{
iptNumWidth
}
/>
<
InputNumber
placeholder=
"请输入"
min=
{
0
}
max=
{
999999999
}
style=
{
iptNumWidth
}
/>
</
FormItem
>
<
span
>
--
</
span
>
<
span
>
<
SwapRightOutlined
/>
</
span
>
<
FormItem
name=
"supplyPriceMax"
className=
{
styles
.
iptNumRight
}
noStyle
>
<
InputNumber
style=
{
iptNumWidth
}
placeholder=
"请输入"
onChange=
{
this
.
valueMin
}
/>
<
InputNumber
style=
{
iptNumWidth
}
min=
{
0
}
max=
{
999999999
}
placeholder=
"请输入"
onChange=
{
this
.
valueMin
}
/>
</
FormItem
>
</
FormItem
>
{
this
.
state
.
productType
!==
5
&&
(
...
...
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