Browse Source

Merge remote-tracking branch 'origin/20230223_pc_vue_new_branch' into 20230223_pc_vue_new_branch

yq1 1 year ago
parent
commit
4a46e09bad

+ 18 - 0
src/api/patient.js View File

@@ -1030,4 +1030,22 @@ export function getTherapyInformed(params){
1030 1030
     method:"get",
1031 1031
     params:params
1032 1032
   })
1033
+}
1034
+
1035
+export function saveMedicalHistory(data){
1036
+  
1037
+  return request({
1038
+    url:"/api/patient/savemedicalhistory",
1039
+    method:"post",
1040
+    data:data
1041
+  })
1042
+}
1043
+
1044
+export function getPatientMeDicalList(params){
1045
+  
1046
+  return request({
1047
+    url:"/api/patient/getpatientmedicallist",
1048
+    method:"get",
1049
+    params:params,
1050
+  })
1033 1051
 }

+ 3 - 0
src/xt_pages/outpatientCharges/components/registerDialog.vue View File

@@ -293,6 +293,9 @@
293 293
         }, {
294 294
           value: 4,
295 295
           label: '电子凭证'
296
+        },{
297
+          value: 5,
298
+          label: '人脸识别'
296 299
         }],
297 300
         settlement: [
298 301
           { value: 1, label: '医保' },

+ 335 - 135
src/xt_pages/outpatientDoctorStation/components/deskPrescription.vue View File

@@ -1752,7 +1752,7 @@ export default {
1752 1752
       }
1753 1753
       this.$refs.additionalCharges.hide()
1754 1754
 
1755
-    }, 
1755
+    },
1756 1756
     // 项目
