瀏覽代碼

Merge remote-tracking branch 'origin/20230223_pc_vue_new_branch' into 20230223_pc_vue_new_branch

yq1 1 年之前
父節點
當前提交
31059eae8a

+ 9 - 0
src/api/patient.js 查看文件

794
     method:"Post",
794
     method:"Post",
795
     data:data,
795
     data:data,
796
   })
796
   })
797
+}
798
+
799
+export function getPatientDetailInformedconsent(id,params){
800
+     
801
+  return request({
802
+    url:"/api/patient/getpatientdetailinformedconsent?patient_id="+id,
803
+    method:"get",
804
+    params:params,
805
+  })
797
 }
806
 }

+ 11 - 11
src/router/modules/patient.js 查看文件

579
       noCache: true
579
       noCache: true
580
     }
580
     }
581
   },
581
   },
582
-  // {//知情同意书
583
-  //   path: '/patients/patient/:id/Informedconsent',
584
-  //   component: () => import('@/xt_pages/user/Informed/Informedconsent'),
585
-  //   hidden: true,
586
-  //   is_menu: false,
587
-  //   name: 'Informedconsent',
588
-  //   meta: {
589
-  //     title: 'Informedconsent',
590
-  //     noCache: true
591
-  //   }
592
-  // },
582
+  {//知情同意书
583
+    path: '/patients/patient/:id/Informedconsent',
584
+    component: () => import('@/xt_pages/user/Informed/Informedconsent'),
585
+    hidden: true,
586
+    is_menu: false,
587
+    name: 'Informedconsent',
588
+    meta: {
589
+      title: 'Informedconsent',
590
+      noCache: true
591
+    }
592
+  },
593
   // {//血管通路图 pruritus_history
593
   // {//血管通路图 pruritus_history
594
   //   path: '/patients/patient/:id/angiogram',
594
   //   path: '/patients/patient/:id/angiogram',
595
   //   component: () => import('@/xt_pages/user/angiogram'),
595
   //   component: () => import('@/xt_pages/user/angiogram'),

+ 1 - 0
src/xt_pages/device/objectTableDisinfectTwo.vue 查看文件

1155
                                     <img style="height:30px;" :src="setAdminUserES(item.fourth_creator?item.fourth_creator:item.fourth_creator)" alt="" srcset="">
1155
                                     <img style="height:30px;" :src="setAdminUserES(item.fourth_creator?item.fourth_creator:item.fourth_creator)" alt="" srcset="">
1156
                                 </span>   
1156
                                 </span>   
1157
                                 </td>
1157
                                 </td>
1158
+                                <td>是<br/></td>
1158
                                 <td>{{getTimeTwo(item.last_start_time) }} - {{getTimeTwo( item.last_end_time) }}</td>
1159
                                 <td>{{getTimeTwo(item.last_start_time) }} - {{getTimeTwo( item.last_end_time) }}</td>
1159
                                 <td>
1160
                                 <td>
1160
                                     <span v-if="setAdminUserES(item.last_creator?item.last_creator:item.last_creator) == ''">
1161
                                     <span v-if="setAdminUserES(item.last_creator?item.last_creator:item.last_creator) == ''">

+ 63 - 5
src/xt_pages/outpatientCharges/chargeDetailManagement.vue 查看文件

83
           <div v-if="this.radio == 1">
83
           <div v-if="this.radio == 1">
84
             <el-button
84
             <el-button
85
               size="small"
85
               size="small"
86
+              v-loading="isloading"
87
+              :disabled="isdisabled"
86
               @click="open(1)"
88
               @click="open(1)"
87
               type="primary">上传明细
89
               type="primary">上传明细
88
             </el-button>
90
             </el-button>
195
                             :value="item.value">
197
                             :value="item.value">
196
                           </el-option>
198
                           </el-option>
197
                         </el-select>
199
                         </el-select>
200
+                          <label>
201
+                            疾病类型:
202
+                          </label>
203
+                          <el-select filterable  v-model="sick_type" placeholder="请选择疾病类型">
204
+                            <el-option
205
+                              v-for="(item,index) in sick"
206
+                              :key="index"
207
+                              :label="item.class_name"
208
+                              :value="item.id">
209
+                            </el-option>
210
+                          </el-select>
211
+
198
                       </div>
212
                       </div>
199
 
213
 
200
                       <!--<prescription-table :preTableData='preTableData'></prescription-table>-->
214
                       <!--<prescription-table :preTableData='preTableData'></prescription-table>-->
233
 import axios from 'axios'
