Browse Source

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

XMLWAN 3 years ago
parent
commit
e802bfee65

+ 1 - 1
src/xt_pages/hospitalStation/components/deskRecord.vue View File

@@ -77,7 +77,7 @@
77 77
     </el-form>
78 78
     <div class="mainTitle">病历信息:</div>
79 79
     <el-form class="recordForm" :model="case_history" ref="form" label-width="80px">
80
-     <el-form-item label="疾病类型: " prop="name" style="width:49%;">
80
+     <el-form-item filterable label="疾病类型: " prop="name" style="width:49%;">
81 81
         <el-select v-model="case_history.sick" style="width:100%;" placeholder="请选择">
82 82
           <el-option
83 83
             v-for="(item,index) in sick"

+ 1 - 1
src/xt_pages/hospitalStation/index.vue View File

@@ -75,7 +75,7 @@
75 75
         <el-form class="basicForm" :model="form" :rules="rules" ref="form" label-width="100px">
76 76
 
77 77
           <el-form-item label="疾病类型:" prop="sick_type" :validate-event="is_Name">
78
-            <el-select v-model="form.sick_type" placeholder="">
78
+            <el-select filterable v-model="form.sick_type" placeholder="">
79 79
               <el-option
80 80
                 v-for="(item,index) in sick"
81 81
                 :key="index"

+ 232 - 193
src/xt_pages/outpatientCharges/outpatientChargesManagement.vue View File

@@ -64,6 +64,17 @@
64 64
 
65 65
                         </el-button>
66 66
 
67
+                        <!--<el-button-->
68
+                                <!--size="small" @click="sz_open(8)" type="primary"-->
69
+                        <!--&gt;预结算-->
70
+                        <!--</el-button>-->
71
+
72
+                        <!--<el-button-->
73
+                                <!--v-if="this.order.order_status == 1"-->
74
+                                <!--size="small" @click="sz_open(7)" type="primary"-->
75
+                        <!--&gt;撤销明细-->
76
+                        <!--</el-button>-->
77
+
67 78
                         <el-button
68 79
                                 v-if="(this.hisPatientInfo.id > 0 && this.order.id == 0) || this.order.order_status == 1"
69 80
                                 size="small"
@@ -71,13 +82,6 @@
71 82
                                 type="primary">收费
72 83
                         </el-button>
73 84
 
74
-                        <el-button size="small" @click="sz_open(11)" type="primary"
75
-                                   v-if="this.hisPatientInfo.id > 0 "
76
-                        >
77
-                            退号
78
-                        </el-button>
79
-
80
-
81 85
                         <el-button size="small" @click="sz_open(5)" type="primary"
82 86
                                    v-if="this.order.order_status == 2"
83 87
                         >
@@ -85,10 +89,12 @@
85 89
                         </el-button>
86 90
                         <el-button size="small" @click="sz_open(10)" type="primary">打印</el-button>
87 91
 
88
-                        <!--<el-button-->
89
-                        <!--size="small" @click="sz_open(7)" type="primary"-->
90
-                        <!--&gt;撤销明细-->
91
-                        <!--</el-button>-->
92
+                        <el-button size="small" @click="sz_open(11)" type="primary"
93
+                                   v-if="this.hisPatientInfo.id > 0 "
94
+                        >
95
+                            退号
96
+                        </el-button>
97
+
92 98
                     </div>
93 99
 
94 100
 
@@ -525,14 +531,14 @@
525 531
     },
