Browse Source

新分支

28169 1 year ago
parent
commit
8febd77d4e
23 changed files with 638 additions and 104 deletions
  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 View File

926
                       style="padding: 2px 0; line-height: 23px; display: flex"
926
                       style="padding: 2px 0; line-height: 23px; display: flex"
927
                     >
927
                     >
928
                       <div class="inline_block" style="flex: 1"
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
                         <div
931
                         <div
932
                           class="under_line"
932
                           class="under_line"
933
                           style="width: 100px; text-align: center"
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
                             record.lastafterweight.weight_after
936
                             record.lastafterweight.weight_after
937
                           }}</span>
937
                           }}</span>
938
                           <span v-else>{{
938
                           <span v-else>{{
1134
                           <span v-if="record.prescription.anticoagulant == 5"
1134
                           <span v-if="record.prescription.anticoagulant == 5"
1135
                             >&nbsp;枸橼酸钠</span
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
                             >&nbsp;低分子肝素钙</span
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
                             >&nbsp;低分子量肝素钙</span
1141
                             >&nbsp;低分子量肝素钙</span
1142
                           >
1142
                           >
1143
                           <span v-if="record.prescription.anticoagulant == 7"
1143
                           <span v-if="record.prescription.anticoagulant == 7"

+ 10 - 2
src/xt_pages/dialysis/batch_print/batch_print_order_sixty.vue View File

1227
                           <td width="50">静脉压<br />(mmHg)</td>
1227
                           <td width="50">静脉压<br />(mmHg)</td>
1228
                           <td width="50">跨膜压<br />(mmHg)</td>
1228
                           <td width="50">跨膜压<br />(mmHg)</td>
1229
                           <td width="60">透析液温度(°C)</td>
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
                           <td width="50">超滤量<br />(ml)</td>
1232
                           <td width="50">超滤量<br />(ml)</td>
1232
                           <td width="200">病情变化及处理</td>
1233
                           <td width="200">病情变化及处理</td>
1233
                         </tr>
1234
                         </tr>
1287
                                 : ""
1288
                                 : ""
1288
                             }}
1289
                             }}
1289
                           </td>
1290
                           </td>
1290
-                          <td>
1291
+                          <td v-if="org_id!=10537">
1291
                             {{
1292
                             {{
1292
                               monitor_record.conductivity
1293
                               monitor_record.conductivity
1293
                                 ? monitor_record.conductivity
1294
                                 ? monitor_record.conductivity
1294
                                 : ""
1295
                                 : ""
1295
                             }}
1296
                             }}
1296
                           </td>
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
                           <td>
1305
                           <td>
1298
                             <span>{{
1306
                             <span>{{
1299
                               monitor_record.ultrafiltration_volume
1307
                               monitor_record.ultrafiltration_volume

+ 3 - 3
src/xt_pages/dialysis/details/consumable/dialysisParameter.vue View File

371
     <el-pagination
371
     <el-pagination
372
       @size-change="handleSizeChange"
372
       @size-change="handleSizeChange"
373
       @current-change="handleCurrentChange"
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
       background
376
       background
377
       align="right"
377
       align="right"
378
       style="margin-top:20px;"
378
       style="margin-top:20px;"
471
           schedule_type:0,
471
           schedule_type:0,
472
           partition_id:0,
472
           partition_id:0,
473
           page:1,
473
           page:1,
474
-          limit:10,
474
+          limit:100,
475
           keywords:"",
475
           keywords:"",
476
           good_type:0,
476
           good_type:0,
477
           ids:"",
477
           ids:"",

+ 16 - 8
src/xt_pages/dialysis/details/dialog/assessmentBeforeDislysisDialog.vue View File

1566
           }
1566
           }
1567
         }
1567
         }
1568
         const ParamsQuery = arr
1568
         const ParamsQuery = arr
