From 0ac3163e799801b7fdb36b2fa178651df9f7e577 Mon Sep 17 00:00:00 2001 From: WenC <450292408@qq.com> Date: Tue, 2 Apr 2024 18:45:46 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E5=8F=91=E7=A5=A8=E7=AE=A1?= =?UTF-8?q?=E7=90=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/App.tsx | 3 +- src/components/card/CardProj.tsx | 36 +-- src/components/invoice/InvoiceList.tsx | 194 ++++++++++++++++ src/components/invoice/InvoiceSave.tsx | 207 ++++++++++++++++++ src/components/list/ListProj.tsx | 12 +- src/components/menu/MenuTree.tsx | 18 +- src/components/menu/MenuTreeWithTopButton.tsx | 2 +- .../password/PasswordChange.tsx | 0 src/{route => components}/payment/Payment.tsx | 67 +++--- src/{route => components}/payment/payment.css | 0 src/components/recharge/RechargeHead.tsx | 34 ++- src/{route => components}/user/UserEdit.tsx | 0 src/context/GlobalContext.ts | 27 ++- src/context/IndexListContext.ts | 7 +- src/layout/head/Head.tsx | 62 +++--- src/route/index/Index.tsx | 14 +- src/route/proj/ProjNew.tsx | 7 +- src/route/router.tsx | 3 +- 18 files changed, 592 insertions(+), 101 deletions(-) create mode 100644 src/components/invoice/InvoiceList.tsx create mode 100644 src/components/invoice/InvoiceSave.tsx rename src/{route => components}/password/PasswordChange.tsx (100%) rename src/{route => components}/payment/Payment.tsx (89%) rename src/{route => components}/payment/payment.css (100%) rename src/{route => components}/user/UserEdit.tsx (100%) diff --git a/src/App.tsx b/src/App.tsx index ea818e8..34f5b5e 100644 --- a/src/App.tsx +++ b/src/App.tsx @@ -6,11 +6,12 @@ import { GlobalData, GlobalDataAction, GlobalDataActionType, - GlobalDispatchContext + GlobalDispatchContext, } from "./context/GlobalContext.ts"; import {Reducer, useReducer} from "react"; const App: React.FC = () => { + const globalDataReducer = (state: GlobalData, action: GlobalDataAction) => { if (action.type == GlobalDataActionType.REFRESH_SELF) { if(action.user) { diff --git a/src/components/card/CardProj.tsx b/src/components/card/CardProj.tsx index d1cff45..2b2a6bc 100644 --- a/src/components/card/CardProj.tsx +++ b/src/components/card/CardProj.tsx @@ -3,7 +3,7 @@ import { CheckOutlined, ClockCircleOutlined, CloseCircleOutlined, - CreditCardOutlined, + CreditCardOutlined, DeleteOutlined, DownloadOutlined, DownOutlined, EditOutlined, EyeOutlined, @@ -24,10 +24,10 @@ export default function CardProj(props: { item: IProj }) { const nav = useNavigate(); const data = props.item; const [messageApi, messageContext] = useMessage(); + const [projCategoryId, setProjCategoryId] = useState(data.projCategoryId); const [projCategoryName, setProjCategoryName] = useState(data.projCategoryName); const indexListContext = useContext(IndexListContext); - /** * 生成状态 */ @@ -110,7 +110,6 @@ export default function CardProj(props: { item: IProj }) { return ( <> - {messageContext}
银行账号 * | +
+ |
+
打款时间 * |
@@ -286,9 +300,10 @@ export default function Payment(props: IPaymentProps) {
rules={[{required: true, message: '请选择打款时间'}]}
>
|
@@ -351,7 +366,7 @@ export default function Payment(props: IPaymentProps) {
{
isCountdownTimeout ? (