526 532
     methods: {
527 533
       query() {
528
-        if (this.$store.getters.xt_user.org_id == 9919 || this.$store.getters.xt_user.org_id == 4 || this.$store.getters.xt_user.org_id == 9538 || this.$store.getters.xt_user.org_id == 10106 || this.$store.getters.xt_user.org_id == 9990 ) {
529
-          var that = this;
534
+        if (this.$store.getters.xt_user.org_id == 9919 || this.$store.getters.xt_user.org_id == 4 || this.$store.getters.xt_user.org_id == 9538 || this.$store.getters.xt_user.org_id == 10106 || this.$store.getters.xt_user.org_id == 9990) {
535
+          var that = this
530 536
           axios.get('http://127.0.0.1:9532/api/org/info', {
531 537
             params: {}
532 538
           })
533 539
             .then(function(response) {
534 540
               if (response.data.state == 0) {
535
-                that.$message.error(response.data.msg);
541
+                that.$message.error(response.data.msg)
536 542
                 return false
537 543
               } else {
538 544
 
@@ -564,11 +570,10 @@
564 570
           patient_id: this.patientInfo.id,
565 571
           start_time: val,
566 572
           end_time: this.other_end_time,
567
-          p_type:2,
568
-          type: this.radio,
573
+          p_type: 2,
574
+          type: this.radio
569 575
 
570
-
571
-        };
576
+        }
572 577
         getDayOrMonthHisPrescription(params).then(response => {
573 578
           if (response.data.state == 1) {
574 579
             this.month_prescriptions = []
@@ -585,13 +590,13 @@
585 590
           patient_id: this.patientInfo.id,
586 591
           start_time: this.other_start_time,
587 592
           end_time: val,
588
-          p_type:2
593
+          p_type: 2
589 594
 
590
-        };
595
+        }
591 596
         getDayOrMonthHisPrescription(params).then(response => {
592 597
           if (response.data.state == 1) {
593
-            this.month_prescriptions = [];
594
-            this.setMonthPrescription(response.data.data.day_prescription);
598
+            this.month_prescriptions = []
599
+            this.setMonthPrescription(response.data.data.day_prescription)
595 600
             this.curMonthPrescriptions = this.month_prescriptions[0]
596 601
 
597 602
           } else {
@@ -618,7 +623,7 @@
618 623
 
619 624
         }
620 625
 
621
-        if (this.$store.getters.xt_user.org_id == 10028 || this.$store.getters.xt_user.org_id == 9504 ||  this.$store.getters.xt_user.org_id == 10138) {
626
+        if (this.$store.getters.xt_user.org_id == 10028 || this.$store.getters.xt_user.org_id == 9504 || this.$store.getters.xt_user.org_id == 10138) {
622 627
           var that = this
623 628
           axios.get('http://127.0.0.1:9532/sz/api/settle/get', {
624 629
             params: form
@@ -639,16 +644,15 @@
639 644
                   }).catch(() => {
640 645
                   })
641 646
 
642
-
643 647
                 } else {
644
-                  that.changeRadioAndPatient(2);
645
-                  that.radio = 2;
646
-                  that.$refs.charge.hide();
647
-                  that.state = '已收费';
648
-                  that.$message({ message: '收费成功', type: 'success' });
649
-                  that.loadingtwo = false;
650
-                  that.cal_one = this.cal_one - 1;
651
-                  that.cal_two = this.cal_two + 1;
648
+                  that.changeRadioAndPatient(2)
649
+                  that.radio = 2
650
+                  that.$refs.charge.hide()
651
+                  that.state = '已收费'
652
+                  that.$message({ message: '收费成功', type: 'success' })
653
+                  that.loadingtwo = false
654
+                  that.cal_one = this.cal_one - 1
655
+                  that.cal_two = this.cal_two + 1
652 656
                   that.patientTableData.splice(this.current_index, 1)
653 657
                 }
654 658
               }
@@ -657,8 +661,8 @@
657 661
 
658 662
             })
659 663
 
660
-        } else if (this.$store.getters.xt_user.org_id == 9919 || this.$store.getters.xt_user.org_id == 4 || this.$store.getters.xt_user.org_id == 9538 || this.$store.getters.xt_user.org_id == 9671 || this.$store.getters.xt_user.org_id == 9674 || this.$store.getters.xt_user.org_id == 10106 || this.$store.getters.xt_user.org_id == 9990  ) {
661
-          var that = this;
664
+        } else if (this.$store.getters.xt_user.org_id == 9919 || this.$store.getters.xt_user.org_id == 4 || this.$store.getters.xt_user.org_id == 9538 || this.$store.getters.xt_user.org_id == 9671 || this.$store.getters.xt_user.org_id == 9674 || this.$store.getters.xt_user.org_id == 10106 || this.$store.getters.xt_user.org_id == 9990) {
665
+          var that = this
662 666
           axios.get('http://127.0.0.1:9532/api/upload/get', {
663 667
             params: form,
664 668
             headers: {
@@ -681,20 +685,18 @@
681 685
                   }).catch(() => {
682 686
                   })
683 687
 
684
-
685 688
                 } else {
686
-                  that.changeRadioAndPatient(2);
687
-                  that.radio = 2;
688
-                  that.$refs.charge.hide();
689
-                  that.loadingtwo = false;
690
-                  that.state = '已收费';
691
-                  that.$message({ message: '收费成功', type: 'success', duration: 5000 });
692
-                  that.loadingtwo = false;
693
-                  that.cal_one = this.cal_one - 1;
694
-                  that.cal_two = this.cal_two + 1;
689
+                  that.changeRadioAndPatient(2)
690
+                  that.radio = 2
691
+                  that.$refs.charge.hide()
692
+                  that.loadingtwo = false
693
+                  that.state = '已收费'
694
+                  that.$message({ message: '收费成功', type: 'success', duration: 5000 })
695
+                  that.loadingtwo = false
696
+                  that.cal_one = this.cal_one - 1
697
+                  that.cal_two = this.cal_two + 1
695 698
                   that.patientTableData.splice(this.current_index, 1)
696 699
 
697
-
698 700
                 }
699 701
               }
700 702
             })
@@ -704,19 +706,19 @@
704 706
         } else {
705 707
           upload(form).then(response => {
706 708
             if (response.data.state == 0) {
707
-              this.$message.error(response.data.msg);
708
-              this.loadingtwo = false;
709
-              this.$refs.charge.hide();
709
+              this.$message.error(response.data.msg)
710
+              this.loadingtwo = false
711
+              this.$refs.charge.hide()
710 712
               return false
711 713
             } else {
712
-              this.$refs.charge.hide();
713
-              this.radio = 2;
714
-              this.changeRadioAndPatient(2);
715
-
716
-              this.loadingtwo = false;
717
-              this.state = '已收费';
718
-              this.$message({ message: '收费成功', type: 'success' });
719
-              this.$refs.charge.hide();
714
+              this.$refs.charge.hide()
715
+              this.radio = 2
716
+              this.changeRadioAndPatient(2)
717
+
718
+              this.loadingtwo = false
719
+              this.state = '已收费'
720
+              this.$message({ message: '收费成功', type: 'success' })
721
+              this.$refs.charge.hide()
720 722
               this.loadingtwo = false
721 723
             }
722 724
           })
@@ -727,14 +729,14 @@
727 729
         this.$refs.register9504.hide()
728 730
 
729 731
       }, registerConfirm(forms) {
730
-        forms['record_time'] = this.record_date;
731
-        forms['admin_user_id'] = this.$store.getters.xt_user.user.id;
732
-        forms['org_id'] = this.$store.getters.xt_user.org_id;
732
+        forms['record_time'] = this.record_date
733
+        forms['admin_user_id'] = this.$store.getters.xt_user.user.id
734
+        forms['org_id'] = this.$store.getters.xt_user.org_id
733 735
 
734
-        this.loadingone = true;
736
+        this.loadingone = true
735 737
 
736 738
         var that = this
737
-        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) {
739
+        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) {
738 740
           axios.get('http://127.0.0.1:9532/sz/api/register/get', {
739 741
             params: forms,
740 742
             headers: {
@@ -757,11 +759,10 @@
757 759
                   }).catch(() => {
758 760
                   })
759 761
 
760
-
761 762
                 } else {
762 763
                   that.changeRadio(1)
763
-                  that.$refs.register9504.hide();
764
-                  that.$message({ message: '挂号成功', type: 'success' });
764
+                  that.$refs.register9504.hide()
765
+                  that.$message({ message: '挂号成功', type: 'success' })
765 766
                   // let params = {
766 767
                   //   'record_date': that.record_date
767 768
                   // }
@@ -879,7 +880,7 @@
879 880
 
880 881
         var that = this
881 882
 
882
-        if (this.$store.getters.xt_user.org_id == 10028 || this.$store.getters.xt_user.org_id == 9504 ||this.$store.getters.xt_user.org_id == 10138) {
883
+        if (this.$store.getters.xt_user.org_id == 10028 || this.$store.getters.xt_user.org_id == 9504 || this.$store.getters.xt_user.org_id == 10138) {
883 884
 
884 885
           axios.get('http://127.0.0.1:9532/sz/api/register/get', {
885 886
             params: forms,
@@ -1016,7 +1017,7 @@
1016 1017
 
1017 1018
             })
1018 1019
 
1019
-        } else if (this.$store.getters.xt_user.org_id == 9919 || this.$store.getters.xt_user.org_id == 4 || this.$store.getters.xt_user.org_id == 9538 || this.$store.getters.xt_user.org_id == 9671  || this.$store.getters.xt_user.org_id == 9674 || this.$store.getters.xt_user.org_id == 10106 || this.$store.getters.xt_user.org_id == 9990) {
1020
+        } else if (this.$store.getters.xt_user.org_id == 9919 || this.$store.getters.xt_user.org_id == 4 || this.$store.getters.xt_user.org_id == 9538 || this.$store.getters.xt_user.org_id == 9671 || this.$store.getters.xt_user.org_id == 9674 || this.$store.getters.xt_user.org_id == 10106 || this.$store.getters.xt_user.org_id == 9990) {
1020 1021
           var that = this
1021 1022
           axios.get('http://127.0.0.1:9532/api/register/get', {
1022 1023
             params: forms,
@@ -1184,9 +1185,9 @@
1184 1185
           'record_date': val,
1185 1186
           'patient_id': this.patientInfo.id,
1186 1187
           'type': this.radio,
1187
-          'p_type':2,
1188
-          'his_patient_id':this.hisPatientInfo.id
1189
-        };
1188
+          'p_type': 2,
1189
+          'his_patient_id': this.hisPatientInfo.id
1190
+        }
1190 1191
         getChargeHisPatientInfo(params).then(response => {
1191 1192
           if (response.data.state == 0) {
1192 1193
             this.$message.error(response.data.msg)
@@ -1247,23 +1248,21 @@
1247 1248
                   remark: prescription.project[b].remark,
1248 1249
                   // medical_code: prescription.project[b].project.medical_code,
1249 1250
                   unit: prescription.project[b].unit,
1250
-                  type:prescription.project[b].type,
1251
+                  type: prescription.project[b].type
1251 1252
 
1252 1253
                 }
1253 1254
 
1254
-                if(prescription.project[b].type == 2){
1255
-                  obj['statistical_classification'] =  prescription.project[b].project.statistical_classification
1256
-                  obj['medical_code'] =  prescription.project[b].project.medical_code
1257
-                  obj['project_name'] =  prescription.project[b].project.project_name
1255
+                if (prescription.project[b].type == 2) {
1256
+                  obj['statistical_classification'] = prescription.project[b].project.statistical_classification
1257
+                  obj['medical_code'] = prescription.project[b].project.medical_code
1258
+                  obj['project_name'] = prescription.project[b].project.project_name
1258 1259
 
1259
-                }else if(prescription.project[b].type == 3){
1260
-                  obj['statistical_classification'] = ""
1261
-                  obj['medical_code'] =  prescription.project[b].good_info.medical_insurance_number
1262
-                  obj['project_name'] =  prescription.project[b].good_info.good_name
1260
+                } else if (prescription.project[b].type == 3) {
1261
+                  obj['statistical_classification'] = ''
1262
+                  obj['medical_code'] = prescription.project[b].good_info.medical_insurance_number
1263
+                  obj['project_name'] = prescription.project[b].good_info.good_name
1263 1264
                 }
1264 1265
 
1265
-
1266
-
1267 1266
                 tempProject.push(obj)
1268 1267
               }
1269 1268
               let index = i + 1
@@ -1274,7 +1273,7 @@
1274 1273
                 project: tempProject,
1275 1274
                 type: prescription.type,
1276 1275
                 order_status: prescription.order_status
1277
-              };
1276
+              }
1278 1277
               this.prescriptions.push(obj)
1279 1278
             }
1280 1279
             this.curPrescriptions = this.prescriptions[0]
@@ -1818,7 +1817,7 @@
1818 1817
           }
1819 1818
 
1820 1819
         } else if (index == 5) {
1821
-          if (this.$store.getters.xt_user.org_id == 9919 || this.$store.getters.xt_user.org_id == 4 || this.$store.getters.xt_user.org_id == 9538 || this.$store.getters.xt_user.org_id == 9671 || this.$store.getters.xt_user.org_id == 9674 || this.$store.getters.xt_user.org_id == 10106 || this.$store.getters.xt_user.org_id == 9990 ) {
1820
+          if (this.$store.getters.xt_user.org_id == 9919 || this.$store.getters.xt_user.org_id == 4 || this.$store.getters.xt_user.org_id == 9538 || this.$store.getters.xt_user.org_id == 9671 || this.$store.getters.xt_user.org_id == 9674 || this.$store.getters.xt_user.org_id == 10106 || this.$store.getters.xt_user.org_id == 9990) {
1822 1821
 
1823 1822
             var that = this
1824 1823
             this.$confirm('是否退费', '退费', {
@@ -1855,8 +1854,8 @@
1855 1854
                       })
1856 1855
 
1857 1856
                     } else {
1858
-                      that.changeRadioAndPatient(1);
1859
-                      that.$message({ message: '退费成功', type: 'success', duration: 5000 });
1857
+                      that.changeRadioAndPatient(1)
1858
+                      that.$message({ message: '退费成功', type: 'success', duration: 5000 })
1860 1859
                       that.loadingtwo = false
1861 1860
                     }
1862 1861
 
@@ -1890,9 +1889,9 @@
1890 1889
                   this.loadingtwo = false
1891 1890
                   return false
1892 1891
                 } else {
1893
-                  this.radio = 1;
1894
-                  this.changeRadioAndPatient(1);
1895
-                  this.$message({ message: '退费成功', type: 'success' });
1892
+                  this.radio = 1
1893
+                  this.changeRadioAndPatient(1)
1894
+                  this.$message({ message: '退费成功', type: 'success' })
1896 1895
                   this.loadingtwo = false
1897 1896
 
1898 1897
                 }
@@ -1921,9 +1920,9 @@
1921 1920
             clr_type: '11',
1922 1921
             org_id: this.$store.getters.xt_user.org_id
1923 1922
 
1924
-          };
1923
+          }
1925 1924
 
1926
-          var that = this;
1925
+          var that = this
1927 1926
 
1928 1927
           if (this.$store.getters.xt_user.org_id == 9919 || this.$store.getters.xt_user.org_id == 10106 || this.$store.getters.xt_user.org_id == 9990) {
1929 1928
             axios.get('http://127.0.0.1:9532/api/checkaccount/get', {
@@ -1931,7 +1930,7 @@
1931 1930
             })
1932 1931
               .then(function(response) {
1933 1932
                 if (response.data.state == 0) {
1934
-                  that.$message.error(response.data.msg);
1933
+                  that.$message.error(response.data.msg)
1935 1934
                   // that.loadingtwo = false
1936 1935
                   return false
1937 1936
                 } else {
@@ -1948,15 +1947,15 @@
1948 1947
           let params = {
1949 1948
             start_time: '2020-12-28',
1950 1949
             end_time: '2020-12-30'
1951
-          };
1952
-          var that = this;
1950
+          }
1951
+          var that = this
1953 1952
           axios.get('http://127.0.0.1:9532/api/checkdetailaccount/get', {
1954 1953
             params: params
1955 1954
           })
1956 1955
             .then(function(response) {
1957 1956
               if (response.data.state == 0) {
1958
-                that.$message.error(response.data.msg);
1959
-                that.loadingtwo = false;
1957
+                that.$message.error(response.data.msg)
1958
+                that.loadingtwo = false
1960 1959
                 return false
1961 1960
               } else {
1962 1961
 
@@ -1967,18 +1966,18 @@
1967 1966
             })
1968 1967
 
1969 1968
         } else if (index == 9) {
1970
-          this.statementVisible = true;
1969
+          this.statementVisible = true
1971 1970
           let obj = {
1972 1971
             order_id: this.order.id,
1973
-            settle_type:this.order.settle_type,
1974
-            start_time:this.order.settle_start_time,
1975
-            end_time:this.order.settle_end_time,
1976
-          };
1972
+            settle_type: this.order.settle_type,
1973
+            start_time: this.order.settle_start_time,
1974
+            end_time: this.order.settle_end_time
1975
+          }
1977 1976
           this.orderObj = obj
1978 1977
           // this.$refs.print.getInfo(this.order.id)
1979 1978
 
1980 1979
         } else if (index == 10) {
1981
-          var that = this;
1980
+          var that = this
1982 1981
           this.$confirm('是否退号', '退号', {
1983 1982
             confirmButtonText: '确 定',
1984 1983
             cancelButtonText: '取 消',
@@ -1990,7 +1989,7 @@
1990 1989
               'record_time': this.record_date,
1991 1990
               'org_id': this.$store.getters.xt_user.org_id,
1992 1991
               'admin_user_id': this.$store.getters.xt_user.user.id
1993
-            };
1992
+            }
1994 1993
             axios.get('http://127.0.0.1:9532/api/refundnumber/post', {
1995 1994
               params: params
1996 1995
             })
@@ -2010,8 +2009,8 @@
2010 2009
                     })
2011 2010
 
2012 2011
                   } else {
2013
-                    that.radio = 1;
2014
-                    that.changeRadioAndPatient(1);
2012
+                    that.radio = 1
2013
+                    that.changeRadioAndPatient(1)
2015 2014
                     that.$message({ message: '退号成功', type: 'success', duration: 5000 })
2016 2015
                   }
2017 2016
 
@@ -2028,7 +2027,7 @@
2028 2027
             'patient_id': this.patientInfo.id,
2029 2028
             'record_time': this.record_date,
2030 2029
             'org_id': this.$store.getters.xt_user.org_id
2031
-          };
2030
+          }
2032 2031
           axios.get('http://127.0.0.1:9532/api/refunddetail/post', {
2033 2032
             params: params
2034 2033
           })
