瀏覽代碼

Merge branch '20201109_pc_vue_new_branch' of http://git.shengws.com/csx/Vue_New into 20201109_pc_vue_new_branch

csx 4 年之前
父節點
當前提交
b68dcedd3e
共有 1 個文件被更改,包括 32 次插入24 次删除
  1. 32 24
      src/xt_pages/outpatientCharges/outpatientChargesManagement.vue

+ 32 - 24
src/xt_pages/outpatientCharges/outpatientChargesManagement.vue 查看文件

@@ -73,7 +73,7 @@
73 73
                      type="primary">预结算!
74 74
           </el-button>
75 75
 
76
-          <el-button v-loading="loadingtwo" v-if="this.hisPatientInfo.id > 0 && this.order.id == 0" size="small"
76
+          <el-button v-loading="loadingtwo" v-if="(this.hisPatientInfo.id > 0 && this.order.id == 0) || this.order.order_status == 1 " size="small"
77 77
                      @click="open(21)"
78 78
                      type="primary">收费!
79 79
           </el-button>
@@ -89,7 +89,7 @@
89 89
           </el-button>
90 90
 
91 91
           <!--<el-button size="small" @click="open(5)" type="primary"-->
92
-                    <!--&gt;退费-->
92
+          <!--&gt;退费-->
93 93
           <!--</el-button>-->
94 94
 
95 95
 
@@ -106,12 +106,13 @@
106 106
           </el-button>
107 107
 
108 108
           <el-button v-if="this.$store.getters.xt_user.org_id == 9919 || this.$store.getters.xt_user.org_id == 3877"
109
-          size="small" @click="open(10)" type="primary"
109
+                     size="small" @click="open(10)" type="primary"
110 110
           >退号
111 111
           </el-button>
112 112
 
113
-          <el-button v-if="$store.getters.xt_user.org_id == 4 || this.$store.getters.xt_user.org_id == 9919 ||  this.$store.getters.xt_user.org_id == 3877"
114
-          size="small" @click="open(11)" type="primary"
113
+          <el-button
114
+            v-if="$store.getters.xt_user.org_id == 4 || this.$store.getters.xt_user.org_id == 9919 ||  this.$store.getters.xt_user.org_id == 3877"
115
+            size="small" @click="open(11)" type="primary"
115 116
           >撤销明细
116 117
           </el-button>
117 118
 
@@ -480,7 +481,7 @@
480 481
     },
