28169 hace 1 año
padre
commit
68a6d971fe

+ 100 - 0
src/api/patient.js Ver fichero

812
     metod:"get",
812
     metod:"get",
813
     params:params,
813
     params:params,
814
   })
814
   })
815
+}
816
+
817
+export function saveFallOutBedPrint(data){
818
+ 
819
+  return request({
820
+    url:"/api/patient/savefalloutbedprint",
821
+    method:"post",
822
+    data:data
823
+  })
824
+}
825
+
826
+export function getFallOutBedPrintList(params){
827
+
828
+  return request({
829
+    url:"/api/patient/getfalloutbedprintlist",
830
+    method:"get",
831
+    params:params
832
+  })
833
+}
834
+
835
+export function saveFilterInformed(data){
836
+ 
837
+  return request({
838
+    url:"/api/patient/savefilterinformed",
839
+    method:"post",
840
+    data:data,
841
+  })
842
+}
843
+
844
+export function getFilterInformed(params){
845
+  
846
+  return request({
847
+    url:"/api/patient/getfilterinformed",
848
+    method:"get",
849
+    params:params
850
+  })
851
+}
852
+
853
+export function saveProfundaInformed(data){
854
+  
855
+  return request({
856
+    url:"/api/patient/saveprofundainformed",
857
+    method:"post",
858
+    data:data
859
+  })
860
+}
861
+
862
+export function getProfundaInformed(params){
863
+  
864
+  return request({
865
+    url:"/api/patient/getprofundainformed",
866
+    method:"get",
867
+    params:params
868
+  })
869
+}
870
+
871
+export function saveArterOvenous(data){
872
+  
873
+  return request({
874
+    url:"/api/patient/arterovenous",
875
+    method:"post",
876
+    data:data,
877
+  })
878
+}
879
+
880
+export function getArterOvernous(params){
881
+
882
+  return request({
883
+    url:"/api/patient/getarterovernous",
884
+    method:"get",
885
+    params:params
886
+  })
887
+}
888
+
889
+
890
+export function saveHighriskInformed(data){
891
+  
892
+  return request({
893
+    url:"/api/patient/savehighrikinformed",
894
+    method:"post",
895
+    data:data,
896
+  })
897
+}
898
+
899
+export function getHighRiskInformed(params){
900
+  
901
+  return request({
902
+    url:"/api/patient/gethighriskinformed",
903
+    method:"get",
904
+    params:params
905
+  })
906
+}
907
+
908
+export function saveAnticoagulation(data){
909
+  
910
+  return request({
911
+    url:"/api/patient/saveanticoagulation",
912
+    method:"Get",
913
+    data:data
914
+  })
815
 }
915
 }

+ 1 - 1
src/xt_pages/dialysis/batch_print/batch_print_order_six.vue Ver fichero

1972
                   </td>
1972
                   </td>
1973
                 </tr>
1973
                 </tr>
1974
 
1974
 
1975
-                 <tr v-if="org_id == 10402 || org_id == 10206">
1975
+                 <tr v-if="org_id == 10402">
1976
                   <td style="padding: 0; position: relative" colspan="2">
1976
                   <td style="padding: 0; position: relative" colspan="2">
1977
                     <table class="inside_table">
1977
                     <table class="inside_table">
1978
                       <tbody>
1978
                       <tbody>

+ 65 - 7
src/xt_pages/user/Informed/Informedconsent.vue Ver fichero

14
                     prefix-icon="el-icon-search"
14
                     prefix-icon="el-icon-search"
15
                     v-model="input2" style="width: 200px;">
15
                     v-model="input2" style="width: 200px;">
16
                   </el-input>
16
                   </el-input>
17
-                  <!-- <el-button type="primary">查看图片</el-button> -->
17
+                  <el-button type="primary">查看图片</el-button>
18
                 </div>
18
                 </div>
19
                 <div>
19
                 <div>
20
                   <el-table
