Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
J
jinfa-platform
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
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
linweijiong
jinfa-platform
Commits
df63d165
Commit
df63d165
authored
Jul 13, 2021
by
卢均锐
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
chore: 采购竞价-新增-补充placeholder
parent
7507fb56
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
22 additions
and
4 deletions
+22
-4
basic.tsx
...purchaseAbility/purchaseBid/readyAdd/components/basic.tsx
+2
-0
bidRules.tsx
...chaseAbility/purchaseBid/readyAdd/components/bidRules.tsx
+19
-4
condition.tsx
...haseAbility/purchaseBid/readyAdd/components/condition.tsx
+1
-0
No files found.
src/pages/transaction/purchaseAbility/purchaseBid/readyAdd/components/basic.tsx
View file @
df63d165
...
@@ -232,6 +232,7 @@ const BasicInfo: React.FC<Iprops> = (props: any) => {
...
@@ -232,6 +232,7 @@ const BasicInfo: React.FC<Iprops> = (props: any) => {
onChange=
{
(
value
)
=>
{
onChange=
{
(
value
)
=>
{
handProvince
(
value
,
idx
,
1
)
handProvince
(
value
,
idx
,
1
)
}
}
}
}
placeholder=
'请选择省'
>
>
{
province
.
map
(
items
=>
{
{
province
.
map
(
items
=>
{
return
(
return
(
...
@@ -250,6 +251,7 @@ const BasicInfo: React.FC<Iprops> = (props: any) => {
...
@@ -250,6 +251,7 @@ const BasicInfo: React.FC<Iprops> = (props: any) => {
onChange=
{
(
value
)
=>
{
onChange=
{
(
value
)
=>
{
handProvince
(
value
,
idx
,
2
)
handProvince
(
value
,
idx
,
2
)
}
}
}
}
placeholder=
'请选择市'
>
>
{
(
item
.
provinceCode
&&
city
.
length
>
0
&&
city
[
idx
])
&&
city
[
idx
].
citydata
.
map
(
items
=>
{
{
(
item
.
provinceCode
&&
city
.
length
>
0
&&
city
[
idx
])
&&
city
[
idx
].
citydata
.
map
(
items
=>
{
return
(
return
(
...
...
src/pages/transaction/purchaseAbility/purchaseBid/readyAdd/components/bidRules.tsx
View file @
df63d165
...
@@ -167,7 +167,11 @@ const BidRules: React.FC<Iprops> = (props: any) => {
...
@@ -167,7 +167,11 @@ const BidRules: React.FC<Iprops> = (props: any) => {
})
})
]
}
]
}
>
>
<
Input
addonBefore=
{
'¥'
}
value=
{
startingPrice
}
onChange=
{
(
e
)
=>
{
<
Input
addonBefore=
{
'¥'
}
value=
{
startingPrice
}
placeholder=
'请输入起拍价'
onChange=
{
(
e
)
=>
{
let
_val
=
e
.
target
.
value
.
replace
(
/^
\D
*
(\d
*
(?:\.\d
{0,2}
)?)
.*$/g
,
'$1'
);
let
_val
=
e
.
target
.
value
.
replace
(
/^
\D
*
(\d
*
(?:\.\d
{0,2}
)?)
.*$/g
,
'$1'
);
setStartingPrice
(
_val
);
setStartingPrice
(
_val
);
form
.
setFieldsValue
({
startingPrice
:
_val
});
form
.
setFieldsValue
({
startingPrice
:
_val
});
...
@@ -204,7 +208,11 @@ const BidRules: React.FC<Iprops> = (props: any) => {
...
@@ -204,7 +208,11 @@ const BidRules: React.FC<Iprops> = (props: any) => {
})
})
]
}
]
}
>
>
<
Input
addonBefore=
{
'¥'
}
value=
{
targetPrice
}
onChange=
{
(
e
)
=>
{
<
Input
addonBefore=
{
'¥'
}
value=
{
targetPrice
}
placeholder=
'请输入目标价'
onChange=
{
(
e
)
=>
{
let
_val
=
e
.
target
.
value
.
replace
(
/^
\D
*
(\d
*
(?:\.\d
{0,2}
)?)
.*$/g
,
'$1'
);
let
_val
=
e
.
target
.
value
.
replace
(
/^
\D
*
(\d
*
(?:\.\d
{0,2}
)?)
.*$/g
,
'$1'
);
setTargetPrice
(
_val
);
setTargetPrice
(
_val
);
form
.
setFieldsValue
({
targetPrice
:
_val
});
form
.
setFieldsValue
({
targetPrice
:
_val
});
...
@@ -241,7 +249,11 @@ const BidRules: React.FC<Iprops> = (props: any) => {
...
@@ -241,7 +249,11 @@ const BidRules: React.FC<Iprops> = (props: any) => {
})
})
]
}
]
}
>
>
<
Input
addonBefore=
{
'¥'
}
value=
{
minPrice
}
onChange=
{
(
e
)
=>
{
<
Input
addonBefore=
{
'¥'
}
value=
{
minPrice
}
placeholder=
'请输入最小价差'
onChange=
{
(
e
)
=>
{
let
_val
=
e
.
target
.
value
.
replace
(
/^
\D
*
(\d
*
(?:\.\d
{0,2}
)?)
.*$/g
,
'$1'
);
let
_val
=
e
.
target
.
value
.
replace
(
/^
\D
*
(\d
*
(?:\.\d
{0,2}
)?)
.*$/g
,
'$1'
);
setMinPrice
(
_val
);
setMinPrice
(
_val
);
form
.
setFieldsValue
({
minPrice
:
_val
});
form
.
setFieldsValue
({
minPrice
:
_val
});
...
@@ -272,7 +284,10 @@ const BidRules: React.FC<Iprops> = (props: any) => {
...
@@ -272,7 +284,10 @@ const BidRules: React.FC<Iprops> = (props: any) => {
})
})
]
}
]
}
>
>
<
Input
value=
{
allowPurchaseCount
}
onChange=
{
(
e
)
=>
{
<
Input
value=
{
allowPurchaseCount
}
placeholder=
'请输入报价次数'
onChange=
{
(
e
)
=>
{
let
_val
=
e
.
target
.
value
.
replace
(
/
[^\d]
/g
,
''
).
replace
(
/^0{1,}/g
,
''
);
let
_val
=
e
.
target
.
value
.
replace
(
/
[^\d]
/g
,
''
).
replace
(
/^0{1,}/g
,
''
);
setAllowPurchaseCount
(
_val
);
setAllowPurchaseCount
(
_val
);
form
.
setFieldsValue
({
allowPurchaseCount
:
_val
});
form
.
setFieldsValue
({
allowPurchaseCount
:
_val
});
...
...
src/pages/transaction/purchaseAbility/purchaseBid/readyAdd/components/condition.tsx
View file @
df63d165
...
@@ -132,6 +132,7 @@ const Condition: React.FC<Iprops> = (props: any) => {
...
@@ -132,6 +132,7 @@ const Condition: React.FC<Iprops> = (props: any) => {
>
>
<
Select
<
Select
onSelect=
{
handleSelectAddress
}
onSelect=
{
handleSelectAddress
}
placeholder=
'请选择交付地址'
>
>
{
address
.
map
(
v
=>
(
{
address
.
map
(
v
=>
(
<
Option
key=
{
v
.
id
}
value=
{
v
.
id
}
>
{
v
.
fullAddress
}
</
Option
>
<
Option
key=
{
v
.
id
}
value=
{
v
.
id
}
>
{
v
.
fullAddress
}
</
Option
>
...
...
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