Browse Source

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

XMLWAN 4 years ago
parent
commit
f29b55fca5

+ 2 - 2
config/index.js View File

29
 
29
 
30
      // host: 'xt.test.sgjyun.com',
30
      // host: 'xt.test.sgjyun.com',
31
     //  host: 'xt.kuyicloud.com',
31
     //  host: 'xt.kuyicloud.com',
32
-    host: 'xt.test.sgjyun.com',
33
-    // host: 'localhost',
32
+    // host: 'xt.test.sgjyun.com',
33
+    host: 'localhost',
34
     port: 9528, // can be overwritten by process.env.PORT, if port is in use, a free one will be determined
34
     port: 9528, // can be overwritten by process.env.PORT, if port is in use, a free one will be determined
35
     autoOpenBrowser: true,
35
     autoOpenBrowser: true,
36
     errorOverlay: true,
36
     errorOverlay: true,

+ 32 - 24
src/xt_pages/outpatientCharges/outpatientChargesManagement.vue View File

73
                      type="primary">预结算!
73
                      type="primary">预结算!
74
           </el-button>
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
                      @click="open(21)"
77
                      @click="open(21)"
78
                      type="primary">收费!
78
                      type="primary">收费!
79
           </el-button>
79
           </el-button>
89
           </el-button>
89
           </el-button>
90
 
90
 
91
           <!--<el-button size="small" @click="open(5)" type="primary"-->
91
           <!--<el-button size="small" @click="open(5)" type="primary"-->
92
-                    <!--&gt;退费-->
92
+          <!--&gt;退费-->
93
           <!--</el-button>-->
93
           <!--</el-button>-->
94
 
94
 
95
 
95
 
106
           </el-button>
106
           </el-button>
107
 
107
 
108
           <el-button v-if="this.$store.getters.xt_user.org_id == 9919 || this.$store.getters.xt_user.org_id == 3877"
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
           </el-button>
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
           </el-button>
117
           </el-button>
117
 
118
 
480
     },
481
     },
