Browse Source

Merge remote-tracking branch 'origin/20201109_pc_vue_new_branch' into 20201109_pc_vue_new_branch

mainqaq 3 years ago
parent
commit
439865e0b7

+ 31 - 18
src/xt_pages/outpatientTool/components/detailStatistics.vue View File

48
     <el-table :data="tableData" border :row-style="{ color: '#303133' }" ref="table"
48
     <el-table :data="tableData" border :row-style="{ color: '#303133' }" ref="table"
49
               :header-cell-style="{backgroundColor: 'rgb(245, 247, 250)',color: '#606266'}"
49
               :header-cell-style="{backgroundColor: 'rgb(245, 247, 250)',color: '#606266'}"
50
               max-height="600"
50
               max-height="600"
51
+              show-summary
51
               v-loading="detail_loading"
52
               v-loading="detail_loading"
52
               highlight-current-row>
53
               highlight-current-row>
53
       <el-table-column type="index" label="序号" width="60px" align="center">
54
       <el-table-column type="index" label="序号" width="60px" align="center">
55
           {{scope.row.index}}
56
           {{scope.row.index}}
56
         </template>
57
         </template>
57
       </el-table-column>
58
       </el-table-column>
58
-      <el-table-column align="center" prop="name" label="处方日期">
59
+      <el-table-column align="center" label="处方日期">
59
         <template slot-scope="scope">{{getTime(scope.row.record_date)}}</template>
60
         <template slot-scope="scope">{{getTime(scope.row.record_date)}}</template>
60
       </el-table-column>
61
       </el-table-column>
61
-      <el-table-column align="center" prop="name" label="费用编码">
62
+      <el-table-column align="center" label="费用编码">
62
         <template slot-scope="scope">
63
         <template slot-scope="scope">
63
           {{scope.row.number}}
64
           {{scope.row.number}}
64
         </template>
65
         </template>
65
       </el-table-column>
66
       </el-table-column>
66
-      <el-table-column align="center" prop="name" label="项目名称">
67
+      <el-table-column align="center" label="项目名称">
67
         <template slot-scope="scope">
68
         <template slot-scope="scope">
68
           <span v-if="scope.row.advice_id > 0">{{scope.row.advice.advice_name}}</span>
69
           <span v-if="scope.row.advice_id > 0">{{scope.row.advice.advice_name}}</span>
69
           <span v-if="scope.row.project_id > 0">
70
           <span v-if="scope.row.project_id > 0">
72
           </span>
73
           </span>
73
         </template>
74
         </template>
74
       </el-table-column>
75
       </el-table-column>
75
-      <el-table-column align="center" prop="name" label="规格">
76
+      <el-table-column align="center" label="规格">
76
         <template slot-scope="scope">
77
         <template slot-scope="scope">
77
           <span v-if="scope.row.advice_id > 0">{{scope.row.advice.drug.dose}}{{scope.row.advice.drug.dose_unit}}*{{scope.row.advice.drug.min_number}}{{scope.row.advice.drug.min_unit}}/{{scope.row.advice.drug.max_unit}}</span>
78
           <span v-if="scope.row.advice_id > 0">{{scope.row.advice.drug.dose}}{{scope.row.advice.drug.dose_unit}}*{{scope.row.advice.drug.min_number}}{{scope.row.advice.drug.min_unit}}/{{scope.row.advice.drug.max_unit}}</span>
78
           <span v-if="scope.row.project_id > 0">
79
           <span v-if="scope.row.project_id > 0">
81
           </span>
82
           </span>
82
         </template>
83
         </template>
83
       </el-table-column>
84
       </el-table-column>
84
-      <el-table-column align="center" prop="name" label="数量">
85
+      <el-table-column align="center"  label="数量">
85
         <template slot-scope="scope">
86
         <template slot-scope="scope">
86
           {{scope.row.cnt}}
87
           {{scope.row.cnt}}
87
         </template>
88
         </template>
88
       </el-table-column>
89
       </el-table-column>
89
-      <el-table-column align="center" prop="name" label="单位">
90
+      <el-table-column align="center" label="单位">
90
         <template slot-scope="scope">
91
         <template slot-scope="scope">
