see999 hace 3 años
padre
commit
0b88feeccb
Se han modificado 1 ficheros con 22 adiciones y 7 borrados
  1. 22 7
      src/xt_pages/outpatientCharges/summary.vue

+ 22 - 7
src/xt_pages/outpatientCharges/summary.vue Ver fichero

@@ -500,14 +500,29 @@
500 500
       },
501 501
       toPrint(row) {
502 502
         if (this.$store.getters.xt_user.org_id == 9504 || this.$store.getters.xt_user.org_id == 10028 || this.$store.getters.xt_user.org_id == 10138) {
503
+         if(row.mdtrt_id.indexOf("H") > -1){
503 504
           this.statementVisible9504 = true
504
-          let obj = {
505
-            order_id: row.id,
506
-            patient_id: row.patient_id,
507
-            record_time: this.getTimes(row.settle_accounts_date),
508
-            admin_user_id: this.$store.getters.xt_user.user.id
509
-          }
510
-          this.orderObj9504 = obj
505
+            let obj = {
506
+              order_id: row.id,
507
+              patient_id: row.patient_id,
508
+              record_time: this.getTimes(row.settle_accounts_date),
509
+              admin_user_id: this.$store.getters.xt_user.user.id
510
+            }
511
+            this.orderObj9504 = obj
512
+         }else{
513
+           
514
+           this.statementVisible9504 = true
515
+            let obj = {
516
+              order_id: row.id,
517
+              patient_id: row.patient_id,
518
+              record_time: this.getTimes(row.settle_accounts_date),
519
+              admin_user_id: this.$store.getters.xt_user.user.id,
520
+              balance_accounts_type:2
521
+            }
522
+            this.orderObj9504 = obj
523
+         }
524
+
525
+         
511 526
         } else {
512 527
           this.statementVisible = true
513 528
           let obj = {