Bläddra i källkod

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

杨青 1 år sedan
förälder
incheckning
08a87c378b
27 ändrade filer med 2020 tillägg och 281 borttagningar
  1. 10 2
      src/api/schedule.js
  2. 9 9
      src/router/modules/Dialysisanalysis.js
  3. 3 3
      src/xt_pages/device/objectRegistration.vue
  4. 24 25
      src/xt_pages/dialysis/batch_print/batch_print_order_six.vue
  5. 24 22
      src/xt_pages/dialysis/details/dialog/treatmentSummaryDialog.vue
  6. 4 4
      src/xt_pages/dialysis/template/DialysisPrintOrderSix.vue
  7. 182 57
      src/xt_pages/dialysis/template/DialysisPrintOrdersixtySeven.vue
  8. 1 1
      src/xt_pages/hospitalStation/treatTemplate/printOne.vue
  9. 0 1
      src/xt_pages/outpatientCharges/invoiceTemplate/printSix.vue
  10. 81 1
      src/xt_pages/outpatientCharges/outpatientChargesManagement.vue
  11. 1 1
      src/xt_pages/outpatientCharges/summary.vue
  12. 5 1
      src/xt_pages/outpatientDoctorStation/checkPrint.vue
  13. 656 0
      src/xt_pages/outpatientDoctorStation/checkTemplate/printTwo.vue
  14. 15 7
      src/xt_pages/outpatientDoctorStation/doctorDesk.vue
  15. 20 6
      src/xt_pages/outpatientDoctorStation/print.vue
  16. 2 3
      src/xt_pages/outpatientDoctorStation/recordPrint.vue
  17. 1 1
      src/xt_pages/outpatientDoctorStation/recordTemplate/printOne.vue
  18. 309 81
      src/xt_pages/outpatientDoctorStation/template/printOne.vue
  19. 536 0
      src/xt_pages/outpatientDoctorStation/template/printTenOne.vue
  20. 1 1
      src/xt_pages/outpatientDoctorStation/treatTemplate/printOne.vue
  21. 1 0
      src/xt_pages/stock/query/purchaseNewStockQuery.vue
  22. 2 2
      src/xt_pages/stock/stockInOrderAdd.vue
  23. 2 2
      src/xt_pages/stock/stockInOrderEdit.vue
  24. 1 1
      src/xt_pages/stock/stockOutOrderAdd.vue
  25. 1 1
      src/xt_pages/stock/stockOutOrderEdit.vue
  26. 74 7
      src/xt_pages/user/components/PatientForm.vue
  27. 55 42
      src/xt_pages/workforce/components/editTableData.vue

+ 10 - 2
src/api/schedule.js Visa fil

@@ -306,11 +306,19 @@ export function CreateScheduleTwo(id, schedule,id_two) {
306 306
 
307 307
 
308 308
 export function ChangeScheduleTen(id,schedule){
309
-  
310
-  console.log('schedule', schedule)
309
+
311 310
   return request({
312 311
     url: '/api/schedule/changeschedule?id=' + id+"&bed_id="+schedule.bed_id+"&mode_id="+schedule.mode_id+"&schedule_type="+schedule.schedule_type,
313 312
     method: 'Put',
314 313
     data: schedule
315 314
   })
316 315
 }
316
+
317
+export function getNumberList(id,params){
318
+  
319
+  return request({
320
+    url:"/api/schedule/getordernumber?id="+id,
321
+    method:"Get",
322
+    params:params
323
+  })
324
+}

+ 9 - 9
src/router/modules/Dialysisanalysis.js Visa fil

@@ -11,15 +11,7 @@ export default {
11 11
     icon: 'statistics'
12 12
   },
13 13
   children: [
14
-    {
15
-      path: '/Dialysisanalysis/qualitycontrol/summary',
16
-      component: () => import('@/xt_pages/Dialysisanalysis/summary/index'),
17
-      name: 'summary',
18
-      meta: {
19
-        title: '指标汇总',
20
-        noCache: true
21
-      }
22
-    },
14
+
23 15
     {
24 16
       path: '/Dialysisanalysis/qualitycontrol/thyroidGland',
25 17
       component: () => import('@/xt_pages/Dialysisanalysis/qualitycontrol/thyroidGland'),
@@ -79,6 +71,14 @@ export default {
79 71
         title: 'KTV/URR',
80 72
         noCache: true
81 73
       }
74
+    },{
75
+      path: '/Dialysisanalysis/qualitycontrol/summary',
76
+      component: () => import('@/xt_pages/Dialysisanalysis/summary/index'),
77
+      name: 'index_summary',
78
+      meta: {
79
+        title: '指标汇总',
80
+        noCache: true
81
+      }
82 82
     },{
83 83
       path: '/Dialysisanalysis/qualitycontrol/print',
84 84
       component: () => import('@/xt_pages/Dialysisanalysis/print/print'),

+ 3 - 3
src/xt_pages/device/objectRegistration.vue Visa fil

@@ -676,7 +676,7 @@
676 676
                    var objectDisinfect =  response.data.data.objectDisinfect
677 677
                    this.$message.success("保存成功!")
678 678
                    this.dialogFormVisible = false
679
-                   this.getObjectTableDisInfectList()
679
+                   this.getlist()
680 680
                  }
681 681
               })
682 682
             }
@@ -847,11 +847,11 @@
847 847
 
848 848
        handleSizeChange(val) {
849 849
         this.limit = val;
850
-        this.getObjectTableDisInfectList()
850
+        this.getlist()
851 851
       },
852 852
       handleCurrentChange(val) {
853 853
         this.page = val;
854
-        this.getObjectTableDisInfectList()
854
+        this.getlist()
855 855
       },
856 856
 
857 857
       saveObjectRegistration(formName){

+ 24 - 25
src/xt_pages/dialysis/batch_print/batch_print_order_six.vue Visa fil

@@ -900,7 +900,7 @@
900 900
                       style="padding: 2px 0; line-height: 23px; display: flex"
901 901
                     >
902 902
                       <div class="inline_block" style="flex: 1"
903
-                        v-if="org_id!=10440 && org_id!=0 && org_id!=10469 && org_id!=10490 && org_id!=10478 && org_id!=10495">
903
+                        v-if="org_id!=10440 && org_id!=0  && org_id!=10469 && org_id!=10490 && org_id!=10478 && org_id!=10495">
904 904
                         上次透后体重:
905 905
                         <div
906 906
                           class="under_line"
@@ -926,7 +926,7 @@
926 926
                       </div>
927 927
 
928 928
                       <div class="inline_block" style="flex: 1"
929
-                        v-if="org_id==10440 && org_id ==0 || org_id==10469 || org_id==10490 || org_id==10478  || org_id==10495">
929
+                        v-if="org_id==10440 ||  org_id ==0 || org_id==10469 || org_id==10490 || org_id==10478  || org_id==10495">
930 930
                         上次透后体重:
931 931
                         <div
932 932
                           class="under_line"
@@ -959,7 +959,7 @@
959 959
                         </div>
960 960
                         kg
961 961
                       </div>
962
-                      <div class="inline_block" style="flex: 1" v-if="org_id!=0 && org_id!=10469">
962
+                      <div class="inline_block" style="flex: 1" v-if=" org_id!=10469">
963 963
                         计划超滤量:
964 964
                         <div
965 965
                           class="under_line"
@@ -976,7 +976,7 @@
976 976
                          <span v-if="org_id!=10395&&org_id!=9829 && org_id!=10440 && org_id!=10469  && org_id!=10471">L</span>
977 977
                       </div>
978 978
 
979
-                      <div class="inline_block" style="flex: 1" v-if="org_id==0 || org_id == 10469">
979
+                      <div class="inline_block" style="flex: 1" v-if="org_id == 10469">
980 980
                         处方脱水量:
981 981
                         <div
982 982
                           class="under_line"
@@ -1258,7 +1258,7 @@
1258 1258
                       </div>
1259 1259
                     </div>
1260 1260
 
1261
-                    <div class="row" style="padding: 2px 0; line-height: 23px" v-if="org_id ==0 ||org_id == 3877 || org_id == 10449">
1261
+                    <div class="row" style="padding: 2px 0; line-height: 23px" v-if="org_id == 3877 || org_id == 10449">
1262 1262
                       <div class="inline_block">
1263 1263
                         置换速度:
1264 1264
                         <div
@@ -1336,7 +1336,7 @@
1336 1336
                           <td width="50">脉搏<br />(次/分)</td>
1337 1337
                           <td width="50">呼吸<br />(次/分)</td>
1338 1338
                           <td width="50">血流量<br />(ml/min)</td>
1339
-                          <td width="50" v-if="org_id == 10478 || org_id == 0">动脉压<br />(mmHg)</td>
1339
+                          <td width="50" v-if="org_id == 10478">动脉压<br />(mmHg)</td>
1340 1340
                           <td width="50">静脉压<br />(mmHg)</td>
1341 1341
                           <td width="50">跨膜压<br />(mmHg)</td>
1342 1342
                           <td width="60" v-if="org_id != 9836">
@@ -1349,7 +1349,6 @@
1349 1349
                               org_id != 9538 &&
1350 1350
                               org_id != 10121 &&
1351 1351
                               org_id != 9675 &&
1352
-                              org_id != 0 &&
1353 1352
                               org_id!=10490
1354 1353
                             "
1355 1354
                           >
@@ -1374,19 +1373,19 @@
1374 1373
                           <td
1375 1374
                             width="50"
1376 1375
                             v-if="
1377
-                              org_id ==  10490 || org_id == 0
1376
+                              org_id ==  10490
1378 1377
                             "
1379 1378
                           >
1380 1379
                           置换液的速度<br />(ml/h)
1381 1380
                           </td>
1382
-                          <td width="50" v-if="org_id == 0 || org_id == 10375">置换率<br />(ml/h)</td>
1381
+                          <td width="50" v-if="org_id == 10375">置换率<br />(ml/h)</td>
1383 1382
                           <td width="50" v-if="org_id != 3877 && org_id != 10449">超滤量<br />(ml)</td>
1384 1383
                           <td width="50" v-if="org_id ==3877 || org_id ==10449">累计超滤量<br />(ml)</td>
1385 1384
                           <td
1386 1385
                             v-if="
1387 1386
                              (record.prescription.mode_id == 2 ||
1388 1387
                               record.prescription.mode_id == 5 ||
1389
-                              record.prescription.mode_id == 12) && org_id!=0&&org_id!=10478
1388
+                              record.prescription.mode_id == 12 || org_id == 0)&&org_id!=10478
1390 1389
                             "
1391 1390
                             width="50"
1392 1391
                           >
@@ -1416,7 +1415,7 @@
1416 1415
                           <td
1417 1416
                             width="50"
1418 1417
                             v-if="
1419
-                              org_id == 10490 || org_id == 0
1418
+                              org_id == 10490
1420 1419
                             "
1421 1420
                           >
1422 1421
                           碳酸氢钠<br />(ml)
@@ -1467,7 +1466,7 @@
1467 1466
                                 : ""
1468 1467
                             }}
1469 1468
                           </td>
1470
-                          <td v-if="org_id==0 || org_id == 10478">
1469
+                          <td v-if="org_id == 10478">
1471 1470
                             {{
1472 1471
                               monitor_record.arterial_pressure
1473 1472
                                 ? monitor_record.arterial_pressure
@@ -1509,7 +1508,7 @@
1509 1508
                               org_id != 9538 &&
1510 1509
                               org_id != 10121 &&
1511 1510
                               org_id != 9675 && 
1512
-                              org_id!=0 && org_id!=10490
1511
+                              org_id!=10490
1513 1512
                              
1514 1513
                             "
1515 1514
                           >
@@ -1546,7 +1545,7 @@
1546 1545
 
1547 1546
                           <td
1548 1547
                             v-if="
1549
-                              org_id == 10490 || org_id == 0 
1548
+                              org_id == 10490
1550 1549
                             "
1551 1550
                           >
1552 1551
                             {{
@@ -1563,7 +1562,7 @@
1563 1562
                                 : ""
1564 1563
                             }}
1565 1564
                           </td>
1566
-                          <td width="50" v-if="org_id == 0 || org_id == 10375"><br />
1565
+                          <td width="50" v-if="org_id == 10375"><br />
1567 1566
                             {{ monitor_record.replacement_rate?monitor_record.replacement_rate:"0" }}
1568 1567
                           </td>
1569 1568
                           <td>
@@ -1587,8 +1586,8 @@
1587 1586
                             v-if="
1588 1587
                               (record.prescription.mode_id == 2 ||
1589 1588
                               record.prescription.mode_id == 5 ||
1590
-                              record.prescription.mode_id == 12)
1591
-                              && org_id!=0&&org_id!=10478
1589
+                              record.prescription.mode_id == 12 || org_id == 0)
1590
+                              && org_id!=10478
1592 1591
                             "
1593 1592
                             style="width: 50px"
1594 1593
                           >
@@ -1627,7 +1626,7 @@
1627 1626
                           <td
1628 1627
                             width="50"
1629 1628
                             v-if="
1630
-                              org_id == 10490 || org_id == 0
1629
+                              org_id == 10490
1631 1630
                             "
1632 1631
                           >
1633 1632
                            {{ monitor_record.dicarbonate  }}<br />
@@ -1769,7 +1768,7 @@
1769 1768
                             执行人签名
1770 1769
                           </td>
1771 1770
                           <td style="font-size: 16px" width="10%">时间</td>
1772
-                           <td style="font-size: 16px" width="10%" v-if="org_id == 10375 || org_id ==0">核对护士</td>
1771
+                           <td style="font-size: 16px" width="10%" v-if="org_id == 10375">核对护士</td>
1773 1772
                         </tr>
1774 1773
                         <!-- <template v-for="group in doctor_advices" > -->
1775 1774
 
@@ -1799,8 +1798,8 @@
1799 1798
                                   advice[0].advice_desc != undefined
1800 1799
                                 "
1801 1800
                               >
1802
-                                ({{ advice[0].advice_desc
1803
-                                }}{{ advice[0].drug_spec_unit }} )
1801
+                                <!-- ({{ advice[0].advice_desc
1802
+                                }}{{ advice[0].drug_spec_unit }} ) -->
1804 1803
                               </span>
1805 1804
 
1806 1805
                               <span v-if="advice[0].prescribing_number"
@@ -1877,7 +1876,7 @@
1877 1876
                                 getTime(advice[0].execution_time, " {h}:{i}")
1878 1877
                               }}</span>
1879 1878
                             </td>
1880
-                            <td height="35px" v-if="org_id == 10375 || org_id == 0">
1879
+                            <td height="35px" v-if="org_id == 10375">
1881 1880
                               <span
1882 1881
                                 v-if="
