Commit c0348083 authored by wzy's avatar wzy

fix: 25504-删除价格覆盖问题

parent 111d88ac
......@@ -431,7 +431,7 @@ const FormList = (props: any) => {
key: 'price'+refresh,
render: (text: any, record: any, index: number) =>
<Form.Item
name={`price${index}`}
name={`price${record.id}`}
// initialValue={text != '' ? Number(text).toFixed(2) : ''}
initialValue={text != '' ? String(text).replace(/^(.*\..{4}).*$/,"$1") : ''}
rules={[{
......@@ -447,7 +447,7 @@ const FormList = (props: any) => {
}}
onChange={(e) => setInput(e, 'price', index)}
// addonBefore={intl.formatMessage({ id: 'common.money' })}
defaultValue={text != '' ? Number(text) : ''}
// defaultValue={text != '' ? Number(text) : ''}
disabled={(Object.keys(Row).length != 0 && sourceWay != 'purchase') ? true : false}
defaultValue={text != '' ? String(text).replace(/^(.*\..{4}).*$/,"$1") : ''}
/>
......
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