Commit 1600cb34 authored by alwayOnlie's avatar alwayOnlie

修改bug

parent 213dc193
......@@ -178,7 +178,7 @@ const Details = (props: any) => {
return (
<div>
<EyePreview
url={`/memberCenter/tranactionAbility/purchaseOrder/readyAddOrder/preview?id=${record.orderId}`}
url={`/memberCenter/afterService/returnApplication/returnQuery/detail?id=${record.orderId}`}
>
{text}
</EyePreview>
......
......@@ -24,7 +24,9 @@ const FormList = (props: any) => {
let list = RowCtl.selectRow;
list.map((item: any, index: number) => {
item.rowId = index + 1
item.price = '';
})
console.log(list)
setData(list)
setIsModalVisible(false);
};
......@@ -238,7 +240,7 @@ const FormList = (props: any) => {
render: (text: any, record: any, index: number) =>
<Form.Item
name={`price${index}`}
initialValue={Number(text).toFixed(2)}
initialValue={text != '' ? Number(text).toFixed(2) : ''}
rules={[{ required: true, message: '请输入' }]}
>
<Input
......@@ -247,7 +249,7 @@ const FormList = (props: any) => {
}}
onChange={(e) => setInput(e, 'price', index)}
addonBefore="¥"
defaultValue={Number(text).toFixed(2)}
defaultValue={text != '' ? Number(text).toFixed(2) : ''}
disabled={Object.keys(Row).length != 0 ? true : false}
/>
</Form.Item>
......@@ -274,7 +276,7 @@ const FormList = (props: any) => {
dataIndex: 'bidAmount',
key: 'bidAmount',
align: 'center',
render: (text: any, record: any) => <Text>{Number(record.bidAmount).toFixed(2)}</Text>
render: (text: any, record: any) => <Text>{record.bidAmount ? Number(record.bidAmount).toFixed(2) : '0.00'}</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