1883 1882
                                   setAdminUserES(
@@ -2571,7 +2570,7 @@
2571 2570
                     <div
2572 2571
                       class="row"
2573 2572
                       style="padding: 2px 0; line-height: 23px; display: flex"
2574
-                      v-if="org_id == 10223 || org_id == 0 || org_id ==9538"
2573
+                      v-if="org_id == 10223 || org_id ==9538 || org_id ==0"
2575 2574
                     >
2576 2575
                       <div class="inline_block" style="flex: 1">
2577 2576
                         穿刺处血肿:
@@ -3293,9 +3292,9 @@ export default {
3293 3292
             var delghTwo = 0;
3294 3293
             if (
3295 3294
               this.records[recordIndex].advices &&
3296
-              this.records[recordIndex].advices.length < 12
3295
+              this.records[recordIndex].advices.length < 20
3297 3296
             ) {
3298
-              delghTwo = 12 - this.records[recordIndex].advices.length;
3297
+              delghTwo = 20 - this.records[recordIndex].advices.length;
3299 3298
             } else {
3300 3299
               delghTwo = 0;
3301 3300
             }

+ 24 - 22
src/xt_pages/dialysis/details/dialog/treatmentSummaryDialog.vue Visa fil

@@ -476,32 +476,34 @@ export default {
476 476
             modify_other_url: "/api/dialysis/treatmentsummary?mode=3",
477 477
             module: 9,
478 478
           },
479
-        })
480
-        .then((res) => {
479
+        }).then((res) => {
481 480
           if (res.data.state == 0) {
482 481
             this.hasPermission = false;
483 482
           } else if (res.data.state == 1) {
484
-            if (this.record.id != "" && this.record.creater != 0) {
485
-              // 有数据
486
-              if (this.record.creater == this.$store.getters.user.admin.id) {
487
-                // 创建人是自己
488
-                if (res.data.data.is_has_modify == false) {
489
-                  this.hasPermission = false;
490
-                  this.showTxt = "你没有修改治疗小结权限";
483
+            if(this.org_id!=10340){
484
+                if (this.record.id != "" && this.record.creater != 0) {
485
+                // 有数据
486
+                if (this.record.creater == this.$store.getters.user.admin.id) {
487
+                  // 创建人是自己
488
+                  if (res.data.data.is_has_modify == false) {
489
+                    this.hasPermission = false;
490
+                    this.showTxt = "你没有修改治疗小结权限";
491
+                  }
492
+                } else {
493
+                  // 创建人不是自己
494
+                  if (res.data.data.is_has_modify_other == false) {
495
+                    this.hasPermission = false;
496
+                    this.showTxt = "你没有修改他人治疗小结权限";
497
+                  }
491 498
                 }
492
-              } else {
493
-                // 创建人不是自己
494
-                if (res.data.data.is_has_modify_other == false) {
499
+              } else if (this.record.id == "" || this.record.creater == 0) {
500
+                if (res.data.data.is_has_create == false) {
495 501
                   this.hasPermission = false;
496
-                  this.showTxt = "你没有修改他人治疗小结权限";
502
+                  this.showTxt = "你没有新增治疗小结权限";
497 503
                 }
498 504
               }
499
-            } else if (this.record.id == "" || this.record.creater == 0) {
500
-              if (res.data.data.is_has_create == false) {
501
-                this.hasPermission = false;
502
-                this.showTxt = "你没有新增治疗小结权限";
503
-              }
504 505
             }
506
+           
505 507
           }
506 508
         });
507 509
     },
@@ -587,10 +589,10 @@ export default {
587 589
 
588 590
        if(this.org_id ==10090){
589 591
           var str = " 患者今日来我科行血液透析治疗,血管通路选择:"+this.predialysis_evaluation.blood_access_part_id+ " "+this.QueryOperaById(this.predialysis_evaluation.blood_access_part_opera_id) +",透析模式:"+this.getModeId(this.prescription.mode_id)+
590
-        ",透前检查:"+this.predialysis_evaluation.internal_fistula +this.predialysis_evaluation.catheter + str_one +" "+ ",透析器:"+this.prescription.dialyzer_perfusion_apparatus + ",抗凝剂:"+this.GetAnticoagulant(this.prescription.anticoagulant) +",总量:"+this.prescription.anticoagulant_zongliang+"iu"+
591
-        ",透前体重:"+this.predialysis_evaluation.weight_before+"kg"+",间期体重增长:"+total +"kg"+",目标脱水量:"+this.prescription.target_ultrafiltration +"ml" +",血流量:"+this.prescription.blood_flow_volume+"ml/min" + ",透析开始时间:"+this.getTime(this.dialysis_order.start_time) +","+"透析结束时间:"+this.getTime(this.dialysis_order.end_time) +
592
-        ",实际治疗时长:"+ this.assessment_after_dislysis.actual_treatment_hour +"时"+this.assessment_after_dislysis.actual_treatment_minute+"分" +",实际超滤量:"+this.assessment_after_dislysis.actual_ultrafiltration+"ml"+",透后体重:"+this.assessment_after_dislysis.weight_after+"kg"+",透析过程顺利,安全下机" + " "
593
-        +",今日使用药品:"+doc_str +",患者下机后测血压,"+"收缩压:"+this.assessment_after_dislysis.systolic_blood_pressure+"mmHg"+",舒张压:"+this.assessment_after_dislysis.diastolic_blood_pressure+"mmHg"+",脉搏:"+this.assessment_after_dislysis.pulse_frequency +"次/分"
592
+        ",透前检查:"+this.predialysis_evaluation.internal_fistula +this.predialysis_evaluation.catheter + str_one +" "+ ",透析器:"+this.prescription.dialyzer_perfusion_apparatus +
593
+        ",透前体重:"+this.predialysis_evaluation.weight_before+"kg"+",间期体重增长:"+total +"kg"+",目标脱水量:"+this.prescription.target_ultrafiltration +"L" +",血流量:"+this.prescription.blood_flow_volume+"ml/min" + ",透析开始时间:"+this.getTime(this.dialysis_order.start_time) +","+"透析结束时间:"+this.getTime(this.dialysis_order.end_time) +
594
+        ",实际治疗时长:"+ this.assessment_after_dislysis.actual_treatment_hour +"时"+this.assessment_after_dislysis.actual_treatment_minute+"分" +",实际超滤量:"+this.assessment_after_dislysis.actual_ultrafiltration+"L"+",透后体重:"+this.assessment_after_dislysis.weight_after+"kg"+",透析过程顺利,安全下机" + " "
595
+        +",患者下机后测血压,"+"收缩压:"+this.assessment_after_dislysis.systolic_blood_pressure+"mmHg"+",舒张压:"+this.assessment_after_dislysis.diastolic_blood_pressure+"mmHg"+",脉搏:"+this.assessment_after_dislysis.pulse_frequency +"次/分"
594 596
 
595 597
         console.log("str000000000000000000222o2o2",str)
596 598
         this.treatmentSummary.dialysis_summary = ""

+ 4 - 4
src/xt_pages/dialysis/template/DialysisPrintOrderSix.vue Visa fil

@@ -3057,13 +3057,13 @@
3057 3057
                       >
3058 3058
                         <span
3059 3059
                           style="height: 30px; display: inline-block"
3060
-                          v-if="setAdminUserES(doctor_advices[0].advice_doctor) == ''"
3060
+                          v-if="setAdminUserES(prescription.creater) == ''"
3061 3061
                         >
3062
-                          {{ getAdminUser(doctor_advices[0].advice_doctor) }}
3062
+                          {{ getAdminUser(prescription.creater) }}
3063 3063
                         </span>
3064 3064
                         <img
3065 3065
                           style="height: 40px"
3066
-                          :src="setAdminUserES(doctor_advices[0].advice_doctor)"
3066
+                          :src="setAdminUserES(prescription.creater)"
3067 3067
                           alt=""
3068 3068
                           srcset=""
3069 3069
                           v-else
@@ -3849,7 +3849,7 @@ export default {
3849 3849
         for (let index = 0; index < this.doctor_advices.length; index++) {
3850 3850
           this.doctor_advices[index]["isShow"] = 2;
3851 3851
         }
3852
-    
3852
+   
3853 3853
         // if (this.doctor_advices.length > 0) {
3854 3854
         //   var group = this.newAdviceGroupObject()
3855 3855
         //   var initGroupBlock = function(group, advice) {

+ 182 - 57
src/xt_pages/dialysis/template/DialysisPrintOrdersixtySeven.vue Visa fil

@@ -45,13 +45,24 @@
45 45
                   }}</td>
46 46
               </tr>
47 47
               <tr>
48
-                <td>病床床号:</td>
49
-                <td>治疗时间:</td>
50
-                <td>干体重:{{ predialysis.dry_weight ? predialysis.dry_weight : "/" }}</td>
48
+                <td>病床床号:
49
+                  <span>
50
+                  {{
51
+                    dialysisOrder &&
52
+                    dialysisOrder.DeviceNumber &&
53
+                    dialysisOrder.DeviceNumber.number.length > 0
54
+                      ? dialysisOrder.DeviceNumber.number
55
+                      : patientInfo.DialysisSchedule.device_number.number
56
+                    }}
57
+                  </span>
58
+                </td>
59
+                <td>治疗时间:
60
+                  {{afterdialysis.actual_treatment_hour }}<span v-if="afterdialysis.actual_treatment_hour>0">时</span>
61
+                  <span v-if="afterdialysis.actual_treatment_minute>0">{{afterdialysis.actual_treatment_minute>0}}</span> {{afterdialysis.actual_treatment_minute }}<span v-if="afterdialysis.actual_treatment_minute>0">分</span>
62
+                </td>
63
+                <td>干体重:{{ predialysis.dry_weight ? predialysis.dry_weight : "/" }}kg</td>
51 64
                 <td>上次透后体重:
52
-                  {{predialysis.weight_after_last_transparency
53
-                      ? predialysis.weight_after_last_transparency
54
-                      : "未称重"}}
65
+                  {{lastafterdialysis.weight_after?lastafterdialysis.weight_after:"未称重"}}
55 66
                 </td>
56 67
               </tr>
57 68
               <tr>
@@ -60,23 +71,34 @@
60 71
                     predialysis.weight_before ? predialysis.weight_before : "/"
61 72
                   }}kg
62 73
                 </td>
63
-                <td>透析总次数:</td>
64
-                <td colspan="2">患者评估:</td>
74
+                <td>透析总次数:{{ patientInfo.total_dialysis + patientInfo.user_sys_before_count }}</td>
75
+                <td colspan="2">患者评估:
76
+                  {{ receiverTreatmentAccess.sick_condition ? receiverTreatmentAccess.sick_condition : "/" }}
77
+                </td>
65 78
               </tr>
66 79
               <tr>
67 80
                 <td colspan="4">
68
-                  <span style="width: 14%;">血管通路:</span>
69
-                  <span style="width: 14%;">部位:</span>
70
-                  <span style="width: 14%;">通路评估:</span>
71
-                  <span style="width: 14%;">震颤:</span>
72
-                  <span style="width: 14%;">外观:</span>
81
+                  <span style="width: 14%;">血管通路:
82
+                    {{ predialysis.blood_access_part_opera_name }}
83
+                  </span>
84
+                  <span style="width: 14%;">部位:
85
+                    {{ predialysis.blood_access_part_id }}
86
+                 </span>
87
+                  <span style="width: 14%;">通路评估:
88
+                     <span v-if="predialysis.internal_fistula.indexOf('震颤-存在') >-1">震颤-存在</span>
89
+                     <span v-if="predialysis.internal_fistula.indexOf('震颤-减弱') >-1">震颤-减弱</span>
90
+                     <span v-if="predialysis.internal_fistula.indexOf('震颤-无') >-1">震颤-无</span>
91
+
92
+                  </span>
93
+                  <!-- <span style="width: 14%;">震颤:</span> -->
94
+                  <!-- <span style="width: 14%;">外观:</span> -->
73 95
                   <span style="width: 14%;">置换方式:
74 96
                     {{
75 97
                       getDisplaceLiquiPart(prescription.displace_liqui_part)
76 98
                     }}
77 99
                   </span>
78 100
                   <span style="width: 14%;">置换总量:
79
-                    {{ prescription.displace_liqui_value ? prescription.displace_liqui_value : "/" }}
101
+                    {{ prescription.displace_liqui_value ? prescription.displace_liqui_value : "" }}
80 102
                   </span>
81 103
                 </td>
82 104
               </tr>
@@ -84,28 +106,31 @@
84 106
                 <td colspan="4">
85 107
                   <div>
86 108
                     透前生命体征:
87
-                    T <span>
109
+                    T <span>
88 110
                         {{predialysis.temperature
89 111
                         ? predialysis.temperature : "/"
90
-                          }}
112
+                          }}
91 113
                       </span>&nbsp;
92
-                    P <span>
114
+                    P <span>
93 115
                         {{
94 116
                           predialysis.pulse_frequency
95 117
                             ? predialysis.pulse_frequency
96 118
                             : "/"
119
+
97 120
                         }}
121
+                         次/分
98 122
                       </span>&nbsp;
99
-                    R <span>
123
+                    R <span>
100 124
                         {{
101 125
                           predialysis.breathing_rate
102 126
                             ? predialysis.breathing_rate
103 127
                             : "/"
104 128
                         }}
129
+                         次/分
105 130
                       </span>&nbsp;
106
-                    BP <span>
107
-                        {{predialysis.systolic_blood_pressure ? predialysis.systolic_blood_pressure : "/"}} /
108
-                        {{ predialysis.diastolic_blood_pressure ? predialysis.diastolic_blood_pressure : '/' }}
131
+                    BP <span>
132
+                        {{predialysis.systolic_blood_pressure ? predialysis.systolic_blood_pressure : "/"}} mmHg/
133
+                        {{ predialysis.diastolic_blood_pressure ? predialysis.diastolic_blood_pressure : '/' }} mmHg
109 134
                       </span>&nbsp;
110 135
                   </div>
111 136
                 </td>
@@ -119,33 +144,85 @@
119 144
               style="border-collapse: collapse;text-align: left;width: 100%;
120 145
             ">
121 146
               <tr>
122
-                <td>治疗模式:</td>
147
+                <td>治疗模式:
148
+                  <span v-if="prescription.mode_id == 1">HD</span>
149
+                  <span v-if="prescription.mode_id == 2">HDF</span>
150
+                  <span v-if="prescription.mode_id == 3">HD+HP</span>
151
+                  <span v-if="prescription.mode_id == 4">HP</span>
152
+                  <span v-if="prescription.mode_id == 5">HF</span>
153
+                  <span v-if="prescription.mode_id == 6">SCUF</span>
154
+                  <span v-if="prescription.mode_id == 7">IUF</span>
155
+                  <span v-if="prescription.mode_id == 8">HFHD</span>
156
+                  <span v-if="prescription.mode_id == 9"> HFHD+HP</span>
157
+                  <span v-if="prescription.mode_id == 10">PHF</span>
158
+                  <span v-if="prescription.mode_id == 11">HFR</span>
159
+                  <span v-if="prescription.mode_id == 12">HDF+HP</span>
160
+                  <span v-if="prescription.mode_id == 13">CRRT</span>
161
+                  <span v-if="prescription.mode_id == 14">腹水回输</span>
162
+                  <span v-if="prescription.mode_id == 15">HD前置换</span>
163
+                  <span v-if="prescription.mode_id == 16">HD后置换</span>
164
+                  <span v-if="prescription.mode_id == 17">HDF前置换</span>
165
+                  <span v-if="prescription.mode_id == 18">HDF后置换</span>
166
+                  <span v-if="prescription.mode_id == 19"> IUF+HD</span>
167
+                  <span v-if="prescription.mode_id == 22"> 血浆胆红素吸附+HDF</span>
168
+                  <span v-if="prescription.mode_id == 23"> 血浆胆红素吸附</span>
169
+                  <span v-if="prescription.mode_id == 24">I-HDF</span>
170
+                  <span v-if="prescription.mode_id == 25"> HD高通</span>
171
+                  <span v-if="prescription.mode_id == 29"> PE</span>
172
+                  <span v-if="prescription.mode_id == 30">血浆胆红素吸附+HP</span>
173
+                </td>
123 174
                 <td>
124 175
                   透析时长:
125 176
                   {{ prescription.dialysis_duration_hour ? prescription.dialysis_duration_hour : "0" }} h
126 177
                   {{ prescription.dialysis_duration_minute ? prescription.dialysis_duration_minute : "0" }} min
127 178
                 </td>
128
-                <td>预超:</td>
179
+                <td>预超:{{prescription.target_ultrafiltration }}L</td>
129 180
                 <td>血流量:{{ prescription.blood_flow_volume ? prescription.blood_flow_volume : "/" }}</td>
130 181
               </tr>
131 182
               <tr>
132
-                <td colspan="4">抗凝剂:</td>
183
+                <td colspan="4">抗凝剂:
184
+                  {{prescription.anticoagulant_name?prescription.anticoagulant_name : "/"}}
185
+                </td>
133 186
               </tr>
134 187
               <tr>
135
-                <td colspan="2">透析机:</td>
136
-                <td colspan="2">透析器:
188
+                <td colspan="2">透析机:
189
+                  {{predialysis.machine_type ? predialysis.machine_type : ""}}
190
+                </td>
191
+                <td colspan="2">透析器/灌流器:
137 192
                   {{ prescription.dialysis_dialyszers ? prescription.dialysis_dialyszers : "/" }}
193
+
194
+                  {{ prescription.dialysis_irrigation ? prescription.dialysis_irrigation : "/" }}
138 195
                 </td>
139 196
               </tr>
140 197
               <tr>
141 198
                 <td colspan="4">
142
-                  <span style="width: 14%;">透析液:</span>
199
+                  <span style="width: 14%;">透析液:
200
+                   流量: {{prescription.dialysate_flow?prescription.dialysate_flow:"" }} ml/min
201
+                   温度: {{ prescription.dialysate_temperature }} ℃
202
+                   钾:{{ prescription.kalium }} mmol/L
203
+                   钠:{{ prescription.sodium }} mmol/L
204
+                   钙:{{ prescription.calcium }} mmol/L
205
+                   碳酸氢盐: {{ prescription.bicarbonate }} mmol/L
206
+                  </span>
143 207
                 </td>
144 208
               </tr>
145 209
               <tr>
146 210
                 <td colspan="2"></td>
147 211
                 <td colspan="2">
148 212
                   处方医生:
213
+                  <span
214
+                    style="height: 30px; display: inline-block"
215
+                      v-if="setAdminUserES(doctor_advices[0].advice_doctor) == ''"
216
+                      >
217
+                     {{ getAdminUser(doctor_advices[0].advice_doctor) }}
218
+                  </span>
219
+                  <img
220
+                    style="height: 40px"
221
+                    :src="setAdminUserES(doctor_advices[0].advice_doctor)"
222
+                    alt=""
223
+                    srcset=""
224
+                    v-else
225
+                  />
149 226
                 </td>
150 227
               </tr>
151 228
             </table>
@@ -175,20 +252,37 @@
175 252
                 <th width="50">超滤率<br>ml/h</th>
176 253
                 <th width="50">电导率<br>ms/cm</th>
177 254
               </tr>
178
-              <tr>
179
-                <td></td>
180
-                <td></td>
181
-                <td></td>
182
-                <td></td>
183
-                <td></td>
184
-                <td></td>
185
-                <td></td>
186
-                <td></td>
187
-                <td></td>
188
-                <td></td>
189
-                <td></td>
190
-                <td></td>
191
-                <td></td>
255
+              <tr v-for="(monitor, monindex) in monitors" :key="monindex">
256
+                <td>{{ getTime(monitor.operate_time, "{h}:{i}") }}</td>
257
+                <td>{{monitor.systolic_blood_pressure? monitor.systolic_blood_pressure + "/": ""}}
258
+                {{monitor.diastolic_blood_pressure? monitor.diastolic_blood_pressure: ""}}</td>
259
+                <td>{{monitor.breathing_rate ? monitor.breathing_rate : ""}}</td>
260
+                <td>{{ monitor.pulse_frequency? monitor.pulse_frequency: ""}}</td>
261
+                <td>{{monitor.blood_flow_volume? monitor.blood_flow_volume: ""}}</td>
262
+                <td>{{monitor.venous_pressure? monitor.venous_pressure: ""}}</td>
263
+                <td>{{monitor.dialysate_temperature? monitor.dialysate_temperature: ""}}</td>
264
+                <td>{{monitor.replacement_rate? monitor.replacement_rate: ""}}</td>
265
+                <td>{{monitor.ultrafiltration_volume? monitor.ultrafiltration_volume: ""}}</td>
266
+                <td>{{monitor.ultrafiltration_rate? monitor.ultrafiltration_rate: ""}}</td>
267
+                <td>{{monitor.conductivity? monitor.conductivity: ""}}</td>
268
+                <td>{{monitor.dispose? monitor.dispose: ""}}
269
+                  {{monitor.result? monitor.result: ""}}
270
+                </td>
271
+                <td>
272
+                  <span
273
+                    style="height: 30px; display: inline-block"
274
+                      v-if="setAdminUserES(monitor.creater) == ''"
275
+                      >
276
+                     {{ getAdminUser(monitor.creater) }}
277
+                  </span>
278
+                  <img
279
+                    style="height: 40px"
280
+                    :src="setAdminUserES(monitor.creater)"
281
+                    alt=""
282
+                    srcset=""
283
+                    v-else
284
+                  />
285
+                </td>
192 286
               </tr>
193 287
             </table>
194 288
           </div>
@@ -297,7 +391,9 @@
297 391
                       : "/"
298 392
                   }}
299 393
                 </td>
300
-                <td>实超:</td>
394
+                <td>实超:
395
+                  {{ afterdialysis.actual_ultrafiltration }}ml
396
+                </td>
301 397
                 <td>实际治疗时长:
302 398
                   {{
303 399
                     afterdialysis.actual_treatment_hour
@@ -310,25 +406,42 @@
310 406
                   }}分钟
311 407
                 </td>
312 408
                 <td>下机时间:
313
-                  <!-- {{ getTime(Order.end_time, "{y}-{m}-{d} {h}:{i}") ? getTime(Order.end_time, "{y}-{m}-{d} {h}:{i}") : "0" }} -->
409
+                  {{ getTime(dialysisOrder.end_time, "{y}-{m}-{d} {h}:{i}") ? getTime(dialysisOrder.end_time, "{y}-{m}-{d} {h}:{i}") : "0" }}
314 410
                 </td>
315 411
               </tr>
316 412
               <tr>
317 413
                 <td colspan="4">
318 414
                   <div>
319 415
                     透后生命体征:
320
-                    T <span>36.5 ℃</span>&nbsp;
321
-                    P <span>36.5 ℃</span>&nbsp;
322
-                    R <span>36.5 ℃</span>&nbsp;
323
-                    BP <span>36.5 ℃</span>&nbsp;
416
+                    T: <span>
417
+                      {{ afterdialysis.temperature }}  ℃
418
+                    </span>&nbsp;
419
+                    P: <span>
420
+                     {{ afterdialysis.pulse_frequency }} 次/分
421
+                    </span>&nbsp;
422
+                    R: <span>
423
+                      {{ afterdialysis.breathing_rate }} 次/分
424
+                    </span>&nbsp;
425
+                    BP: <span>
426
+                      {{ afterdialysis.systolic_blood_pressure }} mmHg / {{ afterdialysis.diastolic_blood_pressure }}mmHg
427
+                    </span>&nbsp;
324 428
                   </div>
