yq1 1 anno fa
parent
commit
d22d6ce142

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

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

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

1022
 import cryptoJs from 'crypto-js'
1022
 import cryptoJs from 'crypto-js'
1023
 import NewStatementPrintThree from './newStatementPrintThree.vue'
1023
 import NewStatementPrintThree from './newStatementPrintThree.vue'
1024
 import CallUnAssociationPrescription from './components/callUnAssociationPrescription.vue'
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
 const moment = require('moment')
1027
 const moment = require('moment')
1028
 export default {
1028
 export default {
2079
       })
2079
       })
2080
 
2080
 
2081
     },
2081
     },
2082
+    // 1号
2082
     getDayPatientList() {
2083
     getDayPatientList() {
2083
 
2084
 
2084
       let params = {
2085
       let params = {
2303
       })
2304
       })
2304
 
2305
 
2305
     },
2306
     },
2307
+    // 2号
2306
     getMonthPatientList() {
2308
     getMonthPatientList() {
2307
       let params = {
2309
       let params = {
2308
         'record_date': this.record_date,
2310
         'record_date': this.record_date,
2748
       }
2750
       }
2749
 
2751
 
2750
     },
2752
     },
2753
+    // 搜索
2751
     searchAction() {
2754
     searchAction() {
2755
+      const all_patient =this.all_patient
2752
       if (this.search_input.length == 0) {
2756
       if (this.search_input.length == 0) {
2753
         this.patientTableData = this.all_patient
2757
         this.patientTableData = this.all_patient
2754
-
2755
       } else {
2758
       } else {
2756
-
2759
+        console.log('6666666',all_patient);
2757
         let arr = []
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
             arr = arr.concat(this.all_patient[i])
2765
             arr = arr.concat(this.all_patient[i])
2761
           }
2766
           }
2762
         }
2767
         }
3942
       this.radioStatus = id
3947
       this.radioStatus = id
3943
       this.getPatientList()
3948
       this.getPatientList()
3944
     },
3949
     },
