|
|
@@ -223,15 +223,18 @@ const daYingClick = () => {
|
|
|
const printDetailClick = ()=>{
|
|
|
let LODOP = getLodop()
|
|
|
LODOP.PRINT_INIT('欠费病人清单明细')
|
|
|
- LODOP.SET_PRINT_PAGESIZE(1, '210mm', '297mm', '')
|
|
|
+ LODOP.SET_PRINT_PAGESIZE(1, '210mm', '270mm', '')
|
|
|
LODOP.SET_PRINT_MODE('FULL_WIDTH_FOR_OVERFLOW', true) // 整宽不变形
|
|
|
- LODOP.ADD_PRINT_HTML('2mm', '5mm', '205mm', '220mm', '<style>' + printDetailCss + '</style>' + '<body>' + document.getElementById('printDetail').innerHTML + '</body>')
|
|
|
+ LODOP.SET_PRINT_MODE ("PRINT_START_PAGE",1);
|
|
|
+ LODOP.SET_PRINT_MODE ("PRINT_END_PAGE",1);
|
|
|
+ LODOP.ADD_PRINT_HTML('2mm', '5mm', '100%', '100%', '<style>' + printDetailCss + '</style>' + '<body>' + document.getElementById('printDetail').innerHTML + '</body>')
|
|
|
LODOP.PREVIEW() // 关闭
|
|
|
}
|
|
|
|
|
|
const printDetailCss =`
|
|
|
#printDetail{
|
|
|
width: 753px;
|
|
|
+ height:600px;
|
|
|
padding: 0 0px;
|
|
|
}
|
|
|
`
|