From 254ab199c31a4f8ecb45a8683337dc98d1364929 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=B0=B9=E8=AF=9A=E8=AF=9A?= Date: Fri, 14 Oct 2022 17:05:22 +0800 Subject: [PATCH] =?UTF-8?q?=E5=AE=A2=E6=88=B7=E7=B1=BB=E5=88=AB=EF=BC=8C?= =?UTF-8?q?=E5=87=BA=E8=A1=8C=E5=8A=A8=E6=9C=BA=EF=BC=8C=E9=94=80=E5=94=AE?= =?UTF-8?q?=E6=8C=87=E6=A0=87=E7=95=8C=E9=9D=A2=E5=BC=80=E5=8F=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/App.js | 224 +++++------ src/charts/GroupSelect.js | 4 +- src/config.js | 4 +- src/stores/AuthStore.js | 2 +- src/stores/Index.js | 2 + src/stores/SaleStore.js | 61 +++ src/views/Credit_card_bill.js | 617 ++++++++++++++++------------- src/views/Orders.js | 722 ++++++++++++++++++++-------------- src/views/Orders_sub.js | 488 ++++++++++++----------- src/views/Sale.js | 92 +++++ 10 files changed, 1281 insertions(+), 935 deletions(-) create mode 100644 src/stores/SaleStore.js create mode 100644 src/views/Sale.js diff --git a/src/App.js b/src/App.js index c990e07..d37c0a5 100644 --- a/src/App.js +++ b/src/App.js @@ -1,122 +1,114 @@ -import './App.css'; -import React, {useContext} from 'react'; -import { - HomeOutlined, - TeamOutlined, - DashboardOutlined, - FileProtectOutlined, - CustomerServiceTwoTone, - DollarOutlined, - AreaChartOutlined, - WechatOutlined, - UserOutlined -} from '@ant-design/icons'; -import {Layout, Menu, Image, Spin} from 'antd'; -import {BrowserRouter, Route, Routes, NavLink} from "react-router-dom" -import Home from "./views/Home" -import Dashboard from "./views/Dashboard" -import Orders from "./views/Orders" -import Orders_sub from "./views/Orders_sub" -import ProtectedRoute from "./views/ProtectedRoute" -import Customer_care_inchina from "./charts/Customer_care_inchina" -import Customer_care_potential from "./charts/Customer_care_potential" -import Customer_care_regular from "./charts/Customer_care_regular" -import Wechat_session from "./charts/Wechat_session" -import WhatsApp_session from "./charts/WhatsApp_session" -import Credit_card_bill from "./views/Credit_card_bill" -import Logo from './logo.png' -import {stores_Context} from "./config"; -import {observer} from "mobx-react"; - +import "./App.css"; +import React, { useContext } from "react"; +import { HomeOutlined, TeamOutlined, DashboardOutlined, FileProtectOutlined, CustomerServiceTwoTone, SnippetsTwoTone, DollarOutlined, AreaChartOutlined, WechatOutlined, UserOutlined } from "@ant-design/icons"; +import { Layout, Menu, Image, Spin } from "antd"; +import { BrowserRouter, Route, Routes, NavLink } from "react-router-dom"; +import Home from "./views/Home"; +import Dashboard from "./views/Dashboard"; +import Orders from "./views/Orders"; +import Orders_sub from "./views/Orders_sub"; +import ProtectedRoute from "./views/ProtectedRoute"; +import Customer_care_inchina from "./charts/Customer_care_inchina"; +import Customer_care_potential from "./charts/Customer_care_potential"; +import Customer_care_regular from "./charts/Customer_care_regular"; +import Wechat_session from "./charts/Wechat_session"; +import WhatsApp_session from "./charts/WhatsApp_session"; +import Credit_card_bill from "./views/Credit_card_bill"; +import Sale from "./views/Sale"; +import Logo from "./logo.png"; +import { stores_Context } from "./config"; +import { observer } from "mobx-react"; const App = () => { + const { Content, Footer, Sider } = Layout; + const { auth_store } = useContext(stores_Context); + const menu_items = [ + { key: 1, label: 主页, icon: }, + { + key: 2, + label: "市场", + icon: , + children: [ + { key: 21, label: 订单数据, icon: }, + { key: 22, label: 仪表盘, icon: }, + ], + }, + { + key: 5, + label: "销售", + icon: , + children: [{ key: 51, label: 业绩数据 }], + }, + { + key: 3, + label: "客运", + icon: , + children: [ + { key: 31, label: 潜力客户 }, + { key: 32, label: 老客户 }, + { key: 33, label: 在华客户 }, + { key: 34, label: 微信会话存档 }, + { key: 35, label: WhatsApp会话存档 }, + ], + }, + { + key: 4, + label: "财务", + icon: , + children: [{ key: 41, label: 信用卡账单 }], + }, + ]; - const {Content, Footer, Sider} = Layout; - const {auth_store} = useContext(stores_Context); - - const menu_items = [ - {key: 1, label: 主页, icon: }, - { - key: 2, label: '市场', icon: , - children: [ - {key: 21, label: 订单数据, icon: ,}, - {key: 22, label: 仪表盘, icon: }, - ] - }, - { - key: 3, label: '客运', icon: , - children: [ - {key: 31, label: 潜力客户}, - {key: 32, label: 老客户}, - {key: 33, label: 在华客户}, - {key: 34, label: 微信会话存档}, - {key: 35, label: WhatsApp会话存档}, - ] - }, - { - key: 4, - label: '财务', - icon: , - children: [ - {key: 41, label: 信用卡账单}, - ] - }, - - - ]; - - return ( - - - - - - - - - - }/> - }> - }/> - }/> - }/> - - }> - }/> - }/> - }/> - }/> - }/> - - }> - }/> - - - -
- {auth_store.user.name} ({auth_store.user.userid})
- Hainatravel Dashboard ©2022 Created by IT -
-
- - - ); - -} + return ( + + + + + + + + + + } /> + }> + } /> + } /> + } /> + + }> + } /> + } /> + } /> + } /> + } /> + + }> + } /> + + }> + } /> + + + +
+ {auth_store.user.name} ({auth_store.user.userid})
+ Hainatravel Dashboard ©2022 Created by IT +
+
+ + + ); +}; export default observer(App); diff --git a/src/charts/GroupSelect.js b/src/charts/GroupSelect.js index de5ed42..83102fb 100644 --- a/src/charts/GroupSelect.js +++ b/src/charts/GroupSelect.js @@ -14,13 +14,15 @@ class GroupSelect extends Component {