huangyw 2 years ago
parent
commit
1e49dc8f33

+ 85 - 72
src/xt_pages/outpatientTool/components/detailStatistics.vue View File

@@ -238,26 +238,26 @@ export default {
238 238
       }
239 239
     },
240 240
     searchAction() {
241
-      // let table_id = this.$store.getters.pagedata.list.table_id;
242
-      // if (table_id == undefined) {
243
-      //   this.$store.commit("SET_PAGEDATA", {
244
-      //     table_id: 0,
245
-      //     type_id: this.id,
246
-      //     keywords: this.keywords,
247
-      //     start_time: this.chargeDate[0],
248
-      //     end_time: this.chargeDate[1],
249
-      //     patient_id: this.patient_id,
250
-      //   });
251
-      // } else {
252
-      //   this.$store.commit("SET_PAGEDATA", {
253
-      //     table_id: table_id,
254
-      //     type_id: this.id,
255
-      //     keywords: this.keywords,
256
-      //     start_time: this.chargeDate[0],
257
-      //     end_time: this.chargeDate[1],
258
-      //     patient_id: this.patient_id,
259
-      //   });
260
-      // }
241
+      let table_id = this.$store.getters.pagedata.list.table_id;
242
+      if (table_id == undefined) {
243
+        this.$store.commit("SET_PAGEDATA", {
244
+          table_id: 0,
245
+          type_id: this.id,
246
+          keywords: this.keywords,
247
+          start_time: this.chargeDate[0],
248
+          end_time: this.chargeDate[1],
249
+          patient_id: this.patient_id,
250
+        });
251
+      } else {
252
+        this.$store.commit("SET_PAGEDATA", {
253
+          table_id: table_id,
254
+          type_id: this.id,
255
+          keywords: this.keywords,
256
+          start_time: this.chargeDate[0],
257
+          end_time: this.chargeDate[1],
258
+          patient_id: this.patient_id,
259
+        });
260
+      }
261 261
       this.getHisSummaryDetailList();
262 262
     },
