Browse Source

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

28169 1 month ago
parent
commit
64a65bda71
1 changed files with 70 additions and 53 deletions
  1. 70 53
      src/xt_pages/user/physiqueprinting.vue

+ 70 - 53
src/xt_pages/user/physiqueprinting.vue View File

@@ -9,68 +9,72 @@
9 9
       <div id="print_content" v-for="item in list" style="font-family: Microsoft YaHei;font-size: 16px;">
10 10
         <!-- &&item.comtent.indexOf('首次透析时间')==-1 -->
11 11
         <div class="print_page_main_content">
12
-          <div v-if="item.content.indexOf('首次透析时间') !=-1 && item.content.indexOf('医保类型') !=-1&&
13
-            item.content.indexOf('现病史') !=-1&&(item.comtent).indexOf('既往史') !=-1"></div>
14
-          <div v-else>
15
-            <h1 style="text-align: center; padding-top:12px;">{{ orgname }}血液净化治疗病历</h1>
16
-            <div style="border-bottom: 1px solid black;display: flex;padding-bottom: 10px;padding-top: 10px;">
17
-              <div style="flex:1;text-align: center;">
18
-                姓名:
19
-                <div style="width: 120px;text-align: left;display:inline-block;">{{ patient.name }}</div>
20
-              </div>
12
+          <div>
13
+           
14
+            <div v-if="item.content.indexOf('首次透析时间') ==-1 && item.content.indexOf('医保类型') ==-1">
15
+              <h1 style="text-align: center; padding-top:12px;">{{ orgname }}血液净化治疗病历</h1>
16
+              <div style="border-bottom: 1px solid black;display: flex;padding-bottom: 10px;padding-top: 10px;">
17
+                <div style="flex:1;text-align: center;">
18
+                  姓名:
19
+                  <div style="width: 120px;text-align: left;display:inline-block;">{{ patient.name }}</div>
20
+                </div>
21 21
 
22
-              <div style="flex:1;text-align: center;">
23
-                病历号:
24
-                <div style="width: 120px;text-align: left;display:inline-block;">
25
-                  {{ patient.dialysis_no ? patient.dialysis_no : '/' }}
22
+                <div style="flex:1;text-align: center;">
23
+                  病历号:
24
+                  <div style="width: 120px;text-align: left;display:inline-block;">
25
+                    {{ patient.dialysis_no ? patient.dialysis_no : '/' }}
26
+                  </div>
26 27
                 </div>
27
-              </div>
28 28
 
29
-              <div style="flex:1;text-align: center;">
30
-                病区-床号:
31
-                <div style="width: 120px;text-align: left;display:inline-block;">
29
+                <div style="flex:1;text-align: center;">
30
+                  病区-床号:
31
+                  <div style="width: 120px;text-align: left;display:inline-block;">
32 32
 
33
+                  </div>
33 34
                 </div>
34
-              </div>
35 35
 
36
-              <div style="flex:1;text-align: center;">
37
-                接收日期:
38
-                <div style="width: 100px;text-align: left;display:inline-block;">
39
-                  {{ getTime(patient.created_time, '{y}-{m}-{d}') }}
36
+                <div style="flex:1;text-align: center;">
37
+                  接收日期:
38
+                  <div style="width: 100px;text-align: left;display:inline-block;">
39
+                    {{ getTime(patient.created_time, '{y}-{m}-{d}') }}
40
+                  </div>
40 41
                 </div>
41 42
               </div>
42
-            </div>
43
-            <div style="display: flex; justify-self: start;margin-top: 5px ;width: 100%;">
44
-              <div style="flex: 1;">性别:{{ getPatientGender(patient.gender) }}</div>
45
-              <div style="flex: 1;">年龄:{{ patient.age }}</div>
46
-              <div style="flex: 1;">出生日期:{{ getTime(patient.birthday, '{y}-{m}-{d}') }}</div>
47
-            </div>
48
-            <div style="display: flex; justify-self: start; margin-top: 5px ;width: 100%;">
49
-              <div style="flex: 1;">身份证号:{{ patient.id_card_no }}</div>
50
-              <div style="flex: 1;">病人来源:{{ patient.source == 1 ? '门诊' : '住院' }}</div>
51
-              <div style="flex: 1;">透析号:{{ patient.dialysis_no }}</div>
52
-            </div>
53
-            <div style="display: flex; justify-self: start; margin-top: 5px ;width: 100%;">
54
-              <div style="flex: 1;">
55
-                首次透析日期:{{ patient.first_dialysis_date ? getTime(patient.first_dialysis_date, '{y}-{m}-{d}') : '' }}
43
+              <div style="display: flex; justify-self: start;margin-top: 5px ;width: 100%;">
44
+                <div style="flex: 1;">性别:{{ getPatientGender(patient.gender) }}</div>
45
+                <div style="flex: 1;">年龄:{{ patient.age }}</div>
46
+                <div style="flex: 1;">出生日期:{{ getTime(patient.birthday, '{y}-{m}-{d}') }}</div>
56 47
               </div>
