打印样式修改
This commit is contained in:
@@ -494,18 +494,19 @@ const printLabel = async () => {
|
||||
<head>
|
||||
<title>标签打印</title>
|
||||
<style>
|
||||
body { margin: 0; padding: 10mm; font-family: Arial, sans-serif; }
|
||||
.label-container { display: flex; flex-wrap: wrap; gap: 10mm; justify-content: center; }
|
||||
.label { width: 90mm; height: 38.5mm; border: 1px solid #000; padding: 0; box-sizing: border-box; page-break-inside: avoid; }
|
||||
.label-table { width: 100%; height: 100%; border-collapse: collapse; }
|
||||
.label-cell { border: 1px solid #000; padding: 1mm; vertical-align: top; }
|
||||
.qr-cell { width: 24mm; text-align: center; vertical-align: middle; border: 1px solid #000; }
|
||||
@page { size: 80mm 50mm; margin: 0; }
|
||||
body { margin: 0; padding: 1mm; font-family: Arial, sans-serif; }
|
||||
.label-container { display: flex; flex-wrap: wrap; gap: 1mm; justify-content: center; transform-origin: center; }
|
||||
.label { width: 76mm; height: 46mm; border: 1px solid #000; padding: 0; box-sizing: border-box; page-break-inside: avoid; overflow: hidden; }
|
||||
.label-table { width: 100%; height: 100%; border-collapse: collapse; table-layout: fixed; }
|
||||
.label-cell { border: 1px solid #000; padding: 0.8mm; vertical-align: top; }
|
||||
.qr-cell { width: 22mm; text-align: center; vertical-align: middle; border: 1px solid #000; }
|
||||
.label-row { display: flex; align-items: center; }
|
||||
.label-field { font-size: 8pt; font-weight: bold; margin-right: 2mm; min-width: 25pt; }
|
||||
.label-value { font-size: 8pt; font-weight: bold; flex: 1; }
|
||||
.qr-code img { width: 23mm; height: 23mm; margin: 1mm 0; }
|
||||
.mark-number { font-size: 8pt; font-weight: bold; margin-top: 1mm; text-align: center; }
|
||||
.serial-number { font-size: 8pt; font-weight: bold; margin-top: 1mm; }
|
||||
.label-field { font-size: 7.5pt; font-weight: bold; margin-right: 1mm; min-width: 22pt; white-space: nowrap; }
|
||||
.label-value { font-size: 7.5pt; font-weight: bold; flex: 1; overflow-wrap: break-word; word-break: break-word; }
|
||||
.qr-code img { width: 20mm; height: 20mm; margin: 0.5mm 0; }
|
||||
.mark-number { font-size: 7pt; font-weight: bold; margin-top: 0.5mm; text-align: center; }
|
||||
.serial-number { font-size: 7.5pt; font-weight: bold; margin-top: 0.5mm; }
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
@@ -640,6 +641,7 @@ defineOptions({ name: 'print' })
|
||||
font-size: 12px;
|
||||
font-weight: bold;
|
||||
flex: 1;
|
||||
word-break: break-word;
|
||||
}
|
||||
|
||||
.qr-code img {
|
||||
|
||||
@@ -218,20 +218,21 @@ const onPrint = async (record: FullWorkOrderResp) => {
|
||||
<html>
|
||||
<head>
|
||||
<title>标签打印</title>
|
||||
<style>
|
||||
body { margin: 0; padding: 10mm; font-family: Arial, sans-serif; }
|
||||
.label-container { display: flex; flex-wrap: wrap; gap: 10mm; justify-content: center; }
|
||||
.label { width: 90mm; height: 38.5mm; border: 1px solid #000; padding: 0; box-sizing: border-box; page-break-inside: avoid; }
|
||||
.label-table { width: 100%; height: 100%; border-collapse: collapse; }
|
||||
.label-cell { border: 1px solid #000; padding: 1mm; vertical-align: top; }
|
||||
.qr-cell { width: 24mm; text-align: center; vertical-align: middle; border: 1px solid #000; }
|
||||
.label-row { display: flex; align-items: center; }
|
||||
.label-field { font-size: 8pt; font-weight: bold; margin-right: 2mm; min-width: 25pt; }
|
||||
.label-value { font-size: 8pt; font-weight: bold; flex: 1; }
|
||||
.qr-code img { width: 23mm; height: 23mm; margin: 1mm 0; }
|
||||
.mark-number { font-size: 8pt; font-weight: bold; margin-top: 1mm; text-align: center; }
|
||||
.serial-number { font-size: 8pt; font-weight: bold; margin-top: 1mm; }
|
||||
</style>
|
||||
<style>
|
||||
@page { size: 80mm 50mm; margin: 0; }
|
||||
body { margin: 0; padding: 1mm; font-family: Arial, sans-serif; }
|
||||
.label-container { display: flex; flex-wrap: wrap; gap: 1mm; justify-content: center; transform-origin: center; }
|
||||
.label { width: 76mm; height: 46mm; border: 1px solid #000; padding: 0; box-sizing: border-box; page-break-inside: avoid; overflow: hidden; }
|
||||
.label-table { width: 100%; height: 100%; border-collapse: collapse; table-layout: fixed; }
|
||||
.label-cell { border: 1px solid #000; padding: 0.8mm; vertical-align: top; }
|
||||
.qr-cell { width: 22mm; text-align: center; vertical-align: middle; border: 1px solid #000; }
|
||||
.label-row { display: flex; align-items: center; }
|
||||
.label-field { font-size: 7.5pt; font-weight: bold; margin-right: 1mm; min-width: 22pt; white-space: nowrap; }
|
||||
.label-value { font-size: 7.5pt; font-weight: bold; flex: 1; overflow-wrap: break-word; word-break: break-word; }
|
||||
.qr-code img { width: 20mm; height: 20mm; margin: 0.5mm 0; }
|
||||
.mark-number { font-size: 7pt; font-weight: bold; margin-top: 0.5mm; text-align: center; }
|
||||
.serial-number { font-size: 7.5pt; font-weight: bold; margin-top: 0.5mm; }
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<div class="label-container">
|
||||
|
||||
@@ -479,18 +479,19 @@ const printLabel = async () => {
|
||||
<head>
|
||||
<title>标签打印</title>
|
||||
<style>
|
||||
body { margin: 0; padding: 10mm; font-family: Arial, sans-serif; }
|
||||
.label-container { display: flex; flex-wrap: wrap; gap: 10mm; justify-content: center; }
|
||||
.label { width: 90mm; height: 38.5mm; border: 1px solid #000; padding: 0; box-sizing: border-box; page-break-inside: avoid; }
|
||||
.label-table { width: 100%; height: 100%; border-collapse: collapse; }
|
||||
.label-cell { border: 1px solid #000; padding: 1mm; vertical-align: top; }
|
||||
.qr-cell { width: 24mm; text-align: center; vertical-align: middle; border: 1px solid #000; }
|
||||
@page { size: 80mm 50mm; margin: 0; }
|
||||
body { margin: 0; padding: 1mm; font-family: Arial, sans-serif; }
|
||||
.label-container { display: flex; flex-wrap: wrap; gap: 1mm; justify-content: center; transform-origin: center; }
|
||||
.label { width: 76mm; height: 46mm; border: 1px solid #000; padding: 0; box-sizing: border-box; page-break-inside: avoid; overflow: hidden; }
|
||||
.label-table { width: 100%; height: 100%; border-collapse: collapse; table-layout: fixed; }
|
||||
.label-cell { border: 1px solid #000; padding: 0.8mm; vertical-align: top; }
|
||||
.qr-cell { width: 22mm; text-align: center; vertical-align: middle; border: 1px solid #000; }
|
||||
.label-row { display: flex; align-items: center; }
|
||||
.label-field { font-size: 8pt; font-weight: bold; margin-right: 2mm; min-width: 25pt; }
|
||||
.label-value { font-size: 8pt; font-weight: bold; flex: 1; }
|
||||
.qr-code img { width: 23mm; height: 23mm; margin: 1mm 0; }
|
||||
.mark-number { font-size: 8pt; font-weight: bold; margin-top: 1mm; text-align: center; }
|
||||
.serial-number { font-size: 8pt; font-weight: bold; margin-top: 1mm; }
|
||||
.label-field { font-size: 7.5pt; font-weight: bold; margin-right: 1mm; min-width: 22pt; white-space: nowrap; }
|
||||
.label-value { font-size: 7.5pt; font-weight: bold; flex: 1; overflow-wrap: break-word; word-break: break-word; }
|
||||
.qr-code img { width: 20mm; height: 20mm; margin: 0.5mm 0; }
|
||||
.mark-number { font-size: 7pt; font-weight: bold; margin-top: 0.5mm; text-align: center; }
|
||||
.serial-number { font-size: 7.5pt; font-weight: bold; margin-top: 0.5mm; }
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
@@ -646,6 +647,7 @@ defineOptions({ name: 'LabelPrint' })
|
||||
font-size: 10pt;
|
||||
flex: 1;
|
||||
font-weight: bold;
|
||||
word-break: break-word;
|
||||
}
|
||||
|
||||
.qr-code img {
|
||||
|
||||
Reference in New Issue
Block a user