20
                   <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 :patient_id ="this.patientID"></Falloutbedprint>
87
+                  <Falloutbedprint :patient_id ="this.patientID" :listPrint="listPrint"></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 :patient_id ="this.patientID"></Filter_informed>
91
+                  <Filter_informed :patient_id ="this.patientID" :filterList="filterList" ></Filter_informed>
92
                 </div>
92
                 </div>
93
                 <div v-if="profunda_show">
93
                 <div v-if="profunda_show">
94
-                  <profunda_informed :patient_id ="this.patientID"></profunda_informed>
94
+                  <profunda_informed :patient_id ="this.patientID" :profundaPrint="profundaPrint"></profunda_informed>
95
                 </div>
95
                 </div>
96
                 <div v-if="arteriovenous_show">
96
                 <div v-if="arteriovenous_show">
97
-                  <arteriovenous_informed :patient_id ="this.patientID"></arteriovenous_informed>
97
+                  <arteriovenous_informed :patient_id ="this.patientID" :arterOvenousPrint="arterOvenousPrint"></arteriovenous_informed>
98
                 </div>
98
                 </div>
99
                 <div v-if="Highrisk_show" >
99
                 <div v-if="Highrisk_show" >
100
-                  <Highrisk_informed :patient_id ="this.patientID"></Highrisk_informed>
100
+                  <Highrisk_informed :patient_id ="this.patientID" :highRiskPrint="highRiskPrint"></Highrisk_informed>
101
                 </div>
101
                 </div>
102
                 <div v-if="anticoagulation_show">
102
                 <div v-if="anticoagulation_show">
103
                   <anticoagulation_informed :patient_id ="this.patientID"></anticoagulation_informed>
103
                   <anticoagulation_informed :patient_id ="this.patientID"></anticoagulation_informed>
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
+import { getPatientDetailInformedconsent,getFallOutBedPrintList,getFilterInformed,getProfundaInformed,getArterOvernous,getHighRiskInformed  } from '@/api/patient'
149
 export default {
149
 export default {
150
   
150
   
151
   components: {
151
   components: {
188
       patient:{},
188
       patient:{},
189
       tableData:[],
189
       tableData:[],
190
       input2:'',
190
       input2:'',
191
+      listPrint:{},
192
+      filterList:{},
193
+      profundaPrint:{},
194
+      arterOvenousPrint:{},
195
+      highRiskPrint:{}
191
     }
196
     }
192
 
197
 
193
   },
198
   },
226
           this.catheterization_show=false,
231
           this.catheterization_show=false,
227
           this.dialyzer_show=false,
232
           this.dialyzer_show=false,
228
           this.therapy_show=false
233
           this.therapy_show=false
234
+
235
+        //  this.getFallOutBedPrintList()
229
         }
236
         }
230
         if(row.value==2){
237
         if(row.value==2){
231
           this.filter_show=true
238
           this.filter_show=true
240
           this.catheterization_show=false,
247
           this.catheterization_show=false,
241
           this.dialyzer_show=false,
248
           this.dialyzer_show=false,
242
           this.therapy_show=false
249
           this.therapy_show=false
250
+         // this.getFilterInformed()
243
         }
251
         }
244
         if(row.value==3){
252
         if(row.value==3){
245
           this.face_show=false
253
           this.face_show=false
254
           this.catheterization_show=false,
262
           this.catheterization_show=false,
255
           this.dialyzer_show=false,
263
           this.dialyzer_show=false,
256
           this.therapy_show=false
264
           this.therapy_show=false
265
+          //this.getProfundaInformed()
257
         }
266
         }
258
         if(row.value==4){
267
         if(row.value==4){
259
           this.filter_show=false
268
           this.filter_show=false
268
           this.catheterization_show=false,
277
           this.catheterization_show=false,
269
           this.dialyzer_show=false,
278
           this.dialyzer_show=false,
270
           this.therapy_show=false
279
           this.therapy_show=false
280
+         // this.getArterOvernous()
271
         }
281
         }