325 429
                 </td>
326 430
               </tr>
327 431
               <tr>
328 432
                 <td colspan="4">
329
-                  <span style="width: 14%;">通路评估:</span>
330
-                  <span style="width: 14%;">震颤:</span>
331
-                  <span style="width: 14%;">外观:</span>
433
+                  <span style="width: 14%;">通路评估:
434
+                    {{
435
+                      afterdialysis.internal_fistula
436
+                        ? afterdialysis.internal_fistula
437
+                        : ""
438
+                     }}
439
+
440
+                     {{
441
+                        afterdialysis.catheter ? afterdialysis.catheter : ""
442
+                    }}
443
+                  </span>
444
+
332 445
                 </td>
333 446
               </tr>
334 447
             </table>
@@ -336,7 +449,9 @@
336 449
 
337 450
           <div class="infoTitle">治疗小结</div>
338 451
           <div style="height: 80px;margin: 10px 0px;text-align: left;">
339
-            <span>治疗小结:</span>
452
+            <span>治疗小结:
453
+            {{summary.dialysis_summary?summary.dialysis_summary:'/'}}
454
+            </span>
340 455
           </div>
341 456
           <div style="text-align: left;width: 100%;">
342 457
             <table>
@@ -373,18 +488,28 @@
373 488
                       srcset=""
374 489
                       v-else
375 490
                     />
376
-                    
491
+
377 492
                   </span>
378 493
                 </td>
379
-                <td width="10%">核对护士:</td>
494
+                <td width="18%">核对护士:
495
+
496
+                 <span v-if="setAdminUserES(dialysisOrder==null?0:dialysisOrder.finish_nurse) == ''">{{getAdminUser(dialysisOrder==null?0:dialysisOrder.finish_nurse)}}</span>
497
+                <img style="height:20px;" :src="setAdminUserES(dialysisOrder==null?0:dialysisOrder.finish_nurse)" alt="" srcset="" v-else>
498
+                </td>
380 499
                 <td width="10%"></td>
381
-                <td width="10%">下机护士:</td>
500
+                <td width="15%">下机护士:
501
+                 <span v-if="setAdminUserES(dialysisOrder==null?0:dialysisOrder.finish_nurse) == ''">{{getAdminUser(dialysisOrder==null?0:dialysisOrder.finish_nurse)}}</span>
502
+                                      <img style="height:20px;" :src="setAdminUserES(dialysisOrder==null?0:dialysisOrder.finish_nurse)" alt="" srcset="" v-else>
503
+                </td>
382 504
                 <td width="10%"></td>
383
-                <td width="10%">医生:</td>
505
+                <td width="10%">医生:
506
+                 <span v-if="setAdminUserES(prescription.creater) == ''">{{getAdminUser(prescription.creater)}}</span>
507
+                                      <img style="height:20px;" :src="setAdminUserES(prescription.creater)" alt="" srcset="" v-else>
508
+                </td>
384 509
                 <td width="10%"></td>
385 510
               </tr>
386 511
             </table>
387
-          
512
+
388 513
           </div>
389 514
         </div>
390 515
       </div>
@@ -1407,7 +1532,7 @@ export default {
1407 1532
   .table tr td{
1408 1533
     padding: 5px;
1409 1534
   }
1410
-  
1535
+
1411 1536
 
1412 1537
 }
1413 1538
 </style>

+ 1 - 1
src/xt_pages/hospitalStation/treatTemplate/printOne.vue Visa fil

@@ -10,7 +10,7 @@
10 10
           <span>保险</span>
11 11
           <span>其他</span>
12 12
         </div>
13
-        <div>就诊日期:{{getTime(item.ctime,'{y}-{m}-{d}')}}</div>
13
+        <div>就诊日期:{{getTime(item.pre_time,'{y}-{m}-{d}')}}</div>
14 14
       </div>
15 15
 
16 16
       <div class="printTitle">{{orgname}}</div>

+ 0 - 1
src/xt_pages/outpatientCharges/invoiceTemplate/printSix.vue Visa fil

@@ -1,4 +1,3 @@
1
-
2 1
 <template>
3 2
   <div id='invoice-print' >
4 3
     <div v-for='(i,index) in pageArr.length' :key="index" >

+ 81 - 1
src/xt_pages/outpatientCharges/outpatientChargesManagement.vue Visa fil

@@ -206,7 +206,7 @@
206 206
                               <div>
207 207
 
208 208
                                 <el-button
209
-                                    v-if="(hisPatientInfo.id_card_type == 4 && hisPatientInfo.balance_accounts_type != 2 && hisPatientInfo.id > 0  && org_id != 10340)"
209
+                                    v-if="(hisPatientInfo.balance_accounts_type != 2 && hisPatientInfo.id > 0  && org_id != 10340)"
210 210
                                     size="small"
211 211
                                     @click="open(50,items.med_type,items.prescriptions[0].order,items.prescriptions)"
212 212
                                     type="primary"
@@ -220,6 +220,15 @@
220 220
                                     type="primary"
221 221
                                 >预结算
222 222
                                 </el-button>
223
+
224
+                                <el-button
225
+                                  v-if="hisPatientInfo.balance_accounts_type != 2 && org_id != 10340"
226
+                                  size="small"
227
+                                  @click="open(60,items.med_type,items.prescriptions[0].order,items.prescriptions)"
228
+                                  type="primary"
229
+                                >撤销就诊信息
230
+                                </el-button>
231
+
223 232
                                 <el-button
224 233
                                     v-if="items.curPrescriptions.order.order_status == 1 && hisPatientInfo.balance_accounts_type != 2 && org_id != 10340"
225 234
                                     size="small"
@@ -227,6 +236,9 @@
227 236
                                     type="primary"
228 237
                                 >撤销明细
229 238
                                 </el-button>
239
+
240
+
241
+
230 242
                                 <!--<div>{{ items.curPrescriptions.order.order_status}}</div>-->
231 243
                                 <!--<div>{{ items.prescriptions[0].order.order_status}}</div>-->
232 244
                                 <el-button v-loading="loadingtwo"
@@ -3763,6 +3775,74 @@ export default {
3763 3775
             .catch(function(error) {
3764 3776
             })
3765 3777
         }
3778
+      }else if(index == 60){
3779
+        var that = this
3780
+        var ids = []
3781
+        for (let i = 0; i < prescriptions.length; i++) {
3782
+          ids.push(prescriptions[i].id)
3783
+        }
3784
+        var ids_str = ids.join(',')
3785
+        this.temp_ids = ids_str
3786
+        this.newLoading = true
3787
+        var that = this
3788
+        let form = {}
3789
+        form['id'] = this.patientInfo.id
3790
+        form['his_patient_id'] = this.hisPatientInfo.id
3791
+        form['record_time'] = this.record_date
3792
+        form['ids'] = this.temp_ids
3793
+        form['begin_time'] = this.form.diagnosis_time
3794
+        form['p_type'] = med_type
3795
+        form['diagnosis'] = this.form.diagnosis.join(',')
3796
+        form['sick_type'] = this.form.sick_type
3797
+        form['admin_user_id'] = this.$store.getters.xt_user.user.id
3798
+        form['org_id'] = this.$store.getters.xt_user.org_id
3799
+        if (this.activeName == 'first') {
3800
+          form['settle_accounts_type'] = 1
3801
+        } else if (this.activeName == 'second') {
3802
+          form['start_time'] = this.other_start_time
3803
+          form['end_time'] = this.other_end_time
3804
+          form['settle_accounts_type'] = 2
3805
+        } else {
3806
+          form['start_time'] = this.other_start_time_two
3807
+          form['end_time'] = this.other_end_time_two
3808
+          form['settle_accounts_type'] = 2
3809
+        }
3810
+        axios.get('http://127.0.0.1:9532/api/cancledia/get', {
3811
+          params: form,
3812
+          headers: {
3813
+            'Permission': 5
3814
+          }
3815
+        })
3816
+          .then(function(response) {
3817
+            if (response.data.state == 0) {
3818
+              that.$message.error(response.data.msg)
3819
+              return false
3820
+            } else {
3821
+              if (response.data.data.failed_code == -10) {
3822
+                that.$confirm(response.data.data.msg, '医保错误信息', {
3823
+                  confirmButtonText: '确 定',
3824
+                  type: 'warning'
3825
+                }).then(() => {
3826
+                  that.changeRadioAndPatient(1)
3827
+                  that.newLoading = false
3828
+                }).catch(() => {
3829
+                  that.changeRadioAndPatient(1)
3830
+                  that.newLoading = false
3831
+                })
3832
+              } else {
3833
+                that.changeRadioAndPatient(1)
3834
+                that.$message({ message: '取消成功', type: 'success', duration: 5000 })
3835
+                that.newLoading = false
3836
+              }
3837
+            }
3838
+          })
3839
+          .catch(function(error) {
3840
+            that.newLoading = false
3841
+          })
3842
+
3843
+
3844
+
3845
+
3766 3846
       }
3767 3847
     },
