diff --git a/src/main.jsx b/src/main.jsx index f930416..e41d24e 100644 --- a/src/main.jsx +++ b/src/main.jsx @@ -21,6 +21,8 @@ import ReservationNameCard from "@/views/reservation/NameCard"; import FeedbackIndex from "@/views/feedback/Index"; import FeedbackDetail from "@/views/feedback/Detail"; import NoticeIndex from "@/views/notice/Index"; +import InvoiceIndex from "@/views/invoice/Index"; +import InvoiceDetail from "@/views/invoice/Detail"; configure({ @@ -46,6 +48,8 @@ const router = createBrowserRouter([ { path: "feedback", element: }, { path: "feedback/:GRI_SN", element: }, { path: "notice", element: }, + { path: "invoice",element:}, + { path: "invoice/detial/:GMDSN/:GSN",element:}, ] }, { diff --git a/src/stores/Root.js b/src/stores/Root.js index 2e6379d..4398819 100644 --- a/src/stores/Root.js +++ b/src/stores/Root.js @@ -2,12 +2,14 @@ import { makeAutoObservable } from "mobx"; import Reservation from "./Reservation"; import Feedback from "./Feedback"; import Auth from "./Auth"; +import Invoice from "./Invoice"; class Root { constructor() { this.reservationStore = new Reservation(this); this.feedbackStore = new Feedback(this); this.authStore = new Auth(this); + //this.invoice = new Invoice(this); makeAutoObservable(this); } } diff --git a/src/views/App.jsx b/src/views/App.jsx index 2236ced..ff1765d 100644 --- a/src/views/App.jsx +++ b/src/views/App.jsx @@ -76,7 +76,7 @@ function App() { items={[ { key: "/reservation/newest", label: Reservation }, { key: "/feedback", label: Feedback }, - { key: "/invoice/list", label: Invoice }, + { key: "/invoice", label: Invoice }, { key: "/notice", label: Notice }, ]} /> diff --git a/src/views/feedback/Index.jsx b/src/views/feedback/Index.jsx index 030e4eb..e1c06e3 100644 --- a/src/views/feedback/Index.jsx +++ b/src/views/feedback/Index.jsx @@ -37,6 +37,8 @@ const feedbackListColumns = [ ]; function Index() { + + const { feedbackStore, authStore } = useStore(); const { feedbackList } = feedbackStore; const [selectedDateRange, onDateRangeChange] = useState([config.DATE_PRESETS[0].value]);