diff --git a/package-lock.json b/package-lock.json index d1bbe44..0770e5e 100644 --- a/package-lock.json +++ b/package-lock.json @@ -14,6 +14,7 @@ "pinia": "^2.1.7", "tdesign-vue-next": "^1.9.3", "vite-plugin-mock": "^3.0.1", + "vite-plugin-mock": "^3.0.1", "vue": "^3.4.21", "vue-router": "^4.3.0" }, @@ -1090,6 +1091,7 @@ "version": "1.0.5", "resolved": "https://registry.npmmirror.com/@types/estree/-/estree-1.0.5.tgz", "integrity": "sha512-/kYRxGDLWzHOB7q+wtSUQlFrtcdUccpfy+X+9iMBpHK8QLLhx2wIPYuS5DYtR9Wa/YlZAbIovy7qVdB1Aq6Lyw==" + "integrity": "sha512-/kYRxGDLWzHOB7q+wtSUQlFrtcdUccpfy+X+9iMBpHK8QLLhx2wIPYuS5DYtR9Wa/YlZAbIovy7qVdB1Aq6Lyw==" }, "node_modules/@types/lodash": { "version": "4.14.182", @@ -1101,6 +1103,11 @@ "resolved": "https://registry.npmjs.org/@types/mockjs/-/mockjs-1.0.10.tgz", "integrity": "sha512-SXgrhajHG7boLv6oU93CcmdDm0HYRiceuz6b+7z+/2lCJPTWDv0V5YiwFHT2ejE4bQqgSXQiVPQYPWv7LGsK1g==" }, + "node_modules/@types/mockjs": { + "version": "1.0.10", + "resolved": "https://registry.npmmirror.com/@types/mockjs/-/mockjs-1.0.10.tgz", + "integrity": "sha512-SXgrhajHG7boLv6oU93CcmdDm0HYRiceuz6b+7z+/2lCJPTWDv0V5YiwFHT2ejE4bQqgSXQiVPQYPWv7LGsK1g==" + }, "node_modules/@types/sortablejs": { "version": "1.15.8", "resolved": "https://registry.npmmirror.com/@types/sortablejs/-/sortablejs-1.15.8.tgz", @@ -1339,6 +1346,18 @@ "node": ">= 8" } }, + "node_modules/anymatch": { + "version": "3.1.3", + "resolved": "https://registry.npmmirror.com/anymatch/-/anymatch-3.1.3.tgz", + "integrity": "sha512-KMReFUr0B4t+D+OBkjR3KYqvocp2XaSzO55UcB6mgQMd3KbcE+mWTyvVV7D/zsdEbNnV6acZUutkiHQXvTr1Rw==", + "dependencies": { + "normalize-path": "^3.0.0", + "picomatch": "^2.0.4" + }, + "engines": { + "node": ">= 8" + } + }, "node_modules/asynckit": { "version": "0.4.0", "resolved": "https://registry.npmmirror.com/asynckit/-/asynckit-0.4.0.tgz", @@ -2083,6 +2102,7 @@ "version": "2.1.2", "resolved": "https://registry.npmmirror.com/ms/-/ms-2.1.2.tgz", "integrity": "sha512-sGkPx+VjMtmA6MX27oA4FBFELFCZZ4S4XqeGOXCv68tT+jb3vk/RyaKWP0PTKyWtmLSM0b+adUTEvbs1PEaH2w==" + "integrity": "sha512-sGkPx+VjMtmA6MX27oA4FBFELFCZZ4S4XqeGOXCv68tT+jb3vk/RyaKWP0PTKyWtmLSM0b+adUTEvbs1PEaH2w==" }, "node_modules/nanoid": { "version": "3.3.7", diff --git a/src/layout/components/LayoutAside.vue b/src/layout/components/LayoutAside.vue new file mode 100644 index 0000000..49bff24 --- /dev/null +++ b/src/layout/components/LayoutAside.vue @@ -0,0 +1,27 @@ + + + + + diff --git a/src/layout/components/LayoutContent.vue b/src/layout/components/LayoutContent.vue new file mode 100644 index 0000000..0259a35 --- /dev/null +++ b/src/layout/components/LayoutContent.vue @@ -0,0 +1,14 @@ + + + + + diff --git a/src/layout/components/LayoutHeader.vue b/src/layout/components/LayoutHeader.vue new file mode 100644 index 0000000..293e183 --- /dev/null +++ b/src/layout/components/LayoutHeader.vue @@ -0,0 +1,58 @@ + + + + + diff --git a/src/layout/index.vue b/src/layout/index.vue index e69de29..9f61a37 100644 --- a/src/layout/index.vue +++ b/src/layout/index.vue @@ -0,0 +1,22 @@ + + + + diff --git a/src/pages/finance-bill-manage/billStock.vue b/src/pages/finance-bill-manage/billStock.vue new file mode 100644 index 0000000..aa4bcd6 --- /dev/null +++ b/src/pages/finance-bill-manage/billStock.vue @@ -0,0 +1,55 @@ + + + + + diff --git a/src/router/index.js b/src/router/index.js index 571b4ff..9740085 100644 --- a/src/router/index.js +++ b/src/router/index.js @@ -1,20 +1,33 @@ import { createRouter, createWebHistory } from "vue-router"; -import HomeView from "@/pages/index.vue"; +import FinanceBillManage from "./modules/financeBillManage"; import Login from "@/pages/login/index.vue"; +import Layout from "@/layout/index.vue"; const router = createRouter({ history: createWebHistory(import.meta.env.BASE_URL), routes: [ { path: "/", - name: "home", - component: HomeView, + redirect: "/accounts", + meta: { title: "应收款管理", name: "accounts" }, + component: Layout, + children: [ + { + path: "/accounts", + name: "Accounts", + component: () => import("@/pages/index.vue"), + meta: { + title: "应收款管理", + }, + }, + ], }, { path: "/login", name: "login", component: Login, }, + ...FinanceBillManage, ], }); diff --git a/src/router/modules/financeBillManage.js b/src/router/modules/financeBillManage.js new file mode 100644 index 0000000..9e476ce --- /dev/null +++ b/src/router/modules/financeBillManage.js @@ -0,0 +1,23 @@ +import Layout from "@/layout/index.vue"; +import BillManage from "@/pages/finance-bill-manage/billStock.vue"; + +const financeBillManage = [ + { + path: "/Bill", + name: "bill", + component: Layout, + meta: { title: "票据管理", name: "resource" }, + children: [ + { + path: "BillStock", + name: "billStock", + component: BillManage, + meta: { + title: "票据上传", + }, + }, + ], + }, +]; + +export default financeBillManage; diff --git a/src/style/index.css b/src/style/index.css index 621b4cf..cc0f0ff 100644 --- a/src/style/index.css +++ b/src/style/index.css @@ -186,7 +186,7 @@ pre { .back-color { background-color: #f5f7fb; padding: 16px 24px; - height: calc(95vh - 64px); + height: calc(100vh - 128px); overflow-y: auto; overflow-x: hidden; }