3768 3848
      getName(admin_user_id) {

+ 1 - 1
src/xt_pages/outpatientCharges/summary.vue Visa fil

@@ -1280,7 +1280,7 @@ export default {
1280 1280
                 name: order.patient.name,
1281 1281
                 id_card_no: order.patient.id_card_no,
1282 1282
                 year: "2023",
1283
-                month: "04",
1283
+                month: "07",
1284 1284
                 code: data[b].code,
1285 1285
                 pric: data[b].total ,
1286 1286
                 item_name: data[b].name,

+ 5 - 1
src/xt_pages/outpatientDoctorStation/checkPrint.vue Visa fil

@@ -13,7 +13,9 @@
13 13
       </template> -->
14 14
 
15 15
       <div class='dialysisPage' style="padding-top:40px;">
16
-        <printOne :advicePrint="advicePrint" :ids="ids" :patient="patient" :hisPatient="hisPatient" :patient_id="patient_id" :record_date="record_date" :prescription_id="prescription_id" :newHisPatient="newHisPatient"></printOne>
16
+        <printOne v-if="this.$store.getters.xt_user.org_id != 10402 && this.$store.getters.xt_user.org_id != 0" :advicePrint="advicePrint" :ids="ids" :patient="patient" :hisPatient="hisPatient" :patient_id="patient_id" :record_date="record_date" :prescription_id="prescription_id" :newHisPatient="newHisPatient"></printOne>
17
+        <printTwo v-if="this.$store.getters.xt_user.org_id == 10402 || this.$store.getters.xt_user.org_id == 0" :advicePrint="advicePrint" :ids="ids" :patient="patient" :hisPatient="hisPatient" :patient_id="patient_id" :record_date="record_date" :prescription_id="prescription_id" :newHisPatient="newHisPatient"></printTwo>
18
+<!--      <print-two></print-two>-->
17 19
       </div>
18 20
 
19 21
   </div>
@@ -26,9 +28,11 @@ import BreadCrumb from "@/xt_pages/components/bread-crumb";
26 28
 import print from "print-js";
27 29
 import printOne from "./checkTemplate/printOne"
28 30
 import { getAllDoctorList,getAllHisPatientList } from "@/api/project/project"
31
+import printTwo from './checkTemplate/printTwo.vue'
29 32
 export default {
30 33
   name: "dialysisPrintOrder",
31 34
   components: {
35
+    printTwo,
32 36
     BreadCrumb,
33 37
     printOne,
34 38
   },

+ 656 - 0
src/xt_pages/outpatientDoctorStation/checkTemplate/printTwo.vue Visa fil

@@ -0,0 +1,656 @@
1
+<template>
2
+  <div>
3
+    <div id="prescription-print3" class="prescription-print">
4
+      <img
5
+        style="width: 100%; height: 80px"
6
+        v-if="org_id == 10138"
7
+        src="https://kuyi.shengws.com/bailin/bltotle.jpg"
8
+        alt=""
9
+      />
10
+      <img
11
+        style="width: 100%; height: 80px"
12
+        v-if="org_id == 10278 || org_id == 0"
13
+        src="https://kuyi.shengws.com/beierlog.png"
14
+        alt=""
15
+      />
16
+      <div class="printTitle">检验申请单</div>
17
+
18
+      <div style="border: 1px solid #000;margin-bottom: 10px;">
19
+        <div
20
+          style="
21
+            display: flex;
22
+            justify-content: space-between;
23
+            border-bottom: 1px solid #000;
24
+            line-height: 40px;
25
+            padding: 0 10px;
26
+          "
27
+        >
28
+          <div>是否急诊:否</div>
29
+          <div>
30
+            结算方式:{{
31
+              faber && faber.transBody
32
+                ? getName(faber.transBody.outputlist1)
33
+                : ""
34
+            }}
35
+          </div>
36
+          <div>金额:{{ total }}</div>
37
+        </div>
38
+        <div
39
+          style="
40
+            display: flex;
41
+            justify-content: space-between;
42
+            border-bottom: 1px solid #000;
43
+            line-height: 40px;
44
+            padding: 0 10px;
45
+          "
46
+        >
47
+          <div>
48
+            姓名:{{
49
+              advicePrint[0].patient.name
50
+                ? advicePrint[0].patient.name.indexOf("(") > -1
51
+                  ? advicePrint[0].patient.name.substring(
52
+                    0,
53
+                    advicePrint[0].patient.name.indexOf("(")
54
+                  )
55
+                  : advicePrint[0].patient.name
56
+                : ""
57
+            }}
58
+          </div>
59
+          <div>
60
+            性别:
61
+            <span v-if="advicePrint[0].patient.gender == 1">男</span>
62
+            <span v-if="advicePrint[0].patient.gender == 2">女</span>
63
+          </div>
64
+          <!--          <div>-->
65
+          <!--            年龄:{{-->
66
+          <!--              advicePrint[0].patient.age ? advicePrint[0].patient.age : ""-->
67
+          <!--            }}岁-->
68
+          <!--          </div>-->
69
+          <div>年龄:{{getAge(advicePrint[0].patient)?getAge(advicePrint[0].patient):""}}岁</div>
70
+
71
+        </div>
72
+        <div style="margin-bottom: 20px; padding: 10px 10px 0" v-if="org_id!=10278 && org_id!=10138 && org_id!=0">
73
+          病史摘要:{{
74
+            history.history_of_present_illness
75
+              ? history.history_of_present_illness
76
+              : ""
77
+          }}
78
+        </div>
79
+        <!-- <div style="margin-bottom:20px;padding:0 10px;">体格检查:
80
+                    <span>体温:{{ history.temperature ? history.temperature + '℃' : '/' }}</span>
81
+                    <span>脉搏:{{ history.pulse ? history.pulse + '次/分' : '/' }}</span>
82
+                    <span>呼吸:{{ history.breathing ? history.breathing + '次/分' : '/' }}</span>
83
+                    <span>血压:{{ history.sbp }}/{{ history.dbp }}mmHg</span>
84
+                </div> -->
85
+        <div style="margin-bottom: 20px; padding: 0 10px">
86
+          临床诊断:{{ getDiagnosis(advicePrint[0].info.diagnosis) }}
87
+        </div>
88
+        <div style="display: flex; margin-bottom: 20px; padding: 0 10px">
89
+          <div>检验项目:</div>
90
+          <div>
91
+<!--            <div v-for="item in projectPrint" style="margin-bottom: 10px">-->
92
+<!--              {{ item.team.project_team }}-->
93
+<!--            </div>-->
94
+            <div v-for="item in singleProjectPrint" style="margin-bottom: 10px">
95
+              {{ item.project.project_name }}
96
+            </div>
97
+          </div>
98
+        </div>
99
+        <div
100
+          style="
101
+            display: flex;
102
+            justify-content: space-between;
103
+            border-top: 1px solid #000;
104
+            line-height: 40px;
105
+            padding: 0 10px;
106
+          "
107
+        >
108
+          <div>开单医生:{{ doctor ? doctor : "" }}</div>
109
+          <div>
110
+            开单日期:
111
+            {{ getTime(pre_time) ? getTime(pre_time).split(" ")[0] : "" }}
112
+          </div>
113
+          <div>
114
+            医生签字:
115
+
116
+            <img
117
+              v-if="setAdminUserES(advicePrint[0].creator)"
118
+              style="height: 30px"
119
+              :src="setAdminUserES(advicePrint[0].creator)"
120
+              alt=""
121
+              srcset=""
122
+            />
123
+            <span
124
+              style="width: 100px; display: inline-block"
125
+              v-else-if="advicePrint[0].doctor != ''"
126
+            >
127
+              {{ advicePrint[0].doctor ? advicePrint[0].doctor : "" }}
128
+            </span>
129
+            <span v-else>
130
+
131
+            </span>
132
+          </div>
133
+        </div>
134
+      </div>
135
+      <img
136
+        style="width: 100%"
137
+        v-if="org_id == 10138 "
138
+        src="https://kuyi.shengws.com/bailin/blend.jpg"
139
+        alt=""
140
+      />
141
+      <img
142
+        style="width: 100%"
143
+        v-if="org_id == 10278 || org_id == 0"
144
+        src="https://kuyi.shengws.com/bailinbeier.png"
145
+        alt=""
146
+      />
147
+    </div>
148
+  </div>
149
+</template>
150
+<script>
151
+import { jsGetAge, uParseTime } from "@/utils/tools";
152
+import {
153
+  getAllDoctorList,
154
+  getPrescriptionPrint,
155
+  getHisPatientDetail,
156
+  getPatientCaseHistory,
157
+} from "@/api/project/project";
158
+import { getInitData } from "@/api/his/his";
159
+export default {
160
+  props: {
161
+    patient_id: Number,
162
+    record_date: String,
163
+    prescription_id: Number,
164
+    ids: String,
165
+  },
166
+  data() {
167
+    return {
168
+      doctorList_1: [],
169
+      doctorList: [],
170
+      advicePrint: {},
171
+      patient: {},
172
+      tableData: [],
173
+      prescriptionInfo: [],
174
+      hisPatient: {},
175
+      department: [],
176
+      prescriptions: [],
177
+      projectList: [],
178
+      doc_name: "",
179
+      orgname: "",
180
+      diagnoses: [],
181
+      pageArr: [],
182
+      faber: {},
183
+      total: 0,
184
+      projectPrint: [],
185
+      time: "",
186
+      doctor: "",
187
+      org_id: "",
188
+      singleProjectPrint: [],
189
+      operatorMaps: {},
190
+    };
191
+  },
192
+  methods: {
193
+    getAge(patient){
194
+      // 将时间戳转换为 Date 对象
195
+      const birthday = new Date(patient.birthday* 1000);
196
+
197
+      // 获取当前日期
198
+      const now = new Date();
199
+      // 计算年龄差
200
+      const ageDiffMs = now - birthday;
201
+      const ageDate = new Date(ageDiffMs); // 不需要减掉 1970 年的时间戳
202
+      // 提取年份
203
+      const age = ageDate.getUTCFullYear() - 1970;
204
+      return age
205
+    },
206
+    getPatientCaseHistory() {
207
+      const params = {
208
+        patient_id: this.patient_id,
209
+      };
210
+      getPatientCaseHistory(params).then((response) => {
211
+        if (response.data.state == 1) {
212
+          var history = response.data.data.history;
213
+          // console.log("中国history222222", history);
214
+          this.history = history;
215
+        }
216
+      });
217
+    },
218
+    getAllDoctorList() {
219
+      getAllDoctorList().then((response) => {
220
+        if (response.data.state == 1) {
221
+          var doctor = response.data.data.doctor;
222
+
223
+          this.doctorList = doctor;
224
+        }
225
+      });
226
+    },
227
+
228
+    getDoctor(id) {
229
+      var name = "";
230
+      for (let i = 0; i < this.doctorList.length; i++) {
231
+        if (id == this.doctorList[i].admin_user_id) {
232
+          name = this.doctorList[i].user_name;
233
+        }
234
+      }
235
+      return name;
236
+    },
237
+    getTime(value, temp) {
238
+      if (value != undefined) {
239
+        return uParseTime(value, temp);
240
+      }
241
+      return "";
242
+    },
243
+
244
+    getPrescriptionPrint() {
245
+      var params = {
246
+        // patient_id:this.patient_id,
247
+        // record_date:this.record_date,
248
+        // prescription_id:this.prescription_id,
249
+        patient_id: this.patient_id,
250
+        record_date: this.record_date,
251
+        prescription_id: this.prescription_id,
252
+        ids: this.ids,
253
+        p_type: 2,
254
+      };
255
+      // console.log("params", params);
256
+      getPrescriptionPrint(params).then((response) => {
257
+        if (response.data.state == 1) {
258
+          var advicePrint = response.data.data.advicePrint;
259
+          // console.log("adviceprint9999", advicePrint);
260
+          this.advicePrint = advicePrint;
261
+          this.prescriptions = advicePrint;
262
+          // console.log("处方222222", this.prescriptions);
263
+          var hisPatient = response.data.data.hisPatient;
264
+          // console.log("hisPatient", hisPatient);
265
+          this.hisPatient = hisPatient;
266
+          let projectPrint = [];
267
+          let total = 0;
268
+          this.advicePrint.map((item) => {
269
+            // console.log("imte233232323232323223", item.project);
270
+            if (item.project.length > 0) {
271
+              item.project.map((it) => {
272
+                if (it.type == 2) {
273
+                  if (it.project.cost_classify == 3) {
274
+                    projectPrint.push(it);
275
+                    total += it.project.price * parseInt(it.count);
276
+                  }
277
+                }
278
+              });
279
+            }
280
+          });
281
+          this.doctorList_1 = response.data.data.eles;
282
+          // console.log(this.doctorList_1, "医生列表");
283
+          if (this.doctorList_1.length > 0) {
284
+            var operatorsLen = this.doctorList_1.length;
285
+            for (var index = 0; index < operatorsLen; index++) {
286
+              this.$set(
287
+                this.operatorMaps,
288
+                this.doctorList_1[index].creator,
289
+                this.doctorList_1[index]
290
+              );
291
+            }
292
+          }
293
+          let data = [];
294
+          let data2 = [];
295
+          projectPrint.map((item) => {
296
+              data2.push(item);
297
+          });
298
+          this.projectPrint = data;
299
+          console.log("列表", this.projectPrint);
300
+          this.total = total.toFixed(2);
301
+          this.pre_time = this.advicePrint[0].pre_time;
302
+          this.doctor = this.advicePrint[0].doctor;
303
+
304
+          this.singleProjectPrint = data2;
305
+
306
+          var projectlist = response.data.data.projectlist;
307
+
308
+          var projectlist = response.data.data.projectlist;
309
+          // console.log("所有项目列表", projectlist);
310
+          this.projectList = projectlist;
311
+          this.getPage();
312
+          let outputlist1Name = response.data.data.his.patient_info
313
+            ? JSON.parse(response.data.data.his.patient_info)
314
+            : {};
315
+          this.faber = outputlist1Name;
316
+        }
317
+      });
318
+    },
319
+    // 电子签名
320
+    setAdminUserES(id) {
321
+      // console.log(id, "id");
322
+      if (id == 0) {
323
+        return "";
324
+      }
325
+      if (id in this.operatorMaps) {
326
+        // console.log(this.operatorMaps, "this.operatorMaps");
327
+        return this.operatorMaps[id].url;
328
+      } else {
329
+        // console.log("po");
330
+        return "";
331
+      }
332
+    },
333
+    getHisPatientDetail() {
334
+      const params = {
335
+        patient_id: this.patient_id,
336
+      };
337
+      getHisPatientDetail(params).then((response) => {
338
+        if (response.data.state == 1) {
339
+          var hisPatient = response.data.data.hisPatient;
340
+          // console.log("挂号病人", hisPatient);
341
+          this.hisPatient = hisPatient;
342
+        }
343
+      });
344
+    },
345
+    getInitData() {
346
+      getInitData().then((response) => {
347
+        if (response.data.state == 1) {
348
+          this.department = response.data.data.department;
349
+          this.diagnoses = response.data.data.diagnose.sort(this.compare("id"));
350
+          // console.log("争端", this.diagnoses);
351
+        }
352
+      });
353
+    },
354
+    getDepart(id) {
355
+      var name = "";
356
+      for (let i = 0; i < this.department.length; i++) {
357
+        if (id == this.department[i].id) {
358
+          name = this.department[i].name;
359
+        }
360
+      }
361
+      return name;
362
+    },
363
+    getTotalOne(id) {
364
+      var total = 0;
365
+      var addtotal = 0;
366
+      for (let i = 0; i < this.prescriptions.length; i++) {
367
+        if (id == this.prescriptions[i].id) {
368
+          if (this.prescriptions[i].project != null) {
369
+            for (let a = 0; a < this.prescriptions[i].project.length; a++) {
370
+              total =
371
+                total +
372
+                this.prescriptions[i].project[a].price *
373
+                this.prescriptions[i].project[a].count;
374
+            }
375
+          }
376
+
377
+          if (this.prescriptions[i].additionalcharge != null) {
378
+            for (
379
+              let a = 0;
380
+              a < this.prescriptions[i].additionalcharge.length;
381
+              a++
382
+            ) {
383
+              addtotal =
384
+                addtotal +
385
+                this.prescriptions[i].additionalcharge[a].price *
386
+                this.prescriptions[i].additionalcharge[a].count;
387
+            }
388
+          }
389
+          addtotal = Math.floor(addtotal * 100) / 100;
390
+        }
391
+      }
392
+
393
+      for (let i = 0; i < this.prescriptions.length; i++) {
394
+        if (id == this.prescriptions[i].id) {
395
+          if (this.prescriptions[i].advices != null) {
396
+            for (let a = 0; a < this.prescriptions[i].advices.length; a++) {
397
+              total =
398
+                total +
399
+                this.prescriptions[i].advices[a].price *
400
+                this.prescriptions[i].advices[a].prescribing_number;
401
+            }
402
+          }
403
+
404
+          if (this.prescriptions[i].additionalcharge != null) {
405
+            for (
406
+              let a = 0;
407
+              a < this.prescriptions[i].additionalcharge.length;
408
+              a++
409
+            ) {
410
+              addtotal =
411
+                addtotal +
412
+                this.prescriptions[i].additionalcharge[a].price *
413
+                this.prescriptions[i].additionalcharge[a].count;
414
+            }
415
+          }
416
+          addtotal = Math.floor(addtotal * 100) / 100;
417
+        }
418
+      }
419
+
420
+      return total + addtotal;
421
+    },
422
+
423
+    getProjectName(id) {
424
+      var project_name = "";
425
+      for (let i = 0; i < this.projectList.length; i++) {
426
+        if (id == this.projectList[i].id) {
427
+          project_name = this.projectList[i].project_name;
428
+        }
429
+      }
430
+      return project_name;
431
+    },
432
+
433
+    getDiagnosis(ids) {
434
+      let newIds = ids.split(",").sort(function (a, b) {
435
+        return a - b;
436
+      });
437
+
438
+      var name = "";
439
+      let nameArr = [];
440
+      for (let i = 0; i < this.diagnoses.length; i++) {
441
+        // if(id == this.diagnoses[i].id){
442
+        //    name = this.diagnoses[i].class_name
443
+        // }
444
+
445
+        if (newIds.indexOf(this.diagnoses[i].id.toString()) > -1) {
446
+          // name += diagnoses[i].class_name + ' '
447
+          nameArr.push(this.diagnoses[i].class_name);
448
+        }
449
+      }
450
+      let newNameArr = [];
451
+      nameArr.map((item, index) => {
452
+        if (item == "尿毒症") {
453
+          newNameArr.push(item);
454
+          nameArr.splice(index, 1, "");
455
+        }
456
+      });
457
+      newNameArr.push(...nameArr);
458
+      return newNameArr.join(" ");
459
+    },
460
+    compare(property) {
461
+      return function (a, b) {
462
+        var value1 = a[property];
463
+        var value2 = b[property];
464
+        return value1 - value2; //升序排序
465
+      };
466
+    },
467
+    getPage() {
468
+      this.page = 1;
469
+      this.pageArr = [];
470
+
471
+      this.advicePrint.map((item) => {
472
+        let arr = [];
473
+        item.pageArr = [];
474
+        if (item.advices.length <= 5) {
475
+          this.page = 1;
476
+          arr.push(item.advices.length);
477
+          item.pageArr.push(arr);
478
+        } else if (item.advices.length > 5) {
479
+          this.page = parseInt(item.advices.length / 5);
480
+          let num = item.advices.length % 5;
481
+          for (var i = 0; i < this.page; i++) {
482
+            item.pageArr.push([5]);
483
+          }
484
+          if (num != 0) {
485
+            item.pageArr.push([num]);
486
+          }
487
+        }
488
+      });
489
+      // console.log('this.pageArr',this.pageArr)
490
+    },
491
+    getName(list) {
492
+      console.log("list", list);
493
+      let new_list = [];
494
+      for (let i = 0; i < list.length; i++) {
495
+        if (list[i].aac031 == "1") {
496
+          new_list.push(list[i]);
497
+        }
498
+      }
499
+
500
+      switch (new_list[0].bcc334) {
501
+        case "A31001":
502
+          return "深圳医保1档";
503
+          break;
504
+        case "A31002":
505
+          return "深圳医保2档";
506
+
507
+          break;
508
+        case "A31003":
509
+          return "深圳医保3档";
510
+
511
+          break;
512
+        case "A31004":
513
+          return "二档(少儿)";
514
+
515
+          break;
516
+        case "A31005":
517
+          return "学生二档";
518
+
519
+          break;
520
+        case "A31006":
521
+          return "大学生二档";
522
+
523
+          break;
524
+        case "A32001":
525
+          return "在职公务员";
526
+          break;
527
+        case "A32002":
528
+          return "在职驻深公务员";
529
+
530
+          break;
531
+        case "A39301":
532
+          return "家属统筹医疗";
533
+
534
+          break;
535
+        case "A41001":
536
+          return "工伤在职";
537
+
538
+          break;
539
+        case "A51001":
540
+          return "生育在职";
541
+
542
+          break;
543
+        case "A52001":
544
+          return "生育医疗一档";
545
+
546
+          break;
547
+        case "A52002":
548
+          return "生育医疗一档";
549
+
550
+          break;
551
+        case "C31001":
552
+          return "一档医疗退休";
553
+
554
+          break;
555
+        case "C31002":
556
+          return "二档医疗退休";
557
+          break;
558
+      }
559
+    },
560
+  },
561
+  created() {
562
+    this.getAllDoctorList();
563
+    this.getInitData();
564
+    this.getPrescriptionPrint();
565
+    this.getHisPatientDetail();
566
+    this.getPatientCaseHistory();
567
+    var xtuser = this.$store.getters.xt_user;
568
+    this.orgname = xtuser.org.org_name;
569
+    this.org_id = this.$store.getters.xt_user.org_id;
570
+  },
571
+  watch: {
572
+    ids: function (val) {
573
+      this.ids = val;
574
+      this.getPrescriptionPrint();
575
+    },
576
+  },
577
+};
578
+</script>
579
+
580
+
581
+<style lang="scss" scoped>
582
+.prescription-print {
583
+  -webkit-box-shadow: 0 1px 4px rgba(0, 0, 0, 0.27),
584
+  0 0 60px rgba(0, 0, 0, 0.06) inset;
585
+  -moz-box-shadow: 0 1px 4px rgba(0, 0, 0, 0.27),
586
+  0 0 40px rgba(0, 0, 0, 0.06) inset;
587
+  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.27), 0 0 40px rgba(0, 0, 0, 0.06) inset;
588
+  margin-bottom: 20px;
589
+  padding: 20px 10px;
590
+}
591
+.printTitle {
592
+  font-size: 22px;
593
+  text-align: center;
594
+  font-weight: bold;
595
+  margin-bottom: 10px;
596
+}
597
+.infoTitle {
598
+  display: flex;
599
+  margin-top: 10px;
600
+  line-height: 24px;
601
+}
602
+.infoTitle div {
603
+  width: 200px;
604
+}
605
+.infoMain {
606
+  display: flex;
607
+  flex-wrap: wrap;
608
+  margin-top: 10px;
609
+}
610
+.infoMain div {
611
+  width: 50%;
612
+  line-height: 24px;
613
+}
614
+.prescriptionBox {
615
+  padding: 0 10px;
616
+  min-height: 400px;
617
+}
618
+.Rp {
619
+  font-size: 22px;
620
+  font-weight: bold;
621
+}
622
+.drugsBox {
623
+  padding-left: 40px;
624
+  margin-bottom: 10px;
625
+}
626
+.drugsBox div {
627
+  line-height: 20px;
628
+}
629
+.drugsOne {
630
+  line-height: 24px;
631
+}
632
+.drugsOne span {
633
+  margin-right: 20px;
634
+}
635
+.doctorBox {
636
+  display: flex;
637
+  justify-content: space-between;
638
+  padding: 0 10px;
639
+  line-height: 24px;
640
+  border-bottom: 2px solid #000;
641
+}
642
+.actionBar {
643
+  display: flex;
644
+  justify-content: space-between;
645
+  line-height: 24px;
646
+  padding: 0 10px;
647
+}
648
+.actionBar p {
649
+  width: 150px;
650
+}
651
+.under_line {
652
+  display: inline-block;
653
+  border-bottom: 1px solid #000;
654
+  flex: 1;
655
+}
656
+</style>

+ 15 - 7
src/xt_pages/outpatientDoctorStation/doctorDesk.vue Visa fil

@@ -535,7 +535,7 @@ export default {
535 535
 
536 536
       tableHeight: '',
537 537
       saveloading: false,
538
-      
538
+
539 539
       fullHeight: document.documentElement.clientHeight,
540 540
       month_prescriptions: [],
541 541
       isloading: false,
@@ -668,20 +668,28 @@ export default {
668 668
           style: style,
669 669
           scanStyles: false
670 670
         })
671
-      }
672
-      else {
671
+      } else if(this.org_id == 10188 || this.org_id == 0){
673 672
         const style =
674
-            '@media print {#prescription-print{font-size:14px;border:1px solid white}.prescription-print:last-child {page-break-after: auto;}.printTitle{font-size: 22px;text-align: center;font-weight: bold;margin-bottom: 10px;}.infoTitle{display: flex;border-bottom: 2px solid #000;margin-top:10px;line-height: 1px; padding:0 10px;}.infoTitle p{width: 200px;font-size:14px;}.infoMain{display: flex;flex-wrap: wrap;border-bottom: 2px solid #000;padding:0 10px;}.infoMain div{width: 50%;line-height: 24px;}.prescriptionBox{min-height:450px;}.Rp{font-size: 18px;font-weight: bold;}.drugsBox{padding-left: 40px;margin-bottom: 10px;}.drugsBox div{line-height: 20px;}.drugsOne{line-height: 24px;}.drugsOne span{margin-right: 20px;}.doctorBox{display: flex;justify-content: space-between;padding:0 10px;line-height: 24px;border-bottom: 2px solid #000;}.actionBar{display: flex;justify-content: space-between; line-height: 24px;padding:0 10px;}.actionBar p{width:150px;}.under_line{display: inline-block;border-bottom: 1px solid #000;flex: 1;}@media print {html {zoom: 88%;}}#prescription-print{font-size:14px;border:1px solid white}.prescription-print:last-child {page-break-after: auto;}.printTitle{font-size: 22px;text-align: center;font-weight: bold;margin-bottom: 10px;}.infoTitle{display: flex;margin-top:10px;}.infoTitle div{width: 200px;}.infoMain{display: flex;flex-wrap: wrap;margin-top:10px;}.infoMain div{width: 50%;line-height: 24px;}.prescriptionBox{min-height:450px;}.Rp{font-size: 18px;font-weight: bold;}.drugsBox{padding-left: 40px;margin-bottom: 10px;}.drugsBox div{line-height: 20px;}.drugsOne{line-height: 24px;}.drugsOne span{margin-right: 20px;}.doctorBox{display: flex;justify-content: space-between;padding:0 10px;line-height: 24px;border-bottom: 2px solid #000;}.doctorBoxtwo{display: flex;justify-content: space-between;padding:0 10px;line-height: 24px;}.actionBar{display: flex;justify-content: space-between; line-height: 24px;padding:0 10px;}.actionBar p{width:150px;}.under_line{display: inline-block;border-bottom: 1px solid #000;flex: 1;}.NoCell{display: flex;justify-content: space-between;margin-bottom: 10px;}.underLine{display: inline-block;border-bottom: 1px solid #000;text-align: center;line-height: 24px;}.basicCell{display: flex;} .basicCell span{line-height: 24px;margin-bottom: 10px;}}'
673
+          '@media print {#prescription-print{font-size:14px;border:1px solid white}.prescription-print:last-child {page-break-after: auto;}.printTitle{font-size: 22px;text-align: center;font-weight: bold;margin-bottom: 10px;}.infoTitle{display: flex;border-bottom: 2px solid #000;margin-top:10px;line-height: 1px; padding:0 10px;}.infoTitle p{width: 200px;font-size:14px;}.infoMain{display: flex;flex-wrap: wrap;border-bottom: 2px solid #000;padding:0 10px;}.infoMain div{width: 50%;line-height: 24px;}.prescriptionBox{min-height:450px;}.Rp{font-size: 18px;font-weight: bold;}.drugsBox{padding-left: 40px;margin-bottom: 10px;}.drugsBox div{line-height: 20px;}.drugsOne{line-height: 24px;}.drugsOne span{margin-right: 20px;} .doctorBox{display: flex;justify-content: space-between;padding:0 10px;line-height: 24px;border-bottom: 2px solid #000;} .doctorBox p {margin-left: auto} .actionBar{display: flex;justify-content: space-between; line-height: 24px;padding:0 10px;}.actionBar p{width:150px;}.under_line{display: inline-block;border-bottom: 1px solid #000;flex: 1;}@media print {html {zoom: 88%;}}#prescription-print{font-size:14px;border:1px solid white}.prescription-print:last-child {page-break-after: auto;}.printTitle{font-size: 22px;text-align: center;font-weight: bold;margin-bottom: 10px;}.infoTitle{display: flex;margin-top:10px;}.infoTitle div{width: 200px;}.infoMain{display: flex;flex-wrap: wrap;margin-top:10px;}.infoMain div{width: 50%;line-height: 24px;}.prescriptionBox{min-height:450px;}.Rp{font-size: 18px;font-weight: bold;}.drugsBox{padding-left: 40px;margin-bottom: 10px;}.drugsBox div{line-height: 20px;}.drugsOne{line-height: 24px;}.drugsOne span{margin-right: 20px;}.doctorBox{display: flex;justify-content: space-between;padding:0 10px;line-height: 24px;border-bottom: 2px solid #000;}.doctorBoxtwo{display: flex;justify-content: space-between;padding:0 10px;line-height: 24px;}.actionBar{display: flex;justify-content: space-between; line-height: 24px;padding:0 10px;}.actionBar p{width:150px;}.under_line{display: inline-block;border-bottom: 1px solid #000;flex: 1;}.NoCell{display: flex;justify-content: space-between;margin-bottom: 10px;}.underLine{display: inline-block;border-bottom: 1px solid #000;text-align: center;line-height: 24px;}.basicCell{display: flex;} .basicCell span{line-height: 24px;margin-bottom: 10px;}}'
675 674
         printJS({
676 675
           printable: 'printMain',
677 676
           type: 'html',
678 677
           style: style,
679 678
           scanStyles: false
680 679
         })
681
-        
680
+      } else {
681
+        const style =
682
+            '@media print {#prescription-print{font-size:14px;border:1px solid white}.prescription-print:last-child {page-break-after: auto;}.printTitle{font-size: 22px;text-align: center;font-weight: bold;margin-bottom: 10px;}.infoTitle{display: flex;border-bottom: 2px solid #000;margin-top:10px;line-height: 1px; padding:0 10px;}.infoTitle p{width: 200px;font-size:14px;}.infoMain{display: flex;flex-wrap: wrap;border-bottom: 2px solid #000;padding:0 10px;}.infoMain div{width: 50%;line-height: 24px;}.prescriptionBox{min-height:450px;}.Rp{font-size: 18px;font-weight: bold;}.drugsBox{padding-left: 40px;margin-bottom: 10px;}.drugsBox div{line-height: 20px;}.drugsOne{line-height: 24px;}.drugsOne span{margin-right: 20px;}.doctorBox{display: flex;justify-content: space-between;padding:0 10px;line-height: 24px;border-bottom: 2px solid #000;} .actionBar{display: flex;justify-content: space-between; line-height: 24px;padding:0 10px;}.actionBar p{width:150px;}.under_line{display: inline-block;border-bottom: 1px solid #000;flex: 1;}@media print {html {zoom: 88%;}}#prescription-print{font-size:14px;border:1px solid white}.prescription-print:last-child {page-break-after: auto;}.printTitle{font-size: 22px;text-align: center;font-weight: bold;margin-bottom: 10px;}.infoTitle{display: flex;margin-top:10px;}.infoTitle div{width: 200px;}.infoMain{display: flex;flex-wrap: wrap;margin-top:10px;}.infoMain div{width: 50%;line-height: 24px;}.prescriptionBox{min-height:450px;}.Rp{font-size: 18px;font-weight: bold;}.drugsBox{padding-left: 40px;margin-bottom: 10px;}.drugsBox div{line-height: 20px;}.drugsOne{line-height: 24px;}.drugsOne span{margin-right: 20px;}.doctorBox{display: flex;justify-content: space-between;padding:0 10px;line-height: 24px;border-bottom: 2px solid #000;}.doctorBoxtwo{display: flex;justify-content: space-between;padding:0 10px;line-height: 24px;}.actionBar{display: flex;justify-content: space-between; line-height: 24px;padding:0 10px;}.actionBar p{width:150px;}.under_line{display: inline-block;border-bottom: 1px solid #000;flex: 1;}.NoCell{display: flex;justify-content: space-between;margin-bottom: 10px;}.underLine{display: inline-block;border-bottom: 1px solid #000;text-align: center;line-height: 24px;}.basicCell{display: flex;} .basicCell span{line-height: 24px;margin-bottom: 10px;}}'
683
+        printJS({
684
+          printable: 'printMain',
685
+          type: 'html',
686
+          style: style,
687
+          scanStyles: false
688
+        })
689
+
682 690
       }
683 691
       this.innerVisible = false
684
-      
692
+
685 693
       // this.$nextTick(() => {
686 694
       //   this.$refs.print.printThisPage()
687 695
       //   this.$refs.treatPrint.printThisPage()
@@ -1472,7 +1480,7 @@ export default {
1472 1480
         'type': this.radio,
1473 1481
         'sch_type': this.schedule_type
1474 1482
       }
1475
-      
1483
+
1476 1484
       this.un_cure_data = []
1477 1485
       this.cure_data = []
1478 1486
       this.all_data = []

+ 20 - 6
src/xt_pages/outpatientDoctorStation/print.vue Visa fil

@@ -3,11 +3,21 @@
3 3
     <div class="dialysisPage" style="padding-top: 40px">
4 4
       <div v-if="org_id != 10138 && org_id != 10278 && org_id != 10243">
5 5
 
6
-        <printOne v-if="org_id != 10088 && org_id != 10215 && org_id != 10375 && org_id !=0 " v-bind:childResponse="childResponse" 
7
-        :advicePrint="advicePrint" :ids="ids" :patient="patient" :hisPatient="hisPatient" 
8
-        :doctorPorject="doctorPorject" :patient_id="patient_id" :record_date="record_date" 
6
+        <printOne v-if="org_id != 10088 && org_id != 10215 && org_id != 10375 && org_id != 10188" v-bind:childResponse="childResponse"
7
+        :advicePrint="advicePrint" :ids="ids" :patient="patient" :hisPatient="hisPatient"
8
+        :doctorPorject="doctorPorject" :patient_id="patient_id" :record_date="record_date"
9 9
         :prescription_id="prescription_id"></printOne>
10
-        <prinSeven v-if="org_id == 10375 ||org_id ==0" 
10
+
11
+
12
+        <print-ten-one
13
+          v-if="org_id == 10188" v-bind:childResponse="childResponse"
14
+          :advicePrint="advicePrint" :ids="ids" :patient="patient" :hisPatient="hisPatient"
15
+          :doctorPorject="doctorPorject" :patient_id="patient_id" :record_date="record_date"
16
+          :prescription_id="prescription_id"
17
+        ></print-ten-one>
18
+
19
+
20
+        <prinSeven v-if="org_id == 10375"
11 21
           v-bind:childResponse="childResponse"
12 22
           :advicePrint="advicePrint"
13 23
           :ids="ids"
@@ -91,9 +101,13 @@ import {
91 101
   getAllDoctorList,
92 102
   getAllHisPatientList,
93 103
 } from "@/api/project/project";
104
+import PrintTen from '../outpatientCharges/invoiceTemplate/printTen.vue'
105
+import PrintTenOne from './template/printTenOne.vue'
94 106
 export default {
95 107
   name: "dialysisPrintOrder",
96 108
   components: {
109
+    PrintTenOne,
110
+    PrintTen,
97 111
     BreadCrumb,
98 112
     printOne,
99 113
     printThree,
@@ -144,10 +158,10 @@ export default {
144 158
             scanStyles: false,
145 159
           });
146 160
         }, 500);
