Browse Source

bug 修复

lilei 2 years ago
parent
commit
cd7ab9f28b
1 changed files with 2 additions and 0 deletions
  1. 2 0
      src/views/salesManagement/receiptPrint/printModel.vue

+ 2 - 0
src/views/salesManagement/receiptPrint/printModel.vue

@@ -124,6 +124,8 @@ export default {
       for (let i = 0; i < printCons.length; i++) {
       for (let i = 0; i < printCons.length; i++) {
         if (printCons[i].h > 560) {
         if (printCons[i].h > 560) {
           htmlStr.push('')
           htmlStr.push('')
+        }else{
+          printCons[i].t = '<div style="width:564pt;margin:0 auto;height:535px;">' +printCons[i].t+'</div>'
         }
         }
         htmlStr.push(printCons[i].t)
         htmlStr.push(printCons[i].t)
       }
       }