From a0bfeb4ad6fc2091eef7518df16861235aa0e476 Mon Sep 17 00:00:00 2001
From: skyouc
Date: 星期二, 01 七月 2025 16:49:53 +0800
Subject: [PATCH] 清除托盘码站点

---
 zy-asrs-admin/src/components/print/locsPrint/locTemplate.vue |   61 ++++++++++++++++++++++++++++++
 1 files changed, 61 insertions(+), 0 deletions(-)

diff --git a/zy-asrs-admin/src/components/print/locsPrint/locTemplate.vue b/zy-asrs-admin/src/components/print/locsPrint/locTemplate.vue
new file mode 100644
index 0000000..d61f2b0
--- /dev/null
+++ b/zy-asrs-admin/src/components/print/locsPrint/locTemplate.vue
@@ -0,0 +1,61 @@
+<script setup>
+import { toRefs, ref, defineProps, watch } from 'vue';
+import { globalState } from '@/config.js'
+import { formatMessage } from '@/utils/localeUtils';
+
+const props = defineProps({
+    locNo: {
+        type: String,
+        default: ''
+    },
+    list: {
+        type: Array,
+        default: []
+    },
+    repeatNum: {
+        type: Number,
+        default: 1
+    }
+});
+const { locNo, list, repeatNum } = toRefs(props)
+
+</script>
+
+<template>
+    <div id="printOrder">
+        <div v-for="(item, index) in list">
+            <table class="contain" width="600" style="overflow: hidden;font-size: xx-small;table-layout: fixed;  margin-top: 10px;">
+                <tr style="height: 300px;">
+                    <td class="barcode" colspan="9" align="center" scope="col">
+                        <img :src="globalState.url + '/api/code/auth?type=1&param=' + item.locNo" width="90%;" height="180px"/>
+                        <div style="letter-spacing: 2px;margin-top: 10px; text-align: center;">
+                            <span>{{ item.locNo }} </span>
+                        </div>
+                    </td>
+                </tr>
+            </table>
+        </div>
+    </div>
+</template>
+
+<style>
+@media print {
+    body {
+        margin: 0;
+        padding: 0;
+    }
+
+    .print-area {
+        margin: 0;
+        padding: 0;
+        height: auto;
+    }
+
+
+}
+
+.contain td {
+    border: 1px solid #000;
+    padding: 5px;
+}
+</style>
\ No newline at end of file

--
Gitblit v1.9.1