@@ -2050,7 +2049,7 @@
2050 2049
           let params = {
2051 2050
             'name': '琥珀酸亚铁片',
2052 2051
             'codg': 'XB03AAH026A001010104942'
2053
-          };
2052
+          }
2054 2053
           axios.get('http://127.0.0.1:9532/api/code/get', {
2055 2054
             params: params
2056 2055
           })
@@ -2077,8 +2076,8 @@
2077 2076
           })
2078 2077
             .then(function(response) {
2079 2078
               if (response.data.state == 0) {
2080
-                that.$message.error(response.data.msg);
2081
-                that.loadingtwo = false;
2079
+                that.$message.error(response.data.msg)
2080
+                that.loadingtwo = false
2082 2081
                 return false
2083 2082
               } else {
2084 2083
                 that.loadingtwo = false
@@ -2087,22 +2086,22 @@
2087 2086
             .catch(function(error) {
2088 2087
             })
2089 2088
         } else if (index == 15) {
2090
-          var that = this;
2091
-          if (this.$store.getters.xt_user.org_id == 9919 || this.$store.getters.xt_user.org_id == 4 || this.$store.getters.xt_user.org_id == 9538 || this.$store.getters.xt_user.org_id == 10106 ||   this.$store.getters.xt_user.org_id == 9990) {
2089
+          var that = this
2090
+          if (this.$store.getters.xt_user.org_id == 9919 || this.$store.getters.xt_user.org_id == 4 || this.$store.getters.xt_user.org_id == 9538 || this.$store.getters.xt_user.org_id == 10106 || this.$store.getters.xt_user.org_id == 9990) {
2092 2091
 
2093 2092
             if (this.diagnosis.length || this.diagnosis == 0) {
2094
-              that.$message.error('诊断不能为空,请选择诊断内容');
2093
+              that.$message.error('诊断不能为空,请选择诊断内容')
2095 2094
               return
2096 2095
             }
2097 2096
 
2098 2097
             if (this.sick_type.length || this.sick_type == 0) {
2099 2098
 
2100
-              that.$message.error('疾病类型不能为空,请选择疾病类型');
2099
+              that.$message.error('疾病类型不能为空,请选择疾病类型')
2101 2100
               return
2102 2101
             }
2103 2102
 
2104 2103
             if (this.reg_type.length || this.reg_type == 0) {
2105
-              that.$message.error('处方类型不能为空,请选择处方类型');
2104
+              that.$message.error('处方类型不能为空,请选择处方类型')
2106 2105
               return
2107 2106
             }
2108 2107
 
@@ -2283,7 +2282,7 @@
2283 2282
         console.log(id)
2284 2283
         this.radioStatus = id
2285 2284
         this.getPatientList()
2286
-      },      changeRadioAndPatient(id) {
2285
+      }, changeRadioAndPatient(id) {
2287 2286
         // console.log(id)
2288 2287
         // this.radioStatus = id
2289 2288
         // this.getPatientList()
@@ -2368,8 +2367,7 @@
2368 2367
                 }
2369 2368
               }
2370 2369
 
2371
-            }
2372
-            else { //月结
2370
+            } else { //月结
2373 2371
 
2374 2372
               for (let i = 0; i < this.hisPatientDatas.length; i++) {
2375 2373
                 if (this.hisPatientDatas[i].order_status == 0 || this.hisPatientDatas[i].order_status == 1) {
@@ -2400,7 +2398,7 @@
2400 2398
                 this.patientTableData = []
2401 2399
                 if (this.activeName == 'first') {
2402 2400
 
2403
-                  console.log("~~~~~~")
2401
+                  console.log('~~~~~~')
2404 2402
                   console.log(this.all_table_data)
2405 2403
 
2406 2404
                   for (let i = 0; i < this.all_table_data.length; i++) {
@@ -2418,8 +2416,6 @@
2418 2416
                   }
2419 2417
                 }
2420 2418
 
2421
-
2422
-
2423 2419
                 break
2424 2420
               case 2:
2425 2421
                 this.patientTableData = []
@@ -2465,33 +2461,33 @@
2465 2461
 
2466 2462
             }
2467 2463
 
2468
-            this.current_index = 0;
2469
-            for (let i = 0; i < this.patientTableData.length; i++){
2470
-              if(this.hisPatientInfo.id == this.patientTableData[i].his_patient_id) {
2471
-                this.$refs.tab.setCurrentRow(this.patientTableData[i]);
2464
+            this.current_index = 0
2465
+            for (let i = 0; i < this.patientTableData.length; i++) {
2466
+              if (this.hisPatientInfo.id == this.patientTableData[i].his_patient_id) {
2467
+                this.$refs.tab.setCurrentRow(this.patientTableData[i])
2472 2468
                 this.getPatientInformation(this.patientTableData[i].id, this.patientTableData[i].order.number, this.patientTableData[i].his_patient.id)
2473 2469
               }
2474 2470
             }
2475 2471
           }
2476 2472
         })
2477 2473
 
2478
-      },   changeRadio(id) {
2479
-        let temp_id = id;
2474
+      }, changeRadio(id) {
2475
+        let temp_id = id
2480 2476
         this.radio = id
2481 2477
         let params = {
2482 2478
           'record_date': this.record_date
2483
-        };
2479
+        }
2484 2480
         getChargeHisPatientList(params).then(response => {
2485 2481
           if (response.data.state == 0) {
2486
-            this.$message.error(response.data.msg);
2482
+            this.$message.error(response.data.msg)
2487 2483
             return false
2488 2484
           } else {
2489
-            this.patientTableData = [];
2490
-            this.hisPatientDatas = [];
2491
-            this.all_table_data = [];
2492
-            let one_count = 0;
2493
-            let two_count = 0;
2494
-            let three_count = 0;
2485
+            this.patientTableData = []
2486
+            this.hisPatientDatas = []
2487
+            this.all_table_data = []
2488
+            let one_count = 0
2489
+            let two_count = 0
2490
+            let three_count = 0
2495 2491
 
2496 2492
             for (let i = 0; i < response.data.data.list.length; i++) {
2497 2493
               if (response.data.data.list[i].his_patient.length == 0) { //没挂号
@@ -2543,8 +2539,6 @@
2543 2539
               }
2544 2540
             }
2545 2541
 
2546
-
2547
-
2548 2542
             if (this.activeName == 'first') { //日结
2549 2543
 
2550 2544
               for (let i = 0; i < this.all_table_data.length; i++) {
@@ -2556,8 +2550,7 @@
2556 2550
                 }
2557 2551
               }
2558 2552
 
2559
-            }
2560
-            else { //月结
2553
+            } else { //月结
2561 2554
 
2562 2555
               for (let i = 0; i < this.hisPatientDatas.length; i++) {
2563 2556
                 if (this.hisPatientDatas[i].order_status == 0 || this.hisPatientDatas[i].order_status == 1) {
@@ -2577,9 +2570,9 @@
2577 2570
 
2578 2571
             }
2579 2572
 
2580
-            this.cal_one = one_count;
2581
-            this.cal_two = two_count;
2582
-            this.cal_three = three_count;
2573
+            this.cal_one = one_count
2574
+            this.cal_two = two_count
2575
+            this.cal_three = three_count
2583 2576
             switch (temp_id) {
2584 2577
 
2585 2578
               case 1:
@@ -2646,11 +2639,11 @@
2646 2639
 
2647 2640
             }
2648 2641
 
2649
-            this.current_index = 0;
2642
+            this.current_index = 0
2650 2643
 
2651
-            for (let i = 0; i < this.patientTableData.length; i++){
2652
-              if(this.patientInfo.id == this.patientTableData[i].id) {
2653
-                this.$refs.tab.setCurrentRow(this.patientTableData[i]);
2644
+            for (let i = 0; i < this.patientTableData.length; i++) {
2645
+              if (this.patientInfo.id == this.patientTableData[i].id) {
2646
+                this.$refs.tab.setCurrentRow(this.patientTableData[i])
2654 2647
                 // this.getPatientInformation(this.patientTableData[i].id, this.patientTableData[i].order.number, this.patientTableData[i].his_patient.id)
2655 2648
               }
2656 2649
             }
@@ -2658,7 +2651,7 @@
2658 2651
           }
2659 2652
         })
2660 2653
 
2661
-      },formatDecimal(num, decimal) {
2654
+      }, formatDecimal(num, decimal) {
2662 2655
         num = num.toString()
2663 2656
         let index = num.indexOf('.')
2664 2657
         if (index !== -1) {
@@ -2754,7 +2747,7 @@
2754 2747
 
2755 2748
             switch (this.radio) {
2756 2749
               case 1:
2757
-                this.patientTableData = [];
2750
+                this.patientTableData = []
2758 2751
 
2759 2752
                 for (let i = 0; i < this.all_table_data.length; i++) {
2760 2753
                   if (this.all_table_data[i].order_status == 0 || this.all_table_data[i].order_status == 1 || this.all_table_data[i].order_status == 3) {
@@ -2896,16 +2889,15 @@
2896 2889
           for (let a = 0; a < project_month_prescriptions.project.length; a++) {
2897 2890
             if (project_ids[i].price == project_month_prescriptions.project[a].price && project_ids[i].id == project_month_prescriptions.project[a].project_id) {
2898 2891
 
2899
-              if(project_month_prescriptions.project[a].type == 2){
2900
-                obj['statistical_classification'] =  project_month_prescriptions.project[a].project.statistical_classification
2901
-                obj['medical_code'] =  project_month_prescriptions.project[a].project.medical_code
2902
-                obj['project_name'] =  project_month_prescriptions.project[a].project.project_name
2892
+              if (project_month_prescriptions.project[a].type == 2) {
2893
+                obj['statistical_classification'] = project_month_prescriptions.project[a].project.statistical_classification
2894
+                obj['medical_code'] = project_month_prescriptions.project[a].project.medical_code
2895
+                obj['project_name'] = project_month_prescriptions.project[a].project.project_name
2903 2896
 
2904
-
2905
-              }else if(project_month_prescriptions.project[a].type == 3){
2906
-                obj['statistical_classification'] = ""
2907
-                obj['medical_code'] =  project_month_prescriptions.project[a].good_info.medical_insurance_number
2908
-                obj['project_name'] =  project_month_prescriptions.project[a].good_info.good_name
2897
+              } else if (project_month_prescriptions.project[a].type == 3) {
2898
+                obj['statistical_classification'] = ''
2899
+                obj['medical_code'] = project_month_prescriptions.project[a].good_info.medical_insurance_number
2900
+                obj['project_name'] = project_month_prescriptions.project[a].good_info.good_name
2909 2901
 
2910 2902
               }
2911 2903
 
@@ -3015,7 +3007,7 @@
3015 3007
           'start_time': this.other_start_time,
3016 3008
           'end_time': this.other_end_time,
3017 3009
           'type': this.radio,
3018
-          'p_type':2,
3010
+          'p_type': 2
3019 3011
 
3020 3012
         }
3021 3013
         this.loading = true
@@ -3109,23 +3101,20 @@
3109 3101
                   remark: prescription.project[b].remark,
3110 3102
                   // medical_code: prescription.project[b].project.medical_code,
3111 3103
                   unit: prescription.project[b].unit,
3112
-                  type:prescription.project[b].type,
3104
+                  type: prescription.project[b].type
3113 3105
                 }
3114 3106
 
3107
+                if (prescription.project[b].type == 2) {
3108
+                  obj['statistical_classification'] = prescription.project[b].project.statistical_classification
3109
+                  obj['medical_code'] = prescription.project[b].project.medical_code
3110
+                  obj['project_name'] = prescription.project[b].project.project_name
3115 3111
 
3116
-                if(prescription.project[b].type == 2){
3117
-                  obj['statistical_classification'] =  prescription.project[b].project.statistical_classification
3118
-                  obj['medical_code'] =  prescription.project[b].project.medical_code
3119
-                  obj['project_name'] =  prescription.project[b].project.project_name
3120
-
3121
-                }else if(prescription.project[b].type == 3){
3122
-                  obj['statistical_classification'] = ""
3123
-                  obj['medical_code'] =  prescription.project[b].good_info.medical_insurance_number
3124
-                  obj['project_name'] =  prescription.project[b].good_info.good_name
3112
+                } else if (prescription.project[b].type == 3) {
3113
+                  obj['statistical_classification'] = ''
3114
+                  obj['medical_code'] = prescription.project[b].good_info.medical_insurance_number
3115
+                  obj['project_name'] = prescription.project[b].good_info.good_name
3125 3116
                 }
3126 3117
 
3127
-
3128
-
3129 3118
                 tempProject.push(obj)
3130 3119
               }
3131 3120
 
@@ -3210,7 +3199,7 @@
3210 3199
                     that.$message.error(response.data.data.msg)
3211 3200
 
3212 3201
                   } else {
3213
-                    that.changeRadioAndPatient(1);
3202
+                    that.changeRadioAndPatient(1)
3214 3203
                     that.$message({ message: '预结算成功', type: 'success' })
3215 3204
                   }
3216 3205
 
@@ -3253,7 +3242,7 @@
3253 3242
                       that.$message.error(response.data.data.msg)
3254 3243
 
3255 3244
                     } else {
3256
-                      that.changeRadioAndPatient(1);
3245
+                      that.changeRadioAndPatient(1)
3257 3246
                       that.$message({ message: '退费成功', type: 'success' })
3258 3247
                     }
3259 3248
                   }
@@ -3293,10 +3282,10 @@
3293 3282
                 }
3294 3283
               })
3295 3284
               .catch(function(error) {
3296
-              });
3297
-            break;
3285
+              })
3286
+            break
3298 3287
           case 7:
3299
-            var that = this;
3288
+            var that = this
3300 3289
             axios.get('http://127.0.0.1:9532/sz/api/detail/cancel', {
3301 3290
               params: {
3302 3291
                 order_id: this.order.id,
@@ -3308,7 +3297,7 @@
3308 3297
             })
3309 3298
               .then(function(response) {
3310 3299
                 if (response.data.state == 0) {
3311
-                  that.$message.error(response.data.msg);
3300
+                  that.$message.error(response.data.msg)
3312 3301
                   return false
3313 3302
                 } else {
3314 3303
                   if (response.data.data.failed_code == -10) {
@@ -3321,7 +3310,6 @@
3321 3310
                     }).catch(() => {
3322 3311
                     })
3323 3312
 
3324
-
3325 3313
                   } else {
3326 3314
 
3327 3315
                     that.$message({ message: '明细撤销成功', type: 'success' })
@@ -3330,11 +3318,63 @@
3330 3318
                 }
3331 3319
               })
3332 3320
               .catch(function(error) {
3333
-              });
3321
+              })
3322
+
3323
+            break
3324
+          case 8:
3325
+            var that = this
3326
+            let form = {}
3327
+            form['id'] = this.patientInfo.id
3328
+            form['his_patient_id'] = this.hisPatientInfo.id
3329
+            form['record_time'] = this.record_date
3330
+            form['admin_user_id'] = this.$store.getters.xt_user.user.id
3331
+            form['org_id'] = this.$store.getters.xt_user.org_id
3332
+            if (this.activeName == 'first') {
3333
+              form['settle_accounts_type'] = 1
3334
+            } else {
3335
+              form['start_time'] = this.other_start_time
3336
+              form['end_time'] = this.other_end_time
3337
+              form['settle_accounts_type'] = 2
3338
+            }
3339
+            this.$confirm('是否进行预结算', '预结算', {
3340
+              confirmButtonText: '确 定',
3341
+              cancelButtonText: '取 消',
3342
+              type: 'warning'
3343
+            }).then(() => {
3344
+              axios.get('http://127.0.0.1:9532/sz/api/presettle/get', {
3345
+                params:form,
3346
+                headers: {
3347
+                  'Permission': 5
3348
+                }
3349
+              })
3350
+                .then(function(response) {
3351
+                  if (response.data.state == 0) {
3352
+                    that.$message.error(response.data.msg)
3353
+                    return false
3354
+                  } else {
3355
+                    if (response.data.data.failed_code == -10) {
3356
+                      that.$confirm(response.data.data.msg, '医保错误信息', {
3357
+                        confirmButtonText: '确 定',
3358
+                        type: 'warning'
3359
+                      }).then(() => {
3334 3360
 
3335
-            break;
3361
+                      }).catch(() => {
3362
+                      })
3363
+                    } else {
3364
+                      that.changeRadioAndPatient(1)
3365
+                      that.$message({ message: '预结算成功', type: 'success', duration: 5000 })
3366
+                    }
3367
+                  }
3368
+                })
3369
+                .catch(function(error) {
3370
+
3371
+                })
3372
+            }).catch(() => {
3373
+
3374
+            })
3375
+            break
3336 3376
           case 10:
