Sfoglia il codice sorgente

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

陈少旭 1 anno fa
parent
commit
8ad87cfeb0

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

1030
     method:"get",
1030
     method:"get",
1031
     params:params
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 Vedi File

975
         noCache: true
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
       path: '/dialysis/flow',
991
       path: '/dialysis/flow',
980
       component: () => import('@/xt_pages/dialysis/dialysisFlow'),
992
       component: () => import('@/xt_pages/dialysis/dialysisFlow'),

+ 12 - 12
src/xt_pages/dialysis/batch_print/batch_print_order_seventyone.vue Vedi File

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

File diff suppressed because it is too large
+ 2577 - 0
src/xt_pages/dialysis/batch_print/batch_print_order_seventythree.vue


+ 12 - 1
src/xt_pages/dialysis/bloodPresssWatch.vue Vedi File

444
           :disabled="selecting_schs.length == 0"
444
           :disabled="selecting_schs.length == 0"
445
           @click="batchPrintAction"
445
           @click="batchPrintAction"
446
           type="primary"
446
           type="primary"
447
-          >批量打印71</el-button>
447
+          >批量打印</el-button>
448
       </template>
448
       </template>
449
       <template v-if="this.template_id == 72">
449
       <template v-if="this.template_id == 72">
450
         <el-button
450
         <el-button
455
           type="primary"
455
           type="primary"
456
           >批量打印</el-button>
456
           >批量打印</el-button>
457
       </template>
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
     </div>
467
     </div>
459
     <div class="app-container">
468
     <div class="app-container">
460
       <!-- <div class="filter-container">
469
       <!-- <div class="filter-container">
2218
         this.$router.push({ path: "/dialysis/print/batch/seventyone" });
2227
         this.$router.push({ path: "/dialysis/print/batch/seventyone" });
2219
       }else if (this.template_id == 72) {
2228
       }else if (this.template_id == 72) {
2220
         this.$router.push({ path: "/dialysis/print/batch/seventytwo" });
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
     batchPrintActionOne: function() {
2234
     batchPrintActionOne: function() {

+ 1 - 13
src/xt_pages/dialysis/details/NavIgation.vue Vedi File

603
         return [item.groupno];
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
       return sorted.length
606
       return sorted.length
619
 
607
 
620
     },
608
     },
695
     },
683
     },
696
     showAssessmentBefore: function() {
684
     showAssessmentBefore: function() {
697
      
685
      
698
-      console.log("透前评估进入23232323我我哦",this.record_date)
686
+      // console.log("透前评估进入23232323我我哦",this.record_date)
699
       this.$refs.assessmentBefore.show(this.predialysis_evaluation,this.last_dryWeight_dislysis,this.last_predialysis_evaluation,this.lastAssessment,this.record_date);
687
       this.$refs.assessmentBefore.show(this.predialysis_evaluation,this.last_dryWeight_dislysis,this.last_predialysis_evaluation,this.lastAssessment,this.record_date);
700
     },
688
     },
701
     showDoubleCheck: function() {
689
     showDoubleCheck: function() {

+ 8 - 2
src/xt_pages/dialysis/details/consumable/dialysisGood.vue Vedi File

98
           :label="item.filed_name_cn"
98
           :label="item.filed_name_cn"
99
         >
99
         >
100
           <template slot-scope="scope">
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
             <!-- {{getName(scope.row.rowList[index].filed_name_cn,scope.row.dialysis_solution)}} -->
109
             <!-- {{getName(scope.row.rowList[index].filed_name_cn,scope.row.dialysis_solution)}} -->
104
           </template>
110
           </template>
105
 
111
 

+ 8 - 2
src/xt_pages/dialysis/details/consumable/dialysisGoodPrint.vue Vedi File

42
                 <td>{{item.patient.dialysis_no}}</td>
42
                 <td>{{item.patient.dialysis_no}}</td>
43
                 <td v-for="(it,index) in rowList" :key="index">
43
                 <td v-for="(it,index) in rowList" :key="index">
44
                   <!-- {{getName(item.rowList[index].filed_name_cn,item.dialysis_solution)}} -->
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
                 </td>
53
                 </td>
48
                </tr>
54
                </tr>
49
               </tbody>
55
               </tbody>

+ 30 - 4
src/xt_pages/dialysis/details/dialog/assessmentBeforeDislysisDialog.vue Vedi File

1255
            }
1255
            }
1256
             this.assessmentBeforeDislysis.blood_access_part_opera_id = blood_id
1256
             this.assessmentBeforeDislysis.blood_access_part_opera_id = blood_id