263 263
     changeDate() {
@@ -267,26 +267,26 @@ export default {
267 267
     },
268 268
     changeItem(id) {
269 269
       this.id = id;
270
-      // let table_id = this.$store.getters.pagedata.list.table_id;
271
-      // if (table_id == undefined) {
272
-      //   this.$store.commit("SET_PAGEDATA", {
273
-      //     table_id: 0,
274
-      //     type_id: this.id,
275
-      //     keywords: this.keywords,
276
-      //     start_time: this.chargeDate[0],
277
-      //     end_time: this.chargeDate[1],
278
-      //     patient_id: this.patient_id,
279
-      //   });
280
-      // } else {
281
-      //   this.$store.commit("SET_PAGEDATA", {
282
-      //     table_id: table_id,
283
-      //     type_id: this.id,
284
-      //     keywords: this.keywords,
285
-      //     start_time: this.chargeDate[0],
286
-      //     end_time: this.chargeDate[1],
287
-      //     patient_id: this.patient_id,
288
-      //   });
289
-      // }
270
+      let table_id = this.$store.getters.pagedata.list.table_id;
271
+      if (table_id == undefined) {
272
+        this.$store.commit("SET_PAGEDATA", {
273
+          table_id: 0,
274
+          type_id: this.id,
275
+          keywords: this.keywords,
276
+          start_time: this.chargeDate[0],
277
+          end_time: this.chargeDate[1],
278
+          patient_id: this.patient_id,
279
+        });
280
+      } else {
281
+        this.$store.commit("SET_PAGEDATA", {
282
+          table_id: table_id,
283
+          type_id: this.id,
284
+          keywords: this.keywords,
285
+          start_time: this.chargeDate[0],
286
+          end_time: this.chargeDate[1],
287
+          patient_id: this.patient_id,
288
+        });
289
+      }
290 290
       this.getHisSummaryDetailList();
291 291
     },
292 292
     getHisSummaryDetailList() {
@@ -330,8 +330,21 @@ export default {
330 330
 
331 331
           var new_arr = [];
332 332
 
333
-          
333
+          let list_1 = this.$store.getters.pagedata.list;
334
+          if (list_1.keywords == undefined) {
335
+            this.keywords = "";
336
+          } else {
337
+            this.keywords = list_1.keywords;
338
+          }
339
+          this.id = list_1.type_id;
340
+          this.item_type = this.id;
341
+          if(this.item_type == undefined){
342
+            this.item_type = "0"
343
+          }else{
344
+            this.item_type = this.id;
345
+          }
334 346
 
347
+          
335 348
           if (this.keywords != "") {
336 349
             for (let i = 0; i < this.tableData.length; i++) {
337 350
               if (this.tableData[i].index != "合计") {
@@ -491,26 +504,26 @@ export default {
491 504
       // start_time: this.chargeDate[0],
492 505
       // end_time: this.chargeDate[1],
493 506
       // patient_id:this.patient_id
494
-      // let table_id = this.$store.getters.pagedata.list.table_id;
495
-      // if (table_id == undefined) {
496
-      //   this.$store.commit("SET_PAGEDATA", {
497
-      //     table_id: 0,
498
-      //     type_id: this.id,
499
-      //     keywords: this.keywords,
500
-      //     start_time: this.chargeDate[0],
501
-      //     end_time: this.chargeDate[1],
502
-      //     patient_id: this.patient_id,
503
-      //   });
504
-      // } else {
505
-      //   this.$store.commit("SET_PAGEDATA", {
506
-      //     table_id: table_id,
507
-      //     type_id: this.id,
508
-      //     keywords: this.keywords,
509
-      //     start_time: this.chargeDate[0],
510
-      //     end_time: this.chargeDate[1],
511
-      //     patient_id: this.patient_id,
512
-      //   });
513
-      // }
507
+      let table_id = this.$store.getters.pagedata.list.table_id;
508
+      if (table_id == undefined) {
509
+        this.$store.commit("SET_PAGEDATA", {
510
+          table_id: 0,
511
+          type_id: this.id,
512
+          keywords: this.keywords,
513
+          start_time: this.chargeDate[0],
514
+          end_time: this.chargeDate[1],
515
+          patient_id: this.patient_id,
516
+        });
517
+      } else {
518
+        this.$store.commit("SET_PAGEDATA", {
519
+          table_id: table_id,
520
+          type_id: this.id,
521
+          keywords: this.keywords,
522
+          start_time: this.chargeDate[0],
523
+          end_time: this.chargeDate[1],
524
+          patient_id: this.patient_id,
525
+        });
526
+      }
514 527
     },
515 528
     getPrice(val) {
516 529
       var total_price = 0;
@@ -521,17 +534,17 @@ export default {
521 534
     },
522 535
   },
523 536
   created() {
524
-    // let list_1 = this.$store.getters.pagedata.list;
525
-    //       if (list_1.start_time == "") {
526
-    //         this.chargeDate[0] = this.chargeDate[0] = moment(new Date()).add("year", 0).format("YYYY-MM-DD");;
527
-    //       } else {
528
-    //         this.chargeDate[0] = list_1.start_time;
529
-    //       }
530
-    //        if (list_1.end_time == "") {
531
-    //         this.chargeDate[1] = this.chargeDate[0] = moment(new Date()).add("year", 0).format("YYYY-MM-DD");;
532
-    //       } else {
533
-    //         this.chargeDate[1] = list_1.end_time;
534
-    //       }
537
+    let list_1 = this.$store.getters.pagedata.list;
538
+          if (!list_1.start_time ||list_1.start_time == "") {
539
+            this.chargeDate[0] = this.chargeDate[0] = moment(new Date()).add("year", 0).format("YYYY-MM-DD");;
540
+          } else {
541
+            this.chargeDate[0] = list_1.start_time;
542
+          }
543
+           if (!list_1.end_time ||list_1.end_time == "") {
544
+            this.chargeDate[1] = this.chargeDate[0] = moment(new Date()).add("year", 0).format("YYYY-MM-DD");;
545
+          } else {
546
+            this.chargeDate[1] = list_1.end_time;
547
+          }
535 548
     this.start_time = this.chargeDate[0];
536 549
     this.end_time = this.chargeDate[1];
537 550
     this.getHisSummaryDetailList();

+ 102 - 95
src/xt_pages/outpatientTool/components/gatherStatistics.vue View File

@@ -234,29 +234,29 @@ export default {
234 234
   },
235 235
   methods: {
236 236
     searchAction() {
237
-    //  let table_id = this.$store.getters.pagedata.list.table_id;
238
-    //   if (table_id == undefined) {
239
-    //     this.$store.commit("SET_PAGEDATA", {
240
-    //       table_id: 0,
241
-    //       type_id: this.id,
242
-    //       keywords: this.keywords,
243
-    //       start_time: this.chargeDate[0],
244
-    //       end_time: this.chargeDate[1],
245
-    //       patient_id: this.patient_id,
246
-    //     });
247
-    //   } else {
248
-    //     this.$store.commit("SET_PAGEDATA", {
249
-    //       table_id: table_id,
250
-    //       type_id: this.id,
251
-    //       keywords: this.keywords,
252
-    //       start_time: this.chargeDate[0],
253
-    //       end_time: this.chargeDate[1],
254
-    //       patient_id: this.patient_id,
255
-    //     });
256
-    //   }
237
+      let table_id = this.$store.getters.pagedata.list.table_id;
238
+      if (table_id == undefined) {
239
+        this.$store.commit("SET_PAGEDATA", {
240
+          table_id: 0,
241
+          type_id: this.id,
242
+          keywords: this.keywords,
243
+          start_time: this.chargeDate[0],
244
+          end_time: this.chargeDate[1],
245
+          patient_id: this.patient_id,
246
+        });
247
+      } else {
248
+        this.$store.commit("SET_PAGEDATA", {
249
+          table_id: table_id,
250
+          type_id: this.id,
251
+          keywords: this.keywords,
252
+          start_time: this.chargeDate[0],
253
+          end_time: this.chargeDate[1],
254
+          patient_id: this.patient_id,
255
+        });
256
+      }
257 257
       this.tableList = [];
258 258
       this.getGatherDetailList();
259
-      console.log(this.tableList, "查看条约");
259
+      // console.log(this.tableList, "查看条约");
260 260
     },
261 261
     getPrice(val) {
262 262
       var total_price = 0;
@@ -272,26 +272,26 @@ export default {
272 272
     },
273 273
     changeItem(id) {
274 274
       this.id = id;
275
-      // let table_id = this.$store.getters.pagedata.list.table_id;
276
-      // if (table_id == undefined) {
277
-      //   this.$store.commit("SET_PAGEDATA", {
278
-      //     table_id: 0,
279
-      //     type_id: this.id,
280
-      //     keywords: this.keywords,
281
-      //     start_time: this.chargeDate[0],
282
-      //     end_time: this.chargeDate[1],
283
-      //     patient_id: this.patient_id,
284
-      //   });
285
-      // } else {
286
-      //   this.$store.commit("SET_PAGEDATA", {
287
-      //     table_id: table_id,
288
-      //     type_id: this.id,
289
-      //     keywords: this.keywords,
290
-      //     start_time: this.chargeDate[0],
291
-      //     end_time: this.chargeDate[1],
292
-      //     patient_id: this.patient_id,
293
-      //   });
294
-      // }
275
+      let table_id = this.$store.getters.pagedata.list.table_id;
276
+      if (table_id == undefined) {
277
+        this.$store.commit("SET_PAGEDATA", {
278
+          table_id: 0,
279
+          type_id: this.id,
280
+          keywords: this.keywords,
281
+          start_time: this.chargeDate[0],
282
+          end_time: this.chargeDate[1],
283
+          patient_id: this.patient_id,
284
+        });
285
+      } else {
286
+        this.$store.commit("SET_PAGEDATA", {
287
+          table_id: table_id,
288
+          type_id: this.id,
289
+          keywords: this.keywords,
290
+          start_time: this.chargeDate[0],
291
+          end_time: this.chargeDate[1],
292
+          patient_id: this.patient_id,
293
+        });
294
+      }
295 295
       this.tableList = [];
296 296
       this.getGatherDetailList();
297 297
     },
@@ -440,26 +440,33 @@ export default {
440 440
           this.medicalInsuranceLevelList =
441 441
             response.data.data.medicalInsuranceLevelList;
442 442
 
443
-          // let list_1 = this.$store.getters.pagedata.list;
444
-          // if (list_1.keywords == undefined) {
445
-          //   this.keywords = "";
446
-          // } else {
447
-          //   this.keywords = list_1.keywords;
448
-          // }
449
-          // this.id = list_1.type_id;
450
-          // this.item_type = this.id
443
+          let list_1 = this.$store.getters.pagedata.list;
444
+          if (list_1.keywords == undefined) {
445
+            this.keywords = "";
446
+          } else {
447
+            this.keywords = list_1.keywords;
448
+          }
449
+          this.id = list_1.type_id;
450
+          this.item_type = this.id;
451
+          if(this.item_type == undefined){
452
+            this.item_type = "0"
453
+          }else{
454
+            this.item_type = this.id;
455
+          }
456
+          console.log(this.item_type,'this.item_type')
457
+          
451 458
 
452
-          if(this.keywords!=""){
453
-          for(let i=0;i<this.tableList.length;i++){
454
-          if(this.tableList[i].name.indexOf(this.keywords) >-1){
455
-              new_arr.push(this.tableList[i])
459
+          if (this.keywords != "") {
460
+            for (let i = 0; i < this.tableList.length; i++) {
461
+              if (this.tableList[i].name.indexOf(this.keywords) > -1) {
462
+                new_arr.push(this.tableList[i]);
463
+              }
464
+            }
465
+            var obj = { index: "合计", is_total: 1, total: 0 };
466
+            obj.total = this.getPrice(new_arr);
467
+            this.tableList = [];
468
+            this.tableList = new_arr;
456 469
           }
457
-        }
458
-        var obj ={index:"合计",is_total:1,total:0}
459
-        obj.total = this.getPrice(new_arr)
460
-        this.tableList = []
461
-        this.tableList = new_arr
462
-      }
463 470
           if (this.id == 1) {
464 471
             var new_arr = [];
465 472
             for (let i = 0; i < this.tableList.length; i++) {
@@ -820,26 +827,26 @@ export default {
820 827
           "&id=" +
821 828
           this.id,
822 829
       });
823
-      //   let table_id = this.$store.getters.pagedata.list.table_id;
824
-      // if (table_id == undefined) {
825
-      //   this.$store.commit("SET_PAGEDATA", {
826
-      //     table_id: 0,
827
-      //     type_id: this.id,
828
-      //     keywords: this.keywords,
829
-      //     start_time: this.chargeDate[0],
830
-      //     end_time: this.chargeDate[1],
831
-      //     patient_id: this.patient_id,
832
-      //   });
833
-      // } else {
834
-      //   this.$store.commit("SET_PAGEDATA", {
835
-      //     table_id: table_id,
836
-      //     type_id: this.id,
837
-      //     keywords: this.keywords,
838
-      //     start_time: this.chargeDate[0],
839
-      //     end_time: this.chargeDate[1],
840
-      //     patient_id: this.patient_id,
841
-      //   });
842
-      // }
830
+      let table_id = this.$store.getters.pagedata.list.table_id;
831
+      if (table_id == undefined) {
832
+        this.$store.commit("SET_PAGEDATA", {
833
+          table_id: 0,
834
+          type_id: this.id,
835
+          keywords: this.keywords,
836
+          start_time: this.chargeDate[0],
837
+          end_time: this.chargeDate[1],
838
+          patient_id: this.patient_id,
839
+        });
840
+      } else {
841
+        this.$store.commit("SET_PAGEDATA", {
842
+          table_id: table_id,
843
+          type_id: this.id,
844
+          keywords: this.keywords,
845
+          start_time: this.chargeDate[0],
846
+          end_time: this.chargeDate[1],
847
+          patient_id: this.patient_id,
848
+        });
849
+      }
843 850
     },
844 851
     toPrintInvoice() {
845 852
       this.$router.push({
@@ -1245,27 +1252,27 @@ export default {
1245 1252
       return name;
1246 1253
     },
1247 1254
   },
1248
-  created() {  
1249
-    // let list_1 = this.$store.getters.pagedata.list;
1250
-    //       if (list_1.start_time == "") {
1251
-    //         this.chargeDate[0] = moment(new Date()).add("year", 0).format("YYYY-MM-DD");
1252
-    //       } else {
1253
-    //         this.chargeDate[0] = list_1.start_time;
1254
-    //       }
1255
-    //        if (list_1.end_time == "") {
1256
-    //         this.chargeDate[1] = moment(new Date()).add("year", 0).format("YYYY-MM-DD");
1257
-    //       } else {
1258
-    //         this.chargeDate[1] = list_1.end_time;
1259
-    // }
1255
+  created() {
1256
+    let list_1 = this.$store.getters.pagedata.list;
1257
+    if (!list_1.start_time || list_1.start_time == "") {
1258
+      this.chargeDate[0] = moment(new Date())
1259
+        .add("year", 0)
1260
+        .format("YYYY-MM-DD");
1261
+    } else {
1262
+      this.chargeDate[0] = list_1.start_time;
1263
+    }
1264
+    if (!list_1.end_time || list_1.end_time == "") {
1265
+      this.chargeDate[1] = moment(new Date())
1266
+        .add("year", 0)
1267
+        .format("YYYY-MM-DD");
1268
+    } else {
1269
+      this.chargeDate[1] = list_1.end_time;
1270
+    }
1260 1271
 
1261
-    console.log(this.chargeDate[0],'测试测试')  
1262
-    
1263 1272
     this.start_time = this.chargeDate[0];
1264 1273
     this.end_time = this.chargeDate[1];
1265 1274
     this.tableList = [];
1266 1275
     this.getGatherDetailList();
1267
-    // console.log(this.start_time,this.end_time,'ooooooo')
1268
-    
1269 1276
   },
1270 1277
   watch: {
1271 1278
     patient_id: function () {

+ 63 - 17
src/xt_pages/outpatientTool/detailPrint.vue View File

@@ -4,48 +4,94 @@
4 4
       <el-button type="primary" @click="printtpage">打印</el-button>
5 5
     </div>
6 6
     <div id="list-print" class="list-print">
7
-      <div class="listTitle">
7
+      <table class="listTable"
8
+        border="0"
9
+        cellspacing="0"
10
+        style="font-size: 14px"
11
+        align="center">
12
+        <thead style="display: table-header-group; font-weight: bold;border-bottom: 1px solid;">
13
+          <tr
14
+            ><td colspan="4" align="center" style="font-size: 20px"
15
+              >{{ $store.getters.xt_user.org.org_name }}费用清单</td
16
+            ></tr
17
+          >
18
+          <tr>
19
+            <td>患者姓名:{{ patient.name }}</td>
20
+            <td>性别:{{ patient.gender == 1 ? "男" : "女" }}</td>
21
+            <td>结算类别:
22
+          <!-- {{ getType(his_patient.balance_accounts_type) }} -->
23
+          {{getType(his_record_patient.balance_accounts_type)}}</td>
24
+            <td>发票号码:{{order.fa_piao_number}}</td>
25
+          </tr>
26
+          <tr>
27
+            <td>住院/门诊号:
28
+          <!-- {{his_patient.number}} -->
29
+          {{his_record_patient.ipt_otp_no}}</td>
30
+            <td>科室:
31
+          <!-- {{ getDepartment(his_patient.departments) }} -->
32
+          {{ getDepartment(his_record_patient.departments) }}</td>
33
+            <td>就诊流水号:
34
+          <!-- {{ his_patient.number }} -->
35
+          {{his_record_patient.number}}</td>
36
+          </tr>
37
+          <tr>
38
+            <td>总费用:{{ getAllPice() }}</td>
39
+            <td>个人支付:
40
+          <!-- <span v-if="this.$route.query.balance_accounts_type == 2 && his_patient.id >0">{{ getAllPice() }}</span>
41
+          <span v-if="this.$route.query.balance_accounts_type != 2 && his_patient.id >0">{{ getActPay() }}</span> -->
42
+          
43
+          <span v-if="his_record_patient.balance_accounts_type == 2">{{ getAllPice() }}</span>
44
+          <span v-if="his_record_patient.balance_accounts_type != 2">{{ getActPay() }}</span>
45
+            </td>
46
+            <td>基金支付记账:{{ getFundPaySumamt() }}</td>
47
+            <td>补充医疗支付记账:{{ getHifesPay() }}</td>
48
+          </tr>
49
+          <tr>
50
+            <td>
51
+              救助支付金额:{{ getMafPay() }}
52
+            </td>
53
+          </tr>
54
+        </thead>
55
+      </table>
56
+
57
+      <!-- <div class="listTitle">
8 58
         {{ $store.getters.xt_user.org.org_name }}费用清单
9
-      </div>
10
-      <div class="listInfo">
59
+      </div> -->
60
+
61
+      <!-- <div class="listInfo">
11 62
         <div>患者姓名:{{ patient.name }}</div>
12 63
         <div>性别:{{ patient.gender == 1 ? "男" : "女" }}</div>
13 64
         <div>结算类别:
14
-          <!-- {{ getType(his_patient.balance_accounts_type) }} -->
65
+          
15 66
           {{getType(his_record_patient.balance_accounts_type)}}
16 67
         </div>
17 68
         <div style="min-width:300px;">发票号码:{{order.fa_piao_number}}</div>
18
-      </div>
19
-      <div class="listInfo">
69
+      </div> -->
70
+      <!-- <div class="listInfo">
20 71
         <div>住院/门诊号:
21
-          <!-- {{his_patient.number}} -->
22 72
           {{his_record_patient.ipt_otp_no}}
23 73
         </div>
24 74
         <div>科室:
25
-          <!-- {{ getDepartment(his_patient.departments) }} -->
26 75
           {{ getDepartment(his_record_patient.departments) }}
27 76
         </div>
28 77
         <div style="min-width:350px;">就诊流水号:
29
-          <!-- {{ his_patient.number }} -->
78
+       
30 79
           {{his_record_patient.number}}
31 80
         </div>
32
-      </div>
33
-      <div class="listInfo">
81
+      </div> -->
82
+      <!-- <div class="listInfo">
34 83
         <div>总费用:{{ getAllPice() }}</div>
35 84
         <div>个人支付:
36
-          <!-- <span v-if="this.$route.query.balance_accounts_type == 2 && his_patient.id >0">{{ getAllPice() }}</span>
37
-          <span v-if="this.$route.query.balance_accounts_type != 2 && his_patient.id >0">{{ getActPay() }}</span> -->
38
-          
39 85
           <span v-if="his_record_patient.balance_accounts_type == 2">{{ getAllPice() }}</span>
40 86
           <span v-if="his_record_patient.balance_accounts_type != 2">{{ getActPay() }}</span>
41 87
 
42 88
         </div>
43 89
         <div>基金支付记账:{{ getFundPaySumamt() }}</div>
44 90
         <div style="min-width:300px;">补充医疗支付记账:{{ getHifesPay() }}</div>
45
-      </div>
46
-      <div class="listInfo">
91
+      </div> -->
92
+      <!-- <div class="listInfo">
47 93
         <div>救助支付金额:{{ getMafPay() }}</div>
48
-      </div>
94
+      </div> -->
49 95
       <table class="listTable" border="1">
50 96
         <tr style="height:45px">
51 97
           <td width="100" style="text-align: center">序号</td>

+ 1 - 2
src/xt_pages/outpatientTool/statistics.vue View File

@@ -167,11 +167,10 @@ export default {
167 167
 
168 168
     onRowClick(row, event, column) {
169 169
       this.currentRowIndex = row.row_index;
170
-      console.log(this.currentRowIndex, "this.currentRowIndex");
171 170
       this.$store.commit("SET_PAGEDATA", {
172 171
         table_id: this.currentRowIndex,
173 172
       });
174
-      console.log(this.$store.getters.pagedata.list.table_id, "kk");
173
+      // console.log(this.$store.getters.pagedata.list.table_id, "列表行id");
175 174
     },
176 175
     searchAction() {
177 176
       this.getPatientList();