Prechádzať zdrojové kódy

输液贴打印阈值判定

zengfanwei 1 mesiac pred
rodič
commit
0da5aa5f4b

+ 2 - 2
src/views/hospitalization/nurse-module/PrintInfusionCard.vue

@@ -313,7 +313,7 @@ const execPrint = () => {
     } else {
       LODOP.PRINT_INIT('infusionCard')
       LODOP.SET_PRINT_PAGESIZE(1, '210mm', '297mm', '')
-      let PAGE_MAX_HEIGHT = 1050
+      let PAGE_MAX_HEIGHT = 1020 //页面最大阈值
       let pageHeightNow = 0
       let currentPageHTML = '';
       for (let i = 0; i < patientInfusionInfos.value.length; i++) {
@@ -464,7 +464,7 @@ const execPrint = () => {
   .card-container:nth-child(3n+1) { padding-left: 0; }
 </style>`;
 
-      const PAGE_MAX_HEIGHT = 1050; // 页面最大高度阈值(px)
+      const PAGE_MAX_HEIGHT = 1020; // 页面最大高度阈值(px)
       let currentPageHTML = printStyle; // 当前页内容
       let currentPageTotalHeight = 0; // 当前页累计高度(px)
       let currentRowHTML = ''; // 当前行的HTML内容