28169 1 yıl önce
ebeveyn
işleme
8febd77d4e
23 değiştirilmiş dosya ile 638 ekleme ve 104 silme
  1. 4 4
      src/xt_pages/dialysis/batch_print/batch_print_order_six.vue
  2. 10 2
      src/xt_pages/dialysis/batch_print/batch_print_order_sixty.vue
  3. 3 3
      src/xt_pages/dialysis/details/consumable/dialysisParameter.vue
  4. 16 8
      src/xt_pages/dialysis/details/dialog/assessmentBeforeDislysisDialog.vue
  5. 7 1
      src/xt_pages/dialysis/details/dialog/dialysisPrescriptionDialog.vue
  6. 2 2
      src/xt_pages/dialysis/template/DialysisPrintOrderSix.vue
  7. 6 4
      src/xt_pages/dialysis/template/DialysisPrintOrderSixty.vue
  8. 1 0
      src/xt_pages/outpatientDoctorStation/components/dialysisIndextwo.vue
  9. 2 2
      src/xt_pages/stock/drugs/drugStockOutOrder.vue
  10. 10 1
      src/xt_pages/user/Informed/Informedconsent.vue
  11. 64 8
      src/xt_pages/user/Informed/components/Bring_informed.vue
  12. 2 2
      src/xt_pages/user/Informed/components/Falloutbedprint.vue
  13. 2 2
      src/xt_pages/user/Informed/components/Filter_informed.vue
  14. 63 7
      src/xt_pages/user/Informed/components/Highrisk_informed.vue
  15. 62 8
      src/xt_pages/user/Informed/components/anticoagulation_informed.vue
  16. 63 8
      src/xt_pages/user/Informed/components/arteriovenous_informed.vue
  17. 64 8
      src/xt_pages/user/Informed/components/catheterization_informed.vue
  18. 64 8
      src/xt_pages/user/Informed/components/critical_informed.vue
  19. 63 8
      src/xt_pages/user/Informed/components/dialyzer_informed.vue
  20. 64 8
      src/xt_pages/user/Informed/components/hemoperfusion_informed.vue
  21. 1 1
      src/xt_pages/user/Informed/components/profunda_informed.vue
  22. 63 8
      src/xt_pages/user/Informed/components/therapy_informed.vue
  23. 2 1
      src/xt_pages/user/dialysisRecord.vue

+ 4 - 4
src/xt_pages/dialysis/batch_print/batch_print_order_six.vue Dosyayı Görüntüle

@@ -926,13 +926,13 @@
926 926
                       style="padding: 2px 0; line-height: 23px; display: flex"
927 927
                     >
928 928
                       <div class="inline_block" style="flex: 1"
929
-                        v-if="org_id!=10440 && org_id!=0  && org_id!=10469 && org_id!=10490 && org_id!=10478 && org_id!=10495 && org_id!=10510 && org_id!=10460">
929
+                        v-if="org_id!=10440 && org_id!=0  && org_id!=10469 && org_id!=10490 && org_id!=10478 && org_id!=10495 && org_id!=10510 && org_id!=10460 && org_id!=10585">
930 930
                         上次透后体重:
931 931
                         <div
932 932
                           class="under_line"
933 933
                           style="width: 100px; text-align: center"
934 934
                         >