1569
-         console.log("params",ParamsQuery)
1569
+        
1570
          this.$refs.assessmentBeforeDislysis.validate((valid) => {
1570
          this.$refs.assessmentBeforeDislysis.validate((valid) => {
1571
           if (valid) {
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
         ParamsQuery['record_date'] = this.record_date
1592
         ParamsQuery['record_date'] = this.record_date
1585
         ParamsQuery['mode'] = '1'
1593
         ParamsQuery['mode'] = '1'

+ 7 - 1
src/xt_pages/dialysis/details/dialog/dialysisPrescriptionDialog.vue View File

22
             <span style="position: absolute;left: 48%;top: 3%">
22
             <span style="position: absolute;left: 48%;top: 3%">
23
               上次透后体重:{{last_record&&last_record.weight_after?last_record.weight_after:""}}kg
23
               上次透后体重:{{last_record&&last_record.weight_after?last_record.weight_after:""}}kg
24
             </span>
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
             <div class="warnTxt" v-if="showTxt != ''">{{ showTxt }}</div>
31
             <div class="warnTxt" v-if="showTxt != ''">{{ showTxt }}</div>
26
             <el-form
32
             <el-form
27
                     ref="dialysisPrescription"
33
                     ref="dialysisPrescription"
4203
     },
4209
     },
4204
     changePrescription(id) {
4210
     changePrescription(id) {
4205
       console.log("id233223232323232323",id)
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
         this.dialysisPrescription.displace_liqui_value = ""
4213
         this.dialysisPrescription.displace_liqui_value = ""
4208
         this.dialysisPrescription.displace_liqui_part = ""
4214
         this.dialysisPrescription.displace_liqui_part = ""
4209
         this.dialysisPrescription.replacement_total = ""
4215
         this.dialysisPrescription.replacement_total = ""

+ 2 - 2
src/xt_pages/dialysis/template/DialysisPrintOrderSix.vue View File

968
                         class="under_line"
968
                         class="under_line"
969
                         style="width: 100px; text-align: center"
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
                           lastafterdialysis.weight_after
972
                           lastafterdialysis.weight_after
973
                         }}</span>
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
                           predialysis.weight_after_last_transparency
975
                           predialysis.weight_after_last_transparency
976
                             ? predialysis.weight_after_last_transparency
976
                             ? predialysis.weight_after_last_transparency
977
                             : "未称重"
977
                             : "未称重"

+ 6 - 4
src/xt_pages/dialysis/template/DialysisPrintOrderSixty.vue View File

820
                         class="under_line"
820
                         class="under_line"
821
                         style="width: 100px; text-align: center"
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
                           lastafterdialysis.weight_after
824
                           lastafterdialysis.weight_after
825
                         }}</span>
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
                           predialysis.weight_after_last_transparency
827
                           predialysis.weight_after_last_transparency
828
                             ? predialysis.weight_after_last_transparency
828
                             ? predialysis.weight_after_last_transparency
829
                             : "未称重"
829
                             : "未称重"
1148
                           }})
1148
                           }})
1149
                         </td>
1149
                         </td>
1150
                         <td width="60">透析液温度(°C)</td>
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
                         <td width="50">超滤量<br />(ml)</td>
1153
                         <td width="50">超滤量<br />(ml)</td>
1153
                         <td width="200">病情变化及处理</td>
1154
                         <td width="200">病情变化及处理</td>
1154
 
1155
 
1182
                           </span>
1183
                           </span>
1183
                         </td>
1184
                         </td>
1184
                         <td>{{ monitor.dialysate_temperature? monitor.dialysate_temperature: ""}}</td>
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
                         <td>{{ monitor.ultrafiltration_volume ? monitor.ultrafiltration_volume: ""}}</td>
1188
                         <td>{{ monitor.ultrafiltration_volume ? monitor.ultrafiltration_volume: ""}}</td>
1187
                         <td style="line-height: 16px; padding: 0px">
1189
                         <td style="line-height: 16px; padding: 0px">
1188
                           <div
1190
                           <div

+ 1 - 0
src/xt_pages/outpatientDoctorStation/components/dialysisIndextwo.vue View File

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

+ 2 - 2
src/xt_pages/stock/drugs/drugStockOutOrder.vue View File

354
             <template slot-scope="scope">
354
             <template slot-scope="scope">
355
                <tr style="background: none" v-for="(item,index) in scope.row.child" :key="index">
355
                <tr style="background: none" v-for="(item,index) in scope.row.child" :key="index">
356
                   <td style="border-right: none; border-inline-end: none;text-align: center">
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
                       <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>
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
                     <span v-if="is_sys == 0">
359
                     <span v-if="is_sys == 0">
360
                       <span v-if="scope.row.child.length == 1">{{item.retail_price}}</span> 
360
                       <span v-if="scope.row.child.length == 1">{{item.retail_price}}</span> 
362
                     </span>
362
                     </span>
363
                     </span>
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
                       {{(item.count * item.price).toFixed(2)}}
366
                       {{(item.count * item.price).toFixed(2)}}
367
                     </span>
367
                     </span>
368
                   
368
                   

+ 10 - 1
src/xt_pages/user/Informed/Informedconsent.vue View File

196
     console.log("病人id",this.patientID)
196
     console.log("病人id",this.patientID)
197
   },
197
   },
