陈少旭 7 months ago
parent
commit
495eb61698
1 changed files with 23 additions and 9 deletions
  1. 23 9
      src/xt_pages/outpatientCharges/summary.vue

+ 23 - 9
src/xt_pages/outpatientCharges/summary.vue View File

119
 
119
 
120
                     </el-popover> -->
120
                     </el-popover> -->
121
           <el-button
121
           <el-button
122
-            v-if="$store.getters.xt_user.org_id == 10138 || $store.getters.xt_user.org_id == 10278 || $store.getters.xt_user.org_id == 0"
122
+            size="small" type="primary" @click="query">查询
123
+          </el-button>
124
+          <el-button
125
+            v-if="$store.getters.xt_user.org_id == 10138 || $store.getters.xt_user.org_id == 10278 || $store.getters.xt_user.org_id == 10610 || $store.getters.xt_user.org_id == 0 "
123
             size="small" type="primary" @click="batch_print_settlte">批量打印结算单
126
             size="small" type="primary" @click="batch_print_settlte">批量打印结算单
124
           </el-button>
127
           </el-button>
125
           <el-button size="small" type="primary" @click="export_detail"
128
           <el-button size="small" type="primary" @click="export_detail"
281
 
284
 
282
         <el-table-column align="center" width="90" prop="name" label="收费类型">
285
         <el-table-column align="center" width="90" prop="name" label="收费类型">
283
           <template slot-scope="scope">
286
           <template slot-scope="scope">
284
-            <div v-if="scope.row.his_patient.balance_accounts_type != 2">
287
+            <div v-if="scope.row.is_medicine_insurance == 1">
285
               医保
288
               医保
286
             </div>
289
             </div>
287
-            <div v-if="scope.row.his_patient.balance_accounts_type == 2">
290
+            <div v-if="scope.row.is_medicine_insurance != 1">
288
               自费
291
               自费
289
             </div>
292
             </div>
290
           </template>
293
           </template>
817
   },
820
   },
818
 
821
 
819
   methods: {
822
   methods: {
823
+    query(){
824
+      this.getHisOrderList()
825
+    },
820
     getAge(UUserCard) {
826
     getAge(UUserCard) {
821
       if (UUserCard != null && UUserCard != '') {
827
       if (UUserCard != null && UUserCard != '') {
822
         //获取年龄
828
         //获取年龄
1436
       //   }
1442
       //   }
1437
       //
1443
       //
1438
       // } else {
1444
       // } else {
1445
+      var balance_accounts_type = row.his_patient.balance_accounts_type
1446
+      if (row.is_medicine_insurance == 1){
1447
+        balance_accounts_type = 1
1448
+      }else{
1449
+        balance_accounts_type = 2
1450
+
1451
+      }
1452
+
1439
       this.statementVisible = true
1453
       this.statementVisible = true
1440
       let obj = {
1454
       let obj = {
1441
         order_id: row.id,
1455
         order_id: row.id,
1442
         settle_type: row.settle_type,
1456
         settle_type: row.settle_type,
1443
         start_time: row.settle_start_time,
1457
         start_time: row.settle_start_time,
1444
         end_time: row.settle_end_time,
1458
         end_time: row.settle_end_time,
1445
-        balance_accounts_type: row.his_patient.balance_accounts_type
1459
+        balance_accounts_type:balance_accounts_type
1446
       }
1460
       }
1447
       this.orderObj = obj
1461
       this.orderObj = obj
1448
     },
1462
     },
3639
     changeSortType() {
3653
     changeSortType() {
3640
       this.page = 1
3654
       this.page = 1
3641
       this.keywords = ''
3655
       this.keywords = ''
3642
-      this.getHisOrderList()
3656
+      // this.getHisOrderList()
3643
     },
3657
     },
3644
     changeDoctor() {
3658
     changeDoctor() {
3645
       this.page = 1
3659
       this.page = 1
3646
       this.keywords = ''
3660
       this.keywords = ''
3647
-      this.getHisOrderList()
3661
+      // this.getHisOrderList()
3648
     },
3662
     },
3649
     handleSizeChange(limit) {
3663
     handleSizeChange(limit) {
3650
       this.limit = limit
3664
       this.limit = limit
3657
     handleStartTimeChange() {
3671
     handleStartTimeChange() {
3658
       this.page = 1
3672
       this.page = 1
3659
       this.keywords = ''
3673
       this.keywords = ''
3660
-      this.getHisOrderList()
3674
+      // this.getHisOrderList()
3661
     },
3675
     },
3662
     handleEndTimeChange() {
3676
     handleEndTimeChange() {
3663
       this.page = 1
3677
       this.page = 1
3664
       this.keywords = ''
3678
       this.keywords = ''
3665
-      this.getHisOrderList()
3679
+      // this.getHisOrderList()
3666
     },
3680
     },
3667
     setMonthPrescription(month_prescriptions) {
3681
     setMonthPrescription(month_prescriptions) {
3668
       console.log(month_prescriptions)
3682
       console.log(month_prescriptions)
3950
       //   }
3964
       //   }
3951
       //   this.tableData = arr
3965
       //   this.tableData = arr
3952
       // }
3966
       // }
3953
-      this.getHisOrderList()
3967
+      // this.getHisOrderList()
3954
     },
3968
     },
3955
     getTimes(time) {
3969
     getTimes(time) {
3956
       return uParseTime(time, '{y}-{m}-{d}')
3970
       return uParseTime(time, '{y}-{m}-{d}')