1757 1757
     searchProjectAction() {
1758 1758
       console.log('~~~~',this.search_project_keyword)
@@ -1806,7 +1806,7 @@ export default {
1806 1806
       if (this.search_keyword.length == 0) {
1807 1807
         this.drugs = this.allDrugs
1808 1808
       } else {
1809
-       
1809
+
1810 1810
         let arr = []
1811 1811
         for (let i = 0; i < drug2.length; i++) {
1812 1812
           if (drug2[i].drug_name.indexOf(this.search_keyword) != -1 ||
@@ -3683,173 +3683,373 @@ export default {
3683 3683
       //   }
3684 3684
       // }
3685 3685
 
3686
-      for (let i = 0; i < this.prescriptions.length; i++) {
3687
-        if (this.prescriptions[i].name == this.editableTabsValue) {
3688
-          var temp = this.deepClone(this.curDrugs)
3689
-          var temp2 = this.deepClone(this.teamList)
3690
-
3691
-          var temp3 = this.deepClone(templateDrugs)
3692
-          if (temp3.length > 0) {
3693
-            for (let b = 0; b < temp3.length; b++) {
3694
-              let obj = {
3695
-                advice_id: 0,
3696
-                id: temp3[b].id,
3697
-                drug_name: temp3[b].advice_name,
3698
-                single_dose: temp3[b].single_dose.toString(),
3699
-                delivery_way: temp3[b].delivery_way,
3700
-                execution_frequency: temp3[b].execution_frequency,
3701
-                retail_price: temp3[b].drug.retail_price.toString(),
3702
-                remark: '',
3703
-                day: '1',
3704
-                prescribing_number: temp3[b].prescribing_number,
3705
-                single_dose_unit: temp3[b].drug.drug_dose_unit,
3706
-                prescribing_number_unit: temp3[b].drug.prescribing_number_unit,
3707
-                medical_insurance_number: temp3[b].drug.medical_insurance_number
3708
-              }
3709 3686
 
3710
-              if (obj.prescribing_number == 0 || obj.prescribing_number.length == 0) {
3711
-                obj.prescribing_number = 1
3712
-              }
3713
-
3714
-              this.prescriptions[i].advices.push(obj)
3687
+      //大丰限制用药提醒逻辑
3688
+      var temp = this.deepClone(this.curDrugs)
3689
+      console.log("-----~~~~")
3690
+      console.log(temp)
3691
+      console.log("-----~~~~")
3692
+
3693
+      let limit_remark = ""
3694
+      if (temp.length > 0) {
3695
+        for (let b = 0; b < temp.length; b++) {
3696
+          if(temp[b].limit_remark.length > 0){
3697
+            if(limit_remark.length == 0){
3698
+              limit_remark = temp[b].limit_remark
3699
+            }else{
3700
+              limit_remark = limit_remark +  "\n" + temp[b].limit_remark
3715 3701
             }
3716
-            this.curStatus = 1
3702
+
3717 3703
           }
3704
+        }
3705
+      }
3706
+      if((limit_remark.length > 0 && this.org_id == 10217)){
3707
+        this.$confirm(limit_remark, '限制用药提醒', {
3708
+          confirmButtonText: '确 定',
3709
+          cancelButtonText: '取 消',
3710
+          type: 'warning'
3711
+        }).then(() => {
3712
+          for (let i = 0; i < this.prescriptions.length; i++) {
3713
+            if (this.prescriptions[i].name == this.editableTabsValue) {
3714
+              var temp = this.deepClone(this.curDrugs)
3715
+              var temp2 = this.deepClone(this.teamList)
3718 3716
 
3719
-          let index = 0
3717
+              var temp3 = this.deepClone(templateDrugs)
3718
+              if (temp3.length > 0) {
3719
+                for (let b = 0; b < temp3.length; b++) {
3720
+                  let obj = {
3721
+                    advice_id: 0,
3722
+                    id: temp3[b].id,
3723
+                    drug_name: temp3[b].advice_name,
3724
+                    single_dose: temp3[b].single_dose.toString(),
3725
+                    delivery_way: temp3[b].delivery_way,
3726
+                    execution_frequency: temp3[b].execution_frequency,
3727
+                    retail_price: temp3[b].drug.retail_price.toString(),
3728
+                    remark: '',
3729
+                    day: '1',
3730
+                    prescribing_number: temp3[b].prescribing_number,
3731
+                    single_dose_unit: temp3[b].drug.drug_dose_unit,
3732
+                    prescribing_number_unit: temp3[b].drug.prescribing_number_unit,
3733
+                    medical_insurance_number: temp3[b].drug.medical_insurance_number
3734
+                  }
3720 3735
 
3721
-          if (this.curPrescriptions.advices.length > 0) {
3722
-            index = this.curPrescriptions.advices.length
3723
-          }
3736
+                  if (obj.prescribing_number == 0 || obj.prescribing_number.length == 0) {
3737
+                    obj.prescribing_number = 1
3738
+                  }
3724 3739
 
3725
-          if (temp.length > 0) {
3726
-            for (let b = 0; b < temp.length; b++) {
3727
-              if(temp[b].max_unit == temp[b].min_unit){
3728
-                temp[b].retail_price = temp[b].min_price
3740
+                  this.prescriptions[i].advices.push(obj)
3741
+                }
3742
+                this.curStatus = 1
3729 3743
               }
3730
-              let temp_index = 0
3731
-              if(this.org_id == 0 || this.org_id == 10206){
3732 3744
 
3733
-                 temp_index  = Math.floor(Math.random() * 90 + 10);
3734
-              }else{
3735
-                 temp_index = b + 1
3745
+              let index = 0
3746
+
3747
+              if (this.curPrescriptions.advices.length > 0) {
3748
+                index = this.curPrescriptions.advices.length
3736 3749
               }
3737
-              let obj = {
3738
-                advice_id: 0,
3739
-                id: temp[b].id,
3740
-                drug_name: temp[b].drug_name,
3741
-                single_dose: temp[b].single_dose,
3742
-                delivery_way: temp[b].delivery_way,
3743
-                execution_frequency: temp[b].execution_frequency,
3744
-                retail_price: temp[b].prescribing_number_unit == temp[b].max_unit ? temp[b].retail_price.toString() : temp[b].min_price.toString(),
3745
-                remark: '',
3746
-                day: temp[b].drug_day ? temp[b].drug_day : 1,
3747
-                prescribing_number: temp[b].prescribing_number,
3748
-                single_dose_unit: temp[b].dose_unit,
3749
-                prescribing_number_unit: temp[b].prescribing_number_unit,
3750
-                medical_insurance_number: temp[b].medical_insurance_number,
3751
-                drug: temp[b],
3752
-                groupno: index + temp_index,
3753
-                hosp_appr_flag: '1',
3754
-                execution_state:2,
3755 3750
 
3751
+              if (temp.length > 0) {
3752
+                for (let b = 0; b < temp.length; b++) {
3753
+                  if(temp[b].max_unit == temp[b].min_unit){
3754
+                    temp[b].retail_price = temp[b].min_price
3755
+                  }
3756
+                  let temp_index = 0
3757
+                  if(this.org_id == 0 || this.org_id == 10206){
3758
+
3759
+                    temp_index  = Math.floor(Math.random() * 90 + 10);
3760
+                  }else{
3761
+                    temp_index = b + 1
3762
+                  }
3763
+                  let obj = {
3764
+                    advice_id: 0,
3765
+                    id: temp[b].id,
3766
+                    drug_name: temp[b].drug_name,
3767
+                    single_dose: temp[b].single_dose,
3768
+                    delivery_way: temp[b].delivery_way,
3769
+                    execution_frequency: temp[b].execution_frequency,
3770
+                    retail_price: temp[b].prescribing_number_unit == temp[b].max_unit ? temp[b].retail_price.toString() : temp[b].min_price.toString(),
3771
+                    remark: '',
3772
+                    day: temp[b].drug_day ? temp[b].drug_day : 1,
3773
+                    prescribing_number: temp[b].prescribing_number,
3774
+                    single_dose_unit: temp[b].dose_unit,
3775
+                    prescribing_number_unit: temp[b].prescribing_number_unit,
3776
+                    medical_insurance_number: temp[b].medical_insurance_number,
3777
+                    drug: temp[b],
3778
+                    groupno: index + temp_index,
3779
+                    hosp_appr_flag: '1',
3780
+                    execution_state:2,
3781
+
3782
+
3783
+                  }
3784
+                  if (obj.prescribing_number == 0 || obj.prescribing_number.length == 0) {
3785
+                    obj.prescribing_number = 1
3786
+                  }
3787
+                  // 针对灵山圣康
3788
+                  if(this.org_id == 0 || this.org_id ==10375){
3789
+                    if(this.prescriptions[i]!=null){
3790
+                      console.log("禅古this.prescriptions[i].advices.length",this.prescriptions[i].advices.length)
3791
+                      if(this.prescriptions[i].advices.length >=5){
3792
+
3793
+                        this.$message.error("添加条数已经大于5条,添加失败!")
3794
+                        return false
3795
+                      }
3796
+
3797
+
3798
+                    }
3799
+                  }
3800
+                  this.prescriptions[i].advices.push(obj)
3801
+                }
3802
+                this.curStatus = 1
3756 3803
 
3757 3804
               }
3758
-              if (obj.prescribing_number == 0 || obj.prescribing_number.length == 0) {
3759
-                obj.prescribing_number = 1
3760
-              }
3761
-               // 针对灵山圣康
3762
-               if(this.org_id == 0 || this.org_id ==10375){
3763
-                if(this.prescriptions[i]!=null){
3764
-                  console.log("禅古this.prescriptions[i].advices.length",this.prescriptions[i].advices.length)
3765
-                  if(this.prescriptions[i].advices.length >=5){
3766
-
3767
-                    this.$message.error("添加条数已经大于5条,添加失败!")
3768
-                    return false
3805
+
3806
+              if (temp2.length > 0) {
3807
+                for (let b = 0; b < temp2.length; b++) {
3808
+                  let obj = {
3809
+                    id: 0,
3810
+                    project_id: temp2[b].id,
3811
+                    project_name: temp2[b].project_name,
3812
+                    statistical_classification: '',
3813
+                    single_dose: temp2[b].single_dose.toString(),
3814
+                    delivery_way: temp2[b].delivery_way,
3815
+                    execution_frequency: temp2[b].execution_frequency,
3816
+                    number_days: temp2[b].number_days.toString(),
3817
+                    total: temp2[b].cus_total,
3818
+                    price: temp2[b].price,
3819
+                    remark: '',
3820
+                    medical_code: temp2[b].medical_code,
3821
+                    type: temp2[b].type,
3822
+                    execution_state:2,
3823
+
3769 3824
                   }
3770
-                  
3771
-                  
3825
+
3826
+                  if (temp2[b].type == 2){
3827
+                    obj['project'] = temp2[b].project
3828
+                    obj['unit'] = temp2[b].project.unit
3829
+
3830
+
3831
+                  }else if(temp2[b].type == 3){
3832
+                    obj['good_info'] = temp2[b].good_info
3833
+                    obj['unit'] = temp2[b].good_info.packing_unit
3834
+
3835
+
3836
+                  }
3837
+                  if (temp2[b].team_id == undefined) {
3838
+                    obj['team_id'] = 0
3839
+                  } else {
3840
+                    obj['team_id'] = temp2[b].team_id
3841
+                  }
3842
+                  if (obj.total == 0 || obj.total == undefined) {
3843
+                    obj.total = 1
3844
+                  }
3845
+                  if (obj.type == 3) {
3846
+                    obj.single_dose = 1
3847
+                  }
3848
+                  // 针对灵山圣康
3849
+                  if(this.org_id == 0 || this.org_id ==10375){
3850
+                    if(this.prescriptions[i]!=null){
3851
+                      if(this.prescriptions[i].project.length >=5){
3852
+                        this.$message.error("添加条数已经大于5条,添加失败!")
3853
+                        return false
3854
+                      }
3855
+
3856
+
3857
+                    }
3858
+                  }
3859
+                  this.prescriptions[i].project.push(obj)
3772 3860
                 }
3861
+                this.curStatus = 2
3773 3862
               }
3774
-              this.prescriptions[i].advices.push(obj)
3775
-            }
3776
-            this.curStatus = 1
3777 3863
 
3864
+              this.curPrescriptions = this.prescriptions[i]
3865
+
3866
+
3867
+
3868
+
3869
+
3870
+              this.$refs.multipleTable.clearSelection()
3871
+              this.$refs.tables.clearSelection()
3872
+              this.clearSelection()
3873
+
3874
+            }
3778 3875
           }
3876
+          this.curDrugs = []
3877
+          this.preDrugs = []
3878
+          this.teamList = []
3879
+        }).catch(() => {
3880
+
3881
+        })
3882
+      }else{
3883
+        for (let i = 0; i < this.prescriptions.length; i++) {
3884
+          if (this.prescriptions[i].name == this.editableTabsValue) {
3885
+            var temp = this.deepClone(this.curDrugs)
3886
+            var temp2 = this.deepClone(this.teamList)
3779 3887
 
3780
-          if (temp2.length > 0) {
3781
-            for (let b = 0; b < temp2.length; b++) {
3782
-              let obj = {
3783
-                id: 0,
3784
-                project_id: temp2[b].id,
3785
-                project_name: temp2[b].project_name,
3786
-                statistical_classification: '',
3787
-                single_dose: temp2[b].single_dose.toString(),
3788
-                delivery_way: temp2[b].delivery_way,
3789
-                execution_frequency: temp2[b].execution_frequency,
3790
-                number_days: temp2[b].number_days.toString(),
3791
-                total: temp2[b].cus_total,
3792
-                price: temp2[b].price,
3793
-                remark: '',
3794
-                medical_code: temp2[b].medical_code,
3795
-                type: temp2[b].type,
3796
-                execution_state:2,
3888
+            var temp3 = this.deepClone(templateDrugs)
3889
+            if (temp3.length > 0) {
3890
+              for (let b = 0; b < temp3.length; b++) {
3891
+                let obj = {
3892
+                  advice_id: 0,
3893
+                  id: temp3[b].id,
3894
+                  drug_name: temp3[b].advice_name,
3895
+                  single_dose: temp3[b].single_dose.toString(),
3896
+                  delivery_way: temp3[b].delivery_way,
3897
+                  execution_frequency: temp3[b].execution_frequency,
3898
+                  retail_price: temp3[b].drug.retail_price.toString(),
3899
+                  remark: '',
3900
+                  day: '1',
3901
+                  prescribing_number: temp3[b].prescribing_number,
3902
+                  single_dose_unit: temp3[b].drug.drug_dose_unit,
3903
+                  prescribing_number_unit: temp3[b].drug.prescribing_number_unit,
3904
+                  medical_insurance_number: temp3[b].drug.medical_insurance_number
3905
+                }
3906
+
3907
+                if (obj.prescribing_number == 0 || obj.prescribing_number.length == 0) {
3908
+                  obj.prescribing_number = 1
3909
+                }
3797 3910
 
3911
+                this.prescriptions[i].advices.push(obj)
3798 3912
               }
3913
+              this.curStatus = 1
3914
+            }
3799 3915
 
3800
-              if (temp2[b].type == 2){
3801
-                obj['project'] = temp2[b].project
3802
-                obj['unit'] = temp2[b].project.unit
3916
+            let index = 0
3803 3917
 
3918
+            if (this.curPrescriptions.advices.length > 0) {
3919
+              index = this.curPrescriptions.advices.length
3920
+            }
3804 3921
 
3805
-              }else if(temp2[b].type == 3){
3806
-                obj['good_info'] = temp2[b].good_info
3807
-                obj['unit'] = temp2[b].good_info.packing_unit
3922
+            if (temp.length > 0) {
3923
+              for (let b = 0; b < temp.length; b++) {
3924
+                if(temp[b].max_unit == temp[b].min_unit){
3925
+                  temp[b].retail_price = temp[b].min_price
3926
+                }
3927
+                let temp_index = 0
3928
+                if(this.org_id == 0 || this.org_id == 10206){
3808 3929
 
3930
+                  temp_index  = Math.floor(Math.random() * 90 + 10);
3931
+                }else{
3932
+                  temp_index = b + 1
3933
+                }
3934
+                let obj = {
3935
+                  advice_id: 0,
3936
+                  id: temp[b].id,
3937
+                  drug_name: temp[b].drug_name,
3938
+                  single_dose: temp[b].single_dose,
3939
+                  delivery_way: temp[b].delivery_way,
3940
+                  execution_frequency: temp[b].execution_frequency,
3941
+                  retail_price: temp[b].prescribing_number_unit == temp[b].max_unit ? temp[b].retail_price.toString() : temp[b].min_price.toString(),
3942
+                  remark: '',
3943
+                  day: temp[b].drug_day ? temp[b].drug_day : 1,
3944
+                  prescribing_number: temp[b].prescribing_number,
3945
+                  single_dose_unit: temp[b].dose_unit,
3946
+                  prescribing_number_unit: temp[b].prescribing_number_unit,
3947
+                  medical_insurance_number: temp[b].medical_insurance_number,
3948
+                  drug: temp[b],
3949
+                  groupno: index + temp_index,
3950
+                  hosp_appr_flag: '1',
3951
+                  execution_state:2,
3809 3952
 
3953
+
3954
+                }
3955
+                if (obj.prescribing_number == 0 || obj.prescribing_number.length == 0) {
3956
+                  obj.prescribing_number = 1
3957
+                }
3958
+                // 针对灵山圣康
3959
+                if(this.org_id == 0 || this.org_id ==10375){
3960
+                  if(this.prescriptions[i]!=null){
3961
+                    console.log("禅古this.prescriptions[i].advices.length",this.prescriptions[i].advices.length)
3962
+                    if(this.prescriptions[i].advices.length >=5){
3963
+
3964
+                      this.$message.error("添加条数已经大于5条,添加失败!")
3965
+                      return false
3966
+                    }
3967
+
3968
+
3969
+                  }
3970
+                }
3971
+                this.prescriptions[i].advices.push(obj)
3810 3972
               }
3811
-              if (temp2[b].team_id == undefined) {
3812
-                obj['team_id'] = 0
3813
-              } else {
3814
-                obj['team_id'] = temp2[b].team_id
3815
-              }
3816
-              if (obj.total == 0 || obj.total == undefined) {
3817
-                obj.total = 1
3818
-              }
3819
-              if (obj.type == 3) {
3820
-                obj.single_dose = 1
3821
-              }
3822
-              // 针对灵山圣康
3823
-              if(this.org_id == 0 || this.org_id ==10375){
3824
-                if(this.prescriptions[i]!=null){
3825
-                  if(this.prescriptions[i].project.length >=5){
3826
-                    this.$message.error("添加条数已经大于5条,添加失败!")
3827
-                    return false
3973
+              this.curStatus = 1
3974
+
3975
+            }
3976
+
3977
+            if (temp2.length > 0) {
3978
+              for (let b = 0; b < temp2.length; b++) {
3979
+                let obj = {
3980
+                  id: 0,
3981
+                  project_id: temp2[b].id,
3982
+                  project_name: temp2[b].project_name,
3983
+                  statistical_classification: '',
3984
+                  single_dose: temp2[b].single_dose.toString(),
3985
+                  delivery_way: temp2[b].delivery_way,
3986
+                  execution_frequency: temp2[b].execution_frequency,
3987
+                  number_days: temp2[b].number_days.toString(),
3988
+                  total: temp2[b].cus_total,
3989
+                  price: temp2[b].price,
3990
+                  remark: '',
3991
+                  medical_code: temp2[b].medical_code,
3992
+                  type: temp2[b].type,
3993
+                  execution_state:2,
3994
+
3995
+                }
3996
+
3997
+                if (temp2[b].type == 2){
3998
+                  obj['project'] = temp2[b].project
3999
+                  obj['unit'] = temp2[b].project.unit
4000
+
4001
+
4002
+                }else if(temp2[b].type == 3){
4003
+                  obj['good_info'] = temp2[b].good_info
4004
+                  obj['unit'] = temp2[b].good_info.packing_unit
4005
+
4006
+
4007
+                }
4008
+                if (temp2[b].team_id == undefined) {
4009
+                  obj['team_id'] = 0
4010
+                } else {
4011
+                  obj['team_id'] = temp2[b].team_id
4012
+                }
4013
+                if (obj.total == 0 || obj.total == undefined) {
4014
+                  obj.total = 1
4015
+                }
4016
+                if (obj.type == 3) {
4017
+                  obj.single_dose = 1
4018
+                }
4019
+                // 针对灵山圣康
4020
+                if(this.org_id == 0 || this.org_id ==10375){
4021
+                  if(this.prescriptions[i]!=null){
4022
+                    if(this.prescriptions[i].project.length >=5){
4023
+                      this.$message.error("添加条数已经大于5条,添加失败!")
4024
+                      return false
4025
+                    }
4026
+
4027
+
3828 4028
                   }
3829
-                  
3830
-                  
3831 4029
                 }
4030
+                this.prescriptions[i].project.push(obj)
3832 4031
               }
3833
-              this.prescriptions[i].project.push(obj)
4032
+              this.curStatus = 2
3834 4033
             }
3835
-            this.curStatus = 2
3836
-          }
3837 4034
 
3838
-          this.curPrescriptions = this.prescriptions[i]
3839
-       
3840
-          
3841
-          
3842
-         
3843
-         
3844
-          this.$refs.multipleTable.clearSelection()
3845
-          this.$refs.tables.clearSelection()
3846
-          this.clearSelection()
4035
+            this.curPrescriptions = this.prescriptions[i]
4036
+
4037
+
4038
+
4039
+
4040
+
4041
+            this.$refs.multipleTable.clearSelection()
4042
+            this.$refs.tables.clearSelection()
4043
+            this.clearSelection()
3847 4044
 
4045
+          }
3848 4046
         }
4047
+        this.curDrugs = []
4048
+        this.preDrugs = []
4049
+        this.teamList = []
3849 4050
       }
3850
-      this.curDrugs = []
3851
-      this.preDrugs = []
3852
-      this.teamList = []
4051
+
4052
+
3853 4053
 
3854 4054
     }, changeAllGoodInfoTableDataTwo(row) {
3855 4055
       this.teamList = row

+ 3 - 2
src/xt_pages/outpatientTool/components/detail.vue View File

@@ -547,7 +547,8 @@ export default {
547 547
               let new_name = tempPatientsTwo[i].new_order_info[b].item_name
548 548
               if (new_name != undefined){
549 549
                 if (new_name.length != 0) {
550
-                  total = parseFloat(total) + parseFloat((parseFloat(tempPatientsTwo[i].new_order_info[b].count.toString()) * parseFloat(tempPatientsTwo[i].new_order_info[b].price.toString())).toFixed(2))
550
+                  console.log(parseFloat(tempPatientsTwo[i].new_order_info[b].count) * parseFloat(tempPatientsTwo[i].new_order_info[b].price))
551
+                  total = parseFloat(total) + parseFloat((parseFloat(tempPatientsTwo[i].new_order_info[b].count) * parseFloat(tempPatientsTwo[i].new_order_info[b].price)).toFixed(2))
551 552
                 }
552 553
 
553 554
 
@@ -807,7 +808,7 @@ export default {
807 808
           // sums[index] = sums[index].toFixed(2)
808 809
           let num = 0
809 810
           data.map(item => {
810
-            num += item.price.toFixed(2) * item.count
811
+            num += item.price * item.count
811 812
           })
812 813
           sums[index] = num.toFixed(2)
813 814
         } else {

+ 19 - 5
src/xt_pages/user/Informed/Informedconsent.vue View File

@@ -121,7 +121,7 @@
121 121
                   <therapy_informed :patient_id ="this.patientID"></therapy_informed>
122 122
                 </div>
123 123
                 <div v-if="history_show">
124
-                  <Medicalhistory :patient_id ="this.patientID"></Medicalhistory>
124
+                  <Medicalhistory :patient_id ="this.patientID" :medicalList="medicalList" ref="childThrity"></Medicalhistory>
125 125
                 </div>
126 126
                 <div v-if="show14">
127 127
                   <heal_informed :patient_id ="this.patientID"></heal_informed>
@@ -160,7 +160,7 @@ import Medicalhistory from './components/Medicalhistory'
160 160
 import heal_informed from './components/heal_informed'
161 161
 import criticalpatient_informed from './components/criticalpatient_informed'
162 162
 import criticalpatient_informed2 from './components/criticalpatient_informed2'
163
-import { getPatientDetailInformedconsent,getFallOutBedPrintList,getFilterInformed,getProfundaInformed,getArterOvernous,getHighRiskInformed  } from '@/api/patient'
163
+import { getPatientDetailInformedconsent,getFallOutBedPrintList,getFilterInformed,getProfundaInformed,getArterOvernous,getHighRiskInformed,getPatientMeDicalList  } from '@/api/patient'
164 164
 export default {
165 165
 
166 166
   components: {
@@ -216,7 +216,8 @@ export default {
216 216
       filterList:{},
217 217
       profundaPrint:{},
218 218
       arterOvenousPrint:{},
219
-      highRiskPrint:{}
219
+      highRiskPrint:{},
220
+      medicalList:{}
220 221
     }
221 222
 
222 223
   },
@@ -236,12 +237,24 @@ export default {
236 237
         this.patient =patient
237 238
       }
238 239
     })
240
+   },
241
+   getPatientMeDicalList(){
242
+      var params = {
243
+         patient_id:this.patientID,
244
+      }
245
+     getPatientMeDicalList(params).then(response=>{
246
+        if(response.data.state ==1){
247
+          var list= response.data.data.list
248
+          this.medicalList = list
249
+          this.$refs.childThrity.show(list)
250
+        }
251
+     })
239 252
    },
240 253
     rowClick(row, column, event){
241
-      // console.log('1111',row);
254
+     console.log('1111',row);
242 255
       // console.log('2222',column);
243 256
       // console.log('3333',event);
244
-
257
+       
245 258
         if(row.value==1){
246 259
           this.face_show=true
247 260
           this.filter_show=false,
@@ -475,6 +488,7 @@ export default {
475 488
           this.show14=false,
476 489
           this.show15=false,
477 490
           this.show16=false
491
+          this.getPatientMeDicalList()
478 492
         }
479 493
         if(row.value==14){
480 494
           this.filter_show=false

+ 91 - 22
src/xt_pages/user/Informed/components/Medicalhistory.vue View File

@@ -17,7 +17,7 @@
17 17
           <h2 style="text-align: center;margin-bottom: 20px;">门诊血液透析治疗病历首页</h2>
18 18
           <div style="display: flex;padding: 10px 5px">
19 19
             <div style="flex: 1;">门诊号<span class="unile">{{ patient.admission_number }}</span></div>
20
-            <div style="flex: 1;">住院号 <span class="unile">{{ patient.admission_number }}</span></div>
20
+            <div style="flex: 1;">透析号 <span class="unile">{{ patient.dialysis_no }}</span></div>
21 21
             <div style="flex: 1.5;">首次治疗日期 <span class="unile">{{getTime(patient.first_dialysis_date) }}</span></div>
22 22
           </div>
23 23
           <div style="display: flex;padding: 10px 5px">
@@ -35,40 +35,39 @@
35 35
           </div>
36 36
           <div style='padding: 10px 5px'>
37 37
             <div>
38
-              现住址(详填) <span class="unile2">{{ sheng ? sheng:' ' }}</span> 省 <span class="unile2">{{ shi? shi:' ' }}</span>市
39
-              <span class="unile2">{{ xian ?xian:'' }}</span>县(区)<span class="unile2">{{ jie?jie:'' }}</span>乡(镇、街道)<span class="unile2">{{ hao?hao:'' }}</span>村(门牌号)
38
+              现住址(详填) <span class="unile2">{{ patient.home_address }}</span>
40 39
             </div>
41
-            <div style="flex: 1;">邮编<span class="unile2"></span></div>
40
+            <!-- <div style="flex: 1;">邮编<span class="unile2"></span></div> -->
42 41
           </div>
43 42
           <div style='padding: 10px 5px'>
44 43
             <div>
45
-              户口住址(详填) <span class="unile2"></span>省<span class="unile2"></span>市<span class="unile2"></span>县(区)<span class="unile2"></span>乡(镇、街道)<span class="unile2"></span>村(门牌号)
44
+              家庭住址<span class="unile2">{{ patient.home_address }}</span>
46 45
             </div>
47
-            <div style="flex: 1;">邮编<span class="unile2"></span></div>
46
+            <!-- <div style="flex: 1;">邮编<span class="unile2"></span></div> -->
48 47
           </div>
49 48
           <div style="display: flex;padding: 10px 5px">
50 49
             <div style="flex: 1;">
51
-              电话<span class="unile">{{ patient.home_telephone }}</span>
50
+              本人电话<span class="unile">{{ patient.home_telephone }}</span>
52 51
             </div>
53
-            <div style="flex: 1;">
52
+            <!-- <div style="flex: 1;">
54 53
               手机<span class="unile">{{ patient.phone }}</span>
55
-            </div>
54
+            </div> -->
56 55
             <div style="flex: 1.5;">
57
-              亲属联系方式<span class="unile"></span>
56
+              亲属联系方式<span class="unile">{{ patient.relative_phone }}</span>
58 57
             </div>
59 58
           </div>
60 59
           <div style="padding: 10px 5px">
61
-            工作单位<span class="unile"></span>
60
+            工作单位<span class="unile">{{ patient.work_unit }}</span>
62 61
           </div>
63
-          <div style="padding: 10px 5px">
62
+          <!-- <div style="padding: 10px 5px">
64 63
             地址<span class="unile2"></span> 省(市)<span class="unile2"></span>路<span class="unile2"></span>号
65
-          </div>
64
+          </div> -->
66 65
           <div style="padding: 10px 5px">
67 66
             诊断:<span class="unile">{{ patient.diagnose }}</span>
68 67
           </div>
69
-          <div style="padding: 10px 5px">
68
+          <!-- <div style="padding: 10px 5px">
70 69
             合并症或并发症 <span class="unile"></span>
71
-          </div>
70
+          </div> -->
72 71
           <div V-html="content"></div>
73 72
           <div v-html="content"></div>
74 73
           <!-- <div>
@@ -141,7 +140,7 @@
141 140
     </div>
142 141
     <!-- 编辑 -->
143 142
     <el-dialog
144
-      title="提示"
143
+      title="新增"
145 144
       :visible.sync="dialogVisible"
146 145
       width="60%">
147 146
         <div>
@@ -150,7 +149,7 @@
150 149
             <div style="flex: 1;">门诊号
151 150
               <span style="display: inline-block;border-bottom: 1px solid black;width: 60%;">{{ patient.admission_number }}</span>
152 151
             </div>
153
-            <div style="flex: 1;">住院
152
+            <div style="flex: 1;">透析
154 153
               <span style="display: inline-block;border-bottom: 1px solid black;width: 60%;">{{ patient.admission_number }}</span>
155 154
             </div>
156 155
             <div style="flex: 1;">姓名:
@@ -172,12 +171,47 @@
172 171
               <span v-if="sex==2">女</span>
173 172
             </div>
174 173
           </div> -->
174
+          <div style="display: flex;padding: 10px 5px">
175
+            <div style="flex: 1;">
176
+              身份证号
177
+              <span style="display: inline-block;border-bottom: 1px solid black;width: 60%;">{{ patient.id_card_no }} </span>
178
+            </div>
179
+          </div>
180
+          <div style='padding: 10px 5px'>
181
+            <div>
182
+              现住址(详填)<span style="display: inline-block;border-bottom: 1px solid black;width: 60%;"> </span>
183
+            
184
+            </div>
185
+            
186
+          </div>
187
+          <div style='padding: 10px 5px'>
188
+            <div>
189
+              家庭住址<span style="display: inline-block;border-bottom: 1px solid black;width: 60%;"> </span>
190
+            
191
+            </div>
192
+           
193
+          </div>
194
+          <div style="display: flex;padding: 10px 5px">
195
+            <div style="flex: 1;">
196
+              本人电话
197
+              <span style="display: inline-block;border-bottom: 1px solid black;width: 60%;"> </span>
198
+            </div>
199
+          
200
+            <div style="flex: 1.5;">
201
+              亲属联系方式
202
+              <span style="display: inline-block;border-bottom: 1px solid black;width: 60%;"> </span>
203
+            </div>
204
+          </div>
205
+          <div style="padding: 10px 5px">
206
+            工作单位
207
+            <span style="display: inline-block;border-bottom: 1px solid black;width: 60%;"> </span>
208
+          </div>
175 209
           <div style="padding: 10px 5px">诊断:
176 210
             <span style="display: inline-block;border-bottom: 1px solid black;width: 60%;">{{ patient.diagnose }}</span>
177 211
           </div>
178
-          <div style="padding: 10px 5px">合并症或并发症 
212
+          <!-- <div style="padding: 10px 5px">合并症或并发症 
179 213
             <span style="display: inline-block;border-bottom: 1px solid black;width: 60%;"></span>
180
-          </div>
214
+          </div> -->
181 215
           <keep-alive>
182 216
             <editor ref="editor"
183 217
                     id="editor"
@@ -188,17 +222,18 @@
188 222
         </div>
189 223
         <span slot="footer" class="dialog-footer">
190 224
           <el-button @click="dialogVisible = false">取 消</el-button>
191
-          <el-button type="primary" @click="dialogVisible = false">确 定</el-button>
225
+          <el-button type="primary" @click="saveMedicalHistory">保 存</el-button>
192 226
         </span>
193 227
     </el-dialog>
194 228
   </div>
195 229
 </template>
196 230
 <script>
197 231
 
198
-import { getPatientDetailInformedconsent  } from '@/api/patient'
232
+import { getPatientDetailInformedconsent,saveMedicalHistory  } from '@/api/patient'
199 233
 import print from "print-js";
200 234
 import Editor from '@/components/Editor'
201 235
 import { uParseTime } from '@/utils/tools'
236
+
202 237
 const content=`<div>
203 238
             <table border="1" style="border-collapse: collapse;width: 100%;text-align: center;">
204 239
               <tr>
@@ -267,7 +302,10 @@ export default{
267 302
   props: {
268 303
     patient_id: {
269 304
         type: Number,
270
-      }
305
+      },
306
+    medicalList:{
307
+      type:Object,
308
+    }
271 309
   },
272 310
   components:{
273 311
     Editor
@@ -288,11 +326,25 @@ export default{
288 326
     }
289 327
   },
290 328
   created(){
329
+    if(this.medicalList!=null && this.medicalList.id >0){
330
+        this.content = ""
331
+        this.content = this.medicalList.content
332
+      }
291 333
     this.getlist()
292 334
     // this.number = 1233444
293 335
     // }
294 336
   },
295 337
   methods:{
338
+    show(val){
339
+       if(val!=null){
340
+        console.log("valw233223",val)
341
+         if(val.content!=""){
342
+           this.content = ""
343
+           this.content = val.content
344
+         }
345
+         
346
+       }
347
+    },
296 348
     getlist(){
297 349
       // console.log("owwwwwwwwwwwwwwwwwww",this.patient_id)
298 350
       getPatientDetailInformedconsent(this.patient_id).then(response=>{
@@ -351,6 +403,23 @@ export default{
351 403
     // 编辑
352 404
     bianji(){
353 405
       this.dialogVisible = true
406
+    },
407
+    saveMedicalHistory(){
408
+      console.log("adfadfaf")
409
+      var params = {
410
+          content:this.$refs.editor.content,
411
+          patient_id:this.patient_id,
412
+       }
413
+       console.log("paramsm2222",params)
414
+      saveMedicalHistory(params).then(response=>{
415
+        if(response.data.state ==1){
416
+           var medicalHistory  = response.data.data.medicalHistory
417
+           this.$message.success("保存成功!")
418
+           this.dialogVisible =false
419
+           this.$emit("getPatientMeDicalList","");
420
+          
421
+        }
422
+      })
354 423
     }
355 424
   },
356 425
   computed:{