see999 4 年 前
コミット
853ee8dd73
共有1 個のファイルを変更した9 個の追加8 個の削除を含む
  1. 9 8
      src/xt_pages/outpatientCharges/listTemplate/printOne.vue

+ 9 - 8
src/xt_pages/outpatientCharges/listTemplate/printOne.vue ファイルの表示

@@ -21,7 +21,7 @@
21 21
                 <td style="width:6%">数量</td>
22 22
                 <td style="width:10%">金额(元)</td>
23 23
             </tr>
24
-            <tr v-for="item in list.slice(index * 14,pageArr[index])">
24
+            <tr v-for="item in list.slice(index * 13,(index * 14) + pageArr[index])">
25 25
                 <td style="width:19%">{{item.p_time}}</td>
26 26
                 <td style="width:10%">{{item.med_chrgitm_type}}</td>
27 27
                 <td style="width:35%">{{item.name}}</td>
@@ -45,12 +45,13 @@
45 45
 
46 46
   export default {
47 47
     props: {
48
-      list: {
49
-        type: Array,
50
-        default: function () {
51
-          return [];
52
-        }
53
-      }, patient: {
48
+    //   list: {
49
+    //     type: Array,
50
+    //     default: function () {
51
+    //       return [];
52
+    //     }
53
+    //   }, 
54
+      patient: {
54 55
         type: Object,
55 56
         default: function () {
56 57
           return {};
@@ -102,7 +103,7 @@
102 103
         }else if(this.list.length > 13){
103 104
             this.page = parseInt(this.list.length / 13)
104 105
             let num = this.list.length % 13
105
-            for (var i=0;i<this.page.length;i++){ 
106
+            for (var i=0;i<this.page;i++){ 
106 107
                 this.pageArr.push(13)
107 108
             }
108 109
             if(num != 0){