272
         if(row.value==5){
282
         if(row.value==5){
273
           this.face_show=false
283
           this.face_show=false
282
           this.catheterization_show=false,
292
           this.catheterization_show=false,
283
           this.dialyzer_show=false,
293
           this.dialyzer_show=false,
284
           this.therapy_show=false
294
           this.therapy_show=false
295
+         // this.getHighRiskInformed()
285
         }
296
         }
286
         if(row.value==6){
297
         if(row.value==6){
287
           this.filter_show=false
298
           this.filter_show=false
296
           this.catheterization_show=false,
307
           this.catheterization_show=false,
297
           this.dialyzer_show=false,
308
           this.dialyzer_show=false,
298
           this.therapy_show=false
309
           this.therapy_show=false
310
+          
299
         }
311
         }
300
         if(row.value==7){
312
         if(row.value==7){
301
           this.face_show=false
313
           this.face_show=false
383
         }
395
         }
384
   
396
   
385
     },
397
     },
398
+    fMethod(){
399
+      console.log("除非富足到佛欧安抚")
400
+      this.getFallOutBedPrintList()
401
+    },
402
+    getFallOutBedPrintList(){
403
+      getFallOutBedPrintList().then(response=>{
404
+          if(response.data.state ==1){
405
+             var list = response.data.data.list
406
+             this.listPrint = list
407
+          }
408
+      })
409
+    },
410
+    getFilterInformed(){
411
+      getFilterInformed().then(response=>{
412
+         if(response.data.state == 1){
413
+          var list = response.data.data.list
414
+          this.filterList = list
415
+         }
416
+      })
417
+    },
418
+
419
+    getProfundaInformed(){
420
+      getProfundaInformed().then(response=>{
421
+         if(response.data.state ==1){
422
+          var list = response.data.data.list
423
+          this.profundaPrint = list
424
+          console.log("hhahhahah",this.profundaPrint)
425
+         }
426
+      })
427
+    },
428
+    getArterOvernous(){
429
+      getArterOvernous().then(response=>{
430
+         if(response.data.state ==1){
431
+           var list = response.data.data.list
432
+           this.arterOvenousPrint = list
433
+         }
434
+      })
435
+    },
436
+    getHighRiskInformed(){
437
+      getHighRiskInformed().then(response=>{
438
+        if(response.data.state ==1){
439
+          var list = response.data.data.list
440
+          this.highRiskPrint = list
441
+        }
442
+      })
443
+    }
386
   }
444
   }
387
 }
445
 }
388
 </script>
446
 </script>

+ 26 - 4
src/xt_pages/user/Informed/components/Falloutbedprint.vue Ver fichero

110
           </div>
110
           </div>
111
           <span slot="footer" class="dialog-footer">
111
           <span slot="footer" class="dialog-footer">
112
             <el-button @click="dialogVisible = false">取 消</el-button>
112
             <el-button @click="dialogVisible = false">取 消</el-button>
113
-            <el-button type="primary" @click="dialogVisible = false">确 定</el-button>
113
+            <el-button type="primary" @click="saveFallOutBedPrint">保 存</el-button>
114
           </span>
114
           </span>
115
         </el-dialog>
115
         </el-dialog>
116
     </div>
116
     </div>
119
 <script>
119
 <script>
120
 import print from "print-js";
120
 import print from "print-js";
121
 import Editor from '@/components/Editor'
121
 import Editor from '@/components/Editor'
122
-import { getPatientDetailInformedconsent  } from '@/api/patient'
122
+import { getPatientDetailInformedconsent,saveFallOutBedPrint  } from '@/api/patient'
123
 import { jsGetAge, uParseTime } from "@/utils/tools";
123
 import { jsGetAge, uParseTime } from "@/utils/tools";
