csx 4 years ago
parent
commit
e3ee909e52

+ 14 - 4
src/xt_pages/outpatientCharges/allListPrint.vue View File

@@ -89,10 +89,17 @@
89 89
 
90 90
               obj.details = this.setNewData(tempDetails)
91 91
               obj.total = this.getTotal(obj.details)
92
-              tempOrderInfo.push(obj)
92
+
93
+              obj.details.push({
94
+                total: obj.total,
95
+                is_total: 1,
96
+              })
97
+              this.list =  this.list.concat(obj.details)
93 98
             }
94
-            this.list = tempOrderInfo
95
-            console.log(this.list)
99
+
100
+
101
+
102
+
96 103
           }
97 104
         })
98 105
       }, getTotal:function(items){
@@ -145,9 +152,10 @@
145 152
             for (let a = 0; a < details.length; a++) {
146 153
               if (new_drug_ids[i].id == details[a].advice.drug_id && new_drug_ids[i].price == details[a].advice.price) {
147 154
                 obj['name'] = details[a].advice.advice_name
148
-                obj['spec'] = details[a].advice.drug_spec
155
+                obj['spec'] = details[a].advice.drug.drug_spec
149 156
                 obj['med_chrgitm_type'] = this.getType(details[a].med_chrgitm_type)
150 157
                 obj['price'] = parseFloat(details[a].pric)
158
+                obj['is_total'] = 2
151 159
                 count = count + details[a].cnt
152 160
               }
153 161
             }
@@ -166,6 +174,8 @@
166 174
                 obj['spec'] = '1'
167 175
                 obj['med_chrgitm_type'] = this.getType(details[a].med_chrgitm_type)
168 176
                 obj['price'] = parseFloat(details[a].pric)
177
+                obj['is_total'] = 2
178
+
169 179
                 count = count + details[a].cnt
170 180
               }
171 181
             }

+ 9 - 9
src/xt_pages/outpatientCharges/allListTemplate/printOne.vue View File

@@ -6,7 +6,7 @@
6 6
           <div>透析号:{{patient.dialysis_no}}</div>
7 7
           <div>性别:{{patient.gender == 1 ? '男': '女'}}</div>
8 8
           <div>年龄:{{patient.age}}  岁</div>
9
-          <div>收费日期:{{getTimes(order.settle_start_time)}} 至 {{getTimes(order.settle_end_time)}}</div>
9
+          <div>日期:{{getTimes(order.settle_start_time)}} 至 {{getTimes(order.settle_end_time)}}</div>
10 10
 
11 11
         </div>
12 12
         <table class="allListTable" border="1">
@@ -19,16 +19,16 @@
19 19
                 <td style="width:10%">金额(元)</td>
20 20
             </tr>
21 21
             <template v-for='item in list'>
22
-                <tr v-for="sub_item in item.details">
23
-                    <td style="width:10%">{{sub_item.med_chrgitm_type}}</td>
24
-                    <td style="width:50%">{{sub_item.name}}</td>
25
-                    <td style="width:10%">{{sub_item.spec}}</td>
26
-                    <td style="width:10%">{{(sub_item.price).toFixed(2)}}</td>
27
-                    <td style="width:10%">{{sub_item.count}}</td>
28
-                    <td style="width:10%">{{(sub_item.price * sub_item.count).toFixed(2)}}</td>
22
+                <tr v-if="item.is_total == 2">
23
+                    <td style="width:10%">{{item.med_chrgitm_type}}</td>
24
+                    <td style="width:50%">{{item.name}}</td>
25
+                    <td style="width:10%">{{item.spec}}</td>
26
+                    <td style="width:10%">{{(item.price).toFixed(2)}}</td>
27
+                    <td style="width:10%">{{item.count}}</td>
28
+                    <td style="width:10%">{{(item.price * item.count).toFixed(2)}}</td>
29 29
                 </tr>
30 30
                 <tr>
31
-                    <td colspan="6" style="text-align:right;">合计:{{item.total}}元</td>
31
+                    <td colspan="6" style="text-align:right;" v-if="item.is_total == 1">合计:{{item.total}}元</td>
32 32
                 </tr>
