소스 검색

新分支

28169 1 개월 전
부모
커밋
5f29023b7f

+ 27 - 0
src/api/patient.js 파일 보기

@@ -1066,4 +1066,31 @@ export function savePatientCritaicalInformed(data){
1066 1066
     method:"post",
1067 1067
     data:data,
1068 1068
   })
1069
+}
1070
+
1071
+export function getPatientCriticalList(params){
1072
+  
1073
+  return request({
1074
+    url:"/api/patient/getPatientCriticalList",
1075
+    method:"get",
1076
+    params:params
1077
+  })
1078
+}
1079
+
1080
+export function savePatientCritaicalInformedOne(data){
1081
+ 
1082
+  return request({
1083
+    url:"/api/patient/savepatientcriticalcalinformedone",
1084
+    method:"post",
1085
+    data:data,
1086
+  })
1087
+}
1088
+
1089
+export function getPatientCriticalOneList(params){
1090
+  
1091
+  return request({
1092
+    url:"/api/patient/getpatientcriticalonelist",
1093
+    method:"get",
1094
+    params:params,
1095
+  })
1069 1096
 }

+ 28 - 4
src/xt_pages/user/Informed/Informedconsent.vue 파일 보기

@@ -127,10 +127,10 @@
127 127
                   <heal_informed :patient_id ="this.patientID" ></heal_informed>
128 128
                 </div>
129 129
                 <div v-if="show15">
130
-                  <criticalpatient_informed :patient_id ="this.patientID"></criticalpatient_informed>
130
+                  <criticalpatient_informed :patient_id ="this.patientID" ref="childFivety" :patientCritaicalInformedPrint="patientCritaicalInformedPrint" @getPatientCriticalList="getPatientCriticalList"></criticalpatient_informed>
131 131
                 </div>
132 132
                 <div v-if="show16">
133
-                  <criticalpatient_informed2 :patient_id ="this.patientID"></criticalpatient_informed2>
133
+                  <criticalpatient_informed2 :patient_id ="this.patientID" ref="childSixty" :patientCritaicalInformedOnePrint="patientCritaicalInformedOnePrint" @getPatientCriticalOneList="getPatientCriticalOneList"></criticalpatient_informed2>
134 134
                 </div>
135 135
               </div>
136 136
             </div>
@@ -160,7 +160,7 @@ import Medicalhistory from './components/Medicalhistory'
160 160
 import heal_informed from './components/heal_informed'
161 161
 import criticalpatient_informed from './components/criticalpatient_informed'
162 162
 import criticalpatient_informed2 from './components/criticalpatient_informed2'
163
-import { getPatientDetailInformedconsent,getFallOutBedPrintList,getFilterInformed,getProfundaInformed,getArterOvernous,getHighRiskInformed,getPatientMeDicalList,getAnticoagulationInformed,getCriticalInformed,getHemoperfusionInformed,getInformedConsent,getCatheterization,getDialyzerInformed, getTherapyInformed } from '@/api/patient'
163
+import { getPatientDetailInformedconsent,getFallOutBedPrintList,getFilterInformed,getProfundaInformed,getArterOvernous,getHighRiskInformed,getPatientMeDicalList,getAnticoagulationInformed,getCriticalInformed,getHemoperfusionInformed,getInformedConsent,getCatheterization,getDialyzerInformed, getTherapyInformed,getPatientCriticalList,getPatientCriticalOneList } from '@/api/patient'
164 164
 export default {
165 165
 
166 166
   components: {
@@ -224,7 +224,9 @@ export default {
224 224
       informedConsentPrint:{},
225 225
       cathetherizationPrint:{},
226 226
       dialyzerInformedPrint:{},
227
-      therapyinformePrint:{}
227
+      therapyinformePrint:{},
228
+      patientCritaicalInformedPrint:{},
229
+      patientCritaicalInformedOnePrint:{}
228 230
     }
229 231
 
230 232
   },
@@ -369,6 +371,25 @@ export default {
369 371
         }
370 372
       })
371 373
     },
374
+    getPatientCriticalList(){
375
+      getPatientCriticalList().then(response=>{
376
+        if(response.data.state==1){
377
+          console.log("出啊杜甫阿杜父u啊速度发")
378
+          var patientCritaicalInformed = response.data.data.patientCritaicalInformed
379
+          this.patientCritaicalInformedPrint = patientCritaicalInformed
380
+          this.$refs.childFivety.show(patientCritaicalInformed)
381
+        }
382
+      })
383
+    },
384
+    getPatientCriticalOneList(){
385
+      getPatientCriticalOneList().then(response=>{
386
+        if(response.data.state ==1){
387
+          var list = response.data.data.list
388
+          this.patientCritaicalInformedOnePrint = list
389
+          this.$refs.childSixty.show(list)
390
+        }
391
+      })
392
+    },
372 393
    