481
     methods: {
482
     methods: {
482
       query() {
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
           var that = this
485
           var that = this
485
           axios.get('http://127.0.0.1:9532/api/org/info', {
486
           axios.get('http://127.0.0.1:9532/api/org/info', {
486
             params: {}
487
             params: {}
554
         form['record_time'] = this.record_date
555
         form['record_time'] = this.record_date
555
         form['admin_user_id'] = this.$store.getters.xt_user.user.id
556
         form['admin_user_id'] = this.$store.getters.xt_user.user.id
556
         form['order_id'] = this.order.id
557
         form['order_id'] = this.order.id
557
-
558
+        form['org_id'] = this.$store.getters.xt_user.org_id
558
 
559
 
559
         if (this.activeName == 'first') {
560
         if (this.activeName == 'first') {
560
           form['settle_accounts_type'] = 1
561
           form['settle_accounts_type'] = 1
567
         }
568
         }
568
 
569
 
569
         this.loadingtwo = true
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
           var that = this
572
           var that = this
572
           axios.get('http://127.0.0.1:9532/api/settle/get', {
573
           axios.get('http://127.0.0.1:9532/api/settle/get', {
573
             params: form
574
             params: form
619
         this.$refs.charge.hide()
620
         this.$refs.charge.hide()
620
       },
621
       },
621
       confirm(forms) {
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
         this.loadingone = true
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
           var that = this
630
           var that = this
628
 
631
 
629
           axios.get('http://127.0.0.1:9532/api/register/get', {
632
           axios.get('http://127.0.0.1:9532/api/register/get', {
1246
           }
1249
           }
1247
 
1250
 
1248
         } else if (index == 5) {
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
             var that = this
1254
             var that = this
1252
             this.$confirm('是否退费', '退费', {
1255
             this.$confirm('是否退费', '退费', {
1259
                 'number': this.order.number,
1262
                 'number': this.order.number,
1260
                 'patient_id': this.patientInfo.id,
1263
                 'patient_id': this.patientInfo.id,
1261
                 'record_time': this.record_date,
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
               axios.get('http://127.0.0.1:9532/api/refund/post', {
1269
               axios.get('http://127.0.0.1:9532/api/refund/post', {
1333
             start_time: '2020-12-28',
1337
             start_time: '2020-12-28',
1334
             end_time: '2020-12-30',
1338
             end_time: '2020-12-30',
1335
             insutype: '390',
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
           var that = this
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
             axios.get('http://127.0.0.1:9532/api/checkaccount/get', {
1348
             axios.get('http://127.0.0.1:9532/api/checkaccount/get', {
1343
               params: params
1349
               params: params
1344
             })
1350
             })
1391
           let params = {
1397
           let params = {
1392
 
1398
 
1393
             'patient_id': this.patientInfo.id,
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
           axios.get('http://127.0.0.1:9532/api/refundnumber/post', {
1403
           axios.get('http://127.0.0.1:9532/api/refundnumber/post', {
1397
             params: params
1404
             params: params
1413
             'order_id': this.order.id,
1420
             'order_id': this.order.id,
1414
             'number': this.order.number,
1421
             'number': this.order.number,
1415
             'patient_id': this.patientInfo.id,
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
           axios.get('http://127.0.0.1:9532/api/refunddetail/post', {
1426
           axios.get('http://127.0.0.1:9532/api/refunddetail/post', {
1419
             params: params
1427
             params: params
1473
             })
1481
             })
1474
         } else if (index == 15) {
1482
         } else if (index == 15) {
1475
           var that = this
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
             if (this.diagnosis.length || this.diagnosis == 0) {
1486
             if (this.diagnosis.length || this.diagnosis == 0) {
1479
               that.$message.error('诊断不能为空,请选择诊断内容')
1487
               that.$message.error('诊断不能为空,请选择诊断内容')
1517
 
1525
 
1518
           }
1526
           }
1519
 
1527
 
1520
-        }else if(index == 20){
1528
+        } else if (index == 20) {
1521
           if (this.patientInfo.id == 0) {
1529
           if (this.patientInfo.id == 0) {
1522
             this.$message({ message: '该选择要收费的患者', type: 'error' })
1530
             this.$message({ message: '该选择要收费的患者', type: 'error' })
1523
             return
1531
             return
1566
             }
1574
             }
1567
           }
1575
           }
1568
 
1576
 
1569
-
1570
           var form = {}
1577
           var form = {}
1571
           form['id'] = this.patientInfo.id
1578
           form['id'] = this.patientInfo.id
1572
           form['record_time'] = this.record_date
1579
           form['record_time'] = this.record_date
1573
           form['admin_user_id'] = this.$store.getters.xt_user.user.id
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
           if (this.activeName == 'first') {
1583
           if (this.activeName == 'first') {
1576
             form['settle_accounts_type'] = 1
1584
             form['settle_accounts_type'] = 1
1582
 
1590
 
1583
           }
1591
           }
1584
           this.loadingtwo = true
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
             var that = this
1594
             var that = this
1587
             axios.get('http://127.0.0.1:9532/api/pre_upload/get', {
1595
             axios.get('http://127.0.0.1:9532/api/pre_upload/get', {
1588
               params: form
1596
               params: form
1606
           } else {
1614
           } else {
1607
 
1615
 
1608
           }
1616
           }
1609
-        }else if(index == 21){
1617
+        } else if (index == 21) {
1610
 
1618
 
1611
           if (this.patientInfo.id == 0) {
1619
           if (this.patientInfo.id == 0) {
1612
             this.$message({ message: '该选择要收费的患者', type: 'error' })
1620
             this.$message({ message: '该选择要收费的患者', type: 'error' })
2004
           let obj = {}
2012
           let obj = {}
2005
           let count = 0
2013
           let count = 0
2006
           for (let a = 0; a < project_month_prescriptions.project.length; a++) {
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
               obj['project_name'] = project_month_prescriptions.project[a].project.project_name
2016
               obj['project_name'] = project_month_prescriptions.project[a].project.project_name
2009
               obj['statistical_classification'] = project_month_prescriptions.project[a].project.statistical_classification
2017
               obj['statistical_classification'] = project_month_prescriptions.project[a].project.statistical_classification
2010
               obj['single_dose'] = project_month_prescriptions.project[a].single_dose
2018
               obj['single_dose'] = project_month_prescriptions.project[a].single_dose
2029
           let count = 0
2037
           let count = 0
2030
           if (addition_month_prescriptions.addition) {
2038
           if (addition_month_prescriptions.addition) {
2031
             for (let a = 0; a < addition_month_prescriptions.addition.length; a++) {
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
                 obj['item_name'] = addition_month_prescriptions.addition[a].item_name
2041
                 obj['item_name'] = addition_month_prescriptions.addition[a].item_name
2034
                 obj['id'] = addition_month_prescriptions.addition[a].id
2042
                 obj['id'] = addition_month_prescriptions.addition[a].id
2035
                 obj['item_id'] = addition_month_prescriptions.addition[a].item_id
2043
                 obj['item_id'] = addition_month_prescriptions.addition[a].item_id

+ 1 - 1
src/xt_pages/outpatientCharges/statementPrint.vue View File

150
 
150
 
151
     },
151
     },
152
     getInfo(order_id) {
152
     getInfo(order_id) {
153
-      if (this.$store.getters.xt_user.org_id == 4 || this.$store.getters.xt_user.org_id == 9919) {
153
+      if (this.$store.getters.xt_user.org_id == 3877 || this.$store.getters.xt_user.org_id == 9919) {
154
 
154
 
155
         var that = this
155
         var that = this
156
 
156