3337
-            this.newStatementVisible = true;
3377
+            this.newStatementVisible = true
3338 3378
             let obj = {
3339 3379
               record_time: this.record_date,
3340 3380
               patient_id: this.patient_id,
@@ -3342,12 +3382,12 @@
3342 3382
               order_id: this.order.id,
3343 3383
               admin_user_id: this.$store.getters.xt_user.user.id
3344 3384
 
3345
-            };
3346
-            this.newOrderObj = obj;
3385
+            }
3386
+            this.newOrderObj = obj
3347 3387
             // this.$refs.print.getInfo(this.order.id)
3348
-            break;
3388
+            break
3349 3389
           case 11:
3350
-            var that = this;
3390
+            var that = this
3351 3391
             this.$confirm('是否退号', '退号', {
3352 3392
               confirmButtonText: '确 定',
3353 3393
               cancelButtonText: '取 消',
@@ -3359,12 +3399,12 @@
3359 3399
                   record_time: this.record_date,
3360 3400
                   admin_user_id: this.$store.getters.xt_user.user.id,
3361 3401
                   patient_id: this.patientInfo.id,
3362
-                  his_patient_id: this.hisPatientInfo.id,
3402
+                  his_patient_id: this.hisPatientInfo.id
3363 3403
                 }
3364 3404
               })