91
           <span v-if="scope.row.advice_id > 0">{{scope.row.advice.prescribing_number_unit}}</span>
92
           <span v-if="scope.row.advice_id > 0">{{scope.row.advice.prescribing_number_unit}}</span>
92
           <span v-if="scope.row.project_id > 0">
93
           <span v-if="scope.row.project_id > 0">
95
           </span>
96
           </span>
96
         </template>
97
         </template>
97
       </el-table-column>
98
       </el-table-column>
98
-      <el-table-column align="center" prop="name" label="单价">
99
+      <el-table-column align="center" label="单价">
99
         <template slot-scope="scope">
100
         <template slot-scope="scope">
100
           {{scope.row.pric}}
101
           {{scope.row.pric}}
101
         </template>
102
         </template>
102
       </el-table-column>
103
       </el-table-column>
103
-      <el-table-column align="center" prop="name" label="金额">
104
+      <el-table-column align="center" label="金额" prop="total_price">
104
         <template slot-scope="scope">
105
         <template slot-scope="scope">
105
           <div>
106
           <div>
106
             {{scope.row.total_price}}
107
             {{scope.row.total_price}}
107
           </div>
108
           </div>
108
         </template>
109
         </template>
109
       </el-table-column>
110
       </el-table-column>
111
+      <el-table-column align="center" prop="name" label="备注">
112
+        <template slot-scope="scope">
113
+          <div>
114
+            <span v-if="scope.row.advice_id > 0">{{scope.row.advice.remark}}</span>
115
+            <span v-if="scope.row.project_id > 0">
116
+              <span v-if="scope.row.project.type == 2">{{scope.row.project.remark}}</span>
117
+              <span v-if="scope.row.project.type == 3">{{scope.row.project.remark}}</span>
118
+            </span>
119
+          </div>
120
+        </template>
121
+      </el-table-column>
110
      
122
      
111
     </el-table>
123
     </el-table>
112
     <div style="display:flex;justify-content: space-around;">
124
     <div style="display:flex;justify-content: space-around;">
222
             obj.total_price += (this.tableData[i].cnt * this.tableData[i].pric)  
234
             obj.total_price += (this.tableData[i].cnt * this.tableData[i].pric)  
223
           }
235
           }
224
           obj.total_price = (obj.total_price).toFixed(2)
236
           obj.total_price = (obj.total_price).toFixed(2)
225
-          this.tableData.push(obj)
226
-          console.log("tabledata23233232233232",this.tableData)
237
+          // this.tableData.push(obj)cccc
238
+          // console.log("tabledata23233232233232",this.tableData)
227
           var new_arr = []
239
           var new_arr = []
228
        
240
        
229
           if(this.keywords!=""){
241
           if(this.keywords!=""){
250
             }
262
             }
251
             var objs = {index:"合计",total_price:0,record_date:"0"}
263
             var objs = {index:"合计",total_price:0,record_date:"0"}
252
             objs.total_price = this.getPrice(new_arr)
264
             objs.total_price = this.getPrice(new_arr)
253
-            new_arr.push(objs)
265
+            // new_arr.push(objs)
254
             
266
             
255
             this.tableData = new_arr
267
             this.tableData = new_arr
256
           }
268
           }
269
+
257
            if(this.id == 1){
270
            if(this.id == 1){
258
               var obj = {index:"合计",total_price:0,record_date:"0"}
271
               var obj = {index:"合计",total_price:0,record_date:"0"}
259
               var new_arr = []
272
               var new_arr = []
266
               }
279
               }
267
               this.tableData = []
280
               this.tableData = []
268
               obj.total_price = this.getPrice(new_arr)
281
               obj.total_price = this.getPrice(new_arr)
269
-              new_arr.push(obj)
282
+              // new_arr.push(obj)
270
               this.tableData = new_arr
283
               this.tableData = new_arr
271
            }
284
            }
272
           if(this.id == 2){
285
           if(this.id == 2){
284
             console.log("项目new_arr",new_arr)
297
             console.log("项目new_arr",new_arr)
285
             this.tableData = []
298
             this.tableData = []
286
             obj.total_price = this.getPrice(new_arr)
299
             obj.total_price = this.getPrice(new_arr)
287
-            console.log("ar3233223232",new_arr)
288
-            new_arr.push(obj)
300
+            // console.log("ar3233223232",new_arr)
301
+            // new_arr.push(obj)
289
             this.tableData = new_arr
302
             this.tableData = new_arr
290
             }
303
             }
