Browse Source

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

yq1 3 months ago
parent
commit
148a3dadbe

+ 18 - 0
src/api/patient.js View File

@@ -1315,3 +1315,21 @@ export function deleteNewCouseOfDisease(id,params){
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 View File

@@ -128,7 +128,7 @@
128 128
                   <Medicalhistory :patient_id ="this.patientID" :medicalList="medicalList" ref="childThrity" @getPatientMeDicalList="getPatientMeDicalList"></Medicalhistory>
129 129
                 </div>
130 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 132
                 </div>
133 133
                 <div v-if="show16">
134 134
                   <criticalpatient_informed2 :patient_id ="this.patientID" ref="childSixty" :patientCritaicalInformedOnePrint="patientCritaicalInformedOnePrint" @getPatientCriticalOneList="getPatientCriticalOneList"></criticalpatient_informed2>
@@ -149,7 +149,7 @@
149 149
                   <hemodialysis :patient_id ="this.patientID" ref="childrtwotyone"></hemodialysis>
150 150
                 </div>
151 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 153
                 </div>
154 154
               </div>
155 155
             </div>
@@ -187,7 +187,7 @@ import hemodialysis from './components/hemodialysis'
187 187
 import { getPatientDetailInformedconsent,getFallOutBedPrintList,getFilterInformed,getProfundaInformed,
188 188
   getArterOvernous,getHighRiskInformed,getPatientMeDicalList,getAnticoagulationInformed,getCriticalInformed,
189 189
   getHemoperfusionInformed,getInformedConsent,getCatheterization,getDialyzerInformed, getTherapyInformed,
190
-  getPatientCriticalList,getPatientCriticalOneList,getTreamentPlan } from '@/api/patient'
190
+  getPatientCriticalList,getPatientCriticalOneList,getTreamentPlan,getPatientDeathRecord } from '@/api/patient'
191 191
 export default {
192 192
   components: {
193 193
     PatientSidebar,
@@ -270,6 +270,7 @@ export default {
270 270
       patientCritaicalInformedPrint:{},
271 271
       patientCritaicalInformedOnePrint:{},
272 272
       patientTreamentPlan:{},
273
+      patientDeathPlan:{}
273 274
     }
274 275
 
275 276
   },
@@ -443,6 +444,17 @@ export default {
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 459
     rowClick(row, column, event){
448 460
      console.log('1111',row);
@@ -941,6 +953,7 @@ export default {
941 953
           this.show20 = false,
942 954
           this.show21 = false,
943 955
           this.show22 = true
956
+          this.getPatientDeathRecord()
944 957
         }
945 958
     },
946 959
 

+ 20 - 18
src/xt_pages/user/Informed/components/Death_informed.vue View File

@@ -95,7 +95,7 @@
95 95
 import print from "print-js";
96 96
 // import Editor from '@/components/Editor'
97 97
 import Editor from '@/components/Uedtior'
98
-import { getPatientDetailInformedconsent,savePatientCritaicalInformed  } from '@/api/patient'
98
+import { getPatientDetailInformedconsent,savePatientDeathRecord  } from '@/api/patient'
99 99
 import { jsGetAge, uParseTime } from "@/utils/tools";
100 100
 const content=`<p style="display: flex;margin-bottom: 5px;">
101 101
                   <span style="flex:1">讨论目期:</span>
@@ -123,8 +123,8 @@ export default{
123 123
   props: {
124 124
     patient_id: {
125 125
         type: Number,
126
-      },
127
-    patientCritaicalInformedPrint:{
126
+    },
127
+    patientDeathPlan:{
128 128
       type:Object,
129 129
     }
130 130
   },
@@ -138,6 +138,7 @@ export default{
138 138
     dialogVisible:false,
139 139
     content:content,
140 140
     orgname:'',
141
+
141 142
   }
142 143
   },
143 144
   methods:{
@@ -183,6 +184,7 @@ export default{
183 184
         return age
184 185
     },
185 186
     show(val){
187
+      console.log("val--------------",val)
186 188
       if(val!=null){
187 189
         if(val.content!=""){
188 190
           this.content = ""
@@ -192,28 +194,28 @@ export default{
192 194
     },
193 195
     bianji(){
194 196
       this.dialogVisible=true
195
-      this.$refs.editor.content = this.content
196 197
     },
197 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 213
   created(){
213 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 217
        this.content = ""
216
-       this.content = this.patientCritaicalInformedPrint.content
218
+       this.content = this.patientDeathPlan.content
217 219
     }
218 220
     this.getlist()
219 221
   }

+ 13 - 13
src/xt_permission.js View File

@@ -12,19 +12,19 @@ const permissionWhiteList = loginWhiteList.concat(['/']) // 权限验证白名
12 12
 
13 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 29
   NProgress.start()
30 30
   // console.log(store.getters.current_role_urls.indexOf(to.path))