Browse Source

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

28169 1 year ago
parent
commit
7f2d8b9ef7

+ 56 - 26
src/xt_pages/dialysis/batch_print/batch_print_order_seventy.vue View File

271
                                   .blood_access_part_id
271
                                   .blood_access_part_id
272
                               : 0
272
                               : 0
273
                           }}
273
                           }}
274
-                          {{
275
-                            record.assessment_before_dislysis &&
276
-                            record.assessment_before_dislysis
277
-                              .blood_access_part_opera_name
278
-                              ? record.assessment_before_dislysis
279
-                                  .blood_access_part_opera_name
280
-                              : ""
281
-                          }}
274
+                          {{QueryPartById(record.assessment_before_dislysis.blood_access_part_opera_id) }}
282
                         </div>
275
                         </div>
283
                       </div>                    
276
                       </div>                    
284
                     </div>
277
                     </div>
291
                         内瘘:
284
                         内瘘:
292
                         <div
285
                         <div
293
                           class="under_line"
286
                           class="under_line"
294
-                          style="width: 120px; text-align: center"
287
+                          style="width: 200px; text-align: center"
295
                         >
288
                         >
296
                           {{
289
                           {{
297
                             record.assessment_before_dislysis &&
290
                             record.assessment_before_dislysis &&
310
                         导管:
303
                         导管:
311
                         <div
304
                         <div
312
                           class="under_line"
305
                           class="under_line"
313
-                          style="width: 120px; text-align: center"
306
+                          style="width: 200px; text-align: center"
314
                         >
307
                         >
315
                           {{
308
                           {{
316
                             record.assessment_before_dislysis &&
309
                             record.assessment_before_dislysis &&
320
                           }}
313
                           }}
321
                         </div>
314
                         </div>
322
                       </div>
315
                       </div>
316
+
317
+                      
318
+                    </div>
319
+                    <!-- 穿刺 -->
320
+                    <div class="row"
321
+                      style="padding: 2px 0; line-height: 23px; display: flex"
322
+                    >
323
                       <div
323
                       <div
324
                         class="inline_block"
324
                         class="inline_block"
325
                         style=" flex: 1"
325
                         style=" flex: 1"
413
                       </div>
413
                       </div>
414
                       </div>
414
                       </div>
415
                     </div>
415
                     </div>
416
+
416
                     <div
417
                     <div
417
                       class="row"
418
                       class="row"
418
                       style="padding: 2px 0; line-height: 23px; display: flex"
419
                       style="padding: 2px 0; line-height: 23px; display: flex"
751
                       style="padding: 2px 0; line-height: 23px; display: flex"
752
                       style="padding: 2px 0; line-height: 23px; display: flex"
752
                     > 
753
                     > 
753
 
754
 
754
-                      <div class="inline_block" style="flex: 1">
755
+                      <div class="inline_block" style="flex:1">
755
                         透前症状:
756
                         透前症状:
756
                         <div
757
                         <div
757
                           class="under_line"
758
                           class="under_line"
768
                         </div>
769
                         </div>
769
                       </div>
770
                       </div>
770
 
771
 
771
-                      <div class="inline_block" style="flex: 1">
772
+                      <div class="inline_block" style="flex:1.4">
772
                         透析(滤)器:
773
                         透析(滤)器:
773
                         <div
774
                         <div
774
                           class="under_line"
775
                           class="under_line"
788
                           }}
789
                           }}
789
                         </div>
790
                         </div>
790
                       </div>
791
                       </div>
791
-                      <div class="inline_block" style="flex: 0.8">
792
+                      <div class="inline_block" style="flex:1">
792
                         灌流器:
793
                         灌流器:
793
                         <div
794
                         <div
794
                           class="under_line"
795
                           class="under_line"
803
                         </div>
804
                         </div>
804
                       </div>
805
                       </div>
805
 
806
 
806
-                      <div class="inline_block" style="flex: 0.7">
807
+                      <div class="inline_block" style="flex: 1">
807
                         透析机号:
808
                         透析机号:
808
                         <div
809
                         <div
809
                           class="under_line"
810
                           class="under_line"
820
                         </div>
821
                         </div>
821
                       </div>
822
                       </div>
822
 
823
 
823
-                      <div class="inline_block" style="flex: 1">
824
+                      <!-- <div class="inline_block" style="flex: 1">
824
                         透析机型:
825
                         透析机型:
825
                         <div
826
                         <div
826
                           class="under_line"
827
                           class="under_line"
831
                               record.assessment_before_dislysis.machine_type : '' 
832
                               record.assessment_before_dislysis.machine_type : '' 
832
                           }}
833
                           }}
833
                         </div>
834
                         </div>
834
-                      </div>
835
+                      </div> -->
835
                      
836
                      
836
                     </div>
837
                     </div>
837
 
838
 
1854
                       class="row"
1855
                       class="row"
1855
                       style="padding: 2px 0; line-height: 23px; display: flex"
1856
                       style="padding: 2px 0; line-height: 23px; display: flex"
1856
                     >
1857
                     >
1857
-                      <div class="inline_block" style="flex: 2.5">
1858
+                      <div class="inline_block" style="flex: 1">
1858
                         凝血程度:
1859
                         凝血程度:
1859
                         <div
1860
                         <div
1860
                           class="under_line"
1861
                           class="under_line"
1861
                           style="
1862
                           style="
1862
-                            width: 170px;
1863
+                            width: 150px;
1863
                             text-align: center;
1864
                             text-align: center;
1864
                             white-space: normal;
1865
                             white-space: normal;
1865
                           "
1866
                           "
1872
                           }}
1873
                           }}
1873
                         </div>
1874
                         </div>
1874
                       </div>
1875
                       </div>
1875
-                      <div class="inline_block" style="flex: 2">
1876
+                      <div class="inline_block" style="flex: 1">
1876
                         内瘘:
1877
                         内瘘:
1877
                         <div
1878
                         <div
1878
                           class="under_line"
1879
                           class="under_line"
1891
                           }}
1892
                           }}
1892
                         </div>
1893
                         </div>
1893
                       </div>
1894
                       </div>
1894
-                      <div class="inline_block" style="flex: 4">
1895
+                      <div class="inline_block" style="flex: 1">
1895
                         导管:
1896
                         导管:
1896
                         <div
1897
                         <div
1897
                           class="under_line"