147
-      } 
161
+      }
148 162
        else {
149 163
         const style =
150
-          "@media print {#prescription-print{font-size:14px;}.prescription-print:last-child {page-break-after: auto;}.printTitle{font-size: 22px;text-align: center;font-weight: bold;}.infoTitle{display: flex;border-bottom: 2px solid #000;margin-top:10px;line-height: 1px; padding:0 10px;}.infoTitle p{width: 200px;font-size:14px;}.infoMain{display: flex;flex-wrap: wrap;border-bottom: 2px solid #000;padding:0 10px;}.infoMain div{width: 50%;line-height: 24px;}.prescriptionBox{padding:0 10px;min-height:450px;}.Rp{font-size: 22px;font-weight: bold;}.drugsBox{padding-left: 40px;margin-bottom: 10px;position: relative;}.drugsBox div{line-height: 20px;width:80%} .drugsOne{line-height: 1px;} .drugsOne span{margin-right: 20px;} .doctorBox{display: flex; justify-content: space-between; padding:0 10px; line-height: 1px; border-bottom: 2px solid #000;} .actionBar{display: flex; justify-content: space-between; line-height: 1px; padding:0 10px;} .actionBar p{width:150px;}}";
164
+          "@media print {#prescription-print{font-size:14px;}.prescription-print:last-child {page-break-after: auto;}.printTitle{font-size: 22px;text-align: center;font-weight: bold;}.infoTitle{display: flex;border-bottom: 2px solid #000;margin-top:10px;line-height: 1px; padding:0 10px;}.infoTitle p{width: 200px;font-size:14px;}.infoMain{display: flex;flex-wrap: wrap;border-bottom: 2px solid #000;padding:0 10px;}.infoMain div{width: 50%;line-height: 24px;}.prescriptionBox{padding:0 10px;min-height:450px;}.Rp{font-size: 22px;font-weight: bold;}.drugsBox{padding-left: 40px;margin-bottom: 10px;position: relative;}.drugsBox div{line-height: 20px;width:80%} .drugsOne{line-height: 1px;} .drugsOne span{margin-right: 20px;} .doctorBoxxxx{display: flex; justify-content: space-between; padding:0 10px; line-height: 1px; border-bottom: 2px solid #000;} .actionBar{display: flex; justify-content: space-between; line-height: 1px; padding:0 10px;} .doctorBoxxxx p {margin-left: auto} .actionBar p{width:150px;}}";
151 165
         printJS({
152 166
           printable: "prescriptionPrint",
153 167
           type: "html",

+ 2 - 3
src/xt_pages/outpatientDoctorStation/recordPrint.vue Visa fil

@@ -17,7 +17,6 @@
17 17
           org_id != 10217 && org_id != 10188 &&org_id != 10318&&
18 18
           org_id != 9675 &&
19 19
           org_id != 9671 &&
20
-          org_id != 0 &&
21 20
           org_id != 10164 && org_id != 10341 && 
22 21
           org_id != 10342 && org_id != 10138 &&
23 22
           org_id != 10278
@@ -48,7 +47,7 @@
48 47
       ></printTwo>
49 48
       
50 49
       <printThree
51
-        v-if="org_id == 10318 || org_id == 0 "
50
+        v-if="org_id == 10318"
52 51
         ref="printThree"
53 52
         v-bind:childResponse="childResponse"
54 53
         :patient="patient"
@@ -59,7 +58,7 @@
59 58
       <!-- || org_id == 0-->
60 59
       </printThree>
61 60
       <printFour
62
-        v-if="org_id == 10138 || org_id == 10278 || org_id == 10341 || org_id == 10342 || org_id == 0"
61
+        v-if="org_id == 10138 || org_id == 10278 || org_id == 10341 || org_id == 10342"
63 62
         ref="printFour"
64 63
         v-bind:childResponse="childResponse"
65 64
         :patient="patient"

+ 1 - 1
src/xt_pages/outpatientDoctorStation/recordTemplate/printOne.vue Visa fil

@@ -32,7 +32,7 @@
32 32
         </div>
33 33
         <div class="otherInfo">
34 34
             <div>药物过敏史:</div>
35
-            <div style="flex:1;">{{patient.past_history?patient.past_history:''}}</div>
35
+            <div style="flex:1;">{{history.allergic_history?history.allergic_history:''}}</div>
36 36
         </div>
37 37
         <div class="otherInfo">
38 38
             <div>病历编号:</div>

+ 309 - 81
src/xt_pages/outpatientDoctorStation/template/printOne.vue Visa fil

@@ -21,35 +21,36 @@
21 21
         >
22 22
           {{ orgname }}处方笺
23 23
         </div>
24
-        <!--<div class="printTitle">{{orgname}}处方笺</div>-->
25
-        <div class="infoTitle">
26
-          <p>姓名:{{ item.patient.name ? item.patient.name : "" }}</p>
27
-          <p>
28
-            性别:
29
-            <span v-if="item.patient.gender == 1">男</span>
30
-            <span v-if="item.patient.gender == 2">女</span>
31
-          </p>
32
-          <p>年龄:{{ getAge(item.patient) ? getAge(item.patient) : "" }}岁</p>
33
-        </div>
34
-        <div class="infoMain">
35
-          <div style="margin-bottom: 10px">
36
-            门诊号:{{ hisPatient.number ? hisPatient.number : "" }}
37
-          </div>
38
-          <div style="margin-bottom: 10px">
39
-            科室:{{ item.info ? getDepart(item.info.departments) : "" }}
40
-          </div>
41
-          <div style="margin-bottom: 10px">
42
-            医保卡号:{{ item.hisPatient.number ? item.hisPatient.number : "" }}
43
-          </div>
44
-          <div style="margin-bottom: 10px" v-if="org_id != 10188">
45
-            电话:{{ item.patient.phone }}
46
-          </div>
47
-          <div style="margin-bottom: 10px" v-else>
48
-            日期:{{ getTime(item.ctime) ? getTime(item.ctime) : "" }}
24
+        <div >
25
+          <div class="infoTitle">
26
+            <p>姓名:{{ item.patient.name ? item.patient.name : "" }}</p>
27
+            <p>
28
+              性别:
29
+              <span v-if="item.patient.gender == 1">男</span>
30
+              <span v-if="item.patient.gender == 2">女</span>
31
+            </p>
32
+            <p>年龄:{{ getAge(item.patient) ? getAge(item.patient) : "" }}岁</p>
49 33
           </div>
50
-          <div>地址:{{ item.patient.home_address }}</div>
51
-          <div style="display: flex; width: 50%">
52
-            临床诊断:{{ getDiagnosis(item.info.diagnosis) }}
34
+          <div class="infoMain">
35
+            <div style="margin-bottom: 10px">
36
+              门诊号:{{ hisPatient.number ? hisPatient.number : "" }}
37
+            </div>
38
+            <div style="margin-bottom: 10px">
39
+              科室:{{ item.info ? getDepart(item.info.departments) : "" }}
40
+            </div>
41
+            <div style="margin-bottom: 10px">
42
+              医保卡号:{{ item.hisPatient.number ? item.hisPatient.number : "" }}
43
+            </div>
44
+            <div style="margin-bottom: 10px" v-if="org_id != 10188">
45
+              电话:{{ item.patient.phone }}
46
+            </div>
47
+            <div style="margin-bottom: 10px" v-else>
48
+              日期:{{ getTime(item.ctime) ? getTime(item.ctime) : "" }}
49
+            </div>
50
+            <div>地址:{{ item.patient.home_address }}</div>
51
+            <div style="display: flex; width: 50%">
52
+              临床诊断:{{ getDiagnosis(item.info.diagnosis) }}
53
+            </div>
53 54
           </div>
54 55
         </div>
55 56
         <div class="prescriptionBox" >
@@ -60,14 +61,14 @@
60 61
             :key="index"
61 62
             :style="{'page-break-after':index==yi&&item.advices.length>5? 'always':'auto'}"
62 63
           >
63
-          <!-- class="drugsBox"  item.advices.length>=5 ? 'danzhang' : 'drugsBox'  'page-break-after':item.advices.length>=3&& item.advices[2]?'always':'auto'-->
64
+            <!-- class="drugsBox"  item.advices.length>=5 ? 'danzhang' : 'drugsBox'  'page-break-after':item.advices.length>=3&& item.advices[2]?'always':'auto'-->
64 65
             <!-- <div class="drugsOne"><span style="font-weight:bold;">{{ index+1 + '.' }}</span>{{it.advice_name?it.advice_name:""}}&nbsp;&nbsp;{{it.single_dose}}{{it.single_dose_unit}}&nbsp;×&nbsp; {{it.prescribing_number}}{{it.prescribing_number_unit}}</div> -->
65 66
             <div class="drugsOne">
66 67
               <span style="font-weight: bold">{{ index + 1 + "." }}</span
67 68
               >{{ it.advice_name ? it.advice_name : "" }}&nbsp;&nbsp;<span
68
-                v-if="it.drug.min_unit != it.drug.dose_unit"
69
-                >{{ it.drug.dose }}{{ it.drug.dose_unit }}&nbsp;* &nbsp;</span
70
-              >{{ it.drug.min_number }}{{ it.drug.min_unit }}/{{
69
+              v-if="it.drug.min_unit != it.drug.dose_unit"
70
+            >{{ it.drug.dose }}{{ it.drug.dose_unit }}&nbsp;* &nbsp;</span
71
+            >{{ it.drug.min_number }}{{ it.drug.min_unit }}/{{
71 72
                 it.drug.max_unit
72 73
               }}&nbsp;×&nbsp; {{ it.prescribing_number
73 74
               }}{{ it.prescribing_number_unit }}
@@ -75,10 +76,10 @@
75 76
             <div style="margin-left: 100px">
76 77
               <span>用法:{{ it.single_dose }}{{ it.single_dose_unit }}</span
77 78
               >&nbsp;&nbsp;<span
78
-                >{{ it.execution_frequency }}&nbsp;{{
79
-                  it.delivery_way
80
-                }}&nbsp;</span
81
-              >&nbsp;&nbsp;<span>{{ it.advice_desc }}</span>
79
+            >{{ it.execution_frequency }}&nbsp;{{
80
+                it.delivery_way
81
+              }}&nbsp;</span
82
+            >&nbsp;&nbsp;<span>{{ it.advice_desc }}</span>
82 83
             </div>
83 84
           </div>
84 85
 
@@ -113,10 +114,10 @@
113 114
             <div style="margin-left: 100px">
114 115
               <span>用法:{{ it.single_dose }}{{ it.single_dose_unit }}</span
115 116
               >&nbsp;&nbsp;<span>{{ it.delivery_way }}</span
116
-              >&nbsp;&nbsp;<span>{{ it.advice_desc }}</span>
117
+            >&nbsp;&nbsp;<span>{{ it.advice_desc }}</span>
117 118
             </div>
118 119
           </div>
119
-          
120
+
120 121
           <div
121 122
             class="drugsBox"
122 123
             v-for="(it, i) in item.additionalcharge"
@@ -130,21 +131,223 @@
130 131
           </div>
131 132
           <div style="text-align: center">(以下空白)</div>
132 133
         </div>
133
-        <div class="doctorBox" v-if="org_id != 10188 && org_id != 0">
134
-          <p v-if="org_id == 10217 || org_id == 0">
134
+<!--        <div class="prescriptionBox" >-->
135
+<!--          <div class="Rp">Rp:</div>-->
136
+<!--          <div-->
137
+<!--            class="drugsBox"-->
138
+<!--            v-for="(it, index) in advicess" :key="index"-->
139
+<!--            :style="{'page-break-after':index==yi&&item.advices.length>5? 'always':'auto'}"-->
140
+<!--          >-->
141
+<!--            &lt;!&ndash; class="drugsBox"  item.advices.length>=5 ? 'danzhang' : 'drugsBox'  :style="{'page-break-after':index==yi&&item.advices.length>3? 'always':'auto'}"&ndash;&gt;-->
142
+<!--            &lt;!&ndash; <div class="drugsOne"><span style="font-weight:bold;">{{ index+1 + '.' }}</span>{{it.advice_name?it.advice_name:""}}&nbsp;&nbsp;{{it.single_dose}}{{it.single_dose_unit}}&nbsp;×&nbsp; {{it.prescribing_number}}{{it.prescribing_number_unit}}</div> &ndash;&gt;-->
143
+<!--            <template v-if="index==yi+1&&item.advices.length>5">-->
144
+<!--              <div style="margin: 20px 0px;">-->
145
+<!--                <div class="infoTitle">-->
146
+<!--                  <p>姓名:{{ item.patient.name ? item.patient.name : "" }}</p>-->
147
+<!--                  <p>-->
148
+<!--                    性别:-->
149
+<!--                    <span v-if="item.patient.gender == 1">男</span>-->
150
+<!--                    <span v-if="item.patient.gender == 2">女</span>-->
151
+<!--                  </p>-->
152
+<!--                  <p>年龄:{{ getAge(item.patient) ? getAge(item.patient) : "" }}岁</p>-->
153
+<!--                </div>-->
154
+<!--                <div class="infoMain">-->
155
+<!--                  <div style="margin-bottom: 10px">-->
156
+<!--                    门诊号:{{ hisPatient.number ? hisPatient.number : "" }}-->
157
+<!--                  </div>-->
158
+<!--                  <div style="margin-bottom: 10px">-->
159
+<!--                    科室:{{ item.info ? getDepart(item.info.departments) : "" }}-->
160
+<!--                  </div>-->
161
+<!--                  <div style="margin-bottom: 10px">-->
162
+<!--                    医保卡号:{{ item.hisPatient.number ? item.hisPatient.number : "" }}-->
163
+<!--                  </div>-->
164
+<!--                  <div style="margin-bottom: 10px" v-if="org_id != 10188">-->
165
+<!--                    电话:{{ item.patient.phone }}-->
166
+<!--                  </div>-->
167
+<!--                  <div style="margin-bottom: 10px" v-else>-->
168
+<!--                    日期:{{ getTime(item.ctime) ? getTime(item.ctime) : "" }}-->
169
+<!--                  </div>-->
170
+<!--                  <div>地址:{{ item.patient.home_address }}</div>-->
171
+<!--                  <div style="display: flex; width: 50%">-->
172
+<!--                    临床诊断:{{ getDiagnosis(item.info.diagnosis) }}-->
173
+<!--                  </div>-->
174
+<!--                </div>-->
175
+<!--              </div>-->
176
+<!--            </template>-->
177
+<!--            <div style="position: relative;">-->
178
+<!--              <div class="drugsOne" style="border-right: 1px solid black; width: 80%;">-->
179
+<!--                  <span style="font-weight: bold" >-->
180
+<!--                    {{ index + 1 + "." }}-->
181
+<!--                  </span>-->
182
+<!--                {{ it.advice_name ? it.advice_name : "" }}&nbsp;&nbsp;-->
183
+<!--                <span v-if="it.drug.min_unit != it.drug.dose_unit">-->
184
+<!--                    {{ it.drug.dose }}{{ it.drug.dose_unit }}&nbsp;* {{ it.drug.min_number }}{{ it.drug.min_unit }}/-->
185
+<!--                    {{it.drug.max_unit}}-->
186
+<!--                  </span>&nbsp;-->
187
+<!--                <div>-->
188
+<!--                  <template v-if="arr.length>0 && arr[0][0].groupno==it.groupno">-->
189
+<!--                    <div >-->
190
+<!--                      &lt;!&ndash;  v-for="(its,indexs) in arr" :key="indexs" &ndash;&gt;-->
191
+<!--                      <span style="margin-left: 38px;">{{arr[0][0].advice_name ? arr[0][0].advice_name : ""}}</span>&nbsp;&nbsp;-->
192
+<!--                      <span v-if="arr[0][0].drug.min_unit != arr[0][0].drug.dose_unit">-->
193
+<!--                          {{ arr[0][0].drug.dose }}{{ arr[0][0].drug.dose_unit }}&nbsp;* {{ arr[0][0].drug.min_number }}{{ arr[0][0].drug.min_unit }}/-->
194
+<!--                          {{arr[0][0].drug.max_unit}}-->
195
+<!--                        </span>&nbsp;-->
196
+<!--                    </div>-->
197
+<!--                  </template>-->
198
+<!--                </div>-->
199
+
200
+<!--                <div style="margin-left: 70px">-->
201
+<!--                    <span >用法:{{ it.single_dose }}{{ it.single_dose_unit }}</span-->
202
+<!--                    >&nbsp;&nbsp;<span-->
203
+<!--                >{{ it.execution_frequency }}&nbsp;{{-->
204
+<!--                    it.delivery_way-->
205
+<!--                  }}&nbsp;</span>&nbsp;&nbsp;<span>{{ it.advice_desc }}</span>-->
206
+<!--                </div>-->
207
+
208
+<!--              </div>-->
209
+<!--              <div style="display: inline-block;position: absolute;left:85%;top:10px;margin-left: 10px;">-->
210
+<!--                ×&nbsp;{{ it.prescribing_number}}{{ it.prescribing_number_unit }}-->
211
+<!--              </div>-->
212
+<!--            </div>-->
213
+<!--            <template v-if="index==yi&&item.advices.length>5">-->
214
+<!--              <div style="margin: 20px 0px;">-->
215
+<!--                <div class="doctorBox" v-if="org_id != 10188 && org_id != 0">-->
216
+<!--                  <p v-if="org_id == 10217 || org_id == 0">-->
217
+<!--                    医师:-->
218
+<!--                    <span-->
219
+<!--                      style="width: 100px; display: inline-block"-->
220
+<!--                      v-if="item.creator == ''"-->
221
+<!--                    >-->
222
+<!--                        {{ item.doctor }}-->
223
+<!--                      </span>-->
224
+<!--                    <span-->
225
+<!--                      style="width: 100px; display: inline-block"-->
226
+<!--                      v-else-if="doc_name != ''"-->
227
+<!--                    >-->
228
+<!--                        {{ doc_name }}-->
229
+<!--                      </span>-->
230
+<!--                    <img-->
231
+<!--                      style="height: 50px;"-->
232
+<!--                      :src="setAdminUserES(item.creator,item.doctor)"-->
233
+<!--                      alt=""-->
234
+<!--                      srcset=""-->
235
+
236
+<!--                    />-->
237
+<!--                  </p>-->
238
+<!--                  <p v-else>-->
239
+<!--                    医师: {{ item.doctor ? item.doctor : "" }}-->
240
+<!--                  </p>-->
241
+<!--                  <p>日期:{{ getTime(item.ctime) ? getTime(item.ctime) : "" }}</p>-->
242
+<!--                </div>-->
243
+
244
+<!--                <div class="doctorBoxs" style="border-bottom: 2px solid #000;" v-if="org_id == 10188 || org_id == 0">-->
245
+<!--                  <p>医师:{{ item.doctor ? item.doctor : "" }}</p>-->
246
+<!--                </div>-->
247
+<!--                <div class="actionBar" v-if="org_id != 10188 && org_id != 0">-->
248
+
249
+<!--                  <p>审核:</p>-->
250
+<!--                  <p>配对:</p>-->
251
+<!--                  <p>核对:</p>-->
252
+<!--                  <p>发药:</p>-->
253
+<!--                  <p>-->
254
+<!--                    药费:{{-->
255
+<!--                      getTotalOne(item.id).toFixed(2)-->
256
+<!--                        ? getTotalOne(item.id).toFixed(2)-->
257
+<!--                        : 0-->
258
+<!--                    }}元-->
259
+<!--                  </p>-->
260
+<!--                  &lt;!&ndash;            <p>药费:466.2元</p>&ndash;&gt;-->
261
+<!--                </div>-->
262
+<!--                <div class="actionBar" v-else>-->
263
+<!--                  <p >审核、调配:</p>-->
264
+<!--                  <p >核对、发药:</p>-->
265
+<!--                  <p >-->
266
+<!--                    药费:{{-->
267
+<!--                      getTotalOne(item.id).toFixed(2)-->
268
+<!--                        ? getTotalOne(item.id).toFixed(2)-->
269
+<!--                        : 0-->
270
+<!--                    }}元-->
271
+<!--                  </p>-->
272
+<!--                  &lt;!&ndash;            <p>药费:551.2元</p>&ndash;&gt;-->
273
+<!--                  &lt;!&ndash;            <p>药费:466.2元</p>&ndash;&gt;-->
274
+<!--                </div>-->
275
+<!--              </div>-->
276
+<!--            </template>-->
277
+<!--          </div>-->
278
+
279
+<!--          <div-->
280
+<!--            class="drugsBox"-->
281
+<!--            v-for="(it, i) in item.additionalcharge"-->
282
+<!--            :key="i"-->
283
+<!--          >-->
284
+<!--            <div class="drugsOne">-->
285
+<!--              {{ it.item_name ? it.item_name : "" }}:&nbsp;{{ it.price }}元/{{-->
286
+<!--                it.count-->
287
+<!--              }}次-->
288
+<!--            </div>-->
289
+<!--          </div>-->
290
+
291
+<!--          <div-->
292
+<!--            class="drugsBox"-->
293
+<!--            v-for="(it, index) in item.project"-->
294
+<!--            :key="index"-->
295
+<!--          >-->
296
+<!--            <div class="drugsOne">-->
297
+<!--                <span style="font-weight: bold">{{ index + 1 + "." }}</span-->
298
+<!--                >{{-->
299
+<!--                it.type == 2-->
300
+<!--                  ? getProjectName(it.project_id)-->
301
+<!--                    ? getProjectName(it.project_id)-->
302
+<!--                    : ""-->
303
+<!--                  : it.good_info.good_name-->
304
+<!--              }}&nbsp;&nbsp;{{ it.single_dose-->
305
+<!--              }}{{ it.single_dose_unit }}&nbsp;×&nbsp; {{ it.count }}{{ unit }}-->
306
+<!--            </div>-->
307
+<!--            <div style="margin-left: 100px">-->
308
+<!--                <span>用法:{{ it.single_dose }}{{ it.single_dose_unit }}</span-->
309
+<!--                >&nbsp;&nbsp;<span>{{ it.delivery_way }}</span-->
310
+<!--            >&nbsp;&nbsp;<span>{{ it.advice_desc }}</span>-->
311
+<!--            </div>-->
312
+<!--          </div>-->
313
+
314
+<!--          <div-->
315
+<!--            class="drugsBox"-->
316
+<!--            v-for="(it, i) in item.additionalcharge"-->
317
+<!--            :key="i"-->
318
+<!--          >-->
319
+<!--            <div class="drugsOne">-->
320
+<!--              {{ it.project_id ? it.project_id : "" }}:&nbsp;{{-->
321
+<!--                it.price.toFixed(2)-->
322
+<!--              }}元/{{ it.count }}次-->
323
+<!--            </div>-->
324
+<!--          </div>-->
325
+<!--          <div style="text-align: center">(以下空白)</div>-->
326
+<!--        </div>-->
327
+
328
+
329
+
330
+
331
+
332
+
333
+
334
+
335
+
336
+        <div class="doctorBox">
337
+          <p v-if="org_id == 10217">
135 338
             医师:
136 339
             <span
137 340
               style="width: 100px; display: inline-block"
138 341
               v-if="item.creator == ''"
139 342
             >
140
-              {{ item.doctor }}
141
-            </span>
343
+                {{ item.doctor }}
344
+              </span>
142 345
             <span
143 346
               style="width: 100px; display: inline-block"
144 347
               v-else-if="doc_name != ''"
145 348
             >
146
-              {{ doc_name }}
147
-            </span>
349
+                {{ doc_name }}
350
+              </span>
148 351
             <img
149 352
               style="height: 50px;"
150 353
               :src="setAdminUserES(item.creator,item.doctor)"
@@ -159,22 +362,7 @@
159 362
           <p>日期:{{ getTime(item.ctime) ? getTime(item.ctime) : "" }}</p>
160 363
         </div>
161 364
 
162
-        <div class="doctorBoxs" style="border-bottom: 2px solid #000;" v-if="org_id == 10188 || org_id == 0">
163
-          <p>医师:{{ item.doctor ? item.doctor : "" }}</p>
164
-        </div>
165
-        <!-- <div class="doctorBoxtwo" v-if="org_id == 10188 || org_id == 0">
166
-          <p >审核、调配:</p>
167
-          <p >核对、发药:</p>
168
-          <p style="margin-right: 43px">药师:</p>
169
-        </div> -->
170
-
171
-        <div class="actionBar" v-if="org_id != 10188 && org_id != 0">
172
-          <!-- <p>审核:{{getDoctor(item.advices[0].checker)?getDoctor(item.advices[0].checker):""}}</p>
173
-                 <p>配对:</p>
174
-                 <p>核对:{{getDoctor(item.advices[0].checker)?getDoctor(item.advices[0].checker):""}}</p>
175
-                 <p>发药:{{getDoctor(item.advices[0].execution_staff)?getDoctor(item.advices[0].execution_staff):""}}</p>
176
-                 <p>药费:{{getTotalOne(item.id)?getTotalOne(item.id):0}}元</p> -->
177
-
365
+        <div class="actionBar">
178 366
           <p>审核:</p>
179 367
           <p>配对:</p>
180 368
           <p>核对:</p>
@@ -186,22 +374,8 @@
186 374
                 : 0
187 375
             }}元
188 376
           </p>
189
-          <!--            <p>药费:466.2元</p>-->
190 377
         </div>
191
-        <div class="actionBar" v-else>
192
-          <p >审核、调配:</p>
193
-          <p >核对、发药:</p>
194
-          <p >
195
-            药费:{{
196
-              getTotalOne(item.id).toFixed(2)
197
-                ? getTotalOne(item.id).toFixed(2)
198
-                : 0
199
-            }}元
200
-          </p>
201
-          <!--            <p>药费:551.2元</p>-->
202
-          <!--            <p>药费:466.2元</p>-->
203
-        </div>
204
-        <!-- <div style="page-break-after: always"></div> -->
378
+
205 379
       </div>
206 380
     </div>
207 381
   </div>
@@ -227,6 +401,10 @@ export default{
227 401
       doctorList: [],
228 402
       advicePrint: {},
229 403
       yi:4,
404
+      arr:[],
405
+      arrs:{},
406
+      advicess:[],
407
+      page:sessionStorage.getItem('dayin'),
230 408
       patient: {},
231 409
       tableData: [],
232 410
       prescriptionInfo: [],
@@ -328,6 +506,21 @@ export default{
328 506
           this.prescriptions = advicePrint;
329 507
 
330 508
           this.doctorList_1 = response.data.data.eles;
509
+          for(let i=0;i<this.advicePrint.length;i++){
510
+            this.advicess=advicePrint[i].advices
511
+          }
512
+          for(let j=0;j<this.advicess.length;j++){
513
+            for(let x=j+1;x<this.advicess.length;x++){
514
+              if(this.advicess[j].groupno == this.advicess[x].groupno){
515
+                this.arr.push(this.advicess.splice(x,1))
516
+                // this.arrs=this.advicess.splice(x,1)
517
+              }
518
+            }
519
+          }
520
+          // this.merge(this.advicess)
521
+          // console.log('4444444',this.arrs);
522
+          console.log('55555555',this.arr);
523
+          console.log('6666666',this.advicess);
331 524
           console.log(this.doctorList_1, "医生列表");
332 525
           if (this.doctorList_1.length > 0) {
333 526
             var operatorsLen = this.doctorList_1.length;
@@ -390,7 +583,7 @@ export default{
390 583
               total =
391 584
                 total +
392 585
                 this.prescriptions[i].project[a].price *
393
-                  this.prescriptions[i].project[a].count;
586
+                this.prescriptions[i].project[a].count;
394 587
             }
395 588
           }
396 589
 
@@ -403,7 +596,7 @@ export default{
403 596
               addtotal =
404 597
                 addtotal +
405 598
                 this.prescriptions[i].additionalcharge[a].price *
406
-                  this.prescriptions[i].additionalcharge[a].count;
599
+                this.prescriptions[i].additionalcharge[a].count;
407 600
             }
408 601
           }
409 602
           addtotal = Math.floor(addtotal * 100) / 100;
@@ -417,7 +610,7 @@ export default{
417 610
               total =
418 611
                 total +
419 612
                 this.prescriptions[i].advices[a].price *
420
-                  this.prescriptions[i].advices[a].prescribing_number;
613
+                this.prescriptions[i].advices[a].prescribing_number;
421 614
             }
422 615
           }
423 616
 
@@ -430,7 +623,7 @@ export default{
430 623
               addtotal =
431 624
                 addtotal +
432 625
                 this.prescriptions[i].additionalcharge[a].price *
433
-                  this.prescriptions[i].additionalcharge[a].count;
626
+                this.prescriptions[i].additionalcharge[a].count;
434 627
             }
435 628
           }
436 629
           addtotal = Math.floor(addtotal * 100) / 100;
@@ -460,6 +653,26 @@ export default{
460 653
       }
461 654
       return name;
462 655
     },
656
+    merge(arrA){
657
+      var len=arrA.lenfth
658
+      // for(let j=0;j<this.advicess.length;j++){
659
+      //   for(let x=j+1;x<this.advicess.length;x++){
660
+      //     if(this.advicess[j].groupno == this.advicess[x].groupno){
661
+      //       // this.arr.push(this.advicess.splice(x,1))
662
+      //       this.arrs=this.advicess.splice(x,1)
663
+      //     }
664
+      //   }
665
+      // }
666
+      for(let j=0;j<len;j++){
667
+        for(let x=j+1;x<len;x++){
668
+          if(arrA[j].groupno == arrA[x].groupno){
669
+            this.arr.push(arrA.splice(x,1))
670
+          }
671
+        }
672
+      }
673
+      console.log('777777777',this.arr);
674
+      return this.arr
675
+    }
463 676
   },
