Bläddra i källkod

Merge branch '20230223_pc_vue_new_branch' of http://git.shengws.com/csx/Vue_New into 20230223_pc_vue_new_branch

28169 2 år sedan
förälder
incheckning
7335399c29

+ 12 - 1
src/router/modules/patient.js Visa fil

@@ -205,7 +205,7 @@ export default {
205 205
     }
206 206
   },
207 207
   {
208
-    path: '/course/print',
208
+    path: '/course/print',//coursePrint
209 209
     component: () => import('@/xt_pages/user/coursePrint'),
210 210
     hidden: true,
211 211
     is_menu: false,
@@ -215,6 +215,17 @@ export default {
215 215
       noCache: true
216 216
     }
217 217
   },
218
+  {
219
+    path: '/physique/print',//coursePrint
220
+    component: () => import('@/xt_pages/user/physiqueprinting'),
221
+    hidden: true,
222
+    is_menu: false,
223
+    name: 'physiquePrinting',
224
+    meta: {
225
+      title: 'physiquePrinting',
226
+      noCache: true
227
+    }
228
+  },
218 229
   {
219 230
     path: '/patient/patient/templateSummary/print',
220 231
     component: () => import('@/xt_pages/user/templateSummaryPrint'),

+ 120 - 48
src/xt_pages/device/airDisinfectTwo.vue Visa fil

@@ -44,7 +44,7 @@
44 44
                 </el-table-column>
45 45
                 <el-table-column prop="fenopda" label="透析室" align="center" min-width="70">
46 46
                     <template slot-scope="scope">
47
-                      {{ getTimeTwo(scope.row.first_start_time)}} - {{ getTimeTwo(scope.row.first_end_time) }}
47
+                      {{getTimeTwo(scope.row.first_start_time)}} - {{ getTimeTwo(scope.row.first_end_time) }}
48 48
                     </template>
49 49
                 </el-table-column>
50 50
                 <el-table-column prop="dwaiod" label="累计时间" align="center" min-width="50">
@@ -59,8 +59,8 @@
59 59
                      </span>
60 60
                     <span v-else>
61 61
                         <img style="height:30px;" :src="setAdminUserES(scope.row.first_creator?scope.row.first_creator:scope.row.first_creator)" alt="" srcset="">
62
-                    </span>     
63
-                    
62
+                    </span>
63
+
64 64
                     </template>
65 65
                 </el-table-column>
66 66
 
@@ -82,7 +82,7 @@
82 82
                      </span>
83 83
                     <span v-else>
84 84
                         <img style="height:30px;" :src="setAdminUserES(scope.row.sencond_creator?scope.row.sencond_creator:scope.row.sencond_creator)" alt="" srcset="">
85
-                    </span>     
85
+                    </span>
86 86
                    </template>
87 87
                 </el-table-column>
88 88
 
@@ -104,7 +104,7 @@
104 104
                      </span>
105 105
                     <span v-else>
106 106
                         <img style="height:30px;" :src="setAdminUserES(scope.row.third_creator?scope.row.third_creator:scope.row.third_creator)" alt="" srcset="">
107
-                    </span>     
107
+                    </span>
108 108
                     </template>
109 109
                 </el-table-column>
110 110
 
@@ -121,7 +121,7 @@
121 121
                         </span>
122 122
                         <span v-else>
123 123
                             <img style="height:30px;" :src="setAdminUserES(scope.row.last_creator?scope.row.last_creator:scope.row.last_creator)" alt="" srcset="">
124
-                        </span>     
124
+                        </span>
125 125
                     </template>
126 126
                 </el-table-column>
127 127
                 <el-table-column prop="city" label="操作" align="center" min-width="150">
@@ -147,7 +147,7 @@
147 147
               @size-change="handleSizeChange"
148 148
               @current-change="handleCurrentChange"
149 149
           >
150
-           
150
+
151 151
           </el-pagination>
152 152
          </div>
153 153
 
@@ -192,7 +192,7 @@
192 192
                       </el-select>
193 193
                   </el-form-item>
194 194
                   <el-form-item label="消毒时间(h)" label-width="110px">
195
-                      <el-input v-model="form.first_disinfection_time " ></el-input>
195
+                      <el-input v-model="form.first_disinfection_time " :disabled="true"></el-input>
196 196
                   </el-form-item>
197 197
                   <el-form-item label="开始时间" label-width="110px">
198 198
                     <el-date-picker
@@ -201,6 +201,7 @@
201 201
                         value-format="yyyy-MM-dd HH:mm"
202 202
                         placeholder="选择时间"
203 203
                         v-model="form.first_start_time"
204
+                        @change="firststartime"
204 205
                         style="width:100%;"
205 206
                     ></el-date-picker>
206 207
                   </el-form-item>
@@ -211,6 +212,7 @@
211 212
                         value-format="yyyy-MM-dd HH:mm"
212 213
                         placeholder="选择时间"
213 214
                         v-model="form.first_end_time"
215
+                        @change="firstendtime"
214 216
                         style="width:100%;"
215 217
                      ></el-date-picker>
216 218
                   </el-form-item>
@@ -244,7 +246,6 @@
244 246
                       </el-select>
245 247
                   </el-form-item>
246 248
 
247
-
248 249
                   <div class="form_title"><span >治疗室</span></div>
249 250
                   <el-form-item label="消毒液" label-width="110px">
250 251
                       <!-- <el-input v-model="form.sencond_disinfection_water"></el-input> -->
@@ -269,7 +270,7 @@
269 270
                       </el-select>
270 271
                   </el-form-item>
271 272
                   <el-form-item label="消毒时间(h)" label-width="110px">
272
-                      <el-input v-model="form.sencond_disinfection_time " ></el-input>
273
+                      <el-input v-model="form.sencond_disinfection_time " :disabled="true"></el-input>
273 274
                   </el-form-item>
274 275
                   <el-form-item label="开始时间" label-width="110px">
275 276
                     <el-date-picker
@@ -278,6 +279,7 @@
278 279
                         value-format="yyyy-MM-dd HH:mm"
279 280
                         placeholder="选择时间"
280 281
                         v-model="form.sencond_start_time"
282
+                        @change="sencondstarttime"
281 283
                         style="width:100%;"
282 284
                     ></el-date-picker>
283 285
                   </el-form-item>
@@ -288,6 +290,7 @@
288 290
                         value-format="yyyy-MM-dd HH:mm"
289 291
                         placeholder="选择时间"
290 292
                         v-model="form.sencond_end_time"
293
+                        @change="sencondendtime"
291 294
                         style="width:100%;"
292 295
                     ></el-date-picker>
293 296
                   </el-form-item>
@@ -346,7 +349,7 @@
346 349
                       </el-select>
347 350
                   </el-form-item>
348 351
                   <el-form-item label="消毒时间(h)" label-width="110px">
349
-                      <el-input v-model="form.third_disinfection_time " ></el-input>
352
+                      <el-input v-model="form.third_disinfection_time " :disabled="true"></el-input>
350 353
                   </el-form-item>
351 354
                   <el-form-item label="开始时间"  label-width="110px">
352 355
                     <el-date-picker
@@ -355,6 +358,7 @@
355 358
                         value-format="yyyy-MM-dd HH:mm"
356 359
                         placeholder="选择时间"
357 360
                         v-model="form.third_start_time"
361
+                        @change="thirdstarttime"
358 362
                         style="width:100%;"
359 363
                     ></el-date-picker>
360 364
                   </el-form-item>
@@ -365,6 +369,7 @@
365 369
                         value-format="yyyy-MM-dd HH:mm"
366 370
                         placeholder="选择时间"
367 371
                         v-model="form.third_end_time"
372
+                        @change="thirdendtime"
368 373
                         style="width:100%;"
369 374
                     ></el-date-picker>
370 375
                   </el-form-item>
@@ -498,7 +503,7 @@
498 503
                       </el-select>
499 504
                   </el-form-item>
500 505
                   <el-form-item label="消毒时间(h)" label-width="110px">
501
-                      <el-input v-model="form.first_disinfection_time " ></el-input>
506
+                      <el-input v-model="form.first_disinfection_time " :disabled="true"></el-input>
502 507
                   </el-form-item>
503 508
                   <el-form-item label="开始时间" label-width="110px">
504 509
                     <el-date-picker
@@ -507,6 +512,7 @@
507 512
                         value-format="yyyy-MM-dd HH:mm"
508 513
                         placeholder="选择时间"
509 514
                         v-model="form.first_start_time"
515
+                        @change="firststartime"
510 516
                         style="width:100%;"
511 517
                     ></el-date-picker>
512 518
                   </el-form-item>
@@ -517,6 +523,7 @@
517 523
                         value-format="yyyy-MM-dd HH:mm"
518 524
                         placeholder="选择时间"
519 525
                         v-model="form.first_end_time"
526
+                        @change="firstendtime"
520 527
                         style="width:100%;"
521 528
                     ></el-date-picker>
522 529
                   </el-form-item>
@@ -549,6 +556,7 @@
549 556
                           </el-option>
550 557
                       </el-select>
551 558
                   </el-form-item>
559
+
552 560
                   <div class="form_title"><span >治疗室</span></div>
553 561
                   <el-form-item label="消毒液" label-width="110px">
554 562
                       <!-- <el-input v-model="form.sencond_disinfection_water"></el-input> -->
@@ -573,7 +581,7 @@
573 581
                       </el-select>
574 582
                   </el-form-item>
575 583
                   <el-form-item label="消毒时间(h)" label-width="110px">
576
-                      <el-input v-model="form.sencond_disinfection_time " ></el-input>
584
+                      <el-input v-model="form.sencond_disinfection_time " :disabled="true"></el-input>
577 585
                   </el-form-item>
578 586
                   <el-form-item label="开始时间" required label-width="110px">
579 587
                     <el-date-picker
@@ -592,6 +600,7 @@
592 600
                         value-format="yyyy-MM-dd HH:mm"
593 601
                         placeholder="选择时间"
594 602
                         v-model="form.sencond_end_time"
603
+                        @change="sencondendtime"
595 604
                         style="width:100%;"
596 605
                     ></el-date-picker>
597 606
                   </el-form-item>
@@ -648,7 +657,7 @@
648 657
                       </el-select>
649 658
                   </el-form-item>
650 659
                   <el-form-item label="消毒时间(h)" label-width="110px">
651
-                      <el-input v-model="form.third_disinfection_time " ></el-input>
660
+                      <el-input v-model="form.third_disinfection_time " :disabled="true"></el-input>
652 661
                   </el-form-item>
653 662
                   <el-form-item label="开始时间"  label-width="110px">
654 663
                     <el-date-picker
@@ -657,6 +666,7 @@
657 666
                         value-format="yyyy-MM-dd HH:mm"
658 667
                         placeholder="选择时间"
659 668
                         v-model="form.third_start_time"
669
+                        @change="thirdstarttime"
660 670
                         style="width:100%;"
661 671
                     ></el-date-picker>
662 672
                   </el-form-item>
@@ -667,6 +677,7 @@
667 677
                         value-format="yyyy-MM-dd HH:mm"
668 678
                         placeholder="选择时间"
669 679
                         v-model="form.third_end_time"
680
+                         @change="thirdendtime"
670 681
                         style="width:100%;"
671 682
                     ></el-date-picker>
672 683
                   </el-form-item>
@@ -699,6 +710,7 @@
699 710
                           </el-option>
700 711
                       </el-select>
701 712
                   </el-form-item>
713
+
702 714
                   <div class="form_title"><span >通风</span></div>
703 715
                   <el-form-item label="开始时间"  label-width="110px">
704 716
                     <el-date-picker
@@ -769,12 +781,12 @@
769 781
                                     <span style="position: absolute; right: 10px; top: 10px; font-size: 12px;">名称</span>
770 782
 
771 783
                                     <span style="position: absolute; display: block; top: 0; left: 46px; width: 100px;
772
-                                    border-bottom:1px solid black ;transform: rotate(52deg); 
784
+                                    border-bottom:1px solid black ;transform: rotate(52deg);
773 785
                                     transform-origin: top left;"></span>
774 786
 
775 787
                                     <span style="position: absolute; right: 45px; top: 23px;font-size: 12px;">消毒 <br/>时间</span>
776 788
                                     <span style="position: absolute; display: block; top: 46px; left: 0; width: 113px;
777
-                                    border-bottom:1px solid black ;transform: rotate(17deg); 
789
+                                    border-bottom:1px solid black ;transform: rotate(17deg);
778 790
                                     transform-origin: top left;"></span>
779 791
                                     <span style="position: absolute; left: 6px; bottom: 6px;font-size: 12px;">日期</span>
780 792
                                 </td>
@@ -791,7 +803,7 @@
791 803
                                 <td>负责人</td>
792 804
                             </tr>
793 805
                             <tr v-for="(item,index) in tableData" :key="index">
794
-                               <td>{{getTimes(item.record_date) }}</td> 
806
+                               <td>{{getTimes(item.record_date) }}</td>
795 807
                                <td>{{ getTimeTwo(item.first_start_time)}} - {{ getTimeTwo(item.first_end_time) }}</td>
796 808
                                <td>{{item.first_total_time }}</td>
797 809
                                <td>{{getName(item.first_creator)}}</td>
@@ -840,7 +852,7 @@
840 852
             record_date:moment(new Date()).add('year',0).format("YYYY-MM-DD"), //创建日期
841 853
             first_disinfection_water:"",// 消毒液
842 854
             first_disinfection_methods:"",//消毒方式
843
-            first_disinfection_time:"",//消毒时长
855
+            first_disinfection_time:'',//消毒时长
844 856
             first_start_time:moment(new Date()).format('YYYY-MM-DD HH:mm:ss'),//开始时间
845 857
             first_end_time:moment(new Date()).format('YYYY-MM-DD HH:mm:ss'),//结束时间
846 858
             first_total_time:"",//累计时间
@@ -860,7 +872,7 @@
860 872
 
861 873
             third_disinfection_water:"",// 消毒液
862 874
             third_disinfection_methods:"",//消毒方式
863
-            third_disinfection_time:"",//消毒时长
875
+            third_disinfection_time:'',//消毒时长
864 876
             third_start_time:moment(new Date()).format('YYYY-MM-DD HH:mm:ss'),//开始时间
865 877
             third_end_time:moment(new Date()).format('YYYY-MM-DD HH:mm:ss'),//结束时间
866 878
             third_total_time:"",//累计时间
@@ -895,7 +907,7 @@
895 907
          { id: 2, name: "500mg/l含氯消毒剂" },
896 908
          { id: 3, name: "1000mg/l含氯消毒剂" },
897 909
          { id: 4, name: "1500mg/l含氯消毒剂" },
898
-         { id: 5, name: "消毒湿巾" }   
910
+         { id: 5, name: "消毒湿巾" }
899 911
          ],
