see999 3 years ago
parent
commit
00e039e6b2

+ 2 - 0
src/xt_pages/outpatientCharges/newStatementPrintTwo.vue View File

@@ -188,11 +188,13 @@
188 188
                     let obj = {
189 189
                       aka111:typeArr[i],
190 190
                       details:[],
191
+                      total:0
191 192
                     }
192 193
 
193 194
                     for(let b = 0; b < that.info.transBody.outputlist1.length;b++){
194 195
                         if(typeArr[i] == that.info.transBody.outputlist1[b]){
195 196
                           obj.details.push(that.info.transBody.outputlist1[b])
197
+                          obj.total += that.info.transBody.outputlist1[b].akc264
196 198
                         }
197 199
                     }
198 200
                     that.info.new_detail_list.push(obj)

+ 15 - 15
src/xt_pages/outpatientCharges/newTreatTemplate/printTwo.vue View File

@@ -28,22 +28,22 @@
28 28
                     <td width="70">总额</td>
29 29
                     <td width="100">小计</td>
30 30
                 </tr>
31
-                <tr v-for="(item,index) in info.new_detail_list">
32
-                    <!--<tr v-for="(subItem,index) in item.details" >-->
33
-
34
-                    <!--<td></td>-->
35
-                    <!--<td>{{subItem.ake006}}</td>-->
36
-                    <!--<td>{{subItem.aka074}}</td>-->
37
-                    <!--<td>{{subItem.aka067}}</td>-->
38
-                    <!--<td>{{subItem.akc226}}</td>-->
39
-                    <!--<td>{{subItem.akc225}}</td>-->
40
-                    <!--<td>{{ subItem.akc264}}</td>-->
41
-                    <!--<td></td>-->
42
-                    <!--</tr>-->
43
-                </tr>
31
+                <div v-for="(item,i) in info.new_detail_list" :key="i" style="width:100%;display: table-row-group;">
32
+                    <tr v-for="(subItem,index) in item.details" :key="index">
33
+
34
+                      <td>{{ getItemName(subItem.aka111) }}</td>
35
+                      <td>{{subItem.ake006}}</td>
36
+                      <td>{{subItem.aka074}}</td>
37
+                      <td>{{subItem.aka067}}</td>
38
+                      <td>{{subItem.akc226}}</td>
39
+                      <td>{{subItem.akc225}}</td>
40
+                      <td>{{ subItem.akc264}}</td>
41
+                      <td :colspan="item.details.length" v-if="index == 0">{{ item.total }}</td>
42
+                    </tr>
43
+                </div>
44 44
                 <tr v-for="(item,index) in info.transBody.outputlist2" :key="index">
45 45
                     <td colspan="2">{{getValue(item)}}</td>
46
-                    <td>合计: 0.00元</td>
46
+                    <td>合计: {{info.transBody.akc264?info.transBody.akc264:0}}元</td>
47 47
                 </tr>
48 48
                 <tr>
49 49
                     <td colspan="7">
@@ -93,7 +93,7 @@
93 93
         spec_arr: [],
94 94
         count_arr: [],
95 95
         price_arr: [],
96
-        total_arr: []
96
+        total_arr: [],
97 97
 
98 98
       }
99 99
     },