464 677
   created() {
465 678
     this.getAllDoctorList();
@@ -469,7 +682,20 @@ export default{
469 682
     var xtuser = this.$store.getters.xt_user;
470 683
     this.orgname = xtuser.org.org_name;
471 684
     this.org_id = xtuser.org.id;
685
+
686
+    // for(let j=0;j<this.advicess.length;j++){
687
+    //   console.log('44444444');
688
+    //   for(let x=j+1;x<this.advicess.length;x++){
689
+    //     if(this.advicess[j].groupno == this.advicess[x].groupno){
690
+    //       this.arr.push(this.advicess.splice(x,1))
691
+    //     }
692
+    //   }
693
+    // }
694
+    // console.log('777777777',this.arr[0].advice_name);
695
+    // return this.arr
696
+
472 697
   },
698
+
473 699
   watch: {
474 700
     ids: function (val) {
475 701
       this.ids = val;
@@ -483,9 +709,9 @@ export default{
483 709
 <style lang="scss" scoped>
484 710
 .prescription-print {
485 711
   -webkit-box-shadow: 0 1px 4px rgba(0, 0, 0, 0.27),
486
-    0 0 60px rgba(0, 0, 0, 0.06) inset;
712
+  0 0 60px rgba(0, 0, 0, 0.06) inset;
487 713
   -moz-box-shadow: 0 1px 4px rgba(0, 0, 0, 0.27),
488
-    0 0 40px rgba(0, 0, 0, 0.06) inset;
714
+  0 0 40px rgba(0, 0, 0, 0.06) inset;
489 715
   box-shadow: 0 1px 4px rgba(0, 0, 0, 0.27), 0 0 40px rgba(0, 0, 0, 0.06) inset;
490 716
   margin-bottom: 20px;
491 717
   padding: 20px 10px;
@@ -526,12 +752,14 @@ export default{
526 752
 .drugsBox {
527 753
   padding-left: 40px;
528 754
   margin-bottom: 10px;
755
+  position: relative;
529 756
 }
530 757
 .drugsBox div {
531 758
   line-height: 20px;
532 759
 }
533 760
 .drugsOne {
534 761
   line-height: 24px;
762
+  display: inline-block;
535 763
 }
536 764
 .drugsOne span {
537 765
   margin-right: 20px;

+ 536 - 0
src/xt_pages/outpatientDoctorStation/template/printTenOne.vue Visa fil

@@ -0,0 +1,536 @@
1
+<template>
2
+  <div id="prescriptionPrint">
3
+    <div v-for="(item, index) in advicePrint" :key="index">
4
+      <div
5
+        id="prescription-print"
6
+        class="prescription-print"
7
+        style="page-break-after: always"
8
+      >
9
+        <div class="printTitle" v-if="prescriptions[index].med_type == '1111'">
10
+          {{ orgname }}第一类精神处方笺
11
+        </div>
12
+        <div class="printTitle" v-if="prescriptions[index].med_type == '1112'">
13
+          {{ orgname }}第二类精神处方笺
14
+        </div>
15
+        <div
16
+          class="printTitle"
17
+          v-if="
18
+            prescriptions[index].med_type != '1111' &&
19
+            prescriptions[index].med_type != '1112'
20
+          "
21
+        >
22
+          {{ orgname }}处方笺
23
+        </div>
24
+        <!--<div class="printTitle">{{orgname}}处方笺</div>-->
25
+        <div class="infoTitle">
26
+          <p>姓名:{{ item.patient.name ? item.patient.name : "" }}</p>
27
+          <p>
28
+            性别:
29
+            <span v-if="item.patient.gender == 1">男</span>
30
+            <span v-if="item.patient.gender == 2">女</span>
31
+          </p>
32
+          <p>年龄:{{ getAge(item.patient) ? getAge(item.patient) : "" }}岁</p>
33
+        </div>
34
+        <div class="infoMain">
35
+          <div style="margin-bottom: 10px">
36
+            门诊号:{{ hisPatient.number ? hisPatient.number : "" }}
37
+          </div>
38
+          <div style="margin-bottom: 10px">
39
+            科室:{{ item.info ? getDepart(item.info.departments) : "" }}
40
+          </div>
41
+          <div style="margin-bottom: 10px">
42
+            医保卡号:{{ item.hisPatient.number ? item.hisPatient.number : "" }}
43
+          </div>
44
+          <div style="margin-bottom: 10px" v-if="org_id != 10188">
45
+            电话:{{ item.patient.phone }}
46
+          </div>
47
+          <div style="margin-bottom: 10px" v-else>
48
+            日期:{{ getTime(item.ctime) ? getTime(item.ctime) : "" }}
49
+          </div>
50
+          <div>地址:{{ item.patient.home_address }}</div>
51
+          <div style="display: flex; width: 50%">
52
+            临床诊断:{{ getDiagnosis(item.info.diagnosis) }}
53
+          </div>
54
+        </div>
55
+        <div class="prescriptionBox" >
56
+          <div class="Rp">Rp:</div>
57
+          <div
58
+            class="drugsBox"
59
+            v-for="(it, index) in item.advices"
60
+            :key="index"
61
+            :style="{'page-break-after':index==yi&&item.advices.length>5? 'always':'auto'}"
62
+          >
63
+            <!-- class="drugsBox"  item.advices.length>=5 ? 'danzhang' : 'drugsBox'  'page-break-after':item.advices.length>=3&& item.advices[2]?'always':'auto'-->
64
+            <!-- <div class="drugsOne"><span style="font-weight:bold;">{{ index+1 + '.' }}</span>{{it.advice_name?it.advice_name:""}}&nbsp;&nbsp;{{it.single_dose}}{{it.single_dose_unit}}&nbsp;×&nbsp; {{it.prescribing_number}}{{it.prescribing_number_unit}}</div> -->
65
+            <div class="drugsOne">
66
+              <span style="font-weight: bold">{{ index + 1 + "." }}</span
67
+              >{{ it.advice_name ? it.advice_name : "" }}&nbsp;&nbsp;<span
68
+              v-if="it.drug.min_unit != it.drug.dose_unit"
69
+            >{{ it.drug.dose }}{{ it.drug.dose_unit }}&nbsp;* &nbsp;</span
70
+            >{{ it.drug.min_number }}{{ it.drug.min_unit }}/{{
71
+                it.drug.max_unit
72
+              }}&nbsp;×&nbsp; {{ it.prescribing_number
73
+              }}{{ it.prescribing_number_unit }}
74
+            </div>
75
+            <div style="margin-left: 100px">
76
+              <span>用法:{{ it.single_dose }}{{ it.single_dose_unit }}</span
77
+              >&nbsp;&nbsp;<span
78
+            >{{ it.execution_frequency }}&nbsp;{{
79
+                it.delivery_way
80
+              }}&nbsp;</span
81
+            >&nbsp;&nbsp;<span>{{ it.advice_desc }}</span>
82
+            </div>
83
+          </div>
84
+
85
+          <div
86
+            class="drugsBox"
87
+            v-for="(it, i) in item.additionalcharge"
88
+            :key="i"
89
+          >
90
+            <div class="drugsOne">
91
+              {{ it.item_name ? it.item_name : "" }}:&nbsp;{{ it.price }}元/{{
92
+                it.count
93
+              }}次
94
+            </div>
95
+          </div>
96
+
97
+          <div
98
+            class="drugsBox"
99
+            v-for="(it, index) in item.project"
100
+            :key="index"
101
+          >
102
+            <div class="drugsOne">
103
+              <span style="font-weight: bold">{{ index + 1 + "." }}</span
104
+              >{{
105
+                it.type == 2
106
+                  ? getProjectName(it.project_id)
107
+                    ? getProjectName(it.project_id)
108
+                    : ""
109
+                  : it.good_info.good_name
110
+              }}&nbsp;&nbsp;{{ it.single_dose
111
+              }}{{ it.single_dose_unit }}&nbsp;×&nbsp; {{ it.count }}{{ unit }}
112
+            </div>
113
+            <div style="margin-left: 100px">
114
+              <span>用法:{{ it.single_dose }}{{ it.single_dose_unit }}</span
115
+              >&nbsp;&nbsp;<span>{{ it.delivery_way }}</span
116
+            >&nbsp;&nbsp;<span>{{ it.advice_desc }}</span>
117
+            </div>
118
+          </div>
119
+          <div
120
+            class="drugsBox"
121
+            v-for="(it, i) in item.additionalcharge"
122
+            :key="i"
123
+          >
124
+            <div class="drugsOne">
125
+              {{ it.project_id ? it.project_id : "" }}:&nbsp;{{
126
+                it.price.toFixed(2)
127
+              }}元/{{ it.count }}次
128
+            </div>
129
+          </div>
130
+          <div style="text-align: center">(以下空白)</div>
131
+        </div>
132
+        <div class="doctorBox" style="border-bottom: 2px solid #000;" >
133
+          <p>
134
+            医师:
135
+            <span
136
+              style="width: 100px; display: inline-block"
137
+              v-if="item.creator == ''"
138
+            >
139
+              {{ item.doctor }}
140
+            </span>
141
+            <span
142
+              style="width: 100px; display: inline-block"
143
+              v-else-if="doc_name != ''"
144
+            >
145
+              {{ doc_name }}
146
+            </span>
147
+            <img
148
+              style="height: 50px;"
149
+              :src="setAdminUserES(item.creator,item.doctor)"
150
+              alt=""
151
+              srcset=""
152
+            />
153
+          </p>
154
+
155
+        </div>
156
+        <div class="actionBar">
157
+          <p >审核、调配:</p>
158
+          <p >核对、发药:</p>
159
+          <p >
160
+            药费:{{
161
+              getTotalOne(item.id).toFixed(2)
162
+                ? getTotalOne(item.id).toFixed(2)
163
+                : 0
164
+            }}元
165
+          </p>
166
+        </div>
167
+      </div>
168
+    </div>
169
+  </div>
170
+</template>
171
+<script>
172
+import { jsGetAge, uParseTime } from "@/utils/tools";
173
+import {
174
+  getAllDoctorList,
175
+  getPrescriptionPrint,
176
+  getHisPatientDetail,
177
+} from "@/api/project/project";
178
+import { getInitData } from "@/api/his/his";
179
+export default{
180
+  props: {
181
+    patient_id: Number,
182
+    record_date: String,
183
+    prescription_id: Number,
184
+    ids: String,
185
+  },
186
+  data() {
187
+    return {
188
+      doc_name:"",
189
+      doctorList: [],
190
+      advicePrint: {},
191
+      yi:4,
192
+      patient: {},
193
+      tableData: [],
194
+      prescriptionInfo: [],
195
+      hisPatient: {},
196
+      department: [],
197
+      prescriptions: [],
198
+      projectList: [],
199
+      orgname: "",
200
+      diagnoses: [],
201
+      org_id: 0,
202
+      operatorMaps: {},
203
+      operators: [],
204
+      doctorList_1: [],
205
+    };
206
+  },
207
+  methods: {
208
+    // 电子签名
209
+    setAdminUserES(id,name) {
210
+      console.log(id)
211
+      console.log(name)
212
+      console.log(this.operatorMaps)
213
+
214
+
215
+      if (id == 0) {
216
+        return "";
217
+      }
218
+      if (id in this.operatorMaps) {
219
+        return this.operatorMaps[id].url;
220
+      } else {
221
+        this.doc_name = name
222
+        return "";
223
+      }
224
+    },
225
+    getAge(patient) {
226
+      if(patient.id_card_no == "TWN001836483"){
227
+        return patient.age
228
+      }else{
229
+        var thisLen = patient.id_card_no.length;
230
+        var birth = "";
231
+        if (thisLen == 15) {
232
+          birth = "19" + patient.id_card_no.substr(6, 6);
233
+        } else {
234
+          birth = patient.id_card_no.substr(6, 8);
235
+        }
236
+        var births =
237
+          birth.substr(0, 4) +
238
+          "-" +
239
+          birth.substr(4, 2) +
240
+          "-" +
241
+          birth.substr(6, 2);
242
+        return jsGetAge(births, "-");
243
+
244
+      }
245
+
246
+    },
247
+
248
+    getAllDoctorList() {
249
+      getAllDoctorList().then((response) => {
250
+        if (response.data.state == 1) {
251
+          var doctor = response.data.data.doctor;
252
+
253
+          this.doctorList = doctor;
254
+        }
255
+      });
256
+    },
257
+
258
+    getDoctor(id) {
259
+      var name = "";
260
+      for (let i = 0; i < this.doctorList.length; i++) {
261
+        if (id == this.doctorList[i].admin_user_id) {
262
+          name = this.doctorList[i].user_name;
263
+        }
264
+      }
265
+      return name;
266
+    },
267
+    getTime(value, temp) {
268
+      if (value != undefined) {
269
+        return uParseTime(value, temp);
270
+      }
271
+      return "";
272
+    },
273
+    getPrescriptionPrint() {
274
+      var params = {
275
+        // patient_id:this.patient_id,
276
+        // record_date:this.record_date,
277
+        // prescription_id:this.prescription_id,
278
+        patient_id: this.patient_id,
279
+        record_date: this.record_date,
280
+        prescription_id: this.prescription_id,
281
+        ids: this.ids,
282
+        p_type: 2,
283
+      };
284
+      console.log("params", params);
285
+      getPrescriptionPrint(params).then((response) => {
286
+        if (response.data.state == 1) {
287
+          var advicePrint = response.data.data.advicePrint;
288
+          console.log("adviceprint9999", advicePrint);
289
+          this.advicePrint = advicePrint;
290
+          this.prescriptions = advicePrint;
291
+
292
+          this.doctorList_1 = response.data.data.eles;
293
+          console.log(this.doctorList_1, "医生列表");
294
+          if (this.doctorList_1.length > 0) {
295
+            var operatorsLen = this.doctorList_1.length;
296
+            for (var index = 0; index < operatorsLen; index++) {
297
+              this.$set(
298
+                this.operatorMaps,
299
+                this.doctorList_1[index].creator,
300
+                this.doctorList_1[index]
301
+              );
302
+            }
303
+          }
304
+
305
+          console.log("处方222222", this.prescriptions);
306
+          var hisPatient = response.data.data.hisPatient;
307
+          console.log("hisPatient", hisPatient);
308
+          this.hisPatient = hisPatient;
309
+          var projectlist = response.data.data.projectlist;
310
+          console.log("所有项目列表", projectlist);
311
+          this.projectList = projectlist;
312
+        }
313
+      });
314
+    },
315
+    getHisPatientDetail() {
316
+      const params = {
317
+        patient_id: this.patient_id,
318
+      };
319
+      getHisPatientDetail(params).then((response) => {
320
+        if (response.data.state == 1) {
321
+          var hisPatient = response.data.data.hisPatient;
322
+          console.log("挂号病人", hisPatient);
323
+          this.hisPatient = hisPatient;
324
+        }
325
+      });
326
+    },
327
+    getInitData() {
328
+      getInitData().then((response) => {
329
+        if (response.data.state == 1) {
330
+          this.department = response.data.data.department;
331
+          this.diagnoses = response.data.data.diagnose;
332
+          console.log("争端", this.diagnoses);
333
+        }
334
+      });
335
+    },
336
+    getDepart(id) {
337
+      var name = "";
338
+      for (let i = 0; i < this.department.length; i++) {
339
+        if (id == this.department[i].id) {
340
+          name = this.department[i].name;
341
+        }
342
+      }
343
+      return name;
344
+    },
345
+    getTotalOne(id) {
346
+      var total = 0;
347
+      var addtotal = 0;
348
+      for (let i = 0; i < this.prescriptions.length; i++) {
349
+        if (id == this.prescriptions[i].id) {
350
+          if (this.prescriptions[i].project != null) {
351
+            for (let a = 0; a < this.prescriptions[i].project.length; a++) {
352
+              total =
353
+                total +
354
+                this.prescriptions[i].project[a].price *
355
+                this.prescriptions[i].project[a].count;
356
+            }
357
+          }
358
+
359
+          if (this.prescriptions[i].additionalcharge != null) {
360
+            for (
361
+              let a = 0;
362
+              a < this.prescriptions[i].additionalcharge.length;
363
+              a++
364
+            ) {
365
+              addtotal =
366
+                addtotal +
367
+                this.prescriptions[i].additionalcharge[a].price *
368
+                this.prescriptions[i].additionalcharge[a].count;
369
+            }
370
+          }
371
+          addtotal = Math.floor(addtotal * 100) / 100;
372
+        }
373
+      }
374
+
375
+      for (let i = 0; i < this.prescriptions.length; i++) {
376
+        if (id == this.prescriptions[i].id) {
377
+          if (this.prescriptions[i].advices != null) {
378
+            for (let a = 0; a < this.prescriptions[i].advices.length; a++) {
379
+              total =
380
+                total +
381
+                this.prescriptions[i].advices[a].price *
382
+                this.prescriptions[i].advices[a].prescribing_number;
383
+            }
384
+          }
385
+
386
+          if (this.prescriptions[i].additionalcharge != null) {
387
+            for (
388
+              let a = 0;
389
+              a < this.prescriptions[i].additionalcharge.length;
390
+              a++
391
+            ) {
392
+              addtotal =
393
+                addtotal +
394
+                this.prescriptions[i].additionalcharge[a].price *
395
+                this.prescriptions[i].additionalcharge[a].count;
396
+            }
397
+          }
398
+          addtotal = Math.floor(addtotal * 100) / 100;
399
+        }
400
+      }
401
+
402
+      return total + addtotal;
403
+    },
404
+
405
+    getProjectName(id) {
406
+      var project_name = "";
407
+      for (let i = 0; i < this.projectList.length; i++) {
408
+        if (id == this.projectList[i].id) {
409
+          project_name = this.projectList[i].project_name;
410
+        }
411
+      }
412
+      return project_name;
413
+    },
414
+
415
+    getDiagnosis(id) {
416
+      let arr = id.split(",");
417
+      var name = "";
418
+      for (let i = 0; i < this.diagnoses.length; i++) {
419
+        if (arr.indexOf(String(this.diagnoses[i].id)) > -1) {
420
+          name += this.diagnoses[i].class_name + " ";
421
+        }
422
+      }
423
+      return name;
424
+    },
425
+  },
426
+  created() {
427
+    this.getAllDoctorList();
428
+    this.getInitData();
429
+    this.getPrescriptionPrint();
430
+    this.getHisPatientDetail();
431
+    var xtuser = this.$store.getters.xt_user;
432
+    this.orgname = xtuser.org.org_name;
433
+    this.org_id = xtuser.org.id;
434
+  },
435
+  watch: {
436
+    ids: function (val) {
437
+      this.ids = val;
438
+      this.getPrescriptionPrint();
439
+    },
440
+  },
441
+};
442
+</script>
443
+
444
+
445
+<style lang="scss" scoped>
446
+.prescription-print {
447
+  -webkit-box-shadow: 0 1px 4px rgba(0, 0, 0, 0.27),
448
+  0 0 60px rgba(0, 0, 0, 0.06) inset;
449
+  -moz-box-shadow: 0 1px 4px rgba(0, 0, 0, 0.27),
450
+  0 0 40px rgba(0, 0, 0, 0.06) inset;
451
+  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.27), 0 0 40px rgba(0, 0, 0, 0.06) inset;
452
+  margin-bottom: 20px;
453
+  padding: 20px 10px;
454
+}
455
+.printTitle {
456
+  font-size: 22px;
457
+  text-align: center;
458
+  font-weight: bold;
459
+}
460
+.infoTitle {
461
+  display: flex;
462
+  border-bottom: 2px solid #000;
463
+  margin-top: 10px;
464
+  line-height: 24px;
465
+  padding: 0 10px;
466
+}
467
+.infoTitle p {
468
+  width: 200px;
469
+}
470
+.infoMain {
471
+  display: flex;
472
+  flex-wrap: wrap;
473
+  border-bottom: 2px solid #000;
474
+  padding: 0 10px;
475
+}
476
+.infoMain div {
477
+  width: 50%;
478
+  line-height: 24px;
479
+}
480
+.prescriptionBox {
481
+  padding: 0 10px;
482
+  min-height: 450px;
483
+}
484
+.Rp {
485
+  font-size: 22px;
486
+  font-weight: bold;
487
+}
488
+.drugsBox {
489
+  padding-left: 40px;
490
+  margin-bottom: 10px;
491
+}
492
+.drugsBox div {
493
+  line-height: 20px;
494
+}
495
+.drugsOne {
496
+  line-height: 24px;
497
+}
498
+.drugsOne span {
499
+  margin-right: 20px;
500
+}
501
+.doctorBox {
502
+  display: flex;
503
+  justify-content: space-between;
504
+  padding: 0 10px;
505
+  line-height: 24px;
506
+  border-bottom: 2px solid #000;
507
+}
508
+.doctorBox p{
509
+  margin-left: auto
510
+}
511
+
512
+.doctorBoxs{
513
+  width: 100%;
514
+  margin-right: 30px;
515
+  text-align: right;
516
+  padding: 0 10px;
517
+  line-height: 24px;
518
+
519
+}
520
+.doctorBoxtwo {
521
+  display: flex;
522
+  justify-content: space-between;
523
+  padding: 0 10px;
524
+  line-height: 24px;
525
+
526
+}
527
+.actionBar {
528
+  display: flex;
529
+  justify-content: space-between;
530
+  line-height: 24px;
531
+  padding: 0 10px;
532
+}
533
+.actionBar p {
534
+  width: 150px;
535
+}
536
+</style>

+ 1 - 1
src/xt_pages/outpatientDoctorStation/treatTemplate/printOne.vue Visa fil

@@ -11,7 +11,7 @@
11 11
                     <span>其他</span>
12 12
                 </div>
13 13
                 <div v-if="org_id == 10460">就诊日期:{{getTime(item.pre_time,'{y}-{m}-{d}')}}</div>
14
-                <div v-else>就诊日期:{{getTime(item.ctime,'{y}-{m}-{d}')}}</div>
14
+                <div v-else>就诊日期:{{getTime(item.pre_time,'{y}-{m}-{d}')}}</div>
15 15
             </div>
16 16
 
17 17
             <div class="printTitle">{{orgname}}</div>

+ 1 - 0
src/xt_pages/stock/query/purchaseNewStockQuery.vue Visa fil

@@ -278,6 +278,7 @@ export default {
278 278
               list[i].overMoney = "/"
279 279
              
280 280
             }
281
+            console.log("listwowowoowowowow",list)
281 282
             this.tableList = list
282 283
             this.total = response.data.data.total
283 284
 

+ 2 - 2
src/xt_pages/stock/stockInOrderAdd.vue Visa fil

@@ -856,13 +856,13 @@
856 856
               this.recordInfo.recordData[i].license_number = val.number
857 857
               this.recordInfo.recordData[i].register_number = val.register_number
858 858
               if(val.buy_price == 0){
859
-               this.recordInfo.recordData[i].price = ""
859
+               this.recordInfo.recordData[i].price = "0"
860 860
               }else{
861 861
                 this.recordInfo.recordData[i].price = val.buy_price
862 862
               }
863 863
 
864 864
               if(val.packing_price == 0){
865
-               this.recordInfo.recordData[i].packing_price = ""
865
+               this.recordInfo.recordData[i].packing_price = "0"
866 866
               }else{
867 867
                 this.recordInfo.recordData[i].packing_price = val.packing_price
868 868
               }

+ 2 - 2
src/xt_pages/stock/stockInOrderEdit.vue Visa fil

@@ -900,12 +900,12 @@ export default {
900 900
             this.recordInfo.recordData[i].license_number = val.number
901 901
             this.recordInfo.recordData[i].register_number = val.register_number
902 902
             if(val.buy_price == 0){
903
-               this.recordInfo.recordData[i].price= ""
903
+               this.recordInfo.recordData[i].price= "0"
904 904
             }else{
905 905
                this.recordInfo.recordData[i].price = val.buy_price
906 906
             }
907 907
             if(val.packing_price == 0){
908
-              this.recordInfo.recordData[i].packing_price = ""
908
+              this.recordInfo.recordData[i].packing_price = "0"
909 909
             }else{
910 910
               this.recordInfo.recordData[i].packing_price = val.packing_price
911 911
             }

+ 1 - 1
src/xt_pages/stock/stockOutOrderAdd.vue Visa fil

@@ -879,7 +879,7 @@ export default {
879 879
             this.recordInfo.recordData[i].license_number = val.number
880 880
             this.recordInfo.recordData[i].register_number = val.register_number
881 881
             if(val.packing_price == 0){
882
-              this.recordInfo.recordData[i].price =""
882
+              this.recordInfo.recordData[i].price ="0"
883 883
             }else{
884 884
               this.recordInfo.recordData[i].price = val.packing_price
885 885
             }

+ 1 - 1
src/xt_pages/stock/stockOutOrderEdit.vue Visa fil

@@ -825,7 +825,7 @@
825 825
             this.recordInfo.recordData[i].buy_price = val.buy_price
826 826
             this.recordInfo.recordData[i].stock_count = total_count
827 827
             if(val.packing_price == 0){
828
-               this.recordInfo.recordData[i].price = ""
828
+               this.recordInfo.recordData[i].price = "0"
829 829
             }else{
830 830
                this.recordInfo.recordData[i].price = val.packing_price
831 831
             }

+ 74 - 7
src/xt_pages/user/components/PatientForm.vue Visa fil

@@ -393,7 +393,7 @@
393 393
                   </el-radio-group>
394 394
                 </el-form-item>
395 395
               </el-col>
396
-
396
+      
397 397
               <el-col :span="8" :style="isEdit ? 'width:360px' : ''">
398 398
                 <el-form-item
399 399
                   label="患者去向 : "
@@ -409,10 +409,29 @@
409 409
                   </el-radio-group>
410 410
                 </el-form-item>
411 411
               </el-col>
412
+           
412 413
 
413
-              <el-col :span="8" :style="isEdit ? 'width:360px' : ''">
414
+            
415
+              <!-- <el-col :span="8" :style="isEdit ? 'width:360px' : ''">
416
+                <el-form-item
417
+                  label="流转地址: "
418
+                >
419
+                <el-select v-model="form.patient_address" placeholder="请选择">
420
+                    <el-option
421
+                      v-for="item in liuAddresslist"
422
+                      :key="item.id"
423
+                      :label="item.name"
424
+                      :value="item.name">
425
+                    </el-option>
426
+                 </el-select>
427
+                </el-form-item>
428
+              </el-col> -->
429
+           
430
+ 
431
+             
432
+                <el-col :span="8" :style="isEdit ? 'width:360px' : ''">
414 433
                 <el-form-item
415
-                  label="患者去向时间 : "
434
+                  label="流转开始时间 : "
416 435
                 >
417 436
                 <el-date-picker
418 437
                   size="small"
@@ -430,6 +449,28 @@
430 449
                 </el-form-item>
431 450
               </el-col>
432 451
 
452
+              <!-- <el-col :span="8" :style="isEdit ? 'width:360px' : ''">
453
+                <el-form-item
454
+                  label="流转结束时间 : "
455
+                >
456
+                <el-date-picker
457
+                  size="small"
458
+                  v-model="form.patient_end_time"
459
+                  prefix-icon="el-icon-date"
460
+                  :editable="false"
461
+                  style="width: 150px;"
462
+                  type="date"
463
+                  placeholder="选择日期时间"
464
+                  align="right"
465
+                  format="yyyy-MM-dd"
466
+                  value-format="yyyy-MM-dd"
467
+                  @change="startTimeChange"
468
+                 ></el-date-picker>
469
+                </el-form-item>
470
+              </el-col> -->
471
+           
472
+             
473
+
433 474
               <el-col :span="8" style="margin-bottom: 20px;" :style="isEdit ? 'width:360px' : ''">
434 475
                 <el-form-item
435 476
                   label="备注 : "
@@ -487,6 +528,12 @@
487 528
 
488 529
               </el-col>
489 530
 
531
+              <!-- <el-col :span="24">
532
+                 <el-form-item label="传染病细分:" v-if="form.is_infectious == '2'">
533
+                    <el-input v-model="form.infectious_remark"></el-input>
534
+                 </el-form-item>
535
+              </el-col> -->
536
+
490 537
               <el-col :span="8">
491 538
                 <el-form-item label="疑难内瘘 : " prop="contagions">
492 539
                  <el-radio-group v-model="form.troble_shoot">
@@ -849,6 +896,19 @@
849 896
               </el-form-item>
850 897
             </el-col>
851 898
           </el-row>
899
+          <!-- <el-row :gutter="24">
900
+            <el-col :span="24">
901
+              <el-form-item label="过敏史 : " prop="past_history">
902
+                <el-input
903
+                  type="textarea"
904
+                  :rows="3"
905
+                  v-model="form.allergic_history"
906
+                  resize="none"
907
+                  placeholder=""
908
+                ></el-input>
909
+              </el-form-item>
910
+            </el-col>
911
+          </el-row> -->
852 912
           <el-row :gutter="24">
853 913
             <el-col :span="24">
854 914
               <el-form-item label="体格检查">
@@ -1099,6 +1159,10 @@ const defaultForm = {
1099 1159
   doctor:"",
1100 1160
   patient_source:0,
1101 1161
   patient_start_time:"",
1162
+  patient_end_time:"",
1163
+  patient_address:"",
1164
+  infectious_remark:"",
1165
+  allergic_history:"",
1102 1166
   formItem: [
1103 1167
     {
1104 1168
       id: 0,
@@ -1249,7 +1313,6 @@ const defaultForm = {
1249 1313
   dbp: "",
1250 1314
   showOne:true,
1251 1315
   treatment_plan:"",
1252
-
1253 1316
 };
1254 1317
 
1255 1318
 export default {
@@ -1349,7 +1412,7 @@ export default {
1349 1412
         {value:1,label:"门诊"},
1350 1413
         {value:2,label:"住院"},
1351 1414
         {value:3,label:"请假"},
1352
-        {value:4,label:"备注"}
1415
+        {value:4,label:"流转"}
1353 1416
       ],
1354 1417
       lapsetoOptions: [
1355 1418
         { value: 1, label: "留治" },
@@ -1436,6 +1499,7 @@ export default {
1436 1499
       },
1437 1500
       adminUserOptions:[],
1438 1501
       org_id:0,
1502
+      liuAddresslist:[]
1439 1503
     };
1440 1504
   },
1441 1505
   components: {
@@ -1450,9 +1514,10 @@ export default {
1450 1514
     }
1451 1515
   },
1452 1516
   created() {
1453
-
1517
+  // this.liuAddresslist = getDataConfig('hemodialysis', 'liu_address')
1518
+  // console.log("liuAddresslist",this.liuAddresslist)
1454 1519
    this.fetchAllAdminUsers();
1455
-
1520
+ 
1456 1521
 
1457 1522
     if(this.isEdit == true){
1458 1523
        this.showLapseto = false
@@ -1465,6 +1530,8 @@ export default {
1465 1530
     // this.rhOptions = this.$store.getters.rh;
1466 1531
     this.educationOptions = getDataConfig("patient", "education_types");
1467 1532
     this.professionOptions = getDataConfig("patient", "profession_options");
1533
+
1534
+  
1468 1535
     // this.inductionOptions = this.$store.getters.induction_options;
1469 1536
     this.contagionList = this.$store.getters.contagions;
1470 1537
     this.checkDisease = this.$store.getters.disease;

+ 55 - 42
src/xt_pages/workforce/components/editTableData.vue Visa fil

@@ -1396,7 +1396,7 @@
1396 1396
             </el-select>
1397 1397
           </el-form-item>
1398 1398
           
1399
-          <el-form-item>
1399
+          <!-- <el-form-item>
1400 1400
             <span>透析班次:</span>
1401 1401
             <el-select
1402 1402
                 filterable 
@@ -1422,13 +1422,13 @@
1422 1422
               v-model="changeSchedule.partition_id"
1423 1423
               placeholder="请选择"
1424 1424
               style="width: 100%"
1425
-              @change="changePartition"
1425
+              @change="changePartitionOne"
1426 1426
               >
1427 1427
               <el-option
1428
-                  v-for="(item, index) in zone_names"
1428
+                  v-for="(item, index) in zones"
1429 1429
                   :key="index"
1430
-                  :label="item"
1431
-                  :value="item"
1430
+                  :label="item.name"
1431
+                  :value="item.id"
1432 1432
               >
1433 1433
               </el-option>
1434 1434
               </el-select>
@@ -1450,7 +1450,7 @@
1450 1450
               >
1451 1451
               </el-option>
1452 1452
             </el-select>
1453
-          </el-form-item>
1453
+          </el-form-item> -->
1454 1454
         </el-form>
1455 1455
       </div>
1456 1456
       <span slot="footer" class="dialog-footer">
@@ -1765,6 +1765,7 @@ import {
1765 1765
   ExchangeSch,
1766 1766
   getPatientSmartSch,
1767 1767
   BatchSmartSch,
1768
+
1768 1769
 } from "@/api/schedule_template/sch_template";
1769 1770
 import {
1770 1771
   CancelScheduleTwo,
@@ -1778,7 +1779,8 @@ import {
1778 1779
   getUrgentScheduleInitData,
1779 1780
   getWeekPanelsOne,
1780 1781
   getAllZones,
1781
-  ChangeScheduleTen
1782
+  ChangeScheduleTen,
1783
+  getNumberList
1782 1784
 } from "@/api/schedule";
1783 1785
 import ScheduleItem from "./ScheduleItem";
1784 1786
 
@@ -5017,13 +5019,13 @@ export default {
5017 5019
         console.log("WOOWOWOWOWOW",this.zones)
5018 5020
         console.log("numberowowow",this.numberList)
5019 5021
         this.changeSchedule.mode_id = row[column.property].mode_id
5020
-        var zone_names = ""
5021
-        for(let i=0;i<this.zones.length;i++){
5022
-          if(row.zone_id == this.zones[i].id){
5023
-           zone_names = this.zones[i].name
5024
-          }
5025
-        }
5026
-        this.changeSchedule.partition_id = zone_names
5022
+        // var zone_names = ""
5023
+        // for(let i=0;i<this.zones.length;i++){
5024
+        //   if(row.zone_id == this.zones[i].id){
5025
+        //    zone_names = this.zones[i].name
5026
+        //   }
5027
+        // }
5028
+        this.changeSchedule.partition_id = row.zone_id
5027 5029
         this.changeSchedule.schedule_type = week[1];
5028 5030
         this.changeSchedule.bed_id = row.jihao_id;
5029 5031
         console.log("床位id",this.changeSchedule.bed_id)
@@ -5076,7 +5078,7 @@ export default {
5076 5078
       this.changing_mode = true;
5077 5079
       this.changeSchedule.change_action = "change_mode";
5078 5080
 
5079
-      ChangeScheduleTen(this.currentData.id, this.changeSchedule).then((response) => {
5081
+      ChangeSchedule(this.currentData.id, this.changeSchedule).then((response) => {
5080 5082
             if (response.data.state == 0) {
5081 5083
               this.$message.error(response.data.msg);
5082 5084
             } else {
@@ -5084,32 +5086,32 @@ export default {
5084 5086
                 type: "success",
5085 5087
                 message: "修改成功!",
5086 5088
               });
5087
-              // var that = this;
5088
-              // var schedule = response.data.data.schedule;
5089
-              // this.msDialogVisible = false
5090
-              // this.scheduleZone.forEach(function (zone, index) {
5091
-              //   if (
5092
-              //       zone.zone_id == schedule.partition_id &&
5093
-              //       zone.jihao_id == schedule.bed_id
5094
-              //   ) {
5095
-              //     var weekPath = that.weekPath(
5096
-              //         schedule.schedule_week,
5097
-              //         schedule.schedule_type
5098
-              //     );
5099
-              //     if (weekPath.length == 2) {
5100
-              //       var weekPathKey = weekPath[0] + "_" + weekPath[1];
5101
-              //       that.scheduleZone[index][weekPathKey].dialysis_machine_name =
5102
-              //           schedule.dialysis_machine_name;
5103
-              //       that.scheduleZone[index][weekPathKey].mode_id =
5104
-              //           schedule.mode_id;
5105
-              //       that.scheduleZone[index][weekPathKey].mode_name = typeof that.modeOptions[schedule.mode_id] === "undefined"
5106
-              //               ? ""
5107
-              //               : that.modeOptions[schedule.mode_id].name;
5108
-              //     }
5109
-              //   }
5110
-              // });
5111
-              this.msDialogVisible = false;
5112
-              this.getAllZones()
5089
+              var that = this;
5090
+              var schedule = response.data.data.schedule;
5091
+              this.msDialogVisible = false
5092
+              this.scheduleZone.forEach(function (zone, index) {
5093
+                if (
5094
+                    zone.zone_id == schedule.partition_id &&
5095
+                    zone.jihao_id == schedule.bed_id
5096
+                ) {
5097
+                  var weekPath = that.weekPath(
5098
+                      schedule.schedule_week,
5099
+                      schedule.schedule_type
5100
+                  );
5101
+                  if (weekPath.length == 2) {
5102
+                    var weekPathKey = weekPath[0] + "_" + weekPath[1];
5103
+                    that.scheduleZone[index][weekPathKey].dialysis_machine_name =
5104
+                        schedule.dialysis_machine_name;
5105
+                    that.scheduleZone[index][weekPathKey].mode_id =
5106
+                        schedule.mode_id;
5107
+                    that.scheduleZone[index][weekPathKey].mode_name = typeof that.modeOptions[schedule.mode_id] === "undefined"
5108
+                            ? ""
5109
+                            : that.modeOptions[schedule.mode_id].name;
5110
+                  }
5111
+                }
5112
+              });
5113
+              // this.msDialogVisible = false;
5114
+              // this.getAllZones()
5113 5115
              
5114 5116
             }
5115 5117
             this.changing_mode = false;
@@ -5177,6 +5179,17 @@ export default {
5177 5179
       this.current_devices = this.zone_device_map[value];
5178 5180
       this.device_id = this.current_devices[0].id;
5179 5181
     },
5182
+    changePartitionOne(val){
5183
+      console.log("valwoowow",val)
5184
+
5185
+      getNumberList(val).then(response=>{
5186
+         if(response.data.state==1){
5187
+           var number = response.data.data.number
5188
+           this.numberList = []
5189
+           this.numberList = number
5190
+         }
5191
+      })
5192
+    },
5180 5193
     // 选择下拉框方法
5181 5194
     changeScheduleType(schedule_type) {
5182 5195
       const params = {
@@ -5782,7 +5795,7 @@ export default {
5782 5795
 
5783 5796
           this.strArr = strArr;
5784 5797
           var device_number =  response.data.data.devicenumber
5785
-
5798
+          this.numberList = []
5786 5799
           this.numberList = device_number
5787 5800
           console.log("所有床位",device_number)
5788 5801
           this.getWeekPanels();