浏览代码

hah阿凡达

28169 5 个月前
父节点
当前提交
253f6770b4

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

1315
   })
1315
   })
1316
 }
1316
 }
1317
 
1317
 
1318
+
1319
+export function savePatientDeathRecord(data){
1320
+   
1321
+  return request({
1322
+    url:"/api/patient/savepatientdeathrecord",
1323
+    method:"post",
1324
+    data:data,
1325
+  })
1326
+}
1327
+
1328
+export function getPatientDeathRecord(params){
1329
+
1330
+  return request({
1331
+    url:"/api/patient/getpatientdeathrecord",
1332
+    method:"Get",
1333
+    params:params
1334
+  })
1335
+}

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

128
                   <Medicalhistory :patient_id ="this.patientID" :medicalList="medicalList" ref="childThrity" @getPatientMeDicalList="getPatientMeDicalList"></Medicalhistory>
128
                   <Medicalhistory :patient_id ="this.patientID" :medicalList="medicalList" ref="childThrity" @getPatientMeDicalList="getPatientMeDicalList"></Medicalhistory>
129
                 </div>
129
                 </div>
130
                 <div v-if="show14">
130
                 <div v-if="show14">
131
-                  <heal_informed :patient_id ="this.patientID" ref="childSeventy" ::patientTreamentPlan="patientTreamentPlan" @getTreamentPlan="getTreamentPlan"></heal_informed>
131
+                  <heal_informed :patient_id ="this.patientID" ref="childSeventy" :patientTreamentPlan="patientTreamentPlan" @getTreamentPlan="getTreamentPlan"></heal_informed>
132
                 </div>
132
                 </div>
133
                 <div v-if="show16">
133
                 <div v-if="show16">
134
                   <criticalpatient_informed2 :patient_id ="this.patientID" ref="childSixty" :patientCritaicalInformedOnePrint="patientCritaicalInformedOnePrint" @getPatientCriticalOneList="getPatientCriticalOneList"></criticalpatient_informed2>
134
                   <criticalpatient_informed2 :patient_id ="this.patientID" ref="childSixty" :patientCritaicalInformedOnePrint="patientCritaicalInformedOnePrint" @getPatientCriticalOneList="getPatientCriticalOneList"></criticalpatient_informed2>
149
                   <hemodialysis :patient_id ="this.patientID" ref="childrtwotyone"></hemodialysis>
149
                   <hemodialysis :patient_id ="this.patientID" ref="childrtwotyone"></hemodialysis>
150
                 </div>
150
                 </div>
151
                 <div v-if="show22">
151
                 <div v-if="show22">
152
-                  <Death_informed :patient_id ="this.patientID" ref="childrtwotytwo"></Death_informed>
152
+                  <Death_informed :patient_id ="this.patientID" ref="childrtwotytwo" :patientDeathPlan="patientDeathPlan" @getPatientDeathRecord="getPatientDeathRecord"></Death_informed>
153
                 </div>
153
                 </div>
154
               </div>
154
               </div>
155
             </div>
155
             </div>
187
 import { getPatientDetailInformedconsent,getFallOutBedPrintList,getFilterInformed,getProfundaInformed,
187
 import { getPatientDetailInformedconsent,getFallOutBedPrintList,getFilterInformed,getProfundaInformed,
188
   getArterOvernous,getHighRiskInformed,getPatientMeDicalList,getAnticoagulationInformed,getCriticalInformed,
188
   getArterOvernous,getHighRiskInformed,getPatientMeDicalList,getAnticoagulationInformed,getCriticalInformed,
189
   getHemoperfusionInformed,getInformedConsent,getCatheterization,getDialyzerInformed, getTherapyInformed,
189
   getHemoperfusionInformed,getInformedConsent,getCatheterization,getDialyzerInformed, getTherapyInformed,
190
-  getPatientCriticalList,getPatientCriticalOneList,getTreamentPlan } from '@/api/patient'
190
+  getPatientCriticalList,getPatientCriticalOneList,getTreamentPlan,getPatientDeathRecord } from '@/api/patient'
191
 export default {
191
 export default {
192
   components: {
192
   components: {
193
     PatientSidebar,
193
     PatientSidebar,
270
       patientCritaicalInformedPrint:{},
270
       patientCritaicalInformedPrint:{},
271
       patientCritaicalInformedOnePrint:{},
271
       patientCritaicalInformedOnePrint:{},
272
       patientTreamentPlan:{},
272
       patientTreamentPlan:{},
273
+      patientDeathPlan:{}
273
     }
274
     }
274
 
275
 
275
   },
276
   },
443
         }
444
         }
444
       })
445
       })
445
     },
446
     },
447
+    getPatientDeathRecord(){
448
+       getPatientDeathRecord().then(response=>{
449
+         if(response.data.state == 1){
450
+            var list = response.data.data.record
451
+          
452
+            this.patientDeathPlan = list
453
+            console.log("list=================",this.patientDeathPlan)
454
+            this.$refs.childrtwotytwo.show(list)
455
+         }
456
+       })
457
+    },
446
 
458
 
447
     rowClick(row, column, event){
459
     rowClick(row, column, event){
448
      console.log('1111',row);
460
      console.log('1111',row);
941
           this.show20 = false,
953
           this.show20 = false,
942
           this.show21 = false,
954
           this.show21 = false,
943
           this.show22 = true
955
           this.show22 = true
956
+          this.getPatientDeathRecord()
944
         }
957
         }