124
 const content=`<p style="font-size: 17px;font-weight: bold;padding-left: 2em;">请您仔细阅读以下内容,并自主决定是否使用人脸识别功能:</p>
124
 const content=`<p style="font-size: 17px;font-weight: bold;padding-left: 2em;">请您仔细阅读以下内容,并自主决定是否使用人脸识别功能:</p>
125
 <p style='position: relative;padding-left: 2em;margin-top: 10px;margin-bottom: 4px '>
125
 <p style='position: relative;padding-left: 2em;margin-top: 10px;margin-bottom: 4px '>
152
   props: {
152
   props: {
153
     patient_id: {
153
     patient_id: {
154
         type: Number,
154
         type: Number,
155
-      }
155
+    },
156
+    listPrint:{
157
+      type:Object,
158
+    }
156
    },
159
    },
157
    components:{
160
    components:{
158
     Editor
161
     Editor
166
    },
169
    },
167
 
170
 
168
    created(){
171
    created(){
172
+     
173
+     if(this.listPrint!=null&& this.listPrint.id >0){
174
+       this.content =""
175
+       this.content = this.listPrint.content
176
+     }
169
      this.getlist()
177
      this.getlist()
170
    },
178
    },
171
     methods:{
179
     methods:{
172
       getlist(){
180
       getlist(){
173
-        console.log("owwwwwwwwwwwwwwwwwww",this.patient_id)
174
         getPatientDetailInformedconsent(this.patient_id).then(response=>{
181
         getPatientDetailInformedconsent(this.patient_id).then(response=>{
175
           if(response.data.state == 1){
182
           if(response.data.state == 1){
176
             var patient =  response.data.data.patients
183
             var patient =  response.data.data.patients
212
       },
219
       },
213
       bianji(){
220
       bianji(){
214
         this.dialogVisible =true
221
         this.dialogVisible =true
222
+      },
223
+      saveFallOutBedPrint(){
224
+          var params = {
225
+            patient_id:this.patient_id,
226
+            content:this.$refs.editor.content,
227
+          }
228
+        console.log("paramswoowow",params)
229
+        saveFallOutBedPrint(params).then(response=>{
230
+           if(response.data.state ==1){
231
+              var list = response.data.data.list
232
+              this.$message.success("保存成功!")
233
+              this.$emit('fMethod',list);
234
+              this.dialogVisible = false
235
+           }
236
+        })
215
       }
237
       }
216
     }
238
     }
217
 }
239
 }

+ 26 - 4
src/xt_pages/user/Informed/components/Filter_informed.vue Ver fichero

80
         </div>
80
         </div>
81
         <span slot="footer" class="dialog-footer">
81
         <span slot="footer" class="dialog-footer">
82
           <el-button @click="dialogVisible = false">取 消</el-button>
82
           <el-button @click="dialogVisible = false">取 消</el-button>
83
-          <el-button type="primary" @click="dialogVisible = false">确 定</el-button>
83
+          <el-button type="primary" @click="saveFilterInformed">保 存</el-button>
84
         </span>
84
         </span>
85
       </el-dialog>
85
       </el-dialog>
86
 
86
 
90
 <script>
90
 <script>
91
 import print from "print-js";
91
 import print from "print-js";
92
 import Editor from '@/components/Editor'
92
 import Editor from '@/components/Editor'
93
-import { getPatientDetailInformedconsent  } from '@/api/patient'
93
+import { getPatientDetailInformedconsent,saveFilterInformed  } from '@/api/patient'
94
 import { jsGetAge, uParseTime } from "@/utils/tools";
94
 import { jsGetAge, uParseTime } from "@/utils/tools";
95
 const content=`<p style='position: relative;padding-left: 2em;margin-top: 10px;margin-bottom: 4px '>
95
 const content=`<p style='position: relative;padding-left: 2em;margin-top: 10px;margin-bottom: 4px '>
96
   <span style='position: absolute;top: 0;left: 0;'>一、</span>血液透析是急性肾损伤和慢性肾功能衰竭的一种替代治疗方法:
96
   <span style='position: absolute;top: 0;left: 0;'>一、</span>血液透析是急性肾损伤和慢性肾功能衰竭的一种替代治疗方法:
208
   props: {
208
   props: {
209
     patient_id: {
209
     patient_id: {
210
         type: Number,
210
         type: Number,
211
-      }
211
+      },
212
+    filterList:{
213
+       type:Object,
214
+    }
212
    },
215
    },
213
    components:{
216
    components:{
214
     Editor
217
     Editor
222
    },
225
    },
223
 
226
 
224
    created(){
227
    created(){
228
+    if(this.filterList!=null && this.filterList.id >0){
229
+      
230
+       this.content = ""
231
+       this.content = this.filterList.content
232
+     }
225
      this.getlist()
233
      this.getlist()
234
+     
226
    },
235
    },
227
     methods:{
236
     methods:{
228
       getlist(){
237
       getlist(){
229
-        console.log("owwwwwwwwwwwwwwwwwww",this.patient_id)
238
+     
230
         getPatientDetailInformedconsent(this.patient_id).then(response=>{
239
         getPatientDetailInformedconsent(this.patient_id).then(response=>{
231
           if(response.data.state == 1){
240
           if(response.data.state == 1){
232
             var patient =  response.data.data.patients
241
             var patient =  response.data.data.patients
268
       },
277
       },
269
       bianji(){
278
       bianji(){
270
         this.dialogVisible=true
279
         this.dialogVisible=true
280
+      },
281
+      saveFilterInformed(){
282
+         var params = {
283
+          content:this.$refs.editor.content,
284
+         }
285
+         console.log("PARAMSWWPOWPW",params)
286
+        saveFilterInformed(params).then(response=>{
287
+          if(response.data.state ==1){
288
+            var informed = response.data.data.informed
289
+            this.$emit('fMethod',informed);
290
+            this.dialogVisible = false
291
+          }
292
+        })
271
       }
293
       }
272
     }
294
     }
273
 }
295
 }

+ 24 - 3
src/xt_pages/user/Informed/components/Highrisk_informed.vue Ver fichero

83
           </div>
83
           </div>
84
           <span slot="footer" class="dialog-footer">
84
           <span slot="footer" class="dialog-footer">
85
             <el-button @click="dialogVisible = false">取 消</el-button>
85
             <el-button @click="dialogVisible = false">取 消</el-button>
86
-            <el-button type="primary" @click="dialogVisible = false">确 定</el-button>
86
+            <el-button type="primary" @click="saveHighriskInformed">确 定</el-button>
87
           </span>
87
           </span>
88
         </el-dialog>
88
         </el-dialog>
89
     </div>
89
     </div>
92
 <script>
92
 <script>
93
 import print from "print-js";
93
 import print from "print-js";
94
 import Editor from '@/components/Editor'
94
 import Editor from '@/components/Editor'
95
-import { getPatientDetailInformedconsent  } from '@/api/patient'
95
+import { getPatientDetailInformedconsent,saveHighriskInformed  } from '@/api/patient'
96
 import { jsGetAge, uParseTime } from "@/utils/tools";
96
 import { jsGetAge, uParseTime } from "@/utils/tools";
97
 const content=`<p style='position: relative;padding-left: 2em;margin-top: 10px;margin-bottom: 4px '>
97
 const content=`<p style='position: relative;padding-left: 2em;margin-top: 10px;margin-bottom: 4px '>
98
   <span style='position: absolute;top: 0px;left: 0;'>一、</span>该知情同意书将向您介绍危重患者接受血液净化治疗选择相关事宜,你有权知道危重患者接受血液净化治疗存在的风险、预期效果及对人体等影响,请您仔细阅读,提出与治疗有关的任何疑问。决定是否同意对患者实施血液净化治疗。
98
   <span style='position: absolute;top: 0px;left: 0;'>一、</span>该知情同意书将向您介绍危重患者接受血液净化治疗选择相关事宜,你有权知道危重患者接受血液净化治疗存在的风险、预期效果及对人体等影响,请您仔细阅读,提出与治疗有关的任何疑问。决定是否同意对患者实施血液净化治疗。
150
   props: {
150
   props: {
151
     patient_id: {
151
     patient_id: {
152
         type: Number,
152
         type: Number,
153
-      }
153
+    },
154
+    highRiskPrint:{
155
+      type:Object,
156
+    }
154
    },
157
    },
155
    components:{
158
    components:{
156
     Editor
159
     Editor
206
       },
209
       },
207
       bianji(){
210
       bianji(){
208
         this.dialogVisible=true
211
         this.dialogVisible=true
212
+      },
213
+      saveHighriskInformed(){
214
+          var params = {
215
+            content:this.$refs.editor.content
216
+          }
217
+        saveHighriskInformed(params).then(response=>{
218
+           if(response.data.state ==1){
219
+             var list = response.data.data.list
220
+             this.dialogVisible = false 
221
+             this.$message.success("保存成功!")
222
+           }
223
+           
224
+        })
209
       }
225
       }
210
     },
226
     },
211
     created(){
227
     created(){
228
+      console.log("highRiskPrint",this.highRiskPrint)
229
+      if(this.highRiskPrint!=null && this.highRiskPrint.id >0){
230
+        this.content = ""
231
+        this.content = this.highRiskPrint.content
232
+      }
212
       this.getlist()
233
       this.getlist()
213
     }
234
     }
214
 }
235
 }

+ 14 - 2
src/xt_pages/user/Informed/components/anticoagulation_informed.vue Ver fichero

156
         </div>
156
         </div>
157
         <span slot="footer" class="dialog-footer">
157
         <span slot="footer" class="dialog-footer">
158
           <el-button @click="dialogVisible = false">取 消</el-button>
158
           <el-button @click="dialogVisible = false">取 消</el-button>
159
-          <el-button type="primary" @click="dialogVisible = false">确 定</el-button>
159
+          <el-button type="primary" @click="saveAnticoagulation">确 定</el-button>
160
         </span>
160
         </span>
161
       </el-dialog>
161
       </el-dialog>
162
   </div>
162
   </div>
165
 <script>
165
 <script>
166
 import print from "print-js";
166
 import print from "print-js";
167
 import Editor from '@/components/Editor'
167
 import Editor from '@/components/Editor'
168
-import { getPatientDetailInformedconsent  } from '@/api/patient'
168
+import { getPatientDetailInformedconsent,saveAnticoagulation  } from '@/api/patient'
169
 import { jsGetAge, uParseTime } from "@/utils/tools";
169
 import { jsGetAge, uParseTime } from "@/utils/tools";
170
 const content=`<p style='position: relative;padding-left: 2em;margin-top: 10px;margin-bottom: 4px '>
170
 const content=`<p style='position: relative;padding-left: 2em;margin-top: 10px;margin-bottom: 4px '>
171
   <span style='position: absolute;top: 0px;left: 0;'>一、</span>该知情同意书将向您介绍抗凝溶栓治疗的相关事宜,您有权知道抗凝溶栓治疗的方法、目的、存在的风险、预期效果及对人体的影响。请您仔细阅读,提出与抗凝溶栓有关的任何疑问,决定是否同意对患者实施抗凝溶栓治疗。
171
   <span style='position: absolute;top: 0px;left: 0;'>一、</span>该知情同意书将向您介绍抗凝溶栓治疗的相关事宜,您有权知道抗凝溶栓治疗的方法、目的、存在的风险、预期效果及对人体的影响。请您仔细阅读,提出与抗凝溶栓有关的任何疑问,决定是否同意对患者实施抗凝溶栓治疗。
294
       },
294
       },
295
       bianji(){
295
       bianji(){
296
         this.dialogVisible=true
296
         this.dialogVisible=true
297
+      },
298
+      saveAnticoagulation(){
299
+          var params = {
300
+            content:this.$refs.editor.content
301
+          }
302
+        saveAnticoagulation(params).then(response=>{
303
+            if(response.data.state ==1){
304
+              var list = response.data.data.list
305
+              this.$message.success("保存成功")
306
+              this.dialogVisible = false
307
+            }
308
+        })
297
       }
309
       }
298
   },
310
   },
