From c858ace5413a1ae08cbcbd4b88641650d226ddab Mon Sep 17 00:00:00 2001 From: zc Date: Fri, 6 Mar 2026 18:04:40 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/system/barcodePrint/index.vue | 377 ++++++++++++++++++++++++ src/views/workOrder/index.vue | 16 + 2 files changed, 393 insertions(+) create mode 100644 src/views/system/barcodePrint/index.vue diff --git a/src/views/system/barcodePrint/index.vue b/src/views/system/barcodePrint/index.vue new file mode 100644 index 0000000..3e943ad --- /dev/null +++ b/src/views/system/barcodePrint/index.vue @@ -0,0 +1,377 @@ + + + + + \ No newline at end of file diff --git a/src/views/workOrder/index.vue b/src/views/workOrder/index.vue index 5903c5c..145fe30 100644 --- a/src/views/workOrder/index.vue +++ b/src/views/workOrder/index.vue @@ -67,6 +67,7 @@ @@ -113,6 +114,7 @@ import has from '@/utils/has' import type GiTable from "@/components/GiTable/index.vue"; import {ref, reactive} from "vue"; import {Message} from "@arco-design/web-vue"; +import { useRouter } from 'vue-router'; import { deleteWorkOrder, exportWorkOrder, getWorkOrder, @@ -123,6 +125,7 @@ import { defineOptions({ name: 'Record' }) +const router = useRouter() const queryForm = reactive({ @@ -249,6 +252,19 @@ const onExport = () => { useDownload(() => exportWorkOrder(queryForm)) } +// 打印 +const onPrint = (record: WorkOrderResp) => { + // 跳转到标签打印页面,并传递数据 + router.push({ + path: '/print', + query: { + materialName: record.materialName, + encoding: record.encoding, + orderNo: record.orderNo + } + }) +} +