Bläddra i källkod

Merge branch '20201109_pc_vue_new_branch' of http://git.shengws.com/csx/Vue_New into 20201109_pc_vue_new_branch

XMLWAN 4 år sedan
förälder
incheckning
8bf8c4eb1d

+ 1 - 1
src/xt_pages/outpatientCharges/newStatementPrintTwo.vue Visa fil

@@ -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",

+ 5 - 1
src/xt_pages/outpatientCharges/newTreatTemplate/printOne.vue Visa fil

@@ -234,9 +234,12 @@
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)
242
+            console.log('this.pageArr',this.pageArr)
240 243
         }else if(this.info.name_arr.length > 13){
241 244
             this.page = parseInt(this.info.name_arr.length / 13)
242 245
             let num = this.info.name_arr.length % 13
@@ -258,7 +261,8 @@
258 261
         handler(newVal) {
259 262
             this.getPage()
260 263
         },
261
-        deep: true
264
+        deep: true,
265
+        immediate:true
262 266
       }
263 267
     }
264 268