299
   created(){
311
   created(){

+ 24 - 3
src/xt_pages/user/Informed/components/arteriovenous_informed.vue Ver fichero

119
         </div>
119
         </div>
120
         <span slot="footer" class="dialog-footer">
120
         <span slot="footer" class="dialog-footer">
121
           <el-button @click="dialogVisible = false">取 消</el-button>
121
           <el-button @click="dialogVisible = false">取 消</el-button>
122
-          <el-button type="primary" @click="dialogVisible = false">确 定</el-button>
122
+          <el-button type="primary" @click="saveArterOvenous">保 存</el-button>
123
         </span>
123
         </span>
124
       </el-dialog>
124
       </el-dialog>
125
   </div>
125
   </div>
128
 <script>
128
 <script>
129
 import print from "print-js";
129
 import print from "print-js";
130
 import Editor from '@/components/Editor'
130
 import Editor from '@/components/Editor'
131
-import { getPatientDetailInformedconsent  } from '@/api/patient'
131
+import { getPatientDetailInformedconsent,saveArterOvenous  } from '@/api/patient'
132
 import { jsGetAge, uParseTime } from "@/utils/tools";
132
 import { jsGetAge, uParseTime } from "@/utils/tools";
133
 const content=`<p style='position: relative;padding-left: 2em;margin-top: 10px;margin-bottom: 4px '>
133
 const content=`<p style='position: relative;padding-left: 2em;margin-top: 10px;margin-bottom: 4px '>
134
   <span style='position: absolute;top: 0px;left: 0;'>一、</span>经医生告知,本人因病情需要,须接受血液透析(滤过)治疗。需选择动静脉内瘘穿刺进行透析治疗。但由于该操作具有创伤性和风险性,因个体差异及某些不可预料的因素,穿刺及使用过程中可能会发生意外和并发症,现告知如下:
134
   <span style='position: absolute;top: 0px;left: 0;'>一、</span>经医生告知,本人因病情需要,须接受血液透析(滤过)治疗。需选择动静脉内瘘穿刺进行透析治疗。但由于该操作具有创伤性和风险性,因个体差异及某些不可预料的因素,穿刺及使用过程中可能会发生意外和并发症,现告知如下:
169
   props: {
169
   props: {
170
     patient_id: {
170
     patient_id: {
171
         type: Number,
171
         type: Number,
172
-      }
172
+      },
173
+    arterOvenousPrint:{
174
+      type:Object,
175
+    }
173
    },
176
    },
174
    components:{
177
    components:{
175
     Editor
178
     Editor
182
     }
185
     }
183
    },
186
    },
