Browse Source

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

yq1 11 months ago
parent
commit
9d1b39dc64

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

1066
     method:"post",
1066
     method:"post",
1067
     data:data,
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 View File

127
                   <heal_informed :patient_id ="this.patientID" ></heal_informed>
127
                   <heal_informed :patient_id ="this.patientID" ></heal_informed>
128
                 </div>
128
                 </div>
129
                 <div v-if="show15">
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
                 </div>
131
                 </div>
132
                 <div v-if="show16">
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
                 </div>
134
                 </div>
135
               </div>
135
               </div>
136
             </div>
136
             </div>
160
 import heal_informed from './components/heal_informed'
160
 import heal_informed from './components/heal_informed'
161
 import criticalpatient_informed from './components/criticalpatient_informed'
161
 import criticalpatient_informed from './components/criticalpatient_informed'
162
 import criticalpatient_informed2 from './components/criticalpatient_informed2'
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
 export default {
164
 export default {
165
 
165
 
166
   components: {
166
   components: {
224
       informedConsentPrint:{},
224
       informedConsentPrint:{},
225
       cathetherizationPrint:{},
225
       cathetherizationPrint:{},
226
       dialyzerInformedPrint:{},
226
       dialyzerInformedPrint:{},
227
-      therapyinformePrint:{}
227
+      therapyinformePrint:{},
228
+      patientCritaicalInformedPrint:{},
229
+      patientCritaicalInformedOnePrint:{}
228
     }
230
     }
229
 
231
 
230
   },
232
   },
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
     rowClick(row, column, event){
394
     rowClick(row, column, event){
374
      console.log('1111',row);
395
      console.log('1111',row);
641
           this.show16=false
662
           this.show16=false
642
         }
663
         }
643
         if(row.value==15){
664
         if(row.value==15){
665
+     
644
           this.filter_show=false
666
           this.filter_show=false
645
           this.face_show=false
667
           this.face_show=false
646
           this.profunda_show=false,
668
           this.profunda_show=false,
657
           this.show14=false,
679
           this.show14=false,
658
           this.show15=true,
680
           this.show15=true,
659
           this.show16=false
681
           this.show16=false
682
+          this.getPatientCriticalList()
660
         }
683
         }
661
         if(row.value==16){
684
         if(row.value==16){
662
           this.filter_show=false
685
           this.filter_show=false
675
           this.show14=false,
698
           this.show14=false,
676
           this.show15=false,
699
           this.show15=false,
677
           this.show16=true
700
           this.show16=true
701
+          this.getPatientCriticalOneList()
678
         }
702
         }
679
     },
703
     },
680
    
704
    

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

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

+ 32 - 3
src/xt_pages/user/Informed/components/criticalpatient_informed2.vue View File

81
         </div>
81
         </div>
82
         <span slot="footer" class="dialog-footer">
82
         <span slot="footer" class="dialog-footer">
83
           <el-button @click="dialogVisible = false">取 消</el-button>
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
         </span>
85
         </span>
86
       </el-dialog>
86
       </el-dialog>
87
 
87
 
91
 <script>
91
 <script>
92
 import print from "print-js";
92
 import print from "print-js";
93
 import Editor from '@/components/Editor'
93
 import Editor from '@/components/Editor'
94
-import { getPatientDetailInformedconsent  } from '@/api/patient'
94
+import { getPatientDetailInformedconsent,savePatientCritaicalInformedOne  } from '@/api/patient'
95
 import { jsGetAge, uParseTime } from "@/utils/tools";
95
 import { jsGetAge, uParseTime } from "@/utils/tools";
96
 const content=`<p style='position: relative;padding-left: 2em;margin-top: 10px;margin-bottom: 4px '>
96
 const content=`<p style='position: relative;padding-left: 2em;margin-top: 10px;margin-bottom: 4px '>
97
   <span style='position: absolute;top: 0px;left: 0;'>一、</span>该知情同意书将向您介绍危重患者接受血液净化治疗选择相关事宜,你有权知道危重患者接受血液净化治疗存在的风险、预期效果及对人体等影响,请您仔细阅读,提出与治疗有关的任何疑问。决定是否同意对患者实施血液净化治疗。
97
   <span style='position: absolute;top: 0px;left: 0;'>一、</span>该知情同意书将向您介绍危重患者接受血液净化治疗选择相关事宜,你有权知道危重患者接受血液净化治疗存在的风险、预期效果及对人体等影响,请您仔细阅读,提出与治疗有关的任何疑问。决定是否同意对患者实施血液净化治疗。
121
   props: {
121
   props: {
122
     patient_id: {
122
     patient_id: {
123
         type: Number,
123
         type: Number,
124
-      }
124
+      },
125
+    patientCritaicalInformedOnePrint:{
126
+      type:Object,
127
+    }
125
   },
128
   },
126
   components:{
129
   components:{
127
     Editor
130
     Editor
176
           var age = jsGetAge(birthtwo, '-')
179
           var age = jsGetAge(birthtwo, '-')
177
           return age
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
       bianji(){
191
       bianji(){
180
         this.dialogVisible=true
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
   created(){
208
   created(){
209
+    if(this.patientCritaicalInformedOnePrint!=null && this.patientCritaicalInformedOnePrint.id >0){
210
+       this.content = ""
211
+       this.content = this.patientCritaicalInformedOnePrint.content
212
+    }
184
     this.getlist()
213
     this.getlist()
185
   }
214
   }
186
 }
215
 }