900 912
          DisinfectionMode: [
901 913
             { id: 1, name: "化学消毒" },
@@ -904,12 +916,46 @@
904 916
          ],
905 917
          operators: [],
906 918
          operatorMaps:{},
919
+         firststart:'',
920
+         firstend:'',
907 921
         }
908 922
       },
909 923
       created(){
910 924
         console.log("00000000000000000",this.$store.getters.xt_user.user.id)
911 925
         this.getAllDoctorList()
912 926
         this.getNewAirDisinfectList()
927
+        var time=moment(this.form.first_start_time).format("HH:mm");
928
+        console.log('sdfgsdfsdsddf',time,this.form.first_start_time);
929
+
930
+      },
931
+      computed:{
932
+        firstdisinfection_time (){
933
+            let firststart= Date.parse(new Date(this.form.first_start_time))
934
+            console.log('开始时间',firststart);
935
+            let firstend= Date.parse(new Date(this.form.first_end_time))
936
+            console.log('结束时间',firstend);
937
+            let time_interval = ((firstend - firststart)/(60*60*1000)).toFixed(1)
938
+            console.log('结束时间',((firstend - firststart)/(60*60*1000)).toFixed(1));
939
+            return time_interval
940
+        },
941
+        senconddisinfection_time (){
942
+            const sencondstart= Date.parse(new Date(this.form.sencond_start_time))
943
+            console.log('开始时间',sencondstart);
944
+            const sencondend= Date.parse(new Date(this.form.sencond_end_time))
945
+            console.log('结束时间',sencondstart);
946
+            const time_interval = ((sencondend - sencondstart)/(60*60*1000)).toFixed(1)
947
+            console.log('结束时间',time_interval);
948
+            return time_interval
949
+        },
950
+        thirddisinfection_time (){
951
+            const thirdstart= Date.parse(new Date(this.form.third_start_time))
952
+            console.log('开始时间',thirdstart);
953
+            const thirdend= Date.parse(new Date(this.form.third_end_time))
954
+            console.log('结束时间',thirdend);
955
+            const time_interval = ((thirdend - thirdstart)/(60*60*1000)).toFixed(1)
956
+            console.log('结束时间',time_interval);
957
+            return time_interval
958
+        }
913 959
       },
914 960
       methods:{
915 961
       handleSizeChange(val) {
@@ -921,7 +967,6 @@
921 967
         this.getNewAirDisinfectList()
922 968
       },
923 969
         changeStartime(val){
924
-          
925 970
           this.getNewAirDisinfectList()
926 971
         },
927 972
         changeEndtime(){
@@ -945,7 +990,7 @@
945 990
                 }
946 991
             }
947 992
            }
948
-          })  
993
+          })
949 994
         },
950 995
         saveNewAirDisinfect(formName){
951 996
           this.$refs[formName].validate((valid)=>{
@@ -955,13 +1000,13 @@
955 1000
                 }else{
956 1001
                   this.form.first_is_check = 0
957 1002
                 }
958
-                
1003
+
959 1004
                 if( this.form.sencond_is_check!=""){
960 1005
                     this.form.sencond_is_check = parseInt(this.form.sencond_is_check)
961 1006
                 }else{
962 1007
                     this.form.sencond_is_check = ""
963 1008
                 }
964
-                
1009
+
965 1010
                 if( this.form.third_is_check!=""){
966 1011
                    this.form.third_is_check = parseInt(this.form.third_is_check)
967 1012
                 }else{
@@ -972,34 +1017,30 @@
972 1017
                 }else{
973 1018
                   this.form.last_is_check = 0
974 1019
                 }
975
-                
1020
+
976 1021
                 if(this.form.first_modifications!=""){
977 1022
                   this.form.first_modifications = parseInt(this.form.first_modifications)
978 1023
                 }else{
979
-                    this.form.first_modifications =0  
1024
+                    this.form.first_modifications =0
980 1025
                 }
981 1026
 
982 1027
                 if(this.form.sencond_modifications!=""){
983
-                  this.form.sencond_modifications = parseInt(this.form.sencond_modifications)  
1028
+                  this.form.sencond_modifications = parseInt(this.form.sencond_modifications)
984 1029
                 }else{
985 1030
                     this.form.sencond_modifications =0
986 1031
                 }
987
-                
1032
+
988 1033
                 if(this.form.third_modifications!=""){
989 1034
                    this.form.third_modifications = parseInt(this.form.third_modifications)
990 1035
                 }else{
991
-                    this.form.third_modifications= 0   
1036
+                    this.form.third_modifications= 0
992 1037
                 }
993
-                
1038
+
994 1039
                 if(this.form.last_modifications!=""){
995 1040
                     this.form.last_modifications = parseInt(this.form.last_modifications)
996 1041
                 }else{
997 1042
                     this.form.last_modifications= 0
998 1043
                 }
999
-            
1000
-            
1001
-            
1002
-              
1003 1044
               console.log("this232322323",this.form)
1004 1045
               saveNewAirDisinfect(this.form).then(response=>{
1005 1046
                  if(response.data.state == 1 ){
@@ -1007,9 +1048,11 @@
1007 1048
                    this.$message.success("保存成功!")
1008 1049
                    this.dialogFormVisible = false
1009 1050
                    this.getNewAirDisinfectList()
1051
+                   this.$refs[formName].resetFields();
1010 1052
                  }
1011 1053
               })
1012 1054
             }
1055
+
1013 1056
           })
1014 1057
 
1015 1058
         },
@@ -1089,12 +1132,12 @@
1089 1132
               this.form.last_modifications = list.last_modifications?list.last_modifications:""
1090 1133
               this.form.last_creator = list.last_creator
1091 1134
               this.editDialogFormVisible = true
1092
-             
1135
+
1093 1136
             }
1094 1137
          })
1095 1138
        },
1096 1139
        updateAirDisinfect(formName){
1097
-        
1140
+
1098 1141
          this.$refs[formName].validate((valid)=>{
1099 1142
             if(valid){
1100 1143
                 if(this.form.first_is_check!=""){
@@ -1102,13 +1145,13 @@
1102 1145
                 }else{
1103 1146
                   this.form.first_is_check = 0
1104 1147
                 }
1105
-                
1148
+
1106 1149
                 if( this.form.sencond_is_check!=""){
1107 1150
                     this.form.sencond_is_check = parseInt(this.form.sencond_is_check)
1108 1151
                 }else{
1109 1152
                     this.form.sencond_is_check = ""
1110 1153
                 }
1111
-                
1154
+
1112 1155
                 if( this.form.third_is_check!=""){
1113 1156
                    this.form.third_is_check = parseInt(this.form.third_is_check)
1114 1157
                 }else{
@@ -1119,41 +1162,43 @@
1119 1162
                 }else{
1120 1163
                   this.form.last_is_check = 0
1121 1164
                 }
1122
-                
1165
+
1123 1166
                 if(this.form.first_modifications!=""){
1124 1167
                   this.form.first_modifications = parseInt(this.form.first_modifications)
1125 1168
                 }else{
1126
-                    this.form.first_modifications =0  
1169
+                    this.form.first_modifications =0
1127 1170
                 }
1128 1171
 
1129 1172
                 if(this.form.sencond_modifications!=""){
1130
-                  this.form.sencond_modifications = parseInt(this.form.sencond_modifications)  
1173
+                  this.form.sencond_modifications = parseInt(this.form.sencond_modifications)
1131 1174
                 }else{
1132 1175
                     this.form.sencond_modifications =0
1133 1176
                 }
1134
-                
1177
+
1135 1178
                 if(this.form.third_modifications!=""){
1136 1179
                    this.form.third_modifications = parseInt(this.form.third_modifications)
1137 1180
                 }else{
1138
-                    this.form.third_modifications= 0   
1181
+                    this.form.third_modifications= 0
1139 1182
                 }
1140
-                
1183
+
1141 1184
                 if(this.form.last_modifications!=""){
1142 1185
                     this.form.last_modifications = parseInt(this.form.last_modifications)
1143 1186
                 }else{
1144 1187
                     this.form.last_modifications= 0
1145 1188
                 }
1146
-            
1189
+
1147 1190
               updateAirDisinfect(this.form).then(response=>{
1148 1191
                 if(response.data.state == 1){
1149 1192
                   var disinfect =  response.data.data.disinfect
1150 1193
                   this.editDialogFormVisible = false
1151 1194
                   this.getNewAirDisinfectList()
1195
+                  this.$refs[formName].resetFields()
1152 1196
                 }
1153 1197
              })
1154 1198
             }
1155
-           
1199
+
1156 1200
          })
1201
+
1157 1202
        },
1158 1203
        handleDelete(id){
1159 1204
          deleteNewAirDisInfect(id).then(response=>{
@@ -1187,14 +1232,41 @@
1187 1232
             return ''
1188 1233
             }
1189 1234
             if (id in this.operatorMaps) {
1190
-            
1235
+
1191 1236
             return this.operatorMaps[id].url
1192
-            
1237
+
1193 1238
             } else {
1194 1239
             return ''
1195 1240
             }
1196 1241
         },
1197 1242
       }
