From ae8411c5660d26f5174730ccdeeb5d44f81ff986 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=B5=B5=E9=B9=8F?= Date: Mon, 7 Aug 2023 10:48:10 +0800 Subject: [PATCH] =?UTF-8?q?=E5=88=97=E8=A1=A8=E9=A1=B5=E6=90=9C=E7=B4=A2?= =?UTF-8?q?=E6=9D=A1=E4=BB=B6=E6=B7=BB=E5=8A=A0=E8=AE=A2=E5=8D=95=E7=8A=B6?= =?UTF-8?q?=E6=80=81=EF=BC=8C=E6=97=A5=E5=8E=86=E4=B9=9F=E4=BC=98=E5=8C=96?= =?UTF-8?q?=E4=B8=BA=E5=8F=AF=E4=BB=A5=E6=B8=85=E9=99=A4=E6=97=A5=E6=9C=9F?= =?UTF-8?q?=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/stores/Invoice.js | 7 +++--- src/views/invoice/Index.jsx | 46 +++++++++++++++++++++++++++++++++---- 2 files changed, 46 insertions(+), 7 deletions(-) diff --git a/src/stores/Invoice.js b/src/stores/Invoice.js index f756b73..6358b51 100644 --- a/src/stores/Invoice.js +++ b/src/stores/Invoice.js @@ -30,11 +30,11 @@ class Invoice { onDateRangeChange = dates => { console.log(dates); - this.search_date_start = dates[0]; - this.search_date_end = dates[1]; + this.search_date_start = dates==null? null: dates[0]; + this.search_date_end = dates==null? null: dates[1]; }; - fetchInvoiceList(VEI_SN, GroupNo, DateStart, DateEnd) { + fetchInvoiceList(VEI_SN, GroupNo, DateStart, DateEnd,OrderType) { this.loading = true; const fetchUrl = prepareUrl(HT_HOST + "/service-cusservice/PTSearchGMBPageList") .append("VEI_SN", VEI_SN) @@ -50,6 +50,7 @@ class Invoice { .append("TotalNum", 0) .append("PageSize", 2000) .append("PageIndex", 1) + .append("PayState",OrderType) .append("token",this.root.authStore.login.token) .build(); diff --git a/src/views/invoice/Index.jsx b/src/views/invoice/Index.jsx index 6e1ee9e..498fca0 100644 --- a/src/views/invoice/Index.jsx +++ b/src/views/invoice/Index.jsx @@ -2,7 +2,7 @@ import { NavLink, useNavigate } from "react-router-dom"; import { useEffect, useState } from "react"; import { observer } from "mobx-react"; import { toJS } from "mobx"; -import { Row, Col, Space, Button, Table, Input, DatePicker, Typography, App, Steps } from "antd"; +import { Row, Col, Space, Button, Table, Input, DatePicker, Typography, App, Steps ,Select } from "antd"; import { useStore } from "@/stores/StoreContext.js"; import * as config from "@/config"; import { formatDate, isNotEmpty } from "@/utils/commons"; @@ -14,6 +14,7 @@ function Index() { const { authStore, invoiceStore } = useStore(); const { invoiceList, search_date_start, search_date_end } = invoiceStore; const [groupNo, onGroupNoChange] = useState(""); + const [OrderType, onOrderTypeChange] = useState(0); //订单状态搜索 const navigate = useNavigate(); const { notification } = App.useApp(); const showTotal = total => `Total ${invoiceList.length} items`; @@ -76,7 +77,7 @@ function Index() { - + { @@ -84,17 +85,53 @@ function Index() { }} /> + + +