Browse Source

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

XMLWAN 4 years ago
parent
commit
8bf8c4eb1d

+ 1 - 1
src/xt_pages/outpatientCharges/newStatementPrintTwo.vue View File

64
         this.print_time = uParseTime(ptime, "{y}-{m}-{d} {h}:{i}");
64
         this.print_time = uParseTime(ptime, "{y}-{m}-{d} {h}:{i}");
65
 
65
 
66
         const style =
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
         printJS({
68
         printJS({
69
             printable: "prescription-print",
69
             printable: "prescription-print",
70
             type: "html",
70
             type: "html",

+ 5 - 1
src/xt_pages/outpatientCharges/newTreatTemplate/printOne.vue View File

234
 
234
 
235
       },
235
       },
236
       getPage(){
236
       getPage(){
237
+        this.page = 1
238
+        this.pageArr = []
237
         if(this.info.name_arr.length <= 13){
239
         if(this.info.name_arr.length <= 13){
238
             this.page = 1
240
             this.page = 1
239
             this.pageArr.push(this.info.name_arr.length)
241
             this.pageArr.push(this.info.name_arr.length)
242
+            console.log('this.pageArr',this.pageArr)
240
         }else if(this.info.name_arr.length > 13){
243
         }else if(this.info.name_arr.length > 13){
241
             this.page = parseInt(this.info.name_arr.length / 13)
244
             this.page = parseInt(this.info.name_arr.length / 13)
242
             let num = this.info.name_arr.length % 13
245
             let num = this.info.name_arr.length % 13
258
         handler(newVal) {
261
         handler(newVal) {
259
             this.getPage()
262
             this.getPage()
260
         },
263
         },
261
-        deep: true
264
+        deep: true,
265
+        immediate:true
262
       }
266
       }
263
     }
267
     }
264
 
268