1243
+        },
1244
+        firststartime(val){
1245
+            this.form.first_start_time = val
1246
+            this.form.first_disinfection_time = this.firstdisinfection_time
1247
+        },
1248
+        firstendtime(val){
1249
+            this.form.first_disinfection_time = this.firstdisinfection_time
1250
+            this.form.first_end_time = val
1251
+        },
1252
+        sencondstarttime(val){
1253
+            this.form.sencond_start_time = val
1254
+            this.form.sencond_disinfection_time = this.senconddisinfection_time
1255
+        },
1256
+         sencondendtime(val){
1257
+            this.form.sencond_end_time = val
1258
+            this.form.sencond_disinfection_time = this.senconddisinfection_time
1259
+        },
1260
+        thirdstarttime(val){
1261
+            this.form.third_start_time = val
1262
+            this.form.third_disinfection_time = this.thirddisinfection_time
1263
+        },
1264
+        thirdendtime(val){
1265
+            this.form.third_end_time = val
1266
+            this.form.third_disinfection_time = this.thirddisinfection_time
1267
+        },
1268
+      },
1269
+
1198 1270
     }
1199 1271
   </script>
1200 1272
 

+ 106 - 13
src/xt_pages/device/objectTableDisinfectTwo.vue Visa fil

@@ -142,7 +142,7 @@
142 142
                       <el-input v-model="form.first_disinfection_water"></el-input>
143 143
                   </el-form-item>
144 144
                   <el-form-item label="消毒时间(h)" label-width="110px">
145
-                      <el-input v-model="form.first_disinfection_time " ></el-input>
145
+                      <el-input v-model="form.first_disinfection_time " :disabled="true"></el-input>
146 146
                   </el-form-item>
147 147
                   <el-form-item label="开始时间" label-width="110px">
148 148
                     <el-date-picker
@@ -151,6 +151,7 @@
151 151
                         value-format="yyyy-MM-dd HH:mm"
152 152
                         placeholder="选择时间"
153 153
                         v-model="form.first_start_time"
154
+                        @change="firststartime"
154 155
                         style="width:100%;"
155 156
                     ></el-date-picker>
156 157
                   </el-form-item>
@@ -161,6 +162,7 @@
161 162
                         value-format="yyyy-MM-dd HH:mm"
162 163
                         placeholder="选择时间"
163 164
                         v-model="form.first_end_time"
165
+                        @change="firstendtime"
164 166
                         style="width:100%;"
165 167
                     ></el-date-picker>
166 168
                   </el-form-item>
@@ -202,7 +204,7 @@
202 204
                       <el-input v-model="form.sencond_disinfection_water"></el-input>
203 205
                   </el-form-item>
204 206
                   <el-form-item label="消毒时间(h)" label-width="110px">
205
-                      <el-input v-model="form.sencond_disinfection_time " ></el-input>
207
+                      <el-input v-model="form.sencond_disinfection_time " :disabled="true"></el-input>
206 208
                   </el-form-item>
207 209
                   <el-form-item label="开始时间"  label-width="110px">
208 210
                     <el-date-picker
@@ -211,6 +213,7 @@
211 213
                         value-format="yyyy-MM-dd HH:mm"
212 214
                         placeholder="选择时间"
213 215
                         v-model="form.sencond_start_time"
216
+                        @change="sencondstarttime"
214 217
                         style="width:100%;"
215 218
                     ></el-date-picker>
216 219
                   </el-form-item> 
@@ -221,6 +224,7 @@
221 224
                         value-format="yyyy-MM-dd HH:mm"
222 225
                         placeholder="选择时间"
223 226
                         v-model="form.sencond_end_time"
227
+                        @change="sencondendtime"
224 228
                         style="width:100%;"
225 229
                     ></el-date-picker>
226 230
                   </el-form-item>
@@ -262,7 +266,7 @@
262 266
                       <el-input v-model="form.third_disinfection_water"></el-input>
263 267
                   </el-form-item>
264 268
                   <el-form-item label="消毒时间(h)" label-width="110px">
265
-                      <el-input v-model="form.third_disinfection_time " ></el-input>
269
+                      <el-input v-model="form.third_disinfection_time " :disabled="true"></el-input>
266 270
                   </el-form-item>
267 271
                   <el-form-item label="开始时间"  label-width="110px">
268 272
                     <el-date-picker
@@ -271,6 +275,7 @@
271 275
                         value-format="yyyy-MM-dd HH:mm"
272 276
                         placeholder="选择时间"
273 277
                         v-model="form.third_start_time"
278
+                        @change="thirdstarttime"
274 279
                         style="width:100%;"
275 280
                     ></el-date-picker>
276 281
                   </el-form-item>
@@ -281,6 +286,7 @@
281 286
                         value-format="yyyy-MM-dd HH:mm"
282 287
                         placeholder="选择时间"
283 288
                         v-model="form.third_end_time"
289
+                        @change="thirdendtime"
284 290
                         style="width:100%;"
285 291
                     ></el-date-picker>
286 292
                   </el-form-item>
@@ -322,7 +328,7 @@
322 328
                       <el-input v-model="form.fourth_disinfection_water"></el-input>
323 329
                   </el-form-item>
324 330
                   <el-form-item label="消毒时间(h)" label-width="110px">
325
-                      <el-input v-model="form.fourth_disinfection_time " ></el-input>
331
+                      <el-input v-model="form.fourth_disinfection_time " :disabled="true"></el-input>
326 332
                   </el-form-item>
327 333
                   <el-form-item label="开始时间"  label-width="110px">
328 334
                     <el-date-picker
@@ -331,6 +337,7 @@
331 337
                         value-format="yyyy-MM-dd HH:mm"
332 338
                         placeholder="选择时间"
333 339
                         v-model="form.fourth_start_time"
340
+                        @change="fourthstarttime"
334 341
                         style="width:100%;"
335 342
                     ></el-date-picker>
336 343
                   </el-form-item>
@@ -341,6 +348,7 @@
341 348
                         value-format="yyyy-MM-dd HH:mm"
342 349
                         placeholder="选择时间"
343 350
                         v-model="form.fourth_end_time"
351
+                        @change="fourthendtime"
344 352
                         style="width:100%;"
345 353
                     ></el-date-picker>
346 354
                   </el-form-item>
@@ -382,7 +390,7 @@
382 390
                       <el-input v-model="form.last_disinfection_water"></el-input>
383 391
                   </el-form-item>
384 392
                   <el-form-item label="消毒时间(h)" label-width="110px">
385
-                      <el-input v-model="form.last_disinfection_time " ></el-input>
393
+                      <el-input v-model="form.last_disinfection_time " :disabled="true"></el-input>
386 394
                   </el-form-item>
387 395
                   <el-form-item label="开始时间"  label-width="110px">
388 396
                     <el-date-picker
@@ -391,6 +399,7 @@
391 399
                         value-format="yyyy-MM-dd HH:mm"
392 400
                         placeholder="选择时间"
393 401
                         v-model="form.last_start_time"
402
+                        @change="laststarttime"
394 403
                         style="width:100%;"
395 404
                     ></el-date-picker>
396 405
                   </el-form-item>
@@ -401,6 +410,7 @@
401 410
                         value-format="yyyy-MM-dd HH:mm"
402 411
                         placeholder="选择时间"
403 412
                         v-model="form.last_end_time"
413
+                        @change="lastendtime"
404 414
                         style="width:100%;"
405 415
                     ></el-date-picker>
406 416
                   </el-form-item>
@@ -446,7 +456,7 @@
446 456
           width="1000px"
447 457
           title="编辑物表消毒表"
448 458
           :visible.sync="editDialogFormVisible">
449
-              <el-form :model="form" ref="form" class="airForm" :rules="airRules">
459
+          <el-form :model="form" ref="form" class="airForm" :rules="airRules">
450 460
                   <div style="width: 100%;">
451 461
                     <el-form-item label="创建日期" label-width="110px" required prop="record_date">
452 462
                         <el-date-picker
@@ -465,7 +475,7 @@
465 475
                       <el-input v-model="form.first_disinfection_water"></el-input>
466 476
                   </el-form-item>
467 477
                   <el-form-item label="消毒时间(h)" label-width="110px">
468
-                      <el-input v-model="form.first_disinfection_time " ></el-input>
478
+                      <el-input v-model="form.first_disinfection_time " :disabled="true"></el-input>
469 479
                   </el-form-item>
470 480
                   <el-form-item label="开始时间" label-width="110px">
471 481
                     <el-date-picker
@@ -474,6 +484,7 @@
474 484
                         value-format="yyyy-MM-dd HH:mm"
475 485
                         placeholder="选择时间"
476 486
                         v-model="form.first_start_time"
487
+                        @change="firststartime"
477 488
                         style="width:100%;"
478 489
                     ></el-date-picker>
479 490
                   </el-form-item>
@@ -484,6 +495,7 @@
484 495
                         value-format="yyyy-MM-dd HH:mm"
485 496
                         placeholder="选择时间"
486 497
                         v-model="form.first_end_time"
498
+                        @change="firstendtime"
487 499
                         style="width:100%;"
488 500
                     ></el-date-picker>
489 501
                   </el-form-item>
@@ -525,7 +537,7 @@
525 537
                       <el-input v-model="form.sencond_disinfection_water"></el-input>
526 538
                   </el-form-item>
527 539
                   <el-form-item label="消毒时间(h)" label-width="110px">
528
-                      <el-input v-model="form.sencond_disinfection_time " ></el-input>
540
+                      <el-input v-model="form.sencond_disinfection_time " :disabled="true"></el-input>
529 541
                   </el-form-item>
530 542
                   <el-form-item label="开始时间"  label-width="110px">
531 543
                     <el-date-picker
@@ -534,6 +546,7 @@
534 546
                         value-format="yyyy-MM-dd HH:mm"
535 547
                         placeholder="选择时间"
536 548
                         v-model="form.sencond_start_time"
549
+                        @change="sencondstarttime"
537 550
                         style="width:100%;"
538 551
                     ></el-date-picker>
539 552
                   </el-form-item> 
@@ -544,6 +557,7 @@
544 557
                         value-format="yyyy-MM-dd HH:mm"
545 558
                         placeholder="选择时间"
546 559
                         v-model="form.sencond_end_time"
560
+                        @change="sencondendtime"
547 561
                         style="width:100%;"
548 562
                     ></el-date-picker>
549 563
                   </el-form-item>
@@ -585,7 +599,7 @@
585 599
                       <el-input v-model="form.third_disinfection_water"></el-input>
586 600
                   </el-form-item>
587 601
                   <el-form-item label="消毒时间(h)" label-width="110px">
588
-                      <el-input v-model="form.third_disinfection_time " ></el-input>
602
+                      <el-input v-model="form.third_disinfection_time " :disabled="true"></el-input>
589 603
                   </el-form-item>
590 604
                   <el-form-item label="开始时间"  label-width="110px">
591 605
                     <el-date-picker
@@ -594,6 +608,7 @@
594 608
                         value-format="yyyy-MM-dd HH:mm"
595 609
                         placeholder="选择时间"
596 610
                         v-model="form.third_start_time"
611
+                        @change="thirdstarttime"
597 612
                         style="width:100%;"
598 613
                     ></el-date-picker>
599 614
                   </el-form-item>
@@ -604,6 +619,7 @@
604 619
                         value-format="yyyy-MM-dd HH:mm"
605 620
                         placeholder="选择时间"
606 621
                         v-model="form.third_end_time"
622
+                        @change="thirdendtime"
607 623
                         style="width:100%;"
608 624
                     ></el-date-picker>
609 625
                   </el-form-item>
@@ -645,7 +661,7 @@
645 661
                       <el-input v-model="form.fourth_disinfection_water"></el-input>
646 662
                   </el-form-item>
647 663
                   <el-form-item label="消毒时间(h)" label-width="110px">
648
-                      <el-input v-model="form.fourth_disinfection_time " ></el-input>
664
+                      <el-input v-model="form.fourth_disinfection_time " :disabled="true"></el-input>
649 665
                   </el-form-item>
