Sfoglia il codice sorgente

修改打印单和检验检查相关

张保健 4 anni fa
parent
commit
2ed7e9f430

+ 39 - 3
src/api/integration.js Vedi File

@@ -8,6 +8,45 @@ export function fetchPatientList(params) {
8 8
   })
9 9
 }
10 10
 
11
+export function saveinspectionsysitemid(params) {
12
+  return request({
13
+    url: '/api/patienthis/saveinspectionsysitemid',
14
+    method: 'post',
15
+    params: params
16
+  })
17
+}
18
+
19
+export function getsysinspectionlist(params) {
20
+  return request({
21
+    url: '/api/integration/sysinspectionlist',
22
+    method: 'get',
23
+    params: params
24
+  })
25
+}
26
+
27
+export function getsynclist(params) {
28
+  return request({
29
+    url: '/api/integration/synclist',
30
+    method: 'get',
31
+    params: params
32
+  })
33
+}
34
+
35
+export function saveInterface(params) {
36
+  return request({
37
+    url: '/api/patienthis/saveinterface',
38
+    method: 'post',
39
+    params: params
40
+  })
41
+}
42
+
43
+export function getInterface(params) {
44
+  return request({
45
+    url: '/api/patienthis/getinterface',
46
+    method: 'post',
47
+    params: params
48
+  })
49
+}
11 50
 