1898
                           class="under_line"
1905
                           }}
1906
                           }}
1906
                         </div>
1907
                         </div>
1907
                       </div>
1908
                       </div>
1909
+                      <div class="inline_block" style="flex: 1">
1910
+                        KTV(在线):
1911
+                        <div
1912
+                          class="under_line"
1913
+                          style="min-width: 100px; text-align: center"
1914
+                        >
1915
+                          {{
1916
+                            record.assessment_after_dislysis &&
1917
+                            record.assessment_after_dislysis.ktv
1918
+                              ? record.assessment_after_dislysis.ktv
1919
+                              : "/"
1920
+                          }}
1921
+                        </div>
1922
+                      </div>
1908
                     </div>
1923
                     </div>
1909
 
1924
 
1910
                     <div
1925
                     <div
2533
     //   this.replacementWays = this.$store.getters.replacement_ways;
2548
     //   this.replacementWays = this.$store.getters.replacement_ways;
2534
     //   this.perfusionApparatus = this.$store.getters.perfusion_apparatus;
2549
     //   this.perfusionApparatus = this.$store.getters.perfusion_apparatus;
2535
     this.anticoagulantsConfit = this.$store.getters.anticoagulants_confit;
2550
     this.anticoagulantsConfit = this.$store.getters.anticoagulants_confit;
2536
-    // for(let i = 0 ; i < this.records.length ; i++){
2537
-    //   console.log(i,'jhk')
2538
-    //   this.blood_access_part_opera_name = this.bloodAccessParOperaName(
2539
-    //   i.assessment_before_dislysis.blood_access_part_opera_id
2540
-    // );
2541
-    // }
2551
+    for(let i = 0 ; i < this.records.length ; i++){
2552
+      console.log(i,'jhk')
2553
+      this.blood_access_part_opera_name = this.bloodAccessParOperaName(
2554
+      i.assessment_before_dislysis.blood_access_part_opera_id
2555
+    );
2556
+    }
2542
     console.log(this.bloodAccessParOpera, "this.bloodAccessParOpera");
2557
     console.log(this.bloodAccessParOpera, "this.bloodAccessParOpera");
2543
 
2558
 
2544
     for (var key in bloodAccessParOpera) {
2559
     for (var key in bloodAccessParOpera) {
2956
       }
2971
       }
2957
       return "";
2972
       return "";
2958
     },
2973
     },
2974
+    
2959
     // 函数说明:因为一次透析记录有些记录不一定是必须填的,比如 record.receive_assessment 可能为 null,所以要取 record.receive_assessment.way 前需要判断 record.receive_assessment 是否为 null,所以这个方法用来简化模板渲染的代码
2975
     // 函数说明:因为一次透析记录有些记录不一定是必须填的,比如 record.receive_assessment 可能为 null,所以要取 record.receive_assessment.way 前需要判断 record.receive_assessment 是否为 null,所以这个方法用来简化模板渲染的代码
2960
     // 参数说明:比如判断 record.receive_assessment.way 是不是为1,参数为 (record.receive_assessment, way, 1)
2976
     // 参数说明:比如判断 record.receive_assessment.way 是不是为1,参数为 (record.receive_assessment, way, 1)
2961
     isCheckBoxChecked: function (record, key, target_value) {
2977
     isCheckBoxChecked: function (record, key, target_value) {
3009
     getNumber: function (record) {
3025
     getNumber: function (record) {
3010
       console.log(record);
3026
       console.log(record);
3011
     },
3027
     },
3028
+    QueryPartById: function (val) {
3029
+        let vascular_access_part_name = "/";
3030
+        const vascular_access = getDataConfig(
3031
+          "hemodialysis",
3032
+          "vascular_access_desc"
3033
+        );
3034
+
3035
+        for (let i = 0; i < vascular_access.length; i++) {
3036
+          if (vascular_access[i].id == val) {
3037
+            vascular_access_part_name = vascular_access[i].name;
3038
+          }
3039
+        }
3040
+        return vascular_access_part_name;
3041
+      },
3012
   },
3042
   },
3013
 };
3043
 };
3014
 </script>
3044
 </script>

+ 258 - 157
src/xt_pages/dialysis/template/DialysisPrintOrderSeventy.vue View File

256
                     style="padding: 2px 0; line-height: 23px; display: flex"
256
                     style="padding: 2px 0; line-height: 23px; display: flex"
257
                   >
257
                   >
258
 
258
 
259
-                    <div class="inline_block" style="">
259
+                    <div class="inline_block" style="flex: 1;">
260
+                      内瘘:
261
+                      <div
262
+                        class="under_line"
263
+                        style="
264
+                          width: 200px;
265
+                          text-align: center;
266
+                          white-space: normal;
267
+                        "
268
+                      >
269
+                        {{
270
+                          predialysis.internal_fistula
271
+                            ? predialysis.internal_fistula
272
+                            : "/"
273
+                        }}
274
+                      </div>
275
+                    </div>
276
+
277
+                    <div
278
+                      class="inline_block"
279
+                      style=" flex: 1"
280
+                    >
281
+                      导管:
282
+                      <div
283
+                        class="under_line"
284
+                        style="width: 200px; text-align: center"
285
+                      >
286
+                        {{ predialysis.catheter ? predialysis.catheter : "/" }}
287
+                      </div>
288
+                    </div>
289
+                     <!-- <div
290
+                      class="inline_block"
291
+                      style=" flex: 0.9"
292
+
293
+                    >
294
+                      穿刺方式:
295
+                      <div
296
+                        class="under_line"
297
+                        style="width: 60px; text-align: center"
298
+                        v-if="predialysis.puncture_way == ''"
299
+                      >
300
+                         /
301
+                      </div>
302
+                      <div
303
+                        class="under_line"
304
+                        style="width: 60px; text-align: center"
305
+                        v-if="predialysis.puncture_way.indexOf('绳梯') > -1"
306
+                      >
307
+                        绳梯
308
+                      </div>
309
+                      <div
310
+                        class="under_line"
311
+                        style="width: 60px; text-align: center"
312
+                        v-if="predialysis.puncture_way.indexOf('扣眼') > -1"
313
+                      >
314
+                        扣眼
315
+                      </div>
316
+                      <div
317
+                        class="under_line"
318
+                        style="width: 60px; text-align: center"
319
+                        v-if="predialysis.puncture_way.indexOf('区域') > -1"
320
+                      >
321
+                        区域
322
+                      </div>
323
+                    </div>
324
+                     <div
325
+                      class="inline_block"
326
+                      style=" flex: 1"
327
+                    >
328
+                      穿刺针:
329
+                      <div
330
+                        class="under_line"
331
+                        style="width: 80px; text-align: center"
332
+                      >
333
+                      <span>
334
+                        {{
335
+                          predialysis.puncture_needle
336
+                            ? predialysis.puncture_needle
337
+                            : "/"
338
+                        }}
339
+                      </span>
340
+
341
+                      </div>
342
+                    </div>
343
+                    <div
344
+                      class="inline_block"
345
+                      style=" flex: 1"
346
+                    >
347
+                      穿刺方向:
348
+                      <div
349
+                        class="under_line"
350
+                        style="width: 100px; text-align: center"
351
+                      >
352
+                      <span>
353
+                        {{
354
+
355
+                        }}
356
+                      </span>
357
+
358
+                      </div>
359
+                    </div> -->
360
+                  </div>
361
+
362
+                  <div
363
+                    class="row"
364
+                    style="padding: 2px 0; line-height: 23px; display: flex"
365
+                  >
366
+
367
+                    <!-- <div class="inline_block" style="">
260
                       内瘘:
