From 0cd869e056ac0e3107c4ff81338b8a6e59f8df9b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=B0=B9=E8=AF=9A=E8=AF=9A?= Date: Fri, 23 Sep 2022 17:02:36 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=A1=E7=94=A8=E5=8D=A1=E8=B4=A6=E5=8D=95?= =?UTF-8?q?=E6=95=B0=E6=8D=AE=E5=88=86=E6=9E=90=20=E5=BE=AE=E4=BF=A1?= =?UTF-8?q?=E5=92=8CWhatsApp=E8=81=8A=E5=A4=A9=E8=AE=B0=E5=BD=95=E6=98=BE?= =?UTF-8?q?=E7=A4=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- build.bat | 1 + src/App.js | 13 ++++- src/charts/BillTypeSelect.js | 33 ++++++++++++ src/charts/Business_unit.js | 28 ++++++++++ src/charts/GroupSelect.js | 5 +- src/charts/Wechat_session.js | 66 ++++++++++++++++++++++++ src/charts/WhatsApp_session.js | 40 +++++++++++++++ src/config.js | 4 +- src/stores/AuthStore.js | 6 +-- src/stores/ChatSessionStore.js | 52 +++++++++++++++++++ src/stores/CustomerStore.js | 6 +-- src/stores/DashboardStore.js | 2 +- src/stores/FinancialStore.js | 84 ++++++++++++++++++++++++++++++ src/stores/Index.js | 4 ++ src/views/Credit_card_bill.js | 93 ++++++++++++++++++++++++++++++++++ src/views/Orders.js | 2 +- 16 files changed, 425 insertions(+), 14 deletions(-) create mode 100644 build.bat create mode 100644 src/charts/BillTypeSelect.js create mode 100644 src/charts/Business_unit.js create mode 100644 src/charts/Wechat_session.js create mode 100644 src/charts/WhatsApp_session.js create mode 100644 src/stores/ChatSessionStore.js create mode 100644 src/stores/FinancialStore.js create mode 100644 src/views/Credit_card_bill.js diff --git a/build.bat b/build.bat new file mode 100644 index 0000000..10da9ff --- /dev/null +++ b/build.bat @@ -0,0 +1 @@ +npm run build \ No newline at end of file diff --git a/src/App.js b/src/App.js index 84591f4..9506f19 100644 --- a/src/App.js +++ b/src/App.js @@ -18,6 +18,9 @@ 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"; @@ -39,6 +42,8 @@ const App = () => { {key: 31, label: 潜力客户}, {key: 32, label: 老客户}, {key: 33, label: 在华客户}, + {key: 34, label: 微信会话存档}, + {key: 35, label: WhatsApp会话存档}, ] }, { @@ -46,8 +51,7 @@ const App = () => { label: '财务', icon: , children: [ - {key: 412, label: 损益表}, - {key: 41, label: 信用卡账单}, + {key: 41, label: 信用卡账单}, ] }, @@ -84,6 +88,11 @@ const App = () => { }/> }/> }/> + }/> + }/> + + }> + }/> diff --git a/src/charts/BillTypeSelect.js b/src/charts/BillTypeSelect.js new file mode 100644 index 0000000..1f249e9 --- /dev/null +++ b/src/charts/BillTypeSelect.js @@ -0,0 +1,33 @@ +import React, {Component} from 'react'; +import {Select} from 'antd'; +import {observer} from 'mobx-react'; + + +const BillTypeSelect = (props) => { + const {store} = props; + return ( +
+ +
+ ); + +} + +export default observer(BillTypeSelect); + diff --git a/src/charts/Business_unit.js b/src/charts/Business_unit.js new file mode 100644 index 0000000..e7b9a98 --- /dev/null +++ b/src/charts/Business_unit.js @@ -0,0 +1,28 @@ +import React, {Component} from 'react'; +import {Select} from 'antd'; +import {observer} from "mobx-react"; + + +const Business_unit = (props) => { + const {store} = props; + return ( +
+ +
+ ); +} + +export default observer(Business_unit); diff --git a/src/charts/GroupSelect.js b/src/charts/GroupSelect.js index 912aed8..de5ed42 100644 --- a/src/charts/GroupSelect.js +++ b/src/charts/GroupSelect.js @@ -9,7 +9,7 @@ class GroupSelect extends Component { } render() { - const store=this.props.store; + const store = this.props.store; return (