陈少旭 2 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,7 +119,10 @@
119 119
 
120 120
                     </el-popover> -->
121 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 126
             size="small" type="primary" @click="batch_print_settlte">批量打印结算单
124 127
           </el-button>
125 128
           <el-button size="small" type="primary" @click="export_detail"
@@ -281,10 +284,10 @@
281 284
 
282 285
         <el-table-column align="center" width="90" prop="name" label="收费类型">
283 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 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 292
             </div>
290 293
           </template>
@@ -817,6 +820,9 @@ export default {
817 820
   },
818 821
 
819 822
   methods: {
823
+    query(){
824
+      this.getHisOrderList()
825
+    },
820 826
     getAge(UUserCard) {
821 827
       if (UUserCard != null && UUserCard != '') {
822 828
         //获取年龄
@@ -1436,13 +1442,21 @@ export default {
1436 1442
       //   }
1437 1443
       //
1438 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 1453
       this.statementVisible = true
1440 1454
       let obj = {
1441 1455
         order_id: row.id,
1442 1456
         settle_type: row.settle_type,
1443 1457
         start_time: row.settle_start_time,
1444 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 1461
       this.orderObj = obj
1448 1462
     },
@@ -3639,12 +3653,12 @@ export default {
3639 3653
     changeSortType() {
3640 3654
       this.page = 1
3641 3655
       this.keywords = ''
3642
-      this.getHisOrderList()
3656
+      // this.getHisOrderList()
3643 3657
     },
3644 3658
     changeDoctor() {
3645 3659
       this.page = 1
3646 3660
       this.keywords = ''
3647
-      this.getHisOrderList()
3661
+      // this.getHisOrderList()
3648 3662
     },
3649 3663
     handleSizeChange(limit) {
3650 3664
       this.limit = limit
@@ -3657,12 +3671,12 @@ export default {
3657 3671
     handleStartTimeChange() {
3658 3672
       this.page = 1
3659 3673
       this.keywords = ''
3660
-      this.getHisOrderList()
3674
+      // this.getHisOrderList()
3661 3675
     },
3662 3676
     handleEndTimeChange() {
3663 3677
       this.page = 1
3664 3678
       this.keywords = ''
3665
-      this.getHisOrderList()
3679
+      // this.getHisOrderList()
3666 3680
     },
3667 3681
     setMonthPrescription(month_prescriptions) {
3668 3682
       console.log(month_prescriptions)
@@ -3950,7 +3964,7 @@ export default {
3950 3964
       //   }
3951 3965
       //   this.tableData = arr
3952 3966
       // }
3953
-      this.getHisOrderList()
3967
+      // this.getHisOrderList()
3954 3968
     },
3955 3969
     getTimes(time) {
3956 3970
       return uParseTime(time, '{y}-{m}-{d}')