|
|
|
@ -1,5 +1,5 @@
|
|
|
|
|
import React, { useContext, useEffect } from "react";
|
|
|
|
|
import { Row, Col, Button, Divider, Table, Space, Radio, Select } from "antd";
|
|
|
|
|
import { Row, Col, Button, Divider, Table, Space, Tag, Spin } from "antd";
|
|
|
|
|
import { ContainerOutlined, SearchOutlined } from "@ant-design/icons";
|
|
|
|
|
import { stores_Context } from "../config";
|
|
|
|
|
import { Column, Pie } from "@ant-design/charts";
|
|
|
|
@ -27,17 +27,21 @@ const Sale_sub = () => {
|
|
|
|
|
<NavLink to={`/sale`}>返回</NavLink>
|
|
|
|
|
</Col>
|
|
|
|
|
</Row>
|
|
|
|
|
<Row gutter={{ sm: 16, lg: 32 }}>
|
|
|
|
|
{!comm.empty(type_data.dataSource) &&
|
|
|
|
|
type_data.dataSource.map((item) => {
|
|
|
|
|
return (
|
|
|
|
|
<Col md={24} lg={12}>
|
|
|
|
|
<Divider orientation="left">{item.subType_name}</Divider>
|
|
|
|
|
<Table key={item.subType} dataSource={item.data} columns={type_data.columns} size="small" rowKey={(record) => record.key} loading={sale_store.loading_table} pagination={false} scroll={{ x: "100%" }} />
|
|
|
|
|
</Col>
|
|
|
|
|
);
|
|
|
|
|
})}
|
|
|
|
|
</Row>
|
|
|
|
|
<Spin size="large" spinning={sale_store.spinning}>
|
|
|
|
|
<Row gutter={{ sm: 16, lg: 32 }}>
|
|
|
|
|
{!comm.empty(type_data.dataSource) &&
|
|
|
|
|
type_data.dataSource.map((item) => {
|
|
|
|
|
return (
|
|
|
|
|
<Col md={24} xxl={12}>
|
|
|
|
|
<Divider>
|
|
|
|
|
<Tag color="#87d068">{item.subType_name}</Tag>
|
|
|
|
|
</Divider>
|
|
|
|
|
<Table key={item.subType} dataSource={item.data} columns={type_data.columns} size="small" rowKey={(record) => record.key} loading={sale_store.loading_table} pagination={false} scroll={{ x: "100%" }} />
|
|
|
|
|
</Col>
|
|
|
|
|
);
|
|
|
|
|
})}
|
|
|
|
|
</Row>
|
|
|
|
|
</Spin>
|
|
|
|
|
</div>
|
|
|
|
|
);
|
|
|
|
|
};
|
|
|
|
|