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
761ce44590
1 changed files with 7 additions and 57 deletions
  1. 7 57
      src/xt_pages/outpatientCharges/listTemplate/printOne.vue

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

45
 
45
 
46
   export default {
46
   export default {
47
     props: {
47
     props: {
48
-    //   list: {
49
-    //     type: Array,
50
-    //     default: function () {
51
-    //       return [];
52
-    //     }
53
-    //   }, 
48
+      list: {
49
+        type: Array,
50
+        default: function () {
51
+          return [];
52
+        }
53
+      },
54
       patient: {
54
       patient: {
55
         type: Object,
55
         type: Object,
56
         default: function () {
56
         default: function () {
72
         return{
72
         return{
73
             page:1,
73
             page:1,
74
             pageArr:[],
74
             pageArr:[],
75
-            list:[
76
-                {count: 1,
77
-med_chrgitm_type: "西药费",
78
-name: "左卡尼汀注射液",
79
-p_time: "2020-12-31 15:41",
80
-price: 28.8,
81
-spec: "5ml:1g"},
82
-                {count: 1,
83
-med_chrgitm_type: "西药费",
84
-name: "左卡尼汀注射液",
85
-p_time: "2020-12-31 15:41",
86
-price: 28.8,
87
-spec: "5ml:1g"},
88
-                {count: 1,
89
-med_chrgitm_type: "西药费",
90
-name: "左卡尼汀注射液",
91
-p_time: "2020-12-31 15:41",
92
-price: 28.8,
93
-spec: "5ml:1g"},
94
-                {count: 1,
95
-med_chrgitm_type: "西药费",
96
-name: "左卡尼汀注射液",
97
-p_time: "2020-12-31 15:41",
98
-price: 28.8,
99
-spec: "5ml:1g"},
100
-                {count: 1,
101
-med_chrgitm_type: "西药费",
102
-name: "左卡尼汀注射液",
103
-p_time: "2020-12-31 15:41",
104
-price: 28.8,
105
-spec: "5ml:1g"},
106
-                {count: 1,
107
-med_chrgitm_type: "西药费",
108
-name: "左卡尼汀注射液",
109
-p_time: "2020-12-31 15:41",
110
-price: 28.8,
111
-spec: "5ml:1g"},
112
-                {count: 1,
113
-med_chrgitm_type: "西药费",
114
-name: "左卡尼汀注射液",
115
-p_time: "2020-12-31 15:41",
116
-price: 28.8,
117
-spec: "5ml:1g"},
118
-                {count: 1,
119
-med_chrgitm_type: "西药费",
120
-name: "左卡尼汀注射液",
121
-p_time: "2020-12-31 15:41",
122
-price: 28.8,
123
-spec: "5ml:1g"},
124
-            ]
125
         }
75
         }
126
     },
76
     },
127
     mounted(){
77
     mounted(){
153
         }else if(this.list.length > 13){
103
         }else if(this.list.length > 13){
154
             this.page = parseInt(this.list.length / 13)
104
             this.page = parseInt(this.list.length / 13)
155
             let num = this.list.length % 13
105
             let num = this.list.length % 13
156
-            for (var i=0;i<this.page;i++){ 
106
+            for (var i=0;i<this.page;i++){
157
                 this.pageArr.push(13)
107
                 this.pageArr.push(13)
158
             }
108
             }
159
             if(num != 0){
109
             if(num != 0){