소스 검색

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

yq1 8 달 전
부모
커밋
740a5acced

+ 9 - 0
src/api/inspection.js 파일 보기

@@ -115,6 +115,15 @@ export function getNewInspectionDetailList(params){
115 115
 }
116 116
 
117 117
 
118
+export function EditPatientNewInspection(data){
119
+ 
120
+  return request({
121
+    url:"/api/editpatientnewinspection",
122
+    method:"post",
123
+    data:data,
124
+  })
125
+}
126
+
118 127
 
119 128
 
120 129
 

+ 2 - 1
src/xt_pages/dialysis/batch_print/batch_print_order_six.vue 파일 보기

@@ -861,13 +861,14 @@
861 861
                            }}
862 862
                           </span>
863 863
 
864
-                          <span v-if="org_id==10510 && record.prescription.mode_id!=2&& record.prescription.mode_id!=5&& record.prescription.mode_id!=12">
864
+                          <span v-if="org_id==10510 && (record.prescription.mode_id==2 || record.prescription.mode_id==5 || record.prescription.mode_id ==12)">
865 865
                               {{
866 866
                             record.assessment_after_dislysis.displace_liqui_value
867 867
                               ? record.assessment_after_dislysis.displace_liqui_value
868 868
                               : "/"
869 869
                            }}
870 870
                           </span>
871
+                        
871 872
 
872 873
                           <span v-if="org_id!=10206&&org_id!=10510">