184
   created(){
187
   created(){
188
+    if(this.arterOvenousPrint!=null && this.arterOvenousPrint.id > 0){
189
+        
190
+      this.content = ""
191
+      this.content = this.arterOvenousPrint.content
192
+    }
193
+    
185
     this.getlist()
194
     this.getlist()
186
   },
195
   },
187
   methods:{
196
   methods:{
227
     },
236
     },
228
     bianji(){
237
     bianji(){
229
       this.dialogVisible=true
238
       this.dialogVisible=true
239
+    },
240
+    saveArterOvenous(){
241
+       var params = {
242
+        content:this.$refs.editor.content
243
+       }
244
+      saveArterOvenous(params).then(response=>{
245
+         if(response.data.state == 1){
246
+            var list = response.data.data.list
247
+            this.$message.success("保存成功")
248
+            this.dialogVisible = false
249
+         }
250
+      })
230
     }
251
     }
231
   }
252
   }
232
 }
253
 }

+ 27 - 5
src/xt_pages/user/Informed/components/profunda_informed.vue Ver fichero

78
         </div>
78
         </div>
79
         <span slot="footer" class="dialog-footer">
79
         <span slot="footer" class="dialog-footer">
80
           <el-button @click="dialogVisible = false">取 消</el-button>
80
           <el-button @click="dialogVisible = false">取 消</el-button>
