see999 пре 4 година
родитељ
комит
4cb9d6d3f3

+ 1 - 1
src/xt_pages/outpatientCharges/newStatementPrintTwo.vue Прегледај датотеку

@@ -64,7 +64,7 @@
64 64
         this.print_time = uParseTime(ptime, "{y}-{m}-{d} {h}:{i}");
65 65
 
66 66
         const style =
67
-        '@media print {.printTitle{font-size: 20px;text-align: center;font-weight: bold;}.infoMain{display: flex;flex-wrap: wrap;padding:0 10px;margin-top:10px;font-size:12px}.infoMain .infoP{width: 33%;}.chargeBox{border: 1px solid #000;font-size:12px;}.chargeUl{display:flex;justify-content: space-between;text-align: center;}.chargeUl p{line-height: 1px;}.chargeP{line-height: 1px;padding-bottom:16px;}.moneyBox{display: flex;justify-content: space-between;padding: 0 10px;background: #eeeeee;-webkit-print-color-adjust:exact;-moz-print-color-adjust:exact;-ms-print-color-adjust:exact;print-color-adjust:exact;height: 40px;align-items: center;border:1px solid #000; border-top:none;font-size:12px;}.actionBar{display: flex;justify-content: space-between; line-height: 24px;padding:0 10px;font-size:12px;}.actionBar div{width:150px;}}';
67
+        '@media print {.printTitle{font-size: 20px;text-align: center;font-weight: bold;}.infoMain{display: flex;flex-wrap: wrap;padding:0 10px;margin-top:10px;font-size:12px;}.infoMain .infoP{width: 33%;}.chargeBox{border: 1px solid #000;font-size:12px;}.chargeUl{display:flex;justify-content: space-between;text-align: center;}.chargeUl p{line-height: 1px;}.chargeP{line-height: 1px;padding-bottom:16px;}.moneyBox{display: flex;justify-content: space-between;padding: 0 10px;background: #eeeeee;-webkit-print-color-adjust:exact;-moz-print-color-adjust:exact;-ms-print-color-adjust:exact;print-color-adjust:exact;height: 40px;align-items: center;border:1px solid #000; border-top:none;font-size:12px;}.actionBar{display: flex;justify-content: space-between; line-height: 24px;padding:0 10px;font-size:12px;}.actionBar div{width:150px;}}';
68 68
         printJS({
69 69
             printable: "prescription-print",
70 70
             type: "html",

+ 4 - 1
src/xt_pages/outpatientCharges/newTreatTemplate/printOne.vue Прегледај датотеку

@@ -234,6 +234,8 @@
234 234
 
235 235
       },
236 236
       getPage(){
237
+        this.page = 1
238
+        this.pageArr = []
237 239
         if(this.info.name_arr.length <= 13){
238 240
             this.page = 1
239 241
             this.pageArr.push(this.info.name_arr.length)
@@ -258,7 +260,8 @@
258 260
         handler(newVal) {
259 261
             this.getPage()
260 262
         },
261
-        deep: true
263
+        deep: true,
264
+        immediate:true
262 265
       }
263 266
     }
264 267