3365 3405
                 .then(function(response) {
3366 3406
                   if (response.data.state == 0) {
3367
-                    that.$message.error(response.data.msg);
3407
+                    that.$message.error(response.data.msg)
3368 3408
                     return false
3369 3409
                   } else {
3370 3410
                     if (response.data.data.failed_code == -10) {
@@ -3376,9 +3416,8 @@
3376 3416
                       }).catch(() => {
3377 3417
                       })
3378 3418
 
3379
-
3380 3419
                     } else {
3381
-                      that.changeRadioAndPatient(1);
3420
+                      that.changeRadioAndPatient(1)
3382 3421
                       that.$message({ message: '退号成功', type: 'success' })
3383 3422
                     }
3384 3423
                   }
@@ -3386,7 +3425,7 @@
3386 3425
                 .catch(function(error) {
3387 3426
                 })
3388 3427
             }).catch(() => {
3389
-            });
3428
+            })
3390 3429
             break
3391 3430
 
3392 3431
         }
@@ -3394,10 +3433,10 @@
3394 3433
       }
3395 3434
     },
3396 3435
     mounted() {
3397
-      const that = this;
3436
+      const that = this
3398 3437
       window.onresize = () => {
3399 3438
         return (() => {
3400
-          window.fullHeight = document.documentElement.clientHeight;
3439
+          window.fullHeight = document.documentElement.clientHeight
3401 3440
           that.fullHeight = window.fullHeight
3402 3441
         })()
3403 3442
       }
@@ -3405,11 +3444,11 @@
3405 3444
     watch: {
3406 3445
       fullHeight(val) {
3407 3446
         if (!this.timer) {
3408
-          this.fullHeight = val;
3409
-          let tableHeight = val - 243;
3410
-          this.tableHeight = tableHeight;
3411
-          this.timer = true;
3412
-          let that = this;
3447
+          this.fullHeight = val
3448
+          let tableHeight = val - 243
3449
+          this.tableHeight = tableHeight
3450
+          this.timer = true
3451
+          let that = this
3413 3452
           setTimeout(function() {
3414 3453
             that.timer = false
3415 3454
           }, 400)

+ 26 - 3
src/xt_pages/outpatientDoctorStation/components/deskPrescription.vue View File

@@ -35,7 +35,7 @@
35 35
                     </el-form-item>
36 36
                     <el-form-item label="疾病类型:" prop="name" label-position="right">
37 37
 
38
-                        <el-select style="width:100%;" v-model="state1" placeholder="">
38
+                        <el-select  filterable style="width:100%;" v-model="state1" placeholder="">
39 39
                             <el-option
40 40
                                     v-for="(item,index) in sick"
41 41
                                     :key="index"
@@ -373,6 +373,10 @@
373 373
                                 </div>
374 374
                             </el-tab-pane>
375 375
                             <el-tab-pane label="项目组套" name="2">
376
+                                <el-input style="width:50%;" @input="searchProjectTeamAction"
377
+                                          @keyup.enter.native='searchProjectTeamAction'
378
+                                          v-model.trim="search_project_team_keyword"
379
+                                          placeholder="请输入项目组套名称"></el-input>
376 380
                                 <div style="width: 100%;flex:1;overflow-y: auto;">
377 381
                                     <el-table :data="tabPrjectTeam" border ref="tabProjectTeam"
378 382
                                               :height="multipleTableHeight != '' ? multipleTableHeight : '200'"
@@ -509,6 +513,7 @@
509 513
         register_type: '',
510 514
         value: '0',
511 515
         search_project_keyword: '',
516
+        search_project_team_keyword:"",
512 517
         form: {
513 518
           name: ''
514 519
         },
@@ -550,6 +555,7 @@
550 555
         showTwo: false,
551 556
         tableData: [],
552 557
         tabPrjectTeam: [],
558
+        allTabPrjectTeam:[],
553 559
         teamList: [],
554 560
         doctors: [],
555 561
         departMent: [],
@@ -1489,6 +1495,20 @@
1489 1495
 
1490 1496
         }
1491 1497
 
1498
+      },searchProjectTeamAction(){
1499
+        if (this.search_project_team_keyword.length == 0) {
1500
+          this.tabPrjectTeam = this.allTabPrjectTeam
1501
+
1502
+        } else {
1503
+          let arr = []
1504
+          for (let i = 0; i < this.allTabPrjectTeam.length; i++) {
1505
+            if (this.allTabPrjectTeam[i].project_team.indexOf(this.search_project_team_keyword) != -1) {
1506
+              arr = arr.concat(this.allTabPrjectTeam[i])
1507
+            }
1508
+          }
1509
+          this.tabPrjectTeam = arr
1510
+        }
1511
+
1492 1512
       },
1493 1513
       searchAction() {
1494 1514
         if (this.search_keyword.length == 0) {
@@ -2659,6 +2679,9 @@
2659 2679
           if (response.data.state == 1) {
2660 2680
             var team = response.data.data.team
2661 2681
             this.tabPrjectTeam = team
2682
+            this.allTabPrjectTeam = team
2683
+
2684
+
2662 2685
             this.projectList = team
2663 2686
           }
2664 2687
         })
@@ -2694,7 +2717,7 @@
2694 2717
             this.teamList = []
2695 2718
             var project = response.data.data.project
2696 2719
             for (let i = 0; i < project.length; i++) {
2697
-              if (project[i].type == 2) {
2720
+              if (project[i].type == 2 && project[i].status == 1) {
2698 2721
 
2699 2722
                 let obj = {
2700 2723
                   id: project[i].project_id,
@@ -2716,7 +2739,7 @@
2716 2739
                 }
2717 2740
 
2718 2741
                 this.teamList.push(obj)
2719
-              } else if (project[i].type == 3) {
2742
+              } else if (project[i].type == 3 && project[i].status == 1) {
2720 2743
                 let obj = {
2721 2744
                   id: project[i].project_id,
2722 2745
                   project_name: project[i].good_info.good_name,

+ 7 - 7
src/xt_pages/outpatientDoctorStation/components/deskRecord.vue View File

@@ -78,7 +78,7 @@
78 78
     <div class="mainTitle">病历信息:</div>
79 79
     <el-form class="recordForm" :model="case_history" ref="form" label-width="80px">
80 80
      <el-form-item label="疾病类型: " prop="name" style="width:49%;">
81
-        <el-select v-model="case_history.sick" style="width:100%;" placeholder="请选择">
81
+        <el-select  filterable v-model="case_history.sick" style="width:100%;" placeholder="请选择">
82 82
           <el-option
83 83
             v-for="(item,index) in sick"
84 84
             :key="index"
@@ -393,7 +393,7 @@
393 393
 
394 394
 
395 395
       getTemplateDetail(id){
396
-         
396
+
397 397
           getTemplateDetail(id).then(response=>{
398 398
               if(response.data.state == 1){
399 399
                 var templatedetail =  response.data.data.templateDetail
@@ -409,7 +409,7 @@
409 409
                 this.case_history.remark = templatedetail.remark
410 410
                 this.case_history.sick = templatedetail.sick
411 411
                 this.case_history.diagnose = templatedetail.diagnose
412
-                
412
+
413 413
               }
414 414
           })
415 415
         },
@@ -428,7 +428,7 @@
428 428
              this.tabledataSix = response.data.data.listSix
429 429
              this.tabledataSeven =  response.data.data.listSeven
430 430
            }
431
-        })   
431
+        })
432 432
        },