81
-          <el-button type="primary" @click="dialogVisible = false">确 定</el-button>
81
+          <el-button type="primary" @click="saveProfundaInformed">保 存</el-button>
82
         </span>
82
         </span>
83
       </el-dialog>
83
       </el-dialog>
84
   </div>
84
   </div>
87
 <script>
87
 <script>
88
 import print from "print-js";
88
 import print from "print-js";
89
 import Editor from '@/components/Editor'
89
 import Editor from '@/components/Editor'
90
-import { getPatientDetailInformedconsent  } from '@/api/patient'
90
+import { getPatientDetailInformedconsent,saveProfundaInformed  } from '@/api/patient'
91
 import { jsGetAge, uParseTime } from "@/utils/tools";
91
 import { jsGetAge, uParseTime } from "@/utils/tools";
92
 const content=`<p style="margin-top: 10px;margin-bottom: 4px;text-align: justify;">拟进行治疗:深静脉透析导管拔管术</p>
92
 const content=`<p style="margin-top: 10px;margin-bottom: 4px;text-align: justify;">拟进行治疗:深静脉透析导管拔管术</p>
93
 <p style='position: relative;padding-left: 2em;margin-top: 10px;margin-bottom: 4px '>
93
 <p style='position: relative;padding-left: 2em;margin-top: 10px;margin-bottom: 4px '>