33 33
             </template>
34 34
         </table>

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

@@ -79,7 +79,7 @@
79 79
               if (infos.advice && infos.advice.id > 0 && infos.project && infos.project.id == 0) {
80 80
                 obj['p_time'] = this.getTimes(infos.advice.prescription.ctime)
81 81
                 obj['name'] = infos.advice.advice_name
82
-                obj['spec'] = infos.advice.drug_spec
82
+                obj['spec'] = infos.advice.drug.drug_spec
83 83
               }
84 84
               this.list.push(obj)
85 85
               this.list.sort(function(a, b) {

+ 31 - 11
src/xt_pages/outpatientCharges/statementTemplate/printOne.vue View File

@@ -39,17 +39,37 @@
39 39
         <td width="110"></td>
40 40
         <td width="80">人员类别</td>
41 41
         <td colspan="3" v-if="info.psn_type == '11'">在职</td>
42
-        <td colspan="3" v-if="info.psn_type == '21'">退休</td>
43
-        <td colspan="3" v-if="info.psn_type == '31'">离休</td>
44
-        <td colspan="3" v-if="info.psn_type == '32'">老红军</td>
45
-        <td colspan="3" v-if="info.psn_type == '33'">一至六级残废军人</td>
46
-        <td colspan="3" v-if="info.psn_type == '34'">医疗照顾人员</td>
47
-        <td colspan="3" v-if="info.psn_type == '41'">学龄前儿童</td>
48
-        <td colspan="3" v-if="info.psn_type == '42'">中小学生</td>
49
-        <td colspan="3" v-if="info.psn_type == '43'">大学生</td>
50
-        <td colspan="3" v-if="info.psn_type == '50'">成年居民(非从业)</td>
51
-        <td colspan="3" v-if="info.psn_type == '60'">老年居民</td>
52
-        <td colspan="3" v-if="info.psn_type == '91'">其他人员</td>
42
+        <td colspan="3" v-if="info.psn_type == '1101'">职工在职</td>
43
+        <td colspan="3" v-if="info.psn_type == '1102'">公务员在职</td>
44
+        <td colspan="3" v-if="info.psn_type == '1103'">灵活就业人员在职</td>
45
+        <td colspan="3" v-if="info.psn_type == '1160'">地方其他扩展人员</td>
46
+
47
+
48
+        <td colspan="3" v-if="info.psn_type == '12'">退休人员</td>
49
+        <td colspan="3" v-if="info.psn_type == '1201'">职工退休</td>
50
+        <td colspan="3" v-if="info.psn_type == '1202'">公务员退休</td>
51
+        <td colspan="3" v-if="info.psn_type == '1203'">灵活就业人员退休</td>
52
+        <td colspan="3" v-if="info.psn_type == '1260'">地方其他扩展人员</td>
53
+
54
+
55
+        <td colspan="3" v-if="info.psn_type == '13'">离休</td>
56
+        <td colspan="3" v-if="info.psn_type == '1300'">离休人员</td>
57
+        <td colspan="3" v-if="info.psn_type == '1360'">地方其他扩展人员</td>
58
+
59
+        <td colspan="3" v-if="info.psn_type == '14'">居民(未成年)</td>
60
+        <td colspan="3" v-if="info.psn_type == '1401'">新生儿</td>
61
+        <td colspan="3" v-if="info.psn_type == '1402'">学龄前儿童</td>
62
+        <td colspan="3" v-if="info.psn_type == '1403'">中小学生</td>
63
+        <td colspan="3" v-if="info.psn_type == '1404'">大学生</td>
64
+        <td colspan="3" v-if="info.psn_type == '1405'">未成年(未入学)</td>
65
+
66
+
67
+        <td colspan="3" v-if="info.psn_type == '15'">居民(成年)</td>
68
+        <td colspan="3" v-if="info.psn_type == '1501'">普通居民(成年)</td>
69
+        <td colspan="3" v-if="info.psn_type == '1560'">地方其他扩展身份</td>
70
+
71
+        <td colspan="3" v-if="info.psn_type == '16'">居民(老年)</td>
72
+
53 73
 
54 74
 
55 75
       </tr>