Browse Source

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

csx 4 years ago
parent
commit
fc8a30f0bb
1 changed files with 4 additions and 4 deletions
  1. 4 4
      src/xt_pages/outpatientCharges/listTemplate/printOne.vue

+ 4 - 4
src/xt_pages/outpatientCharges/listTemplate/printOne.vue View File

22
                 <td style="width:10%">金额(元)</td>
22
                 <td style="width:10%">金额(元)</td>
23
 
23
 
24
             </tr>
24
             </tr>
25
-            <tr v-for="item in list.slice(index * 14,pageArr[index])">
25
+            <tr v-for="item in list.slice(index * 13,(index * 14) + pageArr[index])">
26
                 <td style="width:19%">{{item.p_time}}</td>
26
                 <td style="width:19%">{{item.p_time}}</td>
27
                 <td style="width:10%">{{item.med_chrgitm_type}}</td>
27
                 <td style="width:10%">{{item.med_chrgitm_type}}</td>
28
                 <td style="width:35%">{{item.name}}</td>
28
                 <td style="width:35%">{{item.name}}</td>
51
         default: function () {
51
         default: function () {
52
           return [];
52
           return [];
53
         }
53
         }
54
-      }, patient: {
54
+      },
55
+      patient: {
55
         type: Object,
56
         type: Object,
56
         default: function () {
57
         default: function () {
57
           return {};
58
           return {};
75
         }
76
         }
76
     },
77
     },
77
     mounted(){
78
     mounted(){
78
-        console.log(this.list)
79
         this.getPage()
79
         this.getPage()
80
     },
80
     },
81
     methods:{
81
     methods:{
104
         }else if(this.list.length > 13){
104
         }else if(this.list.length > 13){
105
             this.page = parseInt(this.list.length / 13)
105
             this.page = parseInt(this.list.length / 13)
106
             let num = this.list.length % 13
106
             let num = this.list.length % 13
107
-            for (var i=0;i<this.page.length;i++){
107
+            for (var i=0;i<this.page;i++){
108
                 this.pageArr.push(13)
108
                 this.pageArr.push(13)
109
             }
109
             }
110
             if(num != 0){
110
             if(num != 0){