3950
+    // 3号
3945
     changeRadioAndPatient(id) {
3951
     changeRadioAndPatient(id) {
3946
       this.radio = id
3952
       this.radio = id
3947
       let params = {
3953
       let params = {
3949
         'sch_type':this.sch_type,
3955
         'sch_type':this.sch_type,
3950
 
3956
 
3951
       }
3957
       }
3952
-
3953
       getChargeHisPatientList(params).then(response => {
3958
       getChargeHisPatientList(params).then(response => {
3954
         if (response.data.state == 0) {
3959
         if (response.data.state == 0) {
3955
           this.$message.error(response.data.msg)
3960
           this.$message.error(response.data.msg)
3962
           let one_count = 0
3967
           let one_count = 0
3963
           let two_count = 0
3968
           let two_count = 0
3964
           let three_count = 0
3969
           let three_count = 0
3970
+          console.log('111111111',response.data.data);
3965
           for (let i = 0; i < response.data.data.list.length; i++) {
3971
           for (let i = 0; i < response.data.data.list.length; i++) {
3966
             if (response.data.data.list[i].his_patient.length == 0) { //没挂号
3972
             if (response.data.data.list[i].his_patient.length == 0) { //没挂号
3967
               if (response.data.data.list[i].prescription.length > 0) {
3973
               if (response.data.data.list[i].prescription.length > 0) {
4196
           }
4202
           }
4197
         }
4203
         }
4198
       })
4204
       })
4199
-    },changeSchtype(){
4205
+    },
4206
+    changeSchtype(){
4200
       this.getPatientList()
4207
       this.getPatientList()
4201
-    },changeScheduleType(val){
4208
+    },
4209
+    // 4号
4210
+    changeScheduleType(val){
4202
       this.sch_type  = val
4211
       this.sch_type  = val
4203
       let params = {
4212
       let params = {
4204
         'record_date': this.record_date,
4213
         'record_date': this.record_date,
4426
         }
4435
         }
4427
       })
4436
       })
4428
 
4437
 
4429
-
4430
-
4431
       let params2 = {
4438
       let params2 = {
4432
         'record_date': this.record_date,
4439
         'record_date': this.record_date,
4433
         'type': 1,
4440
         'type': 1,
4656
 
4663
 
4657
 
4664
 
4658
     },
4665
     },
4666
+    // 单击单选框患者数据源
4659
     changeRadio(id) {
4667
     changeRadio(id) {
4660
       if(this.activeName == 'first') {
4668
       if(this.activeName == 'first') {
4661
         let temp_id = id
4669
         let temp_id = id
4676
             let one_count = 0
4684
             let one_count = 0
4677
             let two_count = 0
4685
             let two_count = 0
4678
             let three_count = 0
4686
             let three_count = 0
4687
+            console.log('11111111111111111',response.data.data);
4679
             for (let i = 0; i < response.data.data.list.length; i++) {
4688
             for (let i = 0; i < response.data.data.list.length; i++) {
4680
               if (response.data.data.list[i].his_patient.length == 0) { //没挂号
4689
               if (response.data.data.list[i].his_patient.length == 0) { //没挂号
4681
                 if (response.data.data.list[i].prescription.length > 0) {
4690
                 if (response.data.data.list[i].prescription.length > 0) {
4686
                     order_status: 0,
4695
                     order_status: 0,
4687
                     order_number: '',
4696
                     order_number: '',
4688
                     his_patient_id: 0,
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
                   this.all_table_data.push(obj)
4702
                   this.all_table_data.push(obj)
4704
                         his_patient_id: response.data.data.list[i].his_patient[0].id,
4714
                         his_patient_id: response.data.data.list[i].his_patient[0].id,
4705
                         order_number: response.data.data.list[i].his_patient[0].orders[b].order_number,
4715
                         order_number: response.data.data.list[i].his_patient[0].orders[b].order_number,
4706
                         order_id: response.data.data.list[i].his_patient[0].orders[b].id,
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
                       this.all_table_data.push(obj)
4721
                       this.all_table_data.push(obj)
4719
                       his_patient_id: response.data.data.list[i].his_patient[0].id,
4730
                       his_patient_id: response.data.data.list[i].his_patient[0].id,
4720
                       order_number: '',
4731
                       order_number: '',
4721
                       order_id: 0,
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
                     this.all_table_data.push(obj)
4736
                     this.all_table_data.push(obj)
4726
 
4737
 
4738
                         his_patient_id: response.data.data.list[i].his_patient[b].id,
4749
                         his_patient_id: response.data.data.list[i].his_patient[b].id,
4739
                         order_number: '',
4750
                         order_number: '',
4740
                         order_id: 0,
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
                       this.all_table_data.push(obj)
4755
                       this.all_table_data.push(obj)
4744
                     } else {
4756
                     } else {
4752
                           his_patient_id: response.data.data.list[i].his_patient[b].id,
4764
                           his_patient_id: response.data.data.list[i].his_patient[b].id,
4753
                           order_number: response.data.data.list[i].his_patient[b].orders[c].number,
4765
                           order_number: response.data.data.list[i].his_patient[b].orders[c].number,
4754
                           order_id: response.data.data.list[i].his_patient[b].orders[c].id,
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
                         this.all_table_data.push(obj)
4770
                         this.all_table_data.push(obj)
4759
                       }
4771
                       }
4814
               this.all_table_data = this.unique_four(this.all_table_data)
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
             switch (this.radio) {
4831
             switch (this.radio) {
4820
               case 1:
4832
               case 1:
4897
         num = num.substring(0)
4909
         num = num.substring(0)
4898
       }
4910
       }
4899
       return parseFloat(num).toFixed(decimal)
4911
       return parseFloat(num).toFixed(decimal)
4900
-    }, getMonthChargePatientList() {
4912
+    }, 
4913
+    getMonthChargePatientList() {
4901
       let params = {
4914
       let params = {
4902
         'record_date': this.record_date,
4915
         'record_date': this.record_date,
4903
         'start_time': this.other_start_time,
4916
         'start_time': this.other_start_time,
4914
       })
4927
       })
4915
 
4928
 
4916
     },
4929
     },
4917
-    //患者列表
4930
+    //未收费患者列表
4918
     getPatientList() {
4931
     getPatientList() {
4919
       let params = {
4932
       let params = {
4920
         'record_date': this.record_date,
4933
         'record_date': this.record_date,
4933
           let one_count = 0
4946
           let one_count = 0
4934
           let two_count = 0
4947
           let two_count = 0
4935
           let three_count = 0
4948
           let three_count = 0
4949
+          console.log('vvvvvvvvvvvvv',response.data.data);
4936
           for (let i = 0; i < response.data.data.list.length; i++) {
4950
           for (let i = 0; i < response.data.data.list.length; i++) {
4937
             if (response.data.data.list[i].his_patient.length == 0) { //没挂号
4951
             if (response.data.data.list[i].his_patient.length == 0) { //没挂号
4938
               if (response.data.data.list[i].prescription.length > 0) {
4952
               if (response.data.data.list[i].prescription.length > 0) {
4944
                   order_number: '',
4958
                   order_number: '',
4945
                   his_patient_id: 0,
4959
                   his_patient_id: 0,
4946
                   prescription: response.data.data.list[i].prescription,
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
                       order_number: response.data.data.list[i].his_patient[0].orders[b].order_number,
4979
                       order_number: response.data.data.list[i].his_patient[0].orders[b].order_number,
4965
                       order_id: response.data.data.list[i].his_patient[0].orders[b].id,
4980
                       order_id: response.data.data.list[i].his_patient[0].orders[b].id,
4966
                       prescription: response.data.data.list[i].prescription,
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
                     this.all_table_data.push(obj)
4986
                     this.all_table_data.push(obj)
4981
                     order_number: '',
4996
                     order_number: '',
4982
                     order_id: 0,
4997
                     order_id: 0,
4983
                     prescription: response.data.data.list[i].prescription,
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
                   this.all_table_data.push(obj)
5003
                   this.all_table_data.push(obj)
5002
                       order_number: '',
5017
                       order_number: '',
5003
                       order_id: 0,
5018
                       order_id: 0,
5004
                       prescription: response.data.data.list[i].prescription,
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
                     this.all_table_data.push(obj)
5023
                     this.all_table_data.push(obj)
5008
                   } else {
5024
                   } else {
5017
                         order_number: response.data.data.list[i].his_patient[b].orders[c].number,
5033
                         order_number: response.data.data.list[i].his_patient[b].orders[c].number,
5018
                         order_id: response.data.data.list[i].his_patient[b].orders[c].id,
5034
                         order_id: response.data.data.list[i].his_patient[b].orders[c].id,
5019
                         prescription: response.data.data.list[i].prescription,
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
                       this.all_table_data.push(obj)
5040
                       this.all_table_data.push(obj)
5089
             this.all_table_data = this.unique_four(this.all_table_data)
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
           switch (this.radio) {
5109
           switch (this.radio) {
5094
             case 1:
5110
             case 1:
5095
               this.patientTableData = []
5111
               this.patientTableData = []
5142
         }
5158
         }
5143
       })
5159
       })
5144
     },
5160
     },
5161
+    // 5号
5145
     getMonthHISPatientList() {
5162
     getMonthHISPatientList() {
5146
       let params = {
5163
       let params = {
5147
         'record_date': this.record_date,
5164
         'record_date': this.record_date,
5712
                   }
5729
                   }
5713
                 }
5730
                 }
5714
               }
5731
               }
5715
-
5716
-
5717
-
5718
-
5719
-
5720
-
5721
               this.sick_history = this.info.sick_history
5732
               this.sick_history = this.info.sick_history
5722
               if (this.info.register_type == 0) {
5733
               if (this.info.register_type == 0) {
5723
                 this.form.p_type = ''
5734
                 this.form.p_type = ''
5852
                   //   tempAddition.push(obj)
5863
                   //   tempAddition.push(obj)
5853
                   // }
5864
                   // }
5854
                   const index = i + 1
5865
                   const index = i + 1
5855
-                  console.log('~~~~~~~~')
5856
-                  console.log(prescription.order)
5866
+                  console.log('~~~~~~~~',prescription.order)
5857
                   prescription.order.order_status = prescription.order.order_status.toString()
5867
                   prescription.order.order_status = prescription.order.order_status.toString()
5858
                   prescription.order.order_status = parseInt(prescription.order.order_status)
5868
                   prescription.order.order_status = parseInt(prescription.order.order_status)
5859
 
5869
 

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

3861
       })
3861
       })
3862
     },
3862
     },
3863
     searchAction() {
3863
     searchAction() {
3864
+      console.log('22222',this.keywords);
3864
       this.page = 1
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
     getTimes(time) {
3883
     getTimes(time) {
3868
       return uParseTime(time, '{y}-{m}-{d}')
3884
       return uParseTime(time, '{y}-{m}-{d}')
3902
           this.$message.error(response.data.msg)
3918
           this.$message.error(response.data.msg)
3903
           return false
3919
           return false
3904
         } else {
3920
         } else {
3921
+          console.log('8888888',response.data.data);
3905
           this.tableData = response.data.data.order
3922
           this.tableData = response.data.data.order
3906
           this.tableData2 =  response.data.data.order2
3923
           this.tableData2 =  response.data.data.order2
3907
           this.total = response.data.data.total
3924
           this.total = response.data.data.total

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

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

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

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

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

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