Browse Source

11月14日 库存扣减更新

XMLWAN 3 years ago
parent
commit
2668a1d1e3

+ 6 - 6
src/api/patient.js View File

550
   })
550
   })
551
 }
551
 }
552
 
552
 
553
-export function createHospitalSummary(params) {
553
+export function createHospitalSummary(data) {
554
   return request({
554
   return request({
555
     url: '/api/patient/hospitalsummary',
555
     url: '/api/patient/hospitalsummary',
556
-    method: 'get',
557
-    params: params
556
+    method: 'post',
557
+    data: data
558
   })
558
   })
559
 }
559
 }
560
 
560
 
574
   })
574
   })
575
 }
575
 }
576
 
576
 
577
-export function updateHospitalSummary(params) {
577
+export function updateHospitalSummary(data) {
578
   return request({
578
   return request({
579
     url: '/api/patient/updatehospitalsummary',
579
     url: '/api/patient/updatehospitalsummary',
580
-    method: 'get',
581
-    params: params
580
+    method: 'post',
581
+    data: data
582
   })
582
   })
583
 }
583
 }
584
 
584
 

+ 1 - 1
src/xt_pages/dialysis/details/dialog/monitor_dialog.vue View File

512
             align="center"
512
             align="center"
513
             label="KT/V"
513
             label="KT/V"
514
             width="140"
514
             width="140"
515
-            v-if="isShow('KT/V') && org_id == 9987"
515
+            v-if="isShow('KT/V') && (org_id == 9987 || org_id ==10215) "
516
           >
516
           >
517
            <template slot-scope="scope">
517
            <template slot-scope="scope">
518
               {{ scope.row.ktv ? scope.row.ktv : ""  }}
518
               {{ scope.row.ktv ? scope.row.ktv : ""  }}

+ 2 - 2
src/xt_pages/dialysis/details/dialysisMonitoring.vue View File

38
           <th v-if="isShow('血压监测')" width="92px">血压监测</th>
38
           <th v-if="isShow('血压监测')" width="92px">血压监测</th>
39
           <!-- <th v-if="isShow('血压监测部位')" width="92px">血压监测部位</th>
39
           <!-- <th v-if="isShow('血压监测部位')" width="92px">血压监测部位</th>
40
           <th v-if="isShow('并发症')" width="92px">并发症</th> -->
40
           <th v-if="isShow('并发症')" width="92px">并发症</th> -->
41
-          <th v-if="isShow('KT/V') && org_id == 9987" width="92px">KT/V</th>
41
+          <th v-if="isShow('KT/V') && (org_id == 9987 || org_id == 10215)" width="92px">KT/V</th>
42
           <th v-if="isShow('病情变化')" width="92px">病情变化</th>
42
           <th v-if="isShow('病情变化')" width="92px">病情变化</th>
43
 
43
 
44
           <th v-if="isShow('处理')" width="92px">处理</th>
44
           <th v-if="isShow('处理')" width="92px">处理</th>
85
           <th v-if="isShow('尿素监测')" width="92px">{{monitor.urea_monitoring ? monitor.urea_monitoring : ""}}</th>
85
           <th v-if="isShow('尿素监测')" width="92px">{{monitor.urea_monitoring ? monitor.urea_monitoring : ""}}</th>
86
           <th v-if="isShow('血浓量')" width="92px">{{monitor.blood_thickness ? monitor.blood_thickness : ""}}</th>
86
           <th v-if="isShow('血浓量')" width="92px">{{monitor.blood_thickness ? monitor.blood_thickness : ""}}</th>
87
           <th v-if="isShow('血压监测')" width="92px">{{monitor.blood_monitor ? monitor.blood_monitor : ""}}</th>
87
           <th v-if="isShow('血压监测')" width="92px">{{monitor.blood_monitor ? monitor.blood_monitor : ""}}</th>
88
-          <td v-if="isShow('KT/V') && org_id == 9987">{{ monitor.ktv?monitor.ktv:""}}</td>
88
+          <td v-if="isShow('KT/V') && (org_id == 9987 || org_id == 10215)">{{ monitor.ktv?monitor.ktv:""}}</td>
89
           <td v-if="isShow('病情变化')">{{ monitor.symptom }}</td>
89
           <td v-if="isShow('病情变化')">{{ monitor.symptom }}</td>
90
           <td v-if="isShow('处理')">{{ monitor.dispose }}</td>
90
           <td v-if="isShow('处理')">{{ monitor.dispose }}</td>
91
           <td v-if="isShow('结果')">{{ monitor.result }}</td>
91
           <td v-if="isShow('结果')">{{ monitor.result }}</td>

+ 4 - 2
src/xt_pages/user/coursePrint.vue View File

24
             </div>
24
             </div>
25
 
25
 
26
             <div style="flex:1;text-align: center;">
26
             <div style="flex:1;text-align: center;">