368
                       内瘘:
261
                       <div
369
                       <div
262
                         class="under_line"
370
                         class="under_line"
285
                       >
393
                       >
286
                         {{ predialysis.catheter ? predialysis.catheter : "/" }}
394
                         {{ predialysis.catheter ? predialysis.catheter : "/" }}
287
                       </div>
395
                       </div>
288
-                    </div>
396
+                    </div> -->
289
                      <div
397
                      <div
290
                       class="inline_block"
398
                       class="inline_block"
291
                       style=" flex: 1"
399
                       style=" flex: 1"
301
                       </div>
409
                       </div>
302
                       <div
410
                       <div
303
                         class="under_line"
411
                         class="under_line"
304
-                        style="width: 100px; text-align: center"
412
+                        style="width: 60px; text-align: center"
305
                         v-if="predialysis.puncture_way.indexOf('绳梯') > -1"
413
                         v-if="predialysis.puncture_way.indexOf('绳梯') > -1"
306
                       >
414
                       >
307
                         绳梯
415
                         绳梯
308
                       </div>
416
                       </div>
309
                       <div
417
                       <div
310
                         class="under_line"
418
                         class="under_line"
311
-                        style="width: 100px; text-align: center"
419
+                        style="width: 60px; text-align: center"
312
                         v-if="predialysis.puncture_way.indexOf('扣眼') > -1"
420
                         v-if="predialysis.puncture_way.indexOf('扣眼') > -1"
313
                       >
421
                       >
314
                         扣眼
422
                         扣眼
315
                       </div>
423
                       </div>
316
                       <div
424
                       <div
317
                         class="under_line"
425
                         class="under_line"
318
-                        style="width: 100px; text-align: center"
426
+                        style="width: 60px; text-align: center"
319
                         v-if="predialysis.puncture_way.indexOf('区域') > -1"
427
                         v-if="predialysis.puncture_way.indexOf('区域') > -1"
320
                       >
428
                       >
321
                         区域
429
                         区域
748
                       </div>
856
                       </div>
749
                     </div>
857
                     </div>
750
 
858
 
751
-                    <div class="inline_block" style="flex: 1">
859
+                    <div class="inline_block" style="flex: 1.2">
752
                       透析(滤)器:
860
                       透析(滤)器:
753
                       <!--  透析(滤)器分开取值 -->
861
                       <!--  透析(滤)器分开取值 -->
754
                       <div
862
                       <div
798
 
906
 
799
                     </div>
907
                     </div>
800
 
908
 
801
-                    <div
802
-                      class="inline_block"
803
-                      style="flex: 1"
804
-                    >
805
-                      透析机型号:
806
-                      <div
807
-                        class="under_line"
808
-                        style="width: 100px; text-align: center"
809
-                      >
810
-                       {{predialysis.machine_type ? predialysis.machine_type : ""}}
811
-                      </div>
812
-
813
-                    </div>
814
                   </div>
909
                   </div>
815
 
910
 
816
                   <div
911
                   <div
817
                     class="row"
912
                     class="row"
818
                     style="padding: 2px 0; line-height: 23px; display: flex"
913
                     style="padding: 2px 0; line-height: 23px; display: flex"
819
                   >
914
                   >
820
-                    <div class="inline_block" style="flex: 1">
915
+                    <div class="inline_block" style="flex: 0.9">
821
                       干体重:
916
                       干体重:
822
                       <div
917
                       <div
823
                         class="under_line"
918
                         class="under_line"
824
-                        style="width: 100px; text-align: center"
919
+                        style="width: 60px; text-align: center"
825
                       >
920
                       >
