| | |
| | | const printType=route.query.printType |
| | | |
| | | onMounted(() => { |
| | | if (localStorage.getItem('hasRefreshed')=="false") { |
| | | localStorage.setItem('hasRefreshed', 'true'); |
| | | location.reload(); |
| | | }else{ |
| | | localStorage.setItem('hasRefreshed', 'false'); |
| | | } |
| | | //流程卡编辑打印标签2 常州 |
| | | 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) |
| | |
| | | } |
| | | }) |
| | | |
| | | }else if(printType==2){ |
| | | } |
| | | //明细分架打印标签2 常州 |
| | | else if(printType==2){ |
| | | request.post(`/processCard/getSelectPrintCustomLabelDetails/${type}/1`, data.value).then((res) => { |
| | | if (res.code == 200) { |
| | | produceList.value = deepClone(res.data.title) |
| | |
| | | height: 20px; |
| | | } |
| | | .row1 span { |
| | | font-size: 10pt; |
| | | font-size: 12pt; |
| | | } |
| | | |
| | | .row2 { |
| | |
| | | height: 20px; |
| | | } |
| | | .row2 span { |
| | | font-size: 10pt; |
| | | font-size: 12pt; |
| | | } |
| | | span { |
| | | font-size: 10pt; |
| | |
| | | .row3 { |
| | | margin-top: -5px; |
| | | height: 28px; |
| | | font-size: 15pt; |
| | | font-size: 17pt; |
| | | font-weight: bolder; |
| | | } |
| | | |
| | |
| | | } |
| | | |
| | | .row5 span { |
| | | font-size: 8pt; |
| | | font-size: 10pt; |
| | | } |
| | | |
| | | |
| | |
| | | } |
| | | @page { |
| | | size: auto; /* auto is the initial value */ |
| | | margin: 13mm 4mm 0mm 4mm; /* this affects the margin in the printer settings */ |
| | | margin: 13mm 4mm 0mm 4mm !important; /* this affects the margin in the printer settings */ |
| | | |
| | | } |
| | | } |