| | |
| | | const printType=route.query.printType |
| | | |
| | | onMounted(() => { |
| | | if (localStorage.getItem('hasRefreshed')=="false") { |
| | | localStorage.setItem('hasRefreshed', 'true'); |
| | | location.reload(); |
| | | }else{ |
| | | localStorage.setItem('hasRefreshed', 'false'); |
| | | } |
| | | if (printType == 1) { |
| | | request.post(`/processCard/getSelectPrintCustomLabel/${type}/1`, data.value).then((res) => { |
| | | request.post(`/processCard/getSelectPrintCustomLabel2/${type}/1`, data.value).then((res) => { |
| | | if (res.code == 200) { |
| | | produceList.value = deepClone(res.data.title) |
| | | list.value = deepClone(res.data.data) |
| | |
| | | <span>{{ item.processingNote }}</span> |
| | | </div> |
| | | </div> |
| | | <div style="width: 20px" v-if="id%2===0"></div> |
| | | <div style="width: 19px" v-if="id%2===0"></div> |
| | | <div class="element-to-break-after" style="width: 1px" v-if="id%2===1"></div> |
| | | </template> |
| | | </div> |
| | | |
| | |
| | | height: 35px; |
| | | } |
| | | .row1 span { |
| | | font-size: 15pt; |
| | | font-size: 17pt; |
| | | } |
| | | |
| | | .row2 { |
| | |
| | | height: 35px; |
| | | } |
| | | .row2 span { |
| | | font-size: 14pt; |
| | | font-size: 16pt; |
| | | } |
| | | span { |
| | | font-size: 12pt; |
| | |
| | | .row3 { |
| | | margin-top: -5px; |
| | | height: 35px; |
| | | font-size: 22pt; |
| | | font-size: 24pt; |
| | | font-weight: bolder; |
| | | line-height: 35px; |
| | | } |
| | |
| | | margin-left: 20px; |
| | | } |
| | | .row5 span { |
| | | font-size: 14pt; |
| | | font-size: 16pt; |
| | | } |
| | | |
| | | .row6 { |
| | |
| | | font-size: 8pt; |
| | | } |
| | | |
| | | |
| | | .element-to-break-after { |
| | | page-break-after: always; |
| | | } |
| | | |
| | | |
| | | |
| | |
| | | } |
| | | @page { |
| | | size: auto; /* auto is the initial value */ |
| | | margin: 2mm 2mm 2mm 2mm; /* this affects the margin in the printer settings */ |
| | | margin: 2mm 2mm 2mm 2mm !important; /* this affects the margin in the printer settings */ |
| | | |
| | | } |
| | | } |