备料单打印效果提交

master
杨万里 5 days ago
parent 555339ab82
commit 87f8c1ecf3

@ -440,13 +440,26 @@ export default {
//
handlePrint(params) {
printJS({
// printable: params.printable, // 'printFrom', // id
// type: params.type || 'html',
// dpi: 300, //
// //font_size: "",//
// header: params.header, // '',
// targetStyles: ['*'],
// style: '@page {size: A5}; body {font-family: ""; font-size: 12px;}',
// ignoreElements: params.ignore || [], // ['no-print']
// properties: params.properties || null
printable: params.printable, // 'printFrom', // id
type: params.type || 'html',
dpi: 300, //
dpi: 360, //
// dpi: 600,
//font_size: "",//
header: params.header, // '',
targetStyles: ['*'],
style: '@page {size: A5}; body {font-family: "宋体"; font-size: 12px;}',
style: `
body { font-family: "黑体"; font-weight: bold; }
table { border-collapse: separate; border-width: 1.5pt; }`, // 加粗字体和边框线:ml-citation{ref="9" data="citationList"}
////style:'body {margin: 2mm;padding: 0;}.fy{page-break-after: always;} table { width:100%;height:800px;border-collapse: collapse;} table, th, td { border: 2px solid black; white-space: pre-wrap; word-break: break-all;} .el-table .cell{padding-left:1px;padding-right:1px;border: 2px solid black;}',
ignoreElements: params.ignore || [], // ['no-print']
properties: params.properties || null
})

Loading…
Cancel
Save