291
 
304
 
303
             }
316
             }
304
             this.tableData = []
317
             this.tableData = []
305
             obj.total_price = this.getPrice(new_arr)
318
             obj.total_price = this.getPrice(new_arr)
306
-            new_arr.push(obj)
307
-            console.log("new_arr2332323232",new_arr)
319
+            // new_arr.push(obj)
320
+            // console.log("new_arr2332323232",new_arr)
308
             this.tableData = new_arr
321
             this.tableData = new_arr
309
           }          
322
           }          
310
        }
323
        }
311
      })
324
      })
312
     },
325
     },
313
     getAllPice(){
326
     getAllPice(){
314
-     console.log("表哥233323232323223",this.tableData)
327
+    //  console.log("表哥233323232323223",this.tableData)
315
       var total_price = 0
328
       var total_price = 0
316
       for(let i=0;i<this.tableData.length;i++){
329
       for(let i=0;i<this.tableData.length;i++){
317
         if(this.tableData[i].index =="合计"){
330
         if(this.tableData[i].index =="合计"){
321
       return total_price
334
       return total_price
322
     },
335
     },
323
     getActPay(){
336
     getActPay(){
324
-      console.log("list2332323232323232",this.list)
337
+      // console.log("list2332323232323232",this.list)
325
       var act_pay = 0
338
       var act_pay = 0
326
       for(let i=0;i<this.list.length;i++){
339
       for(let i=0;i<this.list.length;i++){
327
         for(let j=0;j<this.list[i].orders.length;j++){
340
         for(let j=0;j<this.list[i].orders.length;j++){

+ 70 - 68
src/xt_pages/outpatientTool/components/gatherStatistics.vue View File

49
     <el-table :data="tableList" border :row-style="{ color: '#303133' }" ref="table"
49
     <el-table :data="tableList" border :row-style="{ color: '#303133' }" ref="table"
50
               :header-cell-style="{backgroundColor: 'rgb(245, 247, 250)',color: '#606266'}"
50
               :header-cell-style="{backgroundColor: 'rgb(245, 247, 250)',color: '#606266'}"
51
               max-height="600"
51
               max-height="600"
52
+              show-summary
52
               v-loading="detail_loading"
53
               v-loading="detail_loading"
53
               highlight-current-row>
54
               highlight-current-row>
54
       <el-table-column type="index" label="序号" width="60px" align="center">
55
       <el-table-column type="index" label="序号" width="60px" align="center">
55
            <template slot-scope="scope">{{scope.row.index}}</template>
56
            <template slot-scope="scope">{{scope.row.index}}</template>
56
       </el-table-column>
57
       </el-table-column>
57
-      <el-table-column align="center" prop="name" label="处方日期">
58
+      <el-table-column align="center" label="处方日期">
58
         <template slot-scope="scope">
59
         <template slot-scope="scope">
59
           <span v-if="scope.row.record_date > 0">{{getTimes(scope.row.record_date)}} </span> 
60
           <span v-if="scope.row.record_date > 0">{{getTimes(scope.row.record_date)}} </span> 
60
         </template>
61
         </template>
61
       </el-table-column>
62
       </el-table-column>
62
-      <el-table-column align="center" prop="name" label="费用分类">
63
+      <el-table-column align="center" label="费用分类">
63
         <template slot-scope="scope">
64
         <template slot-scope="scope">
64
            <span v-if="scope.row.type == 1">
65
            <span v-if="scope.row.type == 1">
65
               {{getAdviceMedChrgintmType(scope.row.name)}}
66
               {{getAdviceMedChrgintmType(scope.row.name)}}
72
            </span>
73
            </span>
73
         </template>
74
         </template>
74
       </el-table-column>
75
       </el-table-column>
75
-      <el-table-column align="center" prop="name" label="项目名称">
76
+      <el-table-column align="center" label="项目名称">
76
         <template slot-scope="scope">
77
         <template slot-scope="scope">
77
           <span>{{scope.row.name}}</span>
78
           <span>{{scope.row.name}}</span>
78
         </template>
79
         </template>
79
       </el-table-column>
80
       </el-table-column>
80
-      <el-table-column align="center" prop="name" label="规格型号">
81
+      <el-table-column align="center" label="规格型号">
81
         <template slot-scope="scope">
82
         <template slot-scope="scope">
82
           {{ scope.row.spec }}
83
           {{ scope.row.spec }}
83
         </template>
84
         </template>
84
       </el-table-column>
85
       </el-table-column>
85
-      <el-table-column align="center" prop="name" label="数量">
86
+      <el-table-column align="center" label="数量">
86
         <template slot-scope="scope">
87
         <template slot-scope="scope">
87
           {{ scope.row.count }}
88
           {{ scope.row.count }}
88
           {{ scope.row.unit }}
89
           {{ scope.row.unit }}
89
         </template>
90
         </template>
90
       </el-table-column>
91
       </el-table-column>
91
-      <el-table-column align="center" prop="name" label="单价">
92
+      <el-table-column align="center" label="单价">
92
         <template slot-scope="scope">
93
         <template slot-scope="scope">
93
           {{scope.row.price}}
94
           {{scope.row.price}}
94
         </template>
95
         </template>
95
       </el-table-column>
96
       </el-table-column>
96
-      <el-table-column align="center" prop="name" label="金额">
97
+      <el-table-column align="center" label="金额" prop="total_all">
97
         <template slot-scope="scope">
98
         <template slot-scope="scope">
98
           <span v-if="scope.row.is_total == 1">{{ scope.row.total }}</span>  
99
           <span v-if="scope.row.is_total == 1">{{ scope.row.total }}</span>  
99
           <span v-if="scope.row.is_total == 2">{{ (scope.row.price * scope.row.count).toFixed(2) }}</span>  
100
           <span v-if="scope.row.is_total == 2">{{ (scope.row.price * scope.row.count).toFixed(2) }}</span>  
100
         </template>
101
         </template>
101
       </el-table-column>
102
       </el-table-column>
102
-      <el-table-column align="center" prop="name" label="医保类别">
103
+      <el-table-column align="center" label="医保类别">
103
         <template slot-scope="scope">
104
         <template slot-scope="scope">
104
          <span v-if="balanceAccountsType == 2">{{getChrgitmLv(scope.row.chrgitm_lv)}}</span>
105
          <span v-if="balanceAccountsType == 2">{{getChrgitmLv(scope.row.chrgitm_lv)}}</span>
105
 
106
 
202
       order_info_list:[],
203
       order_info_list:[],
203
       balanceAccountsType:0,
204
       balanceAccountsType:0,
204
       medicalInsuranceLevelList:[],
205
       medicalInsuranceLevelList:[],
206
+      id:0,
205
     }
207
     }
206
   },
208
   },
207
   methods: {
209
   methods: {
217
         }
219
         }
218
         var obj ={index:"合计",is_total:1,total:0}
220
         var obj ={index:"合计",is_total:1,total:0}
219
         obj.total = this.getPrice(new_arr)
221
         obj.total = this.getPrice(new_arr)
220
-        new_arr.push(obj)
222
+        // new_arr.push(obj)
221
         this.tableList = []
223
         this.tableList = []
222
         this.tableList = new_arr
224
         this.tableList = new_arr
223
       }else{
225
       }else{
236
       this.getGatherDetailList()
238
       this.getGatherDetailList()
237
     },
239
     },
238
     changeItem(id) {
240
     changeItem(id) {
239
-      if(id == 0){
240
-        this.tableList = []
241
-        this.getGatherDetailList()
242
-      }
243
-      
244
-      if(id == 1){
245
-       var new_arr = []
246
-       for(let i=0;i<this.tableList.length;i++){
247
-        if(this.tableList[i].is_total != 1){
248
-          if(this.tableList[i].type == 1){
249
-            new_arr.push(this.tableList[i])
250
-          }  
251
-        }
252
-       }
253
-       this.tableList = []
254
-       this.tableList = new_arr
255
-      }
256
-      if(id == 2){
257
-       var new_arr = []
258
-     
259
-       for(let i=0;i<this.tableList.length;i++){
260
-        if(this.tableList[i].is_total != 1){
261
-          if(this.tableList[i].type == 2){
262
-            new_arr.push(this.tableList[i])
263
-          }  
264
-        }
265
-       }
266
-       this.tableList = []
267
-       this.tableList = new_arr
268
-      }
269
-      if(id == 3){
270
-       console.log("tabl4233223232323323223",this.tableList)
271
-       var new_arr = []
272
-       for(let i=0;i<this.tableList.length;i++){
273
-        if(this.tableList[i].is_total != 1){
274
-          if(this.tableList[i].project_type == 3){
275
-            new_arr.push(this.tableList[i])
276
-          }  
277
-        }
278
-       }
279
-       console.log("new_ar3232332323232233223",new_arr)
280
-       this.tableList = []
281
-       this.tableList = new_arr
282
-      }
241
+      this.id = id
242
+      this.tableList = []
243
+      this.getGatherDetailList()
283
     },
244
     },
284
     getGatherDetailList() {
245
     getGatherDetailList() {
285
       let start_time = this.chargeDate[0]
246
       let start_time = this.chargeDate[0]
302
             this.his_hospital = response.data.data.his_hospital
263
             this.his_hospital = response.data.data.his_hospital
303
 
264
 
304
             var order_info = response.data.data.order_info
265
             var order_info = response.data.data.order_info
305
-           
306
-            for(let i=0;i<order_info.length;i++){
307
-              order_info[i].med_chrgitm_type = this.getType(order_info[i].med_chrgitm_type)
308
-              order_info[i].chrgitm_lv  = this.getMedicineInsuranceType(order_info[i].chrgitm_lv)
266
+            if(order_info!=null){
267
+              for(let i=0;i<order_info.length;i++){
268
+                order_info[i].med_chrgitm_type = this.getType(order_info[i].med_chrgitm_type)
269
+                order_info[i].chrgitm_lv  = this.getMedicineInsuranceType(order_info[i].chrgitm_lv)
270
+             }
271
+              var prescription = response.data.data.prescription
272
+              this.setMonthPrescription(prescription)
309
             }
273
             }
310
-            console.log("order_info32323232323232233232323232",order_info)
311
             this.order_info_list = order_info
274
             this.order_info_list = order_info
312
-            var prescription = response.data.data.prescription
313
           
275
           
314
-            this.setMonthPrescription(prescription)
315
             this.balanceAccountsType = response.data.data.balanceAccountsType
276
             this.balanceAccountsType = response.data.data.balanceAccountsType
316
 
277
 
317
             this.medicalInsuranceLevelList = response.data.data.medicalInsuranceLevelList
278
             this.medicalInsuranceLevelList = response.data.data.medicalInsuranceLevelList
436
                 return cur
397
                 return cur
437
               }, []) // 设置cur默认类型为数组,并且初始值为空的数组
398
               }, []) // 设置cur默认类型为数组,并且初始值为空的数组
438
               let tempOrderInfo = []
399
               let tempOrderInfo = []
439
-              console.log("med_chrgitm_type323223322323233223",med_chrgitm_types)
440
-              console.log("order_info232322332323232322323",order_info)
400
+            
441
               for (let i = 0; i < med_chrgitm_types.length; i++) {
401
               for (let i = 0; i < med_chrgitm_types.length; i++) {
442
                 let obj = {
402
                 let obj = {
443
                   total: 0,
403
                   total: 0,
449
                     tempDetails.push(order_info[b])
409
                     tempDetails.push(order_info[b])
450
                   }
410
                   }
451
                 }
411
                 }
452
-                console.log("tempDetails2332323232322323",tempDetails)
412
+                
453
               
413
               
454
                 obj.details = this.setNewData(tempDetails)
414
                 obj.details = this.setNewData(tempDetails)
455
                
415
                
471
                 }
431
                 }
