Commit 672857a1 authored by alwayOnlie's avatar alwayOnlie

修改bug

parent 3dc815b5
......@@ -238,7 +238,7 @@ const FormList = (props: any) => {
render: (text: any, record: any, index: number) =>
<Form.Item
name={`price${index}`}
initialValue={text}
initialValue={Number(text).toFixed(2)}
rules={[{ required: true, message: '请输入' }]}
>
<Input
......@@ -247,7 +247,7 @@ const FormList = (props: any) => {
}}
onChange={(e) => setInput(e, 'price', index)}
addonBefore="¥"
defaultValue={text}
defaultValue={Number(text).toFixed(2)}
disabled={Object.keys(Row).length != 0 ? true : false}
/>
</Form.Item>
......@@ -320,8 +320,8 @@ const FormList = (props: any) => {
isHasTax: item.isHasTax,
taxRate: item.taxRate,
purchaseCount: item.purchaseCount,
price: Number(item.price),
bidCount: item.bidCount,
price: Number(item.price).toFixed(2),
bidCount: Number(item.bidCount).toFixed(2),
bidAmount: item.bidCount && item.price ? (Number(item.bidCount) * Number(item.price)).toFixed(2) : '',
associatedMaterielName: Object.keys(Row).length === 0 ? '' : item.associatedMaterielName,
associatedGoods: Object.keys(Row).length === 0 ? '' : item.associatedGoods,
......
......@@ -273,10 +273,10 @@ const Details = (props: any) => {
</div>
<div className={style.text}>
<p>商品ID:{record.associatedDataId}</p>
<p className={style.nowrap}>商品名称:{record.associatedMaterielName}</p>
<p className={style.nowrap}>商品名称:{record.associatedGoods}</p>
</div>
<div className={style.text}>
<p>规格型号:{record.associatedGoods}</p>
<p>规格型号:{record.associatedType}</p>
<p>品类:{record.associatedCategory}</p>
</div>
<div className={style.text}>
......
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