1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
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¶m=' + 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>
|
|