Commit 1ff03345 authored by 前端-钟卫鹏's avatar 前端-钟卫鹏
parents 62d9c85a 5f81110f
...@@ -274,7 +274,7 @@ const FormList = (props: any) => { ...@@ -274,7 +274,7 @@ const FormList = (props: any) => {
dataIndex: 'bidAmount', dataIndex: 'bidAmount',
key: 'bidAmount', key: 'bidAmount',
align: 'center', 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) => { ...@@ -115,7 +115,7 @@ const FormList = (props: any) => {
item.payWay != 3 && item.payWay != 3 &&
<div className={styles.setBox}> <div className={styles.setBox}>
{/* payParam */} {/* 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> <span>{item.payWay == 2 ? '号' : item.payWay == 1 ? '天' : ''}</span>
</div> </div>
} }
......
...@@ -133,7 +133,7 @@ const FormList = (props: any) => { ...@@ -133,7 +133,7 @@ const FormList = (props: any) => {
dataIndex: 'bidAmount', dataIndex: 'bidAmount',
key: 'bidAmount', key: 'bidAmount',
align: 'center', align: 'center',
render: (text: any, record: any) => <Text>¥{record.bidAmount}</Text> render: (text: any, record: any) => <Text>{Number(record.bidAmount).toFixed(2)}</Text>
}, },
]; ];
useEffect(() => { useEffect(() => {
......
...@@ -105,7 +105,7 @@ const FormList = (props: any) => { ...@@ -105,7 +105,7 @@ const FormList = (props: any) => {
item.payWay != 3 && item.payWay != 3 &&
<div className={styles.setBox}> <div className={styles.setBox}>
{/* payParam */} {/* 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> <span>{item.payWay == 2 ? '号' : item.payWay == 1 ? '天' : ''}</span>
</div> </div>
} }
......
...@@ -200,7 +200,7 @@ const GoodsSetting: React.FC<GoodsSettingPropsType> = (props) => { ...@@ -200,7 +200,7 @@ const GoodsSetting: React.FC<GoodsSettingPropsType> = (props) => {
// return // return
// } else // } else
if (selectGoodsList.length > 9) { if (selectGoodsList.length > 9) {
message.error("最多只能推荐10件商品") message.error("最多只能推荐9件商品")
return return
} }
setConfirmLoading(true) setConfirmLoading(true)
......
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