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/matPrint/template/template1.vue | 132 ++++++++++++++++++++++---------------------- 1 files changed, 66 insertions(+), 66 deletions(-) diff --git a/zy-asrs-admin/src/components/print/matPrint/template/template1.vue b/zy-asrs-admin/src/components/print/matPrint/template/template1.vue index 76add04..2b7b5c4 100644 --- a/zy-asrs-admin/src/components/print/matPrint/template/template1.vue +++ b/zy-asrs-admin/src/components/print/matPrint/template/template1.vue @@ -1,67 +1,67 @@ -<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> - <table class="contain" width="300" - style="overflow: hidden;font-size: xx-small;table-layout: fixed;"> - <tr style="height: 74px"> - <td colspan="3" align="center" scope="col">鐗╂枡鍙�</td> - <td class="barcode" colspan="9" align="center" scope="col"> - <img :src="globalState.url + '/api/code/auth?type=1¶m=' + item.matnr" width="90%;" /> - <div style="letter-spacing: 2px;margin-top: 1px; text-align: center;"> - <span>{{ item.matnr }}</span> - </div> - </td> - </tr> - <tr style="height: 74px"> - <td align="center" colspan="3">鍟嗗搧</td> - <td align="center" colspan="5">{{ item.maktx }}</td> - <td align="center" colspan="2">瑙勬牸</td> - <td align="center" colspan="2">{{ item.specs }}</td> - </tr> - </table> - </div> - </div> - </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; -} +<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> + <table class="contain" width="300" + style="overflow: hidden;font-size: xx-small;table-layout: fixed;"> + <tr style="height: 74px"> + <td colspan="3" align="center" scope="col">鐗╂枡鍙�</td> + <td class="barcode" colspan="9" align="center" scope="col"> + <img :src="globalState.url + '/api/code/auth?type=1¶m=' + item.matnr" width="90%;" /> + <div style="letter-spacing: 2px;margin-top: 1px; text-align: center;"> + <span>{{ item.matnr }}</span> + </div> + </td> + </tr> + <tr style="height: 74px"> + <td align="center" colspan="3">鍟嗗搧</td> + <td align="center" colspan="5">{{ item.maktx }}</td> + <td align="center" colspan="2">瑙勬牸</td> + <td align="center" colspan="2">{{ item.specs }}</td> + </tr> + </table> + </div> + </div> + </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; +} </style> \ No newline at end of file -- Gitblit v1.9.1