472
                
432
                
473
              }
433
              }
434
+
435
+             
436
+    
474
           }
437
           }
438
+
439
+           if(this.id == 1){
440
+             var new_arr = []
441
+             for(let i=0;i<this.tableList.length;i++){
442
+              if(this.tableList[i].is_total != 1){
443
+                if(this.tableList[i].type == 1){
444
+                  new_arr.push(this.tableList[i])
445
+                }  
446
+              }
447
+             }
448
+             this.tableList = []
449
+             this.tableList = new_arr
450
+            }
451
+            if(this.id == 2){
452
+             var new_arr = []
453
+          
454
+             for(let i=0;i<this.tableList.length;i++){
455
+              if(this.tableList[i].is_total != 1){
456
+                if(this.tableList[i].project_type == 2){
457
+                  new_arr.push(this.tableList[i])
458
+                }  
459
+              }
460
+             }
461
+             this.tableList = []
462
+             this.tableList = new_arr
463
+            }
464
+            if(this.id == 3){
465
+             var new_arr = []
466
+             for(let i=0;i<this.tableList.length;i++){
467
+              if(this.tableList[i].is_total != 1){
468
+                if(this.tableList[i].project_type == 3){
469
+                  new_arr.push(this.tableList[i])
470
+                }  
471
+              }
472
+             }
473
+             console.log("this.tableist2332323223323223",this.tableList)
474
+             this.tableList = []
475
+             this.tableList = new_arr
476
+            }
475
         }
