Kaynağa Gözat

Merge branch '20201109_pc_vue_new_branch' of http://git.shengws.com/csx/Vue_New into 20201109_pc_vue_new_branch

csx 3 yıl önce
ebeveyn
işleme
217aeb8933

+ 24 - 24
src/xt_pages/hospitalStation/outpatientChargesManagement.vue Dosyayı Görüntüle

@@ -61,7 +61,7 @@
61 61
                             <template slot-scope="scope">{{scope.row.name}}</template>
62 62
                         </el-table-column>
63 63
                         <el-table-column align="center" prop="name" label="就诊号" width="110">
64
-                            <template slot-scope="scope">{{ scope.row.his_patient ?scope.row.his_patient.number:''}}
64
+                            <template slot-scope="scope">{{ scope.row ?scope.row.number:''}}
65 65
                             </template>
66 66
                         </el-table-column>
67 67
                     </el-table>
@@ -869,11 +869,11 @@
869 869
             let three_count = 0
870 870
             for (let i = 0; i < response.data.data.list.length; i++) {
871 871
               this.all_table_data.push(response.data.data.list[i])
872
-              if (response.data.data.list[i].his_patient.order.order_status == 0 || response.data.data.list[i].his_patient.order.order_status == 1 || response.data.data.list[i].his_patient.order.order_status == 3) {
872
+              if (response.data.data.list[i].order.order_status == 0 || response.data.data.list[i].order.order_status == 1 || response.data.data.list[i].order.order_status == 3) {
873 873
                 one_count = one_count + 1
874 874
               }
875 875
 
876
-              if (response.data.data.list[i].his_patient.order.order_status == 2) {
876
+              if (response.data.data.list[i].order.order_status == 2) {
877 877
                 two_count = two_count + 1
878 878
               }
879 879
 
@@ -895,16 +895,16 @@
895 895
                 this.patientTableData = []
896 896
 
897 897
                 for (let i = 0; i < this.all_table_data.length; i++) {
898
-                  if (this.all_table_data[i].his_patient.order.order_status == 0 || this.all_table_data[i].his_patient.order.order_status == 1) {
898
+                  if (this.all_table_data[i].order.order_status == 0 || this.all_table_data[i].order.order_status == 1) {
899 899
                     this.patientTableData.push(this.all_table_data[i])
900 900
                   }
901 901
 
902 902
                 }
903 903
                 if (this.patientTableData.length > 0) {
904 904
                   for (let i = 0; i < this.patientTableData.length; i++) {
905
-                    if (this.patientTableData[i].id == this.patientInfo.id) {
905
+                    if (this.patientTableData[i].patient_id == this.patientInfo.id) {
906 906
                       this.$refs.tab.setCurrentRow(this.patientTableData[i])
907
-                      this.getPatientInformation(this.patientTableData[i].id, this.patientTableData[i].order.number, this.patientTableData[i].his_patient.id)
907
+                      this.getPatientInformation(this.patientTableData[i].patient_id, this.patientTableData[i].order.number, this.patientTableData[i].id)
908 908
                     }
909 909
                   }
910 910
                 }
@@ -986,11 +986,11 @@
986 986
 
987 987
             for (let i = 0; i < response.data.data.list_two.length; i++) {
988 988
               this.hisPatientDatas.push(response.data.data.list_two[i])
989
-              if (response.data.data.list_two[i].his_patient.order.order_status == 0 || response.data.data.list_two[i].his_patient.order.order_status == 1 || response.data.data.list_two[i].his_patient.order.order_status == 3) {
989
+              if (response.data.data.list_two[i].order.order_status == 0 || response.data.data.list_two[i].order.order_status == 1 || response.data.data.list_two[i].order.order_status == 3) {
990 990
                 one_count = one_count + 1
991 991
               }
992 992
 
993
-              if (response.data.data.list_two[i].his_patient.order.order_status == 2) {
993
+              if (response.data.data.list_two[i].order.order_status == 2) {
994 994
                 two_count = two_count + 1
995 995
               }
996 996
 
@@ -1010,16 +1010,16 @@
1010 1010
                 this.patientTableData = []
1011 1011
 
1012 1012
                 for (let i = 0; i < this.hisPatientDatas.length; i++) {
1013
-                  if (this.hisPatientDatas[i].his_patient.order.order_status == 0 || this.hisPatientDatas[i].his_patient.order.order_status == 1 || this.hisPatientDatas[i].his_patient.order.order_status == 3) {
1013
+                  if (this.hisPatientDatas[i].order.order_status == 0 || this.hisPatientDatas[i].order.order_status == 1 || this.hisPatientDatas[i].order.order_status == 3) {
1014 1014
                     this.patientTableData.push(this.hisPatientDatas[i])
1015 1015
                   }
1016 1016
 
1017 1017
                 }
1018 1018
                 if (this.patientTableData.length > 0) {
1019 1019
                   for (let i = 0; i < this.patientTableData.length; i++) {
1020
-                    if (this.patientTableData[i].id == this.patientInfo.id) {
1020
+                    if (this.patientTableData[i].patient_id == this.patientInfo.id) {
1021 1021
                       this.$refs.tab.setCurrentRow(this.patientTableData[i])
1022
-                      this.getPatientInformation(this.patientTableData[i].id, this.patientTableData[i].order.number, this.patientTableData[i].his_patient.id)
1022
+                      this.getPatientInformation(this.patientTableData[i].patient_id, this.patientTableData[i].order.number, this.patientTableData[i].id)
1023 1023
                     }
1024 1024
                   }
1025 1025
                 }
@@ -2069,7 +2069,7 @@
2069 2069
 
2070 2070
             for (let i = 0; i < response.data.data.list.length; i++) {
2071 2071
               this.all_table_data.push(response.data.data.list[i])
2072
-              if (response.data.data.list[i].his_patient.order.order_status == 0 || response.data.data.list[i].his_patient.order.order_status == 1 || response.data.data.list[i].his_patient.order.order_status == 3) {
2072
+              if (response.data.data.list[i].order.order_status == 0 || response.data.data.list[i].order.order_status == 1 || response.data.data.list[i].order.order_status == 3) {
2073 2073
                 one_count = one_count + 1
2074 2074
               }
2075 2075
 
@@ -2085,16 +2085,16 @@
2085 2085
               case 1:
2086 2086
                 this.patientTableData = []
2087 2087
                 for (let i = 0; i < this.all_table_data.length; i++) {
2088
-                  if (this.all_table_data[i].his_patient.order.order_status == 0 || this.all_table_data[i].his_patient.order.order_status == 1) {
2088
+                  if (this.all_table_data[i].order.order_status == 0 || this.all_table_data[i].order.order_status == 1) {
2089 2089
                     this.patientTableData.push(this.all_table_data[i])
2090 2090
                   }
2091 2091
 
2092 2092
                 }
2093 2093
                 for (let i = 0; i < this.patientTableData.length; i++) {
2094
-                  if (this.patientInfo.id == this.patientTableData[i].id) {
2094
+                  if (this.patientInfo.id == this.patientTableData[i].patient_id) {
2095 2095
                     this.current_index = i
2096 2096
                     this.$refs.tab.setCurrentRow(this.patientTableData[i])
2097
-                    this.getPatientInformation(this.patientTableData[i].id, this.patientTableData[i].his_patient.order.number, this.patientTableData[i].his_patient.id)
2097
+                    this.getPatientInformation(this.patientTableData[i].patient_id, this.patientTableData[i].order.number, this.patientTableData[i].id)
2098 2098
 
2099 2099
                   }
2100 2100
                 }
@@ -2199,7 +2199,7 @@
2199 2199
 
2200 2200
               for (let i = 0; i < response.data.data.list.length; i++) {
2201 2201
                 this.all_table_data.push(response.data.data.list[i])
2202
-                if (response.data.data.list[i].his_patient.order.order_status == 0 || response.data.data.list[i].his_patient.order.order_status == 1 || response.data.data.list[i].his_patient.order.order_status == 3) {
2202
+                if (response.data.data.list[i].order.order_status == 0 || response.data.data.list[i].order.order_status == 1 || response.data.data.list[i].order.order_status == 3) {
2203 2203
                   one_count = one_count + 1
2204 2204
                 }
2205 2205
 
@@ -2216,7 +2216,7 @@
2216 2216
 
2217 2217
               for (let i = 0; i < response.data.data.list_two.length; i++) {
2218 2218
                 this.hisPatientDatas.push(response.data.data.list_two[i])
2219
-                if (response.data.data.list_two[i].his_patient.order.order_status == 0 || response.data.data.list_two[i].his_patient.order.order_status == 1) {
2219
+                if (response.data.data.list_two[i].order.order_status == 0 || response.data.data.list_two[i].order.order_status == 1) {
2220 2220
                   one_count = one_count + 1
2221 2221
                 }
2222 2222
 
@@ -2243,7 +2243,7 @@
2243 2243
                 if (this.activeName == 'first') {
2244 2244
 
2245 2245
                   for (let i = 0; i < this.all_table_data.length; i++) {
2246
-                    if (this.all_table_data[i].his_patient.order.order_status == 0 || this.all_table_data[i].his_patient.order.order_status == 1) {
2246
+                    if (this.all_table_data[i].order.order_status == 0 || this.all_table_data[i].order.order_status == 1) {
2247 2247
                       this.patientTableData.push(this.all_table_data[i])
2248 2248
                     }
2249 2249
 
@@ -2251,7 +2251,7 @@
2251 2251
 
2252 2252
                 } else {
2253 2253
                   for (let i = 0; i < this.hisPatientDatas.length; i++) {
2254
-                    if (this.hisPatientDatas[i].his_patient.order.order_status == 0 || this.hisPatientDatas[i].his_patient.order.order_status == 1) {
2254
+                    if (this.hisPatientDatas[i].order.order_status == 0 || this.hisPatientDatas[i].order.order_status == 1) {
2255 2255
                       this.patientTableData.push(this.hisPatientDatas[i])
2256 2256
                     }
2257 2257
 
@@ -2261,7 +2261,7 @@
2261 2261
 
2262 2262
                 this.current_index = 0
2263 2263
                 this.$refs.tab.setCurrentRow(this.patientTableData[0])
2264
-                this.getPatientInformation(this.patientTableData[0].id, this.patientTableData[0].his_patient.order.number, this.patientTableData[0].his_patient.id)
2264
+                this.getPatientInformation(this.patientTableData[0].patient_id, this.patientTableData[0].order.number, this.patientTableData[0].id)
2265 2265
 
2266 2266
                 break
2267 2267
               case 2:
@@ -2363,7 +2363,7 @@
2363 2363
             let three_count = 0
2364 2364
             for (let i = 0; i < response.data.data.list.length; i++) {
2365 2365
               this.all_table_data.push(response.data.data.list[i])
2366
-              if (response.data.data.list[i].his_patient.order.order_status == 0 || response.data.data.list[i].his_patient.order.order_status == 1 || response.data.data.list[i].his_patient.order.order_status == 3) {
2366
+              if (response.data.data.list[i].order.order_status == 0 || response.data.data.list[i].order.order_status == 1 || response.data.data.list[i].order.order_status == 3) {
2367 2367
                 one_count = one_count + 1
2368 2368
               }
2369 2369
 
@@ -2379,13 +2379,13 @@
2379 2379
               case 1:
2380 2380
                 this.patientTableData = []
2381 2381
                 for (let i = 0; i < this.all_table_data.length; i++) {
2382
-                  if (this.all_table_data[i].his_patient.order.order_status == 0 || this.all_table_data[i].his_patient.order.order_status == 1 || this.all_table_data[i].his_patient.order.order_status == 3) {
2382
+                  if (this.all_table_data[i].order.order_status == 0 || this.all_table_data[i].order.order_status == 1 || this.all_table_data[i].order.order_status == 3) {
2383 2383
                     this.patientTableData.push(this.all_table_data[i])
2384 2384
                   }
2385 2385
                 }
2386 2386
 
2387 2387
                 this.$refs.tab.setCurrentRow(this.patientTableData[0])
2388
-                this.getPatientInformation(this.patientTableData[0].id, this.patientTableData[0].his_patient.order.number, this.patientTableData[0].his_patient.id)
2388
+                this.getPatientInformation(this.patientTableData[0].patient_id, this.patientTableData[0].order.number, this.patientTableData[0].id)
2389 2389
 
2390 2390
                 break
2391 2391
               case 2:
@@ -2620,7 +2620,7 @@
2620 2620
         this.prescriptions = []
2621 2621
         this.month_prescriptions = []
2622 2622
         if(this.radio == 1){
2623
-          this.getPatientInformation(val.id, val.his_patient.order.number, val.his_patient.id)
2623
+          this.getPatientInformation(val.patient_id, val.order.number, val.id)
2624 2624
         }else{
2625 2625
           this.getPatientInformation(val.id, val.number, val.his_patient_id)
2626 2626
 

+ 63 - 6
src/xt_pages/outpatientTool/components/detail.vue Dosyayı Görüntüle

@@ -12,6 +12,7 @@
12 12
                     <!--</el-button>-->
13 13
                     <el-input size="small" style="width:150px;" v-model="keywords" @input="searchAction"
14 14
                               @keyup.enter.native='searchAction'
15
+                              placeholder="请输入患者姓名"
15 16
                               class="filter-item"/>
16 17
                     <el-select size="small" v-model="item_type" placeholder="请选择"
17 18
                                style="width:150px;margin-left:10px;" @change="changeItem">
@@ -54,6 +55,10 @@
54 55
             <el-table :data="tableData" border :row-style="{ color: '#303133' }"
55 56
                       :header-cell-style="{backgroundColor: 'rgb(245, 247, 250)',color: '#606266'}"
56 57
                       :span-method="merge"
58
+                      show-summary
59
+                      :summary-method="getTotal"
60
+                      max-height="600"
61
+
57 62
                       v-loading="detail_loading"
58 63
                       highlight-current-row>
59 64
 
@@ -79,7 +84,7 @@
79 84
                     </template>
80 85
                 </el-table-column>
81 86
 
82
-                <el-table-column align="center" prop="name" label="费用总额">
87
+                <el-table-column align="center" prop="total" label="费用总额">
83 88
                     <template slot-scope="scope">
84 89
                         <div>{{scope.row.total.toFixed(2)}}</div>
85 90
                     </template>
@@ -107,6 +112,8 @@
107 112
       return {
108 113
         detail_loading:false,
109 114
         tempArr: [],
115
+        pos:0,
116
+
110 117
         sameRowArr: [],
111 118
         keywords: '',
112 119
         tableData: [],
@@ -207,9 +214,17 @@
207 214
                   newObj['price'] = orders[b].order_info[c].pric
208 215
                   if (orders[b].order_info[c].advice_id > 0 && orders[b].order_info[c].project_id == 0) {
209 216
                     newObj['type'] = 1
210
-                    newObj['item_name'] = orders[b].order_info[c].advice.advice_name
217
+                    // newObj['item_name'] = orders[b].order_info[c].advice.advice_name
211 218
                     newObj['item_id'] = orders[b].order_info[c].advice.drug_id
212 219
 
220
+                    if(orders[b].order_info[c].advice.drug.min_unit != orders[b].order_info[c].advice.drug.dose_unit) {
221
+                      newObj['item_name'] = orders[b].order_info[c].advice.advice_name + "( " + orders[b].order_info[c].advice.drug.dose + orders[b].order_info[c].advice.drug.dose_unit + "*" + orders[b].order_info[c].advice.drug.min_number + orders[b].order_info[c].advice.drug.min_unit + "/" + orders[b].order_info[c].advice.drug.max_unit + " )"
222
+                    }else{
223
+
224
+                      newObj['item_name'] = ""
225
+                    }
226
+
227
+
213 228
                   }
214 229
                   if (orders[b].order_info[c].advice_id == 0 && orders[b].order_info[c].project_id > 0) {
215 230
                     newObj['type'] = 2
@@ -217,8 +232,12 @@
217 232
 
218 233
                     if (orders[b].order_info[c].project.type == 2) {
219 234
                       newObj['item_name'] = orders[b].order_info[c].project.project.project_name
235
+
236
+
220 237
                     } else if (orders[b].order_info[c].project.type == 3) {
221 238
                       newObj['item_name'] = orders[b].order_info[c].project.good_info.good_name + "( "+ orders[b].order_info[c].project.good_info.specification_name+" )"
239
+
240
+
222 241
                     }
223 242
                   }
224 243
                   obj.order_info.push(newObj)
@@ -226,7 +245,7 @@
226 245
               }
227 246
               tempPatientsTwo.push(obj)
228 247
             }
229
-            console.log(tempPatientsTwo)
248
+
230 249
 
231 250
             for (let d = 0; d < tempPatientsTwo.length; d++) {
232 251
               tempPatientsTwo[d]['new_order_info'] = []
@@ -283,7 +302,10 @@
283 302
             for (let i = 0; i < tempPatientsTwo.length; i++) {
284 303
               let total = 0
285 304
               for (let b = 0; b < tempPatientsTwo[i].new_order_info.length; b++) {
286
-                if (tempPatientsTwo[i].new_order_info[b].item_name.length != 0) {
305
+                let new_name = tempPatientsTwo[i].new_order_info[b].item_name
306
+                new_name=new_name.replace("( ","");
307
+                new_name=new_name.replace(" )","");
308
+                if (new_name.length != 0) {
287 309
                   total = parseFloat(total) + parseFloat((parseFloat(tempPatientsTwo[i].new_order_info[b].count.toString()) * parseFloat(tempPatientsTwo[i].new_order_info[b].price.toString().toString())).toFixed(2))
288 310
                 }
289 311
               }
@@ -293,7 +315,11 @@
293 315
             for (let i = 0; i < tempPatientsTwo.length; i++) {
294 316
               console.log(tempPatientsTwo[i].total)
295 317
               for (let b = 0; b < tempPatientsTwo[i].new_order_info.length; b++) {
296
-                if (tempPatientsTwo[i].new_order_info[b].item_name.length != 0) {
318
+                let new_name = tempPatientsTwo[i].new_order_info[b].item_name
319
+                new_name=new_name.replace("( ","");
320
+                new_name=new_name.replace(" )","");
321
+
322
+                if (new_name.length != 0) {
297 323
                   let obj = {
298 324
                     name: tempPatientsTwo[i].name,
299 325
                     patient_id: tempPatientsTwo[i].patient_id,
@@ -302,7 +328,12 @@
302 328
                     item_name: tempPatientsTwo[i].new_order_info[b].item_name,
303 329
                     item_id: tempPatientsTwo[i].new_order_info[b].item_id,
304 330
                     count: tempPatientsTwo[i].new_order_info[b].count,
305
-                    total: tempPatientsTwo[i].total
331
+
332
+                  }
333
+                  if(b == 0){
334
+                    obj['total'] =  tempPatientsTwo[i].total
335
+                  }else{
336
+                    obj['total'] = 0
306 337
                   }
307 338
                   this.tableData.push(obj)
308 339
                 }
@@ -442,6 +473,32 @@
442 473
             colspan: _col
443 474
           }
444 475
         }
476
+      }, getTotal(param) {
477
+        const { columns, data } = param
478
+        const sums = []
479
+        columns.forEach((column, index) => {
480
+          if (index === 0) {
481
+            sums[index] = '合计'
482
+            return
483
+          }
484
+          console.log(data)
485
+          const values = data.map(item => Number(item[column.property]))
486
+          if (column.property === 'total') {
487
+            sums[index] = values.reduce((prev, curr) => {
488
+              const value = Number(curr)
489
+              if (!isNaN(value)) {
490
+                return prev + curr
491
+              } else {
492
+                return prev
493
+              }
494
+            }, 0)
495
+            sums[index] = sums[index].toFixed(2)
496
+          } else {
497
+            sums[index] = ''
498
+          }
499
+        })
500
+
501
+        return sums
445 502
       }
446 503
     },
447 504
     created() {

+ 8 - 4
src/xt_pages/outpatientTool/components/gather.vue Dosyayı Görüntüle

@@ -12,6 +12,8 @@
12 12
                     <!--</el-button>-->
13 13
                     <el-input size="small" style="width:150px;" v-model="keywords" @input="searchAction"
14 14
                               @keyup.enter.native='searchAction'
15
+                              placeholder="请输入患者姓名"
16
+
15 17
                               class="filter-item"/>
16 18
                     <el-select size="small" v-model="item_type" placeholder="请选择"
17 19
                                style="width:150px;margin-left:10px;" @change="changeItem">
@@ -104,6 +106,7 @@
104 106
         tempArr: [],
105 107
         sameRowArr: [],
106 108
         keywords: '',
109
+        pos:0,
107 110
 
108 111
         tableData: [],
109 112
         chargeDate: [moment(new Date()).add('year', 0).format('YYYY-MM-DD'), moment(new Date()).add('year', 0).format('YYYY-MM-DD')],
@@ -271,14 +274,14 @@
271 274
                   obj['patient_id'] = tempPatientsTwo[d].patient_id
272 275
                   this.tableData.push(obj)
273 276
 
274
-                  obj2['sum'] = price + price2 + price3
277
+                  obj2['sum'] = 0
275 278
                   obj2['price'] = price2
276 279
                   obj2['item_name'] = '药品'
277 280
                   obj2['name'] = tempPatientsTwo[d].name
278 281
                   obj2['patient_id'] = tempPatientsTwo[d].patient_id
279 282
                   this.tableData.push(obj2)
280 283
 
281
-                  obj3['sum'] = price + price2 + price3
284
+                  obj3['sum'] = 0
282 285
                   obj3['price'] = price3
283 286
                   obj3['item_name'] = '耗材'
284 287
                   obj3['name'] = tempPatientsTwo[d].name
@@ -458,19 +461,20 @@
458 461
             sums[index] = '合计'
459 462
             return
460 463
           }
464
+          console.log(data)
461 465
           const values = data.map(item => Number(item[column.property]))
462 466
           if (column.property === 'sum') {
463 467
             sums[index] = values.reduce((prev, curr) => {
464 468
               const value = Number(curr)
465 469
               if (!isNaN(value)) {
466
-                return prev+ curr
470
+                return prev + curr
467 471
               } else {
468 472
                 return prev
469 473
               }
470 474
             }, 0)
471 475
             sums[index] = sums[index].toFixed(2)
472 476
           } else {
473
-            sums[index] = '--'
477
+            sums[index] = ''
474 478
           }
475 479
         })
476 480
 

+ 20 - 9
src/xt_pages/outpatientTool/components/settle.vue Dosyayı Görüntüle

@@ -12,6 +12,7 @@
12 12
                     <!--</el-button>-->
13 13
                     <el-input size="small" style="width:150px;" v-model="keywords" @input="searchAction"
14 14
                               @keyup.enter.native='searchAction'
15
+                              placeholder="请输入患者姓名"
15 16
                               class="filter-item"/>
16 17
                     <el-select size="small" v-model="item_type" placeholder="请选择"
17 18
                                style="width:150px;margin-left:10px;" @change="changeItem">
@@ -69,28 +70,28 @@
69 70
                     </template>
70 71
                 </el-table-column>
71 72
 
72
-                <el-table-column align="center" prop="item_name" label="结算类型">
73
+                <el-table-column align="center" prop="is_medicine_insurance" label="结算类型">
73 74
                     <template slot-scope="scope">
74 75
                         <div v-if="scope.row.is_medicine_insurance == 0">自费</div>
75 76
                         <div v-if="scope.row.is_medicine_insurance == 1">医保</div>
76 77
                     </template>
77 78
                 </el-table-column>
78
-                <el-table-column align="center" prop="item_name" label="处方类型">
79
+                <el-table-column align="center" prop="med_type" label="处方类型">
79 80
                     <template slot-scope="scope">
80 81
                         <div v-if="scope.row.med_type == '14'">门诊特殊病</div>
81 82
                         <div v-if="scope.row.med_type == '11'">普通门诊</div>
82 83
                     </template>
83 84
                 </el-table-column>
84
-                <el-table-column align="center" prop="item_name" label="医疗费总额">
85
+                <el-table-column align="center" prop="medfee_sumamt" label="医疗费总额">
85 86
                     <template slot-scope="scope">{{scope.row.medfee_sumamt}}</template>
86 87
                 </el-table-column>
87
-                <el-table-column align="center" prop="item_name" label="基金支付金额">
88
+                <el-table-column align="center" prop="fund_pay_sumamt" label="基金支付金额">
88 89
                     <template slot-scope="scope">{{scope.row.fund_pay_sumamt}}</template>
89 90
                 </el-table-column>
90
-                <el-table-column align="center" prop="item_name" label="个人账户支付金额">
91
+                <el-table-column align="center" prop="acct_pay" label="个人账户支付金额">
91 92
                     <template slot-scope="scope">{{scope.row.acct_pay}}</template>
92 93
                 </el-table-column>
93
-                <el-table-column align="center" prop="item_name" label="个人支付金额">
94
+                <el-table-column align="center" prop="psn_cash_pay" label="个人支付金额">
94 95
                     <template slot-scope="scope">{{scope.row.psn_cash_pay}}</template>
95 96
                 </el-table-column>
96 97
                 <el-table-column align="center" prop="total" label="费用总额">
@@ -208,7 +209,15 @@
208 209
             for (let i = 0; i < data.length; i++) {
209 210
               for (let b = 0; b < data[i].orders.length; b++) {
210 211
                 let order = data[i].orders[b]
211
-                order['total'] = data[i].total
212
+
213
+                if(b == 0){
214
+                  order['total'] = data[i].total
215
+
216
+                }else{
217
+                  order['total'] = 0
218
+
219
+                }
220
+
212 221
                 this.tableData.push(order)
213 222
 
214 223
               }
@@ -288,7 +297,8 @@
288 297
             colspan: _col
289 298
           }
290 299
         }
291
-      }, getTotal(param) {
300
+      },
301
+      getTotal(param) {
292 302
         const { columns, data } = param
293 303
         const sums = []
294 304
         columns.forEach((column, index) => {
@@ -296,6 +306,7 @@
296 306
             sums[index] = '合计'
297 307
             return
298 308
           }
309
+          console.log(data)
299 310
           const values = data.map(item => Number(item[column.property]))
300 311
           if (column.property === 'total') {
301 312
             sums[index] = values.reduce((prev, curr) => {
@@ -308,7 +319,7 @@
308 319
             }, 0)
309 320
             sums[index] = sums[index].toFixed(2)
310 321
           } else {
311
-            sums[index] = '--'
322
+            sums[index] = ''
312 323
           }
313 324
         })
314 325