From ced125c8e929fcf2e27dfd738985dc77bf43a4fb Mon Sep 17 00:00:00 2001 From: liuhanqing Date: Thu, 11 Dec 2025 16:02:29 +0800 Subject: [PATCH] =?UTF-8?q?=E6=89=98=E7=9B=98=E7=A0=81=E6=A0=B7=E5=BC=8F?= =?UTF-8?q?=E8=B0=83=E6=95=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ruoyi-ui/package.json | 1 + ruoyi-ui/src/views/bas/traycode/index.vue | 18 ++++++++++++------ 2 files changed, 13 insertions(+), 6 deletions(-) diff --git a/ruoyi-ui/package.json b/ruoyi-ui/package.json index c98ae7c..dee870a 100644 --- a/ruoyi-ui/package.json +++ b/ruoyi-ui/package.json @@ -44,6 +44,7 @@ "sortablejs": "1.10.2", "splitpanes": "2.4.1", "vue": "2.6.12", + "vue-barcode": "^1.3.0", "vue-count-to": "1.0.13", "vue-cropper": "0.5.5", "vue-easy-print": "^0.0.8", diff --git a/ruoyi-ui/src/views/bas/traycode/index.vue b/ruoyi-ui/src/views/bas/traycode/index.vue index b5bde5d..88dd842 100644 --- a/ruoyi-ui/src/views/bas/traycode/index.vue +++ b/ruoyi-ui/src/views/bas/traycode/index.vue @@ -189,10 +189,16 @@
- -
+ +
@@ -202,7 +208,7 @@ import { listTraycode, getTraycode, delTraycode, addTraycode, updateTraycode } from "@/api/bas/traycode" import { listTraycodeFormat } from "@/api/bas/traycodeFormat" import vueEasyPrint from 'vue-easy-print' -import VueQr from 'vue-qr' +import VueBarcode from 'vue-barcode' export default { @@ -210,7 +216,7 @@ export default { dicts:['sys_yes_no'], components: { vueEasyPrint, - VueQr + VueBarcode }, data() { return { @@ -455,7 +461,7 @@ export default { @media print { @page { - size: A4; + size: 80mm 50mm; margin: 0; }