247
 import axios from 'axios'
234
 import { getUploadZuoBiaoPatientInfo, getZuoBiaoPatientInfo, getZuoBiaoPatientList } from '@/api/his/his_zuobiao'
248
 import { getUploadZuoBiaoPatientInfo, getZuoBiaoPatientInfo, getZuoBiaoPatientList } from '@/api/his/his_zuobiao'
235
 import { uParseTime } from '@/utils/tools'
249
 import { uParseTime } from '@/utils/tools'
250
+import { getInitData } from '@/api/his/his'
236
 
251
 
237
 import MonthPrescriptionTable from './componenttwo/ChargePrescriptionTable'
252
 import MonthPrescriptionTable from './componenttwo/ChargePrescriptionTable'
238
 import ChargeMonthPrescriptionTable from './componenttwo/chargeMonthPrescriptionTable'
253
 import ChargeMonthPrescriptionTable from './componenttwo/chargeMonthPrescriptionTable'
248
   },
263
   },
249
   data() {
264
   data() {
250
     return {
265
     return {
266
+      isloading:false,
267
+      isdisabled:false,
251
       register: [
268
       register: [
252
         { value: 11, label: '普通门诊' },
269
         { value: 11, label: '普通门诊' },
253
         // { value: 12, label: '门诊挂号' },
270
         // { value: 12, label: '门诊挂号' },
316
         name: '1'
333
         name: '1'
317
       }],
334
       }],
318
       tabIndex: 1,
335
       tabIndex: 1,
336
+
319
       hisPatientInfo: {},
337
       hisPatientInfo: {},
338
+      prescription_info:{},
320
       loadingtwo: false,
339
       loadingtwo: false,
321
       upload_list: [],
340
       upload_list: [],
322
       patientTableData: [{}],
341
       patientTableData: [{}],
372
 
391
 
373
     // this.getInitData()
392
     // this.getInitData()
374
     //获取患者信息
393
     //获取患者信息
394
+    this.getInitData()
375
     this.getPatientList()
395
     this.getPatientList()
376
   },
396
   },