27
-              床位:
28
-                <div  style="width: 120px;text-align: left;display:inline-block;"></div>
27
+              透析号:
28
+                <div  style="width: 120px;text-align: left;display:inline-block;">
29
+                  {{patient.dialysis_no?patient.dialysis_no:"/"}}
30
+                </div>
29
             </div>
31
             </div>
30
 
32
 
31
             <div  style="flex:1;text-align: center;">
33
             <div  style="flex:1;text-align: center;">

+ 214 - 34
src/xt_pages/user/hospitalSummary.vue View File

7
         <div>
7
         <div>
8
                     <span style="margin-left: 10px;float:right;">
8
                     <span style="margin-left: 10px;float:right;">
9
                         <el-button type="primary" icon="el-icon-circle-plus-outline" size="small"
9
                         <el-button type="primary" icon="el-icon-circle-plus-outline" size="small"
10
-                                   @click="show_dialog = true">新增</el-button>
10
+                                   @click="addAction">新增</el-button>
11
 
11
 
12
                         <el-button type="primary" icon="el-icon-edit-outline" size="small"
12
                         <el-button type="primary" icon="el-icon-edit-outline" size="small"
13
                                    @click="toEdit">修改</el-button>
13
                                    @click="toEdit">修改</el-button>
77
                    {{getDoctor(hosDetail.doctor)}}
77
                    {{getDoctor(hosDetail.doctor)}}
78
                 </div>
78
                 </div>
79
                 <div style="padding:10px;border-bottom:1px solid #DCDFE6;line-height:20px;">记录日期:
79
                 <div style="padding:10px;border-bottom:1px solid #DCDFE6;line-height:20px;">记录日期:
80
-                  <span v-if="hosDetail.record_time > 0">{{getTime(hosDetail.record_time)}}</span> 
80
+                  <span v-if="hosDetail.record_date > 0">{{getTime(hosDetail.record_date)}}</span> 
81
                 </div>
81
                 </div>
82
                 <div style="padding:10px;border-bottom:1px solid #DCDFE6;line-height:20px;">病案号:
82
                 <div style="padding:10px;border-bottom:1px solid #DCDFE6;line-height:20px;">病案号:
83
                    {{hosDetail.sick_personnel}}
83
                    {{hosDetail.sick_personnel}}
442
 
442
 
443
                 <div class="textarea_panel">
443
                 <div class="textarea_panel">
444
                     <keep-alive>
444
                     <keep-alive>
445
-                      <editor ref="editorEight"
446
-                              id="editorEight"
445
+                      <editor ref="editorSixty"
446
+                              id="editorSixty"
447
                               style="width: 800px"
447
                               style="width: 800px"
448
                               v-bind:r_content="form.diagnosis_admission">
448
                               v-bind:r_content="form.diagnosis_admission">
449
                       </editor>
449
                       </editor>
479
 
479
 
480
                <div class="textarea_panel">
480
                <div class="textarea_panel">
481
                     <keep-alive>
481
                     <keep-alive>
482
-                      <editor ref="editorElement"
483
-                              id="editorElement"
482
+                      <editor ref="editorThirty"
483
+                              id="editorThirty"
484
                               style="width: 800px"
484
                               style="width: 800px"
485
                               v-bind:r_content="form.illness_discharge">
485
                               v-bind:r_content="form.illness_discharge">
486
                       </editor>
486
                       </editor>
612
        docList:[],
612
        docList:[],
613
        doctorList:[],
613
        doctorList:[],
614
        hosDetail:{},
614
        hosDetail:{},
615
+       ids:"",
615
       }
616
       }
616
     },
617
     },
617
     created() {
618
     created() {
618
      
619
      
619
-     
620
+ 
620
       this.patient_id = this.$route.params && this.$route.params.id
621
       this.patient_id = this.$route.params && this.$route.params.id
621
-      console.log("患者2332323",this.patient_id)
622
+      console.log("患者2332323",this.$store.getters.configlist.admitting_diagnosis)
622
       var now = new Date()
623
       var now = new Date()
623
       this.date = [now.getTime() - (7 * 24 * 60 * 60 * 1000), now.getTime()]
624
       this.date = [now.getTime() - (7 * 24 * 60 * 60 * 1000), now.getTime()]
624
 
625
 
673
 
674
 
674
        },
675
        },
675
       changeCurrentRecordTwo(row){
676
       changeCurrentRecordTwo(row){
676
-        console.log("ro2233322332323223",row)
677
+       
677
         this.form.id = 0
678
         this.form.id = 0
678
-        this.form.id = row.id 
679
-        this.getHospitalSummaryDetail(row.id)
679
+        if(row!=null){
680
+          this.form.id = row.id 
681
+          this.getHospitalSummaryDetail(row.id)
682
+        }
680
       },
683
       },
681
       selectSummary(row){
684
       selectSummary(row){
682
-       console.log("row322323",row)
685
+        var arr = []
686
+        for(let i=0;i<row.length;i++){
687
+          arr.push(row[i].id)
688
+        }
689
+       var ids = arr.join(",")
690
+       this.ids = ids
683
       },
691
       },
