From c635d78b479510ebe2556a420948effcd30a0731 Mon Sep 17 00:00:00 2001 From: skyouc Date: 星期六, 21 十二月 2024 18:40:43 +0800 Subject: [PATCH] 新建德森项目分支 --- zy-asrs-admin/src/components/print/zpalletBarcodePrint/template/template2.vue | 92 +++++++++++++++++++++++----------------------- 1 files changed, 46 insertions(+), 46 deletions(-) diff --git a/zy-asrs-admin/src/components/print/zpalletBarcodePrint/template/template2.vue b/zy-asrs-admin/src/components/print/zpalletBarcodePrint/template/template2.vue index a7b783e..2795c51 100644 --- a/zy-asrs-admin/src/components/print/zpalletBarcodePrint/template/template2.vue +++ b/zy-asrs-admin/src/components/print/zpalletBarcodePrint/template/template2.vue @@ -1,47 +1,47 @@ -<script setup> -import { toRefs, ref, defineProps } from 'vue'; -import { globalState } from '@/config.js' -import { formatMessage } from '@/utils/localeUtils'; - -const props = defineProps({ - list: { - type: Array, - default: [] - }, - repeatNum: { - type: Number, - default: 1 - } -}); -const { list, repeatNum } = toRefs(props) -</script> - -<template> - <div id="printMe"> - <div v-for="(item, index) in list" :key="index"> - <div v-for="count in repeatNum" style="font-size: 16px;margin-top: 20px;"> - <div style="text-align: center;"> - <img :src="globalState.url + '/api/code/auth?type=2¶m=' + item.barcode" /> - </div> - <div style="text-align: center;"> - {{ item.barcode }} - </div> - </div> - </div> - </div> -</template> - -<style> -@media print { - body { - margin: 0; - padding: 0; - } - - .print-area { - margin: 0; - padding: 0; - height: auto; - } -} +<script setup> +import { toRefs, ref, defineProps } from 'vue'; +import { globalState } from '@/config.js' +import { formatMessage } from '@/utils/localeUtils'; + +const props = defineProps({ + list: { + type: Array, + default: [] + }, + repeatNum: { + type: Number, + default: 1 + } +}); +const { list, repeatNum } = toRefs(props) +</script> + +<template> + <div id="printMe"> + <div v-for="(item, index) in list" :key="index"> + <div v-for="count in repeatNum" style="font-size: 16px;margin-top: 20px;"> + <div style="text-align: center;"> + <img :src="globalState.url + '/api/code/auth?type=2¶m=' + item.barcode" /> + </div> + <div style="text-align: center;"> + {{ item.barcode }} + </div> + </div> + </div> + </div> +</template> + +<style> +@media print { + body { + margin: 0; + padding: 0; + } + + .print-area { + margin: 0; + padding: 0; + height: auto; + } +} </style> \ No newline at end of file -- Gitblit v1.9.1