Commit df63d165 authored by 卢均锐's avatar 卢均锐

chore: 采购竞价-新增-补充placeholder

parent 7507fb56
...@@ -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 (
......
...@@ -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 });
......
...@@ -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>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment