Explorar el Código

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

28169 hace 2 años
padre
commit
7335399c29

+ 12 - 1
src/router/modules/patient.js Ver fichero

205
     }
205
     }
206
   },
206
   },
207
   {
207
   {
208
-    path: '/course/print',
208
+    path: '/course/print',//coursePrint
209
     component: () => import('@/xt_pages/user/coursePrint'),
209
     component: () => import('@/xt_pages/user/coursePrint'),
210
     hidden: true,
210
     hidden: true,
211
     is_menu: false,
211
     is_menu: false,
215
       noCache: true
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
     path: '/patient/patient/templateSummary/print',
230
     path: '/patient/patient/templateSummary/print',
220
     component: () => import('@/xt_pages/user/templateSummaryPrint'),
231
     component: () => import('@/xt_pages/user/templateSummaryPrint'),

+ 120 - 48
src/xt_pages/device/airDisinfectTwo.vue Ver fichero

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

+ 106 - 13
src/xt_pages/device/objectTableDisinfectTwo.vue Ver fichero

142
                       <el-input v-model="form.first_disinfection_water"></el-input>
142
                       <el-input v-model="form.first_disinfection_water"></el-input>
143
                   </el-form-item>
143
                   </el-form-item>
144
                   <el-form-item label="消毒时间(h)" label-width="110px">
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
                   </el-form-item>
146
                   </el-form-item>
147
                   <el-form-item label="开始时间" label-width="110px">
147
                   <el-form-item label="开始时间" label-width="110px">
148
                     <el-date-picker
148
                     <el-date-picker
151
                         value-format="yyyy-MM-dd HH:mm"
151
                         value-format="yyyy-MM-dd HH:mm"
152
                         placeholder="选择时间"
152
                         placeholder="选择时间"
153
                         v-model="form.first_start_time"
153
                         v-model="form.first_start_time"
154
+                        @change="firststartime"
154
                         style="width:100%;"
155
                         style="width:100%;"
155
                     ></el-date-picker>
156
                     ></el-date-picker>
156
                   </el-form-item>
157
                   </el-form-item>
161
                         value-format="yyyy-MM-dd HH:mm"
162
                         value-format="yyyy-MM-dd HH:mm"
162
                         placeholder="选择时间"
163
                         placeholder="选择时间"
163
                         v-model="form.first_end_time"
164
                         v-model="form.first_end_time"
165
+                        @change="firstendtime"
164
                         style="width:100%;"
166
                         style="width:100%;"
165
                     ></el-date-picker>
167
                     ></el-date-picker>
166
                   </el-form-item>
168
                   </el-form-item>
202
                       <el-input v-model="form.sencond_disinfection_water"></el-input>
204
                       <el-input v-model="form.sencond_disinfection_water"></el-input>
203
                   </el-form-item>
205
                   </el-form-item>
204
                   <el-form-item label="消毒时间(h)" label-width="110px">
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
                   </el-form-item>
208
                   </el-form-item>
207
                   <el-form-item label="开始时间"  label-width="110px">
209
                   <el-form-item label="开始时间"  label-width="110px">
208
                     <el-date-picker
210
                     <el-date-picker
211
                         value-format="yyyy-MM-dd HH:mm"
213
                         value-format="yyyy-MM-dd HH:mm"
212
                         placeholder="选择时间"
214
                         placeholder="选择时间"
213
                         v-model="form.sencond_start_time"
215
                         v-model="form.sencond_start_time"
216
+                        @change="sencondstarttime"
214
                         style="width:100%;"
217
                         style="width:100%;"
215
                     ></el-date-picker>
218
                     ></el-date-picker>
216
                   </el-form-item> 
219
                   </el-form-item> 
221
                         value-format="yyyy-MM-dd HH:mm"
224
                         value-format="yyyy-MM-dd HH:mm"
222
                         placeholder="选择时间"
225
                         placeholder="选择时间"
223
                         v-model="form.sencond_end_time"
226
                         v-model="form.sencond_end_time"
227
+                        @change="sencondendtime"
224
                         style="width:100%;"
228
                         style="width:100%;"
225
                     ></el-date-picker>
229
                     ></el-date-picker>
226
                   </el-form-item>
230
                   </el-form-item>
262
                       <el-input v-model="form.third_disinfection_water"></el-input>
266
                       <el-input v-model="form.third_disinfection_water"></el-input>
263
                   </el-form-item>
267
                   </el-form-item>
264
                   <el-form-item label="消毒时间(h)" label-width="110px">
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
                   </el-form-item>
270
                   </el-form-item>
267
                   <el-form-item label="开始时间"  label-width="110px">
271
                   <el-form-item label="开始时间"  label-width="110px">
268
                     <el-date-picker
272
                     <el-date-picker
271
                         value-format="yyyy-MM-dd HH:mm"
275
                         value-format="yyyy-MM-dd HH:mm"
272
                         placeholder="选择时间"
276
                         placeholder="选择时间"
273
                         v-model="form.third_start_time"
277
                         v-model="form.third_start_time"
278
+                        @change="thirdstarttime"
274
                         style="width:100%;"
279
                         style="width:100%;"
275
                     ></el-date-picker>
280
                     ></el-date-picker>
276
                   </el-form-item>
281
                   </el-form-item>
281
                         value-format="yyyy-MM-dd HH:mm"
286
                         value-format="yyyy-MM-dd HH:mm"
282
                         placeholder="选择时间"
287
                         placeholder="选择时间"
283
                         v-model="form.third_end_time"
288
                         v-model="form.third_end_time"
289
+                        @change="thirdendtime"
284
                         style="width:100%;"
290
                         style="width:100%;"
285
                     ></el-date-picker>
291
                     ></el-date-picker>
286
                   </el-form-item>
292
                   </el-form-item>
322
                       <el-input v-model="form.fourth_disinfection_water"></el-input>
328
                       <el-input v-model="form.fourth_disinfection_water"></el-input>
323
                   </el-form-item>
329
                   </el-form-item>
324
                   <el-form-item label="消毒时间(h)" label-width="110px">
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
                   </el-form-item>
332
                   </el-form-item>
327
                   <el-form-item label="开始时间"  label-width="110px">
333
                   <el-form-item label="开始时间"  label-width="110px">
328
                     <el-date-picker
334
                     <el-date-picker
331
                         value-format="yyyy-MM-dd HH:mm"
337
                         value-format="yyyy-MM-dd HH:mm"
332
                         placeholder="选择时间"
338
                         placeholder="选择时间"
333
                         v-model="form.fourth_start_time"
339
                         v-model="form.fourth_start_time"
340
+                        @change="fourthstarttime"
334
                         style="width:100%;"
341
                         style="width:100%;"
335
                     ></el-date-picker>
342
                     ></el-date-picker>
336
                   </el-form-item>
343
                   </el-form-item>
341
                         value-format="yyyy-MM-dd HH:mm"
348
                         value-format="yyyy-MM-dd HH:mm"
342
                         placeholder="选择时间"
349
                         placeholder="选择时间"
343
                         v-model="form.fourth_end_time"
350
                         v-model="form.fourth_end_time"
351
+                        @change="fourthendtime"
344
                         style="width:100%;"
352
                         style="width:100%;"
345
                     ></el-date-picker>
353
                     ></el-date-picker>
346
                   </el-form-item>
354
                   </el-form-item>
382
                       <el-input v-model="form.last_disinfection_water"></el-input>
390
                       <el-input v-model="form.last_disinfection_water"></el-input>
383
                   </el-form-item>
391
                   </el-form-item>
384
                   <el-form-item label="消毒时间(h)" label-width="110px">
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
                   </el-form-item>
394
                   </el-form-item>
387
                   <el-form-item label="开始时间"  label-width="110px">
395
                   <el-form-item label="开始时间"  label-width="110px">
388
                     <el-date-picker
396
                     <el-date-picker
391
                         value-format="yyyy-MM-dd HH:mm"
399
                         value-format="yyyy-MM-dd HH:mm"
392
                         placeholder="选择时间"
400
                         placeholder="选择时间"
393
                         v-model="form.last_start_time"
401
                         v-model="form.last_start_time"
402
+                        @change="laststarttime"
394
                         style="width:100%;"
403
                         style="width:100%;"
395
                     ></el-date-picker>
404
                     ></el-date-picker>
396
                   </el-form-item>
405
                   </el-form-item>
401
                         value-format="yyyy-MM-dd HH:mm"
410
                         value-format="yyyy-MM-dd HH:mm"
402
                         placeholder="选择时间"
411
                         placeholder="选择时间"
403
                         v-model="form.last_end_time"
412
                         v-model="form.last_end_time"
413
+                        @change="lastendtime"
404
                         style="width:100%;"
414
                         style="width:100%;"
405
                     ></el-date-picker>
415
                     ></el-date-picker>
406
                   </el-form-item>
416
                   </el-form-item>
446
           width="1000px"
456
           width="1000px"
447
           title="编辑物表消毒表"
457
           title="编辑物表消毒表"
448
           :visible.sync="editDialogFormVisible">
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
                   <div style="width: 100%;">
460
                   <div style="width: 100%;">
451
                     <el-form-item label="创建日期" label-width="110px" required prop="record_date">
461
                     <el-form-item label="创建日期" label-width="110px" required prop="record_date">
452
                         <el-date-picker
462
                         <el-date-picker
465
                       <el-input v-model="form.first_disinfection_water"></el-input>
475
                       <el-input v-model="form.first_disinfection_water"></el-input>
466
                   </el-form-item>
476
                   </el-form-item>
467
                   <el-form-item label="消毒时间(h)" label-width="110px">
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
                   </el-form-item>
479
                   </el-form-item>
470
                   <el-form-item label="开始时间" label-width="110px">
480
                   <el-form-item label="开始时间" label-width="110px">
471
                     <el-date-picker
481
                     <el-date-picker
474
                         value-format="yyyy-MM-dd HH:mm"
484
                         value-format="yyyy-MM-dd HH:mm"
475
                         placeholder="选择时间"
485
                         placeholder="选择时间"
476
                         v-model="form.first_start_time"
486
                         v-model="form.first_start_time"
487
+                        @change="firststartime"
477
                         style="width:100%;"
488
                         style="width:100%;"
478
                     ></el-date-picker>
489
                     ></el-date-picker>
479
                   </el-form-item>
490
                   </el-form-item>
484
                         value-format="yyyy-MM-dd HH:mm"
495
                         value-format="yyyy-MM-dd HH:mm"
485
                         placeholder="选择时间"
496
                         placeholder="选择时间"
486
                         v-model="form.first_end_time"
497
                         v-model="form.first_end_time"
498
+                        @change="firstendtime"
487
                         style="width:100%;"
499
                         style="width:100%;"
488
                     ></el-date-picker>
500
                     ></el-date-picker>
489
                   </el-form-item>
501
                   </el-form-item>
525
                       <el-input v-model="form.sencond_disinfection_water"></el-input>
537
                       <el-input v-model="form.sencond_disinfection_water"></el-input>
526
                   </el-form-item>
538
                   </el-form-item>
527
                   <el-form-item label="消毒时间(h)" label-width="110px">
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
                   </el-form-item>
541
                   </el-form-item>
530
                   <el-form-item label="开始时间"  label-width="110px">
542
                   <el-form-item label="开始时间"  label-width="110px">
531
                     <el-date-picker
543
                     <el-date-picker
534
                         value-format="yyyy-MM-dd HH:mm"
546
                         value-format="yyyy-MM-dd HH:mm"
535
                         placeholder="选择时间"
547
                         placeholder="选择时间"
536
                         v-model="form.sencond_start_time"
548
                         v-model="form.sencond_start_time"
549
+                        @change="sencondstarttime"
537
                         style="width:100%;"
550
                         style="width:100%;"
538
                     ></el-date-picker>
551
                     ></el-date-picker>
539
                   </el-form-item> 
552
                   </el-form-item> 
544
                         value-format="yyyy-MM-dd HH:mm"
557
                         value-format="yyyy-MM-dd HH:mm"
545
                         placeholder="选择时间"
558
                         placeholder="选择时间"
546
                         v-model="form.sencond_end_time"
559
                         v-model="form.sencond_end_time"
560
+                        @change="sencondendtime"
547
                         style="width:100%;"
561
                         style="width:100%;"
548
                     ></el-date-picker>
562
                     ></el-date-picker>
549
                   </el-form-item>
563
                   </el-form-item>
585
                       <el-input v-model="form.third_disinfection_water"></el-input>
599
                       <el-input v-model="form.third_disinfection_water"></el-input>
586
                   </el-form-item>
600
                   </el-form-item>
587
                   <el-form-item label="消毒时间(h)" label-width="110px">
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
                   </el-form-item>
603
                   </el-form-item>
590
                   <el-form-item label="开始时间"  label-width="110px">
604
                   <el-form-item label="开始时间"  label-width="110px">
591
                     <el-date-picker
605
                     <el-date-picker
594
                         value-format="yyyy-MM-dd HH:mm"
608
                         value-format="yyyy-MM-dd HH:mm"
595
                         placeholder="选择时间"
609
                         placeholder="选择时间"
596
                         v-model="form.third_start_time"
610
                         v-model="form.third_start_time"
611
+                        @change="thirdstarttime"
597
                         style="width:100%;"
612
                         style="width:100%;"
598
                     ></el-date-picker>
613
                     ></el-date-picker>
599
                   </el-form-item>
614
                   </el-form-item>
604
                         value-format="yyyy-MM-dd HH:mm"
619
                         value-format="yyyy-MM-dd HH:mm"
605
                         placeholder="选择时间"
620
                         placeholder="选择时间"
606
                         v-model="form.third_end_time"
621
                         v-model="form.third_end_time"
622
+                        @change="thirdendtime"
607
                         style="width:100%;"
623
                         style="width:100%;"
608
                     ></el-date-picker>
624
                     ></el-date-picker>
609
                   </el-form-item>
625
                   </el-form-item>
645
                       <el-input v-model="form.fourth_disinfection_water"></el-input>
661
                       <el-input v-model="form.fourth_disinfection_water"></el-input>
646
                   </el-form-item>
662
                   </el-form-item>
647
                   <el-form-item label="消毒时间(h)" label-width="110px">
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
                   </el-form-item>
665
                   </el-form-item>
650
                   <el-form-item label="开始时间"  label-width="110px">
666
                   <el-form-item label="开始时间"  label-width="110px">
651
                     <el-date-picker
667
                     <el-date-picker
654
                         value-format="yyyy-MM-dd HH:mm"
670
                         value-format="yyyy-MM-dd HH:mm"
655
                         placeholder="选择时间"
671
                         placeholder="选择时间"
656
                         v-model="form.fourth_start_time"
672
                         v-model="form.fourth_start_time"
673
+                        @change="fourthstarttime"
657
                         style="width:100%;"
674
                         style="width:100%;"
658
                     ></el-date-picker>
675
                     ></el-date-picker>
659
                   </el-form-item>
676
                   </el-form-item>
664
                         value-format="yyyy-MM-dd HH:mm"
681
                         value-format="yyyy-MM-dd HH:mm"
665
                         placeholder="选择时间"
682
                         placeholder="选择时间"
666
                         v-model="form.fourth_end_time"
683
                         v-model="form.fourth_end_time"
684
+                        @change="fourthendtime"
667
                         style="width:100%;"
685
                         style="width:100%;"
668
                     ></el-date-picker>
686
                     ></el-date-picker>
669
                   </el-form-item>
687
                   </el-form-item>
705
                       <el-input v-model="form.last_disinfection_water"></el-input>
723
                       <el-input v-model="form.last_disinfection_water"></el-input>
706
                   </el-form-item>
724
                   </el-form-item>
707
                   <el-form-item label="消毒时间(h)" label-width="110px">
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
                   </el-form-item>
727
                   </el-form-item>
710
                   <el-form-item label="开始时间"  label-width="110px">
728
                   <el-form-item label="开始时间"  label-width="110px">
711
                     <el-date-picker
729
                     <el-date-picker
714
                         value-format="yyyy-MM-dd HH:mm"
732
                         value-format="yyyy-MM-dd HH:mm"
715
                         placeholder="选择时间"
733
                         placeholder="选择时间"
716
                         v-model="form.last_start_time"
734
                         v-model="form.last_start_time"
735
+                        @change="laststarttime"
717
                         style="width:100%;"
736
                         style="width:100%;"
718
                     ></el-date-picker>
737
                     ></el-date-picker>
719
                   </el-form-item>
738
                   </el-form-item>
724
                         value-format="yyyy-MM-dd HH:mm"
743
                         value-format="yyyy-MM-dd HH:mm"
725
                         placeholder="选择时间"
744
                         placeholder="选择时间"
726
                         v-model="form.last_end_time"
745
                         v-model="form.last_end_time"
746
+                        @change="lastendtime"
727
                         style="width:100%;"
747
                         style="width:100%;"
728
                     ></el-date-picker>
748
                     ></el-date-picker>
729
                   </el-form-item>
749
                   </el-form-item>
927
         this.getAllDoctorList()
947
         this.getAllDoctorList()
928
         this.getObjectTableDisInfectList()
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
       methods:{
985
       methods:{
931
-    
932
       printCard() {
986
       printCard() {
933
         this.hiddenShow = true;
987
         this.hiddenShow = true;
934
         var ptime = Math.round(new Date().getTime() / 1000);
988
         var ptime = Math.round(new Date().getTime() / 1000);
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 Ver fichero

56
                     上机前病情:
56
                     上机前病情:
57
                     {{ predialysis.symptom_before_dialysis ? predialysis.symptom_before_dialysis : "/" }}
57
                     {{ predialysis.symptom_before_dialysis ? predialysis.symptom_before_dialysis : "/" }}
58
                   </div>
58
                   </div>
59
-                  
59
+
60
                 </td>
60
                 </td>
61
               </tr>
61
               </tr>
62
               <tr>
62
               <tr>
155
                   </div>
155
                   </div>
156
                   <div style="margin-left:70px ; display: inline-block;">
156
                   <div style="margin-left:70px ; display: inline-block;">
157
                     医师签名:
157
                     医师签名:
158
-                  
158
+
159
                     <span v-if="setAdminUserES(prescription.creater) == ''">
159
                     <span v-if="setAdminUserES(prescription.creater) == ''">
160
                       {{ getAdminUser(prescription.creater) }}
160
                       {{ getAdminUser(prescription.creater) }}
161
                     </span>
161
                     </span>
276
                   </div>
276
                   </div>
277
                 </td>
277
                 </td>
278
               </tr>
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
                   <span style="font-weight: bold;"
281
                   <span style="font-weight: bold;"
282
                     >治&nbsp;疗&nbsp;过&nbsp;程&nbsp;记&nbsp;录</span
282
                     >治&nbsp;疗&nbsp;过&nbsp;程&nbsp;记&nbsp;录</span
283
                   >
283
                   >
285
               </tr>
285
               </tr>
286
               <tr>
286
               <tr>
287
                 <td colspan="3">
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
                       </tr>
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
                         <td >护士签名</td>
309
                         <td >护士签名</td>
310
                       </tr>
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
                             <span v-if="getTime(monitor.operate_time) != ''">
315
                             <span v-if="getTime(monitor.operate_time) != ''">
317
                             {{
316
                             {{
318
                                 monitor.transmembrane_pressure
317
                                 monitor.transmembrane_pressure
322
                             </span>
321
                             </span>
323
                         </td >
322
                         </td >
324
 
323
 
325
-                        <td style=" border-right: 1px solid gray;">
324
+                        <td style=" ">
326
                             <span v-if="getTime(monitor.operate_time) != ''">
325
                             <span v-if="getTime(monitor.operate_time) != ''">
327
                                 &nbsp;{{
326
                                 &nbsp;{{
328
                                     monitor.venous_pressure ? monitor.venous_pressure : ""
327
                                     monitor.venous_pressure ? monitor.venous_pressure : ""
330
                             </span>
329
                             </span>
331
                         </td>
330
                         </td>
332
 
331
 
333
-                        <td style=" border-right: 1px solid gray;">
332
+                        <td style=" ">
334
                             <span v-if="getTime(monitor.operate_time) != ''">
333
                             <span v-if="getTime(monitor.operate_time) != ''">
335
                             {{
334
                             {{
336
                                 monitor.blood_flow_volume
335
                                 monitor.blood_flow_volume
340
                             </span>
339
                             </span>
341
                         </td>
340
                         </td>
342
 
341
 
343
-                        <td style=" border-right: 1px solid gray;">
342
+                        <td style=" ">
344
                             <span v-if="getTime(monitor.operate_time) != ''&&monindex == 0 ">
343
                             <span v-if="getTime(monitor.operate_time) != ''&&monindex == 0 ">
345
                             {{'/'}}
344
                             {{'/'}}
346
                             </span>
345
                             </span>
350
                             <span v-else>{{monitor.ultrafiltration_volume? monitor.ultrafiltration_volume: ""}}</span>
349
                             <span v-else>{{monitor.ultrafiltration_volume? monitor.ultrafiltration_volume: ""}}</span>
351
                         </td>
350
                         </td>
352
 
351
 
353
-                        <td style=" border-right: 1px solid gray;">
352
+                        <td style=" ">
354
                             <span v-if="getTime(monitor.operate_time) != ''">
353
                             <span v-if="getTime(monitor.operate_time) != ''">
355
                                 {{ monitor.temperature ? monitor.temperature : "" }}
354
                                 {{ monitor.temperature ? monitor.temperature : "" }}
356
                             </span>
355
                             </span>
357
                         </td>
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
                             <span v-if="getTime(monitor.operate_time) != ''">
359
                             <span v-if="getTime(monitor.operate_time) != ''">
482
                                 {{
360
                                 {{
483
                                   monitor.pulse_frequency ? monitor.pulse_frequency : ""
361
                                   monitor.pulse_frequency ? monitor.pulse_frequency : ""
485
                             </span>
363
                             </span>
486
                         </td>
364
                         </td>
487
 
365
 
488
-                        <td style=" border-right: 1px solid gray;">
366
+                        <td style=" ">
489
                             <span v-if="getTime(monitor.operate_time) != ''">
367
                             <span v-if="getTime(monitor.operate_time) != ''">
490
                                 {{ monitor.breathing_rate ? monitor.breathing_rate : "" }}
368
                                 {{ monitor.breathing_rate ? monitor.breathing_rate : "" }}
491
                             </span>
369
                             </span>
492
                         </td>
370
                         </td>
493
 
371
 
494
-                        <td style=" border-right: 1px solid gray;">
372
+                        <td style=" ">
495
                             <span v-if="getTime(monitor.operate_time) != ''">
373
                             <span v-if="getTime(monitor.operate_time) != ''">
496
                                 {{
374
                                 {{
497
                                     monitor.systolic_blood_pressure
375
                                     monitor.systolic_blood_pressure
502
                                     ? monitor.diastolic_blood_pressure
380
                                     ? monitor.diastolic_blood_pressure
503
                                     : ""
381
                                     : ""
504
                                 }}
382
                                 }}
505
-                                
383
+
506
                             </span>
384
                             </span>
507
                         </td>
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
                           <span style="word-break: break-all;word-wrap: break-word;">
389
                           <span style="word-break: break-all;word-wrap: break-word;">
512
-                            
390
+
513
                               {{ monitor.symptom }} &nbsp;{{ monitor.dispose }} &nbsp;{{monitor.result}}
391
                               {{ monitor.symptom }} &nbsp;{{ monitor.dispose }} &nbsp;{{monitor.result}}
514
                           </span>
392
                           </span>
515
                         </td>
393
                         </td>
545
                           />
423
                           />
546
                         </td>
424
                         </td>
547
                       </tr>
425
                       </tr>
426
+                    
548
                   </table>
427
                   </table>
549
                 </td>
428
                 </td>
550
-              </tr> -->
429
+              </tr>
430
+             
551
               <tr>
431
               <tr>
552
                 <td colspan="3">
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
                       <tr>
436
                       <tr>
556
-                      <td style="height: 20px;border-right: 1px solid gray;" width="110">
437
+                      <td style="height: 20px;" width="110">
557
                           <p style="height: 20px; line-height: 20px" >提交时间</p>
438
                           <p style="height: 20px; line-height: 20px" >提交时间</p>
558
                       </td>
439
                       </td>
559
-                    
560
-                      <td style="height: 20px; border-right: 1px solid gray;" width="350">
440
+
441
+                      <td style="height: 20px; " width="350">
561
                           <p style="height: 20px; line-height: 20px">医嘱执行记录</p>
442
                           <p style="height: 20px; line-height: 20px">医嘱执行记录</p>
562
                       </td>
443
                       </td>
563
-                      <td style="height: 20px; border-right: 1px solid gray;" width="130">
444
+                      <td style="height: 20px; " width="130">
564
                           <p style="height: 20px; line-height: 20px">执行时间</p>
445
                           <p style="height: 20px; line-height: 20px">执行时间</p>
565
                       </td>
446
                       </td>
566
-                  
567
-                      <td style="height: 20px; border-right: 1px solid gray;" width="110">
447
+
448
+                      <td style="height: 20px; " width="110">
568
                           <p style="height: 20px; line-height: 20px">执行</p>
449
                           <p style="height: 20px; line-height: 20px">执行</p>
569
                       </td>
450
                       </td>
570
-                      
571
-                      <td style="height: 20px; border-right: 1px solid gray;" width="150">
451
+
452
+                      <td style="height: 20px; " width="150">
572
                           <p style="height: 20px; line-height: 20px">上次透后体重</p>
453
                           <p style="height: 20px; line-height: 20px">上次透后体重</p>
573
                       </td>
454
                       </td>
574
                       <td style="height: 20px;" width="110">
455
                       <td style="height: 20px;" width="110">
575
                         {{ lastafterdialysis.weight_after.toFixed(2) }}kg
456
                         {{ lastafterdialysis.weight_after.toFixed(2) }}kg
576
                       </td>
457
                       </td>
577
                       </tr>
458
                       </tr>
578
-                      
459
+
579
                     </table>
460
                     </table>
580
                 </td>
461
                 </td>
581
               </tr>
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
                 <td colspan="3">
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
                         {{ getTime(advice.start_time, "{h}:{i}") }}
470
                         {{ getTime(advice.start_time, "{h}:{i}") }}
588
                       </td>
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
                         <span v-if="advice.parent_id > 0"></span>
474
                         <span v-if="advice.parent_id > 0"></span>
592
                         <span>{{ advice.advice_name }}</span>
475
                         <span>{{ advice.advice_name }}</span>
593
                         <span v-if="advice && advice.advice_desc">
476
                         <span v-if="advice && advice.advice_desc">
594
                           ({{ advice.advice_desc}}{{ advice.drug_spec_unit }})
477
                           ({{ advice.advice_desc}}{{ advice.drug_spec_unit }})
595
                         </span>
478
                         </span>
596
-                        <span v-if="advice.prescribing_number">&nbsp;&nbsp; 
479
+                        <span v-if="advice.prescribing_number">&nbsp;&nbsp;
597
                           {{ advice.prescribing_number}}{{ advice.prescribing_number_unit }}
480
                           {{ advice.prescribing_number}}{{ advice.prescribing_number_unit }}
598
                         </span>
481
                         </span>
599
                         <span v-if="advice.single_dose != 0">
482
                         <span v-if="advice.single_dose != 0">
607
                         </span>
490
                         </span>
608
                         <span>{{ advice.remark }}</span>
491
                         <span>{{ advice.remark }}</span>
609
                       </td>
492
                       </td>
610
-                  
611
-                      <td width="130" style="border-right: 1px solid gray;">
493
+
494
+                      <td width="130" style="">
612
                         {{ getTime(advice.execution_time, "{y}-{m}-{d} {h}:{i}") }}
495
                         {{ getTime(advice.execution_time, "{y}-{m}-{d} {h}:{i}") }}
613
                       </td>
496
                       </td>
614
-                      <td width="110" style="border-right: 1px solid gray;">
497
+                      <td width="110" style="">
615
                         <span
498
                         <span
616
                           v-if="setAdminUserES(advice.advice_doctor) == ''"
499
                           v-if="setAdminUserES(advice.advice_doctor) == ''"
617
                         >
500
                         >
624
                           srcset=""
507
                           srcset=""
625
                         />
508
                         />
626
                       </td>
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
                       <td v-if="advice_index === 0" width="110" >
511
                       <td v-if="advice_index === 0" width="110" >
630
                         {{predialysis.weight_before.toFixed(2) }}kg
512
                         {{predialysis.weight_before.toFixed(2) }}kg
631
                       </td>
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
                       <td v-if="advice_index === 1" width="110">
515
                       <td v-if="advice_index === 1" width="110">
634
                         {{
516
                         {{
635
                           assessmentafter.weight_after == 0 ||
517
                           assessmentafter.weight_after == 0 ||
636
                           predialysis.weight_before == 0
518
                           predialysis.weight_before == 0
637
-                            ? 0
519
+                            ? '0.00'
638
                             : (
520
                             : (
639
                                 predialysis.weight_before -
521
                                 predialysis.weight_before -
640
                                 assessmentafter.weight_after
522
                                 assessmentafter.weight_after
641
                               ).toFixed(2)
523
                               ).toFixed(2)
642
                         }}kg
524
                         }}kg
643
                       </td>
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
                       <td v-if="advice_index === 2" width="110">
527
                       <td v-if="advice_index === 2" width="110">
646
                         {{ predialysis.dry_weight.toFixed(2) }}kg
528
                         {{ predialysis.dry_weight.toFixed(2) }}kg
647
                       </td>
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
                       <td v-if="advice_index === 3" width="110">
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
                             patientInfo.total_dialysis +
533
                             patientInfo.total_dialysis +
659
                             patientInfo.user_sys_before_count >
534
                             patientInfo.user_sys_before_count >
661
                             ? (
536
                             ? (
662
                                 afterdialysis.weight_after - predialysis.dry_weight
537
                                 afterdialysis.weight_after - predialysis.dry_weight
663
                               ).toFixed(2)
538
                               ).toFixed(2)
664
-                            : 0
539
+                            : '0.00'
665
                           }}kg
540
                           }}kg
666
                       </td>
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
                       <td v-if="advice_index === 4" width="110">
544
                       <td v-if="advice_index === 4" width="110">
670
-                        
671
                         {{ afterdialysis.weight_after.toFixed(2) }}kg
545
                         {{ afterdialysis.weight_after.toFixed(2) }}kg
672
                       </td>
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
                       </td>
549
                       </td>
676
                       <td v-if="advice_index === 5" width="110">
550
                       <td v-if="advice_index === 5" width="110">
677
                         {{
551
                         {{
678
                           afterdialysis.weight_after == 0 || predialysis.weight_before == 0
552
                           afterdialysis.weight_after == 0 || predialysis.weight_before == 0
679
-                            ? 0
553
+                            ? '0.00'
680
                             : (
554
                             : (
681
                                 predialysis.weight_before - afterdialysis.weight_after
555
                                 predialysis.weight_before - afterdialysis.weight_after
682
                               ).toFixed(2)
556
                               ).toFixed(2)
683
                         }}kg
557
                         }}kg
684
                       </td>
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
                       <td v-if="advice_index > 5" width="110"></td>
560
                       <td v-if="advice_index > 5" width="110"></td>
687
                     </tr>
561
                     </tr>
688
                   </table>
562
                   </table>
696
                   <div style="display: inline-block; margin-left: 40px;">
570
                   <div style="display: inline-block; margin-left: 40px;">
697
                     姓别:{{ patientInfo_gender_1 == true ? "男" : "女" }}
571
                     姓别:{{ patientInfo_gender_1 == true ? "男" : "女" }}
698
                   </div>
572
                   </div>
699
-                  <div style="display: inline-block; margin-left: 40px;"> 
573
+                  <div style="display: inline-block; margin-left: 40px;">
700
                     透析机号:{{ getNumber() }}
574
                     透析机号:{{ getNumber() }}
701
                   </div> -->
575
                   </div> -->
702
                   <div style="word-break: break-all;word-wrap: break-word;">
576
                   <div style="word-break: break-all;word-wrap: break-word;">
706
                         summary.dialysis_summary ? summary.dialysis_summary : "/"
580
                         summary.dialysis_summary ? summary.dialysis_summary : "/"
707
                       }}
581
                       }}
708
                     </div>
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
                       <span v-if="setAdminUserES(prescription.creater) == ''">
586
                       <span v-if="setAdminUserES(prescription.creater) == ''">
713
                         {{ getAdminUser(prescription.creater) }}
587
                         {{ getAdminUser(prescription.creater) }}
714
                       </span>
588
                       </span>
993
         //     this.anticoagulantsConfit[thisALID].name;
867
         //     this.anticoagulantsConfit[thisALID].name;
994
         //     this.AlPanel = this.anticoagulantsConfit[thisALID];
868
         //     this.AlPanel = this.anticoagulantsConfit[thisALID];
995
         // }
869
         // }
996
-        
870
+
997
         this.advices = response.data.data.advices;
871
         this.advices = response.data.data.advices;
998
-        
872
+
999
         this.monitors = response.data.data.monitors;
873
         this.monitors = response.data.data.monitors;
1000
         this.summary = response.data.data.summary;
874
         this.summary = response.data.data.summary;
1001
         this.org_template_info = response.data.data.org_template_info;
875
         this.org_template_info = response.data.data.org_template_info;
1002
-        
876
+
1003
         if (this.monitors.length <= 0) {
877
         if (this.monitors.length <= 0) {
1004
           var nl = 8 - this.monitors.length;
878
           var nl = 8 - this.monitors.length;
1005
           for (let index = 0; index < nl; index++) {
879
           for (let index = 0; index < nl; index++) {

+ 16 - 1
src/xt_pages/management/components/ManageForm.vue Ver fichero

851
     padding: 0;
851
     padding: 0;
852
   }
852
   }
853
   .el-form-item__error {
853
   .el-form-item__error {
854
-    margin-left: 60px;
854
+    //  margin-left: 60px; 
855
+    margin-left: 200px;
855
   }
856
   }
857
+  
856
 }
858
 }
857
 .el-checkbox {
859
 .el-checkbox {
858
   color: #606266;
860
   color: #606266;
866
   margin-right: 26px;
868
   margin-right: 26px;
867
 }
869
 }
868
 </style>
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 Ver fichero

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

+ 8 - 6
src/xt_pages/management/home.vue Ver fichero

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

+ 1 - 4
src/xt_pages/user/courseOfDisease.vue Ver fichero

1034
         this.table_current_index = row.index
1034
         this.table_current_index = row.index
1035
       },
1035
       },
1036
       print(){
1036
       print(){
1037
-        // if (this.table_current_index == -1) {
1038
-        //   this.$message.error('请选择要打印的病程')
1039
-        //   return
1040
-        // }
1041
         if(this.ids.length == 0){
1037
         if(this.ids.length == 0){
1042
           this.$message.error('请选择要打印的病程')
1038
           this.$message.error('请选择要打印的病程')
1043
           return
1039
           return
1044
         }
1040
         }
1045
         this.$router.push({ path: "/course/print?ids="+this.ids+"&patient_id="+this.patient_id});
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 Ver fichero

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 Ver fichero

74
       </div>
74
       </div>
75
     </div>
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
       <div style="position: relative;">
156
       <div style="position: relative;">
79
         <el-table
157
         <el-table
80
           :data="schedulePatients"
158
           :data="schedulePatients"
146
         </el-table>
224
         </el-table>
147
       </div>
225
       </div>
148
     </el-dialog>
226
     </el-dialog>
149
-    
227
+
150
     <div class="center-tab">
228
     <div class="center-tab">
151
       <el-table
229
       <el-table
152
         :row-style="{ color: '#303133' }"
230
         :row-style="{ color: '#303133' }"