945
     },
958
     },
946
 
959
 

+ 20 - 18
src/xt_pages/user/Informed/components/Death_informed.vue 查看文件

95
 import print from "print-js";
95
 import print from "print-js";
96
 // import Editor from '@/components/Editor'
96
 // import Editor from '@/components/Editor'
97
 import Editor from '@/components/Uedtior'
97
 import Editor from '@/components/Uedtior'
98
-import { getPatientDetailInformedconsent,savePatientCritaicalInformed  } from '@/api/patient'
98
+import { getPatientDetailInformedconsent,savePatientDeathRecord  } from '@/api/patient'
99
 import { jsGetAge, uParseTime } from "@/utils/tools";
99
 import { jsGetAge, uParseTime } from "@/utils/tools";
100
 const content=`<p style="display: flex;margin-bottom: 5px;">
100
 const content=`<p style="display: flex;margin-bottom: 5px;">
101
                   <span style="flex:1">讨论目期:</span>
101
                   <span style="flex:1">讨论目期:</span>
123
   props: {
123
   props: {
124
     patient_id: {
124
     patient_id: {
125
         type: Number,
125
         type: Number,
126
-      },
127
-    patientCritaicalInformedPrint:{
126
+    },
127
+    patientDeathPlan:{
128
       type:Object,
128
       type:Object,
129
     }
129
     }
130
   },
130
   },
138
     dialogVisible:false,
138
     dialogVisible:false,
139
     content:content,
139
     content:content,
140
     orgname:'',
140
     orgname:'',
141
+
141
   }
142
   }
142
   },
143
   },
143
   methods:{
144
   methods:{
183
         return age
184
         return age
184
     },
185
     },
185
     show(val){
186
     show(val){
187
+      console.log("val--------------",val)
186
       if(val!=null){
188
       if(val!=null){
187
         if(val.content!=""){
189
         if(val.content!=""){
188
           this.content = ""
190
           this.content = ""
192
     },
194
     },
193
     bianji(){
195
     bianji(){
194
       this.dialogVisible=true
196
       this.dialogVisible=true
195
-      this.$refs.editor.content = this.content
196
     },
197
     },
197
     savePatientCritaicalInformed(){
198
     savePatientCritaicalInformed(){
198
-      console.log('1111',this.$refs.editor.content);
199
-      // var params = {
200
-      //   content:this.$refs.editor.content
201
-      // }
202
-      // savePatientCritaicalInformed(params).then(response=>{
203
-      //   if(response.data.state ==1){
204
-      //     var patientCritical = response.data.data.patientCritical
205
-      //     this.$message.success("保存成功!")
206
-      //     this.dialogVisible = false
207
-      //     this.$emit("getPatientCriticalList","");
208
-      //   }
209
-      // })
199
+      console.log('1111',this.$refs);
200
+      var params = {
201
+        content:this.$refs.editor.contents,
202
+      }
203
+      savePatientDeathRecord(params).then(response=>{
204
+        if(response.data.state ==1){
205
+          var list = response.data.data.list
206
+          this.$message.success("保存成功!")
207
+          this.dialogVisible = false
208
+          this.$emit("getPatientDeathRecord","");
209
+        }
210
+      })
210
     }
211
     }
211
   },
212
   },
212
   created(){
213
   created(){
213
     this.orgname = this.$store.getters.xt_user.org.org_name;
214
     this.orgname = this.$store.getters.xt_user.org.org_name;
214
-    if(this.patientCritaicalInformedPrint!=null && this.patientCritaicalInformedPrint.id >0){
215
+    console.log("patientDeathPlan-------------",this.patientDeathPlan)
216
+    if(this.patientDeathPlan!=null && this.patientDeathPlan.id >0){
215
        this.content = ""
217
        this.content = ""
216
-       this.content = this.patientCritaicalInformedPrint.content
218
+       this.content = this.patientDeathPlan.content
217
     }
219
     }
218
     this.getlist()
220
     this.getlist()
219
   }
221
   }

+ 13 - 13
src/xt_permission.js 查看文件

12
 
12
 
13
 router.beforeEach((to, from, next) => {
13
 router.beforeEach((to, from, next) => {
14
   // 线上注释
14
   // 线上注释
15
-  // if (!store.getters.configlist || store.getters.configlist === undefined || store.getters.configlist.length <= 0) {
16
-  //   store.dispatch('VerifyConfigList', []).then(() => {
17
-  //     next()
18
-  //   })
19
-  // }
20
-  // if (store.getters.permission_routers === undefined) {
21
-  //   store.dispatch('xt_GenerateRoutes', []).then(() => {
22
-  //     next()
23
-  //   })
24
-  // } else {
25
-  //   next()
26
-  // }
27
-  // return
15
+  if (!store.getters.configlist || store.getters.configlist === undefined || store.getters.configlist.length <= 0) {
16
+    store.dispatch('VerifyConfigList', []).then(() => {
17
+      next()
18
+    })
19
+  }
20
+  if (store.getters.permission_routers === undefined) {
21
+    store.dispatch('xt_GenerateRoutes', []).then(() => {
22
+      next()
23
+    })
24
+  } else {
25
+    next()
26
+  }
27
+  return
28
   // 线上注释
28
   // 线上注释
29
   NProgress.start()
29
   NProgress.start()
30
   // console.log(store.getters.current_role_urls.indexOf(to.path))
30
   // console.log(store.getters.current_role_urls.indexOf(to.path))