1257
             this.assessmentBeforeDislysis.blood_access_part_id = this.lastAssessment.blood_access_part_id
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
           } else {
1281
           } else {
1259
             if (this.lastPredialysisEvaluation != null) {
1282
             if (this.lastPredialysisEvaluation != null) {
1260
                var blood_id = 0
1283
                var blood_id = 0
1269
           }
1292
           }
1270
 
1293
 
1271
         console.log("hhahhahahah",lastAssessment)
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
         } else {
1304
         } else {
1279
           console.log("为首务2322323",this.assessmentBeforeDislysis.period)
1305
           console.log("为首务2322323",this.assessmentBeforeDislysis.period)

+ 27 - 0
src/xt_pages/dialysis/dialysisPrintOrder.vue Vedi File

904
         >
904
         >
905
         </div>
905
         </div>
906
       </template>
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
     </div>
919
     </div>
908
     <div class="app-container" style="min-height: 0">
920
     <div class="app-container" style="min-height: 0">
909
       <!--<div class="order-print-btn"-->
921
       <!--<div class="order-print-btn"-->
1391
           >
1403
           >
1392
           </DialysisPrintOrderSeventyTwo>
1404
           </DialysisPrintOrderSeventyTwo>
1393
 
1405
 
1406
+          <DialysisPrintOrderSeventythree
1407
+          v-bind:childResponse="childResponse"
1408
+            v-if="org_template_info.template_id == 73"
1409
+          ></DialysisPrintOrderSeventythree>
1410
+
1394
           <DialysisPrintOrderZero
1411
           <DialysisPrintOrderZero
1395
             v-bind:childResponse="childResponse"
1412
             v-bind:childResponse="childResponse"
1396
             v-if="org_template_info.template_id == 199"
1413
             v-if="org_template_info.template_id == 199"
1487
 import DialysisPrintOrderSeventy from './template/DialysisPrintOrderSeventy'
1504
 import DialysisPrintOrderSeventy from './template/DialysisPrintOrderSeventy'
1488
 import DialysisPrintOrderseventyone from './template/DialysisPrintOrderseventyone'
1505
 import DialysisPrintOrderseventyone from './template/DialysisPrintOrderseventyone'
1489
 import DialysisPrintOrderSeventyTwo from './template/DialysisPrintOrderSeventyTwo'
1506
 import DialysisPrintOrderSeventyTwo from './template/DialysisPrintOrderSeventyTwo'
1507
+import DialysisPrintOrderSeventythree from './template/DialysisPrintOrderSeventythree'
1490
 import DialysisPrintOrderZero from './template/DialysisPrintOrderZero'
1508
 import DialysisPrintOrderZero from './template/DialysisPrintOrderZero'
1491
 export default {
1509
 export default {
1492
   name: "dialysisPrintOrder",
1510
   name: "dialysisPrintOrder",
1563
     DialysisPrintOrderSeventy,
1581
     DialysisPrintOrderSeventy,
1564
     DialysisPrintOrderseventyone,
1582
     DialysisPrintOrderseventyone,
1565
     DialysisPrintOrderSeventyTwo,
1583
     DialysisPrintOrderSeventyTwo,
1584
+    DialysisPrintOrderSeventythree,
1566
     DialysisPrintOrderZero,
1585
     DialysisPrintOrderZero,
1567
     LabelBox,
1586
     LabelBox,
1568
     BreadCrumb,
1587
     BreadCrumb,
2225
           style: style,
2244
           style: style,
2226
           scanStyles: false,
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
        else if (this.org_template_info.template_id == 199 ) {
2256
        else if (this.org_template_info.template_id == 199 ) {
2230
         printJS({
2257
         printJS({

File diff suppressed because it is too large
+ 3309 - 0
src/xt_pages/dialysis/template/DialysisPrintOrderSeventythree.vue


+ 37 - 1
src/xt_pages/outpatientDoctorStation/components/prescriptionTemplateTable.vue Vedi File

7
             <el-table-column align="center" width="50" label="序号">
7
             <el-table-column align="center" width="50" label="序号">
8
                 <template slot-scope="scope">
8
                 <template slot-scope="scope">
9
                     <div style="display:flex;align-items:center;">
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
                     </div>
11
                     </div>
12
                 </template>
12
                 </template>
13
             </el-table-column>
13
             </el-table-column>
682
           { name: '每六小时一次', count: 4 },
682
           { name: '每六小时一次', count: 4 },
683
           { name: '每八小时一次', count: 3 }
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
         let num = ''
690
         let num = ''
686
         arr.map(item => {
691
         arr.map(item => {
687
           if (item.name == execution_frequency) {
692
           if (item.name == execution_frequency) {
693
         }
698
         }
694
         return num
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
     }, mounted() {
732
     }, mounted() {
697
       this.getInitData()
733
       this.getInitData()
698
 
734
 

+ 19 - 5
src/xt_pages/user/Informed/Informedconsent.vue Vedi File

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

+ 91 - 22
src/xt_pages/user/Informed/components/Medicalhistory.vue Vedi File

17
           <h2 style="text-align: center;margin-bottom: 20px;">门诊血液透析治疗病历首页</h2>
17
           <h2 style="text-align: center;margin-bottom: 20px;">门诊血液透析治疗病历首页</h2>
18
           <div style="display: flex;padding: 10px 5px">
18
           <div style="display: flex;padding: 10px 5px">
19
             <div style="flex: 1;">门诊号<span class="unile">{{ patient.admission_number }}</span></div>
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
             <div style="flex: 1.5;">首次治疗日期 <span class="unile">{{getTime(patient.first_dialysis_date) }}</span></div>
21
             <div style="flex: 1.5;">首次治疗日期 <span class="unile">{{getTime(patient.first_dialysis_date) }}</span></div>
22
           </div>
22
           </div>
23
           <div style="display: flex;padding: 10px 5px">
23
           <div style="display: flex;padding: 10px 5px">
35
           </div>
35
           </div>
36
           <div style='padding: 10px 5px'>
36
           <div style='padding: 10px 5px'>
37
             <div>
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
             </div>
39
             </div>
41
-            <div style="flex: 1;">邮编<span class="unile2"></span></div>
40
+            <!-- <div style="flex: 1;">邮编<span class="unile2"></span></div> -->
42
           </div>
41
           </div>
43
           <div style='padding: 10px 5px'>
42
           <div style='padding: 10px 5px'>
44
             <div>
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
             </div>
45
             </div>
47
-            <div style="flex: 1;">邮编<span class="unile2"></span></div>
46
+            <!-- <div style="flex: 1;">邮编<span class="unile2"></span></div> -->
48
           </div>
47
           </div>
49
           <div style="display: flex;padding: 10px 5px">
48
           <div style="display: flex;padding: 10px 5px">
50
             <div style="flex: 1;">
49
             <div style="flex: 1;">
51
-              电话<span class="unile">{{ patient.home_telephone }}</span>
50
+              本人电话<span class="unile">{{ patient.home_telephone }}</span>
52
             </div>
51
             </div>
53
-            <div style="flex: 1;">
52
+            <!-- <div style="flex: 1;">
54
               手机<span class="unile">{{ patient.phone }}</span>
53
               手机<span class="unile">{{ patient.phone }}</span>
55
-            </div>
54
+            </div> -->
56
             <div style="flex: 1.5;">
55
             <div style="flex: 1.5;">
57
-              亲属联系方式<span class="unile"></span>
56
+              亲属联系方式<span class="unile">{{ patient.relative_phone }}</span>
58
             </div>
57
             </div>
59
           </div>
58
           </div>
60
           <div style="padding: 10px 5px">
59
           <div style="padding: 10px 5px">
61
-            工作单位<span class="unile"></span>
60
+            工作单位<span class="unile">{{ patient.work_unit }}</span>
62
           </div>
61
           </div>
63
-          <div style="padding: 10px 5px">
62
+          <!-- <div style="padding: 10px 5px">
64
             地址<span class="unile2"></span> 省(市)<span class="unile2"></span>路<span class="unile2"></span>号
63
             地址<span class="unile2"></span> 省(市)<span class="unile2"></span>路<span class="unile2"></span>号
65
-          </div>
64
+          </div> -->
66
           <div style="padding: 10px 5px">
65
           <div style="padding: 10px 5px">
67
             诊断:<span class="unile">{{ patient.diagnose }}</span>
66
             诊断:<span class="unile">{{ patient.diagnose }}</span>
68
           </div>
67
           </div>
69
-          <div style="padding: 10px 5px">
68
+          <!-- <div style="padding: 10px 5px">
70
             合并症或并发症 <span class="unile"></span>
69
             合并症或并发症 <span class="unile"></span>
71
-          </div>
70
+          </div> -->
72
           <div V-html="content"></div>
71
           <div V-html="content"></div>
73
           <div v-html="content"></div>
72
           <div v-html="content"></div>
74
           <!-- <div>
73
           <!-- <div>
141
     </div>
140
     </div>
142
     <!-- 编辑 -->
141
     <!-- 编辑 -->
143
     <el-dialog
142
     <el-dialog
144
-      title="提示"
143
+      title="新增"
145
       :visible.sync="dialogVisible"
144
       :visible.sync="dialogVisible"
146
       width="60%">
145
       width="60%">
147
         <div>
146
         <div>
150
             <div style="flex: 1;">门诊号
149
             <div style="flex: 1;">门诊号
151
               <span style="display: inline-block;border-bottom: 1px solid black;width: 60%;">{{ patient.admission_number }}</span>
150
               <span style="display: inline-block;border-bottom: 1px solid black;width: 60%;">{{ patient.admission_number }}</span>
152
             </div>
151
             </div>
153
-            <div style="flex: 1;">住院
152
+            <div style="flex: 1;">透析
154
               <span style="display: inline-block;border-bottom: 1px solid black;width: 60%;">{{ patient.admission_number }}</span>
153
               <span style="display: inline-block;border-bottom: 1px solid black;width: 60%;">{{ patient.admission_number }}</span>
155
             </div>
154
             </div>
156
             <div style="flex: 1;">姓名:
155
             <div style="flex: 1;">姓名:
172
               <span v-if="sex==2">女</span>
171
               <span v-if="sex==2">女</span>
173
             </div>
172
             </div>
174
           </div> -->
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
           <div style="padding: 10px 5px">诊断:
209
           <div style="padding: 10px 5px">诊断:
176
             <span style="display: inline-block;border-bottom: 1px solid black;width: 60%;">{{ patient.diagnose }}</span>
210
             <span style="display: inline-block;border-bottom: 1px solid black;width: 60%;">{{ patient.diagnose }}</span>
177
           </div>
211
           </div>
178
-          <div style="padding: 10px 5px">合并症或并发症 
212
+          <!-- <div style="padding: 10px 5px">合并症或并发症 
179
             <span style="display: inline-block;border-bottom: 1px solid black;width: 60%;"></span>
213
             <span style="display: inline-block;border-bottom: 1px solid black;width: 60%;"></span>
180
-          </div>
214
+          </div> -->
181
           <keep-alive>
215
           <keep-alive>
182
             <editor ref="editor"
216
             <editor ref="editor"
183
                     id="editor"
217
                     id="editor"
188
         </div>
222
         </div>
189
         <span slot="footer" class="dialog-footer">
223
         <span slot="footer" class="dialog-footer">
190
           <el-button @click="dialogVisible = false">取 消</el-button>
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
         </span>
226
         </span>
193
     </el-dialog>
227
     </el-dialog>
194
   </div>
228
   </div>
195
 </template>
229
 </template>
196
 <script>
230
 <script>
197
 
231
 
198
-import { getPatientDetailInformedconsent  } from '@/api/patient'
232
+import { getPatientDetailInformedconsent,saveMedicalHistory  } from '@/api/patient'
199
 import print from "print-js";
233
 import print from "print-js";
200
 import Editor from '@/components/Editor'
234
 import Editor from '@/components/Editor'
201
 import { uParseTime } from '@/utils/tools'
235
 import { uParseTime } from '@/utils/tools'
236
+
202
 const content=`<div>
237
 const content=`<div>
203
             <table border="1" style="border-collapse: collapse;width: 100%;text-align: center;">
238
             <table border="1" style="border-collapse: collapse;width: 100%;text-align: center;">
204
               <tr>
239
               <tr>
267
   props: {
302
   props: {
268
     patient_id: {
303
     patient_id: {
269
         type: Number,
304
         type: Number,
270
-      }
305
+      },
306
+    medicalList:{
307
+      type:Object,
308
+    }
271
   },
309
   },
272
   components:{
310
   components:{
273
     Editor
311
     Editor
288
     }
326
     }
289
   },
327
   },
290
   created(){
328
   created(){
329
+    if(this.medicalList!=null && this.medicalList.id >0){
330
+        this.content = ""
331
+        this.content = this.medicalList.content
332
+      }
291
     this.getlist()
333
     this.getlist()
292
     // this.number = 1233444
334
     // this.number = 1233444
293
     // }
335
     // }
294
   },
336
   },
295
   methods:{
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
     getlist(){
348
     getlist(){
297
       // console.log("owwwwwwwwwwwwwwwwwww",this.patient_id)
349
       // console.log("owwwwwwwwwwwwwwwwwww",this.patient_id)
298
       getPatientDetailInformedconsent(this.patient_id).then(response=>{
350
       getPatientDetailInformedconsent(this.patient_id).then(response=>{
351
     // 编辑
403
     // 编辑
352
     bianji(){
404
     bianji(){
353
       this.dialogVisible = true
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
   computed:{
425
   computed:{