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 + } + }) +} +