684
       changeAmittDiagnosis(content){
692
       changeAmittDiagnosis(content){
693
+        
685
         this.form.admitting_diagnosis = content
694
         this.form.admitting_diagnosis = content
686
       },
695
       },
687
       changeDischargeDiagnosis(content){
696
       changeDischargeDiagnosis(content){
697
+       
688
          this.form.discharge_diagnosis = content
698
          this.form.discharge_diagnosis = content
689
       },
699
       },
690
       changeDiagnosisAdmission(content){
700
       changeDiagnosisAdmission(content){
701
+      
691
        this.form.diagnosis_admission = content
702
        this.form.diagnosis_admission = content
692
       },
703
       },
693
       changeTreatment(content){
704
       changeTreatment(content){
705
+       
694
         this.form.treatment = content
706
         this.form.treatment = content
695
       },
707
       },
696
       changeillnessDisCharge(content){
708
       changeillnessDisCharge(content){
709
+      
697
         this.form.illness_discharge = content
710
         this.form.illness_discharge = content
698
       },
711
       },
699
       changeDischargeAdvice(content){
712
       changeDischargeAdvice(content){
713
+      
700
         this.form.discharge_advice = content
714
         this.form.discharge_advice = content
701
       },
715
       },
702
       createAction(){
716
       createAction(){
703
-         console.log("hhj232322323",this.form.admission_time)
717
+         console.log("hh23h",this.templates)
718
+         var admitting_diagnosis_id = ""
719
+         var discharge_diagnosis_id = ""
720
+         var diagnosis_admission_id = ""
721
+         var treatment_id = ""
722
+         var illness_discharge_id=""
723
+         var discharge_advice_id= ""
724
+         
725
+         if(this.templates!=undefined){
726
+            for(let i=0;i<this.templates.length;i++){
727
+            if(this.form.admitting_diagnosis_id == this.templates[i].content){
728
+            
729
+                admitting_diagnosis_id = this.templates[i].title
730
+              }
731
+          }
732
+         }
733
+       
734
+         if(this.templatesOne!=undefined){
735
+          for(let i=0;i<this.templatesOne.length;i++){
736
+           if(this.form.discharge_diagnosis_id == this.templatesOne[i].content){
737
+              discharge_diagnosis_id = this.templatesOne[i].title
738
+            }
739
+          }
740
+         }
741
+         
742
+         if(this.templatesTwo!=undefined){
743
+          for(let i=0;i<this.templatesTwo.length;i++){
744
+            if(this.form.diagnosis_admission_id == this.templatesTwo[i].content){
745
+                diagnosis_admission_id = this.templatesTwo[i].title
746
+              }
747
+          }
748
+         }
749
+        
750
+        if(this.templatesThree!=undefined){
751
+         for(let i=0;i<this.templatesThree.length;i++){
752
+           if(this.form.treatment_id == this.templatesThree[i].content){
753
+              treatment_id = this.templatesThree[i].title
754
+            }
755
+         }
756
+        }
757
+        
758
+        if(this.templatesFour!=undefined){
759
+          for(let i=0;i<this.templatesFour.length;i++){
760
+           if(this.form.illness_discharge_id == this.templatesFour[i].content){
761
+              illness_discharge_id = this.templatesFour[i].title
762
+            }
763
+         }
764
+        }
765
+         
766
+        if(this.templatesFive!=undefined){
767
+         for(let i=0;i<this.templatesFive.length;i++){
768
+           if(this.form.discharge_advice_id == this.templatesFive[i].content){
769
+              discharge_advice_id = this.templatesFive[i].title
770
+            }
771
+         }
772
+        }
773
+
774
+       
775
+         if(this.form.doctor == ""){
776
+            this.form.doctor = 0
777
+         }
778
+         if(this.form.dean == ""){
779
+           this.form.dean = 0
780
+         }
781
+         console.log("hhj232322323",this.form.admitting_diagnosis_id)
704
          var params = {
782
          var params = {
705
           patient_id:parseInt(this.patient_id),
783
           patient_id:parseInt(this.patient_id),
706
           title:this.form.title,
784
           title:this.form.title,
708
           discharge_time:this.form.discharge_time,
786
           discharge_time:this.form.discharge_time,
709
           sick_personnel:this.form.sick_personnel,
787
           sick_personnel:this.form.sick_personnel,
710
           xray:this.form.xray,
788
           xray:this.form.xray,
711
-          admitting_diagnosis_id:this.form.admitting_diagnosis_id,
789
+          admitting_diagnosis_id:admitting_diagnosis_id,
712
           admitting_diagnosis:this.$refs.editor.content,
790
           admitting_diagnosis:this.$refs.editor.content,
713
           discharge_diagnosis:this.$refs.editorOne.content,
791
           discharge_diagnosis:this.$refs.editorOne.content,
714
-          discharge_diagnosis_id:this.form.discharge_diagnosis_id,
715
-          diagnosis_admission_id:this.form.diagnosis_admission_id,
792
+          discharge_diagnosis_id:discharge_diagnosis_id,
793
+          diagnosis_admission_id:diagnosis_admission_id,
716
           diagnosis_admission:this.$refs.editorTwo.content,
794
           diagnosis_admission:this.$refs.editorTwo.content,
717
           illness_discharge:this.$refs.editorFive.content,
795
           illness_discharge:this.$refs.editorFive.content,
718
-          illness_discharge_id:this.form.illness_discharge_id,
719
-          discharge_advice_id:this.form.discharge_advice_id,
796
+          illness_discharge_id:illness_discharge_id,
797
+          discharge_advice_id:discharge_advice_id,
720
           discharge_advice:this.$refs.editorSix.content,
798
           discharge_advice:this.$refs.editorSix.content,
721
-          treatment_id:this.form.treatment_id,
799
+          treatment_id:treatment_id,
722
           treatment:this.$refs.editorFour.content,
800
           treatment:this.$refs.editorFour.content,
723
           dean:this.form.dean,
801
           dean:this.form.dean,
724
           doctor:this.form.doctor,
802
           doctor:this.form.doctor,
802
         getHospitalSummaryDetail(id).then(response=>{
880
         getHospitalSummaryDetail(id).then(response=>{
803
            if(response.data.state == 1){
881
            if(response.data.state == 1){
804
              var detail = response.data.data.detail
882
              var detail = response.data.data.detail
883
+            
805
              this.hosDetail = detail
884
              this.hosDetail = detail
806
            }
885
            }
807
         })
886
         })
810
         getHospitalSummaryDetail(id).then(response=>{
889
         getHospitalSummaryDetail(id).then(response=>{
811
            if(response.data.state == 1){
890
            if(response.data.state == 1){
812
              var detail = response.data.data.detail
891
              var detail = response.data.data.detail
892
+             console.log("detial323232232323322323",detail)
893
+             if(detail.doctor == 0){
894
+               this.form.doctor = ""
895
+             }
896
+             if(detail.dean == 0){
897
+               this.form.dean = ""
898
+             }
813
              this.form.id = detail.id
899
              this.form.id = detail.id
814
              this.form.title = detail.title
900
              this.form.title = detail.title
815
              this.form.patient_id = detail.patient_id
901
              this.form.patient_id = detail.patient_id
834
              this.form.discharge_advice_id = detail.discharge_advice_id
920
              this.form.discharge_advice_id = detail.discharge_advice_id
835
              this.form.discharge_advice = detail.discharge_advice
921
              this.form.discharge_advice = detail.discharge_advice
836
              this.form.record_time = this.getTime(detail.record_time)
922
              this.form.record_time = this.getTime(detail.record_time)
923
+             this.form.record_date = this.getTime(detail.record_date)
837
              this.form.dean = detail.dean_id
924
              this.form.dean = detail.dean_id
838
              this.form.doctor = detail.doctor
925
              this.form.doctor = detail.doctor
839
-             this.form.record_date = detail.record_date
840
-             this.hosDetail = detail
841
              this.edit_show_dialog = true
926
              this.edit_show_dialog = true
842
            }
927
            }
843
         })
928
         })
846
         this.getHospitalSummaryDetailOne(this.form.id)
931
         this.getHospitalSummaryDetailOne(this.form.id)
847
       },
932
       },
848
       updateAction(){
933
       updateAction(){
849
-         console.log("hhhahdf2332332",this.form.admission_time)
934
+         var admitting_diagnosis_id = this.form.admitting_diagnosis_id
935
+         var discharge_diagnosis_id = this.form.discharge_diagnosis_id
936
+         var diagnosis_admission_id = this.form.diagnosis_admission_id
937
+         var treatment_id = this.form.treatment_id
938
+         var illness_discharge_id= this.form.illness_discharge_id
939
+         var discharge_advice_id= this.form.discharge_advice_id
940
+
941
+         if(this.templates!=undefined){
942
+            for(let i=0;i<this.templates.length;i++){
943
+            if(this.form.admitting_diagnosis_id == this.templates[i].content){
944
+            
945
+                admitting_diagnosis_id = this.templates[i].title
946
+              }
947
+          }
948
+         }
949
+        
950
+         if(this.templatesOne!=undefined){
951
+          for(let i=0;i<this.templatesOne.length;i++){
952
+           if(this.form.discharge_diagnosis_id == this.templatesOne[i].content){
953
+              discharge_diagnosis_id = this.templatesOne[i].title
954
+            }
955
+          }
956
+         }
957
+
958
+         if(this.templatesTwo!=undefined){
959
+          for(let i=0;i<this.templatesTwo.length;i++){
960
+            if(this.form.diagnosis_admission_id == this.templatesTwo[i].content){
961
+                diagnosis_admission_id = this.templatesTwo[i].title
962
+              }
963
+          }
964
+         }
965
+        
966
+        if(this.templatesThree!=undefined){
967
+           for(let i=0;i<this.templatesThree.length;i++){
968
+           if(this.form.treatment_id == this.templatesThree[i].content){
969
+              treatment_id = this.templatesThree[i].title
970
+            }
971
+         }
972
+        }
973
+      
974
+        if(this.templatesFour!=undefined){
975
+            for(let i=0;i<this.templatesFour.length;i++){
976
+           if(this.form.illness_discharge_id == this.templatesFour[i].content){
977
+              illness_discharge_id = this.templatesFour[i].title
978
+            }
979
+         }
980
+        }
981
+
982
+       if(this.templatesFive!=undefined){
983
+         for(let i=0;i<this.templatesFive.length;i++){
984
+           if(this.form.discharge_advice_id == this.templatesFive[i].content){
985
+              discharge_advice_id = this.templatesFive[i].title
986
+            }
987
+         }
988
+       }
989
+       
990
+
991
+      
992
+        if(this.form.doctor == ""){
993
+            this.form.doctor = 0
994
+         }
995
+         if(this.form.dean == ""){
996
+           this.form.dean = 0
997
+         }
850
          var params = {
998
          var params = {
851
           id:this.form.id,
999
           id:this.form.id,
852
           patient_id:parseInt(this.patient_id),
1000
           patient_id:parseInt(this.patient_id),
855
           discharge_time:this.form.discharge_time,
1003
           discharge_time:this.form.discharge_time,
856
           sick_personnel:this.form.sick_personnel,
1004
           sick_personnel:this.form.sick_personnel,
857
           xray:this.form.xray,
1005
           xray:this.form.xray,
858
-          admitting_diagnosis_id:this.form.admitting_diagnosis_id,
1006
+          admitting_diagnosis_id:admitting_diagnosis_id,
859
           admitting_diagnosis:this.$refs.editorTen.content,
1007
           admitting_diagnosis:this.$refs.editorTen.content,
860
           discharge_diagnosis:this.$refs.editorSeven.content,
1008
           discharge_diagnosis:this.$refs.editorSeven.content,
861
-          discharge_diagnosis_id:this.form.discharge_diagnosis_id,
862
-          diagnosis_admission_id:this.form.diagnosis_admission_id,
863
-          diagnosis_admission:this.$refs.editorEight.content,
864
-          illness_discharge:this.$refs.editorElement.content,
865
-          illness_discharge_id:this.form.illness_discharge_id,
866
-          discharge_advice_id:this.form.discharge_advice_id,
867
-          discharge_advice:this.form.discharge_advice,
868
-          treatment_id:this.form.treatment_id,
1009
+          discharge_diagnosis_id:discharge_diagnosis_id,
1010
+          diagnosis_admission_id:diagnosis_admission_id,
1011
+          diagnosis_admission:this.$refs.editorSixty.content,
1012
+          illness_discharge:this.$refs.editorThirty.content,
1013
+          illness_discharge_id:illness_discharge_id,
1014
+          discharge_advice_id:discharge_advice_id,
1015
+          discharge_advice:this.$refs.editorTwelve.content,
1016
+          treatment_id:treatment_id,
869
           treatment:this.$refs.editorNight.content,
1017
           treatment:this.$refs.editorNight.content,
870
           dean:this.form.dean,
1018
           dean:this.form.dean,
871
           doctor:this.form.doctor,
1019
           doctor:this.form.doctor,
874
           nuclear_magnetic_resonance:this.form.nuclear_magnetic_resonance,
1022
           nuclear_magnetic_resonance:this.form.nuclear_magnetic_resonance,
875
           ultrasound:this.form.ultrasound,
1023
           ultrasound:this.form.ultrasound,
876
           pathology:this.form.pathology,
1024
           pathology:this.form.pathology,
1025
+          record_date:this.form.record_date,
877
          }
1026
          }
878
-        console.log("param2332233223232323",params)
879
-     
1027
+        console.log("比你强2332322323232",params)
1028
+        
880
         updateHospitalSummary(params).then(response=>{
1029
         updateHospitalSummary(params).then(response=>{
881
           if(response.data.state == 1){
1030
           if(response.data.state == 1){
882
             var detail = response.data.data.detail
1031
             var detail = response.data.data.detail
883
             this.edit_show_dialog = false
1032
             this.edit_show_dialog = false
1033
+            // this.$refs.monthlyPlanTable.setCurrentRow(detail)
884
             this.getlist()
1034
             this.getlist()
885
           }
1035
           }
886
         }) 
1036
         }) 
887
       },
1037
       },
888
       deleteAction(){
1038
       deleteAction(){
1039
+          if(this.ids.length == 0){
1040
+            this.$message.error("请勾选需要删除的数据")
1041
+            return false
1042
+          }
889
           this.$confirm('确认删除吗?', '删除', {
1043
           this.$confirm('确认删除吗?', '删除', {
890
             confirmButtonText: '确 定',
1044
             confirmButtonText: '确 定',
891
             cancelButtonText: '取 消',
1045
             cancelButtonText: '取 消',
892
             type: 'warning'
1046
             type: 'warning'
893
          }).then(() => {
1047
          }).then(() => {
894
             var params = {
1048
             var params = {
895
-              id:this.form.id,
1049
+              ids:this.ids,
896
             }
1050
             }
897
             deleteHospitalSummary(params).then(response => {
1051
             deleteHospitalSummary(params).then(response => {
898
               if (response.data.state == 1) {
1052
               if (response.data.state == 1) {
905
             })
1059
             })
906
           }).catch(() => {
1060
           }).catch(() => {
907
           }) 
1061
           }) 
1062
+      },
1063
+      addAction(){
1064
+        this.form.title = ""
1065
+        this.form.sick_personnel = ""
1066
+        this.form.xray = ""
1067
+        this.form.admitting_diagnosis = ""
1068
+        this.form.discharge_diagnosis = ""
1069
+        this.form.diagnosis_admission = ""
1070
+        this.form.illness_discharge = ""
1071
+        this.form.discharge_advice = ""
1072
+        this.form.treatment = ""
1073
+        this.form.connecticut = ""
1074
+        this.form.nuclear_magnetic_resonance = ""
1075
+        this.form.ultrasound = ""
1076
+        this.form.pathology = ""
1077
+        this.form.admitting_diagnosis_id = ""
1078
+        this.form.discharge_diagnosis_id = ""
1079
+        this.form.illness_discharge_id = ""
1080
+        this.form.discharge_advice_id  =""
1081
+        this.form.treatment_id = "" 
1082
+        this.form.dean = ""
1083
+        this.form.doctor = ""
1084
+        this.form.admission_time = this.getTime(new Date())
1085
+        this.form.admission_time = this.getTime(new Date()),
1086
+        this.form.discharge_time = this.getTime(new Date()),
1087
+        this.show_dialog = true
908
       }
1088
       }
909
     },
1089
     },
910
     watch: {
1090
     watch: {

+ 35 - 35
src/xt_pages/user/hospitalSummaryPrint.vue View File

11
       <div>
11
       <div>
12
         <table class="print-table" border="1" style="margin-top: 10px;">
12
         <table class="print-table" border="1" style="margin-top: 10px;">
13
           <tr>
13
           <tr>
14
-            <td style="text-align:center;width:170px" colspan="1">
14
+            <td style="text-align:center;width:50px" colspan="1">
15
               姓名:
15
               姓名:
16
             </td>
16
             </td>
17
-             <td style="text-align:center;width:170px" colspan="1">
17
+             <td style="text-align:center;width:50px" colspan="1">
18
               <span style="display:inline-block;margin-left:10px;">
18
               <span style="display:inline-block;margin-left:10px;">
19
                {{patient.name}}
19
                {{patient.name}}
20
               </span>
20
               </span>
21
             </td>
21
             </td>
22
-            <td style="text-align:center;" colspan="1">
22
+            <td style="text-align:center;width:50px" colspan="1">
23
               性别:
23
               性别:
24
             </td>
24
             </td>
25
-             <td style="text-align:center;" colspan="1">
25
+             <td style="text-align:center;width:50px" colspan="1">
26
               <span style="display:inline-block;margin-left:10px;">
26
               <span style="display:inline-block;margin-left:10px;">
27
                 <span v-if="patient.gender == 1">男</span>
27
                 <span v-if="patient.gender == 1">男</span>
28
                 <span v-if="patient.gender == 2">女</span>
28
                 <span v-if="patient.gender == 2">女</span>
29
               </span>
29
               </span>
30
             </td>
30
             </td>
31
-            <td style="text-align:center;" colspan="1">
31
+            <td style="text-align:center;width:50px" colspan="1">
32
               年龄:
32
               年龄:
33
             </td>
33
             </td>
34
-            <td style="text-align:center;" colspan="1">
34
+            <td style="text-align:center;width:50px" colspan="1">
35
               <span style="display:inline-block;margin-left:10px;">
35
               <span style="display:inline-block;margin-left:10px;">
36
                  {{getNewAge(patient.id_card_no)}}
36
                  {{getNewAge(patient.id_card_no)}}
37
               </span>
37
               </span>
38
             </td>
38
             </td>
39
-            <td style="text-align:center;" colspan="1">
39
+            <td style="text-align:center;width:50px" colspan="1">
40
               婚姻:
40
               婚姻:
41
             </td>
41
             </td>
42
-             <td style="text-align:center;" colspan="1">
42
+             <td style="text-align:center;width:50px" colspan="1">
43
               <span style="display:inline-block;margin-left:10px;">
43
               <span style="display:inline-block;margin-left:10px;">
44
                  <span v-if="patient.marital_status == 0">未婚</span>
44
                  <span v-if="patient.marital_status == 0">未婚</span>
45
                  <span v-if="patient.marital_status == 1">已婚</span>
45
                  <span v-if="patient.marital_status == 1">已婚</span>
48
                  <span v-if="patient.marital_status == 4">丧偶</span>
48
                  <span v-if="patient.marital_status == 4">丧偶</span>
49
               </span>
49
               </span>
50
             </td>
50
             </td>
51
-             <td style="text-align:center;" colspan="1">
51
+             <td style="text-align:center;width:50px" colspan="1">
52
               职业: 
52
               职业: 
53
             </td>
53
             </td>
54
-             <td style="text-align:center;" colspan="1">
54
+             <td style="text-align:center;width:50px" colspan="1">
55
               <span style="display:inline-block;margin-left:10px;">
55
               <span style="display:inline-block;margin-left:10px;">
56
                {{getProfession(patient.profession)?getProfession(patient.profession):''}}
56
                {{getProfession(patient.profession)?getProfession(patient.profession):''}}
57
               </span>
57
               </span>
58
             </td>
58
             </td>
59
-             <td style="text-align:center;" colspan="1">
59
+             <td style="text-align:center;width:50px" colspan="1">
60
               电话:
60
               电话:
61
             </td>
61
             </td>
62
-             <td style="text-align:center;" colspan="1">
62
+             <td style="text-align:center;width:50px" colspan="1">
63
               <span style="display:inline-block;margin-left:10px;">
63
               <span style="display:inline-block;margin-left:10px;">
64
                 {{patient.phone}}
64
                 {{patient.phone}}
65
               </span>
65
               </span>
86
                 {{getTime(hosDetail.admission_time)}}
86
                 {{getTime(hosDetail.admission_time)}}
87
               </span>
87
               </span>
88
             </td>
88
             </td>
89
-            <td style="text-align:center;width:170px" colspan="2">
89
+            <td style="text-align:center;width:100px" colspan="2">
90
               出院时间:
90
               出院时间:
91
             </td>
91
             </td>
92
-            <td style="text-align:center;width:170px" colspan="2">
92
+            <td style="text-align:center;width:100px" colspan="2">
93
               <span style="display:inline-block;margin-left:10px;">
93
               <span style="display:inline-block;margin-left:10px;">
94
                 {{getTime(hosDetail.discharge_time)}}
94
                 {{getTime(hosDetail.discharge_time)}}
95
               </span>
95
               </span>
96
             </td>
96
             </td>
97
-            <td style="text-align:center;" colspan="1">
97
+            <td style="text-align:center;width:100px"  colspan="1">
98
               住院天数:
98
               住院天数:
99
             </td>
99
             </td>
100
-            <td style="text-align:center;" colspan="1">
100
+            <td style="text-align:center;width:50px" colspan="1">
101
               <span style="display:inline-block;margin-left:10px;">
101
               <span style="display:inline-block;margin-left:10px;">
102
                {{getTimeDay(hosDetail.admission_time,hosDetail.discharge_time)}}
102
                {{getTimeDay(hosDetail.admission_time,hosDetail.discharge_time)}}
103
                
103
                
104
               </span>
104
               </span>
105
             </td>
105
             </td>
106
-            <td style="text-align:center;" colspan="2">
106
+            <td style="text-align:center;width:50px" colspan="2">
107
               转归:
107
               转归:
108
             
108
             
109
             </td>
109
             </td>
110
-            <td style="text-align:center;" colspan="1">
110
+            <td style="text-align:center;width:50px" colspan="1">
111
               <span style="display:inline-block;margin-left:10px;">
111
               <span style="display:inline-block;margin-left:10px;">
112
                 <span v-if="patient.lapseto == 1">留治</span>
112
                 <span v-if="patient.lapseto == 1">留治</span>
113
                 <span v-if="patient.lapseto == 2">转归</span>
113
                 <span v-if="patient.lapseto == 2">转归</span>
116
             
116
             
117
           </tr>
117
           </tr>
118
           <tr>
118
           <tr>
119
-            <td style="text-align:center;width:170px" colspan="2">
119
+            <td style="text-align:center;width:50px" colspan="1">
120
               检查号:
120
               检查号:
121
             </td>
121
             </td>
122
-            <td style="text-align:center;" colspan="1">
122
+            <td style="text-align:center;width:50px" colspan="2">
123
               X线:
123
               X线:
124
             </td>
124
             </td>
125
-            <td style="text-align:center;" colspan="1">
125
+            <td style="text-align:center;width:50px" colspan="1">
126
               <span style="display:inline-block;margin-left:10px;">
126
               <span style="display:inline-block;margin-left:10px;">
127
                 {{hosDetail.xray}}
127
                 {{hosDetail.xray}}
128
               </span>
128
               </span>
129
             </td>
129
             </td>
130
-            <td style="text-align:center;" colspan="1">
130
+            <td style="text-align:center;width:50px" colspan="1">
131
               CT:
131
               CT:
132
             </td>
132
             </td>
133
-            <td style="text-align:center;" colspan="1">
133
+            <td style="text-align:center;width:50px" colspan="1">
134
               <span style="display:inline-block;margin-left:10px;">
134
               <span style="display:inline-block;margin-left:10px;">
135
                 {{hosDetail.connecticut}}
135
                 {{hosDetail.connecticut}}
136
               </span>
136
               </span>
137
             </td>
137
             </td>
138
-            <td style="text-align:center;" colspan="1">
138
+            <td style="text-align:center;width:50px" colspan="1">
139
               MRI:
139
               MRI:
140
             </td>
140
             </td>
141
-             <td style="text-align:center;" colspan="1">
141
+             <td style="text-align:center;width:50px" colspan="1">
142
               <span style="display:inline-block;margin-left:10px;">
142
               <span style="display:inline-block;margin-left:10px;">
143
                 {{hosDetail.nuclear_magnetic_resonance}}
143
                 {{hosDetail.nuclear_magnetic_resonance}}
144
               </span>
144
               </span>
145
             </td>
145
             </td>
146
-             <td style="text-align:center;" colspan="1">
146
+             <td style="text-align:center;width:50px" colspan="1">
147
               超声:
147
               超声:
148
             </td>
148
             </td>
149
-             <td style="text-align:center;" colspan="1">
149
+             <td style="text-align:center;width:50px" colspan="1">
150
               <span style="display:inline-block;margin-left:10px;">
150
               <span style="display:inline-block;margin-left:10px;">
151
                 {{hosDetail.ultrasound}}
151
                 {{hosDetail.ultrasound}}
152
               </span>
152
               </span>
153
             </td>
153
             </td>
154
-             <td style="text-align:center;" colspan="1">
154
+             <td style="text-align:center;width:50px" colspan="1">
155
               病理:
155
               病理:
156
             </td>
156
             </td>
157
-             <td style="text-align:center;" colspan="1">
157
+             <td style="text-align:center;width:50px" colspan="1">
158
               <span style="display:inline-block;margin-left:10px;">
158
               <span style="display:inline-block;margin-left:10px;">
159
                 {{hosDetail.pathology}}
159
                 {{hosDetail.pathology}}
160
               </span>
160
               </span>
169
             </td>   
169
             </td>   
170
             <td style="text-align:center;" colspan="11">
170
             <td style="text-align:center;" colspan="11">
171
               <span style="display:inline-block;margin-left:10px;">
171
               <span style="display:inline-block;margin-left:10px;">
172
-                {{hosDetail.admitting_diagnosis_id}}
172
+                <span v-html="hosDetail.admitting_diagnosis"></span>
173
               </span>
173
               </span>
174
             </td>   
174
             </td>   
175
           </tr>
175
           </tr>
180
              <td style="text-align:center;width:170px" colspan="11">
180
              <td style="text-align:center;width:170px" colspan="11">
181
              
181
              
182
               <span style="display:inline-block;margin-left:10px;">
182
               <span style="display:inline-block;margin-left:10px;">
183
-                {{hosDetail.discharge_diagnosis_id}}
183
+               <span v-html="hosDetail.discharge_diagnosis"></span>  
184
               </span>
184
               </span>
185
             </td>
185
             </td>
186
             
186
             
192
            <td style="text-align:center;width:170px" colspan="11">
192
            <td style="text-align:center;width:170px" colspan="11">
193
             
193
             
194
               <span style="display:inline-block;margin-left:10px;">
194
               <span style="display:inline-block;margin-left:10px;">
195
-                 {{hosDetail.diagnosis_admission_id}}
195
+                 <span v-html="hosDetail.diagnosis_admission"></span>
196
               </span>
196
               </span>
197
             </td>
197
             </td>
198
             
198
             
205
             </td>
205
             </td>
206
             <td style="text-align:center;width:170px" colspan="11">
206
             <td style="text-align:center;width:170px" colspan="11">
207
               <span style="display:inline-block;margin-left:10px;">
207
               <span style="display:inline-block;margin-left:10px;">
208
-                {{hosDetail.treatment}}
208
+               <span v-html="hosDetail.treatment"></span> 
209
               </span>
209
               </span>
210
             </td>
210
             </td>
211
             
211
             
217
             <td style="text-align:center;width:170px" colspan="11">
217
             <td style="text-align:center;width:170px" colspan="11">
218
             
218
             
219
               <span style="display:inline-block;margin-left:10px;">
219
               <span style="display:inline-block;margin-left:10px;">
220
-                {{hosDetail.illness_discharge}}
220
+               <span v-html="hosDetail.illness_discharge"></span> 
221
               </span>
221
               </span>
222
             </td>
222
             </td>
223
           
223
           
229
             </td>
229
             </td>
230
             <td style="text-align:center;width:170px" colspan="11">
230
             <td style="text-align:center;width:170px" colspan="11">
231
               <span style="display:inline-block;margin-left:10px;">
231
               <span style="display:inline-block;margin-left:10px;">
232
-                {{hosDetail.discharge_advice}}
232
+                <span v-html="hosDetail.discharge_advice"></span> 
233
               </span>
233
               </span>
234
             </td>
234
             </td>
235
             
235