From 9d4a3dada7b9180dd96b7baf491201ce04e071fb Mon Sep 17 00:00:00 2001 From: guoxing <1369478551@qq.com> Date: Wed, 6 Dec 2023 18:09:02 +0800 Subject: [PATCH] 2023-12-6 --- .env.development | 2 +- package.json | 1 + src/layout/components/Sidebar/index.vue | 12 +- src/router/index.js | 15 + src/views/print/index.vue | 370 ++++++++++++++++++++++++ 5 files changed, 398 insertions(+), 2 deletions(-) create mode 100644 src/views/print/index.vue diff --git a/.env.development b/.env.development index 774edf3..d08b900 100644 --- a/.env.development +++ b/.env.development @@ -8,5 +8,5 @@ VUE_APP_BASE_API = '/api' # VUE_APP_URL = "http://jianguan.yyundong.com/shgfapi" -VUE_APP_URL = "http://192.168.2.113:7201" +VUE_APP_URL = "http://192.168.2.106:7201" ##VUE_APP_URL = "http://8.130.39.13:8112" diff --git a/package.json b/package.json index 2ed9be7..253f062 100644 --- a/package.json +++ b/package.json @@ -26,6 +26,7 @@ "nprogress": "0.2.0", "path-to-regexp": "2.4.0", "portfinder": "^1.0.21", + "print-template": "^1.2.8", "qs": "^6.9.4", "quill": "^1.3.7", "sass-resources-loader": "^2.1.1", diff --git a/src/layout/components/Sidebar/index.vue b/src/layout/components/Sidebar/index.vue index 195a56a..bcbba27 100644 --- a/src/layout/components/Sidebar/index.vue +++ b/src/layout/components/Sidebar/index.vue @@ -141,6 +141,16 @@ name: "/order/index", path: "/order/index" }, + { + alwaysShow: true, + component: "print", + meta: { + icon: "el-icon-menu", + title: "打印电子卡", + }, + name: "/print/index", + path: "/print/index" + } // { // alwaysShow: true, // component: "network", @@ -161,7 +171,7 @@ // name: "/statisticalReport/index", // path: "/statisticalReport/index", // children: [ - + // { // alwaysShow: true, // component: "index", diff --git a/src/router/index.js b/src/router/index.js index 34658fc..fe8ca42 100644 --- a/src/router/index.js +++ b/src/router/index.js @@ -191,6 +191,21 @@ export const constantRoutes = [ } }] }, + { + path: '/print', + component: Layout, + redirect: '/print/index', + children: [{ + path: '/print/index', + component: () => + import('@/views/print/index.vue'), + name: 'index', + meta: { + title: '打印电子卡' + } + },] + }, + // { // path: '/network', // component: Layout, diff --git a/src/views/print/index.vue b/src/views/print/index.vue new file mode 100644 index 0000000..311d228 --- /dev/null +++ b/src/views/print/index.vue @@ -0,0 +1,370 @@ + + + + + + + 简单实例 + + + + + + + + + + + + + + + + 生成打印文件 + + + + + + + + + + + + \ No newline at end of file