yq1 1 year ago
parent
commit
d22d6ce142

+ 15 - 7
src/xt_pages/outpatientCharges/chargeDetailManagement.vue View File

@@ -518,8 +518,9 @@ export default {
518 518
       }
519 519
 
520 520
     },
521
+    // 患者姓名搜索
521 522
     searchAction() {
522
-
523
+      const all_table_data = this.all_table_data
523 524
       if (this.search_input.length == 0) {
524 525
         switch (this.radio) {
525 526
           case 1:
@@ -536,18 +537,22 @@ export default {
536 537
       } else {
537 538
         switch (this.radio) {
538 539
           case 1:
540
+            console.log('11111',all_table_data);
539 541
             let arr3 = []
540
-            for (let i = 0; i < this.all_table_data.length; i++) {
541
-              if (this.all_table_data[i].name.indexOf(this.search_input) != -1) {
542
-                arr3 = arr3.concat(this.all_table_data[i])
542
+            for (let i = 0; i < all_table_data.length; i++) {
543
+              if (all_table_data[i].name.indexOf(this.search_input) != -1 ||
544
+                  all_table_data[i].first_letter.indexOf(this.search_input) != -1) {
545
+                arr3 = arr3.concat(all_table_data[i])
543 546
               }
544 547
             }
545 548
             this.patientTableData = arr3
546 549
             break
547 550
           case 2:
551
+          console.log('22222');
548 552
             let arr2 = []
549
-            for (let i = 0; i < this.all_table_data.length; i++) {
550
-              if (this.all_table_data[i].name.indexOf(this.search_input) != -1) {
553
+            for (let i = 0; i < all_table_data.length; i++) {
554
+              if (all_table_data[i].name.indexOf(this.search_input) != -1 ||
555
+                all_table_data[i].first_letter.indexOf(this.search_input) != -1) {
551 556
                 arr2 = arr2.concat(this.all_table_data[i])
552 557
               }
553 558
             }
@@ -818,7 +823,9 @@ export default {
818 823
           .catch(function(error) {
819 824
           })
820 825
       }
821
-    }, changePatientInfo() {
826
+    }, 
827
+
828
+    changePatientInfo() {
822 829
       let params = {
823 830
         'record_date': this.record_date,
824 831
         'sch_type': this.schedule_type
@@ -905,6 +912,7 @@ export default {
905 912
           this.patientTableData = []
906 913
           this.upload_num = response.data.data.upload_num
907 914
           this.un_upload_num = response.data.data.un_upload_num
915
+          console.log('4444444411111',response.data.data)
908 916
           switch (this.radio) {
909 917
             case 1:
910 918
               this.all_table_data = response.data.data.list

+ 47 - 37
src/xt_pages/outpatientCharges/outpatientChargesManagement.vue View File

@@ -1022,7 +1022,7 @@ import RegisterDialog9504 from './components/registerDialog9504'
1022 1022
 import cryptoJs from 'crypto-js'
1023 1023
 import NewStatementPrintThree from './newStatementPrintThree.vue'
1024 1024
 import CallUnAssociationPrescription from './components/callUnAssociationPrescription.vue'
1025
-import { associationprescription, checkHISPatient } from '../../api/his/his_tools'
1025
+// import { associationprescription, checkHISPatient } from '../../api/his/his_tools'
1026 1026
 
1027 1027
 const moment = require('moment')
1028 1028
 export default {
@@ -2079,6 +2079,7 @@ export default {
2079 2079
       })
2080 2080
 
2081 2081
     },
2082
+    // 1号
2082 2083
     getDayPatientList() {
2083 2084
 
2084 2085
       let params = {
@@ -2303,6 +2304,7 @@ export default {
2303 2304
       })
2304 2305
 
2305 2306
     },
2307
+    // 2号
2306 2308
     getMonthPatientList() {
2307 2309
       let params = {
2308 2310
         'record_date': this.record_date,
@@ -2748,15 +2750,18 @@ export default {
2748 2750
       }
2749 2751
 
2750 2752
     },
2753
+    // 搜索
2751 2754
     searchAction() {
2755
+      const all_patient =this.all_patient
2752 2756
       if (this.search_input.length == 0) {
2753 2757
         this.patientTableData = this.all_patient
2754
-
2755 2758
       } else {
2756
-
2759
+        console.log('6666666',all_patient);
2757 2760
         let arr = []
2758
-        for (let i = 0; i < this.all_patient.length; i++) {
2759
-          if (this.all_patient[i].name.indexOf(this.search_input) != -1 || this.all_patient[i].number.indexOf(this.search_input) != -1) {
2761
+        for (let i = 0; i < all_patient.length; i++) {
2762
+          if (all_patient[i].name.indexOf(this.search_input) != -1 || 
2763
+            all_patient[i].number.indexOf(this.search_input) != -1 ||
2764
+            all_patient[i].first_letter.indexOf(this.search_input) != -1) {
2760 2765
             arr = arr.concat(this.all_patient[i])
2761 2766
           }
2762 2767
         }
@@ -3942,6 +3947,7 @@ export default {
3942 3947
       this.radioStatus = id
3943 3948
       this.getPatientList()
3944 3949
     },
3950
+    // 3号
3945 3951
     changeRadioAndPatient(id) {
3946 3952
       this.radio = id
3947 3953
       let params = {
@@ -3949,7 +3955,6 @@ export default {
3949 3955
         'sch_type':this.sch_type,
3950 3956
 
3951 3957
       }
3952
-
3953 3958
       getChargeHisPatientList(params).then(response => {
3954 3959
         if (response.data.state == 0) {
3955 3960
           this.$message.error(response.data.msg)
@@ -3962,6 +3967,7 @@ export default {
3962 3967
           let one_count = 0
3963 3968
           let two_count = 0
3964 3969
           let three_count = 0
3970
+          console.log('111111111',response.data.data);
3965 3971
           for (let i = 0; i < response.data.data.list.length; i++) {
3966 3972
             if (response.data.data.list[i].his_patient.length == 0) { //没挂号
3967 3973
               if (response.data.data.list[i].prescription.length > 0) {
@@ -4196,9 +4202,12 @@ export default {
4196 4202
           }
4197 4203
         }
4198 4204
       })
4199
-    },changeSchtype(){
4205
+    },
4206
+    changeSchtype(){
4200 4207
       this.getPatientList()
4201
-    },changeScheduleType(val){
4208
+    },
4209
+    // 4号
4210
+    changeScheduleType(val){
4202 4211
       this.sch_type  = val
4203 4212
       let params = {
4204 4213
         'record_date': this.record_date,
@@ -4426,8 +4435,6 @@ export default {
4426 4435
         }
4427 4436
       })
4428 4437
 
4429
-
4430
-
4431 4438
       let params2 = {
4432 4439
         'record_date': this.record_date,
4433 4440
         'type': 1,
@@ -4656,6 +4663,7 @@ export default {
4656 4663
 
4657 4664
 
4658 4665
     },
4666
+    // 单击单选框患者数据源
4659 4667
     changeRadio(id) {
4660 4668
       if(this.activeName == 'first') {
4661 4669
         let temp_id = id
@@ -4676,6 +4684,7 @@ export default {
4676 4684
             let one_count = 0
4677 4685
             let two_count = 0
4678 4686
             let three_count = 0
4687
+            console.log('11111111111111111',response.data.data);
4679 4688
             for (let i = 0; i < response.data.data.list.length; i++) {
4680 4689
               if (response.data.data.list[i].his_patient.length == 0) { //没挂号
4681 4690
                 if (response.data.data.list[i].prescription.length > 0) {
@@ -4686,7 +4695,8 @@ export default {
4686 4695
                     order_status: 0,
4687 4696
                     order_number: '',
4688 4697
                     his_patient_id: 0,
4689
-                    prescription: response.data.data.list[i].prescription
4698
+                    prescription: response.data.data.list[i].prescription,
4699
+                    first_letter:response.data.data.list[i].first_letter
4690 4700
                   }
4691 4701
 
4692 4702
                   this.all_table_data.push(obj)
@@ -4704,7 +4714,8 @@ export default {
4704 4714
                         his_patient_id: response.data.data.list[i].his_patient[0].id,
4705 4715
                         order_number: response.data.data.list[i].his_patient[0].orders[b].order_number,
4706 4716
                         order_id: response.data.data.list[i].his_patient[0].orders[b].id,
4707
-                        prescription: response.data.data.list[i].prescription
4717
+                        prescription: response.data.data.list[i].prescription,
4718
+                        first_letter:response.data.data.list[i].first_letter
4708 4719
 
4709 4720
                       }
4710 4721
                       this.all_table_data.push(obj)
@@ -4719,8 +4730,8 @@ export default {
4719 4730
                       his_patient_id: response.data.data.list[i].his_patient[0].id,
4720 4731
                       order_number: '',
4721 4732
                       order_id: 0,
4722
-                      prescription: response.data.data.list[i].prescription
4723
-
4733
+                      prescription: response.data.data.list[i].prescription,
4734
+                      first_letter:response.data.data.list[i].first_letter
4724 4735
                     }
4725 4736
                     this.all_table_data.push(obj)
4726 4737
 
@@ -4738,7 +4749,8 @@ export default {
4738 4749
                         his_patient_id: response.data.data.list[i].his_patient[b].id,
4739 4750
                         order_number: '',
4740 4751
                         order_id: 0,
4741
-                        prescription: response.data.data.list[i].prescription
4752
+                        prescription: response.data.data.list[i].prescription,
4753
+                        first_letter:response.data.data.list[i].first_letter
4742 4754
                       }
4743 4755
                       this.all_table_data.push(obj)
4744 4756
                     } else {
@@ -4752,8 +4764,8 @@ export default {
4752 4764
                           his_patient_id: response.data.data.list[i].his_patient[b].id,
4753 4765
                           order_number: response.data.data.list[i].his_patient[b].orders[c].number,
4754 4766
                           order_id: response.data.data.list[i].his_patient[b].orders[c].id,
4755
-                          prescription: response.data.data.list[i].prescription
4756
-
4767
+                          prescription: response.data.data.list[i].prescription,
4768
+                          first_letter:response.data.data.list[i].first_letter
4757 4769
                         }
4758 4770
                         this.all_table_data.push(obj)
4759 4771
                       }
@@ -4814,7 +4826,7 @@ export default {
4814 4826
               this.all_table_data = this.unique_four(this.all_table_data)
4815 4827
             }
4816 4828
 
4817
-            console.log(this.all_table_data)
4829
+            console.log('yyyyy',this.all_table_data)
4818 4830
 
4819 4831
             switch (this.radio) {
4820 4832
               case 1:
@@ -4897,7 +4909,8 @@ export default {
4897 4909
         num = num.substring(0)
4898 4910
       }
4899 4911
       return parseFloat(num).toFixed(decimal)
4900
-    }, getMonthChargePatientList() {
4912
+    }, 
4913
+    getMonthChargePatientList() {
4901 4914
       let params = {
4902 4915
         'record_date': this.record_date,
4903 4916
         'start_time': this.other_start_time,
@@ -4914,7 +4927,7 @@ export default {
4914 4927
       })
4915 4928
 
4916 4929
     },
4917
-    //患者列表
4930
+    //未收费患者列表
4918 4931
     getPatientList() {
4919 4932
       let params = {
4920 4933
         'record_date': this.record_date,
@@ -4933,6 +4946,7 @@ export default {
4933 4946
           let one_count = 0
4934 4947
           let two_count = 0
4935 4948
           let three_count = 0
4949
+          console.log('vvvvvvvvvvvvv',response.data.data);
4936 4950
           for (let i = 0; i < response.data.data.list.length; i++) {
4937 4951
             if (response.data.data.list[i].his_patient.length == 0) { //没挂号
4938 4952
               if (response.data.data.list[i].prescription.length > 0) {
@@ -4944,7 +4958,8 @@ export default {
4944 4958
                   order_number: '',
4945 4959
                   his_patient_id: 0,
4946 4960
                   prescription: response.data.data.list[i].prescription,
4947
-                  schedle: response.data.data.list[i].schedule
4961
+                  schedle: response.data.data.list[i].schedule,
4962
+                  first_letter:response.data.data.list[i].first_letter
4948 4963
 
4949 4964
                 }
4950 4965
 
@@ -4964,8 +4979,8 @@ export default {
4964 4979
                       order_number: response.data.data.list[i].his_patient[0].orders[b].order_number,
4965 4980
                       order_id: response.data.data.list[i].his_patient[0].orders[b].id,
4966 4981
                       prescription: response.data.data.list[i].prescription,
4967
-                      schedle: response.data.data.list[i].schedule
4968
-
4982
+                      schedle: response.data.data.list[i].schedule,
4983
+                      first_letter:response.data.data.list[i].first_letter
4969 4984
 
4970 4985
                     }
4971 4986
                     this.all_table_data.push(obj)
@@ -4981,8 +4996,8 @@ export default {
4981 4996
                     order_number: '',
4982 4997
                     order_id: 0,
4983 4998
                     prescription: response.data.data.list[i].prescription,
4984
-                    schedle: response.data.data.list[i].schedule
4985
-
4999
+                    schedle: response.data.data.list[i].schedule,
5000
+                    first_letter:response.data.data.list[i].first_letter
4986 5001
 
4987 5002
                   }
4988 5003
                   this.all_table_data.push(obj)
@@ -5002,7 +5017,8 @@ export default {
5002 5017
                       order_number: '',
5003 5018
                       order_id: 0,
5004 5019
                       prescription: response.data.data.list[i].prescription,
5005
-                      schedle: response.data.data.list[i].schedule
5020
+                      schedle: response.data.data.list[i].schedule,
5021
+                      first_letter:response.data.data.list[i].first_letter
5006 5022
                     }
5007 5023
                     this.all_table_data.push(obj)
5008 5024
                   } else {
@@ -5017,8 +5033,8 @@ export default {
5017 5033
                         order_number: response.data.data.list[i].his_patient[b].orders[c].number,
5018 5034
                         order_id: response.data.data.list[i].his_patient[b].orders[c].id,
5019 5035
                         prescription: response.data.data.list[i].prescription,
5020
-                        schedle: response.data.data.list[i].schedule
5021
-
5036
+                        schedle: response.data.data.list[i].schedule,
5037
+                        first_letter:response.data.data.list[i].first_letter
5022 5038
 
5023 5039
                       }
5024 5040
                       this.all_table_data.push(obj)
@@ -5089,7 +5105,7 @@ export default {
5089 5105
             this.all_table_data = this.unique_four(this.all_table_data)
5090 5106
           }
5091 5107
 
5092
-
5108
+          console.log('zzzzzz',this.all_table_data);
5093 5109
           switch (this.radio) {
5094 5110
             case 1:
5095 5111
               this.patientTableData = []
@@ -5142,6 +5158,7 @@ export default {
5142 5158
         }
5143 5159
       })
5144 5160
     },
5161
+    // 5号
5145 5162
     getMonthHISPatientList() {
5146 5163
       let params = {
5147 5164
         'record_date': this.record_date,
@@ -5712,12 +5729,6 @@ export default {
5712 5729
                   }
5713 5730
                 }
5714 5731
               }
5715
-
5716
-
5717
-
5718
-
5719
-
5720
-
5721 5732
               this.sick_history = this.info.sick_history
5722 5733
               if (this.info.register_type == 0) {
5723 5734
                 this.form.p_type = ''
@@ -5852,8 +5863,7 @@ export default {
5852 5863
                   //   tempAddition.push(obj)
5853 5864
                   // }
5854 5865
                   const index = i + 1
5855
-                  console.log('~~~~~~~~')
5856
-                  console.log(prescription.order)
5866
+                  console.log('~~~~~~~~',prescription.order)
5857 5867
                   prescription.order.order_status = prescription.order.order_status.toString()
5858 5868
                   prescription.order.order_status = parseInt(prescription.order.order_status)
5859 5869
 

+ 18 - 1
src/xt_pages/outpatientCharges/summary.vue View File

@@ -3861,8 +3861,24 @@ export default {
3861 3861
       })
3862 3862
     },
3863 3863
     searchAction() {
3864
+      console.log('22222',this.keywords);
3864 3865
       this.page = 1
3865
-      this.getHisOrderList()
3866
+      const tableData = this.tableData
3867
+      if (this.keywords.length == 0) {
3868
+        this.getHisOrderList()
3869
+      } else {
3870
+        console.log('6666666',tableData);
3871
+        let arr = []
3872
+        for (let i = 0; i < tableData.length; i++) {
3873
+          
3874
+          if (tableData[i].patient.name.indexOf(this.keywords) != -1 || 
3875
+            tableData[i].patient.first_letter.indexOf(this.keywords) != -1) {
3876
+            arr = arr.concat(tableData[i])
3877
+          }
3878
+        }
3879
+        this.tableData = arr
3880
+      }
3881
+      // this.getHisOrderList()
3866 3882
     },
3867 3883
     getTimes(time) {
3868 3884
       return uParseTime(time, '{y}-{m}-{d}')
@@ -3902,6 +3918,7 @@ export default {
3902 3918
           this.$message.error(response.data.msg)
3903 3919
           return false
3904 3920
         } else {
3921
+          console.log('8888888',response.data.data);
3905 3922
           this.tableData = response.data.data.order
3906 3923
           this.tableData2 =  response.data.data.order2
3907 3924
           this.total = response.data.data.total

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

@@ -449,7 +449,7 @@
449 449
                               <el-input style="width:50%;" @input="searchProjectTeamAction"
450 450
                                         @keyup.enter.native='searchProjectTeamAction'
451 451
                                         v-model.trim="search_project_team_keyword"
452
-                                        placeholder="请输入项目组套名称"></el-input>
452
+                                        placeholder="请输入项目组套名称" :clearable="true"></el-input>
453 453
                               <div style="width: 100%;flex:1;overflow-y: auto;">
454 454
                                   <el-table :data="tabPrjectTeam" border ref="tabProjectTeam"
455 455
                                             :height="multipleTableHeight != '' ? multipleTableHeight : '200'"
@@ -1784,15 +1784,19 @@ export default {
1784 1784
         console.log('kkkk',this.tabProject);
1785 1785
       }
1786 1786
 
1787
-    }, searchProjectTeamAction() {
1787
+    }, 
1788
+    // 项目组套搜索
1789
+    searchProjectTeamAction() {
1790
+      const allTabPrjectTeam = this.allTabPrjectTeam
1788 1791
       if (this.search_project_team_keyword.length == 0) {
1789 1792
         this.tabPrjectTeam = this.allTabPrjectTeam
1790
-
1791 1793
       } else {
1794
+        // console.log('555555',allTabPrjectTeam,this.search_project_team_keyword);
1792 1795
         let arr = []
1793
-        for (let i = 0; i < this.allTabPrjectTeam.length; i++) {
1794
-          if (this.allTabPrjectTeam[i].project_team.indexOf(this.search_project_team_keyword) != -1) {
1795
-            arr = arr.concat(this.allTabPrjectTeam[i])
1796
+        for (let i = 0; i < allTabPrjectTeam.length; i++) {
1797
+          if (allTabPrjectTeam[i].project_team.indexOf(this.search_project_team_keyword) != -1 ||
1798
+              allTabPrjectTeam[i].pinyin.indexOf(this.search_project_team_keyword) != -1) {
1799
+            arr = arr.concat(allTabPrjectTeam[i])
1796 1800
           }
1797 1801
         }
1798 1802
         this.tabPrjectTeam = arr
@@ -4240,11 +4244,12 @@ export default {
4240 4244
         }
4241 4245
       }
4242 4246
     },
4247
+    // 项目组套数据源
4243 4248
     getAllProjectTeam() {
4244 4249
       getAllProjectTeam().then(response => {
4245 4250
         if (response.data.state == 1) {
4246 4251
           var team = response.data.data.team
4247
-
4252
+          // console.log('44444444422222',response.data.data);
4248 4253
           this.tabPrjectTeam = team.sort(this.compare("sort"))
4249 4254
           this.allTabPrjectTeam = team
4250 4255
 

+ 2 - 0
src/xt_pages/outpatientDoctorStation/prescriptionTemplate.vue View File

@@ -148,6 +148,7 @@ export default {
148 148
     };
149 149
   },
150 150
   methods: {
151
+    // 搜索
151 152
     searchAction() {
152 153
       this.data = [];
153 154
       if (this.search_input.length == 0) {
@@ -259,6 +260,7 @@ export default {
259 260
     getList(id) {
260 261
       getPatientListTwenty().then((response) => {
261 262
         if (response.data.state == 1) {
263
+          console.log('uuuuuuu',response.data.data);
262 264
           this.data = response.data.data.list;
263 265
           this.all_data = response.data.data.list;
264 266
           let index = null;

+ 9 - 3
src/xt_pages/user/patients.vue View File

@@ -1439,7 +1439,7 @@
1439 1439
         this.LapsetoDialogVisible = true
1440 1440
       },
1441 1441
       LapsetoInfo(row) {
1442
-        console.log("row",row)
1442
+        // console.log("row",row)
1443 1443
         if (row.lapseto === 1) {
1444 1444
           return '留治'
1445 1445
         } else if(row.lapseto === 2) {
@@ -1589,7 +1589,7 @@
1589 1589
         this.getList()
1590 1590
       },
1591 1591
       getList() {
1592
-         console.log("query23323223wo",this.listQuery)
1592
+        //  console.log("query23323223wo",this.listQuery)
1593 1593
         fetchList(this.listQuery).then(response => {
1594 1594
           if (response.data.state === 0) {
1595 1595
             this.$message.error(response.data.msg)
@@ -1597,6 +1597,7 @@
1597 1597
           } else {
1598 1598
             this.tableData = response.data.data.patients
1599 1599
             console.log("wowowowo",this.tableData)
1600
+            console.log('2222222',response.data.data)
1600 1601
             this.pageTotal = this.tableData.length
1601 1602
             this.total = response.data.data.total
1602 1603
           
@@ -1614,7 +1615,7 @@
1614 1615
             return false
1615 1616
           } else {
1616 1617
             var patient = response.data.data.patient
1617
-            console.log('二维码病人信息', patient)
1618
+            // console.log('二维码病人信息', patient)
1618 1619
             this.id = patient.id
1619 1620
             this.name = patient.name
1620 1621
             this.gender = patient.gender
@@ -1877,7 +1878,12 @@
1877 1878
           }
1878 1879
        }
1879 1880
        return work_unit
1881
+    },
1882
+
1883
+    beforeUpload(){
1884
+
1880 1885
     }
1886
+
1881 1887
     }
1882 1888
   }
1883 1889
   Vue.prototype.$QRCode = function() {