Commit 3af33e99 authored by alwayOnlie's avatar alwayOnlie

字段参数变更

parent 6db88973
......@@ -274,7 +274,7 @@ const FormList = (props: any) => {
dataIndex: 'bidAmount',
key: 'bidAmount',
align: 'center',
render: (text: any, record: any) => <Text>{record.bidAmount}</Text>
render: (text: any, record: any) => <Text>{Number(record.bidAmount).toFixed(2)}</Text>
},
];
......
......@@ -115,7 +115,7 @@ const FormList = (props: any) => {
item.payWay != 3 &&
<div className={styles.setBox}>
{/* payParam */}
<InputNumber placeholder='' onChange={(e) => onSelectChange(e, 'payParam', index)} width={60} max={31} />
<InputNumber placeholder='' onChange={(e) => onSelectChange(e, 'payParam', index)} width={60} max={item.payWay == 2 ? 31 : 999} />
<span>{item.payWay == 2 ? '号' : item.payWay == 1 ? '天' : ''}</span>
</div>
}
......
......@@ -133,7 +133,7 @@ const FormList = (props: any) => {
dataIndex: 'bidAmount',
key: 'bidAmount',
align: 'center',
render: (text: any, record: any) => <Text>¥{record.bidAmount}</Text>
render: (text: any, record: any) => <Text>{Number(record.bidAmount).toFixed(2)}</Text>
},
];
useEffect(() => {
......
......@@ -105,7 +105,7 @@ const FormList = (props: any) => {
item.payWay != 3 &&
<div className={styles.setBox}>
{/* payParam */}
<InputNumber defaultValue={item.payParam} placeholder='' onChange={(e) => onSelectChange(e, 'payParam', index)} width={60} max={31} />
<InputNumber placeholder='' onChange={(e) => onSelectChange(e, 'payParam', index)} width={60} max={item.payWay == 2 ? 31 : 999} />
<span>{item.payWay == 2 ? '号' : item.payWay == 1 ? '天' : ''}</span>
</div>
}
......
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