477
         }
476
      })
478
      })
477
     },
479
     },
744
        }
746
        }
745
      },
747
      },
746
      toPrint(){
748
      toPrint(){
747
-        this.$router.push({path:"/hisTool/gatherPrint?patient_id="+this.patient_id+"&start_time="+this.chargeDate[0]+"&end_time="+this.chargeDate[1]+"&type="+this.item_type +"&keyword="+this.keywords})
749
+        this.$router.push({path:"/hisTool/gatherPrint?patient_id="+this.patient_id+"&start_time="+this.chargeDate[0]+"&end_time="+this.chargeDate[1]+"&type="+this.item_type +"&keyword="+this.keywords+"&id="+this.id})
748
      },
750
      },
749
      toPrintInvoice(){
751
      toPrintInvoice(){
750
        this.$router.push({path:"/hisTool/gatherPrintInvoice?patient_id="+this.patient_id+"&start_time="+this.chargeDate[0]+"&end_time="+this.chargeDate[1]+"&type="+this.item_type +"&keyword="+this.keywords})
752
        this.$router.push({path:"/hisTool/gatherPrintInvoice?patient_id="+this.patient_id+"&start_time="+this.chargeDate[0]+"&end_time="+this.chargeDate[1]+"&type="+this.item_type +"&keyword="+this.keywords})
850
             count = count + parseFloat(project_month_prescriptions.project[a].count)
852
             count = count + parseFloat(project_month_prescriptions.project[a].count)
851
             obj['price'] = parseFloat(project_month_prescriptions.project[a].price)
853
             obj['price'] = parseFloat(project_month_prescriptions.project[a].price)
852
             obj['remark'] = project_month_prescriptions.project[a].remark
854
             obj['remark'] = project_month_prescriptions.project[a].remark
853
-            obj['type'] = 2
855
+            obj['type'] = 3
854
             obj['record_date'] = project_month_prescriptions.project[a].record_date
856
             obj['record_date'] = project_month_prescriptions.project[a].record_date
855
             obj['is_total'] = 2
857
             obj['is_total'] = 2
856
           }
858
           }
