From 29f429de987a7196f45cff6468366cfb17b22707 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=8C=83=E7=8E=89=E7=90=B3?= <1584592841@qq.com> Date: Mon, 11 Jul 2022 21:41:44 +0800 Subject: [PATCH 1/2] 0711 --- src/components/Accountant/Query.jsx | 4 +- src/components/Accountant/WareIn.jsx | 46 +++++- src/components/System/Customer/Custom.jsx | 8 +- src/components/System/Employee/Employee.jsx | 9 +- src/components/WareClerk/Tasks.jsx | 10 +- src/components/WareManager/Stock.jsx | 65 ++++----- src/components/WareManager/WareQuery.jsx | 147 +++++++++++++++++--- src/mock/index.js | 4 +- src/utils/data.js | 4 +- 9 files changed, 221 insertions(+), 76 deletions(-) diff --git a/src/components/Accountant/Query.jsx b/src/components/Accountant/Query.jsx index 8010ea8..0b90bc8 100644 --- a/src/components/Accountant/Query.jsx +++ b/src/components/Accountant/Query.jsx @@ -15,8 +15,8 @@ import Selector from "../Selector"; import OrderDetail from "./OrderDetail"; const Query = () => { - const [cate, setCate] = useState("全部"); - const [status, setStatus] = useState("全部"); + const [cate, setCate] = useState(5); + const [status, setStatus] = useState(3); const [curData, setCurData] = useState(""); const [mockOrderData, setMockOrderData] = useState([]); const [isModalVisible, setIsModalVisible] = useState(false); diff --git a/src/components/Accountant/WareIn.jsx b/src/components/Accountant/WareIn.jsx index 65bc41b..bc12c30 100644 --- a/src/components/Accountant/WareIn.jsx +++ b/src/components/Accountant/WareIn.jsx @@ -1,16 +1,27 @@ -import React, { useState } from "react"; +import React, { useState, useEffect } from "react"; import { useLocation } from "react-router-dom"; + import InputArea from "../InputArea"; +import Selector from "../Selector"; +import { taskCategories } from "../../utils/data"; const WareIn = () => { const location = useLocation(); + const [cate, setCate] = useState(null); const [amount, setAmount] = useState(null); + // todo 存在多个amount + const wareInHandler = (e) => { e.preventDefault(); }; + useEffect(() => { + //orderid:location.state.record.id + //getOrder,获取orderdetailsList,【map】渲染 + }, []); + return (
{/* Owner */} @@ -37,11 +48,11 @@ const WareIn = () => {
货物信息
+
+ 货物名称: + +
-
- 货物名称: - -
+
+ + setCate(e.target.value)} + categories={taskCategories} + /> +
+
+ + setCate(e.target.value)} + categories={taskCategories} + /> +
-