|
@@ -1,5 +1,5 @@
|
1
|
1
|
import React, { useEffect, useState } from 'react'
|
2
|
|
-import { PageHeader, Descriptions, List, Steps, Row, Col, Rate, Button, Statistic, Modal, Typography, Popconfirm, notification } from 'antd'
|
|
2
|
+import { PageHeader, Descriptions, List, Steps, Row, Col, Rate, Button, Statistic, Modal, Typography, Popconfirm, Tag, notification } from 'antd'
|
3
|
3
|
import { fetch, fetchList, apis } from '@/utils/request'
|
4
|
4
|
import router from 'umi/router'
|
5
|
5
|
import Prompt from '@/components/Prompt'
|
|
@@ -131,12 +131,19 @@ export default props => {
|
131
|
131
|
{
|
132
|
132
|
!ticketData.billInvoiceId ?
|
133
|
133
|
<Button onClick={() => setShowPrompt(true)}>设置费用</Button> :
|
134
|
|
- <Statistic
|
135
|
|
- title={<Typography.Text ellipsis>{ticketData.priceExplain || '费用'}</Typography.Text>}
|
136
|
|
- prefix="¥"
|
137
|
|
- value={ticketData.price ? (ticketData.price / 100) : 0}
|
138
|
|
- precision={2}
|
139
|
|
- />
|
|
134
|
+ <>
|
|
135
|
+ <Statistic
|
|
136
|
+ title={(
|
|
137
|
+ <Row type="flex" gutter={16}>
|
|
138
|
+ <Col>费用</Col>
|
|
139
|
+ <Col>{ticketData.isPay ? <Tag color="success">已缴</Tag> : <Tag color="red">未缴</Tag>}</Col>
|
|
140
|
+ </Row>
|
|
141
|
+ )}
|
|
142
|
+ prefix="¥"
|
|
143
|
+ value={ticketData.price ? (ticketData.price / 100) : 0}
|
|
144
|
+ precision={2}
|
|
145
|
+ />
|
|
146
|
+ </>
|
140
|
147
|
}
|
141
|
148
|
</div>
|
142
|
149
|
</div>
|