|
|
@@ -3,7 +3,7 @@
|
|
|
title="入库单"
|
|
|
:visible.sync="QRvisible"
|
|
|
v-if="QRvisible"
|
|
|
- width="80%"
|
|
|
+ width="1100px"
|
|
|
@close="close"
|
|
|
>
|
|
|
<div
|
|
|
@@ -11,6 +11,10 @@
|
|
|
style="
|
|
|
font-family: SimSun, serif;
|
|
|
padding: 20px;
|
|
|
+ width: 24cm;
|
|
|
+ height: 14cm;
|
|
|
+ margin: 0 auto;
|
|
|
+ box-sizing: border-box;
|
|
|
"
|
|
|
>
|
|
|
<!-- 入库单标题 -->
|
|
|
@@ -171,7 +175,11 @@
|
|
|
printWindow.document.open();
|
|
|
printWindow.document.write('<html><head><title>打印预览</title>');
|
|
|
printWindow.document.write(
|
|
|
- '<link rel="stylesheet" href="your-stylesheet-url.css" type="text/css" />'
|
|
|
+ '<style type="text/css">' +
|
|
|
+ '@page { size: 24cm 14cm; margin: 0; }' +
|
|
|
+ 'body { width: 24cm; height: 14cm; margin: 0; padding: 0; }' +
|
|
|
+ '#printSection { margin: 0 auto; width: 24cm; height: 14cm; box-sizing: border-box; }' +
|
|
|
+ '</style>'
|
|
|
);
|
|
|
printWindow.document.write('</head><body>');
|
|
|
printWindow.document.write(printSection.innerHTML);
|