650 666
                   <el-form-item label="开始时间"  label-width="110px">
651 667
                     <el-date-picker
@@ -654,6 +670,7 @@
654 670
                         value-format="yyyy-MM-dd HH:mm"
655 671
                         placeholder="选择时间"
656 672
                         v-model="form.fourth_start_time"
673
+                        @change="fourthstarttime"
657 674
                         style="width:100%;"
658 675
                     ></el-date-picker>
659 676
                   </el-form-item>
@@ -664,6 +681,7 @@
664 681
                         value-format="yyyy-MM-dd HH:mm"
665 682
                         placeholder="选择时间"
666 683
                         v-model="form.fourth_end_time"
684
+                        @change="fourthendtime"
667 685
                         style="width:100%;"
668 686
                     ></el-date-picker>
669 687
                   </el-form-item>
@@ -705,7 +723,7 @@
705 723
                       <el-input v-model="form.last_disinfection_water"></el-input>
706 724
                   </el-form-item>
707 725
                   <el-form-item label="消毒时间(h)" label-width="110px">
708
-                      <el-input v-model="form.last_disinfection_time " ></el-input>
726
+                      <el-input v-model="form.last_disinfection_time " :disabled="true"></el-input>
709 727
                   </el-form-item>
710 728
                   <el-form-item label="开始时间"  label-width="110px">
711 729
                     <el-date-picker
@@ -714,6 +732,7 @@
714 732
                         value-format="yyyy-MM-dd HH:mm"
715 733
                         placeholder="选择时间"
716 734
                         v-model="form.last_start_time"
735
+                        @change="laststarttime"
717 736
                         style="width:100%;"
718 737
                     ></el-date-picker>
719 738
                   </el-form-item>
@@ -724,6 +743,7 @@
724 743
                         value-format="yyyy-MM-dd HH:mm"
725 744
                         placeholder="选择时间"
726 745
                         v-model="form.last_end_time"
746
+                        @change="lastendtime"
727 747
                         style="width:100%;"
728 748
                     ></el-date-picker>
729 749
                   </el-form-item>
@@ -927,8 +947,42 @@
927 947
         this.getAllDoctorList()
928 948
         this.getObjectTableDisInfectList()
929 949
       },
950
+      computed:{
951
+        firstdisinfection_time (){
952
+            const firststart= Date.parse(new Date(this.form.first_start_time))
953
+            console.log('开始时间',firststart);
954
+            const firstend= Date.parse(new Date(this.form.first_end_time)) 
955
+            console.log('结束时间',firstend);
956
+            const time_interval = ((firstend - firststart)/(60*60*1000)).toFixed(1)
957
+            console.log('结束时间',time_interval,Math.floor((firstend - firststart)/(60*60*1000)).toFixed(1));           
958
+            return time_interval
959
+        },
960
+        senconddisinfection_time (){
961
+            const sencondstart= Date.parse(new Date(this.form.sencond_start_time))
962
+            const sencondend= Date.parse(new Date(this.form.sencond_end_time))
963
+            const time_interval = ((sencondend - sencondstart)/(60*60*1000)).toFixed(1)
964
+            return time_interval
965
+        },
966
+        thirddisinfection_time (){
967
+            const thirdstart= Date.parse(new Date(this.form.third_start_time))
968
+            const thirdend= Date.parse(new Date(this.form.third_end_time))
969
+            const time_interval = ((thirdend - thirdstart)/(60*60*1000)).toFixed(1)
970
+            return time_interval
971
+        },
972
+        fourthdisinfection_time (){
973
+            const fourthstart= Date.parse(new Date(this.form.fourth_start_time))
974
+            const fourthend= Date.parse(new Date(this.form.fourth_end_time))
975
+            const time_interval = ((fourthend - fourthstart)/(60*60*1000)).toFixed(1)
976
+            return time_interval
977
+        },
978
+        lastdisinfection_time (){
979
+            const laststart= Date.parse(new Date(this.form.last_start_time))
980
+            const lastend= Date.parse(new Date(this.form.last_end_time))
981
+            const time_interval = ((lastend - laststart)/(60*60*1000)).toFixed(1)
982
+            return time_interval
983
+        },
984
+      },
930 985
       methods:{
931
-    
932 986
       printCard() {
933 987
         this.hiddenShow = true;
934 988
         var ptime = Math.round(new Date().getTime() / 1000);
@@ -1207,7 +1261,46 @@
1207 1261
             }
1208 1262
           })
1209 1263
         },
1210
-       
1264
+        firststartime(val){
1265
+            this.form.first_start_time = val
1266
+            this.form.first_disinfection_time = this.firstdisinfection_time
1267
+        },
1268
+        firstendtime(val){
1269
+            this.form.first_disinfection_time = this.firstdisinfection_time
1270
+            this.form.first_end_time = val   
1271
+        },
1272
+        sencondstarttime(val){
1273
+            this.form.sencond_start_time = val
1274
+            this.form.sencond_disinfection_time = this.senconddisinfection_time
1275
+        },
1276
+         sencondendtime(val){
1277
+            this.form.sencond_end_time = val
1278
+            this.form.sencond_disinfection_time = this.senconddisinfection_time
1279
+        },
1280
+        thirdstarttime(val){
1281
+            this.form.third_start_time = val
1282
+            this.form.third_disinfection_time = this.thirddisinfection_time
1283
+        },
1284
+        thirdendtime(val){
1285
+            this.form.third_end_time = val
1286
+            this.form.third_disinfection_time = this.thirddisinfection_time
1287
+        },
1288
+        fourthstarttime(val){
1289
+            this.form.fourth_start_time = val
1290
+            this.form.fourth_disinfection_time = this.fourthdisinfection_time
1291
+        },
1292
+        fourthendtime(val){
1293
+            this.form.fourth_end_time = val
1294
+            this.form.fourth_disinfection_time = this.fourthdisinfection_time
1295
+        },
1296
+        laststarttime(val){
1297
+            this.form.last_start_time = val
1298
+            this.form.last_disinfection_time = this.lastdisinfection_time
1299
+        },
1300
+        lastendtime(val){
1301
+            this.form.last_end_time = val
1302
+            this.form.last_disinfection_time = this.lastdisinfection_time
1303
+        }
1211 1304
         
1212 1305
       }
1213 1306
     }

+ 82 - 208
src/xt_pages/dialysis/template/DialysisPrintOrderSixtyfour.vue Visa fil

@@ -56,7 +56,7 @@
56 56
                     上机前病情:
57 57
                     {{ predialysis.symptom_before_dialysis ? predialysis.symptom_before_dialysis : "/" }}
58 58
                   </div>
59
-                  
59
+
60 60
                 </td>
61 61
               </tr>
62 62
               <tr>
@@ -155,7 +155,7 @@
155 155
                   </div>
156 156
                   <div style="margin-left:70px ; display: inline-block;">
157 157
                     医师签名:
158
-                  
158
+
159 159
                     <span v-if="setAdminUserES(prescription.creater) == ''">
160 160
                       {{ getAdminUser(prescription.creater) }}
161 161
                     </span>
@@ -276,8 +276,8 @@
276 276
                   </div>
277 277
                 </td>
278 278
               </tr>
279
-              <tr>
280
-                <td colspan="3" style=" text-align: center;">
279
+              <tr style="border-bottom: none;">
280
+                <td colspan="3" style=" text-align: center; border-bottom: none;">
281 281
                   <span style="font-weight: bold;"
282 282
                     >治&nbsp;疗&nbsp;过&nbsp;程&nbsp;记&nbsp;录</span
283 283
                   >
@@ -285,34 +285,33 @@
285 285
               </tr>
286 286
               <tr>
287 287
                 <td colspan="3">
288
-                  <table
289
-                    style="border-collapse: collapse; width: 100%; text-align: center;"
288
+                  <table border="1" cellspacing="0" cellpadding="0"
289
+                    style=" width: 100%; text-align: center; border: none;"
290 290
                   >
291
-                    <!-- <thead> -->
292
-                      <tr style="border-bottom: 1px solid gray;">
293
-                        <td rowspan="2" style=" border-right: 1px solid gray;">时间</td>
294
-                        <td colspan="5" style=" border-right: 1px solid gray;">透析参数</td>
295
-                        <td colspan="3" style=" border-right: 1px solid gray;">生命体征</td>
296
-                        <td colspan="3" style=" border-right: 1px solid gray;">治疗中病情变化</td>
291
+                    <!-- border-bottom: 1px solid gray; border-right: 1px solid gray;-->
292
+                      <tr style="">
293
+                        <td rowspan="2" style=" ">时间</td>
294
+                        <td colspan="5" style=" ">透析参数</td>
295
+                        <td colspan="3" style=" ">生命体征</td>
296
+                        <td colspan="3" style=" ">治疗中病情变化</td>
297 297
                       </tr>
298
-                      <tr style="border-bottom: 1px solid gray;">
299
-                        <td style=" border-right: 1px solid gray;">TMP<br />mmHg</td>
300
-                        <td style=" border-right: 1px solid gray;">静脉压<br />mmHg</td>
301
-                        <td style=" border-right: 1px solid gray;">血流量<br />ml/min</td>
302
-                        <td style=" border-right: 1px solid gray;">脱水量<br />L</td>
303
-                        <td style=" border-right: 1px solid gray;">T<br />ºC</td>
304
-                        <td style=" border-right: 1px solid gray;">HR<br />bpm</td>
305
-                        <td style=" border-right: 1px solid gray;">R<br />bpm</td>
306
-                        <td style=" border-right: 1px solid gray;">BP<br />mmHg</td>
307
-                        <td style=" border-right: 1px solid gray;">时间</td>
308
-                        <td style=" border-right: 1px solid gray;">记录</td>
298
+                      <tr style="">
299
+                        <td style=" ">TMP<br />mmHg</td>
300
+                        <td style=" ">静脉压<br />mmHg</td>
301
+                        <td style=" ">血流量<br />ml/min</td>
302
+                        <td style="">脱水量<br />L</td>
303
+                        <td style=" ">T<br />ºC</td>
304
+                        <td style=" ">HR<br />bpm</td>
305
+                        <td style=" ">R<br />bpm</td>
306
+                        <td style=" ">BP<br />mmHg</td>
307
+                        <td style=" ">时间</td>
308
+                        <td style=" ">记录</td>
309 309
                         <td >护士签名</td>
310 310
                       </tr>
311
-                    <!-- </thead>
312
-                    <tbody> -->
313
-                      <tr style="border-bottom: 1px solid gray;" v-for="(monitor, monindex) in monitors" :key="monindex" >
314
-                        <td style=" border-right: 1px solid gray;"> {{ getTime(monitor.operate_time, "{h}:{i}") }}</td>
315
-                        <td style=" border-right: 1px solid gray;">
311
+                    
312
+                      <tr style="" v-for="(monitor, monindex) in monitors" :key="monindex" >
313
+                        <td style=" "> {{ getTime(monitor.operate_time, "{h}:{i}") }}</td>
314
+                        <td style=" ">
316 315
                             <span v-if="getTime(monitor.operate_time) != ''">