12 51
 export function fetchAdminList(params) {
13 52
   return request({
@@ -17,7 +56,6 @@ export function fetchAdminList(params) {
17 56
   })
18 57
 }
19 58
 
20
-
21 59
 export function createPatientHis(params) {
22 60
   return request({
23 61
     url: '/api/patienthis/create',
@@ -33,8 +71,6 @@ export function editPatientHis(params) {
33 71
   })
34 72
 }
35 73
 
36
-
37
-
38 74
 export function createAdminHis(params) {
39 75
   return request({
40 76
     url: '/api/adminhis/create',

+ 2 - 1
src/store/modules/globalConfig.js Vedi File

@@ -478,7 +478,8 @@ const global_config = {
478 478
     puncture_way: [
479 479
       { id: 1, name: '绳梯' },
480 480
       { id: 2, name: '扣眼' },
481
-      { id: 3, name: '区域' }
481
+      { id: 3, name: '区域' },
482
+      { id: 4, name: '绳梯和扣眼' }
482 483
     ],
483 484
     venous_catheterization: [
484 485
       { id: 1, name: '长期' },

File diff suppressed because it is too large
+ 2003 - 1312
src/xt_pages/dialysis/batch_print/batch_print_order_other.vue


+ 41 - 56
src/xt_pages/dialysis/batch_print/batch_print_order_other_one.vue Vedi File

@@ -20,32 +20,32 @@
20 20
             </div>
21 21
             <div class="inline_block" style="margin-left: 5px;">
22 22
               住院号:
23
-              <div class="under_line" style="width: 70px;text-align: left" v-if="record.receive_assessment.admission_number">
23
+              <div class="under_line" style="width: 50px;text-align: left" v-if="record.receive_assessment.admission_number">
24 24
                 {{record.receive_assessment.condition == 1?record.receive_assessment.admission_number:'/'}}
25 25
               </div>
26
-              <div class="under_line" style="width: 70px;" v-else>
26
+              <div class="under_line" style="width: 50px;" v-else>
27 27
                 {{'/'}}
28 28
               </div>
29 29
             </div>
30
-            <div class="inline_block" style="margin-left:10px;">
30
+            <div class="inline_block" style="margin-left:5px;">
31 31
               姓名:
32 32
               <div class="under_line" style="width: 50px;text-align: left">{{ record.patient.name }}</div>
33 33
             </div>
34
-            <div class="inline_block" style="margin-left: 10px;">
34
+            <div class="inline_block" style="margin-left: 5px;">
35 35
               性别:
36 36
               <check-box text="男" :checked="record.patient.gender == 1"></check-box>
37 37
               &nbsp;
38 38
               <check-box text="女" :checked="record.patient.gender == 2"></check-box>
39 39
             </div>
40
-            <div class="inline_block" style="margin-left: 10px;">
40
+            <div class="inline_block" style="margin-left: 5px;">
41 41
               年龄:
42 42
               <div class="under_line" style="width:30px;text-align: left">{{getAge(record.patient)}}</div>
43 43
44 44
             </div>
45 45
 
46
-            <div class="inline_block" style="margin-left: 10px;">
46
+            <div class="inline_block" style="margin-left: 5px;">
47 47
               诊断:
48
-              <div class="under_line_two" style="width: 180px;text-align: left">{{record.patient.diagnose}}</div>
48
+              <div class="under_line_two" style="width: 160px;text-align: left">{{record.patient.diagnose}}</div>
49 49
             </div>
50 50
 
51 51
           </div>
@@ -76,45 +76,31 @@
76 76
                       <!--<check-box text="轮椅" :checked="isCheckBoxChecked(record.receive_assessment, 'way', 3)"></check-box>-->
77 77
                       <!--<check-box text="平车" :checked="isCheckBoxChecked(record.receive_assessment, 'way', 4)"></check-box>-->
78 78
                     </div>
79
-                    <div class="inline_block" style="margin-left: 30px;">
80
-                      透析频次:
81
-                      <div class="under_line" style="width: 30px;text-align: left">
82
-                        {{record.assessment_before_dislysis&&record.assessment_before_dislysis.dialysis_count?record.assessment_before_dislysis.dialysis_count:'/'}}
83
-                      </div>
84
-                      次/周
79
+                    <div class="inline_block" style="margin-left: 10px;">
80
+                      意识:
81
+                      <check-box v-for="(item, index) in consciousness_arr" :key="index" :text="item.name" :checked=" isCheckBoxChecked( record.receive_assessment, 'consciousness', item.id ) " ></check-box>
85 82
                     </div>
86
-                    <div class="inline_block" style="margin-left: 30px;">
83
+                    
84
+                    <div class="inline_block" style="margin-left: 10px;">
87 85
                       透析机编号:
88 86
                       <div class="under_line" style="width: 40px;text-align: left">{{record.dialysis_order&&record.dialysis_order.device_number&&record.dialysis_order.device_number.number.length > 0?record.dialysis_order.device_number.number:record.device_number.number}}</div>
89 87
                       型号:
90 88
                       <div class="under_line" style="width: 70px;text-align: left">{{record.assessment_before_dislysis&&record.assessment_before_dislysis.machine_type&&record.assessment_before_dislysis.machine_type.length > 0 ? record.assessment_before_dislysis.machine_type:''}}</div>
91 89
                     </div>
92
-                  </div>
90
+                    </div>
93 91
                   <div class="row" style="padding: 2px 0;line-height:19px;">
94 92
                     <div class="inline_block" >
95
-                      意识:
96
-                      <check-box
97
-                        v-for="(item, index) in consciousness_arr" :key="index"
98
-                        :text="item.name"
99
-
100
-                        :checked="
101
-                            isCheckBoxChecked(
102
-                              record.receive_assessment,
103
-                              'consciousness',
104
-                              item.id
105
-                            )
106
-                          "
107
-                      ></check-box>
108
-                      <!--<check-box text="清醒" :checked="isCheckBoxChecked(record.receive_assessment, 'consciousness', 1)"></check-box>-->
109
-                      <!--<check-box text="嗜睡" :checked="isCheckBoxChecked(record.receive_assessment, 'consciousness', 2)"></check-box>-->
110
-                      <!--<check-box text="昏迷" :checked="isCheckBoxChecked(record.receive_assessment, 'consciousness', 3)"></check-box>-->
111
-                      <!--<check-box text="模糊" :checked="isCheckBoxChecked(record.receive_assessment, 'consciousness', 4)"></check-box>-->
93
+                      透析频次:
94
+                      <div class="under_line" style="width: 30px;text-align: left">
95
+                        {{record.assessment_before_dislysis&&record.assessment_before_dislysis.dialysis_count?record.assessment_before_dislysis.dialysis_count:'/'}}
96
+                      </div>
97
+                      次/周
112 98
                     </div>
113
-                    <div class="inline_block"  style="margin-left: 5px;">
99
+                    <div class="inline_block"  style="margin-left: 10px;">
114 100
                       活动性出血:
115 101
                       <check-box text="无"  :checked="isCheckBoxChecked(record.assessment_before_dislysis, 'is_hemorrhage', 2)"></check-box>
116 102
                       <check-box text="异常" :checked="isCheckBoxChecked(record.assessment_before_dislysis, 'is_hemorrhage', 1)"></check-box>
117
-                      &nbsp;
103
+                      (&nbsp;
118 104
                       <check-box text="穿刺点渗血" :checked="record.assessment_before_dislysis&&record.assessment_before_dislysis.is_hemorrhage==1&&record.assessment_before_dislysis.hemorrhage.indexOf('穿刺点渗血')>-1?true:false"></check-box>
119 105
                       <check-box text="牙龈出血" :checked="record.assessment_before_dislysis&&record.assessment_before_dislysis.is_hemorrhage==1&&record.assessment_before_dislysis.hemorrhage.indexOf('牙龈出血')>-1?true:false"></check-box>
120 106
                       <check-box text="消化道出血" :checked="record.assessment_before_dislysis&&record.assessment_before_dislysis.is_hemorrhage==1&&record.assessment_before_dislysis.hemorrhage.indexOf('消化道出血')>-1?true:false"></check-box>
@@ -123,7 +109,7 @@
123 109
                       <div class="under_line" style="width: 70px;text-align: left">
124 110
                         {{isCheckBoxChecked(record.assessment_before_dislysis, 'is_hemorrhage', 1)?record.assessment_before_dislysis.hemorrhage_other:''}}
125 111
                       </div>
126
-                      &nbsp;
112
+                      &nbsp;)
127 113
                     </div>
128 114
 
129 115
                   </div>
@@ -318,7 +304,7 @@
318 304
                       <td width="30">P<br/>次/分</td>
319 305
                       <td width="30">R<br/>次/分</td>
320 306
                       <td width="100">BP<br/>mmHg</td>
321
-                      <td width="60">静脉压/动脉压<br/>mmHg</td>
307
+                      <td width="70">静脉压/动脉压<br/>mmHg</td>
322 308
                       <td width="80">血流量<br/>ml/min</td>
323 309
                       <td width="90">超滤量累计L</td>
324 310
                       <td width="80">钠浓度<br/>mmol/L</td>
@@ -423,7 +409,7 @@
423 409
                       <td width="30">P<br/>次/分</td>
424 410
                       <td width="30">R<br/>次/分</td>
425 411
                       <td width="100">BP<br/>mmHg</td>
426
-                      <td width="60">静脉压/动脉压<br/>mmHg</td>
412
+                      <td width="70">静脉压/动脉压<br/>mmHg</td>
427 413
                       <td width="80">血流量<br/>ml/min</td>
428 414
                       <td width="90">超滤量累计L</td>
429 415
                       <td width="80">钠浓度<br/>mmol/L</td>
@@ -532,14 +518,14 @@
532 518
                       <check-box text="+++" :checked="isCheckBoxChecked(record.assessment_after_dislysis, 'arterial_tube', 4)"></check-box>
533 519
                     </div>
534 520
                     <div class="inline_block">
535
-                      &emsp; 静脉管道:
521
+                       静脉管道:
536 522
                       <check-box text="0" :checked="isCheckBoxChecked(record.assessment_after_dislysis, 'intravenous_tube', 1)"></check-box>
537 523
                       <check-box text="+" :checked="isCheckBoxChecked(record.assessment_after_dislysis, 'intravenous_tube', 2)"></check-box>
538 524
                       <check-box text="++" :checked="isCheckBoxChecked(record.assessment_after_dislysis, 'intravenous_tube', 3)"></check-box>
539 525
                       <check-box text="+++" :checked="isCheckBoxChecked(record.assessment_after_dislysis, 'intravenous_tube', 4)"></check-box>
540 526
                     </div>
541 527
                     <div class="inline_block">
542
-                      &emsp;透析器:
528
+                      透析器:
543 529
                       <check-box text="0" :checked="isCheckBoxChecked(record.assessment_after_dislysis, 'dialyzer', 1)"></check-box>
544 530
                       <check-box text="+" :checked="isCheckBoxChecked(record.assessment_after_dislysis, 'dialyzer', 2)"></check-box>
545 531
                       <check-box text="++" :checked="isCheckBoxChecked(record.assessment_after_dislysis, 'dialyzer', 3)"></check-box>
@@ -576,15 +562,15 @@
576 562
                       &emsp;核对人:
577 563
                       <div class="under_line" style="width: 80px;text-align: left" v-if="record.dialysis_order == null">
578 564
                       </div>
579
-                      <div class="under_line" style="width: 80px;text-align: left" v-if="record.dialysis_order != null&&record.dialysis_order.start_nurse == (record.check?record.check.creater:0)">
565
+                      <div class="under_line" style="width: 80px;text-align: left" v-if="record.dialysis_order != null&&record.dialysis_order.start_nurse == (record.check?record.check.creater:-1)">
580 566
                         <span v-if="setAdminUserES(record.check, 'modifier') == ''">{{getAdminUser(record.check, 'modifier')}}</span>
581 567
                         <img class="es-img" :src="setAdminUserES(record.check, 'modifier')" alt="" srcset="" v-else>
582 568
                       </div>
583
-                      <div class="under_line" style="width: 80px;text-align: left" v-if="record.dialysis_order != null&&record.dialysis_order.start_nurse == (record.check?record.check.modifier:0)">
569
+                      <div class="under_line" style="width: 80px;text-align: left" v-if="record.dialysis_order != null&&record.dialysis_order.start_nurse == (record.check?record.check.modifier:-1)">
584 570
                         <span v-if="setAdminUserES(record.check, 'creater') == ''">{{getAdminUser(record.check, 'creater')}}</span>
585 571
                         <img class="es-img" :src="setAdminUserES(record.check, 'creater')" alt="" srcset="" v-else>
586 572
                       </div>
587
-                      <div class="under_line" style="width: 80px;text-align: left" v-if="record.dialysis_order != null&&record.dialysis_order.start_nurse != (record.check?record.check.modifier:0)&&record.dialysis_order.start_nurse != (record.check?record.check.creater:0)">
573
+                      <div class="under_line" style="width: 80px;text-align: left" v-if="record.dialysis_order != null&&record.dialysis_order.start_nurse != (record.check?record.check.modifier:-1)&&record.dialysis_order.start_nurse != (record.check?record.check.creater:-1)">
588 574
                         <span v-if="setAdminUserES(record.check, 'creater') == ''">{{getAdminUser(record.check, 'creater')}}</span>
589 575
                         <img class="es-img" :src="setAdminUserES(record.check, 'creater')" alt="" srcset="" v-else>
590 576
                       </div>
@@ -594,13 +580,13 @@
594 580
 
595 581
                     <div class="inline_block">
596 582
                       &emsp;核对时间:
597
-                      <div class="under_line" style="width: 200px;text-align: left" v-if="record.check == null">
583
+                      <div class="under_line" style="width: 180px;text-align: left" v-if="record.check == null">
598 584
                         <!--{{getTime(check.check_time,'{y}年{m}月{d}日 {h}时{i}分')}}-->
599 585
                       </div>
600
-                      <div class="under_line" style="width: 200px;text-align: left" v-if="record.check != null  && record.check.first_check_time < record.check.check_time">
586
+                      <div class="under_line" style="width: 180px;text-align: left" v-if="record.check != null  && record.check.first_check_time < record.check.check_time">
601 587
                         {{getTime(record.check.check_time,'{y}年{m}月{d}日 {h}时{i}分')}}
602 588
                       </div>
603
-                      <div class="under_line" style="width: 200px;text-align: left" v-if="record.check!= null  &&record.check.check_time < record.check.first_check_time">
589
+                      <div class="under_line" style="width: 180px;text-align: left" v-if="record.check!= null  &&record.check.check_time < record.check.first_check_time">
604 590
                         {{getTime(record.check.first_check_time,'{y}年{m}月{d}日 {h}时{i}分')}}
605 591
                       </div>
606 592
                     </div>
@@ -738,7 +724,6 @@
738 724
       this.intake_arr = getDataConfig('hemodialysis', 'intake')
739 725
       this.nutrition_arr = getDataConfig('hemodialysis', 'nutrition')
740 726
 
741
-
742 727
       var xtuser = this.$store.getters.xt_user
743 728
       this.orgname = xtuser.org.org_name
744 729
       //   this.orgname = "遂溪方济医院";
@@ -779,7 +764,7 @@
779 764
         var resp = rs.data
780 765
         if (resp.state == 1) {
781 766
           this.records = this.records.concat(resp.data.schedules)
782
-         // console.log('hheeeee', this.records)
767
+          // console.log('hheeeee', this.records)
783 768
           for (const recordIndex in this.records) {
784 769
             this.advice_groups = []
785 770
             this.advice_groups_2 = []
@@ -1034,7 +1019,7 @@
1034 1019
     },
1035 1020
     methods: {
1036 1021
       printAction: function() {
1037
-        const style = '@media print {.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: 14px;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:950px;}.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;}'
1022
+        const style = '@media print {.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: 16px;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: 16px;padding: 5px 5px;line-height: 18px;}.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:950px;}.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;}'
1038 1023
 
1039 1024
         printJS({
1040 1025
           printable: 'print_content',
@@ -1170,10 +1155,10 @@
1170 1155
           return record[key] == target_value
1171 1156
         }
1172 1157
       }, getAge: function(val) {
1173
-          if (val.birthday == 0) {
1174
-            return ''
1175
-          }
1176
-          return jsGetAge(uParseTime(val.birthday, '{y}-{m}-{d}'), '-')
1158
+        if (val.birthday == 0) {
1159
+          return ''
1160
+        }
1161
+        return jsGetAge(uParseTime(val.birthday, '{y}-{m}-{d}'), '-')
1177 1162
       }, newAdviceGroupObject: function() {
1178 1163
         return Object.assign(
1179 1164
           {},
@@ -1213,7 +1198,7 @@
1213 1198
   }
1214 1199
 
1215 1200
   .row {
1216
-    font-size: 14px;
1201
+    font-size: 16px;
1217 1202
     line-height: 20px;
1218 1203
     padding: 5px 0;
1219 1204
   }
@@ -1297,9 +1282,9 @@
1297 1282
   .print_page_main_content .proj_table .inside_table tr td {
1298 1283
     border: 1px solid;
1299 1284
     text-align: center;
1300
-    font-size: 14px;
1301
-    padding: 8px 5px;
1302
-    line-height: 16px;
1285
+    font-size: 16px;
1286
+    padding: 5px 5px;
1287
+    line-height: 18px;
1303 1288
   }
1304 1289
 
1305 1290
   .print-table-no {

+ 38 - 45
src/xt_pages/dialysis/batch_print/batch_print_order_other_two.vue Vedi File

@@ -20,32 +20,32 @@
20 20
             </div>
21 21
             <div class="inline_block" style="margin-left: 5px;">
22 22
               住院号:
23
-              <div class="under_line" style="width: 70px;text-align: left" v-if="record.receive_assessment.admission_number">
23
+              <div class="under_line" style="width: 50px;text-align: left" v-if="record.receive_assessment.admission_number">
24 24
                 {{record.receive_assessment.condition == 1?record.receive_assessment.admission_number:'/'}}
25 25
               </div>
26
-              <div class="under_line" style="width: 70px;" v-else>
26
+              <div class="under_line" style="width: 50px;" v-else>
27 27
                 {{'/'}}
28 28
               </div>
29 29
             </div>
30
-            <div class="inline_block" style="margin-left:10px;">
30
+            <div class="inline_block" style="margin-left:5px;">
31 31
               姓名:
32 32
               <div class="under_line" style="width: 50px;text-align: left">{{ record.patient.name }}</div>
33 33
             </div>
34
-            <div class="inline_block" style="margin-left: 10px;">
34
+            <div class="inline_block" style="margin-left: 5px;">
35 35
               性别:
36 36
               <check-box text="男" :checked="record.patient.gender == 1"></check-box>
37 37
               &nbsp;
38 38
               <check-box text="女" :checked="record.patient.gender == 2"></check-box>
39 39
             </div>
40
-            <div class="inline_block" style="margin-left: 10px;">
40
+            <div class="inline_block" style="margin-left: 5px;">
41 41
               年龄:
42 42
               <div class="under_line" style="width:30px;text-align: left">{{getAge(record.patient)}}</div>
43 43
44 44
             </div>
45 45
 
46
-            <div class="inline_block" style="margin-left: 10px;">
46
+            <div class="inline_block" style="margin-left: 5px;">
47 47
               诊断:
48
-              <div class="under_line_two" style="width: 180px;text-align: left">{{record.patient.diagnose}}</div>
48
+              <div class="under_line_two" style="width: 160px;text-align: left">{{record.patient.diagnose}}</div>
49 49
             </div>
50 50
 
51 51
           </div>
@@ -78,12 +78,12 @@
78 78
                   <!--<check-box text="HP" :checked="isCheckBoxChecked(record.prescription, 'mode_id', 4)"></check-box>-->
79 79
                   <!--<check-box text="HD+HP" :checked="isCheckBoxChecked(record.prescription, 'mode_id', 3)"></check-box>-->
80 80
                   <!--</div>-->
81
-                  <div class="inline_block" style="margin-left:20px;">
81
+                  <div class="inline_block" style="margin-left:10px;">
82 82
                     其它:
83
-                    <div class="under_line" style="width: 100px;text-align: left">{{ record.prescription&&record.prescription.mode_id>5?record.prescription.mode:''}}
83
+                    <div class="under_line" style="width: 60px;text-align: left">{{ record.prescription&&record.prescription.mode_id>5?record.prescription.mode:''}}
84 84
                     </div>
85 85
                   </div>
86
-                  <div class="inline_block" style="margin-left:20px;">
86
+                  <div class="inline_block" style="margin-left:10px;">
87 87
                     治疗时间:
88 88
                     <div class="under_line" style="width: 30px;text-align: left">
89 89
                       {{record.prescription&&record.prescription.dialysis_duration_hour?record.prescription.dialysis_duration_hour:'0'}}
@@ -95,7 +95,7 @@
95 95
                     min
96 96
                   </div>
97 97
 
98
-                  <div class="inline_block" style="margin-left:20px;">
98
+                  <div class="inline_block" style="margin-left:10px;">
99 99
                     病情:
100 100
                     <check-box
101 101
                       v-for="(item, index) in sick_condition_arr" :key="index"
@@ -507,7 +507,6 @@
507 507
       }
508 508
     },
509 509
     created() {
510
-
511 510
       this.way_arr = getDataConfig('hemodialysis', 'way')
512 511
       this.consciousness_arr = getDataConfig('hemodialysis', 'consciousness')
513 512
       this.appetite_arr = getDataConfig('hemodialysis', 'appetite')
@@ -517,8 +516,6 @@
517 516
       this.intake_arr = getDataConfig('hemodialysis', 'intake')
518 517
       this.nutrition_arr = getDataConfig('hemodialysis', 'nutrition')
519 518
 
520
-
521
-
522 519
       var xtuser = this.$store.getters.xt_user
523 520
       this.orgname = xtuser.org.org_name
524 521
       //   this.orgname = "遂溪方济医院";
@@ -563,23 +560,23 @@
563 560
             this.advice_groups = []
564 561
             this.advice_groups_2 = []
565 562
             var dlegh = 0
566
-            if((this.records[recordIndex].assessment_before_dislysis
567
-              && this.records[recordIndex].assessment_before_dislysis.systolic_blood_pressure != 0
568
-              &&this.records[recordIndex].assessment_before_dislysis.diastolic_blood_pressure != 0)
569
-              || (this.records[recordIndex].assessment_before_dislysis&&this.records[recordIndex].assessment_before_dislysis.remark.length > 0)
570
-              ||(this.records[recordIndex].assessment_before_dislysis&&this.records[recordIndex].assessment_before_dislysis.pulse_frequency != 0)
571
-              ||(this.records[recordIndex].assessment_before_dislysis&&this.records[recordIndex].assessment_before_dislysis.breathing_rate  != 0)
572
-              ||(this.records[recordIndex].assessment_before_dislysis&&this.records[recordIndex].assessment_before_dislysis.temperature  != 0)) {
563
+            if ((this.records[recordIndex].assessment_before_dislysis &&
564
+            this.records[recordIndex].assessment_before_dislysis.systolic_blood_pressure != 0 &&
565
+            this.records[recordIndex].assessment_before_dislysis.diastolic_blood_pressure != 0) ||
566
+            (this.records[recordIndex].assessment_before_dislysis && this.records[recordIndex].assessment_before_dislysis.remark.length > 0) ||
567
+            (this.records[recordIndex].assessment_before_dislysis && this.records[recordIndex].assessment_before_dislysis.pulse_frequency != 0) ||
568
+            (this.records[recordIndex].assessment_before_dislysis && this.records[recordIndex].assessment_before_dislysis.breathing_rate != 0) ||
569
+            (this.records[recordIndex].assessment_before_dislysis && this.records[recordIndex].assessment_before_dislysis.temperature != 0)) {
573 570
               var nl = 8
574 571
               this.records[recordIndex].print_length = 8
575
-            } else{
572
+            } else {
576 573
               var nl = 9
577 574
               this.records[recordIndex].print_length = 9
578 575
             }
579 576
             if (this.records[recordIndex].monitor_records && this.records[recordIndex].monitor_records.length < 8) {
580 577
               dlegh = nl - this.records[recordIndex].monitor_records.length
581 578
             }
582
-            if(this.records[recordIndex].monitor_records.length <=0 ){
579
+            if (this.records[recordIndex].monitor_records.length <= 0) {
583 580
               dlegh = nl
584 581
             }
585 582
             if (dlegh > 0) {
@@ -592,7 +589,7 @@
592 589
             }
593 590
 
594 591
             this.records[recordIndex].monitor_records2 = []
595
-            if (this.records[recordIndex].monitor_records.length > 13){
592
+            if (this.records[recordIndex].monitor_records.length > 13) {
596 593
               const tempMonitors = []
597 594
               const tempMonitors2 = []
598 595
 
@@ -647,7 +644,6 @@
647 644
                 if ('children' in this.doctor_advices[index] && this.doctor_advices[index].children.length > 0) {
648 645
                   new_advice_index = index + this.doctor_advices[index].children.length + 1
649 646
 
650
-
651 647
                   var doctor_advice = {
652 648
                     delivery_way: this.doctor_advices[index].delivery_way,
653 649
                     execution_frequency: this.doctor_advices[index].execution_frequency,
@@ -659,8 +655,7 @@
659 655
                     execution_staff: this.doctor_advices[index].execution_staff,
660 656
                     checker: this.doctor_advices[index].checker,
661 657
                     advice_doctor: this.doctor_advices[index].advice_doctor,
662
-                    execution_time: this.doctor_advices[index].execution_time,
663
-
658
+                    execution_time: this.doctor_advices[index].execution_time
664 659
 
665 660
                   }
666 661
                   doctor_advice['isShow'] = 1
@@ -682,8 +677,8 @@
682 677
                   if (advice.parent_id > 0) {
683 678
                     if (this.advice_groups.length > 0) {
684 679
                       var parent_group = this.advice_groups[
685
-                      this.advice_groups.length - 1
686
-                        ]
680
+                        this.advice_groups.length - 1
681
+                      ]
687 682
                       if (parent_group.advices.length > 0) {
688 683
                         if (parent_group.advices[0].id == advice.parent_id) {
689 684
                           parent_group.advices.push(advice)
@@ -729,8 +724,8 @@
729 724
                     if (advice.parent_id > 0) {
730 725
                       if (this.advice_groups_2.length > 0) {
731 726
                         var parent_group = this.advice_groups_2[
732
-                        this.advice_groups_2.length - 1
733
-                          ]
727
+                          this.advice_groups_2.length - 1
728
+                        ]
734 729
                         if (parent_group.advices.length > 0) {
735 730
                           if (parent_group.advices[0].id == advice.parent_id) {
736 731
                             parent_group.advices.push(advice)
@@ -800,7 +795,7 @@
800 795
     },
801 796
     methods: {
802 797
       printAction: function() {
803
-        const style = '@media print {.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: 14px;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;}'
798
+        const style = '@media print {.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: 16px;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;}'
804 799
 
805 800
         printJS({
806 801
           printable: 'print_content',
@@ -882,23 +877,22 @@
882 877
         } else {
883 878
           return ''
884 879
         }
885
-      },getFloat: function(x) {
880
+      }, getFloat: function(x) {
886 881
         if (x != '.') {
887
-          var f = Math.round(x * 100) / 100;
888
-          var s = f.toString();
889
-          var rs = s.indexOf('.');
882
+          var f = Math.round(x * 100) / 100
883
+          var s = f.toString()
884
+          var rs = s.indexOf('.')
890 885
           if (rs <= 0) {
891
-            rs = s.length;
892
-            s += '.';
886
+            rs = s.length
887
+            s += '.'
893 888
           }
894 889
           while (s.length <= rs + 1) {
895
-            s += '0';
890
+            s += '0'
896 891
           }
897
-          return s;
892
+          return s
898 893
         } else {
899
-          return '0.0';
894
+          return '0.0'
900 895
         }
901
-
902 896
       },
903 897
       getAdminUser(key, id) {
904 898
         if (typeof (key) === 'undefined' || key == null || typeof (key[id]) === 'undefined') {
@@ -941,7 +935,6 @@
941 935
           return ''
942 936
         }
943 937
         return jsGetAge(uParseTime(val.birthday, '{y}-{m}-{d}'), '-')
944
-
945 938
       }, newAdviceGroupObject: function() {
946 939
         return Object.assign(
947 940
           {},
@@ -950,7 +943,7 @@
950 943
             advices: []
951 944
           }
952 945
         )
953
-      },getNumber:function(record) {
946
+      }, getNumber: function(record) {
954 947
         console.log(record)
955 948
       }
956 949
     }
@@ -981,7 +974,7 @@
981 974
   }
982 975
 
983 976
   .row {
984
-    font-size: 14px;
977
+    font-size: 16px;
985 978
     line-height: 20px;
986 979
     padding: 5px 0;
987 980
   }

+ 29 - 9
src/xt_pages/dialysis/dialysisPrintOrder.vue Vedi File

@@ -338,7 +338,8 @@ export default {
338 338
       const style = '@media print {.dialysis-print-order{width:960px;margin:0 auto}.dialysis-print-order .order-yy-name{margin:auto;text-align:center;font-size:20px;letter-spacing:5px}.dialysis-print-order .order-title{margin:auto;font-weight:600;text-align:center;font-size:22px;padding:10px 20px 20px 20px}.dialysis-print-order .table-box{width:100%;line-height:23px;font-size:14px}.dialysis-print-order .print-table{width:100%;text-align:center;border-collapse:collapse;line-height:25px;font-size:14px}.dialysis-print-order .print-table-no{width:100%;text-align:center;border-collapse:collapse;font-size:14px}.dialysis-print-order .under-line{border-bottom:1px solid #999;width:95%;text-align:center;margin-left:2px}.dialysis-print-order .title-box{text-align:center;font-size:16px;border:1px solid #666}.dialysis-print-order .radio-lebel-box{font-weight:400;cursor:pointer}.dialysis-print-order .radio-no{opacity:0;outline:0;position:absolute;margin:0;width:0;height:0;z-index:-1}.dialysis-print-order .radio-inner{white-space:nowrap;cursor:pointer;outline:0;display:inline-block;line-height:1;position:relative;vertical-align:middle}.dialysis-print-order .radio-fang{display:inline-block;position:relative;border:1px solid #000;box-sizing:border-box;width:14px;height:14px;background-color:#fff;z-index:1;transition:border-color .25s cubic-bezier(.71,-.46,.29,1.46),background-color .25s cubic-bezier(.71,-.46,.29,1.46)}.dialysis-print-order .is-checked-radio::after{content:"√";font-size:15px}}.dialysis-print-order .print-table-no tr td { padding: 8px 5px; line-height: 25px; }.es-img{height: 20px; }.advice-name{text-align: left;}.advice-children{display:flex;} .dialysis-print-order .print-table tr td{padding: 0px 0px;} .print-template-two tr {line-height: 30px;}   .title-box-pro{border: 0 #fff;line-height: 40px;height: 40px;text-align: left;padding-left: 10px !important;}  .text-align-left{text-align: left !important;padding-left:10px !important;font-size: 14px !important;line-height: 25px;}'
339 339
       const style2 = '@media print {.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: 14px;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: 3px 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-50{margin-bottom:50px;}.margin-bottom-300 {margin-bottom:450px;}.margin-bottom-600 {margin-bottom:600px;}.margin-bottom-900 {margin-bottom:900px;}.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%;}.check_box{width:15px !important;height:15px !important;}.did_checke::after {font-size: 8px;margin-left: 2px;margin-top: 12px !important;position: absolute;}'
340 340
       const style3 = '@media print {.dialysis-print-order{width:960px;margin:0 auto}.dialysis-print-order .order-yy-name{margin:auto;text-align:center;font-size:20px;letter-spacing:5px}.dialysis-print-order .order-title{margin:auto;font-weight:600;text-align:center;font-size:22px;padding:10px 20px 20px 20px}.dialysis-print-order .table-box{width:100%;line-height:23px;font-size:14px}.dialysis-print-order .print-table{width:100%;text-align:center;border-collapse:collapse;line-height:25px;font-size:14px}.dialysis-print-order .print-table-no{width:100%;text-align:center;border-collapse:collapse;font-size:14px}.dialysis-print-order .under-line{border-bottom:1px solid #999;width:95%;text-align:center;margin-left:2px}.dialysis-print-order .title-box{text-align:center;font-size:16px;border:1px solid #666}.dialysis-print-order .radio-lebel-box{font-weight:400;cursor:pointer}.dialysis-print-order .radio-no{opacity:0;outline:0;position:absolute;margin:0;width:0;height:0;z-index:-1}.dialysis-print-order .radio-inner{white-space:nowrap;cursor:pointer;outline:0;display:inline-block;line-height:1;position:relative;vertical-align:middle}.dialysis-print-order .radio-fang{display:inline-block;position:relative;border:1px solid #000;box-sizing:border-box;width:14px;height:14px;background-color:#fff;z-index:1;transition:border-color .25s cubic-bezier(.71,-.46,.29,1.46),background-color .25s cubic-bezier(.71,-.46,.29,1.46)}.dialysis-print-order .is-checked-radio::after{content:"√";font-size:15px}}.dialysis-print-order  tr td { padding: 8px 5px; line-height: 25px; }.es-img{height: 20px; }.advice-name{text-align: left;}.advice-children{display:flex;} .dialysis-print-order .print-table tr td{padding: 2px 5px;} .print-template-two tr {line-height: 30px;}   .title-box-pro{border: 0 #fff;line-height: 40px;height: 40px;text-align: left;padding-left: 10px !important;}  .text-align-left{text-align: left !important;padding-left:10px !important;font-size: 14px !important;line-height: 25px;}'
341
-      
341
+      const style4 = '@media print {.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: 16px;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: 3px 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: 16px;padding: 6px 5px;line-height: 18px;}.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-50{margin-bottom:50px;}.margin-bottom-300 {margin-bottom:450px;}.margin-bottom-600 {margin-bottom:600px;}.margin-bottom-900 {margin-bottom:900px;}.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%;}.check_box{width:15px !important;height:15px !important;}.did_checke::after {font-size: 8px;margin-left: 2px;margin-top: 12px !important;position: absolute;}'
342
+
342 343
       if (this.org_template_info.template_id == 1) {
343 344
         printJS({
344 345
           printable: 'dialysis-print-box',
@@ -346,16 +347,20 @@ export default {
346 347
           style: style,
347 348
           scanStyles: false
348 349
         })
349
-      } else if (
350
-        this.org_template_info.template_id == 2 ||
351
-        this.org_template_info.template_id == 0
352
-      ) {
350
+      } else if (this.org_template_info.template_id == 0) {
353 351
         printJS({
354 352
           printable: 'dialysis-print-box-1',
355 353
           type: 'html',
356 354
           style: style2,
357 355
           scanStyles: false
358 356
         })
357
+      } else if (this.org_template_info.template_id == 2) {
358
+        printJS({
359
+          printable: 'dialysis-print-box-1',
360
+          type: 'html',
361
+          style: style4,
362
+          scanStyles: false
363
+        })
359 364
       } else if (this.org_template_info.template_id == 3) {
360 365
         printJS({
361 366
           printable: 'dialysis-print-box',
@@ -406,8 +411,8 @@ export default {
406 411
 
407 412
       const style =
408 413
         '@media print {.dialysis-print-order{width:960px;margin:0 auto}.dialysis-print-order .order-yy-name{margin:auto;text-align:center;font-size:20px;letter-spacing:5px}.dialysis-print-order .order-title{margin:auto;font-weight:600;text-align:center;font-size:22px;padding:10px 20px 20px 20px}.dialysis-print-order .table-box{width:100%;line-height:23px;font-size:14px}.dialysis-print-order .print-table{width:100%;text-align:center;border-collapse:collapse;line-height:25px;font-size:14px}.dialysis-print-order .print-table-no{width:100%;text-align:center;border-collapse:collapse;font-size:14px}.dialysis-print-order .under-line{border-bottom:1px solid #999;width:95%;text-align:center;margin-left:2px}.dialysis-print-order .title-box{text-align:center;font-size:16px;border:1px solid #666}.dialysis-print-order .radio-lebel-box{font-weight:400;cursor:pointer}.dialysis-print-order .radio-no{opacity:0;outline:0;position:absolute;margin:0;width:0;height:0;z-index:-1}.dialysis-print-order .radio-inner{white-space:nowrap;cursor:pointer;outline:0;display:inline-block;line-height:1;position:relative;vertical-align:middle}.dialysis-print-order .radio-fang{display:inline-block;position:relative;border:1px solid #000;box-sizing:border-box;width:14px;height:14px;background-color:#fff;z-index:1;transition:border-color .25s cubic-bezier(.71,-.46,.29,1.46),background-color .25s cubic-bezier(.71,-.46,.29,1.46)}.dialysis-print-order .is-checked-radio::after{content:"√";font-size:15px}}.dialysis-print-order .print-table-no tr td { padding: 8px 5px; line-height: 25px; }.es-img{height: 20px; }.advice-name{text-align: left;}.advice-children{display:flex;} .dialysis-print-order .print-table tr td{padding: 0px 0px;} .print-template-two tr {line-height: 30px;}   .title-box-pro{border: 0 #fff;line-height: 40px;height: 40px;text-align: left;padding-left: 10px !important;}  .text-align-left{text-align: left !important;padding-left:10px !important;font-size: 14px !important;line-height: 25px;}'
409
-      const style2 =
410
-        '@media print {.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: 14px;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: 3px 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-50{margin-bottom:50px;}.margin-bottom-300 {margin-bottom:450px;}.margin-bottom-600 {margin-bottom:600px;}.margin-bottom-900 {margin-bottom:200px;}.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%;}.check_box{width:15px !important;height:15px !important;}.did_checke::after {font-size: 8px;margin-left: 2px;margin-top: 12px !important;position: absolute;}'
414
+      const style2 = '@media print {.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: 14px;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: 3px 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-50{margin-bottom:50px;}.margin-bottom-300 {margin-bottom:450px;}.margin-bottom-600 {margin-bottom:600px;}.margin-bottom-900 {margin-bottom:200px;}.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%;}.check_box{width:15px !important;height:15px !important;}.did_checke::after {font-size: 8px;margin-left: 2px;margin-top: 12px !important;position: absolute;}'
415
+      const style3 = '@media print {.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: 16px;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: 3px 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: 16px;padding: 6px 5px;line-height: 18px;}.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-50{margin-bottom:50px;}.margin-bottom-300 {margin-bottom:450px;}.margin-bottom-600 {margin-bottom:600px;}.margin-bottom-900 {margin-bottom:200px;}.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%;}.check_box{width:15px !important;height:15px !important;}.did_checke::after {font-size: 8px;margin-left: 2px;margin-top: 12px !important;position: absolute;}'
411 416
 
412 417
       if (this.org_template_info.template_id == 1) {
413 418
         printJS({
@@ -416,8 +421,15 @@ export default {
416 421
           style: style,
417 422
           scanStyles: false
418 423
         })
424
+      } else if (this.org_template_info.template_id == 2) {
425
+        printJS({
426
+          printable: 'dialysis-print-box-1-1',
427
+          type: 'html',
428
+          style: style3,
429
+          scanStyles: false
430
+        })
419 431
       } else if (
420
-        this.org_template_info.template_id == 2 ||
432
+
421 433
         this.org_template_info.template_id == 0 ||
422 434
         this.org_template_info.template_id == 5
423 435
       ) {
@@ -437,6 +449,7 @@ export default {
437 449
         '@media print {.dialysis-print-order{width:960px;margin:0 auto}.dialysis-print-order .order-yy-name{margin:auto;text-align:center;font-size:20px;letter-spacing:5px}.dialysis-print-order .order-title{margin:auto;font-weight:600;text-align:center;font-size:22px;padding:10px 20px 20px 20px}.dialysis-print-order .table-box{width:100%;line-height:23px;font-size:14px}.dialysis-print-order .print-table{width:100%;text-align:center;border-collapse:collapse;line-height:25px;font-size:14px}.dialysis-print-order .print-table-no{width:100%;text-align:center;border-collapse:collapse;font-size:14px}.dialysis-print-order .under-line{border-bottom:1px solid #999;width:95%;text-align:center;margin-left:2px}.dialysis-print-order .title-box{text-align:center;font-size:16px;border:1px solid #666}.dialysis-print-order .radio-lebel-box{font-weight:400;cursor:pointer}.dialysis-print-order .radio-no{opacity:0;outline:0;position:absolute;margin:0;width:0;height:0;z-index:-1}.dialysis-print-order .radio-inner{white-space:nowrap;cursor:pointer;outline:0;display:inline-block;line-height:1;position:relative;vertical-align:middle}.dialysis-print-order .radio-fang{display:inline-block;position:relative;border:1px solid #000;box-sizing:border-box;width:14px;height:14px;background-color:#fff;z-index:1;transition:border-color .25s cubic-bezier(.71,-.46,.29,1.46),background-color .25s cubic-bezier(.71,-.46,.29,1.46)}.dialysis-print-order .is-checked-radio::after{content:"√";font-size:15px}}.dialysis-print-order .print-table-no tr td { padding: 8px 5px; line-height: 25px; }.es-img{height: 20px; }.advice-name{text-align: left;}.advice-children{display:flex;} .dialysis-print-order .print-table tr td{padding: 0px 0px;} .print-template-two tr {line-height: 30px;}   .title-box-pro{border: 0 #fff;line-height: 40px;height: 40px;text-align: left;padding-left: 10px !important;}  .text-align-left{text-align: left !important;padding-left:10px !important;font-size: 14px !important;line-height: 25px;}'
438 450
       const style2 =
439 451
         '@media print {.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: 14px;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: 3px 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-50{margin-bottom:50px;}.margin-bottom-300 {margin-bottom:450px;}.margin-bottom-600 {margin-bottom:600px;}.margin-bottom-900 {margin-bottom:900px;}.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%;}.check_box{width:15px !important;height:15px !important;}.did_checke::after {font-size: 8px;margin-left: 2px;margin-top: 12px !important;position: absolute;}'
452
+      const style3 = '@media print {.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: 16px;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: 3px 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: 16px;padding: 6px 5px;line-height: 18px;}.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-50{margin-bottom:50px;}.margin-bottom-300 {margin-bottom:450px;}.margin-bottom-600 {margin-bottom:600px;}.margin-bottom-900 {margin-bottom:200px;}.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%;}.check_box{width:15px !important;height:15px !important;}.did_checke::after {font-size: 8px;margin-left: 2px;margin-top: 12px !important;position: absolute;}'
440 453
 
441 454
       if (this.org_template_info.template_id == 1) {
442 455
         printJS({
@@ -445,7 +458,14 @@ export default {
445 458
           style: style,
446 459
           scanStyles: false
447 460
         })
448
-      } else if ( this.org_template_info.template_id == 2 || this.org_template_info.template_id == 0 || this.org_template_info.template_id == 5 ) {
461
+      } else if (this.org_template_info.template_id == 2) {
462
+        printJS({
463
+          printable: 'dialysis-print-box-1-2',
464
+          type: 'html',
465
+          style: style3,
466
+          scanStyles: false
467
+        })
468
+      } else if (this.org_template_info.template_id == 0 || this.org_template_info.template_id == 5) {
449 469
         printJS({
450 470
           printable: 'dialysis-print-box-1-2',
451 471
           type: 'html',

+ 266 - 274
src/xt_pages/dialysis/template/DialysisPrintOrderSix.vue Vedi File

@@ -309,7 +309,7 @@
309 309
                     内瘘:
310 310
                     <div
311 311
                       class="under_line"
312
-                      style="width: 150px;text-align: center"
312
+                      style="width: 170px;text-align: center;white-space: normal;"
313 313
                     >
314 314
                       {{
315 315
                         predialysis.internal_fistula
@@ -1112,17 +1112,12 @@
1112 1112
             </div>
1113 1113
           </div>
1114 1114
         </div>
1115
-        <div class="row">
1115
+        <div class="row" style="margin-bottom:10px;">
1116 1116
           <div class="inline_block">
1117 1117
             入科方式:
1118 1118
             <!--<check-box v-for="item, index in nutrition_arr" :key="index" :text="item.name" :checked="receiverTreatmentAccess.nutrition == item.id?true:false"></check-box>-->
1119 1119
 
1120
-            <div
1121
-              v-for="item,index in way_arr"
1122
-              class="under_line"
1123
-              v-if="receiverTreatmentAccess.way == item.id"
1124
-              style="width: 180px;text-align: left"
1125
-            >{{item.name}}</div>
1120
+            <div v-for="(item,index) in way_arr" class="under_line" v-if="receiverTreatmentAccess.way == item.id" style="width: 180px;text-align: left"  >{{item.name}}</div>
1126 1121
             <!--<div-->
1127 1122
               <!--class="under_line"-->
1128 1123
               <!--v-if="receiverTreatmentAccess.way == 0"-->
@@ -1161,7 +1156,7 @@
1161 1156
             诊断:
1162 1157
             <div
1163 1158
               class="under_line"
1164
-              style="width: 640px;text-align: left;word-break: break-all;word-wrap: break-word;display: inline-block;white-space: pre-wrap;"
1159
+              style="width: 640px;text-align: left;word-break: break-all;word-wrap: break-word;display: inline-block;"
1165 1160
             >
1166 1161
               {{ patientInfo.diagnose }}
1167 1162
             </div>
@@ -1383,7 +1378,7 @@
1383 1378
                   </div>
1384 1379
                 </div>
1385 1380
                 <div  class="row"  style="padding: 2px 0;line-height:23px;display:flex;"  >
1386
-                  <div class="inline_block" style="flex:2;">
1381
+                  <div class="inline_block" style="flex:2.5;">
1387 1382
                     凝血程度:
1388 1383
                     <div
1389 1384
                       class="under_line"
@@ -1392,11 +1387,11 @@
1392 1387
                       {{ afterdialysis.cruor ? afterdialysis.cruor : "/" }}
1393 1388
                     </div>
1394 1389
                   </div>
1395
-                  <div class="inline_block" style="flex:1;">
1390
+                  <div class="inline_block" style="flex:2;">
1396 1391
                     内瘘:
1397 1392
                     <div
1398 1393
                       class="under_line"
1399
-                      style="width: 70px;text-align: center"
1394
+                      style="width: 170px;text-align: center;white-space: normal;"
1400 1395
                     >
1401 1396
                       {{
1402 1397
                         afterdialysis.internal_fistula
@@ -1405,7 +1400,7 @@
1405 1400
                       }}
1406 1401
                     </div>
1407 1402
                   </div>
1408
-                  <div class="inline_block" style="flex:3;">
1403
+                  <div class="inline_block" style="flex:4;">
1409 1404
                     导管:
1410 1405
                     <div
1411 1406
                       class="under_line"
@@ -1778,34 +1773,34 @@ export default {
1778 1773
       nutrition_arr: [],
1779 1774
 
1780 1775
       crumbs: [
1781
-        { path: false, name: "透析管理" },
1782
-        { path: false, name: "打印单" }
1776
+        { path: false, name: '透析管理' },
1777
+        { path: false, name: '打印单' }
1783 1778
       ],
1784 1779
       operators: [],
1785 1780
       adminUser: [],
1786 1781
       check: {},
1787
-      xtdate: "",
1782
+      xtdate: '',
1788 1783
       dialysisOrder: {
1789 1784
         DeviceNumber: []
1790 1785
       },
1791 1786
       displaceLiquiPartOptions: [],
1792 1787
       operatorMaps: {},
1793 1788
       complications: [
1794
-        "低血压",
1795
-        "高血压",
1796
-        "心律失常",
1797
-        "头晕",
1798
-        "头痛",
1799
-        "呕吐",
1800
-        "抽搐",
1801
-        "出血",
1802
-        "心衰",
1803
-        "腹痛"
1789
+        '低血压',
1790
+        '高血压',
1791
+        '心律失常',
1792
+        '头晕',
1793
+        '头痛',
1794
+        '呕吐',
1795
+        '抽搐',
1796
+        '出血',
1797
+        '心衰',
1798
+        '腹痛'
1804 1799
       ],
1805 1800
       jilurow: 0,
1806 1801
       advice_jilurow: 0,
1807 1802
       loading: false,
1808
-      orgname: "",
1803
+      orgname: '',
1809 1804
       patientInfo_gender_1: false,
1810 1805
       patientInfo_gender_2: false,
1811 1806
       patientInfo_source_2: false,
@@ -1818,30 +1813,30 @@ export default {
1818 1813
       dialysateFormulationOptions: {},
1819 1814
       totollength: 0,
1820 1815
       queryParams: {
1821
-        xtdate: "",
1822
-        xtno: ""
1816
+        xtdate: '',
1817
+        xtno: ''
1823 1818
       },
1824 1819
       patientInfo: {
1825
-        birth: "",
1826
-        age: "",
1820
+        birth: '',
1821
+        age: '',
1827 1822
         DialysisSchedule: {
1828
-          device_number: { number: "" },
1829
-          device_zone: { name: "" }
1823
+          device_number: { number: '' },
1824
+          device_zone: { name: '' }
1830 1825
         },
1831 1826
         gender: 0
1832 1827
       },
1833 1828
       predialysis: {
1834
-        score: "",
1835
-        internal_fistula: "",
1836
-        internal_fistula_skin: "",
1837
-        catheter: "",
1838
-        blood_access_part_opera_name: ""
1829
+        score: '',
1830
+        internal_fistula: '',
1831
+        internal_fistula_skin: '',
1832
+        catheter: '',
1833
+        blood_access_part_opera_name: ''
1839 1834
       },
1840 1835
       afterdialysis: {
1841
-        complications_index: ""
1836
+        complications_index: ''
1842 1837
       },
1843 1838
       prescription: {
1844
-        dialysate_formulation_name: "",
1839
+        dialysate_formulation_name: '',
1845 1840
         device: {}
1846 1841
       },
1847 1842
       advices: [],
@@ -1862,110 +1857,110 @@ export default {
1862 1857
 
1863 1858
       AlPanel: {
1864 1859
         id: 0,
1865
-        name: "",
1860
+        name: '',
1866 1861
         type: 1,
1867 1862
         shouji: 2,
1868 1863
         weichi: 2,
1869 1864
         zongliang: 2,
1870 1865
         gaimingcheng: -1,
1871 1866
         gaijiliang: -1,
1872
-        shouji_unit: "mg",
1873
-        weichi_unit: "mg/h",
1874
-        zongliang_unit: "mg",
1875
-        gaimingcheng_unit: "",
1876
-        gaijiliang_unit: ""
1867
+        shouji_unit: 'mg',
1868
+        weichi_unit: 'mg/h',
1869
+        zongliang_unit: 'mg',
1870
+        gaimingcheng_unit: '',
1871
+        gaijiliang_unit: ''
1877 1872
       }
1878
-    };
1873
+    }
1879 1874
   },
1880 1875
   methods: {
1881 1876
     getDisplaceLiquiPart: function(val) {
1882
-      let displace_liqui_part_name = "/";
1883
-      const displace_liqui_part = this.displaceLiquiPartOptions;
1877
+      let displace_liqui_part_name = '/'
1878
+      const displace_liqui_part = this.displaceLiquiPartOptions
1884 1879
       for (let i = 0; i < displace_liqui_part.length; i++) {
1885 1880
         if (displace_liqui_part[i].id == val) {
1886
-          displace_liqui_part_name = displace_liqui_part[i].name;
1881
+          displace_liqui_part_name = displace_liqui_part[i].name
1887 1882
         }
1888 1883
       }
1889
-      return displace_liqui_part_name;
1884
+      return displace_liqui_part_name
1890 1885
     },
1891 1886
     replacementWaysById: function(val) {
1892
-      let replacementWaysname = "/";
1887
+      let replacementWaysname = '/'
1893 1888
       // let vascular_access = getDataConfig('hemodialysis', 'vascular_access')
1894 1889
 
1895 1890
       for (let i = 0; i < this.replacementWays.length; i++) {
1896 1891
         if (this.replacementWays[i].id == val) {
1897
-          replacementWaysname = this.replacementWays[i].name;
1892
+          replacementWaysname = this.replacementWays[i].name
1898 1893
         }
1899 1894
       }
1900
-      return replacementWaysname;
1895
+      return replacementWaysname
1901 1896
     },
1902 1897
     QueryPartById: function(val) {
1903
-      let vascular_access_part_name = "/";
1904
-      const vascular_access = getDataConfig("hemodialysis", "vascular_access");
1898
+      let vascular_access_part_name = '/'
1899
+      const vascular_access = getDataConfig('hemodialysis', 'vascular_access')
1905 1900
 
1906 1901
       for (let i = 0; i < vascular_access.length; i++) {
1907 1902
         if (vascular_access[i].id == val) {
1908
-          vascular_access_part_name = vascular_access[i].name;
1903
+          vascular_access_part_name = vascular_access[i].name
1909 1904
         }
1910 1905
       }
1911
-      return vascular_access_part_name;
1906
+      return vascular_access_part_name
1912 1907
     },
1913 1908
     getAdminUser(id) {
1914 1909
       if (id == 0) {
1915
-        return "";
1910
+        return ''
1916 1911
       }
1917 1912
       if (id == undefined) {
1918
-        return "";
1913
+        return ''
1919 1914
       }
1920 1915
       for (let i = 0; i < this.adminUser.length; i++) {
1921 1916
         if (this.adminUser[i].id == id) {
1922
-          return this.adminUser[i].name;
1917
+          return this.adminUser[i].name
1923 1918
         }
1924 1919
       }
1925 1920
     },
1926 1921
     getTime(value, temp) {
1927 1922
       if (value == 0) {
1928
-        return "";
1923
+        return ''
1929 1924
       }
1930 1925
       if (value != undefined) {
1931
-        return uParseTime(value, temp);
1926
+        return uParseTime(value, temp)
1932 1927
       }
1933
-      return "";
1928
+      return ''
1934 1929
     },
1935 1930
     getUnit: function(val) {
1936 1931
       switch (val) {
1937 1932
         case 1:
1938
-          return "g";
1939
-          break;
1933
+          return 'g'
1934
+          break
1940 1935
         case 2:
1941
-          return "ml";
1942
-          break;
1936
+          return 'ml'
1937
+          break
1943 1938
       }
1944 1939
     },
1945 1940
     printThisPage() {
1946
-      var ptime = Math.round(new Date().getTime() / 1000);
1947
-      this.print_time = uParseTime(ptime, "{y}-{m}-{d} {h}:{i}");
1941
+      var ptime = Math.round(new Date().getTime() / 1000)
1942
+      this.print_time = uParseTime(ptime, '{y}-{m}-{d} {h}:{i}')
1948 1943
 
1949 1944
       const style =
1950
-        '@media print {.dialysis-print-order{width:960px;margin:0 auto}.dialysis-print-order .order-yy-name{margin:auto;text-align:center;font-size:20px;letter-spacing:5px}.dialysis-print-order .order-title{margin:auto;font-weight:600;text-align:center;font-size:22px;padding:10px}.dialysis-print-order .table-box{width:100%;line-height:23px;font-size:14px}.dialysis-print-order .print-table{width:100%;text-align:center;border-collapse:collapse;line-height:25px;font-size:14px}.dialysis-print-order .print-table-no{width:100%;text-align:left;border-collapse:collapse;font-size:14px} .dialysis-print-order .under_line {display: inline-block;border-bottom: 1px solid #999;text-align:left;white-space: nowrap;width: 50%;} .dialysis-print-order .title-box{text-align:center;font-size:16px;border:1px solid #666}.dialysis-print-order .radio-lebel-box{font-weight:400;cursor:pointer}.dialysis-print-order .radio-no{opacity:0;outline:0;position:absolute;margin:0;width:0;height:0;z-index:-1}.dialysis-print-order .radio-inner{white-space:nowrap;cursor:pointer;outline:0;display:inline-block;line-height:1;position:relative;vertical-align:middle}.dialysis-print-order .radio-fang{display:inline-block;position:relative;border:1px solid #000;box-sizing:border-box;width:14px;height:14px;background-color:#fff;z-index:1;transition:border-color .25s cubic-bezier(.71,-.46,.29,1.46),background-color .25s cubic-bezier(.71,-.46,.29,1.46)}.dialysis-print-order .is-checked-radio::after{content:"√";font-size:15px}}.dialysis-print-order .print-table-no tr td { padding: 8px 5px; line-height: 25px; }.es-img{height: 20px; }.advice-name{text-align: left;}.advice-children{display:flex;} .dialysis-print-order .print-table tr td{padding: 0px 0px;} .print-template-two tr {line-height: 30px;}   .title-box-pro{border: 0 #fff;line-height: 40px;height: 40px;text-align: left;padding-left: 10px !important;}  .text-align-left{text-align: left !important;padding-left:10px !important;font-size: 14px !important;line-height: 25px;}';
1945
+        '@media print {.dialysis-print-order{width:960px;margin:0 auto}.dialysis-print-order .order-yy-name{margin:auto;text-align:center;font-size:20px;letter-spacing:5px}.dialysis-print-order .order-title{margin:auto;font-weight:600;text-align:center;font-size:22px;padding:10px}.dialysis-print-order .table-box{width:100%;line-height:23px;font-size:14px}.dialysis-print-order .print-table{width:100%;text-align:center;border-collapse:collapse;line-height:25px;font-size:14px}.dialysis-print-order .print-table-no{width:100%;text-align:left;border-collapse:collapse;font-size:14px} .dialysis-print-order .under_line {display: inline-block;border-bottom: 1px solid #999;text-align:left;white-space: nowrap;width: 50%;} .dialysis-print-order .title-box{text-align:center;font-size:16px;border:1px solid #666}.dialysis-print-order .radio-lebel-box{font-weight:400;cursor:pointer}.dialysis-print-order .radio-no{opacity:0;outline:0;position:absolute;margin:0;width:0;height:0;z-index:-1}.dialysis-print-order .radio-inner{white-space:nowrap;cursor:pointer;outline:0;display:inline-block;line-height:1;position:relative;vertical-align:middle}.dialysis-print-order .radio-fang{display:inline-block;position:relative;border:1px solid #000;box-sizing:border-box;width:14px;height:14px;background-color:#fff;z-index:1;transition:border-color .25s cubic-bezier(.71,-.46,.29,1.46),background-color .25s cubic-bezier(.71,-.46,.29,1.46)}.dialysis-print-order .is-checked-radio::after{content:"√";font-size:15px}}.dialysis-print-order .print-table-no tr td { padding: 8px 5px; line-height: 25px; }.es-img{height: 20px; }.advice-name{text-align: left;}.advice-children{display:flex;} .dialysis-print-order .print-table tr td{padding: 0px 0px;} .print-template-two tr {line-height: 30px;}   .title-box-pro{border: 0 #fff;line-height: 40px;height: 40px;text-align: left;padding-left: 10px !important;}  .text-align-left{text-align: left !important;padding-left:10px !important;font-size: 14px !important;line-height: 25px;}'
1951 1946
 
1952 1947
       if (this.org_template_info.template_id == 1) {
1953 1948
         printJS({
1954
-          printable: "dialysis-print-box",
1955
-          type: "html",
1949
+          printable: 'dialysis-print-box',
1950
+          type: 'html',
1956 1951
           style: style,
1957 1952
           scanStyles: false
1958
-        });
1953
+        })
1959 1954
       } else if (
1960 1955
         this.org_template_info.template_id == 2 ||
1961 1956
         this.org_template_info.template_id == 0
1962 1957
       ) {
1963 1958
         printJS({
1964
-          printable: "dialysis-print-box-1",
1965
-          type: "html",
1959
+          printable: 'dialysis-print-box-1',
1960
+          type: 'html',
1966 1961
           style: style,
1967 1962
           scanStyles: false
1968
-        });
1963
+        })
1969 1964
       }
1970 1965
     },
1971 1966
     getNumber() {
@@ -1973,119 +1968,119 @@ export default {
1973 1968
         return (
1974 1969
           this.patientInfo.DialysisSchedule.device_zone.name +
1975 1970
           this.dialysisOrder.DeviceNumber.number
1976
-        );
1971
+        )
1977 1972
       } else {
1978 1973
         return (
1979 1974
           this.patientInfo.DialysisSchedule.device_zone.name +
1980 1975
           this.patientInfo.DialysisSchedule.device_number.number
1981
-        );
1976
+        )
1982 1977
       }
1983 1978
     },
1984 1979
 
1985 1980
     getXuserName(id) {
1986 1981
       if (id <= 0) {
1987
-        return "";
1982
+        return ''
1988 1983
       }
1989
-      var name = "";
1990
-      if (this.users == null || typeof this.users.length === "undefined") {
1991
-        return name;
1984
+      var name = ''
1985
+      if (this.users == null || typeof this.users.length === 'undefined') {
1986
+        return name
1992 1987
       }
1993
-      var leng = this.users.length;
1988
+      var leng = this.users.length
1994 1989
       if (leng == 0) {
1995
-        return name;
1990
+        return name
1996 1991
       }
1997 1992
       for (let index = 0; index < leng; index++) {
1998 1993
         if (this.users[index].id == id) {
1999
-          name = this.users[index].name;
2000
-          break;
1994
+          name = this.users[index].name
1995
+          break
2001 1996
         }
2002 1997
       }
2003
-      return name;
1998
+      return name
2004 1999
     },
2005 2000
     setAdminUserES(id) {
2006 2001
       if (id == 0) {
2007
-        return "";
2002
+        return ''
2008 2003
       }
2009 2004
       if (id in this.operatorMaps) {
2010
-        return this.operatorMaps[id].url;
2005
+        return this.operatorMaps[id].url
2011 2006
       } else {
2012
-        return "";
2007
+        return ''
2013 2008
       }
2014 2009
     },
2015 2010
     modeName(mode_id) {
2016
-      return typeof this.modeOptions[mode_id] !== "undefined" &&
2017
-        typeof this.modeOptions[mode_id].name !== "undefined"
2011
+      return typeof this.modeOptions[mode_id] !== 'undefined' &&
2012
+        typeof this.modeOptions[mode_id].name !== 'undefined'
2018 2013
         ? this.modeOptions[mode_id].name
2019
-        : "";
2014
+        : ''
2020 2015
     },
2021 2016
     getDialysisRecord() {
2022
-      this.loading = true;
2017
+      this.loading = true
2023 2018
 
2024 2019
       // getDialysisRecord(this.queryParams).then(response => {
2025
-      var response = this.childResponse;
2020
+      var response = this.childResponse
2026 2021
       if (response.data.state == 1) {
2027
-        this.adminUser = response.data.data.users;
2022
+        this.adminUser = response.data.data.users
2028 2023
 
2029
-        this.users = response.data.data.users;
2030
-        this.patientInfo = response.data.data.patientInfo;
2024
+        this.users = response.data.data.users
2025
+        this.patientInfo = response.data.data.patientInfo
2031 2026
 
2032 2027
         this.patientInfo.birth = uParseTime(
2033 2028
           this.patientInfo.birthday,
2034
-          "{y}-{m}-{d}"
2035
-        );
2029
+          '{y}-{m}-{d}'
2030
+        )
2036 2031
         // this.patientInfo.age = jsGetAge(this.patientInfo.birth, '-')
2037 2032
         if (response.data.data.patientInfo.first_dialysis_date != 0) {
2038 2033
           this.patientInfo.first_dialysis_date = uParseTime(
2039 2034
             response.data.data.patientInfo.first_dialysis_date,
2040
-            "{y}-{m}-{d}"
2041
-          );
2035
+            '{y}-{m}-{d}'
2036
+          )
2042 2037
         } else {
2043
-          this.patientInfo.first_dialysis_date = "";
2038
+          this.patientInfo.first_dialysis_date = ''
2044 2039
         }
2045
-        this.check = response.data.data.check;
2046
-        this.xtdate = response.data.data.xtdate;
2047
-        this.predialysis = response.data.data.PredialysisEvaluation;
2040
+        this.check = response.data.data.check
2041
+        this.xtdate = response.data.data.xtdate
2042
+        this.predialysis = response.data.data.PredialysisEvaluation
2048 2043
         this.predialysis.blood_access_part_opera_name = this.bloodAccessParOperaName(
2049 2044
           this.predialysis.blood_access_part_opera_id
2050
-        );
2051
-        this.afterdialysis = response.data.data.AssessmentAfterDislysis;
2052
-        this.operators = response.data.data.operators;
2045
+        )
2046
+        this.afterdialysis = response.data.data.AssessmentAfterDislysis
2047
+        this.operators = response.data.data.operators
2053 2048
         this.dialysisOrder =
2054 2049
           response.data.data.dialysisOrder === null
2055 2050
             ? null
2056
-            : response.data.data.dialysisOrder;
2051
+            : response.data.data.dialysisOrder
2057 2052
 
2058 2053
         if (this.operators.length > 0) {
2059
-          var operatorsLen = this.operators.length;
2054
+          var operatorsLen = this.operators.length
2060 2055
           for (var index = 0; index < operatorsLen; index++) {
2061 2056
             this.$set(
2062 2057
               this.operatorMaps,
2063 2058
               this.operators[index].creator,
2064 2059
               this.operators[index]
2065
-            );
2060
+            )
2066 2061
           }
2067 2062
         }
2068 2063
 
2069
-        this.afterdialysis.txqnx = -1;
2070
-        if (this.afterdialysis.cruor.indexOf("0度") > -1) {
2071
-          this.afterdialysis.txqnx = 0;
2064
+        this.afterdialysis.txqnx = -1
2065
+        if (this.afterdialysis.cruor.indexOf('0度') > -1) {
2066
+          this.afterdialysis.txqnx = 0
2072 2067
         }
2073
-        if (this.afterdialysis.cruor.indexOf("Ⅰ度") > -1) {
2074
-          this.afterdialysis.txqnx = 1;
2068
+        if (this.afterdialysis.cruor.indexOf('Ⅰ度') > -1) {
2069
+          this.afterdialysis.txqnx = 1
2075 2070
         }
2076
-        if (this.afterdialysis.cruor.indexOf("Ⅱ度") > -1) {
2077
-          this.afterdialysis.txqnx = 2;
2071
+        if (this.afterdialysis.cruor.indexOf('Ⅱ度') > -1) {
2072
+          this.afterdialysis.txqnx = 2
2078 2073
         }
2079
-        if (this.afterdialysis.cruor.indexOf("Ⅲ度") > -1) {
2080
-          this.afterdialysis.txqnx = 3;
2074
+        if (this.afterdialysis.cruor.indexOf('Ⅲ度') > -1) {
2075
+          this.afterdialysis.txqnx = 3
2081 2076
         }
2082 2077
 
2083 2078
         this.afterdialysis.complications = this.afterdialysis.complication.split(
2084
-          ","
2085
-        );
2086
-        this.afterdialysis.complications_other = [];
2087
-        this.afterdialysis.complications_index = [];
2088
-        var acllen = this.afterdialysis.complications.length;
2079
+          ','
2080
+        )
2081
+        this.afterdialysis.complications_other = []
2082
+        this.afterdialysis.complications_index = []
2083
+        var acllen = this.afterdialysis.complications.length
2089 2084
         for (let index = 0; index < acllen; index++) {
2090 2085
           if (
2091 2086
             this.complications.indexOf(
@@ -2094,7 +2089,7 @@ export default {
2094 2089
           ) {
2095 2090
             this.afterdialysis.complications_index.push(
2096 2091
               this.afterdialysis.complications[index]
2097
-            );
2092
+            )
2098 2093
           } else if (
2099 2094
             this.complications.indexOf(
2100 2095
               this.afterdialysis.complications[index]
@@ -2105,35 +2100,35 @@ export default {
2105 2100
           ) {
2106 2101
             this.afterdialysis.complications_other.push(
2107 2102
               this.afterdialysis.complications[index]
2108
-            );
2103
+            )
2109 2104
           }
2110 2105
         }
2111 2106
         this.afterdialysis.complications_other = this.afterdialysis.complications_other.join(
2112
-          ","
2113
-        );
2107
+          ','
2108
+        )
2114 2109
 
2115
-        this.prescription = response.data.data.dialysisPrescription;
2110
+        this.prescription = response.data.data.dialysisPrescription
2116 2111
 
2117 2112
         this.receiverTreatmentAccess =
2118
-          response.data.data.receiverTreatmentAccess;
2119
-        this.prescription.mode = this.modeName(this.prescription.mode_id);
2120
-        var rwLen = this.replacementWays.length;
2121
-        this.prescription.replacement = "";
2113
+          response.data.data.receiverTreatmentAccess
2114
+        this.prescription.mode = this.modeName(this.prescription.mode_id)
2115
+        var rwLen = this.replacementWays.length
2116
+        this.prescription.replacement = ''
2122 2117
         for (let index = 0; index < rwLen; index++) {
2123 2118
           if (
2124 2119
             this.replacementWays[index].id == this.prescription.replacement_way
2125 2120
           ) {
2126
-            this.prescription.replacement = this.replacementWays[index].name;
2127
-            break;
2121
+            this.prescription.replacement = this.replacementWays[index].name
2122
+            break
2128 2123
           }
2129 2124
         }
2130 2125
 
2131 2126
         this.prescription.dialysate_formulation_name = this.dialysateFormulationName(
2132 2127
           this.prescription.dialysate_formulation
2133
-        );
2128
+        )
2134 2129
 
2135
-        var paLen = this.perfusionApparatus.length;
2136
-        this.prescription.perfusion_apparatus_name = "";
2130
+        var paLen = this.perfusionApparatus.length
2131
+        this.prescription.perfusion_apparatus_name = ''
2137 2132
         for (let index = 0; index < paLen; index++) {
2138 2133
           if (
2139 2134
             this.perfusionApparatus[index].id ==
@@ -2141,122 +2136,122 @@ export default {
2141 2136
           ) {
2142 2137
             this.prescription.perfusion_apparatus_name = this.perfusionApparatus[
2143 2138
               index
2144
-            ].name;
2145
-            break;
2139
+            ].name
2140
+            break
2146 2141
           }
2147 2142
         }
2148 2143
 
2149
-        var acLen = this.anticoagulantsConfit.length;
2150
-        var thisALID = this.prescription.anticoagulant;
2151
-        this.prescription.anticoagulant_name = "";
2144
+        var acLen = this.anticoagulantsConfit.length
2145
+        var thisALID = this.prescription.anticoagulant
2146
+        this.prescription.anticoagulant_name = ''
2152 2147
 
2153 2148
         if (
2154
-          typeof this.anticoagulantsConfit[thisALID] !== "undefined" &&
2149
+          typeof this.anticoagulantsConfit[thisALID] !== 'undefined' &&
2155 2150
           this.anticoagulantsConfit[thisALID] != null
2156 2151
         ) {
2157 2152
           this.prescription.anticoagulant_name = this.anticoagulantsConfit[
2158 2153
             thisALID
2159
-          ].name;
2160
-          this.AlPanel = this.anticoagulantsConfit[thisALID];
2154
+          ].name
2155
+          this.AlPanel = this.anticoagulantsConfit[thisALID]
2161 2156
         }
2162 2157
 
2163
-        this.advices = response.data.data.advices;
2164
-        this.monitors = response.data.data.monitors;
2165
-        this.summary = response.data.data.summary;
2166
-        this.org_template_info = response.data.data.org_template_info;
2158
+        this.advices = response.data.data.advices
2159
+        this.monitors = response.data.data.monitors
2160
+        this.summary = response.data.data.summary
2161
+        this.org_template_info = response.data.data.org_template_info
2167 2162
 
2168 2163
         if (this.monitors.length <= 6) {
2169
-          var nl = 6;
2170
-          this.print_length = 6;
2164
+          var nl = 6
2165
+          this.print_length = 6
2171 2166
 
2172 2167
           for (let index = 0; index < nl; index++) {
2173 2168
             if (
2174 2169
               this.monitors[index] == undefined ||
2175 2170
               this.monitors[index].length <= 0
2176 2171
             ) {
2177
-              this.monitors2.push([]);
2172
+              this.monitors2.push([])
2178 2173
             } else {
2179
-              continue;
2174
+              continue
2180 2175
             }
2181 2176
           }
2182 2177
         }
2183 2178
 
2184
-        var tempmonitorflag = true;
2179
+        var tempmonitorflag = true
2185 2180
         for (let index = 0; index < this.monitors.length; index++) {
2186
-          const monitor = this.monitors[index];
2187
-          this.monitors[index].end = "";
2181
+          const monitor = this.monitors[index]
2182
+          this.monitors[index].end = ''
2188 2183
           if (Object.keys(monitor).length > 0 && index > 1) {
2189 2184
             if (monitor.operate_time == this.dialysisOrder.end_time) {
2190
-              this.monitors[index].end = "【结束透析】";
2191
-              tempmonitorflag = false;
2185
+              this.monitors[index].end = '【结束透析】'
2186
+              tempmonitorflag = false
2192 2187
             }
2193 2188
             if (tempmonitorflag && index == this.monitors.length - 1) {
2194
-              this.monitors[index].end = "【结束透析】";
2189
+              this.monitors[index].end = '【结束透析】'
2195 2190
             }
2196 2191
           }
2197 2192
         }
2198 2193
 
2199
-        this.jilurow = this.monitors.length + 1;
2194
+        this.jilurow = this.monitors.length + 1
2200 2195
 
2201
-        this.advice_jilurow = this.advices.length + 1;
2196
+        this.advice_jilurow = this.advices.length + 1
2202 2197
 
2203
-        var childMap = {};
2198
+        var childMap = {}
2204 2199
         for (const index in this.advices) {
2205 2200
           if (this.advices[index].parent_id == 0) {
2206
-            continue;
2201
+            continue
2207 2202
           }
2208 2203
           if (!(this.advices[index].parent_id in childMap)) {
2209
-            childMap[this.advices[index].parent_id] = [];
2204
+            childMap[this.advices[index].parent_id] = []
2210 2205
           }
2211
-          childMap[this.advices[index].parent_id].push(this.advices[index]);
2206
+          childMap[this.advices[index].parent_id].push(this.advices[index])
2212 2207
         }
2213 2208
 
2214
-        var advices = [];
2209
+        var advices = []
2215 2210
         for (const index in this.advices) {
2216 2211
           if (this.advices[index].parent_id > 0) {
2217
-            continue;
2212
+            continue
2218 2213
           }
2219
-          var item = this.advices[index];
2214
+          var item = this.advices[index]
2220 2215
           if (item.id in childMap) {
2221
-            item.children = childMap[item.id];
2216
+            item.children = childMap[item.id]
2222 2217
           } else {
2223
-            item.children = [];
2218
+            item.children = []
2224 2219
           }
2225
-          advices.push(item);
2220
+          advices.push(item)
2226 2221
         }
2227 2222
 
2228
-        var leftAdvice = [];
2229
-        var rightAdvice = [];
2230
-        var adlen = advices.length;
2223
+        var leftAdvice = []
2224
+        var rightAdvice = []
2225
+        var adlen = advices.length
2231 2226
 
2232
-        var halfLen = adlen % 2 == 0 ? adlen / 2 : (adlen + 1) / 2;
2227
+        var halfLen = adlen % 2 == 0 ? adlen / 2 : (adlen + 1) / 2
2233 2228
         for (var i = 0; i < halfLen; i++) {
2234
-          leftAdvice.push(advices[i]);
2235
-          rightAdvice.push(advices[i + halfLen]);
2229
+          leftAdvice.push(advices[i])
2230
+          rightAdvice.push(advices[i + halfLen])
2236 2231
         }
2237 2232
         if (halfLen < 5) {
2238
-          var nl = 5 - leftAdvice.length;
2233
+          var nl = 5 - leftAdvice.length
2239 2234
           for (let index = 0; index < nl; index++) {
2240
-            leftAdvice.push([]);
2235
+            leftAdvice.push([])
2241 2236
           }
2242
-          var nl = 5 - rightAdvice.length;
2237
+          var nl = 5 - rightAdvice.length
2243 2238
           for (let index = 0; index < nl; index++) {
2244
-            rightAdvice.push([]);
2239
+            rightAdvice.push([])
2245 2240
           }
2246 2241
         }
2247 2242
 
2248
-        this.advices = [];
2243
+        this.advices = []
2249 2244
         for (var i = 0; i < halfLen; i++) {
2250
-          var item = [];
2251
-          item.push(leftAdvice[i]);
2252
-          item.push(rightAdvice[i]);
2253
-          this.advices.push(item);
2245
+          var item = []
2246
+          item.push(leftAdvice[i])
2247
+          item.push(rightAdvice[i])
2248
+          this.advices.push(item)
2254 2249
         }
2255
-        this.loading = false;
2250
+        this.loading = false
2256 2251
         this.doctor_advices =
2257
-          response.data.data.advices == null ? [] : response.data.data.advices;
2252
+          response.data.data.advices == null ? [] : response.data.data.advices
2258 2253
         for (let index = 0; index < this.doctor_advices.length; index++) {
2259
-          this.doctor_advices[index]["isShow"] = 2;
2254
+          this.doctor_advices[index]['isShow'] = 2
2260 2255
         }
2261 2256
 
2262 2257
         // if (this.doctor_advices.length > 0) {
@@ -2338,57 +2333,57 @@ export default {
2338 2333
         //   }
2339 2334
         // }
2340 2335
         if (this.doctor_advices.length <= 6) {
2341
-          var nl = 6;
2342
-          this.print_length = 6;
2336
+          var nl = 6
2337
+          this.print_length = 6
2343 2338
 
2344 2339
           for (let index = 0; index < nl; index++) {
2345 2340
             if (
2346 2341
               this.doctor_advices[index] == undefined ||
2347 2342
               this.doctor_advices[index].length <= 0
2348 2343
             ) {
2349
-              this.doctor_advices.push([]);
2344
+              this.doctor_advices.push([])
2350 2345
             } else {
2351
-              continue;
2346
+              continue
2352 2347
             }
2353 2348
           }
2354 2349
         }
2355 2350
 
2356
-        this.totollength = this.doctor_advices.length + this.monitors.length;
2351
+        this.totollength = this.doctor_advices.length + this.monitors.length
2357 2352
         if (this.totollength > 18) {
2358
-          var temp_advice_length = 17 - this.monitors.length;
2359
-          var doctor_advices_1 = [];
2360
-          var doctor_advices_2 = [];
2353
+          var temp_advice_length = 17 - this.monitors.length
2354
+          var doctor_advices_1 = []
2355
+          var doctor_advices_2 = []
2361 2356
           for (let index = 0; index < this.doctor_advices.length; index++) {
2362
-            const element = this.doctor_advices[index];
2357
+            const element = this.doctor_advices[index]
2363 2358
             if (temp_advice_length > index) {
2364
-              doctor_advices_1.push(element);
2359
+              doctor_advices_1.push(element)
2365 2360
             } else {
2366
-              doctor_advices_2.push(element);
2361
+              doctor_advices_2.push(element)
2367 2362
             }
2368 2363
           }
2369
-          this.doctor_advices = doctor_advices_1;
2370
-          this.doctor_advices_2 = doctor_advices_2;
2364
+          this.doctor_advices = doctor_advices_1
2365
+          this.doctor_advices_2 = doctor_advices_2
2371 2366
         }
2372
-        console.log(this.advice_groups);
2367
+        console.log(this.advice_groups)
2373 2368
       } else {
2374
-        this.loading = false;
2375
-        this.$message.error("请求数据失败");
2376
-        return false;
2369
+        this.loading = false
2370
+        this.$message.error('请求数据失败')
2371
+        return false
2377 2372
       }
2378 2373
       // })
2379 2374
     },
2380 2375
 
2381 2376
     bloodAccessParOperaName(id) {
2382 2377
       if (id in this.bloodAccessParOpera) {
2383
-        return this.bloodAccessParOpera[id].name;
2378
+        return this.bloodAccessParOpera[id].name
2384 2379
       }
2385
-      return "";
2380
+      return ''
2386 2381
     },
2387 2382
     dialysateFormulationName(id) {
2388 2383
       if (id in this.dialysateFormulationOptions) {
2389
-        return this.dialysateFormulationOptions[id].name;
2384
+        return this.dialysateFormulationOptions[id].name
2390 2385
       }
2391
-      return "";
2386
+      return ''
2392 2387
     },
2393 2388
     getAge: function(val) {
2394 2389
       if (
@@ -2396,12 +2391,12 @@ export default {
2396 2391
         this.org_template_info.template_id == 0
2397 2392
       ) {
2398 2393
         if (val.age == 0) {
2399
-          return jsGetAge(val.birth, "-");
2394
+          return jsGetAge(val.birth, '-')
2400 2395
         } else {
2401
-          return val.age;
2396
+          return val.age
2402 2397
         }
2403 2398
       } else {
2404
-        return jsGetAge(val.birth, "-");
2399
+        return jsGetAge(val.birth, '-')
2405 2400
       }
2406 2401
     },
2407 2402
     newAdviceGroupObject: function() {
@@ -2416,57 +2411,56 @@ export default {
2416 2411
           // exec_time: 0,
2417 2412
           // checker: 0,
2418 2413
         }
2419
-      );
2414
+      )
2420 2415
     },
2421 2416
     getFloat: function(x) {
2422 2417
       if (x == 0) {
2423
-        return "/";
2418
+        return '/'
2424 2419
       }
2425
-      if (x != ".") {
2426
-        var f = Math.round(x * 100) / 100;
2427
-        var s = f.toString();
2428
-        var rs = s.indexOf(".");
2420
+      if (x != '.') {
2421
+        var f = Math.round(x * 100) / 100
2422
+        var s = f.toString()
2423
+        var rs = s.indexOf('.')
2429 2424
         if (rs <= 0) {
2430
-          rs = s.length;
2431
-          s += ".";
2425
+          rs = s.length
2426
+          s += '.'
2432 2427
         }
2433 2428
         while (s.length <= rs + 1) {
2434
-          s += "0";
2429
+          s += '0'
2435 2430
         }
2436
-        return s;
2431
+        return s
2437 2432
       } else {
2438
-        return "0.0";
2433
+        return '0.0'
2439 2434
       }
2440 2435
     }
2441 2436
   },
2442 2437
   watch: {
2443
-    "patientInfo.gender": function() {
2438
+    'patientInfo.gender': function() {
2444 2439
       if (this.patientInfo.gender == 1) {
2445
-        this.patientInfo_gender_1 = true;
2446
-        this.patientInfo_gender_2 = false;
2440
+        this.patientInfo_gender_1 = true
2441
+        this.patientInfo_gender_2 = false
2447 2442
       } else if (this.patientInfo.gender == 2) {
2448
-        this.patientInfo_gender_2 = true;
2449
-        this.patientInfo_gender_1 = false;
2443
+        this.patientInfo_gender_2 = true
2444
+        this.patientInfo_gender_1 = false
2450 2445
       } else {
2451
-        this.patientInfo_gender_2 = false;
2452
-        this.patientInfo_gender_1 = false;
2446
+        this.patientInfo_gender_2 = false
2447
+        this.patientInfo_gender_1 = false
2453 2448
       }
2454 2449
     },
2455
-    "patientInfo.source": function() {
2450
+    'patientInfo.source': function() {
2456 2451
       if (this.patientInfo.source == 1) {
2457
-        this.patientInfo_source_1 = true;
2458
-        this.patientInfo_source_2 = false;
2452
+        this.patientInfo_source_1 = true
2453
+        this.patientInfo_source_2 = false
2459 2454
       } else if (this.patientInfo.source == 2) {
2460
-        this.patientInfo_source_2 = true;
2461
-        this.patientInfo_source_1 = false;
2455
+        this.patientInfo_source_2 = true
2456
+        this.patientInfo_source_1 = false
2462 2457
       } else {
2463
-        this.patientInfo_source_2 = false;
2464
-        this.patientInfo_source_1 = false;
2458
+        this.patientInfo_source_2 = false
2459
+        this.patientInfo_source_1 = false
2465 2460
       }
2466 2461
     }
2467 2462
   },
2468 2463
   created() {
2469
-
2470 2464
     this.way_arr = getDataConfig('hemodialysis', 'way')
2471 2465
     this.consciousness_arr = getDataConfig('hemodialysis', 'consciousness')
2472 2466
     this.appetite_arr = getDataConfig('hemodialysis', 'appetite')
@@ -2476,62 +2470,60 @@ export default {
2476 2470
     this.intake_arr = getDataConfig('hemodialysis', 'intake')
2477 2471
     this.nutrition_arr = getDataConfig('hemodialysis', 'nutrition')
2478 2472
 
2479
-
2480
-
2481 2473
     var xtuser = this.$store.getters.xt_user
2482 2474
     this.orgname = xtuser.org.org_name
2483 2475
     // this.orgname = "遂溪方济医院";
2484
-    this.modeOptions = this.$store.getters.treatment_mode;
2485
-    this.replacementWays = this.$store.getters.replacement_ways;
2486
-    this.perfusionApparatus = this.$store.getters.perfusion_apparatus;
2487
-    this.anticoagulantsConfit = this.$store.getters.anticoagulants_confit;
2488
-    this.displaceLiquiPartOptions = this.$store.getters.displace_liqui;
2476
+    this.modeOptions = this.$store.getters.treatment_mode
2477
+    this.replacementWays = this.$store.getters.replacement_ways
2478
+    this.perfusionApparatus = this.$store.getters.perfusion_apparatus
2479
+    this.anticoagulantsConfit = this.$store.getters.anticoagulants_confit
2480
+    this.displaceLiquiPartOptions = this.$store.getters.displace_liqui
2489 2481
 
2490
-    this.blood_access_part = getDataConfig("hemodialysis", "vascular_access");
2482
+    this.blood_access_part = getDataConfig('hemodialysis', 'vascular_access')
2491 2483
     this.blood_access_part_opera = getDataConfig(
2492
-      "hemodialysis",
2493
-      "vascular_access_desc"
2494
-    );
2484
+      'hemodialysis',
2485
+      'vascular_access_desc'
2486
+    )
2495 2487
 
2496 2488
     // this.bloodAccessParOpera = getDataConfig('hemodialysis', 'vascular_access_desc')
2497 2489
 
2498 2490
     var bloodAccessParOpera = getDataConfig(
2499
-      "hemodialysis",
2500
-      "vascular_access_desc"
2501
-    );
2491
+      'hemodialysis',
2492
+      'vascular_access_desc'
2493
+    )
2502 2494
     for (var key in bloodAccessParOpera) {
2503 2495
       this.bloodAccessParOpera[bloodAccessParOpera[key].id] =
2504
-        bloodAccessParOpera[key];
2496
+        bloodAccessParOpera[key]
2505 2497
     }
2506 2498
 
2507 2499
     var dialysateFormulationOptions = getDataConfig(
2508
-      "hemodialysis",
2509
-      "dialysate_formulation"
2510
-    );
2500
+      'hemodialysis',
2501
+      'dialysate_formulation'
2502
+    )
2511 2503
     for (var key in dialysateFormulationOptions) {
2512 2504
       this.dialysateFormulationOptions[dialysateFormulationOptions[key].id] =
2513
-        dialysateFormulationOptions[key];
2505
+        dialysateFormulationOptions[key]
2514 2506
     }
2515 2507
 
2516
-    const xtdate = this.$route.query && this.$route.query.xtdate;
2517
-    console.log("xtdate", xtdate);
2518
-    const xtno = this.$route.query && this.$route.query.xtno;
2519
-    console.log("xtno", xtno);
2508
+    const xtdate = this.$route.query && this.$route.query.xtdate
2509
+    console.log('xtdate', xtdate)
2510
+    const xtno = this.$route.query && this.$route.query.xtno
2511
+    console.log('xtno', xtno)
2520 2512
     if (
2521
-      typeof xtdate === "string" &&
2513
+      typeof xtdate === 'string' &&
2522 2514
       xtdate.length > 0 &&
2523
-      typeof xtno === "string" &&
2515
+      typeof xtno === 'string' &&
2524 2516
       xtno.length > 0
2525 2517
     ) {
2526
-      this.queryParams.xtdate = xtdate;
2527
-      this.queryParams.xtno = xtno;
2528
-      this.getDialysisRecord();
2518
+      this.queryParams.xtdate = xtdate
2519
+      this.queryParams.xtno = xtno
2520
+      this.getDialysisRecord()
2529 2521
     } else {
2530
-      this.$message.error("参数不齐");
2531
-      return false;
2522
+      this.$message.error('参数不齐')
2523
+      return false
2532 2524
     }
2533 2525
   }
2534
-};
2526
+}
2535 2527
 </script>
2536 2528
 
2537 2529
 <style>

+ 71 - 70
src/xt_pages/dialysis/template/dialysisPrintOrderTwo.vue Vedi File

@@ -12,31 +12,31 @@
12 12
         </div>
13 13
         <div class="inline_block" style="margin-left: 5px;">
14 14
           住院号:
15
-          <div class="under_line" style="width: 70px;text-align: left" v-if="receiverTreatmentAccess.admission_number">
15
+          <div class="under_line" style="width: 50px;text-align: left" v-if="receiverTreatmentAccess.admission_number">
16 16
             {{patientInfo_source_2?receiverTreatmentAccess.admission_number: '/'}}
17 17
           </div>
18
-          <div class="under_line" style="width: 70px;text-align: left" v-else>
18
+          <div class="under_line" style="width: 50px;text-align: left" v-else>
19 19
             {{'/'}}
20 20
           </div>
21 21
         </div>
22
-        <div class="inline_block" style="margin-left:10px;">
22
+        <div class="inline_block" style="margin-left:5px;">
23 23
           姓名:
24 24
           <div class="under_line" style="width: 50px;text-align: left">{{patientInfo.name}}</div>
25 25
         </div>
26
-        <div class="inline_block" style="margin-left: 10px;">
26
+        <div class="inline_block" style="margin-left: 5px;">
27 27
           性别:
28 28
           <check-box text="男" :checked="patientInfo_gender_1"></check-box>
29 29
           &nbsp;
30 30
           <check-box text="女" :checked="patientInfo_gender_2"></check-box>
31 31
         </div>
32
-        <div class="inline_block" style="margin-left: 10px;">
32
+        <div class="inline_block" style="margin-left: 5px;">
33 33
           年龄:
34 34
           <div class="under_line" style="width: 30px;text-align: left">{{getAge(patientInfo)}}</div>
35 35
36 36
         </div>
37
-        <div class="inline_block" style="margin-left: 10px;">
37
+        <div class="inline_block" style="margin-left: 5px;">
38 38
           诊断:
39
-          <div class="under_line" style="width: 180px;text-align: left">{{patientInfo.diagnose}}</div>
39
+          <div class="under_line" style="width: 160px;text-align: left">{{patientInfo.diagnose}}</div>
40 40
         </div>
41 41
       </div>
42 42
 
@@ -50,19 +50,23 @@
50 50
               <div class="row" style="padding: 2px 0;line-height:19px;">
51 51
                 <div class="inline_block">
52 52
                   入科方式:
53
-                  <check-box v-for="item,index in way_arr" :key="index" :text="item.name" :checked="receiverTreatmentAccess.way==item.id?true:false"></check-box>
53
+                  <check-box v-for="(item,index) in way_arr" :key="index" :text="item.name" :checked="receiverTreatmentAccess.way==item.id?true:false"></check-box>
54 54
                   <!--<check-box text="扶行" :checked="receiverTreatmentAccess.way==2?true:false"></check-box>-->
55 55
                   <!--<check-box text="轮椅" :checked="receiverTreatmentAccess.way==3?true:false"></check-box>-->
56 56
                   <!--<check-box text="平车" :checked="receiverTreatmentAccess.way==4?true:false"></check-box>-->
57 57
                 </div>
58
-                <div class="inline_block" style="margin-left: 30px;">
59
-                  透析频次:
60
-                  <div class="under_line" style="width: 30px;text-align: left">
61
-                    {{predialysis.dialysis_count?predialysis.dialysis_count:''}}
62
-                  </div>
63
-                  次/周
58
+                <div class="inline_block" style="margin-left: 10px;" >
59
+                  意识:
60
+                  <check-box v-for="(item,index) in consciousness_arr" :key="index" :text="item.name" :checked="receiverTreatmentAccess.consciousness==item.id?true:false"></check-box>
61
+
62
+                  <!--<check-box text="清醒" :checked="receiverTreatmentAccess.consciousness==1?true:false"></check-box>-->
63
+                  <!--<check-box text="嗜睡" :checked="receiverTreatmentAccess.consciousness==2?true:false"></check-box>-->
64
+                  <!--<check-box text="昏迷" :checked="receiverTreatmentAccess.consciousness==3?true:false"></check-box>-->
65
+                  <!--<check-box text="模糊" :checked="receiverTreatmentAccess.consciousness==4?true:false"></check-box>-->
66
+
64 67
                 </div>
65
-                <div class="inline_block" style="margin-left: 30px;">
68
+                
69
+                <div class="inline_block" style="margin-left: 10px;">
66 70
                   透析机编号:
67 71
                   <div class="under_line" style="width: 40px;text-align: left">{{dialysisOrder&&dialysisOrder.DeviceNumber&&dialysisOrder.DeviceNumber.number.length > 0?dialysisOrder.DeviceNumber.number:patientInfo.DialysisSchedule.device_number.number}}</div>
68 72
                   型号
@@ -71,20 +75,17 @@
71 75
               </div>
72 76
               <div class="row" style="padding: 2px 0;line-height:19px;">
73 77
                 <div class="inline_block" >
74
-                  意识:
75
-                  <check-box v-for="item,index in consciousness_arr" :key="index" :text="item.name" :checked="receiverTreatmentAccess.consciousness==item.id?true:false"></check-box>
76
-
77
-                  <!--<check-box text="清醒" :checked="receiverTreatmentAccess.consciousness==1?true:false"></check-box>-->
78
-                  <!--<check-box text="嗜睡" :checked="receiverTreatmentAccess.consciousness==2?true:false"></check-box>-->
79
-                  <!--<check-box text="昏迷" :checked="receiverTreatmentAccess.consciousness==3?true:false"></check-box>-->
80
-                  <!--<check-box text="模糊" :checked="receiverTreatmentAccess.consciousness==4?true:false"></check-box>-->
81
-
78
+                  透析频次:
79
+                  <div class="under_line" style="width: 30px;text-align: left">
80
+                    {{predialysis.dialysis_count?predialysis.dialysis_count:''}}
81
+                  </div>
82
+                  次/周
82 83
                 </div>
83
-                <div class="inline_block" >
84
+                <div class="inline_block" style="margin-left: 10px;">
84 85
                   活动性出血:
85 86
                   <check-box text="无" :checked="predialysis.is_hemorrhage==2?true:false"></check-box>
86 87
                   <check-box text="异常" :checked="predialysis.is_hemorrhage==1?true:false"></check-box>
87
-                  &nbsp;
88
+                  (&nbsp;
88 89
                   <check-box text="穿刺点渗血" :checked="predialysis.is_hemorrhage==1&&predialysis.hemorrhage.indexOf('穿刺点渗血')>-1?true:false"></check-box>
89 90
                   <check-box text="牙龈出血" :checked="predialysis.is_hemorrhage==1&&predialysis.hemorrhage.indexOf('牙龈出血')>-1?true:false"></check-box>
90 91
                   <check-box text="消化道出血" :checked="predialysis.is_hemorrhage==1&&predialysis.hemorrhage.indexOf('消化道出血')>-1?true:false"></check-box>
@@ -95,7 +96,7 @@
95 96
                           {{predialysis.hemorrhage_other}}
96 97
                         </span>
97 98
                   </div>
98
-                  &nbsp;
99
+                  &nbsp;)
99 100
                 </div>
100 101
               </div>
101 102
               <div class="row" style="padding: 2px 0;line-height:19px;">
@@ -235,7 +236,7 @@
235 236
               <table class="inside_table">
236 237
                 <tbody>
237 238
                   <tr><td colspan="10" style="font-size:16px;padding: 6px 8px;line-height: 30px;text-align:left;">二、透析中护理记录:</td></tr>
238
-                  <tr>
239
+                  <tr style="font-size:16px;">
239 240
                     <td width="100">时间</td>
240 241
                     <td width="30">T<br>C°</td>
241 242
                     <td width="30">P<br/>次/分</td>
@@ -347,7 +348,7 @@
347 348
                   <td width="30">P<br/>次/分</td>
348 349
                   <td width="30">R<br/>次/分</td>
349 350
                   <td width="100">BP<br/>mmHg</td>
350
-                  <td width="60">静脉压/动脉压<br/>mmHg</td>
351
+                  <td width="70">静脉压/动脉压<br/>mmHg</td>
351 352
                   <td width="80">血流量<br/>ml/min</td>
352 353
                   <td width="90">超滤量累计L</td>
353 354
                   <td width="80">钠浓度<br/>mmol/L</td>
@@ -452,7 +453,7 @@
452 453
               </div>
453 454
               <div class="row" style="padding: 2px 0;line-height:19px;">
454 455
                 <div class="inline_block">
455
-                  透析器及血路管凝血情况: &emsp;动脉管道:
456
+                  透析器及血路管凝血情况:动脉管道:
456 457
                   <check-box text="0" :checked="afterdialysis.arterial_tube == 1?true:false"></check-box>
457 458
                   <check-box text="+" :checked="afterdialysis.arterial_tube == 2?true:false"></check-box>
458 459
                   <check-box text="++" :checked="afterdialysis.arterial_tube == 3?true:false"></check-box>
@@ -460,14 +461,14 @@
460 461
                 </div>
461 462
 
462 463
                 <div class="inline_block">
463
-                  静脉管道
464
+                  静脉管道:
464 465
                   <check-box text="0" :checked="afterdialysis.intravenous_tube == 1?true:false"></check-box>
465 466
                   <check-box text="+" :checked="afterdialysis.intravenous_tube == 2?true:false"></check-box>
466 467
                   <check-box text="++" :checked="afterdialysis.intravenous_tube == 3?true:false"></check-box>
467 468
                   <check-box text="+++" :checked="afterdialysis.intravenous_tube == 4?true:false"></check-box>
468 469
                 </div>
469 470
                 <div class="inline_block">
470
-                  透析器
471
+                  透析器:
471 472
                   <check-box text="0" :checked="afterdialysis.dialyzer == 1?true:false"></check-box>
472 473
                   <check-box text="+" :checked="afterdialysis.dialyzer == 2?true:false"></check-box>
473 474
                   <check-box text="++" :checked="afterdialysis.dialyzer == 3?true:false"></check-box>
@@ -600,31 +601,31 @@
600 601
         </div>
601 602
         <div class="inline_block" style="margin-left: 5px;">
602 603
           住院号:
603
-          <div class="under_line" style="width: 70px;text-align: left" v-if="receiverTreatmentAccess.admission_number">
604
+          <div class="under_line" style="width: 50px;text-align: left" v-if="receiverTreatmentAccess.admission_number">
604 605
             {{patientInfo_source_2?receiverTreatmentAccess.admission_number:'/'}}
605 606
           </div>
606
-          <div class="under_line" style="width: 70px;text-align: left" v-else>
607
+          <div class="under_line" style="width: 50px;text-align: left" v-else>
607 608
             {{'/'}}
608 609
           </div>
609 610
         </div>
610
-        <div class="inline_block" style="margin-left:10px;">
611
+        <div class="inline_block" style="margin-left:5px;">
611 612
           姓名:
612 613
           <div class="under_line" style="width: 50px;text-align: left">{{patientInfo.name}}</div>
613 614
         </div>
614
-        <div class="inline_block" style="margin-left: 10px;">
615
+        <div class="inline_block" style="margin-left: 5px;">
615 616
           性别:
616 617
           <check-box text="男" :checked="patientInfo_gender_1"></check-box>
617 618
           &nbsp;
618 619
           <check-box text="女" :checked="patientInfo_gender_2"></check-box>
619 620
         </div>
620
-        <div class="inline_block" style="margin-left: 10px;">
621
+        <div class="inline_block" style="margin-left: 5px;">
621 622
           年龄:
622 623
           <div class="under_line" style="width: 30px;text-align: left">{{getAge(patientInfo)}}</div>
623 624
624 625
         </div>
625
-        <div class="inline_block" style="margin-left: 10px;">
626
+        <div class="inline_block" style="margin-left: 5px;">
626 627
           诊断:
627
-          <div class="under_line" style="width:180px;text-align: left">{{patientInfo.diagnose}}</div>
628
+          <div class="under_line" style="width:160px;text-align: left">{{patientInfo.diagnose}}</div>
628 629
         </div>
629 630
       </div>
630 631
 
@@ -668,13 +669,13 @@
668 669
               <!--<check-box text="HP" :checked="prescription.mode_id==4?true:false"></check-box>-->
669 670
               <!--<check-box text="HD+HP" :checked="prescription.mode_id==3?true:false"></check-box>-->
670 671
               <!--</div>-->
671
-              <div class="inline_block" style="margin-left:20px;">
672
+              <div class="inline_block" style="margin-left:10px;">
672 673
                 其它:
673
-                <div class="under_line" style="width: 100px;text-align: left">
674
+                <div class="under_line" style="width: 50px;text-align: left">
674 675
                   <span v-if="prescription.mode_id>5">{{prescription.mode}}</span>
675 676
                 </div>
676 677
               </div>
677
-              <div class="inline_block" style="margin-left:20px;">
678
+              <div class="inline_block" style="margin-left:10px;">
678 679
                 治疗时间:
679 680
                 <div class="under_line" style="width: 30px;text-align: left">
680 681
                   {{prescription.dialysis_duration_hour?prescription.dialysis_duration_hour:'0'}}
@@ -685,8 +686,8 @@
685 686
                 </div>
686 687
                 min
687 688
               </div>
688
-              <div class="inline_block">
689
-                &emsp;&emsp;病情:
689
+              <div class="inline_block" style="margin-left:10px;">
690
+                 病情:
690 691
                 <check-box v-for="item, index in sick_condition_arr" :key="index"  :text="item.name" :checked="receiverTreatmentAccess.sick_condition == item.id?true:false"></check-box>
691 692
 
692 693
                 <!--<check-box text="一般" :checked="receiverTreatmentAccess.sick_condition == 1?true:false"></check-box>-->
@@ -734,57 +735,57 @@
734 735
             <div class="row" style="padding: 2px 0;line-height:24px;">
735 736
               <div class="inline_block">
736 737
                 透析液(mmol/L): &emsp;Ca<sup>2+</sup>:
737
-                <div class="under_line" style="width: 70px;text-align: left" v-if="prescription.calcium">
738
+                <div class="under_line" style="width: 40px;text-align: left" v-if="prescription.calcium">
738 739
                   <span>{{getFloat(prescription.calcium)?getFloat(prescription.calcium):'/'}}</span>
739 740
                 </div>
740
-                <div class="under_line" style="width: 70px;" v-else>
741
+                <div class="under_line" style="width: 40px;" v-else>
741 742
                   <span>{{'/'}}</span>
742 743
                 </div>
743 744
 
744 745
                 mmol/L &emsp;Na<sup>+</sup>:
745 746
 
746
-                <div class="under_line" style="width: 70px;text-align: left" v-if="prescription.sodium">
747
+                <div class="under_line" style="width: 40px;text-align: left" v-if="prescription.sodium">
747 748
                   <span>{{getFloat(prescription.sodium)?getFloat(prescription.sodium):'/'}}</span>
748 749
                 </div>
749
-                <div class="under_line" style="width: 70px;" v-else>
750
+                <div class="under_line" style="width: 40px;" v-else>
750 751
                   <span>{{'/'}}</span>
751 752
                 </div>
752 753
 
753 754
                 mmol/L &emsp;K<sup>+</sup>:
754
-                <div class="under_line" style="width: 70px;text-align: left" v-if="prescription.kalium">
755
+                <div class="under_line" style="width: 50px;text-align: left" v-if="prescription.kalium">
755 756
                   <span>{{getFloat(prescription.kalium)?getFloat(prescription.kalium):'/'}}</span>
756 757
                 </div>
757
-                <div class="under_line" style="width: 70px;" v-else>
758
+                <div class="under_line" style="width: 40px;" v-else>
758 759
                   <span>{{'/'}}</span>
759 760
                 </div>
760 761
                 mmol/L
761 762
               </div>
762 763
               <div class="inline_block" v-if="prescription.displace_liqui_part == 0">
763 764
                 &emsp;置换液后/前稀释 总量:
764
-                <div class="under_line" style="width: 70px;text-align: left" v-if="prescription.displace_liqui_value">
765
+                <div class="under_line" style="width: 50px;text-align: left" v-if="prescription.displace_liqui_value">
765 766
                   {{prescription.displace_liqui_value}}
766 767
                 </div>
767
-                <div class="under_line" style="width: 70px;" v-else>
768
+                <div class="under_line" style="width: 50px;" v-else>
768 769
                   {{'/'}}
769 770
                 </div>
770 771
                 L
771 772
               </div>
772 773
               <div class="inline_block" v-if="prescription.displace_liqui_part == 1">
773 774
                 &emsp;置换液前稀释 总量:
774
-                <div class="under_line" style="width: 70px;text-align: left" v-if="prescription.displace_liqui_value">
775
+                <div class="under_line" style="width: 50px;text-align: left" v-if="prescription.displace_liqui_value">
775 776
                   {{prescription.displace_liqui_value}}
776 777
                 </div>
777
-                <div class="under_line" style="width: 70px;" v-else>
778
+                <div class="under_line" style="width: 50px;" v-else>
778 779
                   {{'/'}}
779 780
                 </div>
780 781
                 L
781 782
               </div>
782 783
               <div class="inline_block" v-if="prescription.displace_liqui_part == 2">
783 784
                 &emsp;置换液后稀释 总量:
784
-                <div class="under_line" style="width: 70px;text-align: left" v-if="prescription.displace_liqui_value">
785
+                <div class="under_line" style="width: 50px;text-align: left" v-if="prescription.displace_liqui_value">
785 786
                   {{prescription.displace_liqui_value}}
786 787
                 </div>
787
-                <div class="under_line" style="width: 70px;" v-else>
788
+                <div class="under_line" style="width: 50px;" v-else>
788 789
                   {{'/'}}
789 790
                 </div>
790 791
                 L
@@ -1132,7 +1133,7 @@
1132 1133
         doctor_advices: [],
1133 1134
         advice_groups: [],
1134 1135
         advice_groups_2: [],
1135
-        print_length : 0,
1136
+        print_length: 0,
1136 1137
 
1137 1138
         AlPanel: {
1138 1139
           id: 0,
@@ -1188,7 +1189,7 @@
1188 1189
             style: style,
1189 1190
             scanStyles: false
1190 1191
           })
1191
-        } else if (this.org_template_info.template_id == 2 ||this.org_template_info.template_id == 0 ) {
1192
+        } else if (this.org_template_info.template_id == 2 || this.org_template_info.template_id == 0) {
1192 1193
           printJS({
1193 1194
             printable: 'dialysis-print-box-1',
1194 1195
             type: 'html',
@@ -1333,10 +1334,10 @@
1333 1334
           this.org_template_info = response.data.data.org_template_info
1334 1335
 
1335 1336
           if (this.monitors.length <= 9) {
1336
-            if(this.predialysis.systolic_blood_pressure != 0&&this.predialysis.diastolic_blood_pressure != 0||this.predialysis.remark.length > 0 || this.predialysis.pulse_frequency != 0 || this.predialysis.breathing_rate != 0 || this.predialysis.temperature != 0){
1337
+            if (this.predialysis.systolic_blood_pressure != 0 && this.predialysis.diastolic_blood_pressure != 0 || this.predialysis.remark.length > 0 || this.predialysis.pulse_frequency != 0 || this.predialysis.breathing_rate != 0 || this.predialysis.temperature != 0) {
1337 1338
               var nl = 8
1338 1339
               this.print_length = 8
1339
-            }else{
1340
+            } else {
1340 1341
               var nl = 9
1341 1342
               this.print_length = 9
1342 1343
             }
@@ -1582,17 +1583,15 @@
1582 1583
         return ''
1583 1584
       }, getAge: function(val) {
1584 1585
         if (this.org_template_info.template_id == 2 || this.org_template_info.template_id == 0) {
1585
-          if(val.birthday != 0){
1586
+          if (val.birthday != 0) {
1586 1587
             return jsGetAge(val.birth, '-')
1587
-          }else{
1588
-
1588
+          } else {
1589 1589
             return ''
1590
-
1591 1590
           }
1592 1591
         } else {
1593
-          if(val.birthday != 0){
1592
+          if (val.birthday != 0) {
1594 1593
             return jsGetAge(val.birth, '-')
1595
-          }else{
1594
+          } else {
1596 1595
             return ''
1597 1596
           }
1598 1597
         }
@@ -1610,8 +1609,8 @@
1610 1609
           }
1611 1610
         )
1612 1611
       }, getFloat: function(x) {
1613
-        if(x == 0){
1614
-          return "/"
1612
+        if (x == 0) {
1613
+          return '/'
1615 1614
         }
1616 1615
         if (x != '.') {
1617 1616
           var f = Math.round(x * 100) / 100
@@ -1676,7 +1675,6 @@
1676 1675
       this.intake_arr = getDataConfig('hemodialysis', 'intake')
1677 1676
       this.nutrition_arr = getDataConfig('hemodialysis', 'nutrition')
1678 1677
 
1679
-
1680 1678
       // this.bloodAccessParOpera = getDataConfig('hemodialysis', 'vascular_access_desc')
1681 1679
 
1682 1680
       var bloodAccessParOpera = getDataConfig('hemodialysis', 'vascular_access_desc')
@@ -1705,6 +1703,9 @@
1705 1703
 </script>
1706 1704
 
1707 1705
 <style>
1706
+  .row {
1707
+    font-size: 16px !important;
1708
+  }
1708 1709
    .print_page_main_content {
1709 1710
     background-color: white;
1710 1711
     width: 960px;
@@ -1803,9 +1804,9 @@
1803 1804
   .print_page_main_content .proj_table .inside_table tr td {
1804 1805
     border: 1px solid;
1805 1806
     text-align: center;
1806
-    font-size: 14px;
1807
+    font-size: 16px;
1807 1808
     padding: 6px 5px;
1808
-    line-height: 16px;
1809
+    line-height: 18px;
1809 1810
   }
1810 1811
 
1811 1812
   .print-table-no {

+ 151 - 0
src/xt_pages/integration/his/fieldConfig.vue Vedi File

@@ -0,0 +1,151 @@
1
+<template>
2
+  <div style="display:flex;">
3
+    <el-tabs tabPosition="left" type="border-card" style="display:inline-black;">
4
+      <el-tab-pane v-for="item in sysInspec" :key="item.project_id" :label="item.project_name" >
5
+        <el-table :data="item.inspection_reference" border style="width: 100%">
6
+          <el-table-column
7
+            prop="item_name"
8
+            label="检验名称"
9
+            width="180">
10
+          </el-table-column>
11
+          <el-table-column
12
+            prop="id"
13
+            label="item_id"
14
+            width="180">
15
+          </el-table-column>
16
+        </el-table>
17
+      </el-tab-pane>
18
+    </el-tabs>
19
+
20
+    <template v-if="ownerInspec">
21
+      <el-tabs  tabPosition="left" type="border-card" style="display:inline-black;margin-left:100px;">
22
+        <el-tab-pane v-for="owner in ownerInspec" :key="owner.project_id" :label="owner.project_name" >
23
+          <el-table :data="owner.inspection_reference" border style="width: 100%">
24
+            <el-table-column
25
+              prop="item_name"
26
+              label="检验名称"
27
+              width="180">
28
+            </el-table-column>
29
+            <el-table-column label="item_id"  width="180"> 
30
+              <template slot-scope="scope">
31
+                <span v-if="scope.row.sys_item_id > 0">{{scope.row.sys_item_id}}</span>
32
+              </template>
33
+            </el-table-column>
34
+            <el-table-column label="编辑" width="180">
35
+              <template slot-scope="scope">
36
+              <el-button size="mini"  @click="handleEdit(scope.$index, scope.row)">编辑</el-button>
37
+              </template>
38
+            </el-table-column>
39
+          </el-table>
40
+        </el-tab-pane>
41
+      </el-tabs>
42
+    </template>
43
+    <el-dialog title="编辑item_id" :visible.sync="dialogFormVisible">
44
+      <el-form :model="form">
45
+        <el-form-item label="检验检查名称" :label-width="formLabelWidth">
46
+          <el-input v-model="form.item_name" autocomplete="off"></el-input>
47
+        </el-form-item>
48
+        <el-form-item label="系统item_id" :label-width="formLabelWidth">
49
+          <el-input v-model="form.sys_item_id" autocomplete="off"></el-input>
50
+        </el-form-item>
51
+      </el-form>
52
+      <div slot="footer" class="dialog-footer">
53
+        <el-button @click="dialogFormVisible = false">取 消</el-button>
54
+        <el-button type="primary" @click="saveinspection()">确 定</el-button>
55
+      </div>
56
+    </el-dialog>
57
+  </div>
58
+</template>
59
+
60
+<script>
61
+import { getsysinspectionlist, saveinspectionsysitemid } from '@/api/integration'
62
+
63
+export default {
64
+  name: 'patientHisConfig',
65
+
66
+  created() {
67
+    this.getsysinspectionlist()
68
+  },
69
+  data() {
70
+    return {
71
+      dialogFormVisible: false,
72
+      ownerInspec: {},
73
+      sysInspec: {},
74
+      form: []
75
+    }
76
+  },
77
+  methods: {
78
+    handleEdit: function(index, row) {
79
+      this.form = row
80
+      this.dialogFormVisible = true
81
+    },
82
+    saveinspection: function() {
83
+      saveinspectionsysitemid(this.form).then(response => {
84
+        if (response.data.state == 0) {
85
+          this.$message.error(response.data.msg)
86
+          return false
87
+        } else {
88
+          this.ownerInspec[this.form.project_id]['inspection_reference']['sys_item_id'] = this.form.sys_item_id
89
+          this.dialogFormVisible = false
90
+        }
91
+      })
92
+    },
93
+    getsysinspectionlist: function() {
94
+      getsysinspectionlist().then(response => {
95
+        if (response.data.state == 0) {
96
+          this.$message.error(response.data.msg)
97
+          return false
98
+        } else {
99
+          this.ownerInspec = response.data.data.ownerInspec
100
+          this.sysInspec = response.data.data.sysInspec
101
+        }
102
+      })
103
+    }
104
+  }
105
+}
106
+</script>
107
+
108
+<style rel="stylesheet/css" lang="scss" scoped>
109
+.information {
110
+  border: 1px #dcdfe6 solid;
111
+  padding: 30px 20px 30px 20px;
112
+
113
+  .border {
114
+    border-bottom: 1px #dcdfe6 solid;
115
+    margin: 0px 0 20px 0;
116
+  }
117
+}
118
+
119
+.edit_separater {
120
+  border-top: 1px solid rgb(233, 233, 233);
121
+  margin-top: 15px;
122
+  margin-bottom: 15px;
123
+}
124
+</style>
125
+
126
+<style>
127
+.sign-and-weigh-box .sign-and-weigh-box-patients .cell {
128
+  font-size: 12px;
129
+}
130
+
131
+.sign-and-weigh-box .sign-and-weigh-box-patients .current-row > td {
132
+  background: #6fb5fa;
133
+}
134
+
135
+.count {
136
+  color: #bd2c00;
137
+}
138
+
139
+.el-table td,
140
+.el-table th.is-leaf,
141
+.el-table--border,
142
+.el-table--group {
143
+  border-color: #d0d3da;
144
+}
145
+
146
+.el-table--border::after,
147
+.el-table--group::after,
148
+.el-table::before {
149
+  background-color: #d0d3da;
150
+}
151
+</style>

+ 250 - 0
src/xt_pages/integration/his/interfaceConfig.vue Vedi File

@@ -0,0 +1,250 @@
1
+<template>
2
+  <el-form ref="form" :model="form" label-width="140px" style="margin-top:40px;">
3
+    <el-form-item label="同步模式">
4
+      <el-select v-model="form.pattern" placeholder="请选择同步模式"  style="width :600px;">
5
+        <el-option v-for="item in patterns" :key="item.value" :label="item.label" :value="item.value"> </el-option>
6
+      </el-select>
7
+    </el-form-item>
8
+    <el-form-item label="数据库地址" v-if="form.pattern == 1 || form.pattern == 0" >
9
+      <el-input v-model.trim="form.dbhost" maxlength="200" style="width :600px;"></el-input>
10
+    </el-form-item>
11
+    <el-form-item label="用户名" v-if="form.pattern == 1 || form.pattern == 0" >
12
+      <el-input v-model.trim="form.dbuser" maxlength="200" style="width :600px;"></el-input>
13
+    </el-form-item>
14
+    <el-form-item label="密码" v-if="form.pattern == 1 || form.pattern == 0" >
15
+      <el-input v-model.trim="form.dbpassword" maxlength="200" style="width :600px;"></el-input>
16
+    </el-form-item>
17
+    <el-form-item label="数据库名" v-if="form.pattern == 1 || form.pattern == 0" >
18
+      <el-input v-model.trim="form.dbname" maxlength="200" style="width :600px;"></el-input>
19
+    </el-form-item>
20
+    <el-form-item label="接口地址" v-if="form.pattern == 2" >
21
+      <el-input v-model.trim="form.interface_url" maxlength="200" style="width :600px;"></el-input>
22
+    </el-form-item>
23
+    <el-form-item label="密钥" v-if="form.pattern == 2" >
24
+      <el-input v-model.trim="form.interface_token" maxlength="200" style="width :600px;"></el-input>
25
+    </el-form-item>
26
+    <el-form-item label="可访问IP" v-if="form.pattern == 3" >
27
+      <el-input v-model.trim="form.allow_ip" maxlength="200" style="width :600px;"></el-input>
28
+    </el-form-item>
29
+    <el-form-item label="密钥" v-if="form.pattern == 3" >
30
+      <el-input v-model.trim="form.allow_token" maxlength="200" style="width :600px;"></el-input>
31
+    </el-form-item>
32
+    <el-form-item label="同步频率">
33
+      <el-select v-model="form.sync_frequency" placeholder="请选择同步频率" style="width :600px;">
34
+        <el-option v-for="item in sync_frequencys" :key="item.value" :label="item.label" :value="item.value"> </el-option>
35
+      </el-select>
36
+    </el-form-item>
37
+
38
+    <el-form-item label="Tips" v-if="form.pattern == 3" >
39
+      <div style="width :600px;">本接口方位地址为:https://api.kuyicloud.com/api/sync?org_id=xx?str=xxx?timestamp=xxx?titck=xxx
40
+需要传递的参数有,org_id(机构id),str(随机字符串),timestamp(当前时间戳),和titck(签名)
41
+签名生成规则:org_id+str+timestamp,以md5加密钥的方式生成字符串</div>
42
+    </el-form-item>
43
+  
44
+    <el-form-item>
45
+      <el-button type="primary" @click="onSubmit">保存</el-button>
46
+      <el-button>重置</el-button>
47
+    </el-form-item>
48
+  </el-form>
49
+</template>
50
+
51
+<script>
52
+import { getInterface, saveInterface } from '@/api/integration'
53
+export default {
54
+  name: 'interfaceConfig',
55
+
56
+  created() {
57
+    this.getInterface()
58
+  },
59
+  data() {
60
+    return {
61
+      sync_frequencys: [{
62
+        value: 1,
63
+        label: '1分钟/次'
64
+      }, {
65
+        value: 2,
66
+        label: '10分钟/次'
67
+      }, {
68
+        value: 3,
69
+        label: '30分钟/次'
70
+      }, {
71
+        value: 4,
72
+        label: '1小时/次'
73
+      }, {
74
+        value: 5,
75
+        label: '6小时/次'
76
+      }, {
77
+        value: 6,
78
+        label: '12小时/次'
79
+      }, {
80
+        value: 7,
81
+        label: '1天/次'
82
+      }],
83
+      patterns: [{
84
+        value: 1,
85
+        label: '访问数据库模式'
86
+      }, {
87
+        value: 2,
88
+        label: '调用接口模式'
89
+      }, {
90
+        value: 3,
91
+        label: '数据接收模式'
92
+      }],
93
+      form: {
94
+        id: 0,
95
+        pattern: '',
96
+        dbhost: '',
97
+        dbuser: '',
98
+        dbpassword: '',
99
+        dbname: '',
100
+        interface_url: '',
101
+        interface_token: '',
102
+        allow_ip: '',
103
+        allow_token: '',
104
+        sync_frequency: ''
105
+      }
106
+    }
107
+  },
108
+  methods: {
109
+    getInterface: function() {
110
+      getInterface().then(response => {
111
+        if (response.data.state == 0) {
112
+          this.$message.error(response.data.msg)
113
+          return false
114
+        } else {
115
+          var interfaceinfo = response.data.data.interfaceinfo
116
+          if (interfaceinfo != null) {
117
+            this.form.id = interfaceinfo.id
118
+            this.form.pattern = interfaceinfo.pattern
119
+            this.form.dbhost = interfaceinfo.dbhost
120
+            this.form.dbuser = interfaceinfo.dbuser
121
+            this.form.dbpassword = interfaceinfo.dbpassword
122
+            this.form.dbname = interfaceinfo.dbname
123
+            this.form.interface_url = interfaceinfo.interface_url
124
+            this.form.interface_token = interfaceinfo.interface_token
125
+            this.form.allow_ip = interfaceinfo.allow_ip
126
+            this.form.allow_token = interfaceinfo.allow_token
127
+            this.form.sync_frequency = interfaceinfo.sync_frequency
128
+          }
129
+        }
130
+      })
131
+    },
132
+    onSubmit() {
133
+      if (this.form.pattern === '') {
134
+        this.$message.error('请选择同步模式')
135
+        return false
136
+      }
137
+      if (this.form.pattern == 1) {
138
+        if (this.form.dbhost.length <= 0) {
139
+          this.$message.error('请输入数据库地址')
140
+          return false
141
+        }
142
+        if (this.form.dbuser.length <= 0) {
143
+          this.$message.error('请输入数据库用户名')
144
+          return false
145
+        }
146
+        if (this.form.dbpassword.length <= 0) {
147
+          this.$message.error('请输入数据库密码')
148
+          return false
149
+        }
150
+        if (this.form.dbname.length <= 0) {
151
+          this.$message.error('请输入数据库名')
152
+          return false
153
+        }
154
+      }
155
+      if (this.form.pattern == 2) {
156
+        if (this.form.interface_url.length <= 0) {
157
+          this.$message.error('请输入接口地址')
158
+          return false
159
+        }
160
+        if (this.form.interface_token.length <= 0) {
161
+          this.$message.error('请输入密钥')
162
+          return false
163
+        }
164
+      }
165
+      if (this.form.pattern == 3) {
166
+        if (this.form.allow_ip.length <= 0) {
167
+          this.$message.error('请输入可访问IP地址')
168
+          return false
169
+        }
170
+        if (this.form.allow_token.length <= 0) {
171
+          this.$message.error('请输入密钥')
172
+          return false
173
+        }
174
+      }
175
+      if (this.form.sync_frequency === '') {
176
+        this.$message.error('请选择同步频率')
177
+        return false
178
+      }
179
+
180
+      saveInterface(this.form).then(response => {
181
+        if (response.data.state == 0) {
182
+          this.$message.error(response.data.msg)
183
+          return false
184
+        } else {
185
+          var interfaceinfo = response.data.data.interfaceinfo
186
+          if (interfaceinfo != null && interfaceinfo.length > 0) {
187
+            this.form.id = interfaceinfo.id
188
+            this.form.pattern = interfaceinfo.pattern
189
+            this.form.dbhost = interfaceinfo.dbhost
190
+            this.form.dbuser = interfaceinfo.dbuser
191
+            this.form.dbpassword = interfaceinfo.dbpassword
192
+            this.form.dbname = interfaceinfo.dbname
193
+            this.form.interface_url = interfaceinfo.interface_url
194
+            this.form.interface_token = interfaceinfo.interface_token
195
+            this.form.allow_ip = interfaceinfo.allow_ip
196
+            this.form.allow_token = interfaceinfo.allow_token
197
+            this.form.sync_frequency = interfaceinfo.sync_frequency
198
+          }
199
+          this.$message({ message: '提交成功', type: 'success' })
200
+        }
201
+      })
202
+    }
203
+  }
204
+}
205
+</script>
206
+
207
+<style rel="stylesheet/css" lang="scss" scoped>
208
+.information {
209
+  border: 1px #dcdfe6 solid;
210
+  padding: 30px 20px 30px 20px;
211
+
212
+  .border {
213
+    border-bottom: 1px #dcdfe6 solid;
214
+    margin: 0px 0 20px 0;
215
+  }
216
+}
217
+
218
+.edit_separater {
219
+  border-top: 1px solid rgb(233, 233, 233);
220
+  margin-top: 15px;
221
+  margin-bottom: 15px;
222
+}
223
+</style>
224
+
225
+<style>
226
+.sign-and-weigh-box .sign-and-weigh-box-patients .cell {
227
+  font-size: 12px;
228
+}
229
+
230
+.sign-and-weigh-box .sign-and-weigh-box-patients .current-row > td {
231
+  background: #6fb5fa;
232
+}
233
+
234
+.count {
235
+  color: #bd2c00;
236
+}
237
+
238
+.el-table td,
239
+.el-table th.is-leaf,
240
+.el-table--border,
241
+.el-table--group {
242
+  border-color: #d0d3da;
243
+}
244
+
245
+.el-table--border::after,
246
+.el-table--group::after,
247
+.el-table::before {
248
+  background-color: #d0d3da;
249
+}
250
+</style>

+ 162 - 0
src/xt_pages/integration/his/syncList.vue Vedi File

@@ -0,0 +1,162 @@
1
+<template>
2
+  <div>
3
+    <el-row :gutter="12" style="margin-top: 10px">
4
+      <el-table :data="patientData"  border :row-style="{ color: '#303133' }" :header-cell-style="{ backgroundColor: 'rgb(245, 247, 250)', color: '#606266' }" >
5
+        <el-table-column label="同步时间" align="center" width="200">
6
+          <template slot-scope="scope">{{getTime( scope.row.sync_time ,'{y}-{m}-{d} {h}:{i}:{s}')}}</template>
7
+        </el-table-column>
8
+
9
+        <el-table-column label="同步结果" align="center">
10
+          <template slot-scope="scope">
11
+            <span v-if="scope.row.sync_result_type == 1">成功</span>
12
+            <span v-if="scope.row.sync_result_type == 2">失败</span>
13
+          </template>
14
+        </el-table-column>
15
+
16
+        <el-table-column label="同步信息" align="center">
17
+          <template slot-scope="scope">{{scope.row.sync_result_remark }}</template>
18
+        </el-table-column>
19
+
20
+        <el-table-column label="同步条数" align="center">
21
+          <template slot-scope="scope">{{scope.row.sync_total_num }}</template>
22
+        </el-table-column>
23
+
24
+        <el-table-column label="上传条数" align="center">
25
+            <template slot-scope="scope">{{scope.row.sync_success_num }}</template>
26
+        </el-table-column>
27
+      </el-table>
28
+
29
+      <el-pagination
30
+        @size-change="handleSizeChange"
31
+        @current-change="handleCurrentChange"
32
+        :page-sizes="[10, 50, 100]"
33
+        :page-size="10"
34
+        background
35
+        style="margin-top:20px;float: right"
36
+        layout="total, sizes, prev, pager, next, jumper"
37
+        :total="total"
38
+      ></el-pagination>
39
+    </el-row>
40
+  </div>
41
+</template>
42
+
43
+<script>
44
+import { getsynclist } from '@/api/integration'
45
+import { uParseTime } from '@/utils/tools'
46
+
47
+export default {
48
+  name: 'patientHisConfig',
49
+
50
+  created() {
51
+    this.getsynclist()
52
+  },
53
+  data() {
54
+    return {
55
+      dialogFormVisible: false,
56
+      page: 1,
57
+      limit: 10,
58
+      total: 0,
59
+      pageTotal: 0,
60
+      pageSelect: 0,
61
+      adminUserOptions: [],
62
+      patientData: [],
63
+      contagions: [],
64
+      patient_id: 0,
65
+      his_record_id: 0,
66
+      his_id: '',
67
+      current_index: 0,
68
+      name: '',
69
+
70
+      form: {
71
+        his_user_id: '',
72
+        name: '',
73
+        sex: '',
74
+        other_age: '',
75
+        infectious: ''
76
+      },
77
+      rules: {
78
+        his_user_id: [
79
+          { required: true, message: '请输入his_id', trigger: 'blur' }
80
+        ]
81
+      }
82
+    }
83
+  },
84
+  methods: {
85
+    getsynclist: function() {
86
+      const Params = {
87
+        page: this.page,
88
+        limit: this.limit
89
+      }
90
+      getsynclist(Params).then(response => {
91
+        if (response.data.state == 0) {
92
+          this.$message.error(response.data.msg)
93
+          return false
94
+        } else {
95
+          this.total = response.data.data.total
96
+          this.patientData = response.data.data.list
97
+        }
98
+      })
99
+    },
100
+    handleSizeChange(val) {
101
+      this.limit = val
102
+      this.getsynclist()
103
+    },
104
+    handleCurrentChange(val) {
105
+      this.page = val
106
+      this.getsynclist()
107
+    },
108
+    getTime(value, temp) {
109
+      if (value != undefined) {
110
+        return uParseTime(value, temp)
111
+      }
112
+      return ''
113
+    }
114
+
115
+  }
116
+}
117
+</script>
118
+
119
+<style rel="stylesheet/css" lang="scss" scoped>
120
+.information {
121
+  border: 1px #dcdfe6 solid;
122
+  padding: 30px 20px 30px 20px;
123
+
124
+  .border {
125
+    border-bottom: 1px #dcdfe6 solid;
126
+    margin: 0px 0 20px 0;
127
+  }
128
+}
129
+
130
+.edit_separater {
131
+  border-top: 1px solid rgb(233, 233, 233);
132
+  margin-top: 15px;
133
+  margin-bottom: 15px;
134
+}
135
+</style>
136
+
137
+<style>
138
+.sign-and-weigh-box .sign-and-weigh-box-patients .cell {
139
+  font-size: 12px;
140
+}
141
+
142
+.sign-and-weigh-box .sign-and-weigh-box-patients .current-row > td {
143
+  background: #6fb5fa;
144
+}
145
+
146
+.count {
147
+  color: #bd2c00;
148
+}
149
+
150
+.el-table td,
151
+.el-table th.is-leaf,
152
+.el-table--border,
153
+.el-table--group {
154
+  border-color: #d0d3da;
155
+}
156
+
157
+.el-table--border::after,
158
+.el-table--group::after,
159
+.el-table::before {
160
+  background-color: #d0d3da;
161
+}
162
+</style>

+ 15 - 1
src/xt_pages/integration/his_config.vue Vedi File

@@ -12,6 +12,15 @@
12 12
           <el-tab-pane label="医护配置">
13 13
             <admin-his-config></admin-his-config>
14 14
           </el-tab-pane>
15
+          <el-tab-pane label="接口配置">
16
+            <interface-config></interface-config>
17
+          </el-tab-pane>
18
+          <el-tab-pane label="同步列表">
19
+            <sync-list></sync-list>
20
+          </el-tab-pane>
21
+          <el-tab-pane label="字段配置">
22
+            <field-config></field-config>
23
+          </el-tab-pane>
15 24
         </el-tabs>
16 25
       </div>
17 26
     </div>
@@ -19,16 +28,21 @@
19 28
 </template>
20 29
 
21 30
 <script>
22
-
23 31
   import BreadCrumb from '@/xt_pages/components/bread-crumb'
24 32
   import PatientHisConfig from './his/patientHisConfig'
25 33
   import AdminHisConfig from './his/adminHisConfig'
34
+  import InterfaceConfig from './his/interfaceConfig'
35
+  import SyncList from './his/syncList'
36
+  import FieldConfig from './his/fieldConfig'
26 37
 
27 38
   export default {
28 39
     name: 'his_config',
29 40
     components: {
30 41
       AdminHisConfig,
31 42
       PatientHisConfig,
43
+      InterfaceConfig,
44
+      SyncList,
45
+      FieldConfig,
32 46
       BreadCrumb
33 47
     },
34 48
     data() {