浏览代码

Merge branch '20230223_pc_vue_new_branch' of http://git.shengws.com/csx/Vue_New into 20230223_pc_vue_new_branch

陈少旭 1年前
父节点
当前提交
8ad87cfeb0

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

@@ -1030,4 +1030,22 @@ export function getTherapyInformed(params){
1030 1030
     method:"get",
1031 1031
     params:params
1032 1032
   })
1033
+}
1034
+
1035
+export function saveMedicalHistory(data){
1036
+  
1037
+  return request({
1038
+    url:"/api/patient/savemedicalhistory",
1039
+    method:"post",
1040
+    data:data
1041
+  })
1042
+}
1043
+
1044
+export function getPatientMeDicalList(params){
1045
+  
1046
+  return request({
1047
+    url:"/api/patient/getpatientmedicallist",
1048
+    method:"get",
1049
+    params:params,
1050
+  })
1033 1051
 }

+ 12 - 0
src/router/modules/dialysis.js 查看文件

@@ -975,6 +975,18 @@ export default {
975 975
         noCache: true
976 976
       }
977 977
     },
978
+    {
979
+      path: '/dialysis/print/batch/seventythree',
980
+      component: () =>
981
+        import('@/xt_pages/dialysis/batch_print/batch_print_order_seventythree'),
982
+      hidden: true,
983
+      is_menu: false,
984
+      name: 'batch_print_order_seventythree',
985
+      meta: {
986
+        title: '批量打印',
987
+        noCache: true
988
+      }
989
+    },
978 990
     {
979 991
       path: '/dialysis/flow',
980 992
       component: () => import('@/xt_pages/dialysis/dialysisFlow'),

+ 12 - 12
src/xt_pages/dialysis/batch_print/batch_print_order_seventyone.vue 查看文件

@@ -8,7 +8,7 @@
8 8
         icon="el-icon-printer"
9 9
         @click="printThisPage"
10 10
         type="primary"
11
-      >打印71
11
+      >打印
12 12
       </el-button>
13 13
     </div>
14 14
     <div class="app-container">
@@ -314,11 +314,11 @@
314 314
                 </div>
315 315
                 <div style="flex: 1;">
316 316
                   医师签名
317
-                  <span class="under-line" style="display: inline-block;width: 50%;" v-if="setAdminUserES(record.prescription,'prescription_doctor') == ''">
318
-                    {{ getAdminUser(record.prescription, 'prescription_doctor')}}
317
+                  <span class="under-line" style="display: inline-block;width: 50%;" v-if="setAdminUserES(record.prescription,'creater') == ''">
318
+                    {{ getAdminUser(record.prescription, 'creater')}}
319 319
                   </span>
320 320
                   <span class="under-line" style="display: inline-block;width: 50%;" v-else>
321
-                    <img style="height:30px;" :src="setAdminUserES(record.prescription,'prescription_doctor')" alt srcset />
321
+                    <img style="height:30px;" :src="setAdminUserES(record.prescription,'creater')" alt srcset />
322 322
                   </span>
323 323
                 </div>
324 324
               </div>
@@ -332,7 +332,7 @@
332 332
                 <div style="flex: 1;">
333 333
                   透 (滤) 器
334 334
                   <span class="under-line" style="display: inline-block;width: 50%;" >
335
-                    
335
+
336 336
                     {{  record.prescription && record.prescription.dialysis_dialyszers
337 337
                         ? record.prescription.dialysis_dialyszers : "/"
338 338
                     }}
@@ -343,8 +343,8 @@
343 343
                 <div style="flex: 1;">
344 344
                   灌流器
345 345
                   <span class="under-line" style="display: inline-block;width: 50%;">
346
-                    {{  record.prescription && record.prescription.dialysis_irrigation 
347
-                      ? record.prescription.dialysis_irrigation : "/" 
346
+                    {{  record.prescription && record.prescription.dialysis_irrigation
347
+                      ? record.prescription.dialysis_irrigation : "/"
348 348
                     }}
349 349
                   </span>
350 350
                 </div>
@@ -388,7 +388,7 @@
388 388
                 <div style="flex: 1;">
389 389
                   穿刺针
390 390
                   <span class="under-line" style="display: inline-block;width: 50%;">
391
-                    {{ record.assessment_before_dislysis && record.assessment_before_dislysis.puncture_needle 
391
+                    {{ record.assessment_before_dislysis && record.assessment_before_dislysis.puncture_needle
392 392
                       ? record.assessment_before_dislysis.puncture_needle : "/" }}
393 393
                   </span>
394 394
                 </div>
@@ -523,7 +523,7 @@
523 523
                       {{ monitor.dialysate_temperature ? monitor.dialysate_temperature : "/" }}
524 524
                     </span>
525 525
                   </td>
526
-        
526
+
527 527
                   <td>
528 528
                     <span v-if="getTime(monitor.operate_time) != ''">
529 529
                       {{ monitor.pulse_frequency ? monitor.pulse_frequency : "/" }}
@@ -540,7 +540,7 @@
540 540
                       {{ monitor.breathing_rate ? monitor.breathing_rate : "/" }}
541 541
                     </span>
542 542
                   </td>
543
-        
543
+
544 544
                   <td>
545 545
                     <span v-if="getTime(monitor.operate_time) != ''">
546 546
                       {{
@@ -718,8 +718,8 @@
718 718
                     <div style="flex:1">
719 719
                       医师签名
720 720
                       <div class="under-line" style="display: inline-block;width: 50%;">
721
-                        <span v-if="setAdminUserES(record.prescription, 'prescription_doctor') == ''">{{getAdminUser(record.prescription, 'prescription_doctor')}}</span>
722
-                        <img class="es-img" :src="setAdminUserES(record.prescription, 'prescription_doctor')" alt="" srcset="" v-else style="height: 30px;">
721
+                        <span v-if="setAdminUserES(record.prescription, 'creater') == ''">{{getAdminUser(record.prescription, 'creater')}}</span>
722
+                        <img class="es-img" :src="setAdminUserES(record.prescription, 'creater')" alt="" srcset="" v-else style="height: 30px;">
723 723
                       </div>
724 724
                     </div>
725 725
                     <div style="flex:1">

文件差异内容过多而无法显示
+ 2577 - 0
src/xt_pages/dialysis/batch_print/batch_print_order_seventythree.vue


+ 12 - 1
src/xt_pages/dialysis/bloodPresssWatch.vue 查看文件

@@ -444,7 +444,7 @@
444 444
           :disabled="selecting_schs.length == 0"
445 445
           @click="batchPrintAction"
446 446
           type="primary"
447
-          >批量打印71</el-button>
447
+          >批量打印</el-button>
448 448
       </template>
449 449
       <template v-if="this.template_id == 72">
450 450
         <el-button
@@ -455,6 +455,15 @@
455 455
           type="primary"
456 456
           >批量打印</el-button>
457 457
       </template>
458
+      <template v-if="this.template_id == 73">
459
+        <el-button
460
+          size="small"
461
+          icon="el-icon-printer"
462
+          :disabled="selecting_schs.length == 0"
463
+          @click="batchPrintAction"
464
+          type="primary"
465
+          >批量打印</el-button>
466
+      </template>
458 467
     </div>
459 468
     <div class="app-container">
460 469
       <!-- <div class="filter-container">
@@ -2218,6 +2227,8 @@ export default {
2218 2227
         this.$router.push({ path: "/dialysis/print/batch/seventyone" });
2219 2228
       }else if (this.template_id == 72) {
2220 2229
         this.$router.push({ path: "/dialysis/print/batch/seventytwo" });
2230
+      }else if (this.template_id == 73) {
2231
+        this.$router.push({ path: "/dialysis/print/batch/seventythree" });
2221 2232
       }
2222 2233
     },
2223 2234
     batchPrintActionOne: function() {

+ 1 - 13
src/xt_pages/dialysis/details/NavIgation.vue 查看文件

@@ -603,18 +603,6 @@ export default {
603 603
         return [item.groupno];
604 604
       });
605 605
 
606
-
607
-      // var strLength = 0
608
-      // var arr = []
609
-      // if(this.his_doctor_advices!=undefined && this.his_doctor_advices.length > 0){
610
-      //   for(let i=0;i<this.his_doctor_advices.length;i++){
611
-      //     if (this.his_doctor_advices[i].execution_state == 2) {
612
-      //      arr.push(this.his_doctor_advices[i]);
613
-      //    }
614
-      //   }
615
-      //   strLength = arr.length
616
-      // }
617
-      // console.log("232332323232323223",arrOne.length + strLength);
618 606
       return sorted.length
619 607
 
620 608
     },
@@ -695,7 +683,7 @@ export default {
695 683
     },
696 684
     showAssessmentBefore: function() {
697 685
      
698
-      console.log("透前评估进入23232323我我哦",this.record_date)
686
+      // console.log("透前评估进入23232323我我哦",this.record_date)
699 687
       this.$refs.assessmentBefore.show(this.predialysis_evaluation,this.last_dryWeight_dislysis,this.last_predialysis_evaluation,this.lastAssessment,this.record_date);
700 688
     },
701 689
     showDoubleCheck: function() {

+ 8 - 2
src/xt_pages/dialysis/details/consumable/dialysisGood.vue 查看文件

@@ -98,8 +98,14 @@
98 98
           :label="item.filed_name_cn"
99 99
         >
100 100
           <template slot-scope="scope">
101
-            <span v-if="scope.row.dialysis_prescription==null"> {{getName(scope.row.rowList[index].filed_name_cn,scope.row.dialysis_solution)}}</span>
102
-            <span v-if="scope.row.dialysis_prescription!=null"> {{getName(scope.row.rowList[index].filed_name_cn,scope.row.dialysis_prescription)}}</span>
101
+            <span v-if="org_id !=10599">
102
+              {{getName(scope.row.rowList[index].filed_name_cn,scope.row.dialysis_solution)}}
103
+            </span>
104
+            <span v-if="org_id==10599">
105
+              <span v-if="scope.row.dialysis_prescription==null"> {{getName(scope.row.rowList[index].filed_name_cn,scope.row.dialysis_solution)}}</span>
106
+              <span v-if="scope.row.dialysis_prescription!=null"> {{getName(scope.row.rowList[index].filed_name_cn,scope.row.dialysis_prescription)}}</span>
107
+            </span>
108
+          
103 109
             <!-- {{getName(scope.row.rowList[index].filed_name_cn,scope.row.dialysis_solution)}} -->
104 110
           </template>
105 111
 

+ 8 - 2
src/xt_pages/dialysis/details/consumable/dialysisGoodPrint.vue 查看文件

@@ -42,8 +42,14 @@
42 42
                 <td>{{item.patient.dialysis_no}}</td>
43 43
                 <td v-for="(it,index) in rowList" :key="index">
44 44
                   <!-- {{getName(item.rowList[index].filed_name_cn,item.dialysis_solution)}} -->
45
-                  <span v-if="item.dialysis_prescription==null"> {{getName(item.rowList[index].filed_name_cn,item.dialysis_solution)}}</span>
46
-                  <span v-if="item.dialysis_prescription!=null"> {{getName(item.rowList[index].filed_name_cn,item.dialysis_prescription)}}</span>
45
+                  <span v-if="org_id !=10599">
46
+                    {{getName(item.rowList[index].filed_name_cn,item.dialysis_solution)}}
47
+                  </span>
48
+                  <span v-if="org_id==10599">
49
+                    <span v-if="item.dialysis_prescription==null"> {{getName(item.rowList[index].filed_name_cn,item.dialysis_solution)}}</span>
50
+                     <span v-if="item.dialysis_prescription!=null"> {{getName(item.rowList[index].filed_name_cn,item.dialysis_prescription)}}</span>
51
+                  </span>
52
+                
47 53
                 </td>
48 54
                </tr>
49 55
               </tbody>

+ 30 - 4
src/xt_pages/dialysis/details/dialog/assessmentBeforeDislysisDialog.vue 查看文件

@@ -1255,6 +1255,29 @@
1255 1255
            }
1256 1256
             this.assessmentBeforeDislysis.blood_access_part_opera_id = blood_id
1257 1257
             this.assessmentBeforeDislysis.blood_access_part_id = this.lastAssessment.blood_access_part_id
1258
+            
1259
+            if(this.$store.getters.xt_user.template_info.org_id == 10375  || this.$store.getters.xt_user.template_info.org_id == 10571  || this.$store.getters.xt_user.template_info.org_id == 0){
1260
+              console.log("尽量",last_predialysis_evaluation)
1261
+              console.log("正常",this.assessmentBeforeDislysis.blood_access_part_opera_id)
1262
+              if(this.assessmentBeforeDislysis.blood_access_part_opera_id == 0 || this.assessmentBeforeDislysis.blood_access_part_opera_id==""){
1263
+
1264
+                // var blood_id = 0
1265
+                // console.log("SHJU232323",this.blood_access_part_opera)
1266
+                // for(let i= 0;i<this.blood_access_part_opera.length;i++){
1267
+                //     if(last_predialysis_evaluation.blood_access_part_opera_id == this.blood_access_part_opera[i].id){
1268
+                //       blood_id = this.blood_access_part_opera[i].name
1269
+                //     }
1270
+                // }
1271
+                // console.log("blood_id-----",blood_id)
1272
+                if(last_predialysis_evaluation.blood_access_part_opera_id >0){
1273
+                  this.assessmentBeforeDislysis.blood_access_part_opera_id = last_predialysis_evaluation.blood_access_part_opera_id
1274
+                }
1275
+              
1276
+                this.assessmentBeforeDislysis.blood_access_part_id = last_predialysis_evaluation.blood_access_part_id
1277
+              }
1278
+             
1279
+            }
1280
+
1258 1281
           } else {
1259 1282
             if (this.lastPredialysisEvaluation != null) {
1260 1283
                var blood_id = 0
@@ -1269,11 +1292,14 @@
1269 1292
           }
1270 1293
 
1271 1294
         console.log("hhahhahahah",lastAssessment)
1272
-        if (lastAssessment !=null) {
1273
-          this.assessmentBeforeDislysis.blood_access_part_opera_id = lastAssessment.blood_access_part_opera_id
1274
-          this.assessmentBeforeDislysis.blood_access_part_id = lastAssessment.blood_access_part_id
1295
+        console.log("旭哥通路---",this.assessmentBeforeDislysis.blood_access_part_opera_id)
1296
+        // if (lastAssessment !=null) {
1297
+        //   this.assessmentBeforeDislysis.blood_access_part_opera_id = lastAssessment.blood_access_part_opera_id
1298
+        //   this.assessmentBeforeDislysis.blood_access_part_id = lastAssessment.blood_access_part_id
1275 1299
            
1276
-        }
1300
+        // }
1301
+
1302
+        
1277 1303
 
1278 1304
         } else {
1279 1305
           console.log("为首务2322323",this.assessmentBeforeDislysis.period)

+ 27 - 0
src/xt_pages/dialysis/dialysisPrintOrder.vue 查看文件

@@ -904,6 +904,18 @@
904 904
         >
905 905
         </div>
906 906
       </template>
907
+      <template v-if="org_template_info.template_id == 73">
908
+        <div>
909
+          <el-button
910
+          :loading="loading"
911
+          size="small"
912
+          icon="el-icon-printer"
913
+          @click="printThisPage"
914
+          type="primary"
915
+          >打印</el-button
916
+        >
917
+        </div>
918
+      </template>
907 919
     </div>
908 920
     <div class="app-container" style="min-height: 0">
909 921
       <!--<div class="order-print-btn"-->
@@ -1391,6 +1403,11 @@
1391 1403
           >
1392 1404
           </DialysisPrintOrderSeventyTwo>
1393 1405
 
1406
+          <DialysisPrintOrderSeventythree
1407
+          v-bind:childResponse="childResponse"
1408
+            v-if="org_template_info.template_id == 73"
1409
+          ></DialysisPrintOrderSeventythree>
1410
+
1394 1411
           <DialysisPrintOrderZero
1395 1412
             v-bind:childResponse="childResponse"
1396 1413
             v-if="org_template_info.template_id == 199"
@@ -1487,6 +1504,7 @@ import DialysisPrintOrderSixtynine from './template/DialysisPrintOrderSixtynine'
1487 1504
 import DialysisPrintOrderSeventy from './template/DialysisPrintOrderSeventy'
1488 1505
 import DialysisPrintOrderseventyone from './template/DialysisPrintOrderseventyone'
1489 1506
 import DialysisPrintOrderSeventyTwo from './template/DialysisPrintOrderSeventyTwo'
1507
+import DialysisPrintOrderSeventythree from './template/DialysisPrintOrderSeventythree'
1490 1508
 import DialysisPrintOrderZero from './template/DialysisPrintOrderZero'
1491 1509
 export default {
1492 1510
   name: "dialysisPrintOrder",
@@ -1563,6 +1581,7 @@ export default {
1563 1581
     DialysisPrintOrderSeventy,
1564 1582
     DialysisPrintOrderseventyone,
1565 1583
     DialysisPrintOrderSeventyTwo,
1584
+    DialysisPrintOrderSeventythree,
1566 1585
     DialysisPrintOrderZero,
1567 1586
     LabelBox,
1568 1587
     BreadCrumb,
@@ -2225,6 +2244,14 @@ export default {
2225 2244
           style: style,
2226 2245
           scanStyles: false,
2227 2246
         });
2247
+      }else if (this.org_template_info.template_id == 73 ) {
2248
+        printJS({
2249
+          printable: "dialysis-print-box-1",
2250
+          type: "html",
2251
+          style: style2,
2252
+          scanStyles: false,
2253
+        });
2254
+        console.log('77777',this.org_template_info.template_id);
2228 2255
       }
2229 2256
        else if (this.org_template_info.template_id == 199 ) {
2230 2257
         printJS({

文件差异内容过多而无法显示
+ 3309 - 0
src/xt_pages/dialysis/template/DialysisPrintOrderSeventythree.vue


+ 37 - 1
src/xt_pages/outpatientDoctorStation/components/prescriptionTemplateTable.vue 查看文件

@@ -7,7 +7,7 @@
7 7
             <el-table-column align="center" width="50" label="序号">
8 8
                 <template slot-scope="scope">
9 9
                     <div style="display:flex;align-items:center;">
10
-                        <el-input v-model="scope.row.groupno" placeholder=""></el-input>
10
+                        <el-input v-model="scope.row.groupno" placeholder=""  @input="getAllIndex(scope.row)"></el-input>
11 11
                     </div>
12 12
                 </template>
13 13
             </el-table-column>
@@ -682,6 +682,11 @@
682 682
           { name: '每六小时一次', count: 4 },
683 683
           { name: '每八小时一次', count: 3 }
684 684
         ]
685
+        if(this.efs!=null && this.efs.length >0){
686
+          for(let i=0;i<this.efs.length;i++){
687
+             arr.push(this.efs[i])
688
+          }
689
+       }
685 690
         let num = ''
686 691
         arr.map(item => {
687 692
           if (item.name == execution_frequency) {
@@ -693,6 +698,37 @@
693 698
         }
694 699
         return num
695 700
       },
701
+      getAllIndex(val){
702
+        console.log("val",val)
703
+        console.log("prescription.advices",this.prescription.advices)
704
+        var obj = {id:0,day:"",delivery_way:"",execution_frequency:""}
705
+        if(this.prescription.advices!=null && this.prescription.advices.length>0){
706
+           for(let i=0;i<this.prescription.advices.length;i++){
707
+            console.log("this.prescription.advices[i].groupno",this.prescription.advices[i].groupno)
708
+            if(parseInt(val.groupno) == parseInt(this.prescription.advices[i].groupno) && parseInt(val.id)!= parseInt(this.prescription.advices[i].id)){
709
+              console.log("this.prescription.advices[i]",this.prescription.advices[i])
710
+               obj.id = val.id
711
+               obj.day = this.prescription.advices[i].day
712
+               obj.delivery_way = this.prescription.advices[i].delivery_way
713
+               obj.execution_frequency = this.prescription.advices[i].execution_frequency
714
+               console.log("-----------------",obj)
715
+             }
716
+           }
717
+        }
718
+        console.log("-----------------",obj)
719
+
720
+        if(this.prescription.advices!=null && this.prescription.advices.length>0){
721
+           for(let i=0;i<this.prescription.advices.length;i++){
722
+            if(this.prescription.advices[i].id == parseInt(val.id)){
723
+              console.log("进啦")
724
+              this.prescription.advices[i].delivery_way = obj.delivery_way
725
+              this.prescription.advices[i].execution_frequency =obj.execution_frequency
726
+              this.prescription.advices[i].day = obj.day
727
+             }
728
+           }
729
+        }
730
+        console.log("hahhhahdhha",this.prescription.advices)
731
+      },
696 732
     }, mounted() {
697 733
       this.getInitData()
698 734
 

+ 19 - 5
src/xt_pages/user/Informed/Informedconsent.vue 查看文件

@@ -121,7 +121,7 @@
121 121
                   <therapy_informed :patient_id ="this.patientID"></therapy_informed>
122 122
                 </div>
123 123
                 <div v-if="history_show">
124
-                  <Medicalhistory :patient_id ="this.patientID"></Medicalhistory>
124
+                  <Medicalhistory :patient_id ="this.patientID" :medicalList="medicalList" ref="childThrity"></Medicalhistory>
125 125
                 </div>
126 126
                 <div v-if="show14">
127 127
                   <heal_informed :patient_id ="this.patientID"></heal_informed>
@@ -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  } from '@/api/patient'
163
+import { getPatientDetailInformedconsent,getFallOutBedPrintList,getFilterInformed,getProfundaInformed,getArterOvernous,getHighRiskInformed,getPatientMeDicalList  } from '@/api/patient'
164 164
 export default {
165 165
 
166 166
   components: {
@@ -216,7 +216,8 @@ export default {
216 216
       filterList:{},
217 217
       profundaPrint:{},
218 218
       arterOvenousPrint:{},
219
-      highRiskPrint:{}
219
+      highRiskPrint:{},
220
+      medicalList:{}
220 221
     }
221 222
 
222 223
   },
@@ -236,12 +237,24 @@ export default {
236 237
         this.patient =patient
237 238
       }
238 239
     })
240
+   },
241
+   getPatientMeDicalList(){
242
+      var params = {
243
+         patient_id:this.patientID,
244
+      }
245
+     getPatientMeDicalList(params).then(response=>{
246
+        if(response.data.state ==1){
247
+          var list= response.data.data.list
248
+          this.medicalList = list
249
+          this.$refs.childThrity.show(list)
250
+        }
251
+     })
239 252
    },
240 253
     rowClick(row, column, event){
241
-      // console.log('1111',row);
254
+     console.log('1111',row);
242 255
       // console.log('2222',column);
243 256
       // console.log('3333',event);
244
-
257
+       
245 258
         if(row.value==1){
246 259
           this.face_show=true
247 260
           this.filter_show=false,
@@ -475,6 +488,7 @@ export default {
475 488
           this.show14=false,
476 489
           this.show15=false,
477 490
           this.show16=false
491
+          this.getPatientMeDicalList()
478 492
         }
479 493
         if(row.value==14){
480 494
           this.filter_show=false

+ 91 - 22
src/xt_pages/user/Informed/components/Medicalhistory.vue 查看文件

@@ -17,7 +17,7 @@
17 17
           <h2 style="text-align: center;margin-bottom: 20px;">门诊血液透析治疗病历首页</h2>
18 18
           <div style="display: flex;padding: 10px 5px">
19 19
             <div style="flex: 1;">门诊号<span class="unile">{{ patient.admission_number }}</span></div>
20
-            <div style="flex: 1;">住院号 <span class="unile">{{ patient.admission_number }}</span></div>
20
+            <div style="flex: 1;">透析号 <span class="unile">{{ patient.dialysis_no }}</span></div>
21 21
             <div style="flex: 1.5;">首次治疗日期 <span class="unile">{{getTime(patient.first_dialysis_date) }}</span></div>
22 22
           </div>
23 23
           <div style="display: flex;padding: 10px 5px">
@@ -35,40 +35,39 @@
35 35
           </div>
36 36
           <div style='padding: 10px 5px'>
37 37
             <div>
38
-              现住址(详填) <span class="unile2">{{ sheng ? sheng:' ' }}</span> 省 <span class="unile2">{{ shi? shi:' ' }}</span>市
39
-              <span class="unile2">{{ xian ?xian:'' }}</span>县(区)<span class="unile2">{{ jie?jie:'' }}</span>乡(镇、街道)<span class="unile2">{{ hao?hao:'' }}</span>村(门牌号)
38
+              现住址(详填) <span class="unile2">{{ patient.home_address }}</span>
40 39
             </div>
41
-            <div style="flex: 1;">邮编<span class="unile2"></span></div>
40
+            <!-- <div style="flex: 1;">邮编<span class="unile2"></span></div> -->
42 41
           </div>
43 42
           <div style='padding: 10px 5px'>
44 43
             <div>
45
-              户口住址(详填) <span class="unile2"></span>省<span class="unile2"></span>市<span class="unile2"></span>县(区)<span class="unile2"></span>乡(镇、街道)<span class="unile2"></span>村(门牌号)
44
+              家庭住址<span class="unile2">{{ patient.home_address }}</span>
46 45
             </div>
47
-            <div style="flex: 1;">邮编<span class="unile2"></span></div>
46
+            <!-- <div style="flex: 1;">邮编<span class="unile2"></span></div> -->
48 47
           </div>
49 48
           <div style="display: flex;padding: 10px 5px">
50 49
             <div style="flex: 1;">
51
-              电话<span class="unile">{{ patient.home_telephone }}</span>
50
+              本人电话<span class="unile">{{ patient.home_telephone }}</span>
52 51
             </div>
53
-            <div style="flex: 1;">
52
+            <!-- <div style="flex: 1;">
54 53
               手机<span class="unile">{{ patient.phone }}</span>
55
-            </div>
54
+            </div> -->
56 55
             <div style="flex: 1.5;">
57
-              亲属联系方式<span class="unile"></span>
56
+              亲属联系方式<span class="unile">{{ patient.relative_phone }}</span>
58 57
             </div>
59 58
           </div>
60 59
           <div style="padding: 10px 5px">
61
-            工作单位<span class="unile"></span>
60
+            工作单位<span class="unile">{{ patient.work_unit }}</span>
62 61
           </div>
63
-          <div style="padding: 10px 5px">
62
+          <!-- <div style="padding: 10px 5px">
64 63
             地址<span class="unile2"></span> 省(市)<span class="unile2"></span>路<span class="unile2"></span>号
65
-          </div>
64
+          </div> -->
66 65
           <div style="padding: 10px 5px">
67 66
             诊断:<span class="unile">{{ patient.diagnose }}</span>
68 67
           </div>
69
-          <div style="padding: 10px 5px">
68
+          <!-- <div style="padding: 10px 5px">
70 69
             合并症或并发症 <span class="unile"></span>
71
-          </div>
70
+          </div> -->
72 71
           <div V-html="content"></div>
73 72
           <div v-html="content"></div>
74 73
           <!-- <div>
@@ -141,7 +140,7 @@
141 140
     </div>
142 141
     <!-- 编辑 -->
143 142
     <el-dialog
144
-      title="提示"
143
+      title="新增"
145 144
       :visible.sync="dialogVisible"
146 145
       width="60%">
147 146
         <div>
@@ -150,7 +149,7 @@
150 149
             <div style="flex: 1;">门诊号
151 150
               <span style="display: inline-block;border-bottom: 1px solid black;width: 60%;">{{ patient.admission_number }}</span>
152 151
             </div>
153
-            <div style="flex: 1;">住院
152
+            <div style="flex: 1;">透析
154 153
               <span style="display: inline-block;border-bottom: 1px solid black;width: 60%;">{{ patient.admission_number }}</span>
155 154
             </div>
156 155
             <div style="flex: 1;">姓名:
@@ -172,12 +171,47 @@
172 171
               <span v-if="sex==2">女</span>
173 172
             </div>
174 173
           </div> -->
174
+          <div style="display: flex;padding: 10px 5px">
175
+            <div style="flex: 1;">
176
+              身份证号
177
+              <span style="display: inline-block;border-bottom: 1px solid black;width: 60%;">{{ patient.id_card_no }} </span>
178
+            </div>
179
+          </div>
180
+          <div style='padding: 10px 5px'>
181
+            <div>
182
+              现住址(详填)<span style="display: inline-block;border-bottom: 1px solid black;width: 60%;"> </span>
183
+            
184
+            </div>
185
+            
186
+          </div>
187
+          <div style='padding: 10px 5px'>
188
+            <div>
189
+              家庭住址<span style="display: inline-block;border-bottom: 1px solid black;width: 60%;"> </span>
190
+            
191
+            </div>
192
+           
193
+          </div>
194
+          <div style="display: flex;padding: 10px 5px">
195
+            <div style="flex: 1;">
196
+              本人电话
197
+              <span style="display: inline-block;border-bottom: 1px solid black;width: 60%;"> </span>
198
+            </div>
199
+          
200
+            <div style="flex: 1.5;">
201
+              亲属联系方式
202
+              <span style="display: inline-block;border-bottom: 1px solid black;width: 60%;"> </span>
203
+            </div>
204
+          </div>
205
+          <div style="padding: 10px 5px">
206
+            工作单位
207
+            <span style="display: inline-block;border-bottom: 1px solid black;width: 60%;"> </span>
208
+          </div>
175 209
           <div style="padding: 10px 5px">诊断:
176 210
             <span style="display: inline-block;border-bottom: 1px solid black;width: 60%;">{{ patient.diagnose }}</span>
177 211
           </div>
178
-          <div style="padding: 10px 5px">合并症或并发症 
212
+          <!-- <div style="padding: 10px 5px">合并症或并发症 
179 213
             <span style="display: inline-block;border-bottom: 1px solid black;width: 60%;"></span>
180
-          </div>
214
+          </div> -->
181 215
           <keep-alive>
182 216
             <editor ref="editor"
183 217
                     id="editor"
@@ -188,17 +222,18 @@
188 222
         </div>
189 223
         <span slot="footer" class="dialog-footer">
190 224
           <el-button @click="dialogVisible = false">取 消</el-button>
191
-          <el-button type="primary" @click="dialogVisible = false">确 定</el-button>
225
+          <el-button type="primary" @click="saveMedicalHistory">保 存</el-button>
192 226
         </span>
193 227
     </el-dialog>
194 228
   </div>
195 229
 </template>
196 230
 <script>
197 231
 
198
-import { getPatientDetailInformedconsent  } from '@/api/patient'
232
+import { getPatientDetailInformedconsent,saveMedicalHistory  } from '@/api/patient'
199 233
 import print from "print-js";
200 234
 import Editor from '@/components/Editor'
201 235
 import { uParseTime } from '@/utils/tools'
236
+
202 237
 const content=`<div>
203 238
             <table border="1" style="border-collapse: collapse;width: 100%;text-align: center;">
204 239
               <tr>
@@ -267,7 +302,10 @@ export default{
267 302
   props: {
268 303
     patient_id: {
269 304
         type: Number,
270
-      }
305
+      },
306
+    medicalList:{
307
+      type:Object,
308
+    }
271 309
   },
272 310
   components:{
273 311
     Editor
@@ -288,11 +326,25 @@ export default{
288 326
     }
289 327
   },
290 328
   created(){
329
+    if(this.medicalList!=null && this.medicalList.id >0){
330
+        this.content = ""
331
+        this.content = this.medicalList.content
332
+      }
291 333
     this.getlist()
292 334
     // this.number = 1233444
293 335
     // }
294 336
   },
295 337
   methods:{
338
+    show(val){
339
+       if(val!=null){
340
+        console.log("valw233223",val)
341
+         if(val.content!=""){
342
+           this.content = ""
343
+           this.content = val.content
344
+         }
345
+         
346
+       }
347
+    },
296 348
     getlist(){
297 349
       // console.log("owwwwwwwwwwwwwwwwwww",this.patient_id)
298 350
       getPatientDetailInformedconsent(this.patient_id).then(response=>{
@@ -351,6 +403,23 @@ export default{
351 403
     // 编辑
352 404
     bianji(){
353 405
       this.dialogVisible = true
406
+    },
407
+    saveMedicalHistory(){
408
+      console.log("adfadfaf")
409
+      var params = {
410
+          content:this.$refs.editor.content,
411
+          patient_id:this.patient_id,
412
+       }
413
+       console.log("paramsm2222",params)
414
+      saveMedicalHistory(params).then(response=>{
415
+        if(response.data.state ==1){
416
+           var medicalHistory  = response.data.data.medicalHistory
417
+           this.$message.success("保存成功!")
418
+           this.dialogVisible =false
419
+           this.$emit("getPatientMeDicalList","");
420
+          
421
+        }
422
+      })
354 423
     }
355 424
   },
356 425
   computed:{