863
       objOne.total = this.getTotalPrice(this.tableList)
865
       objOne.total = this.getTotalPrice(this.tableList)
864
       for(let i=0;i<this.tableList.length;i++){
866
       for(let i=0;i<this.tableList.length;i++){
865
         this.tableList[i].index = i + 1
867
         this.tableList[i].index = i + 1
868
+        this.tableList[i].total_all = (this.tableList[i].count * this.tableList[i].price).toFixed(2)
869
+        // console.log(this.tableList[i].count,'opop')
866
       }
870
       }
867
-      this.tableList.push(objOne)
868
-
869
-      console.log("hh2323323232322323233223",this.tableList)
871
+      // this.tableList.push(objOne)
870
     },
872
     },
871
 
873
 
872
     getTotalPrice(val){
874
     getTotalPrice(val){

+ 73 - 2
src/xt_pages/outpatientTool/gatherPrint.vue View File

311
              }
311
              }
312
           }
312
           }
313
         }
313
         }
314
+
315
+        if(this.$route.query.id == 1){
316
+          var new_arr = []
317
+          var objOne = {index:"合计",is_total:1,total:0}
318
+          objOne.total = this.getTotalPriceTwo(this.tableList)
319
+          for(let i=0;i<this.tableList.length;i++){
320
+          if(this.tableList[i].is_total != 1){
321
+            if(this.tableList[i].type == 1){
322
+              new_arr.push(this.tableList[i])
323
+            }  
324
+           }
325
+          }
326
+          new_arr.push(objOne)
327
+          this.tableList = []
328
+          this.tableList = new_arr
329
+        }
330
+        if(this.$route.query.id == 2){
331
+          var new_arr = []
332
+          var objOne = {index:"合计",is_total:1,total:0}
333
+          objOne.total = this.getTotalPriceTwo(this.tableList)
334
+          for(let i=0;i<this.tableList.length;i++){
335
+          if(this.tableList[i].is_total != 1){
336
+            if(this.tableList[i].project_type == 2){
337
+              new_arr.push(this.tableList[i])
338
+            }  
339
+          }
340
+          }
341
+          this.tableList = []
342
+          new_arr.push(objOne)
343
+          this.tableList = new_arr
344
+        }
345
+        if(this.$route.query.id == 3){
346
+          console.log("2323232332233232322332",this.tableList)
347
+          var new_arr = []
348
+          var objOne = {index:"合计",is_total:1,total:0}
349
+          objOne.total = this.getTotalPriceTwo(this.tableList)
350
+          for(let i=0;i<this.tableList.length;i++){
351
+          if(this.tableList[i].is_total != 1){
352
+            if(this.tableList[i].project_type == 3){
353
+              new_arr.push(this.tableList[i])
354
+            }  
355
+           }
356
+          }
357
+          new_arr.push(objOne)
358
+          this.tableList = []
359
+          this.tableList = new_arr
360
+        }
361
+        console.log("keyworde23232322332323232233232",this.$route.query.keyword)
362
+        
363
+        if(this.$route.query.keyword!=""){
364
+          var new_arr = []
365
+          for(let i=0;i<this.tableList.length;i++){
366
+            if(this.tableList[i].is_total!=1){
367
+              if(this.tableList[i].name.indexOf(this.$route.query.keyword) >-1){
368
+                  new_arr.push(this.tableList[i])
369
+                }
370
+              }
371
+          }
372
+          var obj ={index:"合计",is_total:1,total:0}
373
+          obj.total = this.getTotalPriceTwo(new_arr)
374
+          new_arr.push(obj)
375
+          this.tableList = []
376
+          this.tableList = new_arr
377
+        }
314
      })