317 316
                             {{
318 317
                                 monitor.transmembrane_pressure
@@ -322,7 +321,7 @@
322 321
                             </span>
323 322
                         </td >
324 323
 
325
-                        <td style=" border-right: 1px solid gray;">
324
+                        <td style=" ">
326 325
                             <span v-if="getTime(monitor.operate_time) != ''">
327 326
                                 &nbsp;{{
328 327
                                     monitor.venous_pressure ? monitor.venous_pressure : ""
@@ -330,7 +329,7 @@
330 329
                             </span>
331 330
                         </td>
332 331
 
333
-                        <td style=" border-right: 1px solid gray;">
332
+                        <td style=" ">
334 333
                             <span v-if="getTime(monitor.operate_time) != ''">
335 334
                             {{
336 335
                                 monitor.blood_flow_volume
@@ -340,7 +339,7 @@
340 339
                             </span>
341 340
                         </td>
342 341
 
343
-                        <td style=" border-right: 1px solid gray;">
342
+                        <td style=" ">
344 343
                             <span v-if="getTime(monitor.operate_time) != ''&&monindex == 0 ">
345 344
                             {{'/'}}
346 345
                             </span>
@@ -350,134 +349,13 @@
350 349
                             <span v-else>{{monitor.ultrafiltration_volume? monitor.ultrafiltration_volume: ""}}</span>
351 350
                         </td>
352 351
 
353
-                        <td style=" border-right: 1px solid gray;">
352
+                        <td style=" ">
354 353
                             <span v-if="getTime(monitor.operate_time) != ''">
355 354
                                 {{ monitor.temperature ? monitor.temperature : "" }}
356 355
                             </span>
357 356
                         </td>
358
-                        
359
-                        <td style=" border-right: 1px solid gray;"> 
360
-                            <span v-if="getTime(monitor.operate_time) != ''">
361
-                                {{
362
-                                  monitor.pulse_frequency ? monitor.pulse_frequency : ""
363
-                                }}
364
-                            </span>
365
-                        </td>
366
-
367
-                        <td style=" border-right: 1px solid gray;">
368
-                            <span v-if="getTime(monitor.operate_time) != ''">
369
-                                {{ monitor.breathing_rate ? monitor.breathing_rate : "" }}
370
-                            </span>
371
-                        </td>
372
-
373
-                        <td style=" border-right: 1px solid gray;">
374
-                            <span v-if="getTime(monitor.operate_time) != ''">
375
-                                {{
376
-                                    monitor.systolic_blood_pressure
377
-                                    ? monitor.systolic_blood_pressure
378
-                                    : ""
379
-                                }}/{{
380
-                                    monitor.diastolic_blood_pressure
381
-                                    ? monitor.diastolic_blood_pressure
382
-                                    : ""
383
-                                }}
384
-                                
385
-                            </span>
386
-                        </td>
387
-
388
-                        <td style=" border-right: 1px solid gray;"> {{ getTime(monitor.operate_time, "{h}:{i}") }}</td>
389
-                        <td style=" border-right: 1px solid gray;">
390
-                          <span style="word-break: break-all;word-wrap: break-word;">
391
-                            
392
-                              {{ monitor.symptom }} &nbsp;{{ monitor.dispose }} &nbsp;{{monitor.result}}
393
-                          </span>
394
-                        </td>
395
-                        <td>
396
-                          <span v-if="
397
-                            setAdminUserES(
398
-                              dialysisOrder == null
399
-                                ? 0
400
-                                : dialysisOrder.start_nurse
401
-                            ) == ''
402
-                          "
403
-                          >{{
404
-                            getAdminUser(
405
-                              dialysisOrder == null
406
-                                ? 0
407
-                                : dialysisOrder.start_nurse
408
-                            )
409
-                          }}</span
410
-                          >
411
-                          <img
412
-                            class="es-img"
413
-                            style="height: 30px"
414
-                            :src="
415
-                              setAdminUserES(
416
-                                dialysisOrder == null
417
-                                  ? 0
418
-                                  : dialysisOrder.start_nurse
419
-                              )
420
-                            "
421
-                            alt=""
422
-                            srcset=""
423
-                            v-else
424
-                          />
425
-                        </td>
426
-                      </tr>
427
-                    <!-- </tbody> -->
428
-                  </table>
429
-                </td>
430
-              </tr>
431
-              <!-- <tr>
432
-                <td colspan="3">
433
-                  <table style="border-collapse: collapse; width: 100%;">
434
-                    <tr style="border-bottom: 1px solid gray;" v-for="(monitor, monindex) in monitors" :key="monindex" >
435
-                        <td style=" border-right: 1px solid gray;"> {{ getTime(monitor.operate_time, "{h}:{i}") }}</td>
436
-                        <td style=" border-right: 1px solid gray;">
437
-                            <span v-if="getTime(monitor.operate_time) != ''">
438
-                            {{
439
-                                monitor.transmembrane_pressure
440
-                                ? monitor.transmembrane_pressure
441
-                                : ""
442
-                            }}
443
-                            </span>
444
-                        </td >
445
-
446
-                        <td style=" border-right: 1px solid gray;">
447
-                            <span v-if="getTime(monitor.operate_time) != ''">
448
-                                &nbsp;{{
449
-                                    monitor.venous_pressure ? monitor.venous_pressure : ""
450
-                                }}
451
-                            </span>
452
-                        </td>
453 357
 
454
-                        <td style=" border-right: 1px solid gray;">
455
-                            <span v-if="getTime(monitor.operate_time) != ''">
456
-                            {{
457
-                                monitor.blood_flow_volume
458
-                                ? monitor.blood_flow_volume
459
-                                : ""
460
-                            }}
461
-                            </span>
462
-                        </td>
463
-
464
-                        <td style=" border-right: 1px solid gray;">
465
-                            <span v-if="getTime(monitor.operate_time) != ''&&monindex == 0 ">
466
-                            {{'/'}}
467
-                            </span>
468
-                            <span v-else-if="getTime(monitor.operate_time) != ''&&monindex == 0 ">
469
-                            {{monitor.ultrafiltration_volume? monitor.ultrafiltration_volume: ""}}
470
-                            </span>
471
-                            <span v-else>{{monitor.ultrafiltration_volume? monitor.ultrafiltration_volume: ""}}</span>
472
-                        </td>
473
-
474
-                        <td style=" border-right: 1px solid gray;">
475
-                            <span v-if="getTime(monitor.operate_time) != ''">
476
-                                {{ monitor.temperature ? monitor.temperature : "" }}
477
-                            </span>
478
-                        </td>
479
-                        
480
-                        <td style=" border-right: 1px solid gray;"> 
358
+                        <td style=" ">
481 359
                             <span v-if="getTime(monitor.operate_time) != ''">
482 360
                                 {{
483 361
                                   monitor.pulse_frequency ? monitor.pulse_frequency : ""
@@ -485,13 +363,13 @@
485 363
                             </span>
486 364
                         </td>
487 365
 
488
-                        <td style=" border-right: 1px solid gray;">
366
+                        <td style=" ">
489 367
                             <span v-if="getTime(monitor.operate_time) != ''">
490 368
                                 {{ monitor.breathing_rate ? monitor.breathing_rate : "" }}
491 369
                             </span>
492 370
                         </td>
493 371
 
494
-                        <td style=" border-right: 1px solid gray;">
372
+                        <td style=" ">
495 373
                             <span v-if="getTime(monitor.operate_time) != ''">
496 374
                                 {{
497 375
                                     monitor.systolic_blood_pressure
@@ -502,14 +380,14 @@
502 380
                                     ? monitor.diastolic_blood_pressure
503 381
                                     : ""
504 382
                                 }}
505
-                                
383
+
506 384
                             </span>
507 385
                         </td>
508 386
 
509
-                        <td style=" border-right: 1px solid gray;"> {{ getTime(monitor.operate_time, "{h}:{i}") }}</td>
510
-                        <td style=" border-right: 1px solid gray;">
387
+                        <td style=" "> {{ getTime(monitor.operate_time, "{h}:{i}") }}</td>
388
+                        <td style=" ">
511 389
                           <span style="word-break: break-all;word-wrap: break-word;">
512
-                            
390
+
513 391
                               {{ monitor.symptom }} &nbsp;{{ monitor.dispose }} &nbsp;{{monitor.result}}
514 392
                           </span>
515 393
                         </td>
@@ -545,55 +423,60 @@
545 423
                           />
546 424
                         </td>
547 425
                       </tr>
426
+                    
548 427
                   </table>
549 428
                 </td>
550
-              </tr> -->
429
+              </tr>
430
+             
551 431
               <tr>
552 432
                 <td colspan="3">
553
-                  
554
-                    <table  class="inside_table" style="text-align: center; border-collapse:collapse;">
433
+                    <table  class="inside_table" border="1" cellspacing="0" cellpadding="0"
434
+                    style="text-align: center; border-top: none;border-bottom: none;
435
+                        border-right: none;border-left: none; box-sizing: border-box;">
555 436
                       <tr>
556
-                      <td style="height: 20px;border-right: 1px solid gray;" width="110">
437
+                      <td style="height: 20px;" width="110">
557 438
                           <p style="height: 20px; line-height: 20px" >提交时间</p>
558 439
                       </td>
559
-                    
560
-                      <td style="height: 20px; border-right: 1px solid gray;" width="350">
440
+
441
+                      <td style="height: 20px; " width="350">
561 442
                           <p style="height: 20px; line-height: 20px">医嘱执行记录</p>
562 443
                       </td>
563
-                      <td style="height: 20px; border-right: 1px solid gray;" width="130">
444
+                      <td style="height: 20px; " width="130">
564 445
                           <p style="height: 20px; line-height: 20px">执行时间</p>
565 446
                       </td>
566
-                  
567
-                      <td style="height: 20px; border-right: 1px solid gray;" width="110">
447
+
448
+                      <td style="height: 20px; " width="110">
568 449
                           <p style="height: 20px; line-height: 20px">执行</p>
569 450
                       </td>
570
-                      
571
-                      <td style="height: 20px; border-right: 1px solid gray;" width="150">
451
+
452
+                      <td style="height: 20px; " width="150">
572 453
                           <p style="height: 20px; line-height: 20px">上次透后体重</p>
573 454
                       </td>
574 455
                       <td style="height: 20px;" width="110">
575 456
                         {{ lastafterdialysis.weight_after.toFixed(2) }}kg
576 457
                       </td>
577 458
                       </tr>
578
-                      
459
+
579 460
                     </table>
580 461
                 </td>
581 462
               </tr>
582
-              <tr v-for="(advice, advice_index) in advices" :key="advice_index">
463
+              <tr v-for="(advice, advice_index) in advices" :key="advice_index" >
583 464
                 <td colspan="3">
584
-                  <table class="inside_table"   cellspacing="0" cellpadding="0" style="text-align: center;">
585
-                    <tr >
586
-                      <td width="110" style="border-right: 1px solid gray;">
465
+                  <table class="inside_table"  border="1" cellspacing="0" cellpadding="0" 
466
+                        style="text-align: center; border-top: none;border-bottom: none;
467
+                        border-right: none;border-left: none; box-sizing: border-box;">
468
+                    <tr style="border-bottom:none;">
469
+                      <td width="110" style="">
587 470
                         {{ getTime(advice.start_time, "{h}:{i}") }}
588 471
                       </td>
589
-                    
590
-                      <td style="border-right: 1px solid gray; text-align: left; padding-left: 5px ; word-break: break-all;word-wrap: break-word;" width="350">
472
+
473
+                      <td style=" text-align: left; padding-left: 5px ; word-break: break-all;word-wrap: break-word; box-sizing: border-box;" width="350">
591 474
                         <span v-if="advice.parent_id > 0"></span>
592 475
                         <span>{{ advice.advice_name }}</span>
593 476
                         <span v-if="advice && advice.advice_desc">
594 477
                           ({{ advice.advice_desc}}{{ advice.drug_spec_unit }})
595 478
                         </span>
596
-                        <span v-if="advice.prescribing_number">&nbsp;&nbsp; 
479
+                        <span v-if="advice.prescribing_number">&nbsp;&nbsp;
597 480
                           {{ advice.prescribing_number}}{{ advice.prescribing_number_unit }}
598 481
                         </span>
599 482
                         <span v-if="advice.single_dose != 0">
@@ -607,11 +490,11 @@
607 490
                         </span>
608 491
                         <span>{{ advice.remark }}</span>
609 492
                       </td>
610
-                  
611
-                      <td width="130" style="border-right: 1px solid gray;">
493
+
494
+                      <td width="130" style="">
612 495
                         {{ getTime(advice.execution_time, "{y}-{m}-{d} {h}:{i}") }}
613 496
                       </td>
614
-                      <td width="110" style="border-right: 1px solid gray;">
497
+                      <td width="110" style="">
615 498
                         <span
616 499
                           v-if="setAdminUserES(advice.advice_doctor) == ''"
617 500
                         >
@@ -624,36 +507,28 @@
624 507
                           srcset=""
625 508
                         />
626 509
                       </td>
627
-
628
-                      <td v-if="advice_index === 0" width="150" style="border-right: 1px solid gray;">透前体重</td>
510
+                      <td v-if="advice_index === 0" width="150" style="">透前体重</td>
629 511
                       <td v-if="advice_index === 0" width="110" >
630 512
                         {{predialysis.weight_before.toFixed(2) }}kg
631 513
                       </td>
632
-                      <td v-if="advice_index === 1" width="150" style="border-right: 1px solid gray;">体重增加量</td>
514
+                      <td v-if="advice_index === 1" width="150" style="">体重增加量</td>
633 515
                       <td v-if="advice_index === 1" width="110">
634 516
                         {{
635 517
                           assessmentafter.weight_after == 0 ||
636 518
                           predialysis.weight_before == 0
637
-                            ? 0
519
+                            ? '0.00'
638 520
                             : (
639 521
                                 predialysis.weight_before -
640 522
                                 assessmentafter.weight_after
641 523
                               ).toFixed(2)
642 524
                         }}kg
643 525
                       </td>
644
-                      <td v-if="advice_index === 2" width="150" style="border-right: 1px solid gray;">干体重(DW)</td>
526
+                      <td v-if="advice_index === 2" width="150" style="">干体重(DW)</td>
645 527
                       <td v-if="advice_index === 2" width="110">
646 528
                         {{ predialysis.dry_weight.toFixed(2) }}kg
647 529
                       </td>
648
-                      <td v-if="advice_index === 3" width="150" style="border-right: 1px solid gray;">较干体重增加量</td>
530
+                      <td v-if="advice_index === 3" width="150" style="">较干体重增加量</td>
649 531
                       <td v-if="advice_index === 3" width="110">
650
-                       
651
-                        <!-- {{
652
-                          (
653
-                            afterdialysis.weight_after -
654
-                            predialysis.dry_weight
655
-                          ).toFixed(2)
656
-                        }}kg -->
657 532
                           {{
658 533
                             patientInfo.total_dialysis +
659 534
                             patientInfo.user_sys_before_count >
@@ -661,28 +536,27 @@
661 536
                             ? (
662 537
                                 afterdialysis.weight_after - predialysis.dry_weight
663 538
                               ).toFixed(2)
664
-                            : 0
539
+                            : '0.00'
665 540
                           }}kg
666 541
                       </td>
667
-                     
668
-                      <td v-if="advice_index === 4" width="150" style="border-right: 1px solid gray;">透后体重</td>
542
+
543
+                      <td v-if="advice_index === 4" width="150" style="">透后体重</td>
669 544
                       <td v-if="advice_index === 4" width="110">
670
-                        
671 545
                         {{ afterdialysis.weight_after.toFixed(2) }}kg
672 546
                       </td>
673
-                      <td v-if="advice_index === 5" width="150" style="border-right: 1px solid gray;">
547
+                      <td v-if="advice_index === 5" width="150" style="">
674 548
                         本次透析体重下降量
675 549
                       </td>
676 550
                       <td v-if="advice_index === 5" width="110">
677 551
                         {{
678 552
                           afterdialysis.weight_after == 0 || predialysis.weight_before == 0
679
-                            ? 0
553
+                            ? '0.00'
680 554
                             : (
681 555
                                 predialysis.weight_before - afterdialysis.weight_after
682 556
                               ).toFixed(2)
683 557
                         }}kg
684 558
                       </td>
685
-                      <td v-if="advice_index > 5" width="150" style="border-right: 1px solid gray;"></td>
559
+                      <td v-if="advice_index > 5" width="150" style=""></td>
686 560
                       <td v-if="advice_index > 5" width="110"></td>
687 561
                     </tr>
688 562
                   </table>
@@ -696,7 +570,7 @@
696 570
                   <div style="display: inline-block; margin-left: 40px;">
697 571
                     姓别:{{ patientInfo_gender_1 == true ? "男" : "女" }}
698 572
                   </div>
699
-                  <div style="display: inline-block; margin-left: 40px;"> 
573
+                  <div style="display: inline-block; margin-left: 40px;">
700 574
                     透析机号:{{ getNumber() }}
701 575
                   </div> -->
702 576
                   <div style="word-break: break-all;word-wrap: break-word;">
@@ -706,9 +580,9 @@
706 580
                         summary.dialysis_summary ? summary.dialysis_summary : "/"
707 581
                       }}
708 582
                     </div>
709
-                    <div style="display: inline-block; margin-left: 150px;">
583
+                    <div style="display: inline-block; margin-left: 120px;">
710 584
                       医生签名:
711
-                    
585
+
712 586
                       <span v-if="setAdminUserES(prescription.creater) == ''">
713 587
                         {{ getAdminUser(prescription.creater) }}
714 588
                       </span>
@@ -993,13 +867,13 @@ export default {
993 867
         //     this.anticoagulantsConfit[thisALID].name;
994 868
         //     this.AlPanel = this.anticoagulantsConfit[thisALID];
995 869
         // }
996
-        
870
+
997 871
         this.advices = response.data.data.advices;
998
-        
872
+
999 873
         this.monitors = response.data.data.monitors;
1000 874
         this.summary = response.data.data.summary;
1001 875
         this.org_template_info = response.data.data.org_template_info;
1002
-        
876
+
1003 877
         if (this.monitors.length <= 0) {
1004 878
           var nl = 8 - this.monitors.length;
1005 879
           for (let index = 0; index < nl; index++) {

+ 16 - 1
src/xt_pages/management/components/ManageForm.vue Visa fil

@@ -851,8 +851,10 @@ export default {
851 851
     padding: 0;
852 852
   }
853 853
   .el-form-item__error {
854
-    margin-left: 60px;
854
+    //  margin-left: 60px; 
855
+    margin-left: 200px;
855 856
   }
857
+  
856 858
 }
857 859
 .el-checkbox {
858 860
   color: #606266;
@@ -866,3 +868,16 @@ export default {
866 868
   margin-right: 26px;
867 869
 }
868 870
 </style>
871
+<!-- <style lang="scss" scoped>
872
+#manage-form {
873
+  .el-form-item__label {
874
+    width: 100px;
875
+    padding: 0;
876
+  }
877
+  .el-form-item__error {
878
+     /* margin-left: 60px; */
879
+    margin-left: 200px;
880
+  }
881
+}
882
+  
883
+</style> -->

+ 32 - 32
src/xt_pages/management/components/WaterFormList.vue Visa fil

@@ -1089,8 +1089,8 @@
1089 1089
         if(this.form.machine_status!=""){
1090 1090
           this.form.machine_status = parseInt(this.form.machine_status)
1091 1091
         }
1092
-      
1093
-       
1092
+
1093
+
1094 1094
         if(this.form.reverse_osmosis_membrane_disinfection == true){
1095 1095
            this.form.reverse_osmosis_membrane_disinfection = 1
1096 1096
         }
@@ -1106,9 +1106,9 @@
1106 1106
         if(this.form.water_conductivity!=""){
1107 1107
           this.form.water_conductivity = parseFloat(this.form.water_conductivity)== NaN ? 0:parseFloat(this.form.water_conductivity)
1108 1108
         }else{
1109
-           this.form.water_conductivity = 0 
1109
+           this.form.water_conductivity = 0
1110 1110
         }
1111
-        
1111
+
1112 1112
         if(this.form.water_pressure!=""){
1113 1113
           this.form.water_pressure = parseFloat(this.form.water_pressure) == NaN ? 0:parseFloat(this.form.water_pressure)
1114 1114
         }else{
@@ -1118,15 +1118,15 @@
1118 1118
         if(this.form.temperature!=""){
1119 1119
           this.form.temperature = parseFloat(this.form.temperature)== NaN ? 0:parseFloat(this.form.temperature)
1120 1120
         }else{
1121
-          this.form.temperature = 0    
1121
+          this.form.temperature = 0
1122 1122
         }
1123
-        
1123
+
1124 1124
         if(this.form.force_pump_status!=""){
1125 1125
           this.form.force_pump_status = parseFloat(this.form.force_pump_status) ==  NaN ? 0: parseFloat(this.form.force_pump_status)
1126 1126
         }else{
1127 1127
             this.form.force_pump_status = 0
1128 1128
         }
1129
-        
1129
+
1130 1130
         if(this.form.first_ro_membrane_water!=""){
1131 1131
           this.form.first_ro_membrane_water = parseFloat(this.form.first_ro_membrane_water) == NaN?0:parseFloat(this.form.first_ro_membrane_water)
1132 1132
         }else{
@@ -1138,11 +1138,11 @@
1138 1138
         }else{
1139 1139
           this.form.first_ro_film_thick_water = 0
1140 1140
         }
1141
-        
1141
+
1142 1142
         if(this.form.first_ro_membrane_effluent!=""){
1143
-          this.form.first_ro_membrane_effluent =parseFloat(this.form.first_ro_membrane_effluent) == NaN?0:parseFloat(this.form.first_ro_membrane_effluent) 
1143
+          this.form.first_ro_membrane_effluent =parseFloat(this.form.first_ro_membrane_effluent) == NaN?0:parseFloat(this.form.first_ro_membrane_effluent)
1144 1144
         }else{
1145
-           this.form.first_ro_membrane_effluent = 0 
1145
+           this.form.first_ro_membrane_effluent = 0
1146 1146
         }
1147 1147
 
1148 1148
         if(this.form.first_production_of_water_conductivity!=""){
@@ -1150,37 +1150,37 @@
1150 1150
         }else{
1151 1151
           this.form.first_production_of_water_conductivity = 0
1152 1152
         }
1153
-        
1153
+
1154 1154
         if(this.form.first_water_yield !=""){
1155
-           this.form.first_water_yield = parseFloat(this.form.first_water_yield) == NaN?0:parseFloat(this.form.first_water_yield)  
1155
+           this.form.first_water_yield = parseFloat(this.form.first_water_yield) == NaN?0:parseFloat(this.form.first_water_yield)
1156 1156
         }else{
1157 1157
             this.form.first_water_yield =0
1158 1158
         }
1159
-       
1159
+
1160 1160
         if(this.form.last_ro_membrane_water!=""){
1161
-          this.form.last_ro_membrane_water = parseFloat(this.form.last_ro_membrane_water) ==NaN?0:parseFloat(this.form.last_ro_membrane_water)  
1161
+          this.form.last_ro_membrane_water = parseFloat(this.form.last_ro_membrane_water) ==NaN?0:parseFloat(this.form.last_ro_membrane_water)
1162 1162
         }else{
1163 1163
           this.form.last_ro_membrane_water = 0
1164 1164
         }
1165
-      
1165
+
1166 1166
         if(this.form.last_ro_membrane_effluent!=""){
1167 1167
           this.form.last_ro_membrane_effluent = parseFloat(this.form.last_ro_membrane_effluent) == NaN?0:parseFloat(this.form.last_ro_membrane_effluent)
1168 1168
         }else{
1169 1169
           this.form.last_ro_membrane_effluent = 0
1170 1170
         }
1171
-      
1171
+
1172 1172
         if(this.form.last_ro_film_thick_water!=""){
1173 1173
             this.form.last_ro_film_thick_water = parseFloat(this.form.last_ro_film_thick_water) == NaN?0:parseFloat(this.form.last_ro_film_thick_water)
1174 1174
         }else{
1175 1175
           this.form.last_ro_film_thick_water = 0
1176 1176
         }
1177
-   
1177
+
1178 1178
         if( this.form.last_production_of_water_conductivity!=""){
1179 1179
             this.form.last_production_of_water_conductivity = parseFloat(this.form.last_production_of_water_conductivity) == NaN?0:parseFloat(this.form.last_production_of_water_conductivity)
1180 1180
         }else{
1181 1181
             this.form.last_production_of_water_conductivity =0
1182 1182
         }
1183
-       
1183
+
1184 1184
         if(this.form.last_water_yield!=""){
1185 1185
             this.form.last_water_yield = parseFloat(this.form.last_water_yield)==NaN?0: parseFloat(this.form.last_water_yield)
1186 1186
         }else{
@@ -1192,25 +1192,25 @@
1192 1192
         }else{
1193 1193
             this.form.carbon_tank = 0
1194 1194
         }
1195
-        
1195
+
1196 1196
         if( this.form.snd_tank!=""){
1197 1197
             this.form.snd_tank = parseFloat(this.form.snd_tank) == NaN?0:parseFloat(this.form.snd_tank)
1198 1198
         }else{
1199 1199
             this.form.snd_tank = 0
1200 1200
         }
1201
-         
1201
+
1202 1202
         if(this.form.resin_tank!=""){
1203 1203
             this.form.resin_tank= parseFloat(this.form.resin_tank) ==NaN?0:parseFloat(this.form.resin_tank)
1204 1204
         }else{
1205 1205
             this.form.resin_tank= 0
1206 1206
         }
1207
-      
1207
+
1208 1208
         if( this.form.ultrafilter!=""){
1209 1209
             this.form.ultrafilter = parseFloat(this.form.ultrafilter)== NaN?0:parseFloat(this.form.ultrafilter)
1210 1210
         }else{
1211 1211
           this.form.ultrafilter = 0
1212 1212
         }
1213
-        
1213
+
1214 1214
         if(this.form.hardness_monitoring !=""){
1215 1215
             this.form.hardness_monitoring = parseFloat(this.form.hardness_monitoring) ==NaN?0: parseFloat(this.form.hardness_monitoring)
1216 1216
         }else{
@@ -1222,7 +1222,7 @@
1222 1222
         }else{
1223 1223
             this.form.total_chlorine_detection = 0
1224 1224
         }
1225
-        
1225
+
1226 1226
         if( this.form.ph_detection!=""){
1227 1227
             this.form.ph_detection = parseFloat(this.form.ph_detection) == NaN?0:parseFloat(this.form.ph_detection)
1228 1228
         }else{
@@ -1230,7 +1230,7 @@
1230 1230
         }
1231 1231
 
1232 1232
         if(this.form.concentration_of_peroxyacetic_acid!="" ){
1233
-            this.form.concentration_of_peroxyacetic_acid = parseFloat(this.form.concentration_of_peroxyacetic_acid) == NaN?0: parseFloat(this.form.concentration_of_peroxyacetic_acid)   
1233
+            this.form.concentration_of_peroxyacetic_acid = parseFloat(this.form.concentration_of_peroxyacetic_acid) == NaN?0: parseFloat(this.form.concentration_of_peroxyacetic_acid)
1234 1234
         }else{
1235 1235
             this.form.concentration_of_peroxyacetic_acid = 0
1236 1236
         }
@@ -1246,26 +1246,26 @@
1246 1246
         }else{
1247 1247
             this.form.first_disinfection_method = 0
1248 1248
         }
1249
-      
1250
-       
1249
+
1250
+
1251 1251
         if(this.form.last_disinfection_method !=""){
1252 1252
            this.form.last_disinfection_method = parseFloat(this.form.last_disinfection_method) == NaN?0:parseFloat(this.form.last_disinfection_method)
1253 1253
         }else{
1254 1254
             this.form.last_disinfection_method = 0
1255 1255
         }
1256
-       
1256
+
1257 1257
         if(this.form.first_disinfection_time !=""){
1258 1258
           this.form.first_disinfection_time = parseFloat(this.form.first_disinfection_time) == NaN?0:parseFloat(this.form.first_disinfection_time)
1259 1259
         }else{
1260 1260
             this.form.first_disinfection_time = 0
1261 1261
         }
1262
-        
1262
+
1263 1263
         if( this.form.last_disinfection_time!=""){
1264 1264
             this.form.last_disinfection_time = parseFloat(this.form.last_disinfection_time) == NaN?0:parseFloat(this.form.last_disinfection_time)
1265 1265
         }else{
1266
-            this.form.last_disinfection_time = 0  
1266
+            this.form.last_disinfection_time = 0
1267 1267
         }
1268
-      
1268
+
1269 1269
         if(this.form.filter_replacement!=""){
1270 1270
             this.form.filter_replacement = parseFloat(this.form.filter_replacement) == NaN?0:parseFloat(this.form.filter_replacement)
1271 1271
         }else{
@@ -1277,13 +1277,13 @@
1277 1277
         }else{
1278 1278
             this.form.admin_user_id =0
1279 1279
         }
1280
-        
1280
+
1281 1281
         if(this.form.disinfection_of_water_pipeline !=""){
1282 1282
             this.form.disinfection_of_water_pipeline = parseFloat(this.form.disinfection_of_water_pipeline) == NaN?0:parseFloat(this.form.disinfection_of_water_pipeline)
1283 1283
         }else{
1284 1284
             this.form.disinfection_of_water_pipeline =0
1285 1285
         }
1286
-      
1286
+
1287 1287
          this.$refs[formName].validate((valid) => {
1288 1288
           if (valid) {
1289 1289
             UpdateDilaysisWater(this.form,this.equimentid).then(response=>{

+ 8 - 6
src/xt_pages/management/home.vue Visa fil

@@ -941,7 +941,7 @@
941 941
                        <div class="userbutton">
942 942
                           <el-button type="primary" @click="ToReminders">自动生成使用登记</el-button>
943 943
                        </div>
944
-                     <div v-show="UserShow">
944
+                     <div v-show="UserShow" class="new-registration">
945 945
                         <el-tabs type="border-card" v-model="activeNameThree" @tab-click="handleClick">
946 946
                           <el-tab-pane label="新增使用登记" name="first">
947 947
 
@@ -1379,7 +1379,7 @@
1379 1379
                    </el-tab-pane>
1380 1380
 
1381 1381
                    <el-tab-pane label="质量控制" name="fourth">
1382
-                      <div v-show="zhiShow">
1382
+                      <div v-show="zhiShow" class="new-registration">
1383 1383
                        <el-tabs type="border-card" v-model="activeNameSix" @tab-click="handleClick">
1384 1384
                          <el-tab-pane label="新增质量控制" name="first">
1385 1385
 
@@ -5410,7 +5410,7 @@ export default {
5410 5410
         // top:4px;
5411 5411
         // z-index: 9;
5412 5412
         margin-bottom: 10px;
5413
-    margin-left: 90%;
5413
+        margin-left: 90%;
5414 5414
       }
5415 5415
     }
5416 5416
     .disinfectOne{
@@ -5456,14 +5456,16 @@ export default {
5456 5456
   }
5457 5457
   .el-form-item__error {
5458 5458
     margin-left: 130px;
5459
-    
5460 5459
   }
5461 5460
 
5462 5461
 </style>
5463 5462
 <style lang="scss">
5464
-    .el-form-item__error {
5465
-      left:103px !important;
5463
+    .new-registration{
5464
+      .el-form-item__error {
5465
+        left:103px ;
5466
+      }
5466 5467
     }
5468
+    
5467 5469
    .a{
5468 5470
      margin-bottom: 10px;
5469 5471
       margin-top: 6px;

+ 1 - 4
src/xt_pages/user/courseOfDisease.vue Visa fil

@@ -1034,15 +1034,12 @@
1034 1034
         this.table_current_index = row.index
1035 1035
       },
1036 1036
       print(){
1037
-        // if (this.table_current_index == -1) {
1038
-        //   this.$message.error('请选择要打印的病程')
1039
-        //   return
1040
-        // }
1041 1037
         if(this.ids.length == 0){
1042 1038
           this.$message.error('请选择要打印的病程')
1043 1039
           return
1044 1040
         }
1045 1041
         this.$router.push({ path: "/course/print?ids="+this.ids+"&patient_id="+this.patient_id});
1042
+        // this.$router.push({ path: "/physique/print?ids="+this.ids+"&patient_id="+this.patient_id});
1046 1043
       }
1047 1044
     }
1048 1045
   }

+ 229 - 0
src/xt_pages/user/physiqueprinting.vue Visa fil

@@ -0,0 +1,229 @@
1
+<template>
2
+    <div>
3
+        <div class="position">
4
+            <bread-crumb :crumbs='crumbs'></bread-crumb>
5
+            <el-button :loading="loading" size="small" icon="el-icon-printer" @click="printAction" type="primary">打印
6
+            </el-button>
7
+        </div>
8
+        <div class="app-container">
9
+            <div id="print_content">
10
+                <div class="print_page_main_content">
11
+                    
12
+                    <h1 style="text-align: center; padding-top:12px;">{{orgname}}血液净化治疗病历</h1> 
13
+                    <div style="border-bottom: 1px solid black;display: flex;padding-bottom: 10px;padding-top: 10px;">
14
+                        <div  style="flex:1;text-align: center;">
15
+                            姓名:
16
+                            <div  style="width: 120px;text-align: left;display:inline-block;">{{patient.name }}</div>
17
+                        </div>
18
+
19
+                        <div style="flex:1;text-align: center;" >
20
+                            病历号:
21
+                            <div  style="width: 120px;text-align: left;display:inline-block;">
22
+                                {{patient.disease_no?patient.disease_no:"/"}}
23
+                            </div>
24
+                        </div>
25
+
26
+                        <div style="flex:1;text-align: center;" >
27
+                           病区-床号:
28
+                            <div  style="width: 120px;text-align: left;display:inline-block;">
29
+                                {{patient.ward}}-{{patient.bed_no}}
30
+                            </div>
31
+                        </div>
32
+
33
+                        <div  style="flex:1;text-align: center;">
34
+                           接收日期:
35
+                            <div style="width: 100px;text-align: left;display:inline-block;">
36
+                                {{patient.date}}
37
+                            </div>
38
+                        </div>
39
+                    </div>
40
+
41
+                    <div style="display: flex; justify-self: start;margin-top: 5px ;">
42
+                        <div style="flex: 1;">性别:{{information.sex}}</div>
43
+                        <div style="flex: 1;">年龄:{{information.age}}</div>
44
+                        <div style="flex: 1;">出生日期:{{information.birthday}}</div>
45
+                    </div>
46
+                    <div style="display: flex; justify-self: start; margin-top: 5px ;">
47
+                        <div style="flex: 1;">身份证号:{{information.id_number}}</div>
48
+                        <div style="flex: 1;">病人来源:{{information.patient_source}}</div>
49
+                        <div style="flex: 1;">透析号:{{information.dialysis_num}}</div>
50
+                    </div>
51
+                    <div style="display: flex; justify-self: start; margin-top: 5px ;">
52
+                        <div style="flex: 1;">首次透析日期:{{information.first_date}}</div>
53
+                        <div style="flex: 1;">血型:{{information.blood_type}}</div>
54
+                        <div style="flex: 1;">报销方式:{{information.reimbursement}}</div>
55
+                    </div>
56
+                    <div style="display: flex; justify-self: start; margin-top: 5px ;">
57
+                        <div style="flex: 1;">工作单位:{{information.work_unit}}</div>
58
+                        <div style="flex: 1;">联系电话:{{information.contact_number}}</div>
59
+                        <div style="flex: 1;">家庭住址:{{information.home_address}}</div>
60
+                    </div>
61
+                    <div style="display: flex; justify-self: start; margin-top: 5px ;">
62
+                        <div style="flex: 1;">肾移植史:{{information.transplantation}}</div>
63
+                        <div style="flex: 1;">腹膜透析史:{{information.peritoneum}}</div>
64
+                        <div style="flex: 1;">过敏药物:{{information.allergy_drug}}</div>
65
+                    </div>
66
+
67
+                    <h3 style="text-align: center; margin: 20px 0px;">病史内容</h3>
68
+                    <div>
69
+                        <div>主诉:</div>
70
+                        <div>{{ medical_history.chief_complaint }}</div>
71
+                        <div>现病史:</div>
72
+                        <div>{{ medical_history.present_disease }}</div>
73
+                        <div>既往史:</div>
74
+                        <div>{{ medical_history.past }}</div>
75
+                        <div>个人史:</div>
76
+                        <div>{{ medical_history.personal }}</div>
77
+                        <div>婚育史:</div>
78
+                        <div>{{ medical_history.marriage }}</div>
79
+                        <div>家族史:</div>
80
+                        <div>{{ medical_history.family }}</div>
81
+                    </div>
82
+                    <h3 style="text-align: center; margin: 30px 0px 10px 0px;">体格检查</h3>
83
+                    <div>
84
+                        <div style="display: flex; justify-self: start;">
85
+                            <div style="flex:1;text-align: center;">T: {{physique.temperature}}℃</div>
86
+                            <div style="flex:1;text-align: center;">P:{{ physique.heartbeat }}次/分</div>
87
+                            <div style="flex:1;text-align: center;">R:{{ physique.R }}次/分</div>
88
+                            <div style="flex:1;text-align: center;">Bp:{{ physique.Bp }}mmHg</div>
89
+                        </div>
90
+                        <div style="margin-top: 5px;">
91
+                            无贫血容貌,自主体位,无浮肿,出血点/瘀斑/血肿:无,发育正常,营养良好,神志:清楚
92
+                            {{ physique.anemia }}
93
+                        </div>
94
+                        <div style="margin-top: 5px;">
95
+                            <span style="font-weight: bold;">皮肤黏膜</span>:
96
+                            {{ physique.cutaneous }}
97
+                        </div>
98
+                        <div style="margin-top: 5px;">
99
+                            <span style="font-weight: bold;">淋巴结</span>:
100
+                            {{ physique.lymph_node }}
101
+                        </div>
102
+                        <div style="margin-top: 5px;">
103
+                            <span style="font-weight: bold;">头部</span>:
104
+                            {{ physique.head }}
105
+                        </div>
106
+                        <div style="margin-top: 5px;">
107
+                            <span style="font-weight: bold;">颈部</span>:    
108
+                            {{ physique.neck }}
109
+                        </div>
110
+                        <div style="margin-top: 5px;">
111
+                            <span style="font-weight: bold;">肺脏</span>:
112
+                            {{ physique.lung }}
113
+                        </div>
114
+                        <div style="margin-top: 5px;">
115
+                            <span style="font-weight: bold;">心脏</span>:
116
+                            {{ physique.heart }}
117
+                        </div>
118
+                        <div style="margin-top: 5px;">
119
+                            <span style="font-weight: bold;">腹部</span>:
120
+                            {{ physique.abdomen }}
121
+                        </div>
122
+                        <div style="margin-top: 5px;">
123
+                            <span style="font-weight: bold;">其他</span>:
124
+                             {{ physique.other }}
125
+                        </div>
126
+                    </div>
127
+
128
+                    <div style="margin-top: 30px;">
129
+                        <span style="font-weight: bold; display: block;">初步诊断:</span>
130
+                        {{ diagnosis }}                       
131
+                    </div>
132
+                </div>
133
+                
134
+                
135
+            </div>
136
+        </div>
137
+    </div>
138
+</template>
139
+
140
+<script>
141
+import BreadCrumb from '@/xt_pages/components/bread-crumb'
142
+import print from "print-js";
143
+export default {
144
+    name:'physiquePrinting',
145
+    data() {
146
+        return {
147
+          crumbs: [
148
+            { path: false, name: '病人管理' },
149
+            { path: false, name: '病程打印' }
150
+          ],  
151
+          loading: false,
152
+          orgname:'',
153
+          patient:{
154
+            name:'',
155
+            disease_no:'',
156
+            ward:'',
157
+            bed_no:'',
158
+            date:'',
159
+          },
160
+          information:{
161
+            sex:'',
162
+            age:'',
163
+            birthday:'',
164
+            id_number:'',
165
+            patient_source:'',
166
+            dialysis_num:'',
167
+            first_date:'',
168
+            blood_type:'',
169
+            reimbursement:'',
170
+            work_unit:'',
171
+            contact_number:'',
172
+            home_address:'',
173
+            transplantation:'',
174
+            peritoneum:'',
175
+            allergy_drug:'',
176
+          },
177
+          medical_history:{
178
+            chief_complaint:'',
179
+            present_disease:'',
180
+            past:'',
181
+            personal:'',
182
+            marriage:'',
183
+            family:'',
184
+          },
185
+          physique:{
186
+            temperature:'',
187
+            heartbeat:'',
188
+            R:'',
189
+            Bp:'',
190
+            anemia:'',
191
+            cutaneous:'',
192
+            lymph_node:'',
193
+            head:'',
194
+            neck:'',
195
+            lung:'',
196
+            heart:'',
197
+            abdomen:'',
198
+            other:''
199
+          },
200
+          diagnosis:'',
201
+        }
202
+    },
203
+    components: {
204
+      BreadCrumb
205
+    },
206
+    methods: {
207
+        printAction: function () {
208
+            const style = '@media print {.printP div{margin-bottom:5px;} .option_panel { margin: 0 5px 0 0; } .option_panel .check_box_panel { white-space: nowrap; outline: none; display: inline-block; line-height: 1; position: relative; vertical-align: middle; } .dialysis-print-order .order-title{margin:auto;font-weight:600;text-align:center;font-size:22px;padding:10px}.option_panel .check_box_panel .check_box { display: inline-block; position: relative; border: 1px solid #000; box-sizing: border-box; width: 14px; height: 12px; background-color: #fff; } .check_box_panel .did_checked::after { content: "√"; font-size: 15px; } .print_page_main_content {background-color: white;width: 960px;margin: 0 auto 50px;padding: 0 0 0 0; page-break-after: always;}.print_page_main_content .order-yy-name {margin: auto;text-align: center;font-size: 20px;letter-spacing: 5px;}.print_page_main_content .order_title {text-align: center;font-size: 23px; line-height: 50px;font-weight: 500;} .row {font-size: 20px;line-height: 20px;padding: 5px 0;}.inline_block { display: inline-block;}.under_line_two {display: inline-block;border-bottom: 1px solid #999;text-align: left;white-space: nowrap;width: 50%;}.under_line {display: inline-block;border-bottom: 1px solid #999;text-align: center;white-space: nowrap; width: 50%;}.flex {display: -webkit-box;display: -moz-box; display: -ms-flexbox; display: -webkit-flex;display: flex;align-items: center;-webkit-align-items: center;box-align: center;-moz-box-align: center;-webkit-box-align: center;text-align: center;-webkit-justify-content: space-between;justify-content: space-between;-moz-box-pack: space-between;-webkit--moz-box-pack: space-between;box-pack: space-between;}.print_page_main_content .proj_table {width: 100%;border: 1px solid;border-collapse: collapse;padding: 2px;}.print_page_main_content .proj_table tbody tr td {border: 1px solid;font-size: 16px;padding: 5px 8px;line-height: 30px;}.print_page_main_content .proj_table .inside_table {width: 100%;border: hidden; border-collapse: collapse;}.print_page_main_content .proj_table .inside_table tr td {border: 1px solid; text-align: center;font-size: 14px;padding: 6px 5px;line-height: 16px;}.print-table-no {width: 100%;text-align: center;border-collapse: collapse;font-size: 14px;}.es-img {height: 30px;}.advice-name {text-align: left !important;line-height: 16px !important;}.advice-children {display: flex;}}.margin-bottom-300 {margin-bottom:450px;}.margin-bottom-600 {margin-bottom:600px;}.margin-bottom-900 {margin-bottom:1000px;}.print-yema{ position: absolute;top: 920px;left: 50%;} .print-yema2{ position: absolute;top: 400px;left: 50%;}.print-yema3{position: absolute;top: 1230px;left: 50%;}.print-yema4{position: absolute;top:1050px;left: 50%;}.print-yema5{position: absolute;top:1370px;left: 50%;}.check_box{width:15px !important;height:15px !important;}.did_checke::after {font-size: 8px;margin-left: 2px;margin-top: 12px !important;position: absolute;}'
209
+            printJS({
210
+                printable: 'print_content',
211
+                type: 'html',
212
+                documentTitle: '  ',
213
+                style: style,
214
+                scanStyles: false
215
+            })
216
+        },
217
+    }
218
+}
219
+</script>
220
+<style scoped>
221
+.print_page_main_content {
222
+    background-color: white;
223
+    width: 960px;
224
+    margin: 0 auto 50px;
225
+    padding: 0 0 0 0;
226
+    page-break-after: always;
227
+}
228
+
229
+</style>

+ 80 - 2
src/xt_pages/workforce/components/tableData.vue Visa fil

@@ -74,7 +74,85 @@
74 74
       </div>
75 75
     </div>
76 76
 
77
-    <el-dialog :visible.sync="searchTableVisible" width="80%" class="eldialog">
77
+    <!-- <el-dialog :visible.sync="searchTableVisible" width="80%" class="eldialog">
78
+      <div style="position: relative;">
79
+        <el-table
80
+          :data="schedulePatients"
81
+          :header-cell-style="{
82
+            backgroundColor: 'rgb(245, 247, 250)',
83
+            color: '#606266'
84
+          }"
85
+          :row-style="{ color: '#303133' }"
86
+          style="width: 100%"
87
+          border
88
+        >
89
+          <el-table-column label="姓名" width="120">
90
+            <template slot-scope="scope">
91
+              {{ scope.row.patient }}
92
+            </template>
93
+          </el-table-column>
94
+          <el-table-column label="透析日期" width="200">
95
+            <template slot-scope="scope">
96
+              {{ getDialysisDate(scope.row) }}
97
+            </template>
98
+          </el-table-column>
99
+          <el-table-column label="分区">
100
+            <template slot-scope="scope">
101
+              {{ scope.row.zone.name }}
102
+            </template>
103
+          </el-table-column>
104
+          <el-table-column label="班次" width="80">
105
+            <template slot-scope="scope">
106
+              {{ getSchedulesType(scope.row.schedule_type,scope.row) }}
107
+            </template>
108
+          </el-table-column>
109
+          <el-table-column label="机号" width="80">
110
+            <template slot-scope="scope">
111
+              {{ scope.row.number.number }}
112
+            </template>
113
+          </el-table-column>
114
+          <el-table-column label="透析模式" width="100">
115
+            <template slot-scope="scope">
116
+              {{ scope.row.mode.name }}
117
+            </template>
118
+          </el-table-column>
119
+          <el-table-column label="操作" align="center" width="300">
120
+            <template slot-scope="scope">
121
+              <span v-if="now_time <=scope.row.schedule_date">
122
+                <el-button
123
+                size="mini"
124
+                type="primary"
125
+                @click="CancelSchedule(scope.row.id)"
126
+              >
127
+                取消排班
128
+              </el-button>
129
+              <el-button
130
+                size="mini"
131
+                type="primary"
132
+                @click="changeMachineNumber(scope.$index, scope.row)"
133
+              >
134
+                调整机号
135
+              </el-button>
136
+              <el-button
137
+                size="mini"
138
+                type="primary"
139
+                @click="changeMode(scope.$index, scope.row)"
140
+              >
141
+                调整模式
142
+              </el-button>
143
+              </span>
144
+            </template>
145
+          </el-table-column>
146
+        </el-table>
147
+      </div>
148
+    </el-dialog> -->
149
+
150
+    <el-dialog
151
+      title="提示"
152
+      :visible.sync="searchTableVisible"
153
+      width="80%"
154
+      
155
+      class="eldialog">
78 156
       <div style="position: relative;">
79 157
         <el-table
80 158
           :data="schedulePatients"
@@ -146,7 +224,7 @@
146 224
         </el-table>
147 225
       </div>
148 226
     </el-dialog>
149
-    
227
+
150 228
     <div class="center-tab">
151 229
       <el-table
152 230
         :row-style="{ color: '#303133' }"