373 394
     rowClick(row, column, event){
374 395
      console.log('1111',row);
@@ -641,6 +662,7 @@ export default {
641 662
           this.show16=false
642 663
         }
643 664
         if(row.value==15){
665
+     
644 666
           this.filter_show=false
645 667
           this.face_show=false
646 668
           this.profunda_show=false,
@@ -657,6 +679,7 @@ export default {
657 679
           this.show14=false,
658 680
           this.show15=true,
659 681
           this.show16=false
682
+          this.getPatientCriticalList()
660 683
         }
661 684
         if(row.value==16){
662 685
           this.filter_show=false
@@ -675,6 +698,7 @@ export default {
675 698
           this.show14=false,
676 699
           this.show15=false,
677 700
           this.show16=true
701
+          this.getPatientCriticalOneList()
678 702
         }
679 703
     },
680 704
    

+ 18 - 1
src/xt_pages/user/Informed/components/criticalpatient_informed.vue 파일 보기

@@ -147,7 +147,10 @@ export default{
147 147
   props: {
148 148
     patient_id: {
149 149
         type: Number,
150
-      }
150
+      },
151
+    patientCritaicalInformedPrint:{
152
+      type:Object,
153
+    }
151 154
   },
152 155
   components:{
153 156
     Editor
@@ -202,6 +205,14 @@ export default{
202 205
           var age = jsGetAge(birthtwo, '-')
203 206
           return age
204 207
       },
208
+      show(val){
209
+       if(val!=null){
210
+         if(val.content!=""){
211
+           this.content = ""
212
+           this.content = val.content
213
+         }
214
+       }
215
+      },
205 216
       bianji(){
206 217
         this.dialogVisible=true
207 218
       },
@@ -213,11 +224,17 @@ export default{
213 224
           if(response.data.state ==1){
214 225
             var patientCritical = response.data.data.patientCritical
215 226
             this.$message.success("保存成功!")
227
+            this.dialogVisible = false
228
+            this.$emit("getPatientCriticalList","");
216 229
           }
217 230
        })
218 231
       }
219 232
   },
220 233
   created(){
234
+    if(this.patientCritaicalInformedPrint!=null && this.patientCritaicalInformedPrint.id >0){
235
+       this.content = ""
236
+       this.content = this.patientCritaicalInformedPrint.content
237
+    }
221 238
     this.getlist()
222 239
   }
223 240
 }

+ 32 - 3
src/xt_pages/user/Informed/components/criticalpatient_informed2.vue 파일 보기

@@ -81,7 +81,7 @@
81 81
         </div>
82 82
         <span slot="footer" class="dialog-footer">
83 83
           <el-button @click="dialogVisible = false">取 消</el-button>
84
-          <el-button type="primary" @click="dialogVisible = false">确 定</el-button>
84
+          <el-button type="primary" @click="savePatientCritaicalInformedOne">确 定</el-button>
85 85
         </span>
86 86
       </el-dialog>
87 87
 
@@ -91,7 +91,7 @@
91 91
 <script>
92 92
 import print from "print-js";
93 93
 import Editor from '@/components/Editor'
94
-import { getPatientDetailInformedconsent  } from '@/api/patient'
94
+import { getPatientDetailInformedconsent,savePatientCritaicalInformedOne  } from '@/api/patient'
95 95
 import { jsGetAge, uParseTime } from "@/utils/tools";
96 96
 const content=`<p style='position: relative;padding-left: 2em;margin-top: 10px;margin-bottom: 4px '>
97 97
   <span style='position: absolute;top: 0px;left: 0;'>一、</span>该知情同意书将向您介绍危重患者接受血液净化治疗选择相关事宜,你有权知道危重患者接受血液净化治疗存在的风险、预期效果及对人体等影响,请您仔细阅读,提出与治疗有关的任何疑问。决定是否同意对患者实施血液净化治疗。
@@ -121,7 +121,10 @@ export default{
121 121
   props: {
122 122
     patient_id: {
123 123
         type: Number,
124
-      }
124
+      },
125
+    patientCritaicalInformedOnePrint:{
126
+      type:Object,
127
+    }
125 128
   },
126 129
   components:{
127 130
     Editor
@@ -176,11 +179,37 @@ export default{
176 179
           var age = jsGetAge(birthtwo, '-')
177 180
           return age
178 181
       },
182
+      show(val){
183
+       if(val!=null){
184
+         if(val.content!=""){
185
+           this.content = ""
186
+           this.content = val.content
187
+         }
188
+         
189
+       }
190
+      },
179 191
       bianji(){
180 192
         this.dialogVisible=true
193
+      },
194
+      savePatientCritaicalInformedOne(){
195
+          var params = {
196
+            content:this.$refs.editor.content
197
+          }
198
+        savePatientCritaicalInformedOne(params).then(response=>{
199
+          if(response.data.state ==1){
200
+            var criticalOne = response.data.data.criticalOne
201
+            this.dialogVisible = false
202
+            this.$message.success("保存成功!")
203
+            this.$emit("getPatientCriticalOneList","");
204
+          }
205
+        })
181 206
       }
182 207
   },
183 208
   created(){
209
+    if(this.patientCritaicalInformedOnePrint!=null && this.patientCritaicalInformedOnePrint.id >0){
210
+       this.content = ""
211
+       this.content = this.patientCritaicalInformedOnePrint.content
212
+    }
184 213
     this.getlist()
185 214
   }
186 215
 }