Kaynağa Gözat

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

yq1 8 ay önce
ebeveyn
işleme
740a5acced

+ 9 - 0
src/api/inspection.js Dosyayı Görüntüle

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 Dosyayı Görüntüle

861
                            }}
861
                            }}
862
                           </span>
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
                             record.assessment_after_dislysis.displace_liqui_value
866
                             record.assessment_after_dislysis.displace_liqui_value
867
                               ? record.assessment_after_dislysis.displace_liqui_value
867
                               ? record.assessment_after_dislysis.displace_liqui_value
868
                               : "/"
868
                               : "/"
869
                            }}
869
                            }}
870
                           </span>
870
                           </span>
871
+                        
871
 
872
 
872
                           <span v-if="org_id!=10206&&org_id!=10510">
873
                           <span v-if="org_id!=10206&&org_id!=10510">
873
                             {{
874
                             {{

+ 2 - 2
src/xt_pages/dialysis/details/dialog/dialysisPrescriptionDialog.vue Dosyayı Görüntüle

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

+ 4 - 4
src/xt_pages/dialysis/template/DialysisPrintOrderFortyEight.vue Dosyayı Görüntüle

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

+ 2 - 1
src/xt_pages/dialysis/template/DialysisPrintOrderSix.vue Dosyayı Görüntüle

918
                         </span>
918
                         </span>
919
 
919
 
920
                         <span v-if="org_id ==10510 ">
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
                             afterdialysis.displace_liqui_value
922
                             afterdialysis.displace_liqui_value
923
                             ? afterdialysis.displace_liqui_value
923
                             ? afterdialysis.displace_liqui_value
924
                             : "/"
924
                             : "/"
925
                            }}
925
                            }}
926
                         </span>
926
                         </span>
927
+                        <span v-else>/</span>
927
                         </span>
928
                         </span>
928
                         <span v-if="org_id!=10206&& org_id!=10510"> {{
929
                         <span v-if="org_id!=10206&& org_id!=10510"> {{
929
                           prescription.displace_liqui_value
930
                           prescription.displace_liqui_value

+ 7 - 4
src/xt_pages/org/orginfo.vue Dosyayı Görüntüle

390
             GetOrgInfo().then(response=>{
390
             GetOrgInfo().then(response=>{
391
                 var res = response.data;
391
                 var res = response.data;
392
                 if (res.state === 1) {
392
                 if (res.state === 1) {
393
+                    this.formloading = false;
393
                     this.form.org_name = res.data.orginfo.org_name;
394
                     this.form.org_name = res.data.orginfo.org_name;
394
                     this.form.contact_name = res.data.orginfo.contact_name;
395
                     this.form.contact_name = res.data.orginfo.contact_name;
395
                     this.form.org_introduction = res.data.orginfo.org_introduction;
396
                     this.form.org_introduction = res.data.orginfo.org_introduction;
410
                     this.form.illness_list = [];
411
                     this.form.illness_list = [];
411
                     this.form.org_gallery = res.data.orginfo.org_gallery;
412
                     this.form.org_gallery = res.data.orginfo.org_gallery;
412
                     this.fileList = [];
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
                         this.fileList.push(image);
417
                         this.fileList.push(image);
416
                     }
418
                     }
417
 
419
 
488
                         this.childtypes = [];
490
                         this.childtypes = [];
489
                     }
491
                     }
490
                     this.illnessOptions = res.data.illness?res.data.illness:[];
492
                     this.illnessOptions = res.data.illness?res.data.illness:[];
491
-                    this.formloading = false;
493
+                   
492
                 } else {
494
                 } else {
495
+                    this.formloading = false;
493
                     this.$message.error(resp.msg)
496
                     this.$message.error(resp.msg)
494
                 }
497
                 }
495
             }).catch(e=>{
498
             }).catch(e=>{
496
-
499
+                this.formloading = false;
497
             })
500
             })
498
         },
501
         },
499
          myTrim(x) {
502
          myTrim(x) {

+ 2 - 1
src/xt_pages/outpatientCharges/components/registerDialog.vue Dosyayı Görüntüle

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

+ 40 - 4
src/xt_pages/outpatientDoctorStation/components/deskRecord.vue Dosyayı Görüntüle

431
     detalid: Number,
431
     detalid: Number,
432
     befor:Object,
432
     befor:Object,
433
     LastCaseHistory:Object,
433
     LastCaseHistory:Object,
434
+    prescriptions:Array,
435
+    prescriptionInfo:Object,
434
   },
436
   },
435
   components: {
437
   components: {
436
     medicalRecord,
438
     medicalRecord,
783
         return uParseTime(val, "{y}-{m}-{d}");
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
   created() {
808
   created() {
788
     this.getlist();
809
     this.getlist();
789
     this.getInitData();
810
     this.getInitData();
790
     this.wayOptions = getDataConfig("patient", "reimbursement_ways");
811
     this.wayOptions = getDataConfig("patient", "reimbursement_ways");
791
-
812
+    
813
+    console.log("patient----------------",this.patientInfo)
792
     if ((this.patientInfo.gender ==1)) {
814
     if ((this.patientInfo.gender ==1)) {
793
       this.patientInfo.gender = "男";
815
       this.patientInfo.gender = "男";
794
     } else if ((this.patientInfo.gender == 2)) {
816
     } else if ((this.patientInfo.gender == 2)) {
867
         this.lab_apparatus = this.patientInfo.lab_apparatus;
889
         this.lab_apparatus = this.patientInfo.lab_apparatus;
868
         console.log("WOWOWOWOOWOWOWWO",this.patientInfo)
890
         console.log("WOWOWOWOOWOWOWWO",this.patientInfo)
869
         console.log("透气那数据阿道夫阿道夫阿道夫低分安抚",this.LastCaseHistory)
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
         if(this.befor!=undefined){
896
         if(this.befor!=undefined){
873
           if(this.case_history.temperature == 0){
897
           if(this.case_history.temperature == 0){
874
             this.case_history.temperature =  this.befor.temperature?this.befor.temperature:""
898
             this.case_history.temperature =  this.befor.temperature?this.befor.temperature:""
890
             this.case_history.dbp = this.befor.diastolic_blood_pressure?this.befor.diastolic_blood_pressure:""
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
       deep: true,
930
       deep: true,
895
     },
931
     },
896
-
932
+ 
897
     case_history: {
933
     case_history: {
898
       handler(val, oldval) {
934
       handler(val, oldval) {
899
         console.log(val, oldval, "监听中。。");
935
         console.log(val, oldval, "监听中。。");

+ 6 - 2
src/xt_pages/outpatientDoctorStation/doctorDesk.vue Dosyayı Görüntüle

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

+ 3 - 2
src/xt_pages/outpatientDoctorStation/recordTemplate/printFour.vue Dosyayı Görüntüle

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

+ 9 - 5
src/xt_pages/user/lapsoInspection.vue Dosyayı Görüntüle

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