57
-              <div style="flex: 1;">血型:{{ getBloodType(patient.blood_type) }}</div>
58
-              <div style="flex: 1;">报销方式:{{ getWayOptions(patient.reimbursement_way_id) }}</div>
59
-            </div>
60
-            <div style="display: flex; justify-self: start; margin-top: 5px ;width: 100%;">
61
-              <div style="flex: 1;">工作单位:{{ patient.work_unit }}</div>
62
-              <div style="flex: 1;">联系电话:{{ patient.phone }}</div>
63
-              <div style="flex: 1;">家庭住址:{{ patient.home_address }}</div>
64
-            </div>
65
-            <div style="display: flex; justify-self: start; margin-top: 5px ;width: 100%;">
66
-              <div style="flex: 1;">肾移植史:{{ item.is_shenyizhi_history == 1?'无':'有' }}</div>
67
-              <div style="flex: 1;">腹膜透析史:{{ item.is_fumo_dialysis_history == 1? '无':'有' }}</div>
68
-              <div style="flex: 1;" v-if="item.is_hypersusceptibility == 0">过敏药物:无</div>
69
-              <div style="flex: 1;" v-if="item.is_hypersusceptibility == 2">过敏药物:有</div>
70
-              <div style="flex: 1;" v-if="item.is_hypersusceptibility == 3">过敏药物:不想</div>
48
+              <div style="display: flex; justify-self: start; margin-top: 5px ;width: 100%;">
49
+                <div style="flex: 1;">身份证号:{{ patient.id_card_no }}</div>
50
+                <div style="flex: 1;">病人来源:{{ patient.source == 1 ? '门诊' : '住院' }}</div>
51
+                <div style="flex: 1;">透析号:{{ patient.dialysis_no }}</div>
52
+              </div>
53
+              <div style="display: flex; justify-self: start; margin-top: 5px ;width: 100%;">
54
+                <div style="flex: 1;">
55
+                  首次透析日期:{{ patient.first_dialysis_date ? getTime(patient.first_dialysis_date, '{y}-{m}-{d}') : '' }}
56
+                </div>
57
+                <div style="flex: 1;">血型:{{ getBloodType(patient.blood_type) }}</div>
58
+                <div style="flex: 1;">报销方式:{{ getWayOptions(patient.reimbursement_way_id) }}</div>
59
+              </div>
60
+              <div style="display: flex; justify-self: start; margin-top: 5px ;width: 100%;">
61
+                <div style="flex: 1;">工作单位:{{ patient.work_unit }}</div>
62
+                <div style="flex: 1;">联系电话:{{ patient.phone }}</div>
63
+                <div style="flex: 1;">家庭住址:{{ patient.home_address }}</div>
64
+              </div>
65
+              <div style="display: flex; justify-self: start; margin-top: 5px ;width: 100%;">
66
+                <div style="flex: 1;">肾移植史:{{ item.is_shenyizhi_history == 1?'无':'有' }}</div>
67
+                <div style="flex: 1;">腹膜透析史:{{ item.is_fumo_dialysis_history == 1? '无':'有' }}</div>
68
+                <div style="flex: 1;" v-if="item.is_hypersusceptibility == 0">过敏药物:无</div>
69
+                <div style="flex: 1;" v-if="item.is_hypersusceptibility == 2">过敏药物:有</div>
70
+                <div style="flex: 1;" v-if="item.is_hypersusceptibility == 3">过敏药物:不想</div>
71 71
 
72
+              </div>
73
+              <h3 style="text-align: center; margin: 20px 0px;">病史内容</h3>
74
+            </div>
75
+            <div v-else>
76
+              
72 77
             </div>
73
-            <h3 style="text-align: center; margin: 20px 0px;">病史内容</h3>
74 78
           </div>
75 79
           <div style="word-break: break-all; word-wrap: break-word;">
76 80
             <div v-html="item.content" style="font-family: Microsoft YaHei;"></div>
@@ -683,8 +687,21 @@ export default {
683 687
           this.diagnosis = this.patient.diagnose.split(',')
684 688
           
685 689
           this.list = response.data.data.sickhistorys
686
-          console.log('ttttttt',response.data.data);
687
-          console.log('cccccc',typeof(this.list[0].content),this.list[0].content.indexOf('首次透析时间') ==-1);
690
+         
691
+          if(this.list[0].content.indexOf('首次透析时间') !=-1&&this.list[0].content.indexOf('医保类型') !=-1
692
+          ){
693
+            console.log('111111111显示');
694
+          }else{
695
+            console.log('222222222隐藏');
696
+          }
697
+          // if(this.list[0].content.indexOf('首次透析时间') ==-1&&this.list[0].content.indexOf('医保类型') ==-1&&
698
+          //   this.list[0].content.indexOf('现病史') ==-1&&this.list[0].content.indexOf('既往史') ==-1
699
+          // ){
700
+          //   console.log('222222222隐藏');
701
+          // }
702
+          // console.log('ttttttt',response.data.data);
703
+          console.log('cccccc',this.list[0].content.indexOf('首次透析时间'),this.list[0].content.indexOf('医保类型'),
704
+          this.list[0].content.indexOf('现病史'),this.list[0].content.indexOf('既往史'));
688 705
           
689 706
           
690 707
         }