826
                         {{
921
                         {{
827
                           predialysis.dry_weight ? predialysis.dry_weight : "/"
922
                           predialysis.dry_weight ? predialysis.dry_weight : "/"
829
                       </div>
924
                       </div>
830
                       kg
925
                       kg
831
                     </div>
926
                     </div>
832
-                    <div class="inline_block" style="flex: 1" >
927
+                    <div class="inline_block" style="flex: 0.9" >
833
                       衣物重:
928
                       衣物重:
834
                       <div
929
                       <div
835
                         class="under_line"
930
                         class="under_line"
836
-                        style="width: 70px; text-align: center"
931
+                        style="width: 60px; text-align: center"
837
                       >
932
                       >
838
                         {{
933
                         {{
839
                           predialysis.additional_weight
934
                           predialysis.additional_weight
840
                             ? predialysis.additional_weight
935
                             ? predialysis.additional_weight
841
                             : "/"
936
                             : "/"
842
                         }}
937
                         }}
843
-                      </div>
938
+                      </div>kg
844
                     </div>
939
                     </div>
845
-                    <div class="inline_block" style="flex: 1" >
940
+                    <div class="inline_block" style="flex: 1.2" >
846
                       上次透后体重:
941
                       上次透后体重:
847
                       <div
942
                       <div
848
                         class="under_line"
943
                         class="under_line"
849
-                        style="width: 100px; text-align: center"
944
+                        style="width: 60px; text-align: center"
850
                       >
945
                       >
851
                         <span v-if="org_id == 10290 || org_id == 10318 || org_id== 10217 || org_id== 10188 || org_id== 9956 || org_id == 10440 || org_id == 0 || org_id == 10469 || org_id == 10478 || org_id == 10490 || org_id ==10495 || org_id == 10460 || org_id==10585">{{
946
                         <span v-if="org_id == 10290 || org_id == 10318 || org_id== 10217 || org_id== 10188 || org_id== 9956 || org_id == 10440 || org_id == 0 || org_id == 10469 || org_id == 10478 || org_id == 10490 || org_id ==10495 || org_id == 10460 || org_id==10585">{{
852
                           lastafterdialysis.weight_after
947
                           lastafterdialysis.weight_after
864
                       透前体重:
959
                       透前体重:
865
                       <div
960
                       <div
866
                         class="under_line"
961
                         class="under_line"
867
-                        style="width: 70px; text-align: center"
962
+                        style="width: 60px; text-align: center"
868
                       >
963
                       >
869
                       <span v-if="org_id !=10447 && org_id != 9675">{{
964
                       <span v-if="org_id !=10447 && org_id != 9675">{{
870
                           predialysis.weight_before
965
                           predialysis.weight_before
888
                       </div>
983
                       </div>
889
                       kg
984
                       kg
890
                     </div>
985
                     </div>
891
-                    <div class="inline_block" style="flex: 1">
986
+                    <div class="inline_block" style="flex: 0.9">
892
                       体重增加:
987
                       体重增加:
893
                       <div
988
                       <div
894
                         class="under_line"
989
                         class="under_line"
895
-                        style="width: 100px; text-align: center"
990
+                        style="width: 50px; text-align: center"
896
                       >
991
                       >
897
                       {{ predialysis.weight_before > 0 && lastafterdialysis.weight_after > 0
992
                       {{ predialysis.weight_before > 0 && lastafterdialysis.weight_after > 0
898
                         ? parseFloat(predialysis.weight_before - lastafterdialysis.weight_after).toFixed(2): "/"
993
                         ? parseFloat(predialysis.weight_before - lastafterdialysis.weight_after).toFixed(2): "/"
905
                       计划超滤量:
1000
                       计划超滤量:
906
                       <div
1001
                       <div
907
                         class="under_line"
1002
                         class="under_line"
908
-                        style="width: 100px; text-align: center"
1003
+                        style="width: 60px; text-align: center"
909
                       >
1004
                       >
910
                         {{
1005
                         {{
911
                           prescription.target_ultrafiltration
1006
                           prescription.target_ultrafiltration
912
                             ? prescription.target_ultrafiltration
1007
                             ? prescription.target_ultrafiltration
913
                             : "/"
1008
                             : "/"
914
-                        }}kg
1009
+                        }}
915
                       </div>
1010
                       </div>
916
                       <span v-if="org_id == 10395 || org_id == 9829 || org_id == 10440 || org_id == 10469 || org_id == 10471 || org_id == 10460">ml</span>
1011
                       <span v-if="org_id == 10395 || org_id == 9829 || org_id == 10440 || org_id == 10469 || org_id == 10471 || org_id == 10460">ml</span>
917
                       <span v-if="org_id!=10395&&org_id!=9829 && org_id!=10440 && org_id!=10469 && org_id!=10471 && org_id!=10460">L</span>
1012
                       <span v-if="org_id!=10395&&org_id!=9829 && org_id!=10440 && org_id!=10469 && org_id!=10471 && org_id!=10460">L</span>
2034
                       <div
2129
                       <div
2035
                         class="under_line"
2130
                         class="under_line"
2036
                         style="
2131
                         style="
2037
-                          width: 170px;
2132
+                          width: 150px;
2038
                           text-align: center;
2133
                           text-align: center;
2039
                           white-space: normal;
2134
                           white-space: normal;
2040
                         "
2135
                         "
2066
                         {{ afterdialysis.catheter ? afterdialysis.catheter : "/" }}
2161
                         {{ afterdialysis.catheter ? afterdialysis.catheter : "/" }}
2067
                       </div>
2162
                       </div>
2068
                     </div>
2163
                     </div>
2164
+                    <div class="inline_block" style="flex:1;">
2165
+                      KTV(在线):
2166
+                      <div class="under_line" style="min-width: 50px;text-align: center">
2167
+                        {{ afterdialysis.ktv ? afterdialysis.ktv : "/" }}
2168
+                      </div>
2169
+                    </div>
2069
                   </div>
2170
                   </div>
2070
 
2171
 
2071
                   <div
2172
                   <div
2538
       </div>
2639
       </div>
2539
 
2640
 
2540
       <table class="print-table-no">
2641
       <table class="print-table-no">
2541
-                    <tbody>
2542
-                      <tr style="line-height: 35px; padding: 8px 5px">
2543
-                        <td
2544
-                          colspan="7"
2545
-                          style="
2546
-                            letter-spacing: 5px;
2547
-                            text-align: center;
2548
-                            font-weight: 520;
2549
-                            font-size: 16px;
2550
-                            padding: 6px 8px;
2551
-                            line-height: 30px;
2552
-                          "
2553
-                        >
2554
-                          医嘱内容
2555
-                        </td>
2556
-                      </tr>
2557
-                      <tr style="line-height: 35px; padding: 8px 5px">
2558
-                        <td style="font-size: 16px" width="10%">时间</td>
2559
-                        <td style="font-size: 16px" colspan="2" width="45%">
2560
-                          医嘱内容
2561
-                        </td>
2562
-                        <td style="font-size: 16px" width="10%">医生签名</td>
2563
-                        <!-- <td style="font-size: 16px" width="10%">核对人签名</td> -->
2564
-                        <td style="font-size: 16px" width="10%">执行人签名</td>
2565
-                        <td style="font-size: 16px" width="10%">时间</td>
2566
-                        <td
2567
-                          style="font-size: 16px"
2568
-                          width="10%"
2569
-                          v-if="org_id == 10223 || org_id == 9538 || org_id == 0 || org_id ==10375"
2570
-                        >
2571
-                          核对护士
2572
-                        </td>
2573
-                      </tr>
2574
-
2575
-
2576
-                      <tr
2577
-                        v-for="(advice, advice_index) in doctor_advices"
2578
-                        :key="advice_index"
2579
-                      >
2580
-                        <td height="32px">
2581
-                          <span v-if="advice.start_time">
2582
-                            {{ getTime(advice.start_time, "{h}:{i}") }}
2583
-                          </span>
2584
-
2585
-                        </td>
2586
-                        <td
2587
-                          height="32px"
2588
-                          colspan="2"
2589
-                          class="advice-name"
2590
-                          style="padding-left: 7px"
2591
-                        >
2592
-                          <span v-if="advice.parent_id > 0">---></span>
2593
-                          <span>{{ advice.advice_name }}</span>
2594
-                          <span v-if="advice && advice.advice_desc"
2595
-                            >({{ advice.advice_desc
2596
-                            }}{{ advice.drug_spec_unit }})</span
2597
-                          >
2598
-                          <span v-if="advice.prescribing_number"
2599
-                            >&nbsp;&nbsp; {{ advice.prescribing_number
2600
-                            }}{{ advice.prescribing_number_unit }}</span
2601
-                          >
2602
-                          <span v-if="advice.single_dose != 0"
2603
-                            >{{ advice.single_dose
2604
-                            }}{{ advice.single_dose_unit }}</span
2605
-                          >
2606
-                          <span v-if="advice.parent_id == 0">{{
2607
-                            advice.delivery_way
2608
-                          }}</span>
2609
-                          <span v-if="advice.parent_id == 0">{{
2610
-                            advice.execution_frequency
2611
-                          }}</span>
2612
-                          <span
2613
-                            v-if="
2614
-                              advice.parent_id == 0 && advice.remark.length > 0
2615
-                            "
2616
-                            >({{ advice.remark }})</span
2617
-                          >
2618
-                        </td>
2619
-
2620
-                        <td height="32px">
2621
-                          <span
2622
-                            v-if="setAdminUserES(advice.advice_doctor) == ''"
2623
-                            >{{ getAdminUser(advice.advice_doctor) }}</span
2624
-                          >
2625
-                          <img
2626
-                            style="height: 30px"
2627
-                            :src="setAdminUserES(advice.advice_doctor)"
2628
-                            alt=""
2629
-                            srcset=""
2630
-                            v-else
2631
-                          />
2632
-                        </td>
2633
-
2634
-                        <td height="32px">
2635
-                          <span
2636
-                            v-if="setAdminUserES(advice.execution_staff) == ''"
2637
-                            >{{ getAdminUser(advice.execution_staff) }}</span
2638
-                          >
2639
-                          <img
2640
-                            style="height: 30px"
2641
-                            :src="setAdminUserES(advice.execution_staff)"
2642
-                            alt=""
2643
-                            srcset=""
2644
-                            v-else
2645
-                          />
2646
-                        </td>
2647
-                        <td height="32px">
2648
-                          <span v-if="advice.execution_time">{{
2649
-                            getTime(advice.execution_time, "{h}:{i}")
2650
-                          }}</span>
2651
-                        </td>
2652
-                        <td height="32px" v-if="org_id == 10223 || org_id == 9538 || org_id == 0 || org_id ==10375">
2653
-                          <span v-if="setAdminUserES(advice.checker) == ''">{{
2654
-                            getAdminUser(advice.checker)
2655
-                          }}</span>
2656
-                          <img
2657
-                            style="height: 30px"
2658
-                            :src="setAdminUserES(advice.checker)"
2659
-                            alt=""
2660
-                            srcset=""
2661
-                            v-else
2662
-                          />
2663
-                        </td>
2664
-                      </tr>
2642
+          <tbody>
2643
+            <tr style="line-height: 35px; padding: 8px 5px">
2644
+              <td
2645
+                colspan="7"
2646
+                style="
2647
+                  letter-spacing: 5px;
2648
+                  text-align: center;
2649
+                  font-weight: 520;
2650
+                  font-size: 16px;
2651
+                  padding: 6px 8px;
2652
+                  line-height: 30px;
2653
+                "
2654
+              >
2655
+                医嘱内容
2656
+              </td>
2657
+            </tr>
2658
+            <tr style="line-height: 35px; padding: 8px 5px">
2659
+              <td style="font-size: 16px" width="10%">时间</td>
2660
+              <td style="font-size: 16px" colspan="2" width="45%">
2661
+                医嘱内容
2662
+              </td>
2663
+              <td style="font-size: 16px" width="10%">医生签名</td>
2664
+              <!-- <td style="font-size: 16px" width="10%">核对人签名</td> -->
2665
+              <td style="font-size: 16px" width="10%">执行人签名</td>
2666
+              <td style="font-size: 16px" width="10%">时间</td>
2667
+              <td
2668
+                style="font-size: 16px"
2669
+                width="10%"
2670
+                v-if="org_id == 10223 || org_id == 9538 || org_id == 0 || org_id ==10375"
2671
+              >
2672
+                核对护士
2673
+              </td>
2674
+            </tr>
2665
 
2675
 
2666
 
2676
 
2677
+            <tr
2678
+              v-for="(advice, advice_index) in doctor_advices"
2679
+              :key="advice_index"
2680
+            >
2681
+              <td height="32px">
2682
+                <span v-if="advice.start_time">
2683
+                  {{ getTime(advice.start_time, "{h}:{i}") }}
2684
+                </span>
2685
+
2686
+              </td>
2687
+              <td
2688
+                height="32px"
2689
+                colspan="2"
2690
+                class="advice-name"
2691
+                style="padding-left: 7px"
2692
+              >
2693
+                <span v-if="advice.parent_id > 0">---></span>
2694
+                <span>{{ advice.advice_name }}</span>
2695
+                <span v-if="advice && advice.advice_desc"
2696
+                  >({{ advice.advice_desc
2697
+                  }}{{ advice.drug_spec_unit }})</span
2698
+                >
2699
+                <span v-if="advice.prescribing_number"
2700
+                  >&nbsp;&nbsp; {{ advice.prescribing_number
2701
+                  }}{{ advice.prescribing_number_unit }}</span
2702
+                >
2703
+                <span v-if="advice.single_dose != 0"
2704
+                  >{{ advice.single_dose
2705
+                  }}{{ advice.single_dose_unit }}</span
2706
+                >
2707
+                <span v-if="advice.parent_id == 0">{{
2708
+                  advice.delivery_way
2709
+                }}</span>
2710
+                <span v-if="advice.parent_id == 0">{{
2711
+                  advice.execution_frequency
2712
+                }}</span>
2713
+                <span
2714
+                  v-if="
2715
+                    advice.parent_id == 0 && advice.remark.length > 0
2716
+                  "
2717
+                  >({{ advice.remark }})</span
2718
+                >
2719
+              </td>
2667
 
2720
 
2668
-                    </tbody>
2721
+              <td height="32px">
2722
+                <span
2723
+                  v-if="setAdminUserES(advice.advice_doctor) == ''"
2724
+                  >{{ getAdminUser(advice.advice_doctor) }}</span
2725
+                >
2726
+                <img
2727
+                  style="height: 30px"
2728
+                  :src="setAdminUserES(advice.advice_doctor)"
2729
+                  alt=""
2730
+                  srcset=""
2731
+                  v-else
2732
+                />
2733
+              </td>
2734
+
2735
+              <td height="32px">
2736
+                <span
2737
+                  v-if="setAdminUserES(advice.execution_staff) == ''"
2738
+                  >{{ getAdminUser(advice.execution_staff) }}</span
2739
+                >
2740
+                <img
2741
+                  style="height: 30px"
2742
+                  :src="setAdminUserES(advice.execution_staff)"
2743
+                  alt=""
2744
+                  srcset=""
2745
+                  v-else
2746
+                />
2747
+              </td>
2748
+              <td height="32px">
2749
+                <span v-if="advice.execution_time">{{
2750
+                  getTime(advice.execution_time, "{h}:{i}")
2751
+                }}</span>
2752
+              </td>
2753
+              <td height="32px" v-if="org_id == 10223 || org_id == 9538 || org_id == 0 || org_id ==10375">
2754
+                <span v-if="setAdminUserES(advice.checker) == ''">{{
2755
+                  getAdminUser(advice.checker)
2756
+                }}</span>
2757
+                <img
2758
+                  style="height: 30px"
2759
+                  :src="setAdminUserES(advice.checker)"
2760
+                  alt=""
2761
+                  srcset=""
2762
+                  v-else
2763
+                />
2764
+              </td>
2765
+            </tr>
2766
+
2767
+
2768
+
2769
+          </tbody>
2669
      </table>
2770
      </table>
2670
 
2771
 
2671
 
2772
 

+ 8 - 4
src/xt_pages/user/components/PatientDetail.vue View File

267
                 ></el-input>
267
                 ></el-input>
268
               </el-form-item>
268
               </el-form-item>
269
             </el-col>
269
             </el-col>
270
-            <el-col :span="24">
270
+            <el-col :span="8">
271
               <el-form-item label="透析之前情况 : " prop="predialysis_condition">
271
               <el-form-item label="透析之前情况 : " prop="predialysis_condition">
272
                 <el-checkbox-group v-model="form.predialysis_condition">
272
                 <el-checkbox-group v-model="form.predialysis_condition">
273
                   <el-checkbox
273
                   <el-checkbox
281
                 </el-checkbox-group>
281
                 </el-checkbox-group>
282
               </el-form-item>
282
               </el-form-item>
283
              </el-col>
283
              </el-col>
284
-
284
+             <el-col :span="8">
285
+                <el-form-item label="住院(门诊)号 : " prop="admissionNumber">
286
+                  <el-input v-model="form.admissionNumber" disabled></el-input>
287
+                </el-form-item>
288
+              </el-col> 
285
              <el-col :span="8">
289
              <el-col :span="8">
286
                 <el-form-item label="工作单位 : " prop="work">
290
                 <el-form-item label="工作单位 : " prop="work">
287
                   <el-input v-model="form.work" disabled></el-input>
291
                   <el-input v-model="form.work" disabled></el-input>
662
                 <!-- <el-form-item label=" " style="float:left;" label-width="30px" >
666
                 <!-- <el-form-item label=" " style="float:left;" label-width="30px" >
663
                 </el-form-item> -->
667
                 </el-form-item> -->
664
               </el-col>
668
               </el-col>
665
-              <el-col :span="8">
669
+              <!-- <el-col :span="8">
666
                 <el-form-item label="住院(门诊)号 : " prop="admissionNumber">
670
                 <el-form-item label="住院(门诊)号 : " prop="admissionNumber">
667
                   <el-input v-model="form.admissionNumber" disabled></el-input>
671
                   <el-input v-model="form.admissionNumber" disabled></el-input>
668
                 </el-form-item>
672
                 </el-form-item>
669
-              </el-col>
673
+              </el-col> -->
670
               <el-col :span="8">
674
               <el-col :span="8">
671
                 <el-form-item label="医保类型 : " prop="reimbursementWayID">
675
                 <el-form-item label="医保类型 : " prop="reimbursementWayID">
672
                   <el-select v-model="form.reimbursementWayID" disabled>
676
                   <el-select v-model="form.reimbursementWayID" disabled>

+ 79 - 23
src/xt_pages/user/doctorAdvice.vue View File

2528
         }
2528
         }
2529
       });
2529
       });
2530
     },
2530
     },
2531
+    // 点击报存
2531
     submitNewAdvice(formName, action) {
2532
     submitNewAdvice(formName, action) {
2532
       console.log("kkkthis.adviceForm",this.adviceForm)
2533
       console.log("kkkthis.adviceForm",this.adviceForm)
2533
       this.$refs[formName].validate(valid => {
2534
       this.$refs[formName].validate(valid => {
3256
       this.dialogFormVisible = true;
3257
       this.dialogFormVisible = true;
3257
     },
3258
     },
3258
     changeAdviceName(key) {
3259
     changeAdviceName(key) {
3260
+      
3259
       if (key in this.adviceTemplateMaps) {
3261
       if (key in this.adviceTemplateMaps) {
3260
         this.adviceForm.advice_name = this.adviceTemplateMaps[key].advice_name;
3262
         this.adviceForm.advice_name = this.adviceTemplateMaps[key].advice_name;
3261
         this.adviceForm.advice_desc = this.adviceTemplateMaps[key].advice_desc;
3263
         this.adviceForm.advice_desc = this.adviceTemplateMaps[key].advice_desc;
3276
           key
3278
           key
3277
         ].execution_frequency;
3279
         ].execution_frequency;
3278
       }
3280
       }
3281
+      console.log('444444',this.adviceForm);
3279
     },
3282
     },
3280
     indexMethod(index) {
3283
     indexMethod(index) {
3281
       if (index === 0) {
3284
       if (index === 0) {
4661
        this.current_drug_name = name
4664
        this.current_drug_name = name
4662
        this.adviceForm.advice_desc = ''
4665
        this.adviceForm.advice_desc = ''
4663
       this.drugSpec = []
4666
       this.drugSpec = []
4667
+      console.log('7777777',name);
4664
       for (let i = 0; i < this.all_drug.length; i++) {
4668
       for (let i = 0; i < this.all_drug.length; i++) {
4669
+        // if(this.all_drug[i].drug_name.indexOf(name) != -1){
4670
+
4671
+        // }
4665
         if (this.all_drug[i].drug_name == name) {
4672
         if (this.all_drug[i].drug_name == name) {
4666
             this.drugSpec = this.all_drug[i].drug_specs
4673
             this.drugSpec = this.all_drug[i].drug_specs
4674
+            console.log('this.drugSpec',this.drugSpec);
4675
+            for(let i=0;i<this.drugSpec.length;i++){
4676
+                console.log('this.drugSpec.length',this.drugSpec[i].drug_name);
4677
+                if (this.drugSpec[i].drug_name == name) {
4678
+                  console.log('22222222',this.drugSpec[i])
4679
+                  this.adviceForm.advice_desc = this.drugSpec[i].drug_spec
4680
+                  this.adviceForm.prescribing_number = this.drugSpec[i].prescribing_number.toString()
4681
+                  this.adviceForm.single_dose = this.drugSpec[i].single_dose.toString()
4682
+                  this.adviceForm.delivery_way = this.drugSpec[i].delivery_way.toString()
4683
+                  this.adviceForm.execution_frequency = this.drugSpec[i].execution_frequency.toString()
4684
+                  this.drug_id = this.drugSpec[i].id
4685
+                  this.src_type = this.drugSpec[i].type
4686
+                  this.adviceForm.drug_id = this.drugSpec[i].id
4687
+                  this.adviceForm.way = this.drugSpec[i].type
4688
+                  this.adviceForm.single_dose_unit = this.drugSpec[i].min_unit
4689
+                  this.adviceForm.drug_spec_unit = this.drugSpec[i].min_unit
4690
+                  this.adviceForm.prescribing_number_unit = this.drugSpec[i].min_unit
4691
+                  if(this.drugSpec[i].drug_name_id){
4692
+                    this.adviceForm.drug_name_id = this.drugSpec[i].drug_name_id
4693
+                  }else{
4694
+                    this.adviceForm.drug_name_id = 0
4695
+                  }
4696
+                }
4697
+            }
4667
           }
4698
           }
4668
        }
4699
        }
4669
     },
4700
     },
4670
    changeDrugDescTwo(name){
4701
    changeDrugDescTwo(name){
4671
       this.current_drug_spec = name
4702
       this.current_drug_spec = name
4672
-        for (let i = 0; i < this.drugSpec.length; i++) {
4673
-          if (this.drugSpec[i].drug_spec == name) {
4674
-            this.adviceForm.advice_desc = this.drugSpec[i].drug_spec
4675
-            this.adviceForm.prescribing_number = this.drugSpec[i].prescribing_number.toString()
4676
-            this.adviceForm.single_dose = this.drugSpec[i].single_dose.toString()
4677
-            this.adviceForm.delivery_way = this.drugSpec[i].delivery_way.toString()
4678
-            this.adviceForm.execution_frequency = this.drugSpec[i].execution_frequency.toString()
4679
-            this.drug_id = this.drugSpec[i].id
4680
-            this.src_type = this.drugSpec[i].type
4681
-            this.adviceForm.drug_id = this.drugSpec[i].id
4682
-            this.adviceForm.way = this.drugSpec[i].type
4683
-            this.adviceForm.single_dose_unit = this.drugSpec[i].min_unit
4684
-            this.adviceForm.drug_spec_unit = this.drugSpec[i].min_unit
4685
-            this.adviceForm.prescribing_number_unit = this.drugSpec[i].min_unit
4686
-            if(this.drugSpec[i].drug_name_id){
4687
-               this.adviceForm.drug_name_id = this.drugSpec[i].drug_name_id
4688
-            }else{
4689
-              this.adviceForm.drug_name_id = 0
4690
-            }
4691
-          }
4692
-        }
4703
+        // for (let i = 0; i < this.drugSpec.length; i++) {
4704
+        //   if (this.drugSpec[i].drug_spec == name) {
4705
+        //     console.log('22222222',this.drugSpec[i])
4706
+        //     this.adviceForm.advice_desc = this.drugSpec[i].drug_spec
4707
+        //     this.adviceForm.prescribing_number = this.drugSpec[i].prescribing_number.toString()
4708
+        //     this.adviceForm.single_dose = this.drugSpec[i].single_dose.toString()
4709
+        //     this.adviceForm.delivery_way = this.drugSpec[i].delivery_way.toString()
4710
+        //     this.adviceForm.execution_frequency = this.drugSpec[i].execution_frequency.toString()
4711
+        //     this.drug_id = this.drugSpec[i].id
4712
+        //     this.src_type = this.drugSpec[i].type
4713
+        //     this.adviceForm.drug_id = this.drugSpec[i].id
4714
+        //     this.adviceForm.way = this.drugSpec[i].type
4715
+        //     this.adviceForm.single_dose_unit = this.drugSpec[i].min_unit
4716
+        //     this.adviceForm.drug_spec_unit = this.drugSpec[i].min_unit
4717
+        //     this.adviceForm.prescribing_number_unit = this.drugSpec[i].min_unit
4718
+        //     if(this.drugSpec[i].drug_name_id){
4719
+        //        this.adviceForm.drug_name_id = this.drugSpec[i].drug_name_id
4720
+        //     }else{
4721
+        //       this.adviceForm.drug_name_id = 0
4722
+        //     }
4723
+        //   }
4724
+        // }
4693
    },
4725
    },
4694
    changeDrugName(name){
4726
    changeDrugName(name){
4695
        this.current_drug_name = name
4727
        this.current_drug_name = name
4731
     },
4763
     },
4732
 
4764
 
4733
      querySearch(queryString, cb) {
4765
      querySearch(queryString, cb) {
4734
-        console.log('queryString',queryString)
4766
+        console.log('queryString1111',queryString)
4735
         var restaurants = this.all_drug;
4767
         var restaurants = this.all_drug;
4736
         restaurants.map(item => {
4768
         restaurants.map(item => {
4737
           item.value = item.drug_name
4769
           item.value = item.drug_name
4738
         })
4770
         })
4739
         var results = queryString ? restaurants.filter(this.createFilter(queryString)) : restaurants;
4771
         var results = queryString ? restaurants.filter(this.createFilter(queryString)) : restaurants;
4772
+      //  var results=arr
4740
         // 调用 callback 返回建议列表的数据
4773
         // 调用 callback 返回建议列表的数据
4741
         console.log('results',results)
4774
         console.log('results',results)
4742
         cb(results);
4775
         cb(results);
4744
 
4777
 
4745
      createFilter(queryString) {
4778
      createFilter(queryString) {
4746
         return (restaurant) => {
4779
         return (restaurant) => {
4747
-          return (restaurant.drug_name.toLowerCase().indexOf(queryString.toLowerCase()) === 0);
4780
+          // return (restaurant.drug_name.toLowerCase().indexOf(queryString.toLowerCase()) === 0);
4781
+          return (restaurant.drug_name.indexOf(queryString) != -1);
4748
         };
4782
         };
4749
      },
4783
      },
4750
 
4784
 
4784
         this.nameForm.drug_id = tmp.id
4818
         this.nameForm.drug_id = tmp.id
4785
         console.log("isiisisthis.adviceForm",this.adviceForm)
4819
         console.log("isiisisthis.adviceForm",this.adviceForm)
4786
         this.adviceForm.drug_id = tmp.id
4820
         this.adviceForm.drug_id = tmp.id
4821
+        for (let i = 0; i < this.drugSpec.length; i++) {
4822
+          if (this.drugSpec[i].drug_spec == tmp.drug_name) {
4823
+            console.log('22222222',this.drugSpec[i])
4824
+            this.adviceForm.advice_desc = this.drugSpec[i].drug_spec
4825
+            this.adviceForm.prescribing_number = this.drugSpec[i].prescribing_number.toString()
4826
+            this.adviceForm.single_dose = this.drugSpec[i].single_dose.toString()
4827
+            this.adviceForm.delivery_way = this.drugSpec[i].delivery_way.toString()
4828
+            this.adviceForm.execution_frequency = this.drugSpec[i].execution_frequency.toString()
4829
+            this.drug_id = this.drugSpec[i].id
4830
+            this.src_type = this.drugSpec[i].type
4831
+            this.adviceForm.drug_id = this.drugSpec[i].id
4832
+            this.adviceForm.way = this.drugSpec[i].type
4833
+            this.adviceForm.single_dose_unit = this.drugSpec[i].min_unit
4834
+            this.adviceForm.drug_spec_unit = this.drugSpec[i].min_unit
4835
+            this.adviceForm.prescribing_number_unit = this.drugSpec[i].min_unit
4836
+            if(this.drugSpec[i].drug_name_id){
4837
+               this.adviceForm.drug_name_id = this.drugSpec[i].drug_name_id
4838
+            }else{
4839
+              this.adviceForm.drug_name_id = 0
4840
+            }
4841
+          }
4842
+        }
4787
       },
4843
       },
4788
       getTime(val) {
4844
       getTime(val) {
4789
          if(val < 0){
4845
          if(val < 0){

+ 2 - 2
src/xt_pages/workforce/scheduleTablePrintFive.vue View File

8
       <div class="tab" style="margin-top: 10px;">
8
       <div class="tab" style="margin-top: 10px;">
9
         <table id="scheduleTable" class="scheduleTable" border="1" cellspacing="0" style='width: 100%;table-layout:fixed;text-align: center;word-break: break-all;word-wrap: break-word;'>
9
         <table id="scheduleTable" class="scheduleTable" border="1" cellspacing="0" style='width: 100%;table-layout:fixed;text-align: center;word-break: break-all;word-wrap: break-word;'>
10
             <tr>
10
             <tr>
11
-                <td rowspan="2">分区</td>
12
-                <td rowspan="2">机号</td>
11
+                <td rowspan="2" width="100">分区</td>
12
+                <td rowspan="2" width="100">机号</td>
13
                 <td colspan="3" v-if="first_day == 1">周一({{ weekTitle[0] }})</td>
13
                 <td colspan="3" v-if="first_day == 1">周一({{ weekTitle[0] }})</td>
14
                 <td colspan="3" v-if="second_day == 2">周二({{ weekTitle[1] }})</td>
14
                 <td colspan="3" v-if="second_day == 2">周二({{ weekTitle[1] }})</td>
15
                 <td colspan="3" v-if="three_day == 3">周三({{ weekTitle[2] }})</td>
15
                 <td colspan="3" v-if="three_day == 3">周三({{ weekTitle[2] }})</td>

+ 2 - 2
src/xt_pages/workforce/scheduleTablePrintTwo.vue View File

8
       <div class="tab" style="margin-top: 10px;">
8
       <div class="tab" style="margin-top: 10px;">
9
         <table id="scheduleTable" class="scheduleTable" border="1" cellspacing="0" style='width: 100%;table-layout:fixed;text-align: center;word-break: break-all;word-wrap: break-word;'>
9
         <table id="scheduleTable" class="scheduleTable" border="1" cellspacing="0" style='width: 100%;table-layout:fixed;text-align: center;word-break: break-all;word-wrap: break-word;'>
10
             <tr>
10
             <tr>
11
-                <td rowspan="2">分区</td>
12
-                <td rowspan="2">机号</td>
11
+                <td rowspan="2" width="100">分区</td>
12
+                <td rowspan="2" width="100">机号</td>
13
                 <td colspan="3" v-if="first_day == 1">周一({{ weekTitle[0] }})</td>
13
                 <td colspan="3" v-if="first_day == 1">周一({{ weekTitle[0] }})</td>
14
                 <td colspan="3" v-if="second_day == 2">周二({{ weekTitle[1] }})</td>
14
                 <td colspan="3" v-if="second_day == 2">周二({{ weekTitle[1] }})</td>
15
                 <td colspan="3" v-if="three_day == 3">周三({{ weekTitle[2] }})</td>
15
                 <td colspan="3" v-if="three_day == 3">周三({{ weekTitle[2] }})</td>