|
|
@@ -1,6 +1,7 @@
|
|
|
import BasicTable from '@/components/Table'
|
|
|
import consts from '@/consts'
|
|
|
import { querySoftInvoiceAggregateList } from '@/services/statistic'
|
|
|
+import { disabledDate } from '@/utils/utils'
|
|
|
import { Column } from '@ant-design/charts'
|
|
|
import { Table, DatePicker } from 'antd'
|
|
|
import dayjs from 'dayjs'
|
|
|
@@ -80,6 +81,7 @@ const InvoiceAggregate = () => {
|
|
|
color: ['#A7D2F9', '#C4E9C1', '#E9C8C1'],
|
|
|
colorField: 'type'
|
|
|
}
|
|
|
+
|
|
|
return (
|
|
|
<div className="flex flex-col">
|
|
|
<div className="flex flex-row justify-between mb-4">
|
|
|
@@ -101,7 +103,8 @@ const InvoiceAggregate = () => {
|
|
|
<DatePicker.RangePicker
|
|
|
picker="month"
|
|
|
key="DatePicker"
|
|
|
- disabled={[false, true]}
|
|
|
+ disabledDate={current => disabledDate(current, 'month')}
|
|
|
+ // disabled={[false, true]}
|
|
|
value={state.startMonth}
|
|
|
onChange={val => setState({ ...state, params: { ...state.params, startMonth: val } })}
|
|
|
/>
|
|
|
@@ -127,13 +130,13 @@ const InvoiceAggregate = () => {
|
|
|
<>
|
|
|
<Table.Summary.Row>
|
|
|
<Table.Summary.Cell className="text-center">{state.sum?.name}</Table.Summary.Cell>
|
|
|
- <Table.Summary.Cell className="text-center">
|
|
|
+ <Table.Summary.Cell className="text-right">
|
|
|
{state.sum?.creditPrice}
|
|
|
</Table.Summary.Cell>
|
|
|
- <Table.Summary.Cell className="text-center">
|
|
|
+ <Table.Summary.Cell className="text-right">
|
|
|
{state.sum?.receivablesPrice}
|
|
|
</Table.Summary.Cell>
|
|
|
- <Table.Summary.Cell className="text-center">
|
|
|
+ <Table.Summary.Cell className="text-right">
|
|
|
{state.sum?.invoicePrice}
|
|
|
</Table.Summary.Cell>
|
|
|
</Table.Summary.Row>
|