935
-                          <span v-if="org_id == 10290">{{
935
+                          <span v-if="org_id == 10290 || org_id ==10585">{{
936 936
                             record.lastafterweight.weight_after
937 937
                           }}</span>
938 938
                           <span v-else>{{
@@ -1134,10 +1134,10 @@
1134 1134
                           <span v-if="record.prescription.anticoagulant == 5"
1135 1135
                             >&nbsp;枸橼酸钠</span
1136 1136
                           >
1137
-                          <span v-if="record.prescription.anticoagulant == 6 && org_id!=0 && org_id!=10206"
1137
+                          <span v-if="record.prescription.anticoagulant == 6"
1138 1138
                             >&nbsp;低分子肝素钙</span
1139 1139
                           >
1140
-                          <span v-if="record.prescription.anticoagulant == 6 || org_id ==0 || org_id ==10206"
1140
+                          <span v-if="record.prescription.anticoagulant == 16"
1141 1141
                             >&nbsp;低分子量肝素钙</span
1142 1142
                           >
1143 1143
                           <span v-if="record.prescription.anticoagulant == 7"

+ 10 - 2
src/xt_pages/dialysis/batch_print/batch_print_order_sixty.vue Dosyayı Görüntüle

@@ -1227,7 +1227,8 @@
1227 1227
                           <td width="50">静脉压<br />(mmHg)</td>
1228 1228
                           <td width="50">跨膜压<br />(mmHg)</td>
1229 1229
                           <td width="60">透析液温度(°C)</td>
1230
-                          <td width="50">电导度<br />(ms/cm)</td>
1230
+                          <td width="50" v-if="org_id!=10537">电导度<br />(ms/cm)</td>
1231
+                          <td width="50" v-if="org_id==10537">钠浓度<br />(mmol/L)</td>
1231 1232
                           <td width="50">超滤量<br />(ml)</td>
1232 1233
                           <td width="200">病情变化及处理</td>
1233 1234
                         </tr>
@@ -1287,13 +1288,20 @@
1287 1288
                                 : ""
1288 1289
                             }}
1289 1290
                           </td>
1290
-                          <td>
1291
+                          <td v-if="org_id!=10537">
1291 1292
                             {{
1292 1293
                               monitor_record.conductivity
1293 1294
                                 ? monitor_record.conductivity
1294 1295
                                 : ""
1295 1296
                             }}
1296 1297
                           </td>
1298
+                          <td v-if="org_id==10537">
1299
+                            {{
1300
+                              monitor_record.sodium_concentration
1301
+                                ? monitor_record.sodium_concentration
1302
+                                : ""
1303
+                            }}
1304
+                          </td>
1297 1305
                           <td>
1298 1306
                             <span>{{
1299 1307
                               monitor_record.ultrafiltration_volume

+ 3 - 3
src/xt_pages/dialysis/details/consumable/dialysisParameter.vue Dosyayı Görüntüle

@@ -371,8 +371,8 @@
371 371
     <el-pagination
372 372
       @size-change="handleSizeChange"
373 373
       @current-change="handleCurrentChange"
374
-      :page-sizes="[10, 50, 100]"
375
-      :page-size="10"
374
+      :page-sizes="[100, 200, 300,500,1000]"
375
+      :page-size="100"
376 376
       background
377 377
       align="right"
378 378
       style="margin-top:20px;"
@@ -471,7 +471,7 @@
471 471
           schedule_type:0,
472 472
           partition_id:0,
473 473
           page:1,
474
-          limit:10,
474
+          limit:100,
475 475
           keywords:"",
476 476
           good_type:0,
477 477
           ids:"",

+ 16 - 8
src/xt_pages/dialysis/details/dialog/assessmentBeforeDislysisDialog.vue Dosyayı Görüntüle

@@ -1566,20 +1566,28 @@
1566 1566
           }
1567 1567
         }
1568 1568
         const ParamsQuery = arr
1569
-         console.log("params",ParamsQuery)
1569
+        
1570 1570
          this.$refs.assessmentBeforeDislysis.validate((valid) => {
1571 1571
           if (valid) {
1572 1572
            
1573
-            // if(this.patient.id == 'NaN' || this.patient.id ==0){
1573
+          console.log("hhahdhahfhhadf",this.patient.id )
1574
+          console.log("this.$route.query.patient_id",this.$route.query.patient_id)
1574 1575
 
1575
-            //   ParamsQuery['patient'] = parseInt(this.$route.query.patient_id) 
1576
-            // }
1577
-            // if(this.$route.query.patient_id == 'NaN' || this.$route.query.patient_id == 0 ){
1576
+          if(this.patient.id != undefined && this.patient.id >0){
1577
+            ParamsQuery['patient'] = parseInt(this.$route.query.patient_id) 
1578
+          }
1579
+          if(this.patient.id == 'undefined' || this.patient.id ==0){
1580
+          
1581
+            ParamsQuery['patient'] = parseInt(this.$route.query.patient_id) 
1582
+          }
1583
+          if(this.$route.query.patient_id == undefined || this.$route.query.patient_id == 0 ){
1584
+             
1585
+              ParamsQuery['patient'] = this.patient.id
1586
+          }
1578 1587
 
1579
-            //    ParamsQuery['patient'] = this.patient.id
1580
-            // }
1588
+         
1581 1589
        
1582
-        ParamsQuery['patient'] = this.patient.id
1590
+        // ParamsQuery['patient'] = this.patient.id
1583 1591
         
1584 1592
         ParamsQuery['record_date'] = this.record_date
1585 1593
         ParamsQuery['mode'] = '1'

+ 7 - 1
src/xt_pages/dialysis/details/dialog/dialysisPrescriptionDialog.vue Dosyayı Görüntüle

@@ -22,6 +22,12 @@
22 22
             <span style="position: absolute;left: 48%;top: 3%">
23 23
               上次透后体重:{{last_record&&last_record.weight_after?last_record.weight_after:""}}kg
24 24
             </span>
25
+
26
+            <span style="position: absolute;left: 65%;top: 3%">
27
+              4小时超滤量上限(5%):
28
+              <span v-if="predialysis!=null && ((predialysis.dry_weight)*0.05) >0 "></span> {{(predialysis.dry_weight*0.05).toFixed(2)}}
29
+              kg
30
+            </span>
25 31
             <div class="warnTxt" v-if="showTxt != ''">{{ showTxt }}</div>
26 32
             <el-form
27 33
                     ref="dialysisPrescription"
@@ -4203,7 +4209,7 @@ mu
4203 4209
     },
4204 4210
     changePrescription(id) {
4205 4211
       console.log("id233223232323232323",id)
4206
-      if(id != 2 && id!=5 && id!= 12){
4212
+      if(id != 2 && id!=5 && id!= 12&&id!=34 &&id!=35&&id!=35&&id!=36&&id!=37){
4207 4213
         this.dialysisPrescription.displace_liqui_value = ""
4208 4214
         this.dialysisPrescription.displace_liqui_part = ""
4209 4215
         this.dialysisPrescription.replacement_total = ""

+ 2 - 2
src/xt_pages/dialysis/template/DialysisPrintOrderSix.vue Dosyayı Görüntüle

@@ -968,10 +968,10 @@
968 968
                         class="under_line"
969 969
                         style="width: 100px; text-align: center"
970 970
                       >
971
-                        <span v-if="org_id == 10290 || org_id == 10318 || org_id== 10217 || org_id== 10188 || org_id== 9956 || org_id == 10440 || org_id == 0 || org_id == 10469 || org_id == 10478 || org_id == 10490 || org_id ==10495 || org_id == 10460">{{
971
+                        <span v-if="org_id == 10290 || org_id == 10318 || org_id== 10217 || org_id== 10188 || org_id== 9956 || org_id == 10440 || org_id == 0 || org_id == 10469 || org_id == 10478 || org_id == 10490 || org_id ==10495 || org_id == 10460 || org_id==10585">{{
972 972
                           lastafterdialysis.weight_after
973 973
                         }}</span>
974
-                        <span v-if="org_id != 10290 && org_id != 10318  && org_id!= 10217 && org_id!=10188 && org_id!=9956 && org_id != 10440 && org_id!=0 && org_id!=10469 && org_id!=10478 && org_id!=10490 && org_id!=10495 && org_id!=10460">{{
974
+                        <span v-if="org_id != 10290 && org_id != 10318  && org_id!= 10217 && org_id!=10188 && org_id!=9956 && org_id != 10440 && org_id!=0 && org_id!=10469 && org_id!=10478 && org_id!=10490 && org_id!=10495 && org_id!=10460 && org_id!=10585">{{
975 975
                           predialysis.weight_after_last_transparency
976 976
                             ? predialysis.weight_after_last_transparency
977 977
                             : "未称重"

+ 6 - 4
src/xt_pages/dialysis/template/DialysisPrintOrderSixty.vue Dosyayı Görüntüle

@@ -820,10 +820,10 @@
820 820
                         class="under_line"
821 821
                         style="width: 100px; text-align: center"
822 822
                       >
823
-                        <span v-if="org_id == 10290 || org_id == 10318 || org_id== 10217 || org_id== 10188 || org_id== 9956 || org_id == 10138 || org_id == 10278">{{
823
+                        <span v-if="org_id == 10290 || org_id == 10318 || org_id== 10217 || org_id== 10188 || org_id== 9956 || org_id == 10138 || org_id == 10278 || org_id ==10585">{{
824 824
                           lastafterdialysis.weight_after
825 825
                         }}</span>
826
-                        <span v-if="org_id != 10290 && org_id != 10318  && org_id!= 10217 && org_id!=10188 && org_id!=9956 && org_id!=10138&&org_id!=10278">{{
826
+                        <span v-if="org_id != 10290 && org_id != 10318  && org_id!= 10217 && org_id!=10188 && org_id!=9956 && org_id!=10138&&org_id!=10278 && org_id!=10585">{{
827 827
                           predialysis.weight_after_last_transparency
828 828
                             ? predialysis.weight_after_last_transparency
829 829
                             : "未称重"
@@ -1148,7 +1148,8 @@
1148 1148
                           }})
1149 1149
                         </td>
1150 1150
                         <td width="60">透析液温度(°C)</td>
1151
-                        <td width="60">电导度<br />(mS/cm)</td>
1151
+                        <td width="60" v-if="org_id!=10537">电导度<br />(mS/cm)</td>
1152
+                        <td width="60" v-if="org_id ==10537">钠浓度<br />(mmol/L)</td>
1152 1153
                         <td width="50">超滤量<br />(ml)</td>
1153 1154
                         <td width="200">病情变化及处理</td>
1154 1155
 
@@ -1182,7 +1183,8 @@
1182 1183
                           </span>
1183 1184
                         </td>
1184 1185
                         <td>{{ monitor.dialysate_temperature? monitor.dialysate_temperature: ""}}</td>
1185
-                        <td>{{ monitor.conductivity? monitor.conductivity: ""}}</td>
1186
+                        <td v-if="org_id!=10537">{{ monitor.conductivity? monitor.conductivity: ""}}</td>
1187
+                        <td v-if="org_id==10537">{{ monitor.sodium_concentration? monitor.sodium_concentration: ""}}</td>
1186 1188
                         <td>{{ monitor.ultrafiltration_volume ? monitor.ultrafiltration_volume: ""}}</td>
1187 1189
                         <td style="line-height: 16px; padding: 0px">
1188 1190
                           <div

+ 1 - 0
src/xt_pages/outpatientDoctorStation/components/dialysisIndextwo.vue Dosyayı Görüntüle

@@ -367,6 +367,7 @@ export default {
367 367
   watch:{
368 368
         patientid:{
369 369
             handler(newVal){
370
+             
370 371
               // var ymd = parseTime(new Date(), '{y}-{m}-{d}')
371 372
               getDialysisSchedules(this.record_date).then(rs => {
372 373
                 var resp = rs.data

+ 2 - 2
src/xt_pages/stock/drugs/drugStockOutOrder.vue Dosyayı Görüntüle

@@ -354,7 +354,7 @@
354 354
             <template slot-scope="scope">
355 355
                <tr style="background: none" v-for="(item,index) in scope.row.child" :key="index">
356 356
                   <td style="border-right: none; border-inline-end: none;text-align: center">
357
-                    <span v-if="org_id!=0 && org_id!=10480">
357
+                    <span v-if="org_id!=0 && org_id!=10480 && org_id!=10210">
358 358
                       <span v-if="is_sys == 1 || is_sys == 5 || is_sys == 12">{{getTotalPrice(item.warehousing_detail_id,scope.row.max_unit,scope.row.min_unit,scope.row.min_number)}} </span>
359 359
                     <span v-if="is_sys == 0">
360 360
                       <span v-if="scope.row.child.length == 1">{{item.retail_price}}</span> 
@@ -362,7 +362,7 @@
362 362
                     </span>
363 363
                     </span>
364 364
 
365
-                    <span v-if="org_id==0 || org_id ==10480">
365
+                    <span v-if="org_id==0 || org_id ==10480 | org_id ==10210">
366 366
                       {{(item.count * item.price).toFixed(2)}}
367 367
                     </span>
368 368
                   

+ 10 - 1
src/xt_pages/user/Informed/Informedconsent.vue Dosyayı Görüntüle

@@ -196,7 +196,16 @@ export default {
196 196
     console.log("病人id",this.patientID)
197 197
   },
198 198
   methods: {
199
-   
199
+    getlist(){
200
+    
201
+    getPatientDetailInformedconsent(this.patient_id).then(response=>{
202
+      if(response.data.state == 1){
203
+        var patient =  response.data.data.patients
204
+        console.log("patinet",patient)
205
+        this.patient =patient
206
+      }
207
+    }) 
208
+   },
200 209
     rowClick(row, column, event){
201 210
       // console.log('1111',row);
202 211
       // console.log('2222',column);

+ 64 - 8
src/xt_pages/user/Informed/components/Bring_informed.vue Dosyayı Görüntüle

@@ -3,12 +3,12 @@
3 3
   <div style="border:1px solid gainsboro ;padding:10px">
4 4
       <div style="position: relative; left: 400px;width: 250px;margin: 20px 0;"> 
5 5
         <!-- <el-button type="primary">主要按钮</el-button> -->
6
-        <el-button type="primary" style=""  @click="">
6
+        <!-- <el-button type="primary" style=""  @click="">
7 7
               编辑
8 8
           </el-button>
9 9
         <el-button type="danger" style=""  @click="">
10 10
               删除
11
-        </el-button>
11
+        </el-button> -->
12 12
         <el-button type="success" style=""  @click="printThisPage">
13 13
             打印
14 14
         </el-button>
@@ -19,16 +19,26 @@
19 19
               <h2 style="text-align: center;">自带药物代为注射告知知情同意书</h2>
20 20
 
21 21
               <div style="text-align: right;">
22
-                透析号:2100002
22
+                透析号:{{ patient.dialysis_no }}
23 23
               </div>
24 24
               <div style="display: flex;margin: 10px 0;">
25
-                <div style="flex:1">姓名:</div>
26
-                <div style="flex:1">性别:</div>
27
-                <div style="flex:1">年龄:</div>
28
-                <div style="flex:1">住院(门诊)号:</div>
25
+                <div style="flex:1">姓名:
26
+                  {{ patient.name }}
27
+                </div>
28
+                <div style="flex:1">性别:
29
+                  <span v-if="patient.gender == 1">男</span>
30
+                   <span v-if="patient.gender == 2">女</span>
31
+                </div>
32
+                <div style="flex:1">年龄:
33
+                  {{ getAge(patient) }}
34
+                </div>
35
+                <div style="flex:1">住院(门诊)号:
36
+                  {{ patient.admission_number }}
37
+                </div>
29 38
               </div>
30 39
               <div style="border-bottom: 1px solid gainsboro;">
31 40
                 诊断:
41
+                {{ patient.diagnose }}
32 42
               </div>
33 43
 
34 44
               <div style="display: flex; margin: 10px 0;">
@@ -77,8 +87,30 @@
77 87
 
78 88
 <script>
79 89
 import print from "print-js";
90
+import { getPatientDetailInformedconsent  } from '@/api/patient'
91
+import { jsGetAge, uParseTime } from "@/utils/tools";
80 92
 export default{
93
+  props: {
94
+    patient_id: {
95
+        type: Number,
96
+      }
97
+   },
98
+   data(){
99
+    return{
100
+      patient:{}
101
+    }
102
+   },
81 103
   methods:{
104
+    getlist(){
105
+      
106
+      getPatientDetailInformedconsent(this.patient_id).then(response=>{
107
+        if(response.data.state == 1){
108
+          var patient =  response.data.data.patients
109
+          console.log("patinet",patient)
110
+          this.patient =patient
111
+        }
112
+      }) 
113
+    },
82 114
       printThisPage(){
83 115
           const style = '@media print {.content p{font-size: 16px;font-family: 新宋体; padding-left: 20px; margin-bottom: 5px;}}'
84 116
           printJS({
@@ -88,7 +120,31 @@ export default{
88 120
               style: style,
89 121
               scanStyles: false
90 122
           })
91
-      }
123
+      },
124
+      getAge: function(val) {
125
+          if (val.id_card_no == undefined) {
126
+            return false
127
+          }
128
+          var thisLen = val.id_card_no.length
129
+          var birth = ''
130
+          if (thisLen == 15) {
131
+            birth = '19' + val.id_card_no.substr(6, 6)
132
+          } else {
133
+            birth = val.id_card_no.substr(6, 8)
134
+          }
135
+          var birthtwo =
136
+            birth.substr(0, 4) +
137
+            '-' +
138
+            birth.substr(4, 2) +
139
+            '-' +
140
+            birth.substr(6, 2)
141
+
142
+          var age = jsGetAge(birthtwo, '-')
143
+          return age
144
+        }
145
+  },
146
+  created(){
147
+    this.getlist()
92 148
   }
93 149
 }
94 150
 </script>

+ 2 - 2
src/xt_pages/user/Informed/components/Falloutbedprint.vue Dosyayı Görüntüle

@@ -7,10 +7,10 @@
7 7
             </el-button>
8 8
           <el-button type="danger" style=""  @click="">
9 9
                 删除
10
-            </el-button>
10
+            </el-button> -->
11 11
             <el-button type="success" style=""  @click="printThisPage">
12 12
                 打印
13
-            </el-button> -->
13
+            </el-button>
14 14
         </div>
15 15
         <div id="print_content">
16 16
             <div class="print_page_main_content">

+ 2 - 2
src/xt_pages/user/Informed/components/Filter_informed.vue Dosyayı Görüntüle

@@ -2,12 +2,12 @@
2 2
   <div style="border:1px solid gainsboro ;padding:10px">
3 3
       <div style="position: relative; left: 400px;width: 250px;margin: 20px 0;"> 
4 4
         <!-- <el-button type="primary">主要按钮</el-button> -->
5
-        <el-button type="primary" style=""  @click="">
5
+        <!-- <el-button type="primary" style=""  @click="">
6 6
               编辑
7 7
           </el-button>
8 8
         <el-button type="danger" style=""  @click="">
9 9
               删除
10
-        </el-button>
10
+        </el-button> -->
11 11
         <el-button type="success" style=""  @click="printThisPage">
12 12
             打印
13 13
         </el-button>

+ 63 - 7
src/xt_pages/user/Informed/components/Highrisk_informed.vue Dosyayı Görüntüle

@@ -3,12 +3,12 @@
3 3
     <div style="border:1px solid gainsboro ;padding:10px">
4 4
         <div style="position: relative; left: 400px;width: 250px;margin: 20px 0;"> 
5 5
           <!-- <el-button type="primary">主要按钮</el-button> -->
6
-          <el-button type="primary" style=""  @click="">
6
+          <!-- <el-button type="primary" style=""  @click="">
7 7
                 编辑
8 8
             </el-button>
9 9
           <el-button type="danger" style=""  @click="">
10 10
                 删除
11
-            </el-button>
11
+            </el-button> -->
12 12
             <el-button type="success" style=""  @click="printThisPage">
13 13
                 打印
14 14
             </el-button>
@@ -19,16 +19,26 @@
19 19
                 <h2 style="text-align: center;">高危出血患者血液净化抗凝方式选择知情同意书</h2>
20 20
 
21 21
                 <div style="text-align: right;">
22
-                  透析号:2100002
22
+                  透析号:{{ patient.dialysis_no }}
23 23
                 </div>
24 24
                 <div style="display: flex;margin: 10px 0;">
25
-                  <div style="flex:1">姓名:</div>
26
-                  <div style="flex:1">性别:</div>
27
-                  <div style="flex:1">年龄:</div>
28
-                  <div style="flex:1">住院(门诊)号:</div>
25
+                  <div style="flex:1">姓名:
26
+                    {{ patient.name }}
27
+                  </div>
28
+                  <div style="flex:1">性别:
29
+                    <span v-if="patient.gender == 1">男</span>
30
+                    <span v-if="patient.gender == 2">女</span>
31
+                  </div>
32
+                  <div style="flex:1">年龄:
33
+                    {{ getAge(patient) }}
34
+                  </div>
35
+                  <div style="flex:1">住院(门诊)号:
36
+                    {{ patient.admission_number }}
37
+                  </div>
29 38
                 </div>
30 39
                 <div style="border-bottom: 1px solid gainsboro;">
31 40
                   诊断:
41
+                  {{ patient.diagnose }}
32 42
                 </div>
33 43
                 <div style="display: flex; margin: 10px 0;">
34 44
                   <p style="display: inline;padding: 0;">一、</p>
@@ -104,8 +114,51 @@
104 114
 
105 115
 <script>
106 116
 import print from "print-js";
117
+import { getPatientDetailInformedconsent  } from '@/api/patient'
118
+import { jsGetAge, uParseTime } from "@/utils/tools";
107 119
 export default{
120
+  props: {
121
+    patient_id: {
122
+        type: Number,
123
+      }
124
+   },
125
+   data(){
126
+    return{
127
+      patient:{}
128
+    }
129
+   },
108 130
     methods:{
131
+      getlist(){
132
+      
133
+        getPatientDetailInformedconsent(this.patient_id).then(response=>{
134
+          if(response.data.state == 1){
135
+            var patient =  response.data.data.patients
136
+            console.log("patinet",patient)
137
+            this.patient =patient
138
+          }
139
+        }) 
140
+       },
141
+       getAge: function(val) {
142
+          if (val.id_card_no == undefined) {
143
+            return false
144
+          }
145
+          var thisLen = val.id_card_no.length
146
+          var birth = ''
147
+          if (thisLen == 15) {
148
+            birth = '19' + val.id_card_no.substr(6, 6)
149
+          } else {
150
+            birth = val.id_card_no.substr(6, 8)
151
+          }
152
+          var birthtwo =
153
+            birth.substr(0, 4) +
154
+            '-' +
155
+            birth.substr(4, 2) +
156
+            '-' +
157
+            birth.substr(6, 2)
158
+
159
+          var age = jsGetAge(birthtwo, '-')
160
+          return age
161
+        },
109 162
         printThisPage(){
110 163
             const style = '@media print {.content p{font-size: 16px;font-family: 新宋体; padding-left: 20px; margin-bottom: 5px;}}'
111 164
             printJS({
@@ -116,6 +169,9 @@ export default{
116 169
                 scanStyles: false
117 170
             })
118 171
         }
172
+    },
173
+    created(){
174
+      this.getlist()
119 175
     }
120 176
 }
121 177
 </script>

+ 62 - 8
src/xt_pages/user/Informed/components/anticoagulation_informed.vue Dosyayı Görüntüle

@@ -3,12 +3,12 @@
3 3
   <div style="border:1px solid gainsboro ;padding:10px">
4 4
       <div style="position: relative; left: 400px;width: 250px;margin: 20px 0;"> 
5 5
         <!-- <el-button type="primary">主要按钮</el-button> -->
6
-        <el-button type="primary" style=""  @click="">
6
+        <!-- <el-button type="primary" style=""  @click="">
7 7
               编辑
8 8
           </el-button>
9 9
         <el-button type="danger" style=""  @click="">
10 10
               删除
11
-        </el-button>
11
+        </el-button> -->
12 12
         <el-button type="success" style=""  @click="printThisPage">
13 13
             打印
14 14
         </el-button>
@@ -19,16 +19,24 @@
19 19
               <h2 style="text-align: center;">抗凝溶栓治疗知情同意书</h2>
20 20
 
21 21
               <div style="text-align: right;">
22
-                透析号:2100002
22
+                透析号:{{ patient.dialysis_no }}
23 23
               </div>
24 24
               <div style="display: flex;margin: 10px 0;">
25
-                <div style="flex:1">姓名:</div>
26
-                <div style="flex:1">性别:</div>
27
-                <div style="flex:1">年龄:</div>
28
-                <div style="flex:1">住院(门诊)号:</div>
25
+                <div style="flex:1">姓名:{{ patient.name }}</div>
26
+                <div style="flex:1">性别:
27
+                  <span v-if="patient.gender == 1">男</span>
28
+                   <span v-if="patient.gender == 2">女</span>
29
+                </div>
30
+                <div style="flex:1">年龄:
31
+                  {{ getAge(patient) }}
32
+                </div>
33
+                <div style="flex:1">住院(门诊)号:
34
+                  {{ patient.admission_number }}
35
+                </div>
29 36
               </div>
30 37
               <div style="border-bottom: 1px solid gainsboro;">
31 38
                 诊断:
39
+                {{ patient.diagnose }}
32 40
               </div>
33 41
               <div style="display: flex; margin: 10px 0;">
34 42
                 <p style="display: inline;padding: 0;">一、</p>
@@ -115,8 +123,30 @@
115 123
 
116 124
 <script>
117 125
 import print from "print-js";
126
+import { getPatientDetailInformedconsent  } from '@/api/patient'
127
+import { jsGetAge, uParseTime } from "@/utils/tools";
118 128
 export default{
129
+  props: {
130
+    patient_id: {
131
+        type: Number,
132
+      }
133
+   },
134
+   data(){
135
+    return{
136
+      patient:{}
137
+    }
138
+   },
119 139
   methods:{
140
+    getlist(){
141
+    
142
+        getPatientDetailInformedconsent(this.patient_id).then(response=>{
143
+          if(response.data.state == 1){
144
+            var patient =  response.data.data.patients
145
+            console.log("patinet",patient)
146
+            this.patient =patient
147
+          }
148
+        }) 
149
+       },
120 150
       printThisPage(){
121 151
           const style = '@media print {.content p{font-size: 16px;font-family: 新宋体; padding-left: 20px; margin-bottom: 5px;}}'
122 152
           printJS({
@@ -126,7 +156,31 @@ export default{
126 156
               style: style,
127 157
               scanStyles: false
128 158
           })
129
-      }
159
+      },
160
+      getAge: function(val) {
161
+          if (val.id_card_no == undefined) {
162
+            return false
163
+          }
164
+          var thisLen = val.id_card_no.length
165
+          var birth = ''
166
+          if (thisLen == 15) {
167
+            birth = '19' + val.id_card_no.substr(6, 6)
168
+          } else {
169
+            birth = val.id_card_no.substr(6, 8)
170
+          }
171
+          var birthtwo =
172
+            birth.substr(0, 4) +
173
+            '-' +
174
+            birth.substr(4, 2) +
175
+            '-' +
176
+            birth.substr(6, 2)
177
+
178
+          var age = jsGetAge(birthtwo, '-')
179
+          return age
180
+        }
181
+  },
182
+  created(){
183
+    this.getlist()
130 184
   }
131 185
 }
132 186
 </script>

+ 63 - 8
src/xt_pages/user/Informed/components/arteriovenous_informed.vue Dosyayı Görüntüle

@@ -2,12 +2,12 @@
2 2
   <div style="border:1px solid gainsboro ;padding:10px">
3 3
       <div style="position: relative; left: 400px;width: 250px;margin: 20px 0;"> 
4 4
         <!-- <el-button type="primary">主要按钮</el-button> -->
5
-        <el-button type="primary" style=""  @click="">
5
+        <!-- <el-button type="primary" style=""  @click="">
6 6
               编辑
7 7
           </el-button>
8 8
         <el-button type="danger" style=""  @click="">
9 9
               删除
10
-        </el-button>
10
+        </el-button> -->
11 11
         <el-button type="success" style=""  @click="printThisPage">
12 12
             打印
13 13
         </el-button>
@@ -18,16 +18,26 @@
18 18
               <h2 style="text-align: center;">动静脉内瘘穿刺知情同意书</h2>
19 19
 
20 20
               <div style="text-align: right;">
21
-                透析号:2100002
21
+                透析号:{{ patient.dialysis_no }}
22 22
               </div>
23 23
               <div style="display: flex;margin: 10px 0;">
24
-                <div style="flex:1">姓名:</div>
25
-                <div style="flex:1">性别:</div>
26
-                <div style="flex:1">年龄:</div>
27
-                <div style="flex:1">住院(门诊)号:</div>
24
+                <div style="flex:1">姓名:
25
+                  {{ patient.name }}
26
+                </div>
27
+                <div style="flex:1">性别:
28
+                  <span v-if="patient.gender == 1">男</span>
29
+                   <span v-if="patient.gender == 2">女</span>
30
+                </div>
31
+                <div style="flex:1">年龄:
32
+                  {{ getAge(patient) }}
33
+                </div>
34
+                <div style="flex:1">住院(门诊)号:
35
+                  {{ patient.admission_number }}
36
+                </div>
28 37
               </div>
29 38
               <div style="border-bottom: 1px solid gainsboro;">
30 39
                 诊断:
40
+                {{ patient.diagnose }}
31 41
               </div>
32 42
               <div style="display: flex; margin: 10px 0;">
33 43
                 <p style="display: inline;padding: 0;">一、</p>
@@ -73,8 +83,32 @@
73 83
 
74 84
 <script>
75 85
 import print from "print-js";
86
+import { getPatientDetailInformedconsent  } from '@/api/patient'
87
+import { jsGetAge, uParseTime } from "@/utils/tools";
76 88
 export default{
89
+  props: {
90
+    patient_id: {
91
+        type: Number,
92
+      }
93
+   },
94
+   data(){
95
+    return{
96
+      patient:{}
97
+    }
98
+   },
99
+  created(){
100
+    this.getlist()
101
+  },
77 102
   methods:{
103
+    getlist(){
104
+        getPatientDetailInformedconsent(this.patient_id).then(response=>{
105
+          if(response.data.state == 1){
106
+            var patient =  response.data.data.patients
107
+            console.log("patinet",patient)
108
+            this.patient =patient
109
+          }
110
+        }) 
111
+       },
78 112
       printThisPage(){
79 113
           const style = '@media print {.content p{font-size: 16px;font-family: 新宋体; padding-left: 20px; margin-bottom: 5px;}}'
80 114
           printJS({
@@ -84,7 +118,28 @@ export default{
84 118
               style: style,
85 119
               scanStyles: false
86 120
           })
87
-      }
121
+      },
122
+      getAge: function(val) {
123
+          if (val.id_card_no == undefined) {
124
+            return false
125
+          }
126
+          var thisLen = val.id_card_no.length
127
+          var birth = ''
128
+          if (thisLen == 15) {
129
+            birth = '19' + val.id_card_no.substr(6, 6)
130
+          } else {
131
+            birth = val.id_card_no.substr(6, 8)
132
+          }
133
+          var birthtwo =
134
+            birth.substr(0, 4) +
135
+            '-' +
136
+            birth.substr(4, 2) +
137
+            '-' +
138
+            birth.substr(6, 2)
139
+
140
+          var age = jsGetAge(birthtwo, '-')
141
+          return age
142
+        }
88 143
   }
89 144
 }
90 145
 </script>

+ 64 - 8
src/xt_pages/user/Informed/components/catheterization_informed.vue Dosyayı Görüntüle

@@ -4,12 +4,12 @@
4 4
   <div style="border:1px solid gainsboro ;padding:10px">
5 5
       <div style="position: relative; left: 400px;width: 250px;margin: 20px 0;"> 
6 6
         <!-- <el-button type="primary">主要按钮</el-button> -->
7
-        <el-button type="primary" style=""  @click="">
7
+        <!-- <el-button type="primary" style=""  @click="">
8 8
               编辑
9 9
           </el-button>
10 10
         <el-button type="danger" style=""  @click="">
11 11
               删除
12
-        </el-button>
12
+        </el-button> -->
13 13
         <el-button type="success" style=""  @click="printThisPage">
14 14
             打印
15 15
         </el-button>
@@ -20,16 +20,26 @@
20 20
               <h2 style="text-align: center;">深静脉透析导管置入术知情同意书</h2>
21 21
 
22 22
               <div style="text-align: right;">
23
-                透析号:2100002
23
+                透析号:{{ patient.dialysis_no }}
24 24
               </div>
25 25
               <div style="display: flex;margin: 10px 0;">
26
-                <div style="flex:1">姓名:</div>
27
-                <div style="flex:1">性别:</div>
28
-                <div style="flex:1">年龄:</div>
29
-                <div style="flex:1">住院(门诊)号:</div>
26
+                <div style="flex:1">姓名:
27
+                  {{ patient.name }}
28
+                </div>
29
+                <div style="flex:1">性别:
30
+                  <span v-if="patient.gender == 1">男</span>
31
+                   <span v-if="patient.gender == 2">女</span>
32
+                </div>
33
+                <div style="flex:1">年龄:
34
+                  {{ getAge(patient) }}
35
+                </div>
36
+                <div style="flex:1">住院(门诊)号:
37
+                  {{ patient.admission_number }}
38
+                </div>
30 39
               </div>
31 40
               <div style="border-bottom: 1px solid gainsboro;">
32 41
                 诊断:
42
+                {{ patient.diagnose }}
33 43
               </div>
34 44
               <div style="display: flex; margin: 10px 0;">
35 45
                 <p style="display: inline;padding: 0;">一、</p>
@@ -157,8 +167,30 @@
157 167
 
158 168
 <script>
159 169
 import print from "print-js";
170
+import { getPatientDetailInformedconsent  } from '@/api/patient'
171
+import { jsGetAge, uParseTime } from "@/utils/tools";
160 172
 export default{
173
+  props: {
174
+    patient_id: {
175
+        type: Number,
176
+      }
177
+   },
178
+   data(){
179
+    return{
180
+      patient:{}
181
+    }
182
+   },
161 183
   methods:{
184
+    getlist(){
185
+      
186
+      getPatientDetailInformedconsent(this.patient_id).then(response=>{
187
+        if(response.data.state == 1){
188
+          var patient =  response.data.data.patients
189
+          console.log("patinet",patient)
190
+          this.patient =patient
191
+        }
192
+      }) 
193
+    },
162 194
       printThisPage(){
163 195
           const style = '@media print {.content p{font-size: 16px;font-family: 新宋体; padding-left: 20px; margin-bottom: 5px;}}'
164 196
           printJS({
@@ -168,7 +200,31 @@ export default{
168 200
               style: style,
169 201
               scanStyles: false
170 202
           })
171
-      }
203
+      },
204
+      getAge: function(val) {
205
+          if (val.id_card_no == undefined) {
206
+            return false
207
+          }
208
+          var thisLen = val.id_card_no.length
209
+          var birth = ''
210
+          if (thisLen == 15) {
211
+            birth = '19' + val.id_card_no.substr(6, 6)
212
+          } else {
213
+            birth = val.id_card_no.substr(6, 8)
214
+          }
215
+          var birthtwo =
216
+            birth.substr(0, 4) +
217
+            '-' +
218
+            birth.substr(4, 2) +
219
+            '-' +
220
+            birth.substr(6, 2)
221
+
222
+          var age = jsGetAge(birthtwo, '-')
223
+          return age
224
+        }
225
+  },
226
+  created(){
227
+    this.getlist()
172 228
   }
173 229
 }
174 230
 </script>

+ 64 - 8
src/xt_pages/user/Informed/components/critical_informed.vue Dosyayı Görüntüle

@@ -3,12 +3,12 @@
3 3
   <div style="border:1px solid gainsboro ;padding:10px">
4 4
       <div style="position: relative; left: 400px;width: 250px;margin: 20px 0;"> 
5 5
         <!-- <el-button type="primary">主要按钮</el-button> -->
6
-        <el-button type="primary" style=""  @click="">
6
+        <!-- <el-button type="primary" style=""  @click="">
7 7
               编辑
8 8
           </el-button>
9 9
         <el-button type="danger" style=""  @click="">
10 10
               删除
11
-        </el-button>
11
+        </el-button> -->
12 12
         <el-button type="success" style=""  @click="printThisPage">
13 13
             打印
14 14
         </el-button>
@@ -19,16 +19,26 @@
19 19
               <h2 style="text-align: center;">危重患者接受血液净化治疗知情同意书</h2>
20 20
 
21 21
               <div style="text-align: right;">
22
-                透析号:2100002
22
+                透析号:{{ patient.dialysis_no }}
23 23
               </div>
24 24
               <div style="display: flex;margin: 10px 0;">
25
-                <div style="flex:1">姓名:</div>
26
-                <div style="flex:1">性别:</div>
27
-                <div style="flex:1">年龄:</div>
28
-                <div style="flex:1">住院(门诊)号:</div>
25
+                <div style="flex:1">姓名:
26
+                  {{ patient.name }}
27
+                </div>
28
+                <div style="flex:1">性别:
29
+                  <span v-if="patient.gender == 1">男</span>
30
+                   <span v-if="patient.gender == 2">女</span>
31
+                </div>
32
+                <div style="flex:1">年龄:
33
+                  {{ getAge(patient) }}
34
+                </div>
35
+                <div style="flex:1">住院(门诊)号:
36
+                  {{ patient.admission_number }}
37
+                </div>
29 38
               </div>
30 39
               <div style="border-bottom: 1px solid gainsboro;">
31 40
                 诊断:
41
+                {{ patient.diagnose }}
32 42
               </div>
33 43
 
34 44
               <div style="display: flex; margin: 10px 0;">
@@ -101,8 +111,30 @@
101 111
 
102 112
 <script>
103 113
 import print from "print-js";
114
+import { getPatientDetailInformedconsent  } from '@/api/patient'
115
+import { jsGetAge, uParseTime } from "@/utils/tools";
104 116
 export default{
117
+  props: {
118
+    patient_id: {
119
+        type: Number,
120
+      }
121
+   },
122
+  data(){
123
+    return{
124
+      patient:{}
125
+    }
126
+   },
105 127
   methods:{
128
+    getlist(){
129
+      
130
+      getPatientDetailInformedconsent(this.patient_id).then(response=>{
131
+        if(response.data.state == 1){
132
+          var patient =  response.data.data.patients
133
+          console.log("patinet",patient)
134
+          this.patient =patient
135
+        }
136
+      }) 
137
+    },
106 138
       printThisPage(){
107 139
           const style = '@media print {.content p{font-size: 16px;font-family: 新宋体; padding-left: 20px; margin-bottom: 5px;}}'
108 140
           printJS({
@@ -112,7 +144,31 @@ export default{
112 144
               style: style,
113 145
               scanStyles: false
114 146
           })
115
-      }
147
+      },
148
+      getAge: function(val) {
149
+          if (val.id_card_no == undefined) {
150
+            return false
151
+          }
152
+          var thisLen = val.id_card_no.length
153
+          var birth = ''
154
+          if (thisLen == 15) {
155
+            birth = '19' + val.id_card_no.substr(6, 6)
156
+          } else {
157
+            birth = val.id_card_no.substr(6, 8)
158
+          }
159
+          var birthtwo =
160
+            birth.substr(0, 4) +
161
+            '-' +
162
+            birth.substr(4, 2) +
163
+            '-' +
164
+            birth.substr(6, 2)
165
+
166
+          var age = jsGetAge(birthtwo, '-')
167
+          return age
168
+        }
169
+  },
170
+  created(){
171
+    this.getlist()
116 172
   }
117 173
 }
118 174
 </script>

+ 63 - 8
src/xt_pages/user/Informed/components/dialyzer_informed.vue Dosyayı Görüntüle

@@ -4,12 +4,12 @@
4 4
   <div style="border:1px solid gainsboro ;padding:10px">
5 5
       <div style="position: relative; left: 400px;width: 250px;margin: 20px 0;"> 
6 6
         <!-- <el-button type="primary">主要按钮</el-button> -->
7
-        <el-button type="primary" style=""  @click="">
7
+        <!-- <el-button type="primary" style=""  @click="">
8 8
               编辑
9 9
           </el-button>
10 10
         <el-button type="danger" style=""  @click="">
11 11
               删除
12
-        </el-button>
12
+        </el-button> -->
13 13
         <el-button type="success" style=""  @click="printThisPage">
14 14
             打印
15 15
         </el-button>
@@ -20,16 +20,26 @@
20 20
               <h2 style="text-align: center;">透析器(滤器)重复使用知情同意书</h2>
21 21
 
22 22
               <div style="text-align: right;">
23
-                透析号:2100002
23
+                透析号:{{ patient.dialysis_no }}
24 24
               </div>
25 25
               <div style="display: flex;margin: 10px 0;">
26
-                <div style="flex:1">姓名:</div>
27
-                <div style="flex:1">性别:</div>
28
-                <div style="flex:1">年龄:</div>
29
-                <div style="flex:1">住院(门诊)号:</div>
26
+                <div style="flex:1">姓名:
27
+                  {{ patient.name }}
28
+                </div>
29
+                <div style="flex:1">性别:
30
+                  <span v-if="patient.gender == 1">男</span>
31
+                   <span v-if="patient.gender == 2">女</span>
32
+                </div>
33
+                <div style="flex:1">年龄:
34
+                  {{ getAge(patient) }}
35
+                </div>
36
+                <div style="flex:1">住院(门诊)号:
37
+                  {{ patient.admission_number }}
38
+                </div>
30 39
               </div>
31 40
               <div style="border-bottom: 1px solid gainsboro;">
32 41
                 诊断:
42
+                {{ patient.diagnose }}
33 43
               </div>
34 44
               
35 45
               <p style="text-indent:2em;">
@@ -52,8 +62,29 @@
52 62
 
53 63
 <script>
54 64
 import print from "print-js";
65
+import { getPatientDetailInformedconsent  } from '@/api/patient'
66
+import { jsGetAge, uParseTime } from "@/utils/tools";
55 67
 export default{
68
+  props: {
69
+    patient_id: {
70
+        type: Number,
71
+      }
72
+   },
73
+  data(){
74
+    return{
75
+      patient:{}
76
+    }
77
+   },
56 78
   methods:{
79
+      getlist(){
80
+        getPatientDetailInformedconsent(this.patient_id).then(response=>{
81
+          if(response.data.state == 1){
82
+            var patient =  response.data.data.patients
83
+            console.log("patinet",patient)
84
+            this.patient =patient
85
+          }
86
+        }) 
87
+      },
57 88
       printThisPage(){
58 89
           const style = '@media print {.content p{font-size: 16px;font-family: 新宋体; padding-left: 20px; margin-bottom: 5px;}}'
59 90
           printJS({
@@ -63,7 +94,31 @@ export default{
63 94
               style: style,
64 95
               scanStyles: false
65 96
           })
66
-      }
97
+      },
98
+      getAge: function(val) {
99
+          if (val.id_card_no == undefined) {
100
+            return false
101
+          }
102
+          var thisLen = val.id_card_no.length
103
+          var birth = ''
104
+          if (thisLen == 15) {
105
+            birth = '19' + val.id_card_no.substr(6, 6)
106
+          } else {
107
+            birth = val.id_card_no.substr(6, 8)
108
+          }
109
+          var birthtwo =
110
+            birth.substr(0, 4) +
111
+            '-' +
112
+            birth.substr(4, 2) +
113
+            '-' +
114
+            birth.substr(6, 2)
115
+
116
+          var age = jsGetAge(birthtwo, '-')
117
+          return age
118
+        }
119
+  },
120
+  created(){
121
+    this.getlist()
67 122
   }
68 123
 }
69 124
 </script>

+ 64 - 8
src/xt_pages/user/Informed/components/hemoperfusion_informed.vue Dosyayı Görüntüle

@@ -3,12 +3,12 @@
3 3
   <div style="border:1px solid gainsboro ;padding:10px">
4 4
       <div style="position: relative; left: 400px;width: 250px;margin: 20px 0;"> 
5 5
         <!-- <el-button type="primary">主要按钮</el-button> -->
6
-        <el-button type="primary" style=""  @click="">
6
+        <!-- <el-button type="primary" style=""  @click="">
7 7
               编辑
8 8
           </el-button>
9 9
         <el-button type="danger" style=""  @click="">
10 10
               删除
11
-        </el-button>
11
+        </el-button> -->
12 12
         <el-button type="success" style=""  @click="printThisPage">
13 13
             打印
14 14
         </el-button>
@@ -19,16 +19,26 @@
19 19
               <h2 style="text-align: center;">血液灌流治疗知情同意书</h2>
20 20
 
21 21
               <div style="text-align: right;">
22
-                透析号:2100002
22
+                透析号:{{ patient.dialysis_no }}
23 23
               </div>
24 24
               <div style="display: flex;margin: 10px 0;">
25
-                <div style="flex:1">姓名:</div>
26
-                <div style="flex:1">性别:</div>
27
-                <div style="flex:1">年龄:</div>
28
-                <div style="flex:1">住院(门诊)号:</div>
25
+                <div style="flex:1">姓名:
26
+                  {{ patient.name }}
27
+                </div>
28
+                <div style="flex:1">性别:
29
+                  <span v-if="patient.gender == 1">男</span>
30
+                   <span v-if="patient.gender == 2">女</span>
31
+                </div>
32
+                <div style="flex:1">年龄:
33
+                  {{ getAge(patient) }}
34
+                </div>
35
+                <div style="flex:1">住院(门诊)号:
36
+                  {{ patient.admission_number }}
37
+                </div>
29 38
               </div>
30 39
               <div style="border-bottom: 1px solid gainsboro;">
31 40
                 诊断:
41
+                {{ patient.diagnose }}
32 42
               </div>
33 43
               <div style="display: flex; margin: 10px 0;">
34 44
                 <p style="display: inline;padding: 0;">一、</p>
@@ -110,7 +120,19 @@
110 120
 
111 121
 <script>
112 122
 import print from "print-js";
123
+import { getPatientDetailInformedconsent  } from '@/api/patient'
124
+import { jsGetAge, uParseTime } from "@/utils/tools";
113 125
 export default{
126
+  props: {
127
+    patient_id: {
128
+        type: Number,
129
+      }
130
+   },
131
+   data(){
132
+    return{
133
+      patient:{}
134
+    }
135
+   },
114 136
   methods:{
115 137
       printThisPage(){
116 138
           const style = '@media print {.content p{font-size: 16px;font-family: 新宋体; padding-left: 20px; margin-bottom: 5px;}}'
@@ -121,7 +143,41 @@ export default{
121 143
               style: style,
122 144
               scanStyles: false
123 145
           })
124
-      }
146
+      },
147
+      getAge: function(val) {
148
+          if (val.id_card_no == undefined) {
149
+            return false
150
+          }
151
+          var thisLen = val.id_card_no.length
152
+          var birth = ''
153
+          if (thisLen == 15) {
154
+            birth = '19' + val.id_card_no.substr(6, 6)
155
+          } else {
156
+            birth = val.id_card_no.substr(6, 8)
157
+          }
158
+          var birthtwo =
159
+            birth.substr(0, 4) +
160
+            '-' +
161
+            birth.substr(4, 2) +
162
+            '-' +
163
+            birth.substr(6, 2)
164
+
165
+          var age = jsGetAge(birthtwo, '-')
166
+          return age
167
+        },
168
+      getlist(){
169
+      
170
+        getPatientDetailInformedconsent(this.patient_id).then(response=>{
171
+        if(response.data.state == 1){
172
+          var patient =  response.data.data.patients
173
+          console.log("patinet",patient)
174
+          this.patient =patient
175
+        }
176
+      }) 
177
+    },
178
+  },
179
+  created(){
180
+    this.getlist()
125 181
   }
126 182
 }
127 183
 </script>

+ 1 - 1
src/xt_pages/user/Informed/components/profunda_informed.vue Dosyayı Görüntüle

@@ -18,7 +18,7 @@
18 18
               <h2 style="text-align: center;">深静脉透析导管拔管术知情同意书</h2>
19 19
 
20 20
               <div style="text-align: right;">
21
-                透析号:2100002
21
+                透析号:{{ patient.dialysis_no }}
22 22
               </div>
23 23
               <div style="display: flex;margin: 10px 0;">
24 24
                 <div style="flex:1">姓名:{{ patient.name }}</div>

+ 63 - 8
src/xt_pages/user/Informed/components/therapy_informed.vue Dosyayı Görüntüle

@@ -3,12 +3,12 @@
3 3
   <div style="border:1px solid gainsboro ;padding:10px">
4 4
       <div style="position: relative; left: 400px;width: 250px;margin: 20px 0;"> 
5 5
         <!-- <el-button type="primary">主要按钮</el-button> -->
6
-        <el-button type="primary" style=""  @click="">
6
+        <!-- <el-button type="primary" style=""  @click="">
7 7
               编辑
8 8
           </el-button>
9 9
         <el-button type="danger" style=""  @click="">
10 10
               删除
11
-        </el-button>
11
+        </el-button> -->
12 12
         <el-button type="success" style=""  @click="printThisPage">
13 13
             打印
14 14
         </el-button>
@@ -19,16 +19,26 @@
19 19
               <h2 style="text-align: center;">血液透析(滤过)治疗知情同意书</h2>
20 20
 
21 21
               <div style="text-align: right;">
22
-                透析号:2100002
22
+                透析号:{{ patient.dialysis_no }}
23 23
               </div>
24 24
               <div style="display: flex;margin: 10px 0;">
25
-                <div style="flex:1">姓名:</div>
26
-                <div style="flex:1">性别:</div>
27
-                <div style="flex:1">年龄:</div>
28
-                <div style="flex:1">住院(门诊)号:</div>
25
+                <div style="flex:1">姓名:
26
+                  {{ patient.name }}
27
+                </div>
28
+                <div style="flex:1">性别:
29
+                  <span v-if="patient.gender == 1">男</span>
30
+                   <span v-if="patient.gender == 2">女</span>
31
+                </div>
32
+                <div style="flex:1">年龄:
33
+                  {{ getAge(patient) }}
34
+                </div>
35
+                <div style="flex:1">住院(门诊)号:
36
+                  {{ patient.admission_number }}
37
+                </div>
29 38
               </div>
30 39
               <div style="border-bottom: 1px solid gainsboro;">
31 40
                 诊断:
41
+                {{ patient.diagnose }}
32 42
               </div>
33 43
               <div style="display: flex; margin: 10px 0;">
34 44
                 <p style="display: inline;padding: 0;">一、</p>
@@ -98,8 +108,29 @@
98 108
 
99 109
 <script>
100 110
 import print from "print-js";
111
+import { getPatientDetailInformedconsent  } from '@/api/patient'
112
+import { jsGetAge, uParseTime } from "@/utils/tools";
101 113
 export default{
114
+  props: {
115
+    patient_id: {
116
+        type: Number,
117
+      }
118
+   },
119
+  data(){
120
+  return{
121
+    patient:{}
122
+  }
123
+  },
102 124
   methods:{
125
+     getlist(){
126
+        getPatientDetailInformedconsent(this.patient_id).then(response=>{
127
+          if(response.data.state == 1){
128
+            var patient =  response.data.data.patients
129
+            console.log("patinet",patient)
130
+            this.patient =patient
131
+          }
132
+        }) 
133
+      },
103 134
       printThisPage(){
104 135
           const style = '@media print {.content p{font-size: 16px;font-family: 新宋体; padding-left: 20px; margin-bottom: 5px;}}'
105 136
           printJS({
@@ -109,7 +140,31 @@ export default{
109 140
               style: style,
110 141
               scanStyles: false
111 142
           })
112
-      }
143
+      },
144
+      getAge: function(val) {
145
+          if (val.id_card_no == undefined) {
146
+            return false
147
+          }
148
+          var thisLen = val.id_card_no.length
149
+          var birth = ''
150
+          if (thisLen == 15) {
151
+            birth = '19' + val.id_card_no.substr(6, 6)
152
+          } else {
153
+            birth = val.id_card_no.substr(6, 8)
154
+          }
155
+          var birthtwo =
156
+            birth.substr(0, 4) +
157
+            '-' +
158
+            birth.substr(4, 2) +
159
+            '-' +
160
+            birth.substr(6, 2)
161
+
162
+          var age = jsGetAge(birthtwo, '-')
163
+          return age
164
+        }
165
+  },
166
+  created(){
167
+    this.getlist()
113 168
   }
114 169
 }
115 170
 </script>

+ 2 - 1
src/xt_pages/user/dialysisRecord.vue Dosyayı Görüntüle

@@ -682,6 +682,7 @@ export default {
682 682
       }, 1);
683 683
     },
684 684
     clickCurrent(val) {
685
+      
685 686
       this.patient_id = val.patient_id
686 687
       this.dialysis_date = val.dialysis_date
687 688
     },
@@ -695,7 +696,7 @@ export default {
695 696
     },
696 697
     exportList(){
697 698
       import('@/vendor/Export2Excel').then(excel => {
698
-         console.log("导出世界",this.recordData)
699
+       
699 700
          if(this.recordData!=null && this.recordData.length > 0){
700 701
           for(let i=0;i<this.recordData.length;i++){
701 702
             this.recordData[i].dialysis_date_one = this.getTimeOne(this.recordData[i].dialysis_date)