377
   methods: {
397
   methods: {
398
+    getInitData() {
399
+      getInitData().then(response => {
400
+        if (response.data.state == 0) {
401
+          this.$message.error(response.data.msg)
402
+          return false
403
+        } else {
404
+          this.sick = response.data.data.sick
405
+        }
406
+      })
407
+
408
+    },
378
     changeScheduleType() {
409
     changeScheduleType() {
379
 
410
 
380
       this.getPatientList()
411
       this.getPatientList()
649
         var that = this
680
         var that = this
650
         let obj3 = {
681
         let obj3 = {
651
           id: this.zuobiao_info.id,
682
           id: this.zuobiao_info.id,
652
-          admin_user_id: this.$store.getters.xt_user.user.id
683
+          admin_user_id: this.$store.getters.xt_user.user.id,
653
         }
684
         }
654
         axios.get('http://127.0.0.1:9532' + '/nmg/coordinate/settleAccount/cancel', {
685
         axios.get('http://127.0.0.1:9532' + '/nmg/coordinate/settleAccount/cancel', {
655
           params: obj3
686
           params: obj3
682
 
713
 
683
           })
714
           })
684
       } else if (index == 1) {
715
       } else if (index == 1) {
716
+        this.isloading = true
717
+        this.isdisabled = true
718
+        var that = this
685
         if (this.hisPatientInfo.id == 0) {
719
         if (this.hisPatientInfo.id == 0) {
686
           this.$message.error("请选择需要记账的患者")
720
           this.$message.error("请选择需要记账的患者")
687
           return
721
           return
688
         }
722
         }
723
+        if (this.sick_type == 0 || this.sick_type == "") {
724
+          this.$message.error("请选择疾病类型")
725
+          return
726
+        }
689
 
727
 
690
         let obj = {
728
         let obj = {
691
           patient_id: this.hisPatientInfo.id,
729
           patient_id: this.hisPatientInfo.id,
692
           diagnosis_time: this.record_date,
730
           diagnosis_time: this.record_date,
693
           record_date: this.record_date,
731
           record_date: this.record_date,
694
           admin_user_id: this.$store.getters.xt_user.user.id,
732
           admin_user_id: this.$store.getters.xt_user.user.id,
695
-          org_id: this.$store.getters.xt_user.org_id
733
+          org_id: this.$store.getters.xt_user.org_id,
734
+          sick_type:this.sick_type,
696
         }
735
         }
697
         obj['start_time'] = this.other_start_time
736
         obj['start_time'] = this.other_start_time
698
         obj['end_time'] = this.other_end_time
737
         obj['end_time'] = this.other_end_time
703
           .then(function(response) {
742
           .then(function(response) {
704
             if (response.data.state == 0) {
743
             if (response.data.state == 0) {
705
               that.$message.error(response.data.msg)
744
               that.$message.error(response.data.msg)
706
-              that.loadingtwo = false
745
+              that.isloading = false
746
+              that.isdisabled = false
747
+
707
               return false
748
               return false
708
             } else {
749
             } else {
750
+              that.isloading = false
751
+              that.isdisabled = false
709
               if (response.data.data.failed_code == -10) {
752
               if (response.data.data.failed_code == -10) {
710
                 that.$confirm(response.data.data.msg, '医保错误信息', {
753
                 that.$confirm(response.data.data.msg, '医保错误信息', {
711
                   confirmButtonText: '确 定',
754
                   confirmButtonText: '确 定',
715
                 }).catch(() => {
758
                 }).catch(() => {
716
                 })
759
                 })
717
 
760
 
761
+
718
               } else {
762
               } else {
763
+                that.isloading = false
764
+                that.isdisabled = false
719
                 that.radio = 2
765
                 that.radio = 2
720
                 that.$message({ message: '上传成功', type: 'success', duration: 5000 })
766
                 that.$message({ message: '上传成功', type: 'success', duration: 5000 })
721
                 that.getPatientList()
767
                 that.getPatientList()
836
                 for(let i = 0; i < this.upload_list.length;i++){
882
                 for(let i = 0; i < this.upload_list.length;i++){
837
                   if(this.hisPatientInfo.id == this.upload_list[i].his_patient.id){
883
                   if(this.hisPatientInfo.id == this.upload_list[i].his_patient.id){
838
                     this.$refs.tab.setCurrentRow(this.upload_list[i])
884
                     this.$refs.tab.setCurrentRow(this.upload_list[i])
839
-                    this.getPatientInformation(this.upload_list[0].id)
885
+                    this.getPatientInformation(this.upload_list[0].his_patient.id)
840
 
886
 
841
                   }
887
                   }
842
                 }
888
                 }
843
               }else{
889
               }else{
844
                 this.$refs.tab.setCurrentRow(this.upload_list[0])
890
                 this.$refs.tab.setCurrentRow(this.upload_list[0])
845
-                this.getPatientInformation(this.upload_list[0].id)
891
+                this.getPatientInformation(this.upload_list[0].his_patient.id)
846
               }
892
               }
847
               break
893
               break
848
           }
894
           }
1036
           this.curMonthPrescriptions = {}
1082
           this.curMonthPrescriptions = {}
1037
           this.zuobiao_info = {}
1083
           this.zuobiao_info = {}
1038
           this.loading = false
1084
           this.loading = false
1085
+          this.prescription_info = response.data.data.prescription_info
1086
+          this.sick_type = this.prescription_info.sick_type
1087
+          if(this.sick_type == 0){
1088
+            this.sick_type = ""
1089
+          }
1090
+          console.log(this.sick_type)
1039
           this.hisPatientInfo = response.data.data.patient
1091
           this.hisPatientInfo = response.data.data.patient
1040
           this.zuobiao_info = response.data.data.zuobiao_info
1092
           this.zuobiao_info = response.data.data.zuobiao_info
1041
           this.setMonthPrescription(response.data.data.month_prescriptions)
1093
           this.setMonthPrescription(response.data.data.month_prescriptions)
1184
           this.curMonthPrescriptions = {}
1236
           this.curMonthPrescriptions = {}
1185
           this.loading = false
1237
           this.loading = false
1186
           this.hisPatientInfo = response.data.data.patient
1238
           this.hisPatientInfo = response.data.data.patient
1239
+          this.prescription_info = response.data.data.prescription_info
1240
+          this.sick_type = this.prescription_info.sick_type
1241
+          if(this.sick_type == 0){
1242
+            this.sick_type = ""
1243
+          }
1244
+          console.log(this.sick_type)
1187
           this.setMonthPrescription(response.data.data.month_prescriptions)
1245
           this.setMonthPrescription(response.data.data.month_prescriptions)
1188
           for (let i = 0; i < response.data.data.prescription.length; i++) {
1246
           for (let i = 0; i < response.data.data.prescription.length; i++) {
1189
             var prescription = response.data.data.prescription[i]
1247
             var prescription = response.data.data.prescription[i]

+ 1 - 1
src/xt_pages/outpatientDoctorStation/print.vue 查看文件

1
 <template>
1
 <template>
2
   <div>
2
   <div>
3
     <div class="dialysisPage" style="padding-top: 40px">
3
     <div class="dialysisPage" style="padding-top: 40px">
4
-      <div v-if="org_id != 10138 && org_id != 10278 && org_id != 10243 && org_id != 10537">
4
+      <div v-if="org_id != 10138 && org_id != 10278 && org_id != 10243 && org_id != 10537 &&  org_id != 0">
5
 
5
 
6
         <printOne v-if="org_id != 10088 && org_id != 10215 && org_id != 10375 && org_id != 10188 && org_id != 0" v-bind:childResponse="childResponse"
6
         <printOne v-if="org_id != 10088 && org_id != 10215 && org_id != 10375 && org_id != 10188 && org_id != 0" v-bind:childResponse="childResponse"
7
         :advicePrint="advicePrint" :ids="ids" :patient="patient" :hisPatient="hisPatient"
7
         :advicePrint="advicePrint" :ids="ids" :patient="patient" :hisPatient="hisPatient"

+ 23 - 16
src/xt_pages/user/Informed/Informedconsent.vue 查看文件

59
                     prefix-icon="el-icon-search"
59
                     prefix-icon="el-icon-search"
60
                     v-model="input2" style="width: 200px;">
60
                     v-model="input2" style="width: 200px;">
61
                   </el-input>
61
                   </el-input>
62
-                  <el-button type="primary">新增</el-button>
62
+                  <!-- <el-button type="primary">新增</el-button> -->
63
                 </div>
63
                 </div>
64
                 <div>
64
                 <div>
65
                   <el-table
65
                   <el-table
84
               </div>
84
               </div>
85
               <div style="width: 67%; margin-left: 10px;">
85
               <div style="width: 67%; margin-left: 10px;">
86
                 <div v-if="face_show">
86
                 <div v-if="face_show">
87
-                  <Falloutbedprint></Falloutbedprint>
87
+                  <Falloutbedprint :patient_id ="this.patientID"></Falloutbedprint>
88
                 </div>
88
                 </div>
89
                 <div v-if="filter_show">
89
                 <div v-if="filter_show">
90
                   <!-- filter_show -->
90
                   <!-- filter_show -->
91
-                  <Filter_informed></Filter_informed>
91
+                  <Filter_informed :patient_id ="this.patientID"></Filter_informed>
92
                 </div>
92
                 </div>
93
                 <div v-if="profunda_show">
93
                 <div v-if="profunda_show">
94
-                  <profunda_informed></profunda_informed>
94
+                  <profunda_informed :patient_id ="this.patientID"></profunda_informed>
95
                 </div>
95
                 </div>
96
                 <div v-if="arteriovenous_show">
96
                 <div v-if="arteriovenous_show">
97
-                  <arteriovenous_informed></arteriovenous_informed>
97
+                  <arteriovenous_informed :patient_id ="this.patientID"></arteriovenous_informed>
98
                 </div>
98
                 </div>
99
-                <div v-if="Highrisk_show">
100
-                  <Highrisk_informed></Highrisk_informed>
99
+                <div v-if="Highrisk_show" >
100
+                  <Highrisk_informed :patient_id ="this.patientID"></Highrisk_informed>
101
                 </div>
101
                 </div>
102
                 <div v-if="anticoagulation_show">
102
                 <div v-if="anticoagulation_show">
103
-                  <anticoagulation_informed></anticoagulation_informed>
103
+                  <anticoagulation_informed :patient_id ="this.patientID"></anticoagulation_informed>
104
                 </div>
104
                 </div>
105
                 <div v-if="critical_show">
105
                 <div v-if="critical_show">
106
-                  <critical_informed></critical_informed>
106
+                  <critical_informed :patient_id ="this.patientID"></critical_informed>
107
                 </div>
107
                 </div>
108
                 <div v-if="hemoperfusion_show">
108
                 <div v-if="hemoperfusion_show">
109
-                  <hemoperfusion_informed></hemoperfusion_informed>
109
+                  <hemoperfusion_informed :patient_id ="this.patientID"></hemoperfusion_informed>
110
                 </div>
110
                 </div>
111
                 <div v-if="Bring_show">
111
                 <div v-if="Bring_show">
112
-                  <Bring_informed></Bring_informed>
112
+                  <Bring_informed :patient_id ="this.patientID"></Bring_informed>
113
                 </div>
113
                 </div>
114
                 <div v-if="catheterization_show">
114
                 <div v-if="catheterization_show">
115
-                  <catheterization_informed></catheterization_informed>
115
+                  <catheterization_informed :patient_id ="this.patientID"></catheterization_informed>
116
                 </div>
116
                 </div>
117
                 <div v-if="dialyzer_show">
117
                 <div v-if="dialyzer_show">
118
-                  <dialyzer_informed></dialyzer_informed>
118
+                  <dialyzer_informed :patient_id ="this.patientID"></dialyzer_informed>
119
                 </div>
119
                 </div>
120
                 <div v-if="therapy_show">
120
                 <div v-if="therapy_show">
121
-                  <therapy_informed></therapy_informed>
121
+                  <therapy_informed :patient_id ="this.patientID"></therapy_informed>
122
                 </div>
122
                 </div>
123
                 
123
                 
124
               </div>
124
               </div>
145
 import catheterization_informed from './components/catheterization_informed'//深静脉导管置入
145
 import catheterization_informed from './components/catheterization_informed'//深静脉导管置入
146
 import dialyzer_informed from './components/dialyzer_informed'//透析器(滤器)
146
 import dialyzer_informed from './components/dialyzer_informed'//透析器(滤器)
147
 import therapy_informed from './components/therapy_informed'//透析器(滤过)治疗
147
 import therapy_informed from './components/therapy_informed'//透析器(滤过)治疗
148
+import { getPatientDetailInformedconsent,  } from '@/api/patient'
148
 export default {
149
 export default {
149
-
150
+  
150
   components: {
151
   components: {
151
     PatientSidebar,
152
     PatientSidebar,
152
     Falloutbedprint,
153
     Falloutbedprint,
183
       catheterization_show:false,
184
       catheterization_show:false,
184
       dialyzer_show:false,
185
       dialyzer_show:false,
185
       therapy_show:false,
186
       therapy_show:false,
187
+      patientID:0,
188
+      patient:{},
189
+      tableData:[],
186
     }
190
     }
187
 
191
 
188
   },
192
   },
189
   created() {
193
   created() {
190
-
194
+    const id = this.$route.params && this.$route.params.id
195
+    this.patientID = parseInt(id)
196
+    console.log("病人id",this.patientID)
191
   },
197
   },
192
   methods: {
198
   methods: {
199
+   
193
     rowClick(row, column, event){
200
     rowClick(row, column, event){
194
       // console.log('1111',row);
201
       // console.log('1111',row);
195
       // console.log('2222',column);
202
       // console.log('2222',column);

+ 58 - 8
src/xt_pages/user/Informed/components/Falloutbedprint.vue 查看文件

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="">
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">
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">姓名:{{ patient.name }}</div>
25
+                  <div style="flex:1">性别:
26
+                     <span v-if="patient.gender == 1">男</span>
27
+                     <span v-if="patient.gender == 2">女</span>
28
+                  </div>
29
+                  <div style="flex:1">年龄:{{ getAge(patient) }}</div>
30
+                  <div style="flex:1">住院(门诊)号:{{ patient.admission_number }}</div>
28
                 </div>
31
                 </div>
29
                 <div style="border-bottom: 1px solid gainsboro;">
32
                 <div style="border-bottom: 1px solid gainsboro;">
30
-                  诊断:
33
+                  诊断:{{ patient.diagnose }}
31
                 </div>
34
                 </div>
32
                 <p style="font-size: 17px;font-weight: bold;">请您仔细阅读以下内容,并自主决定是否使用人脸识别功能:</p>
35
                 <p style="font-size: 17px;font-weight: bold;">请您仔细阅读以下内容,并自主决定是否使用人脸识别功能:</p>
33
                 <p style="display: inline;padding: 0;">一、登录平台时,您已被提示(无论是否以界面弹窗或其他方式)注意仔细阅读本知情同意书。</p>
36
                 <p style="display: inline;padding: 0;">一、登录平台时,您已被提示(无论是否以界面弹窗或其他方式)注意仔细阅读本知情同意书。</p>
74
 
77
 
75
 <script>
78
 <script>
76
 import print from "print-js";
79
 import print from "print-js";
80
+import { getPatientDetailInformedconsent  } from '@/api/patient'
81
+import { jsGetAge, uParseTime } from "@/utils/tools";
77
 export default{
82
 export default{
83
+  props: {
84
+    patient_id: {
85
+        type: Number,
86
+      }
87
+   },
88
+   data(){
89
+    return{
90
+      patient:{}
91
+    }
92
+   },
93
+  
94
+   created(){
95
+     this.getlist()
96
+   },
78
     methods:{
97
     methods:{
98
+      getlist(){
99
+        console.log("owwwwwwwwwwwwwwwwwww",this.patient_id)
100
+        getPatientDetailInformedconsent(this.patient_id).then(response=>{
101
+          if(response.data.state == 1){
102
+            var patient =  response.data.data.patients
103
+            console.log("patinet",patient)
104
+            this.patient =patient
105
+          }
106
+        }) 
107
+       },
79
         printThisPage(){
108
         printThisPage(){
80
             const style = '@media print {.content p{font-size: 16px;font-family: 新宋体; padding-left: 20px; margin-bottom: 5px;}}'
109
             const style = '@media print {.content p{font-size: 16px;font-family: 新宋体; padding-left: 20px; margin-bottom: 5px;}}'
81
             printJS({
110
             printJS({
85
                 style: style,
114
                 style: style,
86
                 scanStyles: false
115
                 scanStyles: false
87
             })
116
             })
117
+        },
118
+       getAge: function(val) {
119
+          if (val.id_card_no == undefined) {
120
+            return false
121
+          }
122
+          var thisLen = val.id_card_no.length
123
+          var birth = ''
124
+          if (thisLen == 15) {
125
+            birth = '19' + val.id_card_no.substr(6, 6)
126
+          } else {
127
+            birth = val.id_card_no.substr(6, 8)
128
+          }
129
+          var birthtwo =
130
+            birth.substr(0, 4) +
131
+            '-' +
132
+            birth.substr(4, 2) +
133
+            '-' +
134
+            birth.substr(6, 2)
135
+
136
+          var age = jsGetAge(birthtwo, '-')
137
+          return age
88
         }
138
         }
89
     }
139
     }
90
 }
140
 }

+ 71 - 17
src/xt_pages/user/Informed/components/Filter_informed.vue 查看文件

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">姓名:{{ patient.name }}</div>
25
+                <div style="flex:1">性别:
26
+                  <span v-if="patient.gender == 1">男</span>
27
+                  <span v-if="patient.gender == 2">女</span>
28
+                </div>
29
+                <div style="flex:1">年龄:
30
+                  {{ getAge(patient) }}
31
+                </div>
32
+                <div style="flex:1">住院(门诊)号:
33
+                  {{ patient.admission_number }}
34
+                </div>
28
               </div>
35
               </div>
29
               <div style="border-bottom: 1px solid gainsboro;">
36
               <div style="border-bottom: 1px solid gainsboro;">
30
-                诊断:
37
+                诊断:{{ patient.diagnose }}
31
               </div>
38
               </div>
32
               <!-- <span>一、血液透析是急性肾损伤和慢性肾功能衰竭的一种替代治疗方法:</span><br> -->
39
               <!-- <span>一、血液透析是急性肾损伤和慢性肾功能衰竭的一种替代治疗方法:</span><br> -->
33
               <p style="display: inline;padding: 0;">一、血液透析是急性肾损伤和慢性肾功能衰竭的一种替代治疗方法:</p>
40
               <p style="display: inline;padding: 0;">一、血液透析是急性肾损伤和慢性肾功能衰竭的一种替代治疗方法:</p>
117
 
124
 
118
 <script>
125
 <script>
119
 import print from "print-js";
126
 import print from "print-js";
127
+import { getPatientDetailInformedconsent  } from '@/api/patient'
128
+import { jsGetAge, uParseTime } from "@/utils/tools";
120
 export default{
129
 export default{
121
-  methods:{
122
-      printThisPage(){
123
-          const style = '@media print {.content p{font-size: 16px;font-family: 新宋体; padding-left: 20px; margin-bottom: 5px;}}'
124
-          printJS({
125
-              printable: 'print_content',
126
-              type: 'html',
127
-              documentTitle: '  ',
128
-              style: style,
129
-              scanStyles: false
130
-          })
130
+  props: {
131
+    patient_id: {
132
+        type: Number,
131
       }
133
       }
132
-  }
134
+   },
135
+   data(){
136
+    return{
137
+      patient:{}
138
+    }
139
+   },
140
+  
141
+   created(){
142
+     this.getlist()
143
+   },
144
+    methods:{
145
+      getlist(){
146
+        console.log("owwwwwwwwwwwwwwwwwww",this.patient_id)
147
+        getPatientDetailInformedconsent(this.patient_id).then(response=>{
148
+          if(response.data.state == 1){
149
+            var patient =  response.data.data.patients
150
+            console.log("patinet",patient)
151
+            this.patient =patient
152
+          }
153
+        }) 
154
+       },
155
+        printThisPage(){
156
+            const style = '@media print {.content p{font-size: 16px;font-family: 新宋体; padding-left: 20px; margin-bottom: 5px;}}'
157
+            printJS({
158
+                printable: 'print_content',
159
+                type: 'html',
160
+                documentTitle: '  ',
161
+                style: style,
162
+                scanStyles: false
163
+            })
164
+        },
165
+       getAge: function(val) {
166
+          if (val.id_card_no == undefined) {
167
+            return false
168
+          }
169
+          var thisLen = val.id_card_no.length
170
+          var birth = ''
171
+          if (thisLen == 15) {
172
+            birth = '19' + val.id_card_no.substr(6, 6)
173
+          } else {
174
+            birth = val.id_card_no.substr(6, 8)
175
+          }
176
+          var birthtwo =
177
+            birth.substr(0, 4) +
178
+            '-' +
179
+            birth.substr(4, 2) +
180
+            '-' +
181
+            birth.substr(6, 2)
182
+
183
+          var age = jsGetAge(birthtwo, '-')
184
+          return age
185
+        }
186
+    }
133
 }
187
 }
134
 </script>
188
 </script>
135
 <style lang="scss" scoped>
189
 <style lang="scss" scoped>

+ 72 - 18
src/xt_pages/user/Informed/components/profunda_informed.vue 查看文件

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="">
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">
21
                 透析号:2100002
21
                 透析号:2100002
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">姓名:{{ patient.name }}</div>
25
+                <div style="flex:1">性别:
26
+                  <span v-if="patient.gender == 1">男</span>
27
+                   <span v-if="patient.gender == 2">女</span>
28
+                </div>
29
+                <div style="flex:1">年龄:
30
+                  {{ getAge(patient) }}
31
+                </div>
32
+                <div style="flex:1">住院(门诊)号:
33
+                  {{ patient.admission_number }}
34
+                </div>
28
               </div>
35
               </div>
29
               <div style="border-bottom: 1px solid gainsboro;">
36
               <div style="border-bottom: 1px solid gainsboro;">
30
-                诊断:
37
+                诊断: {{ patient.diagnose }}
31
               </div>
38
               </div>
32
               <p style="display: inline;padding: 0;">拟进行治疗:深静脉透析导管拔管术</p>
39
               <p style="display: inline;padding: 0;">拟进行治疗:深静脉透析导管拔管术</p>
33
               <div style="display: flex; margin: 10px 0;">
40
               <div style="display: flex; margin: 10px 0;">
86
 
93
 
87
 <script>
94
 <script>
88
 import print from "print-js";
95
 import print from "print-js";
96
+import { getPatientDetailInformedconsent  } from '@/api/patient'
97
+import { jsGetAge, uParseTime } from "@/utils/tools";
89
 export default{
98
 export default{
90
-  methods:{
91
-      printThisPage(){
92
-          const style = '@media print {.content p{font-size: 16px;font-family: 新宋体; padding-left: 20px; margin-bottom: 5px;}}'
93
-          printJS({
94
-              printable: 'print_content',
95
-              type: 'html',
96
-              documentTitle: '  ',
97
-              style: style,
98
-              scanStyles: false
99
-          })
99
+  props: {
100
+    patient_id: {
101
+        type: Number,
100
       }
102
       }
101
-  }
103
+   },
104
+   data(){
105
+    return{
106
+      patient:{}
107
+    }
108
+   },
109
+  
110
+   created(){
111
+     this.getlist()
112
+   },
113
+    methods:{
114
+      getlist(){
115
+        console.log("owwwwwwwwwwwwwwwwwww",this.patient_id)
116
+        getPatientDetailInformedconsent(this.patient_id).then(response=>{
117
+          if(response.data.state == 1){
118
+            var patient =  response.data.data.patients
119
+            console.log("patinet",patient)
120
+            this.patient =patient
121
+          }
122
+        }) 
123
+       },
124
+        printThisPage(){
125
+            const style = '@media print {.content p{font-size: 16px;font-family: 新宋体; padding-left: 20px; margin-bottom: 5px;}}'
126
+            printJS({
127
+                printable: 'print_content',
128
+                type: 'html',
129
+                documentTitle: '  ',
130
+                style: style,
131
+                scanStyles: false
132
+            })
133
+        },
134
+       getAge: function(val) {
135
+          if (val.id_card_no == undefined) {
136
+            return false
137
+          }
138
+          var thisLen = val.id_card_no.length
139
+          var birth = ''
140
+          if (thisLen == 15) {
141
+            birth = '19' + val.id_card_no.substr(6, 6)
142
+          } else {
143
+            birth = val.id_card_no.substr(6, 8)
144
+          }
145
+          var birthtwo =
146
+            birth.substr(0, 4) +
147
+            '-' +
148
+            birth.substr(4, 2) +
149
+            '-' +
150
+            birth.substr(6, 2)
151
+
152
+          var age = jsGetAge(birthtwo, '-')
153
+          return age
154
+        }
155
+    }
102
 }
156
 }
103
 </script>
157
 </script>
104
 <style lang="scss" scoped>
158
 <style lang="scss" scoped>

+ 62 - 62
src/xt_pages/user/components/PatientSidebar.vue 查看文件

203
             },
203
             },
204
           ]
204
           ]
205
         },
205
         },
206
-        {
207
-          name: '5',
208
-          label: '评估工具',
209
-          children: [
210
-            {
211
-              name: '5-1',
212
-              label: '跌倒评估'
213
-            },
214
-            {
215
-              name: '5-2',
216
-              label: '小儿跌倒风险评估'
217
-            },
218
-            {
219
-              name: '5-3',
220
-              label: '压疮风险评估'
221
-            },
222
-            {
223
-              name: '5-4',
224
-              label: 'OH压疮评估'
225
-            },
226
-            {
227
-              name: '5-5',
228
-              label: '日常生活能力评估'
229
-            },
230
-            {
231
-              name: '5-6',
232
-              label: '导管脱落风险评估'
233
-            },
234
-            {
235
-              name: '5-7',
236
-              label: 'RASS及疼痛评估'
237
-            },
238
-            {
239
-              name: '5-8',
240
-              label: '营养状况评估'
241
-            },
242
-            {
243
-              name: '5-9',
244
-              label: '约束告知单'
245
-            },
246
-            {
247
-              name: '5-10',
248
-              label: '心理评估'
249
-            },
250
-            {
251
-              name: '5-11',
252
-              label: '瘙痒评估'
253
-            },
254
-            {
255
-              name: '5-12',
256
-              label: '血液透析患者评估'
257
-            },
258
-            {
259
-              name: '5-13',
260
-              label: 'Glasgow昏迷评分量表'
261
-            },
262
-            {
263
-              name: '5-14',
264
-              label: '肌力评估表'
265
-            },
266
-          ]
267
-        },
206
+        // {
207
+        //   name: '5',
208
+        //   label: '评估工具',
209
+        //   children: [
210
+        //     {
211
+        //       name: '5-1',
212
+        //       label: '跌倒评估'
213
+        //     },
214
+        //     {
215
+        //       name: '5-2',
216
+        //       label: '小儿跌倒风险评估'
217
+        //     },
218
+        //     {
219
+        //       name: '5-3',
220
+        //       label: '压疮风险评估'
221
+        //     },
222
+        //     {
223
+        //       name: '5-4',
224
+        //       label: 'OH压疮评估'
225
+        //     },
226
+        //     {
227
+        //       name: '5-5',
228
+        //       label: '日常生活能力评估'
229
+        //     },
230
+        //     {
231
+        //       name: '5-6',
232
+        //       label: '导管脱落风险评估'
233
+        //     },
234
+        //     {
235
+        //       name: '5-7',
236
+        //       label: 'RASS及疼痛评估'
237
+        //     },
238
+        //     {
239
+        //       name: '5-8',
240
+        //       label: '营养状况评估'
241
+        //     },
242
+        //     {
243
+        //       name: '5-9',
244
+        //       label: '约束告知单'
245
+        //     },
246
+        //     {
247
+        //       name: '5-10',
248
+        //       label: '心理评估'
249
+        //     },
250
+        //     {
251
+        //       name: '5-11',
252
+        //       label: '瘙痒评估'
253
+        //     },
254
+        //     {
255
+        //       name: '5-12',
256
+        //       label: '血液透析患者评估'
257
+        //     },
258
+        //     {
259
+        //       name: '5-13',
260
+        //       label: 'Glasgow昏迷评分量表'
261
+        //     },
262
+        //     {
263
+        //       name: '5-14',
264
+        //       label: '肌力评估表'
265
+        //     },
266
+        //   ]
267
+        // },
268
         {
268
         {
269
           name: '6',
269
           name: '6',
270
           label: '文书管理',
270
           label: '文书管理',