see999 3 年前
父节点
当前提交
00e039e6b2

+ 2 - 0
src/xt_pages/outpatientCharges/newStatementPrintTwo.vue 查看文件

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

+ 15 - 15
src/xt_pages/outpatientCharges/newTreatTemplate/printTwo.vue 查看文件

28
                     <td width="70">总额</td>
28
                     <td width="70">总额</td>
29
                     <td width="100">小计</td>
29
                     <td width="100">小计</td>
30
                 </tr>
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
                 <tr v-for="(item,index) in info.transBody.outputlist2" :key="index">
44
                 <tr v-for="(item,index) in info.transBody.outputlist2" :key="index">
45
                     <td colspan="2">{{getValue(item)}}</td>
45
                     <td colspan="2">{{getValue(item)}}</td>
46
-                    <td>合计: 0.00元</td>
46
+                    <td>合计: {{info.transBody.akc264?info.transBody.akc264:0}}元</td>
47
                 </tr>
47
                 </tr>
48
                 <tr>
48
                 <tr>
49
                     <td colspan="7">
49
                     <td colspan="7">
93
         spec_arr: [],
93
         spec_arr: [],
94
         count_arr: [],
94
         count_arr: [],
95
         price_arr: [],
95
         price_arr: [],
96
-        total_arr: []
96
+        total_arr: [],
97
 
97
 
98
       }
98
       }
99
     },
99
     },