433 433
 
434 434
        changeMainTemplate(values){
@@ -531,7 +531,7 @@
531 531
           } else {
532 532
             this.sick = response.data.data.sick
533 533
             this.diagnoses = response.data.data.diagnose
534
-          
534
+
535 535
           }
536 536
         })
537 537
 
@@ -547,7 +547,7 @@
547 547
        }else if(this.patientInfo.gender = 2){
548 548
           this.patientInfo.gender = '女'
549 549
         }
550
-    
550
+
551 551
     },
552 552
     watch:{
553 553
       detalid:function(val){
@@ -579,7 +579,7 @@
579 579
             this.case_history.diagnose = ""
580 580
           }
581 581
           this.form.id = this.case_history.id
582
-         
582
+
583 583
           this.watchSign++
584 584
         },
585 585
         deep:true

+ 1 - 1
src/xt_pages/outpatientRecord/outpatientRecord.vue View File

@@ -104,7 +104,7 @@
104 104
 
105 105
                 <el-table-column align="center" prop="name" label="疾病类型">
106 106
                     <template slot-scope="scope">
107
-                        <el-select style="width:100%;" v-model="scope.row.record.sick_type" placeholder="请选择">
107
+                        <el-select  filterable style="width:100%;" v-model="scope.row.record.sick_type" placeholder="请选择">
108 108
                             <el-option
109 109
                                     v-for="(item,index) in sick"
110 110
                                     :key="index"