481 482
     methods: {
482 483
       query() {
483
-        if (this.$store.getters.xt_user.org_id == 4 ||  this.$store.getters.xt_user.org_id == 3877) {
484
+        if (this.$store.getters.xt_user.org_id == 4 || this.$store.getters.xt_user.org_id == 3877) {
484 485
           var that = this
485 486
           axios.get('http://127.0.0.1:9532/api/org/info', {
486 487
             params: {}
@@ -554,7 +555,7 @@
554 555
         form['record_time'] = this.record_date
555 556
         form['admin_user_id'] = this.$store.getters.xt_user.user.id
556 557
         form['order_id'] = this.order.id
557
-
558
+        form['org_id'] = this.$store.getters.xt_user.org_id
558 559
 
559 560
         if (this.activeName == 'first') {
560 561
           form['settle_accounts_type'] = 1
@@ -567,7 +568,7 @@
567 568
         }
568 569
 
569 570
         this.loadingtwo = true
570
-        if (this.$store.getters.xt_user.org_id == 9919 ||  this.$store.getters.xt_user.org_id == 3877) {
571
+        if (this.$store.getters.xt_user.org_id == 9919 || this.$store.getters.xt_user.org_id == 3877) {
571 572
           var that = this
572 573
           axios.get('http://127.0.0.1:9532/api/settle/get', {
573 574
             params: form
@@ -619,11 +620,13 @@
619 620
         this.$refs.charge.hide()
620 621
       },
621 622
       confirm(forms) {
622
-        forms['record_time'] = this.record_date,
623
-          forms['admin_user_id'] = this.$store.getters.xt_user.user.id
623
+        forms['record_time'] = this.record_date
624
+        forms['admin_user_id'] = this.$store.getters.xt_user.user.id
625
+        forms['org_id'] = this.$store.getters.xt_user.org_id
626
+
624 627
         this.loadingone = true
625 628
 
626
-        if (this.$store.getters.xt_user.org_id == 9919 ||  this.$store.getters.xt_user.org_id == 3877) {
629
+        if (this.$store.getters.xt_user.org_id == 9919 || this.$store.getters.xt_user.org_id == 3877) {
627 630
           var that = this
628 631
 
629 632
           axios.get('http://127.0.0.1:9532/api/register/get', {
@@ -1246,7 +1249,7 @@
1246 1249
           }
1247 1250
 
1248 1251
         } else if (index == 5) {
1249
-          if (this.$store.getters.xt_user.org_id == 9919 ||  this.$store.getters.xt_user.org_id == 3877) {
1252
+          if (this.$store.getters.xt_user.org_id == 9919 || this.$store.getters.xt_user.org_id == 3877) {
1250 1253
 
1251 1254
             var that = this
1252 1255
             this.$confirm('是否退费', '退费', {
@@ -1259,7 +1262,8 @@
1259 1262
                 'number': this.order.number,
1260 1263
                 'patient_id': this.patientInfo.id,
1261 1264
                 'record_time': this.record_date,
1262
-                'admin_user_id': this.$store.getters.xt_user.user.id
1265
+                'admin_user_id': this.$store.getters.xt_user.user.id,
1266
+                'org_id': this.$store.getters.xt_user.org_id
1263 1267
 
1264 1268
               }
1265 1269
               axios.get('http://127.0.0.1:9532/api/refund/post', {
@@ -1333,12 +1337,14 @@
1333 1337
             start_time: '2020-12-28',
1334 1338
             end_time: '2020-12-30',
1335 1339
             insutype: '390',
1336
-            clr_type: '11'
1340
+            clr_type: '11',
1341
+            org_id: this.$store.getters.xt_user.org_id
1342
+
1337 1343
           }
1338 1344
 
1339 1345
           var that = this
1340 1346
 
1341
-          if (this.$store.getters.xt_user.org_id == 9919 || this.$store.getters.xt_user.org_id == 3877 ) {
1347
+          if (this.$store.getters.xt_user.org_id == 9919 || this.$store.getters.xt_user.org_id == 3877) {
1342 1348
             axios.get('http://127.0.0.1:9532/api/checkaccount/get', {
1343 1349
               params: params
1344 1350
             })
@@ -1391,7 +1397,8 @@
1391 1397
           let params = {
1392 1398
 
1393 1399
             'patient_id': this.patientInfo.id,
1394
-            'record_time': this.record_date
1400
+            'record_time': this.record_date,
1401
+            "org_id": this.$store.getters.xt_user.org_id
1395 1402
           }
1396 1403
           axios.get('http://127.0.0.1:9532/api/refundnumber/post', {
1397 1404
             params: params
@@ -1413,7 +1420,8 @@
1413 1420
             'order_id': this.order.id,
1414 1421
             'number': this.order.number,
1415 1422
             'patient_id': this.patientInfo.id,
1416
-            'record_time': this.record_date
1423
+            'record_time': this.record_date,
1424
+            "org_id": this.$store.getters.xt_user.org_id
1417 1425
           }
1418 1426
           axios.get('http://127.0.0.1:9532/api/refunddetail/post', {
1419 1427
             params: params
@@ -1473,7 +1481,7 @@
1473 1481
             })
1474 1482
         } else if (index == 15) {
1475 1483
           var that = this
1476
-          if (this.$store.getters.xt_user.org_id == 4 || this.$store.getters.xt_user.org_id == 9919) {
1484
+          if (this.$store.getters.xt_user.org_id == 3877 || this.$store.getters.xt_user.org_id == 9919) {
1477 1485
 
1478 1486
             if (this.diagnosis.length || this.diagnosis == 0) {
1479 1487
               that.$message.error('诊断不能为空,请选择诊断内容')
@@ -1517,7 +1525,7 @@
1517 1525
 
1518 1526
           }
1519 1527
 
1520
-        }else if(index == 20){
1528
+        } else if (index == 20) {
1521 1529
           if (this.patientInfo.id == 0) {
1522 1530
             this.$message({ message: '该选择要收费的患者', type: 'error' })
1523 1531
             return
@@ -1566,11 +1574,11 @@
1566 1574
             }
1567 1575
           }
1568 1576
 
1569
-
1570 1577
           var form = {}
1571 1578
           form['id'] = this.patientInfo.id
1572 1579
           form['record_time'] = this.record_date
1573 1580
           form['admin_user_id'] = this.$store.getters.xt_user.user.id
1581
+          form['org_id'] = this.$store.getters.xt_user.org_id
1574 1582
 
1575 1583
           if (this.activeName == 'first') {
1576 1584
             form['settle_accounts_type'] = 1
@@ -1582,7 +1590,7 @@
1582 1590
 
1583 1591
           }
1584 1592
           this.loadingtwo = true
1585
-          if (this.$store.getters.xt_user.org_id == 9919 ||  this.$store.getters.xt_user.org_id == 3877) {
1593
+          if (this.$store.getters.xt_user.org_id == 9919 || this.$store.getters.xt_user.org_id == 3877) {
1586 1594
             var that = this
1587 1595
             axios.get('http://127.0.0.1:9532/api/pre_upload/get', {
1588 1596
               params: form
@@ -1606,7 +1614,7 @@
1606 1614
           } else {
1607 1615
 
1608 1616
           }
1609
-        }else if(index == 21){
1617
+        } else if (index == 21) {
1610 1618
 
1611 1619
           if (this.patientInfo.id == 0) {
1612 1620
             this.$message({ message: '该选择要收费的患者', type: 'error' })
@@ -2004,7 +2012,7 @@
2004 2012
           let obj = {}
2005 2013
           let count = 0
2006 2014
           for (let a = 0; a < project_month_prescriptions.project.length; a++) {
2007
-            if (project_ids[i].price == project_month_prescriptions.project[a].price &&project_ids[i].id == project_month_prescriptions.project[a].project_id ) {
2015
+            if (project_ids[i].price == project_month_prescriptions.project[a].price && project_ids[i].id == project_month_prescriptions.project[a].project_id) {
2008 2016
               obj['project_name'] = project_month_prescriptions.project[a].project.project_name
2009 2017
               obj['statistical_classification'] = project_month_prescriptions.project[a].project.statistical_classification
2010 2018
               obj['single_dose'] = project_month_prescriptions.project[a].single_dose
@@ -2029,7 +2037,7 @@
2029 2037
           let count = 0
2030 2038
           if (addition_month_prescriptions.addition) {
2031 2039
             for (let a = 0; a < addition_month_prescriptions.addition.length; a++) {
2032
-              if (additions_ids[i].price == addition_month_prescriptions.addition[a].price &&additions_ids[i].id == addition_month_prescriptions.addition[a].item_id) {
2040
+              if (additions_ids[i].price == addition_month_prescriptions.addition[a].price && additions_ids[i].id == addition_month_prescriptions.addition[a].item_id) {
2033 2041
                 obj['item_name'] = addition_month_prescriptions.addition[a].item_name
2034 2042
                 obj['id'] = addition_month_prescriptions.addition[a].id
2035 2043
                 obj['item_id'] = addition_month_prescriptions.addition[a].item_id