873 874
                             {{

+ 2 - 2
src/xt_pages/dialysis/details/dialog/dialysisPrescriptionDialog.vue 파일 보기

@@ -3286,7 +3286,7 @@ mu
3286 3286
             if (this.dialysisPrescription.anticoagulant == '低分子肝素') {
3287 3287
               this.dialysisPrescription.anticoagulant = 3
3288 3288
             }
3289
-            if (this.dialysisPrescription.anticoagulant == 1) {
3289
+            if (this.dialysisPrescription.anticoagulant == 1 || this.dialysisPrescription.anticoagulant == 12) {
3290 3290
               this.dialysisPrescription.anticoagulant_weichi = '0'
3291 3291
               this.dialysisPrescription.anticoagulant_shouji = '0'
3292 3292
               this.dialysisPrescription.anticoagulant_zongliang = '0'
@@ -3837,7 +3837,7 @@ mu
3837 3837
         this.$refs[formName].validate((valid)=>{
3838 3838
           if(valid){
3839 3839
             if(!this.isLoading){
3840
-              if (this.dialysisPrescription.anticoagulant == 1) {
3840
+              if (this.dialysisPrescription.anticoagulant == 1 || this.dialysisPrescription.anticoagulant == 12) {
3841 3841
                 this.dialysisPrescription.anticoagulant_weichi = '0'
3842 3842
                 this.dialysisPrescription.anticoagulant_shouji = '0'
3843 3843
                 this.dialysisPrescription.anticoagulant_zongliang = '0'

+ 4 - 4
src/xt_pages/dialysis/template/DialysisPrintOrderFortyEight.vue 파일 보기

@@ -109,7 +109,7 @@
109 109
               ></label-box>&nbsp;
110 110
               <label-box
111 111
                 :isChecked="
112
-                  prescription.mode_id == 12
112
+                  prescription.mode_id == 3
113 113
                     ? true
114 114
                     : false
115 115
                 "
@@ -123,7 +123,7 @@
123 123
               ></label-box
124 124
               >&nbsp; -->
125 125
                   &nbsp;
126
-                  <span>其他:  <span v-if="prescription.mode_id==3">HD+HP</span>
126
+                  <span>其他:
127 127
                                 <span v-if="prescription.mode_id == 5">
128 128
                                 HF
129 129
                                 </span>
@@ -145,9 +145,9 @@
145 145
                                 <span v-if="prescription.mode_id == 11">
146 146
                                 HFR
147 147
                                 </span>
148
-                                <!-- <span v-if="prescription.mode_id == 12">
148
+                                <span v-if="prescription.mode_id == 12">
149 149
                                 HDF+HP
150
-                                </span> -->
150
+                                </span>
151 151
                                 <span v-if="prescription.mode_id == 13">
152 152
                                 CRRT
153 153
                                 </span>

+ 2 - 1
src/xt_pages/dialysis/template/DialysisPrintOrderSix.vue 파일 보기

@@ -918,12 +918,13 @@
918 918
                         </span>
919 919
 
920 920
                         <span v-if="org_id ==10510 ">
921
-                          <span v-if="prescription.mode_id!=2&&prescription.mode_id!=5&&presciption.mode_id!=12">{{
921
+                          <span v-if="prescription.mode_id ==2 || prescription.mode_id ==5 || presciption.mode_id==12">{{
922 922
                             afterdialysis.displace_liqui_value
923 923
                             ? afterdialysis.displace_liqui_value
924 924
                             : "/"
925 925
                            }}
926 926
                         </span>
927
+                        <span v-else>/</span>
927 928
                         </span>
928 929
                         <span v-if="org_id!=10206&& org_id!=10510"> {{
929 930
                           prescription.displace_liqui_value

+ 7 - 4
src/xt_pages/org/orginfo.vue 파일 보기

@@ -390,6 +390,7 @@ import Neditor from '@/components/Neditor'
390 390
             GetOrgInfo().then(response=>{
391 391
                 var res = response.data;
392 392
                 if (res.state === 1) {
393
+                    this.formloading = false;
393 394
                     this.form.org_name = res.data.orginfo.org_name;
394 395
                     this.form.contact_name = res.data.orginfo.contact_name;
395 396
                     this.form.org_introduction = res.data.orginfo.org_introduction;
@@ -410,8 +411,9 @@ import Neditor from '@/components/Neditor'
410 411
                     this.form.illness_list = [];
411 412
                     this.form.org_gallery = res.data.orginfo.org_gallery;
412 413
                     this.fileList = [];
413
-                    for (const index in this.form.org_gallery) {
414
-                        var image = {id:this.form.org_gallery[index].id, name:this.form.org_gallery[index].id, url: this.form.org_gallery[index].type==1?this.form.org_gallery[index].url:this.form.org_gallery[index].url+'?vframe/jpg/offset/0/w/100/h/100'};
414
+                    var gallery =  res.data.orginfo.gallery
415
+                    for (const index in gallery) {
416
+                        var image = {id:gallery[index].id, name:gallery[index].id, url:gallery[index].type==1?gallery[index].url:gallery[index].url+'?vframe/jpg/offset/0/w/100/h/100'};
415 417
                         this.fileList.push(image);
416 418
                     }
417 419
 
@@ -488,12 +490,13 @@ import Neditor from '@/components/Neditor'
488 490
                         this.childtypes = [];
489 491
                     }
490 492
                     this.illnessOptions = res.data.illness?res.data.illness:[];
491
-                    this.formloading = false;
493
+                   
492 494
                 } else {
495
+                    this.formloading = false;
493 496
                     this.$message.error(resp.msg)
494 497
                 }
495 498
             }).catch(e=>{
496
-
499
+                this.formloading = false;
497 500
             })
498 501
         },
499 502
          myTrim(x) {

+ 2 - 1
src/xt_pages/outpatientCharges/components/registerDialog.vue 파일 보기

@@ -770,6 +770,7 @@
770 770
                         that.form.birthday = uParseTime(patient.birthday, '{y}-{m}-{d}')
771 771
                         that.form.phone = patient.phone
772 772
                         that.form.id_card = patient.id_card_no
773
+                        that.form.social_type = parseInt(response.data.data.insutype)
773 774
 
774 775
                       } else {
775 776
                         that.form.id = patient.id
@@ -839,7 +840,7 @@
839 840
                     that.form.psn_desc = response.data.data.desc
840 841
 
841 842
                   } else if (that.form.id_card_type == 2) {
842
-                    2
843
+                    that.form.social_type = parseInt(response.data.data.insutype)
843 844
                     that.form.id = patient.id
844 845
                     that.form.name = patient.name
845 846
                     that.form.gender = patient.gender

+ 40 - 4
src/xt_pages/outpatientDoctorStation/components/deskRecord.vue 파일 보기

@@ -431,6 +431,8 @@ export default {
431 431
     detalid: Number,
432 432
     befor:Object,
433 433
     LastCaseHistory:Object,
434
+    prescriptions:Array,
435
+    prescriptionInfo:Object,
434 436
   },
435 437
   components: {
436 438
     medicalRecord,
@@ -783,12 +785,32 @@ export default {
783 785
         return uParseTime(val, "{y}-{m}-{d}");
784 786
       }
785 787
     },
788
+    getDiagnosis(ids){
789
+        let newIds = ids.split(',').sort(function(a,b){
790
+          return a-b;
791
+        })
792
+        let nameArr = []
793
+        for(let i=0;i<this.diagnoses.length;i++){
794
+          if(newIds.indexOf(this.diagnoses[i].id.toString()) > -1){
795
+            nameArr.push(this.diagnoses[i].class_name)
796
+          }
797
+        }
798
+        let newNameArr = []
799
+        nameArr.map((item,index) => {
800
+          newNameArr.push(item)
801
+          nameArr.splice(index,1,'')
802
+        })
803
+        newNameArr.push(...nameArr)
804
+        console.log("---------------------------",newNameArr.join(' '))
805
+        return newNameArr.join(' ')
806
+     },
786 807
   },
787 808
   created() {
788 809
     this.getlist();
789 810
     this.getInitData();
790 811
     this.wayOptions = getDataConfig("patient", "reimbursement_ways");
791
-
812
+    
813
+    console.log("patient----------------",this.patientInfo)
792 814
     if ((this.patientInfo.gender ==1)) {
793 815
       this.patientInfo.gender = "男";
794 816
     } else if ((this.patientInfo.gender == 2)) {
@@ -867,8 +889,10 @@ export default {
867 889
         this.lab_apparatus = this.patientInfo.lab_apparatus;
868 890
         console.log("WOWOWOWOOWOWOWWO",this.patientInfo)
869 891
         console.log("透气那数据阿道夫阿道夫阿道夫低分安抚",this.LastCaseHistory)
870
-
871
-
892
+        console.log("befor------------------------",this.befor)
893
+        console.log("patient------------------------",this.patientInfo)
894
+        console.log("prescriptionInfo--------------------",this.prescriptionInfo)
895
+        console.log("this.diagnoses",this.diagnoses)
872 896
         if(this.befor!=undefined){
873 897
           if(this.case_history.temperature == 0){
874 898
             this.case_history.temperature =  this.befor.temperature?this.befor.temperature:""
@@ -890,10 +914,22 @@ export default {
890 914
             this.case_history.dbp = this.befor.diastolic_blood_pressure?this.befor.diastolic_blood_pressure:""
891 915
           }   
892 916
         }
917
+        if(this.patientInfo!=null){
918
+           this.case_history.chief_conplaint = this.patientInfo.patient_complains
919
+           this.case_history.history_of_present_illness = this.patientInfo.present_history
920
+           this.case_history.past_history = this.patientInfo.past_history
921
+           this.allergic_history = this.patientInfo.allergic_history
922
+           this.case_history.diagnostic = this.patientInfo.diagnose
923
+         
924
+           if(this.prescriptionInfo!=null){
925
+               console.log("诊断---------------------",this.diagnoses)
926
+              this.case_history.diagnose = this.getDiagnosis(this.prescriptionInfo.diagnosis) 
927
+           }
928
+        }
893 929
       },
894 930
       deep: true,
895 931
     },
896
-
932
+ 
897 933
     case_history: {
898 934
       handler(val, oldval) {
899 935
         console.log(val, oldval, "监听中。。");

+ 6 - 2
src/xt_pages/outpatientDoctorStation/doctorDesk.vue 파일 보기

@@ -183,7 +183,7 @@
183 183
 
184 184
         <desk-record :record_date="record_date" :case_history="case_history" :patientInfo="patientInfo"
185 185
                      :hisPatientInfo="hisPatientInfo" v-if="titleType == '电子病历'" :detalid="detalid" :befor="befor"
186
-                     :LastCaseHistory="LastCaseHistory"
186
+                     :LastCaseHistory="LastCaseHistory" :prescriptions="prescriptions" :prescriptionInfo="prescriptionInfo"
187 187
                      ref="child"></desk-record>
188 188
         <medicalRecord ref='medicalRecord' @func="getMsgFormSon"></medicalRecord>
189 189
         <saveRecordTemplate ref='saveRecordTemplate'></saveRecordTemplate>
@@ -1995,9 +1995,13 @@ export default {
1995 1995
           this.case_history.physical_examination = this.case_history.physical_examination
1996 1996
           this.case_history.special_inspection = this.case_history.special_inspection
1997 1997
           this.case_history.lab_apparatus = this.case_history.lab_apparatus
1998
-
1998
+    
1999 1999
           //处方相关
2000 2000
           this.prescriptionList = response.data.data.prescription
2001
+
2002
+          var  prescriptionInfo = response.data.data.prescriptionInfo
2003
+          console.log("prescriptionInfo-----------------",prescriptionInfo)
2004
+          this.prescriptionInfo = prescriptionInfo
2001 2005
           let is_medicine = false
2002 2006
           if (response.data.data.prescription.length > 0) {
2003 2007
             for (let i = 0; i < response.data.data.prescription.length; i++) {

+ 3 - 2
src/xt_pages/outpatientDoctorStation/recordTemplate/printFour.vue 파일 보기

@@ -78,10 +78,11 @@
78 78
             <div class="otherInfo">
79 79
                 <div class="otherName">体格检查:</div>
80 80
                 <div style="flex:1;">
81
-                    <span>体温:{{ history.temperature ? history.temperature + '℃' : '/' }}</span>
81
+                     {{ history.physical_examination }}
82
+                    <!-- <span>体温:{{ history.temperature ? history.temperature + '℃' : '/' }}</span>
82 83
                     <span>脉搏:{{ history.pulse ? history.pulse + '次/分' : '/' }}</span>
83 84
                     <span>呼吸:{{ history.breathing ? history.breathing + '次/分' : '/' }}</span>
84
-                    <span>血压:{{ history.sbp }}/{{ history.dbp }}mmHg</span>
85
+                    <span>血压:{{ history.sbp }}/{{ history.dbp }}mmHg</span> -->
85 86
                 </div>
86 87
             </div>
87 88
             <div class="otherInfo">

+ 9 - 5
src/xt_pages/user/lapsoInspection.vue 파일 보기

@@ -268,7 +268,7 @@
268 268
             </el-col>
269 269
             <el-col :span="7">
270 270
               <el-form-item
271
-                label="检验日期222"
271
+                label="检验日期"
272 272
                 prop="inspect_date"
273 273
                 :rules="[
274 274
                   { required: true, message: '请输入检验日期', trigger: 'blur' }
@@ -451,7 +451,8 @@
451 451
     setRemind,
452 452
     setRemindDialog,
453 453
     getNewInspectionList,
454
-    getNewInspectionDetailList
454
+    getNewInspectionDetailList,
455
+    EditPatientNewInspection
455 456
   } from '@/api/inspection'
456 457
   import { getFileExtension, uParseTime } from '@/utils/tools'
457 458
   
@@ -725,7 +726,7 @@
725 726
         this.form.formItem = []
726 727
         if(this.inspectionData!=null){
727 728
           this.formTitle = '修改' + this.project.project_name
728
-          
729
+          this.form.method = "edit"
729 730
           for(let i=0;i<this.inspectionData.length;i++){
730 731
             console.log("类型====================",this.inspectionData[i].inspect_type)
731 732
             var obj = {id:0,project_id:0,project_name:"",item_id:0,item_name:"",range_type:"",value:"",unit:"",item_id:0} 
@@ -906,9 +907,12 @@
906 907
       //   })
907 908
       // },
908 909
       submitEdit(){
909
-         
910
+          
910 911
          console.log("hhahahahh",this.form.formItem)
911
-        EditPatientNewInspection().then(response=>{
912
+          var params = {
913
+            data:this.form.formItem
914
+          }
915
+        EditPatientNewInspection(params).then(response=>{
912 916
 
913 917
         })
914 918
       },