378
      })
315
     },
379
     },
316
      getAdviceName(id){
380
      getAdviceName(id){
727
       }
791
       }
728
       return total_price.toFixed(2)
792
       return total_price.toFixed(2)
729
     },
793
     },
794
+    getTotalPriceTwo(val){
795
+      var total_price = 0
796
+      for(let i=0;i<val.length;i++){
797
+        if(val[i].is_total!=1){
798
+          total_price +=val[i].count * val[i].price
799
+        }
800
+      }
801
+      return total_price.toFixed(2)
802
+    },
730
     getAdviceMedChrgintmType(name){
803
     getAdviceMedChrgintmType(name){
731
       var med_chrgitm_type = ""
804
       var med_chrgitm_type = ""
732
       for(let i=0;i<this.order_info_list.length;i++){
805
       for(let i=0;i<this.order_info_list.length;i++){
1014
       return total_price.toFixed(2)  
1087
       return total_price.toFixed(2)  
1015
     },
1088
     },
1016
     getBedName(id){
1089
     getBedName(id){
1017
-      console.log("2332233223232323",id)
1018
-      console.log("bed_number23223232232323232",this.bedNumber)
1019
       var bed_number = ""
1090
       var bed_number = ""
1020
       for(let i=0;i<this.bedNumber.length;i++){
1091
       for(let i=0;i<this.bedNumber.length;i++){
1021
         if(id == this.bedNumber[i].id){
1092
         if(id == this.bedNumber[i].id){