|
|
|
|
@ -3253,200 +3253,4 @@ export default {
|
|
|
|
|
background: #fff;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/* 打印样式 */
|
|
|
|
|
@media print {
|
|
|
|
|
/* 全局打印设置 */
|
|
|
|
|
@page {
|
|
|
|
|
size: A4;
|
|
|
|
|
margin: 15mm;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/* 确保打印时显示所有内容 */
|
|
|
|
|
#print-table {
|
|
|
|
|
width: 100% !important;
|
|
|
|
|
page-break-inside: auto;
|
|
|
|
|
overflow: visible !important;
|
|
|
|
|
height: auto !important;
|
|
|
|
|
max-height: none !important;
|
|
|
|
|
display: block !important;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/* 表格可以跨页显示 */
|
|
|
|
|
.summary-table {
|
|
|
|
|
page-break-inside: auto;
|
|
|
|
|
border-collapse: collapse;
|
|
|
|
|
width: 100% !important;
|
|
|
|
|
height: auto !important;
|
|
|
|
|
max-height: none !important;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.summary-table tr {
|
|
|
|
|
page-break-inside: avoid;
|
|
|
|
|
page-break-after: auto;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/* 表格行可以跨页,但尽量保持完整 */
|
|
|
|
|
.summary-table td {
|
|
|
|
|
page-break-inside: avoid;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/* 盘点物资列表单元格允许跨页 */
|
|
|
|
|
.summary-table .inventory-list-cell {
|
|
|
|
|
page-break-inside: auto !important;
|
|
|
|
|
height: auto !important;
|
|
|
|
|
max-height: none !important;
|
|
|
|
|
overflow: visible !important;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.summary-table .inventory-list-cell td {
|
|
|
|
|
page-break-inside: auto !important;
|
|
|
|
|
height: auto !important;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/* 盘点物资表格允许跨页 */
|
|
|
|
|
.inventory-table-wrapper {
|
|
|
|
|
page-break-inside: auto !important;
|
|
|
|
|
overflow: visible !important;
|
|
|
|
|
height: auto !important;
|
|
|
|
|
max-height: none !important;
|
|
|
|
|
display: block !important;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/* iView Table 组件打印样式 */
|
|
|
|
|
#print-table .ivu-table,
|
|
|
|
|
.inventory-print-table {
|
|
|
|
|
page-break-inside: auto !important;
|
|
|
|
|
width: 100% !important;
|
|
|
|
|
height: auto !important;
|
|
|
|
|
max-height: none !important;
|
|
|
|
|
display: table !important;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
#print-table .ivu-table-wrapper {
|
|
|
|
|
height: auto !important;
|
|
|
|
|
max-height: none !important;
|
|
|
|
|
overflow: visible !important;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
#print-table .ivu-table-body-wrapper {
|
|
|
|
|
overflow: visible !important;
|
|
|
|
|
height: auto !important;
|
|
|
|
|
max-height: none !important;
|
|
|
|
|
display: block !important;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
#print-table .ivu-table-body {
|
|
|
|
|
page-break-inside: auto !important;
|
|
|
|
|
height: auto !important;
|
|
|
|
|
max-height: none !important;
|
|
|
|
|
overflow: visible !important;
|
|
|
|
|
display: table-row-group !important;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/* 表格行可以跨页,但尽量保持单行完整 */
|
|
|
|
|
#print-table .ivu-table-row {
|
|
|
|
|
page-break-inside: avoid;
|
|
|
|
|
page-break-after: auto;
|
|
|
|
|
display: table-row !important;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/* 表格单元格允许跨页 */
|
|
|
|
|
#print-table .ivu-table td,
|
|
|
|
|
#print-table .ivu-table th {
|
|
|
|
|
page-break-inside: auto;
|
|
|
|
|
display: table-cell !important;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/* 表格头部在每页重复 */
|
|
|
|
|
#print-table .ivu-table-header {
|
|
|
|
|
display: table-header-group !important;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
#print-table .ivu-table-header-wrapper {
|
|
|
|
|
display: block !important;
|
|
|
|
|
overflow: visible !important;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/* 签字区尽量在同一页 */
|
|
|
|
|
.summary-table .sign-cell {
|
|
|
|
|
page-break-inside: avoid;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/* 隐藏不需要打印的元素 */
|
|
|
|
|
.signature-pad-wrapper,
|
|
|
|
|
.ivu-modal-footer,
|
|
|
|
|
.ivu-modal-header,
|
|
|
|
|
.ivu-modal-mask,
|
|
|
|
|
.ivu-modal-wrap,
|
|
|
|
|
.inventory-detail-section {
|
|
|
|
|
display: none !important;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/* 确保打印时背景色和边框显示 */
|
|
|
|
|
.summary-table td {
|
|
|
|
|
-webkit-print-color-adjust: exact;
|
|
|
|
|
print-color-adjust: exact;
|
|
|
|
|
background: #fff !important;
|
|
|
|
|
border: 1px solid #333 !important;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/* 确保所有内容可见,移除所有高度和溢出限制 */
|
|
|
|
|
#print-table * {
|
|
|
|
|
overflow: visible !important;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
#print-table .ivu-table * {
|
|
|
|
|
height: auto !important;
|
|
|
|
|
max-height: none !important;
|
|
|
|
|
overflow: visible !important;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/* 确保表格内容完整显示 */
|
|
|
|
|
#print-table .ivu-table-body-wrapper,
|
|
|
|
|
#print-table .ivu-table-body-wrapper * {
|
|
|
|
|
overflow: visible !important;
|
|
|
|
|
height: auto !important;
|
|
|
|
|
max-height: none !important;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/* 移除可能的固定定位 */
|
|
|
|
|
#print-table .ivu-table-fixed,
|
|
|
|
|
#print-table .ivu-table-fixed-right {
|
|
|
|
|
position: static !important;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/* 确保所有滚动容器在打印时展开 */
|
|
|
|
|
#print-table [style*="overflow"],
|
|
|
|
|
#print-table [style*="max-height"],
|
|
|
|
|
#print-table [style*="height"] {
|
|
|
|
|
overflow: visible !important;
|
|
|
|
|
max-height: none !important;
|
|
|
|
|
height: auto !important;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/* 确保表格容器完全展开 */
|
|
|
|
|
#print-table .ivu-table-body,
|
|
|
|
|
#print-table .ivu-table-body table {
|
|
|
|
|
width: 100% !important;
|
|
|
|
|
height: auto !important;
|
|
|
|
|
max-height: none !important;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/* 确保所有行都显示 */
|
|
|
|
|
#print-table .ivu-table-row {
|
|
|
|
|
display: table-row !important;
|
|
|
|
|
visibility: visible !important;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/* 移除任何可能隐藏内容的样式 */
|
|
|
|
|
#print-table .ivu-table-body tr {
|
|
|
|
|
display: table-row !important;
|
|
|
|
|
page-break-inside: avoid;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/* 确保表格在打印时使用标准表格布局 */
|
|
|
|
|
#print-table .ivu-table {
|
|
|
|
|
table-layout: auto !important;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
</style>
|
|
|
|
|
|