143
   props: {
143
   props: {
144
     patient_id: {
144
     patient_id: {
145
         type: Number,
145
         type: Number,
146
-      }
146
+      },
147
+      profundaPrint:{
148
+       type:Object,
149
+    }
147
    },
150
    },
148
    components:{
151
    components:{
149
     Editor
152
     Editor
152
     return{
155
     return{
153
       patient:{},
156
       patient:{},
154
       dialogVisible:false,
157
       dialogVisible:false,
155
-      content:content
158
+      content:content,
159
+     
156
     }
160
     }
157
    },
161
    },
158
 
162
 
159
    created(){
163
    created(){
164
+    console.log("HSHHSHSHHSH",this.profundaPrint)
165
+     if(this.profundaPrint!=null&&this.profundaPrint.id >0){
166
+        console.log("HSHHSHSHHSH")
167
+        this.content = ""
168
+        this.content = this.profundaPrint.content
169
+     }
160
      this.getlist()
170
      this.getlist()
161
    },
171
    },
162
     methods:{
172
     methods:{
163
       getlist(){
173
       getlist(){
164
-        console.log("owwwwwwwwwwwwwwwwwww",this.patient_id)
174
+       
165
         getPatientDetailInformedconsent(this.patient_id).then(response=>{
175
         getPatientDetailInformedconsent(this.patient_id).then(response=>{
166
           if(response.data.state == 1){
176
           if(response.data.state == 1){
167
             var patient =  response.data.data.patients
177
             var patient =  response.data.data.patients
203
       },
213
       },
204
       bianji(){
214
       bianji(){
205
         this.dialogVisible=true
215
         this.dialogVisible=true
216
+      },
217
+      saveProfundaInformed(){
218
+         var params = {
219
+          content:this.$refs.editor.content,
220
+         }
221
+        saveProfundaInformed(params).then(response=>{
222
+            if(response.data.state ==1){
223
+              var list = response.data.data.list
224
+              this.$message.success("保存成功")
225
+              this.dialogVisible = false
226
+            }
227
+        })
206
       }
228
       }
207
     }
229
     }
208
 }
230
 }