198
   methods: {
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
     rowClick(row, column, event){
209
     rowClick(row, column, event){
201
       // console.log('1111',row);
210
       // console.log('1111',row);
202
       // console.log('2222',column);
211
       // console.log('2222',column);

+ 64 - 8
src/xt_pages/user/Informed/components/Bring_informed.vue View File

3
   <div style="border:1px solid gainsboro ;padding:10px">
3
   <div style="border:1px solid gainsboro ;padding:10px">
4
       <div style="position: relative; left: 400px;width: 250px;margin: 20px 0;"> 
4
       <div style="position: relative; left: 400px;width: 250px;margin: 20px 0;"> 
5
         <!-- <el-button type="primary">主要按钮</el-button> -->
5
         <!-- <el-button type="primary">主要按钮</el-button> -->
6
-        <el-button type="primary" style=""  @click="">
6
+        <!-- <el-button type="primary" style=""  @click="">
7
               编辑
7
               编辑
8
           </el-button>
8
           </el-button>
9
         <el-button type="danger" style=""  @click="">
9
         <el-button type="danger" style=""  @click="">
10
               删除
10
               删除
11
-        </el-button>
11
+        </el-button> -->
12
         <el-button type="success" style=""  @click="printThisPage">
12
         <el-button type="success" style=""  @click="printThisPage">
13
             打印
13
             打印
14
         </el-button>
14
         </el-button>
19
               <h2 style="text-align: center;">自带药物代为注射告知知情同意书</h2>
19
               <h2 style="text-align: center;">自带药物代为注射告知知情同意书</h2>
20
 
20
 
21
               <div style="text-align: right;">
21
               <div style="text-align: right;">
22
-                透析号:2100002
22
+                透析号:{{ patient.dialysis_no }}
23
               </div>
23
               </div>
24
               <div style="display: flex;margin: 10px 0;">
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
               </div>
38
               </div>
30
               <div style="border-bottom: 1px solid gainsboro;">
39
               <div style="border-bottom: 1px solid gainsboro;">
31
                 诊断:
40
                 诊断:
41
+                {{ patient.diagnose }}
32
               </div>
42
               </div>
33
 
43
 
34
               <div style="display: flex; margin: 10px 0;">
44
               <div style="display: flex; margin: 10px 0;">
77
 
87
 
78
 <script>
88
 <script>
79
 import print from "print-js";
89
 import print from "print-js";
90
+import { getPatientDetailInformedconsent  } from '@/api/patient'
91
+import { jsGetAge, uParseTime } from "@/utils/tools";
80
 export default{
92
 export default{
93
+  props: {
94
+    patient_id: {
95
+        type: Number,
96
+      }
97
+   },
98
+   data(){
99
+    return{
100
+      patient:{}
101
+    }
102
+   },
81
   methods:{
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
       printThisPage(){
114
       printThisPage(){
83
           const style = '@media print {.content p{font-size: 16px;font-family: 新宋体; padding-left: 20px; margin-bottom: 5px;}}'
115
           const style = '@media print {.content p{font-size: 16px;font-family: 新宋体; padding-left: 20px; margin-bottom: 5px;}}'
84
           printJS({
116
           printJS({
88
               style: style,
120
               style: style,
89
               scanStyles: false
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
 </script>
150
 </script>

+ 2 - 2
src/xt_pages/user/Informed/components/Falloutbedprint.vue View File

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

+ 2 - 2
src/xt_pages/user/Informed/components/Filter_informed.vue View File

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

+ 63 - 7
src/xt_pages/user/Informed/components/Highrisk_informed.vue View File

3
     <div style="border:1px solid gainsboro ;padding:10px">
3
     <div style="border:1px solid gainsboro ;padding:10px">
4
         <div style="position: relative; left: 400px;width: 250px;margin: 20px 0;"> 
4
         <div style="position: relative; left: 400px;width: 250px;margin: 20px 0;"> 
5
           <!-- <el-button type="primary">主要按钮</el-button> -->
5
           <!-- <el-button type="primary">主要按钮</el-button> -->
6
-          <el-button type="primary" style=""  @click="">
6
+          <!-- <el-button type="primary" style=""  @click="">
7
                 编辑
7
                 编辑
8
             </el-button>
8
             </el-button>
9
           <el-button type="danger" style=""  @click="">
9
           <el-button type="danger" style=""  @click="">
10
                 删除
10
                 删除
11
-            </el-button>
11
+            </el-button> -->
12
             <el-button type="success" style=""  @click="printThisPage">
12
             <el-button type="success" style=""  @click="printThisPage">
13
                 打印
13
                 打印
14
             </el-button>
14
             </el-button>
19
                 <h2 style="text-align: center;">高危出血患者血液净化抗凝方式选择知情同意书</h2>
19
                 <h2 style="text-align: center;">高危出血患者血液净化抗凝方式选择知情同意书</h2>
20
 
20
 
21
                 <div style="text-align: right;">
21
                 <div style="text-align: right;">
22
-                  透析号:2100002
22
+                  透析号:{{ patient.dialysis_no }}
23
                 </div>
23
                 </div>
24
                 <div style="display: flex;margin: 10px 0;">
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
                 </div>
38
                 </div>
30
                 <div style="border-bottom: 1px solid gainsboro;">
39
                 <div style="border-bottom: 1px solid gainsboro;">
31
                   诊断:
40
                   诊断:
41
+                  {{ patient.diagnose }}
32
                 </div>
42
                 </div>
33
                 <div style="display: flex; margin: 10px 0;">
43
                 <div style="display: flex; margin: 10px 0;">
34
                   <p style="display: inline;padding: 0;">一、</p>
44
                   <p style="display: inline;padding: 0;">一、</p>
104
 
114
 
105
 <script>
115
 <script>
106
 import print from "print-js";
116
 import print from "print-js";
117
+import { getPatientDetailInformedconsent  } from '@/api/patient'
118
+import { jsGetAge, uParseTime } from "@/utils/tools";
107
 export default{
119
 export default{
120
+  props: {
121
+    patient_id: {
122
+        type: Number,
123
+      }
124
+   },
125
+   data(){
126
+    return{
127
+      patient:{}
128
+    }
129
+   },
108
     methods:{
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
         printThisPage(){
162
         printThisPage(){
110
             const style = '@media print {.content p{font-size: 16px;font-family: 新宋体; padding-left: 20px; margin-bottom: 5px;}}'
163
             const style = '@media print {.content p{font-size: 16px;font-family: 新宋体; padding-left: 20px; margin-bottom: 5px;}}'
111
             printJS({
164
             printJS({
116
                 scanStyles: false
169
                 scanStyles: false
117
             })
170
             })
118
         }
171
         }
172
+    },
173
+    created(){
174
+      this.getlist()
119
     }
175
     }
120
 }
176
 }
121
 </script>
177
 </script>

+ 62 - 8
src/xt_pages/user/Informed/components/anticoagulation_informed.vue View File

3
   <div style="border:1px solid gainsboro ;padding:10px">
3
   <div style="border:1px solid gainsboro ;padding:10px">
4
       <div style="position: relative; left: 400px;width: 250px;margin: 20px 0;"> 
4
       <div style="position: relative; left: 400px;width: 250px;margin: 20px 0;"> 
5
         <!-- <el-button type="primary">主要按钮</el-button> -->
5
         <!-- <el-button type="primary">主要按钮</el-button> -->
6
-        <el-button type="primary" style=""  @click="">
6
+        <!-- <el-button type="primary" style=""  @click="">
7
               编辑
7
               编辑
8
           </el-button>
8
           </el-button>
9
         <el-button type="danger" style=""  @click="">
9
         <el-button type="danger" style=""  @click="">
10
               删除
10
               删除
11
-        </el-button>
11
+        </el-button> -->
12
         <el-button type="success" style=""  @click="printThisPage">
12
         <el-button type="success" style=""  @click="printThisPage">
13
             打印
13
             打印
14
         </el-button>
14
         </el-button>
19
               <h2 style="text-align: center;">抗凝溶栓治疗知情同意书</h2>
19
               <h2 style="text-align: center;">抗凝溶栓治疗知情同意书</h2>
20
 
20
 
21
               <div style="text-align: right;">
21
               <div style="text-align: right;">
22
-                透析号:2100002
22
+                透析号:{{ patient.dialysis_no }}
23
               </div>
23
               </div>
24
               <div style="display: flex;margin: 10px 0;">
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
               </div>
36
               </div>
30
               <div style="border-bottom: 1px solid gainsboro;">
37
               <div style="border-bottom: 1px solid gainsboro;">
31
                 诊断:
38
                 诊断:
39
+                {{ patient.diagnose }}
32
               </div>
40
               </div>
33
               <div style="display: flex; margin: 10px 0;">
41
               <div style="display: flex; margin: 10px 0;">
34
                 <p style="display: inline;padding: 0;">一、</p>
42
                 <p style="display: inline;padding: 0;">一、</p>
115
 
123
 
116
 <script>
124
 <script>
117
 import print from "print-js";
125
 import print from "print-js";
126
+import { getPatientDetailInformedconsent  } from '@/api/patient'
127
+import { jsGetAge, uParseTime } from "@/utils/tools";
118
 export default{
128
 export default{
129
+  props: {
130
+    patient_id: {
131
+        type: Number,
132
+      }
133
+   },
134
+   data(){
135
+    return{
136
+      patient:{}
137
+    }
138
+   },
119
   methods:{
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
       printThisPage(){
150
       printThisPage(){
121
           const style = '@media print {.content p{font-size: 16px;font-family: 新宋体; padding-left: 20px; margin-bottom: 5px;}}'
151
           const style = '@media print {.content p{font-size: 16px;font-family: 新宋体; padding-left: 20px; margin-bottom: 5px;}}'
122
           printJS({
152
           printJS({
126
               style: style,
156
               style: style,
127
               scanStyles: false
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
 </script>
186
 </script>

+ 63 - 8
src/xt_pages/user/Informed/components/arteriovenous_informed.vue View File

2
   <div style="border:1px solid gainsboro ;padding:10px">
2
   <div style="border:1px solid gainsboro ;padding:10px">
3
       <div style="position: relative; left: 400px;width: 250px;margin: 20px 0;"> 
3
       <div style="position: relative; left: 400px;width: 250px;margin: 20px 0;"> 
4
         <!-- <el-button type="primary">主要按钮</el-button> -->
4
         <!-- <el-button type="primary">主要按钮</el-button> -->
5
-        <el-button type="primary" style=""  @click="">
5
+        <!-- <el-button type="primary" style=""  @click="">
6
               编辑
6
               编辑
7
           </el-button>
7
           </el-button>
8
         <el-button type="danger" style=""  @click="">
8
         <el-button type="danger" style=""  @click="">
9
               删除
9
               删除
10
-        </el-button>
10
+        </el-button> -->
11
         <el-button type="success" style=""  @click="printThisPage">
11
         <el-button type="success" style=""  @click="printThisPage">
12
             打印
12
             打印
13
         </el-button>
13
         </el-button>
18
               <h2 style="text-align: center;">动静脉内瘘穿刺知情同意书</h2>
18
               <h2 style="text-align: center;">动静脉内瘘穿刺知情同意书</h2>
19
 
19
 
20
               <div style="text-align: right;">
20
               <div style="text-align: right;">
21
-                透析号:2100002
21
+                透析号:{{ patient.dialysis_no }}
22
               </div>
22
               </div>
23
               <div style="display: flex;margin: 10px 0;">
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
               </div>
37
               </div>
29
               <div style="border-bottom: 1px solid gainsboro;">
38
               <div style="border-bottom: 1px solid gainsboro;">
30
                 诊断:
39
                 诊断:
40
+                {{ patient.diagnose }}
31
               </div>
41
               </div>
32
               <div style="display: flex; margin: 10px 0;">
42
               <div style="display: flex; margin: 10px 0;">
33
                 <p style="display: inline;padding: 0;">一、</p>
43
                 <p style="display: inline;padding: 0;">一、</p>
73
 
83
 
74
 <script>
84
 <script>
75
 import print from "print-js";
85
 import print from "print-js";
86
+import { getPatientDetailInformedconsent  } from '@/api/patient'
87
+import { jsGetAge, uParseTime } from "@/utils/tools";
76
 export default{
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
   methods:{
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
       printThisPage(){
112
       printThisPage(){
79
           const style = '@media print {.content p{font-size: 16px;font-family: 新宋体; padding-left: 20px; margin-bottom: 5px;}}'
113
           const style = '@media print {.content p{font-size: 16px;font-family: 新宋体; padding-left: 20px; margin-bottom: 5px;}}'
80
           printJS({
114
           printJS({
84
               style: style,
118
               style: style,
85
               scanStyles: false
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
 </script>
145
 </script>

+ 64 - 8
src/xt_pages/user/Informed/components/catheterization_informed.vue View File

4
   <div style="border:1px solid gainsboro ;padding:10px">
4
   <div style="border:1px solid gainsboro ;padding:10px">
5
       <div style="position: relative; left: 400px;width: 250px;margin: 20px 0;"> 
5
       <div style="position: relative; left: 400px;width: 250px;margin: 20px 0;"> 
6
         <!-- <el-button type="primary">主要按钮</el-button> -->
6
         <!-- <el-button type="primary">主要按钮</el-button> -->
7
-        <el-button type="primary" style=""  @click="">
7
+        <!-- <el-button type="primary" style=""  @click="">
8
               编辑
8
               编辑
9
           </el-button>
9
           </el-button>
10
         <el-button type="danger" style=""  @click="">
10
         <el-button type="danger" style=""  @click="">
11
               删除
11
               删除
12
-        </el-button>
12
+        </el-button> -->
13
         <el-button type="success" style=""  @click="printThisPage">
13
         <el-button type="success" style=""  @click="printThisPage">
14
             打印
14
             打印
15
         </el-button>
15
         </el-button>
20
               <h2 style="text-align: center;">深静脉透析导管置入术知情同意书</h2>
20
               <h2 style="text-align: center;">深静脉透析导管置入术知情同意书</h2>
21
 
21
 
22
               <div style="text-align: right;">
22
               <div style="text-align: right;">
23
-                透析号:2100002
23
+                透析号:{{ patient.dialysis_no }}
24
               </div>
24
               </div>
25
               <div style="display: flex;margin: 10px 0;">
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
               </div>
39
               </div>
31
               <div style="border-bottom: 1px solid gainsboro;">
40
               <div style="border-bottom: 1px solid gainsboro;">
32
                 诊断:
41
                 诊断:
42
+                {{ patient.diagnose }}
33
               </div>
43
               </div>
34
               <div style="display: flex; margin: 10px 0;">
44
               <div style="display: flex; margin: 10px 0;">
35
                 <p style="display: inline;padding: 0;">一、</p>
45
                 <p style="display: inline;padding: 0;">一、</p>
157
 
167
 
158
 <script>
168
 <script>
159
 import print from "print-js";
169
 import print from "print-js";
170
+import { getPatientDetailInformedconsent  } from '@/api/patient'
171
+import { jsGetAge, uParseTime } from "@/utils/tools";
160
 export default{
172
 export default{
173
+  props: {
174
+    patient_id: {
175
+        type: Number,
176
+      }
177
+   },
178
+   data(){
179
+    return{
180
+      patient:{}
181
+    }
182
+   },
161
   methods:{
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
       printThisPage(){
194
       printThisPage(){
163
           const style = '@media print {.content p{font-size: 16px;font-family: 新宋体; padding-left: 20px; margin-bottom: 5px;}}'
195
           const style = '@media print {.content p{font-size: 16px;font-family: 新宋体; padding-left: 20px; margin-bottom: 5px;}}'
164
           printJS({
196
           printJS({
168
               style: style,
200
               style: style,
169
               scanStyles: false
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
 </script>
230
 </script>

+ 64 - 8
src/xt_pages/user/Informed/components/critical_informed.vue View File

3
   <div style="border:1px solid gainsboro ;padding:10px">
3
   <div style="border:1px solid gainsboro ;padding:10px">
4
       <div style="position: relative; left: 400px;width: 250px;margin: 20px 0;"> 
4
       <div style="position: relative; left: 400px;width: 250px;margin: 20px 0;"> 
5
         <!-- <el-button type="primary">主要按钮</el-button> -->
5
         <!-- <el-button type="primary">主要按钮</el-button> -->
6
-        <el-button type="primary" style=""  @click="">
6
+        <!-- <el-button type="primary" style=""  @click="">
7
               编辑
7
               编辑
8
           </el-button>
8
           </el-button>
9
         <el-button type="danger" style=""  @click="">
9
         <el-button type="danger" style=""  @click="">
10
               删除
10
               删除
11
-        </el-button>
11
+        </el-button> -->
12
         <el-button type="success" style=""  @click="printThisPage">
12
         <el-button type="success" style=""  @click="printThisPage">
13
             打印
13
             打印
14
         </el-button>
14
         </el-button>
19
               <h2 style="text-align: center;">危重患者接受血液净化治疗知情同意书</h2>
19
               <h2 style="text-align: center;">危重患者接受血液净化治疗知情同意书</h2>
20
 
20
 
21
               <div style="text-align: right;">
21
               <div style="text-align: right;">
22
-                透析号:2100002
22
+                透析号:{{ patient.dialysis_no }}
23
               </div>
23
               </div>
24
               <div style="display: flex;margin: 10px 0;">
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
               </div>
38
               </div>
30
               <div style="border-bottom: 1px solid gainsboro;">
39
               <div style="border-bottom: 1px solid gainsboro;">
31
                 诊断:
40
                 诊断:
41
+                {{ patient.diagnose }}
32
               </div>
42
               </div>
33
 
43
 
34
               <div style="display: flex; margin: 10px 0;">
44
               <div style="display: flex; margin: 10px 0;">
101
 
111
 
102
 <script>
112
 <script>
103
 import print from "print-js";
113
 import print from "print-js";
114
+import { getPatientDetailInformedconsent  } from '@/api/patient'
115
+import { jsGetAge, uParseTime } from "@/utils/tools";
104
 export default{
116
 export default{
117
+  props: {
118
+    patient_id: {
119
+        type: Number,
120
+      }
121
+   },
122
+  data(){
123
+    return{
124
+      patient:{}
125
+    }
126
+   },
105
   methods:{
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
       printThisPage(){
138
       printThisPage(){
107
           const style = '@media print {.content p{font-size: 16px;font-family: 新宋体; padding-left: 20px; margin-bottom: 5px;}}'
139
           const style = '@media print {.content p{font-size: 16px;font-family: 新宋体; padding-left: 20px; margin-bottom: 5px;}}'
108
           printJS({
140
           printJS({
112
               style: style,
144
               style: style,
113
               scanStyles: false
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
 </script>
174
 </script>

+ 63 - 8
src/xt_pages/user/Informed/components/dialyzer_informed.vue View File

4
   <div style="border:1px solid gainsboro ;padding:10px">
4
   <div style="border:1px solid gainsboro ;padding:10px">
5
       <div style="position: relative; left: 400px;width: 250px;margin: 20px 0;"> 
5
       <div style="position: relative; left: 400px;width: 250px;margin: 20px 0;"> 
6
         <!-- <el-button type="primary">主要按钮</el-button> -->
6
         <!-- <el-button type="primary">主要按钮</el-button> -->
7
-        <el-button type="primary" style=""  @click="">
7
+        <!-- <el-button type="primary" style=""  @click="">
8
               编辑
8
               编辑
9
           </el-button>
9
           </el-button>
10
         <el-button type="danger" style=""  @click="">
10
         <el-button type="danger" style=""  @click="">
11
               删除
11
               删除
12
-        </el-button>
12
+        </el-button> -->
13
         <el-button type="success" style=""  @click="printThisPage">
13
         <el-button type="success" style=""  @click="printThisPage">
14
             打印
14
             打印
15
         </el-button>
15
         </el-button>
20
               <h2 style="text-align: center;">透析器(滤器)重复使用知情同意书</h2>
20
               <h2 style="text-align: center;">透析器(滤器)重复使用知情同意书</h2>
21
 
21
 
22
               <div style="text-align: right;">
22
               <div style="text-align: right;">
23
-                透析号:2100002
23
+                透析号:{{ patient.dialysis_no }}
24
               </div>
24
               </div>
25
               <div style="display: flex;margin: 10px 0;">
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
               </div>
39
               </div>
31
               <div style="border-bottom: 1px solid gainsboro;">
40
               <div style="border-bottom: 1px solid gainsboro;">
32
                 诊断:
41
                 诊断:
42
+                {{ patient.diagnose }}
33
               </div>
43
               </div>
34
               
44
               
35
               <p style="text-indent:2em;">
45
               <p style="text-indent:2em;">
52
 
62
 
53
 <script>
63
 <script>
54
 import print from "print-js";
64
 import print from "print-js";
65
+import { getPatientDetailInformedconsent  } from '@/api/patient'
66
+import { jsGetAge, uParseTime } from "@/utils/tools";
55
 export default{
67
 export default{
68
+  props: {
69
+    patient_id: {
70
+        type: Number,
71
+      }
72
+   },
73
+  data(){
74
+    return{
75
+      patient:{}
76
+    }
77
+   },
56
   methods:{
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
       printThisPage(){
88
       printThisPage(){
58
           const style = '@media print {.content p{font-size: 16px;font-family: 新宋体; padding-left: 20px; margin-bottom: 5px;}}'
89
           const style = '@media print {.content p{font-size: 16px;font-family: 新宋体; padding-left: 20px; margin-bottom: 5px;}}'
59
           printJS({
90
           printJS({
63
               style: style,
94
               style: style,
64
               scanStyles: false
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
 </script>
124
 </script>

+ 64 - 8
src/xt_pages/user/Informed/components/hemoperfusion_informed.vue View File

3
   <div style="border:1px solid gainsboro ;padding:10px">
3
   <div style="border:1px solid gainsboro ;padding:10px">
4
       <div style="position: relative; left: 400px;width: 250px;margin: 20px 0;"> 
4
       <div style="position: relative; left: 400px;width: 250px;margin: 20px 0;"> 
5
         <!-- <el-button type="primary">主要按钮</el-button> -->
5
         <!-- <el-button type="primary">主要按钮</el-button> -->
6
-        <el-button type="primary" style=""  @click="">
6
+        <!-- <el-button type="primary" style=""  @click="">
7
               编辑
7
               编辑
8
           </el-button>
8
           </el-button>
9
         <el-button type="danger" style=""  @click="">
9
         <el-button type="danger" style=""  @click="">
10
               删除
10
               删除
11
-        </el-button>
11
+        </el-button> -->
12
         <el-button type="success" style=""  @click="printThisPage">
12
         <el-button type="success" style=""  @click="printThisPage">
13
             打印
13
             打印
14
         </el-button>
14
         </el-button>
19
               <h2 style="text-align: center;">血液灌流治疗知情同意书</h2>
19
               <h2 style="text-align: center;">血液灌流治疗知情同意书</h2>
20
 
20
 
21
               <div style="text-align: right;">
21
               <div style="text-align: right;">
22
-                透析号:2100002
22
+                透析号:{{ patient.dialysis_no }}
23
               </div>
23
               </div>
24
               <div style="display: flex;margin: 10px 0;">
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
               </div>
38
               </div>
30
               <div style="border-bottom: 1px solid gainsboro;">
39
               <div style="border-bottom: 1px solid gainsboro;">
31
                 诊断:
40
                 诊断:
41
+                {{ patient.diagnose }}
32
               </div>
42
               </div>
33
               <div style="display: flex; margin: 10px 0;">
43
               <div style="display: flex; margin: 10px 0;">
34
                 <p style="display: inline;padding: 0;">一、</p>
44
                 <p style="display: inline;padding: 0;">一、</p>
110
 
120
 
111
 <script>
121
 <script>
112
 import print from "print-js";
122
 import print from "print-js";
123
+import { getPatientDetailInformedconsent  } from '@/api/patient'
124
+import { jsGetAge, uParseTime } from "@/utils/tools";
113
 export default{
125
 export default{
126
+  props: {
127
+    patient_id: {
128
+        type: Number,
129
+      }
130
+   },
131
+   data(){
132
+    return{
133
+      patient:{}
134
+    }
135
+   },
114
   methods:{
136
   methods:{
115
       printThisPage(){
137
       printThisPage(){
116
           const style = '@media print {.content p{font-size: 16px;font-family: 新宋体; padding-left: 20px; margin-bottom: 5px;}}'
138
           const style = '@media print {.content p{font-size: 16px;font-family: 新宋体; padding-left: 20px; margin-bottom: 5px;}}'
121
               style: style,
143
               style: style,
122
               scanStyles: false
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
 </script>
183
 </script>

+ 1 - 1
src/xt_pages/user/Informed/components/profunda_informed.vue View File

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

+ 63 - 8
src/xt_pages/user/Informed/components/therapy_informed.vue View File

3
   <div style="border:1px solid gainsboro ;padding:10px">
3
   <div style="border:1px solid gainsboro ;padding:10px">
4
       <div style="position: relative; left: 400px;width: 250px;margin: 20px 0;"> 
4
       <div style="position: relative; left: 400px;width: 250px;margin: 20px 0;"> 
5
         <!-- <el-button type="primary">主要按钮</el-button> -->
5
         <!-- <el-button type="primary">主要按钮</el-button> -->
6
-        <el-button type="primary" style=""  @click="">
6
+        <!-- <el-button type="primary" style=""  @click="">
7
               编辑
7
               编辑
8
           </el-button>
8
           </el-button>
9
         <el-button type="danger" style=""  @click="">
9
         <el-button type="danger" style=""  @click="">
10
               删除
10
               删除
11
-        </el-button>
11
+        </el-button> -->
12
         <el-button type="success" style=""  @click="printThisPage">
12
         <el-button type="success" style=""  @click="printThisPage">
13
             打印
13
             打印
14
         </el-button>
14
         </el-button>
19
               <h2 style="text-align: center;">血液透析(滤过)治疗知情同意书</h2>
19
               <h2 style="text-align: center;">血液透析(滤过)治疗知情同意书</h2>
20
 
20
 
21
               <div style="text-align: right;">
21
               <div style="text-align: right;">
22
-                透析号:2100002
22
+                透析号:{{ patient.dialysis_no }}
23
               </div>
23
               </div>
24
               <div style="display: flex;margin: 10px 0;">
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
               </div>
38
               </div>
30
               <div style="border-bottom: 1px solid gainsboro;">
39
               <div style="border-bottom: 1px solid gainsboro;">
31
                 诊断:
40
                 诊断:
41
+                {{ patient.diagnose }}
32
               </div>
42
               </div>
33
               <div style="display: flex; margin: 10px 0;">
43
               <div style="display: flex; margin: 10px 0;">
34
                 <p style="display: inline;padding: 0;">一、</p>
44
                 <p style="display: inline;padding: 0;">一、</p>
98
 
108
 
99
 <script>
109
 <script>
100
 import print from "print-js";
110
 import print from "print-js";
111
+import { getPatientDetailInformedconsent  } from '@/api/patient'
112
+import { jsGetAge, uParseTime } from "@/utils/tools";
101
 export default{
113
 export default{
114
+  props: {
115
+    patient_id: {
116
+        type: Number,
117
+      }
118
+   },
119
+  data(){
120
+  return{
121
+    patient:{}
122
+  }
123
+  },
102
   methods:{
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
       printThisPage(){
134
       printThisPage(){
104
           const style = '@media print {.content p{font-size: 16px;font-family: 新宋体; padding-left: 20px; margin-bottom: 5px;}}'
135
           const style = '@media print {.content p{font-size: 16px;font-family: 新宋体; padding-left: 20px; margin-bottom: 5px;}}'
105
           printJS({
136
           printJS({
109
               style: style,
140
               style: style,
110
               scanStyles: false
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
 </script>
170
 </script>

+ 2 - 1
src/xt_pages/user/dialysisRecord.vue View File

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