Browse Source

8月15日

XMLWAN 2 years ago
parent
commit
a3fa0ebdce

+ 8 - 0
src/api/dialysis.js View File

@@ -379,3 +379,11 @@ export function getHisDialysisGoodCount(params) {
379 379
     params: params
380 380
   })
381 381
 }
382
+
383
+export function getSchedualPrintList(params) {
384
+  return request({
385
+    url: '/api/patient/getscheduleprintlist',
386
+    method: 'get',
387
+    params: params
388
+  })
389
+}

+ 1 - 0
src/lang/en.js View File

@@ -92,6 +92,7 @@ export default {
92 92
     appointment: 'appointment',
93 93
     sign: 'sign',
94 94
     remind: 'remind',
95
+    schedulePrint: 'schedulePrint',
95 96
     signWeight: 'signWeight',
96 97
     deviceZoneManage: 'Device Zone Manage',
97 98
     deviceGroupManage: 'Device Group Manage',

+ 1 - 0
src/lang/zh.js View File

@@ -106,6 +106,7 @@ export default {
106 106
     appointment: '排班管理',
107 107
     sign: '治疗签到',
108 108
     remind: '排班提醒',
109
+    schedulePrint: '排班打印',
109 110
     signWeight: '签到称重',
110 111
     deviceZoneManage: '分区管理',
111 112
     deviceGroupManage: '分组管理',

+ 6 - 0
src/router/index_路由未分离前.js View File

@@ -694,6 +694,12 @@ export const xt_asyncRouterMap = [
694 694
         name: 'remind',
695 695
         meta: { title: 'remind', noCache: true }
696 696
       },
697
+      // {
698
+      //   path: '/workforce/schedulePrint',
699
+      //   component: () => import('@/xt_pages/workforce/schedulePrint'),
700
+      //   name: 'schedulePrint',
701
+      //   meta: { title: 'schedulePrint', noCache: true }
702
+      // },
697 703
       {
698 704
         path: '/workforce/template',
699 705
         component: () => import('@/xt_pages/workforce/template'),

+ 20 - 0
src/router/modules/workforce.js View File

@@ -38,6 +38,26 @@ export default {
38 38
       noCache: true
39 39
     }
40 40
   },
41
+  {
42
+    path: '/workforce/schedulePrint',
43
+    component: () => import('@/xt_pages/workforce/schedulePrint'),
44
+    name: 'schedulePrint',
45
+    meta: {
46
+      title: 'schedulePrint',
47
+      noCache: true
48
+    }
49
+  },
50
+  {
51
+    path: '/workforce/schedule/printone',
52
+    component: () => import('@/xt_pages/workforce/printOne'),
53
+    name: 'printOne',
54
+    hidden: true,
55
+    is_menu: false,
56
+    meta: {
57
+      title: 'printOne',
58
+      noCache: true
59
+    }
60
+  },
41 61
   {
42 62
     path: '/workforce/template',
43 63
     component: () => import('@/xt_pages/workforce/template'),

+ 3 - 2
src/xt_pages/dialysis/PatientBox.vue View File

@@ -103,10 +103,11 @@
103 103
           </span>
104 104
         </p>
105 105
         <p>
106
-          <span  v-if="$store.getters.xt_user.org.id!=9671 && $store.getters.xt_user.org.id!=9675 && $store.getters.xt_user.org.id!=10340 ">
106
+          <span>
107 107
               目标超滤量:
108 108
             <span v-if=" schedule.prescription && schedule.prescription.target_ultrafiltration > 0">
109
-               {{schedule.prescription? schedule.prescription.target_ultrafiltration: ""}}
109
+               <span v-if="$store.getters.xt_user.org.id==10340"> {{schedule.prescription? schedule.prescription.target_ultrafiltration: ""}}ml</span>
110
+               <span v-if="$store.getters.xt_user.org.id!=10340"> {{schedule.prescription? schedule.prescription.target_ultrafiltration: ""}}</span>
110 111
             </span>
111 112
           </span>
112 113
 

+ 5 - 0
src/xt_pages/dialysis/details/DialysisPrescription.vue View File

@@ -467,6 +467,11 @@
467 467
           <label>曲线脱水(ml): </label>
468 468
           <span class="content">{{this.prescription.drhy_water}}</span>
469 469
         </li>
470
+
471
+         <li v-if="isShow('带水上机')">
472
+          <label>带水上机: </label>
473
+          <span class="content">{{this.prescription.water_machine}}</span>
474
+        </li>
470 475
        
471 476
       </ul>
472 477
     </div>

+ 12 - 0
src/xt_pages/dialysis/details/assessmentBefore.vue View File

@@ -404,6 +404,18 @@
404 404
           <span class="unit"></span>
405 405
         </li>
406 406
 
407
+         <li v-if="isShow('住院科室')">
408
+          <label>住院科室: </label>
409
+          <span class="content">{{this.record.his_department}}</span>
410
+          <span class="unit"></span>
411
+        </li>
412
+
413
+          <li v-if="isShow('住院床位')">
414
+          <label>住院床位: </label>
415
+          <span class="content">{{this.record.his_bed}}</span>
416
+          <span class="unit"></span>
417
+        </li>
418
+
407 419
       </ul>
408 420
     </div>
409 421
     <div class="note">

+ 16 - 1
src/xt_pages/dialysis/details/dialog/assessmentBeforeDislysisDialog.vue View File

@@ -566,13 +566,26 @@
566 566
             </el-form-item>
567 567
           </el-col>
568 568
 
569
+          <el-col :span="8" v-if="isShow('住院科室')">
570
+            <el-form-item label="住院科室:" label-width="150px">
571
+              <el-input v-model="assessmentBeforeDislysis.his_department"></el-input>
572
+            </el-form-item>
573
+          </el-col>
569 574
 
575
+         <el-col :span="8" v-if="isShow('住院床位')">
576
+            <el-form-item label="住院床位:" label-width="150px">
577
+              <el-input v-model="assessmentBeforeDislysis.his_bed"></el-input>
578
+            </el-form-item>
579
+          </el-col>
580
+          
581
+        
570 582
           <el-col :span="8">
571 583
             <el-form-item label="抽吸:" v-if="isShow('抽吸')">
572 584
               <el-input v-model="assessmentBeforeDislysis.suction" @focus="showInnerDialog('20')"></el-input>
573 585
             </el-form-item>
574 586
           </el-col>
575
-
587
+         
588
+        
576 589
  
577 590
          
578 591
           <el-col :span="24">
@@ -749,6 +762,8 @@
749 762
           weight_befor_remake:"",
750 763
           height:"",
751 764
           age:"",
765
+          his_department:"",
766
+          his_bed:"",
752 767
         },
753 768
 
754 769
         InnerDialogProps: {

+ 22 - 1
src/xt_pages/dialysis/details/dialog/dialysisPrescriptionDialog.vue View File

@@ -101,6 +101,19 @@
101 101
                             ></el-input>
102 102
                         </el-form-item>
103 103
                     </el-col>
104
+
105
+                   <el-col :span="8" v-if="isShows('带水上机')">
106
+                        <el-form-item label="带水上机:">
107
+                           <el-select v-model="dialysisPrescription.water_machine">
108
+                                <el-option
109
+                                        v-for="(item, index) in machineList"
110
+                                        :label="item.name"
111
+                                        :value="item.name"
112
+                                        :key="index + 'q'"
113
+                                ></el-option>
114
+                            </el-select>
115
+                        </el-form-item>
116
+                    </el-col> 
104 117
                    
105 118
                     <el-col :span="8" v-if="isShows('是否单超脱水')">
106 119
                         <el-form-item label="是否单超脱水:">
@@ -1417,6 +1430,7 @@
1417 1430
           drhy_water:"",
1418 1431
           is_water:0,
1419 1432
           dry_water_hour:"",
1433
+          water_machine:"否",
1420 1434
         },
1421 1435
 
1422 1436
         anticoagulant: {
@@ -1456,6 +1470,10 @@
1456 1470
           {id:0,name:"请选择"},
1457 1471
           {id:1,name:"是"},
1458 1472
           {id:2,name:"否"}
1473
+        ],
1474
+        machineList:[
1475
+          {id:1,name:"是"},
1476
+          {id:2,name:"否"}
1459 1477
         ]
1460 1478
       }
1461 1479
     },
@@ -2055,7 +2073,7 @@
2055 2073
         console.log("admin_user_+id2332323223332", this.$store.getters.xt_user.user.id)
2056 2074
       },
2057 2075
       show(pre, schedual, last, his_is_open,is_advice_open,admins) {
2058
-
2076
+        console.log("pres",pre)
2059 2077
         if (pre != undefined) {
2060 2078
           this.dialysisPrescription.admin_user_id = pre.id == 0 ? this.$store.getters.xt_user.user.id : pre.admin_user_id
2061 2079
           if (pre.oxygen_uptake == 1) {
@@ -2180,6 +2198,7 @@
2180 2198
         this.dialysisPrescription.mode_id = this.$route.query.mode_id ? this.$route.query.mode_id : this.mode_id
2181 2199
         if (pre.id > 0) {
2182 2200
           this.dialysisPrescription.mode_id = pre.mode_id
2201
+          this.dialysisPrescription.water_machine = pre.water_machine
2183 2202
         }
2184 2203
         // console.log('this.dialysisPrescription.mode_id', this.dialysisPrescription.mode_id)
2185 2204
         // console.log('this.schedual', schedual.mode_id)
@@ -2224,6 +2243,7 @@
2224 2243
             }
2225 2244
         }
2226 2245
         if (this.predialysis == null || this.predialysis.id == 0) {
2246
+          
2227 2247
           if (last != null) {
2228 2248
 
2229 2249
             this.dialysisPrescription.niprocart = last.niprocart
@@ -2247,6 +2267,7 @@
2247 2267
 
2248 2268
         } else {
2249 2269
           weight_before = this.predialysis.weight_before
2270
+          
2250 2271
         }
2251 2272
 
2252 2273
 

+ 7 - 6
src/xt_pages/dialysis/template/DialysisPrintOrderFiftyOne.vue View File

@@ -377,7 +377,7 @@
377 377
                         class="under_line"
378 378
                         style="width: 220px; text-align: center"
379 379
                       >
380
-                        {{ dialysisOrder&&dialysisOrder.blood_access_id?QueryPartById(dialysisOrder.blood_access_part_id):'' }}
380
+                       <span v-if="dialysisOrder!=null">{{ dialysisOrder&&dialysisOrder.blood_access_id?QueryPartById(dialysisOrder.blood_access_id):'' }}</span> 
381 381
                         <!-- {{ predialysis.blood_access_part_id }}
382 382
                         {{ predialysis.blood_access_part_opera_name }} -->
383 383
                       </div>
@@ -791,7 +791,7 @@
791 791
                         class="under_line"
792 792
                         style="width: 100px; text-align: center"
793 793
                       >
794
-                        {{
794
+                       <span v-if="dialysisOrder!=null">{{
795 795
                           dialysisOrder.dialysis_dialyszers
796 796
                             ? dialysisOrder.dialysis_dialyszers
797 797
                             : ""
@@ -801,6 +801,7 @@
801 801
                             ? dialysisOrder.dialysis_irrigation
802 802
                             : ""
803 803
                         }}
804
+                      </span> 
804 805
                       </div>
805 806
                     </div>
806 807
                     <div
@@ -1008,7 +1009,7 @@
1008 1009
                       </div>
1009 1010
                       <span v-if="prescription.anticoagulant == 4">mg</span>
1010 1011
                       <span v-if="prescription.anticoagulant == 3">iu</span>
1011
-                      <span v-if="prescription.anticoagulant == 2">iu</span>
1012
+                      <span v-if="prescription.anticoagulant == 2">mg</span>
1012 1013
                       <span v-if="prescription.anticoagulant == 1">mg</span>
1013 1014
                     </div>
1014 1015
                     <div class="inline_block" style="margin-left: 20px">
@@ -1038,7 +1039,7 @@
1038 1039
                       <span v-if="prescription.anticoagulant == 5">ml/h</span>
1039 1040
                       <span v-if="prescription.anticoagulant == 4">mg/h</span>
1040 1041
                       <span v-if="prescription.anticoagulant == 3">iu/h</span>
1041
-                      <span v-if="prescription.anticoagulant == 2">iu/h</span>
1042
+                      <span v-if="prescription.anticoagulant == 2">mg/h</span>
1042 1043
                       <span v-if="prescription.anticoagulant == 1">mg/h</span>
1043 1044
                     </div>
1044 1045
                     <div
@@ -1094,7 +1095,7 @@
1094 1095
                       </div>
1095 1096
                       <span v-if="prescription.anticoagulant == 4">mg</span>
1096 1097
                       <span v-if="prescription.anticoagulant == 3">iu</span>
1097
-                      <span v-if="prescription.anticoagulant == 2">iu</span>
1098
+                      <span v-if="prescription.anticoagulant == 2">mg</span>
1098 1099
                       <span v-if="prescription.anticoagulant == 1">mg</span>
1099 1100
                     </div>
1100 1101
                     <div class="inline_block" style="margin-left: 20px">
@@ -2924,7 +2925,7 @@ export default {
2924 2925
     },
2925 2926
     QueryPartById: function (val) {
2926 2927
       let vascular_access_part_name = "/";
2927
-      const vascular_access = getDataConfig("hemodialysis", "vascular_access");
2928
+      const vascular_access = getDataConfig("hemodialysis", "vascular_access_desc");
2928 2929
 
2929 2930
       for (let i = 0; i < vascular_access.length; i++) {
2930 2931
         if (vascular_access[i].id == val) {

+ 352 - 193
src/xt_pages/outpatientCharges/statementPrint.vue View File

@@ -662,7 +662,7 @@ export default {
662 662
 
663 663
             }
664 664
           });
665
-        } else if (this.org_id == 10191 || this.org_id == 0) {
665
+        } else if (this.org_id == 0) {
666 666
 
667 667
           getPrivateExpensesOrder(params).then((response) => {
668 668
             if (response.data.state == 0) {
@@ -788,16 +788,22 @@ export default {
788 788
                 }
789 789
 
790 790
               }
791
+              console.log(list)
791 792
               let len = list.length / 2
792 793
               let L_list = []
793 794
               let R_list = []
794
-
795
+              len = Math.trunc(len)
795 796
               for(let i = 0; i < len; i++){
796 797
                 L_list.push(list[i])
797 798
               }
799
+              console.log(len)
798 800
               for(let i = len; i < list.length; i++){
801
+                console.log(list[i])
799 802
                 R_list.push(list[i])
800 803
               }
804
+              console.log(L_list)
805
+              console.log(R_list)
806
+
801 807
               that.info["L_list"] = L_list
802 808
               that.info["R_list"] = R_list
803 809
 
@@ -811,216 +817,369 @@ export default {
811 817
         }
812 818
 
813 819
       } else {
814
-        var that = this;
815
-        axios
816
-            .get("http://127.0.0.1:9532/api/settle/query", {
817
-              params: {
818
-                order_id: order_id,
819
-                admin_user_id: this.$store.getters.xt_user.user.id,
820
-              },
821
-            })
822
-            .then(function (response) {
823
-              if (response.data.state == 0) {
824
-                this.$message.error(response.data.msg);
825
-                return false;
826
-              } else {
827
-                console.log(response.data.data.info);
828
-                that.info = response.data.data.info;
829
-                that.p_admin = response.data.data.printor_admin;
830
-                that.charge_admin = response.data.data.charge_admin;
831
-
832
-                that.info["p_admin"] = that.p_admin;
833
-                that.info["charge_admin"] = that.charge_admin;
834
-
835
-                that.info["order_number"] = response.data.data.order_number;
836
-                that.info["patient"] = response.data.data.patient;
837
-                that.info["date"] = response.data.data.date;
838
-                that.info["number"] = response.data.data.number;
839
-                that.info["order_infos"] = response.data.data.order_infos;
840
-                that.info["diagnosis"] = response.data.data.diagnosis;
841
-                that.info["org_code"] = response.data.data.org_code;
842
-                that.info["org_name"] = response.data.data.org_name;
843
-                that.info["doctor_code"] = response.data.data.doctor_code;
844
-                that.info["department"] = response.data.data.department;
845
-                that.info["health_card_no"] = response.data.data.health_card_no;
846
-
847
-                that.info["bed_cost_total"] = response.data.data.bedCostTotal;
848
-                that.info["bed_cost_self_total"] =
849
-                    response.data.data.bedCostSelfTotal;
850
-                that.info["bed_cost_part_self_total"] =
851
-                    response.data.data.bedCostPartSelfTotal;
852
-
853
-                that.info["operation_cost_total"] =
854
-                    response.data.data.operationCostTotal;
855
-                that.info["operation_cost_self_total"] =
856
-                    response.data.data.operationCostSelfTotal;
857
-                that.info["operation_cost_part_self_total"] =
858
-                    response.data.data.operationCostPartSelfTotal;
859
-
860
-                that.info["other_cost_total"] = response.data.data.otherCostTotal;
861
-                that.info["other_cost_self_total"] =
862
-                    response.data.data.otherCostSelfTotal;
863
-                that.info["other_cost_part_self_total"] =
864
-                    response.data.data.otherCostPartSelfTotal;
865
-
866
-                that.info["material_cost_total"] =
867
-                    response.data.data.materialCostTotal;
868
-                that.info["material_cost_self_total"] =
869
-                    response.data.data.materialCostSelfTotal;
870
-                that.info["material_cost_part_self_total"] =
871
-                    response.data.data.materialCostPartSelfTotal;
872
-
873
-                that.info["western_medicine_cost_total"] =
874
-                    response.data.data.westernMedicineCostTotal;
875
-                that.info["western_medicine_cost_self_total"] =
876
-                    response.data.data.westernMedicineCostSelfTotal;
877
-                that.info["western_medicine_cost_part_self_total"] =
878
-                    response.data.data.westernMedicineCostPartSelfTotal;
879
-
880
-                that.info["chinese_traditional_medicine_cost_total"] =
881
-                    response.data.data.chineseTraditionalMedicineCostTotal;
882
-                that.info["chinese_traditional_medicine_cost_self_total"] =
883
-                    response.data.data.chineseTraditionalMedicineCostSelfTotal;
884
-                that.info["chinese_traditional_medicine_cost_part_self_total"] =
885
-                    response.data.data.chineseTraditionalMedicineCostPartSelfTotal;
886
-
887
-                that.info["check_cost_total"] = response.data.data.checkCostTotal;
888
-                that.info["check_cost_self_total"] =
889
-                    response.data.data.checkCostSelfTotal;
890
-                that.info["check_cost_part_self_total"] =
891
-                    response.data.data.checkCostPartSelfTotal;
892
-
893
-                that.info["laboratory_cost_total"] =
894
-                    response.data.data.laboratoryCostTotal;
895
-                that.info["laboratory_cost_self_total"] =
896
-                    response.data.data.laboratoryCostSelfTotal;
897
-                that.info["laboratory_cost_part_self_total"] =
898
-                    response.data.data.laboratoryCostPartSelfTotal;
899
-
900
-                that.info["treat_cost_total"] = response.data.data.treatCostTotal;
901
-                that.info["treat_cost_self_total"] =
902
-                    response.data.data.treatCostSelfTotal;
903
-                that.info["treat_cost_part_self_total"] =
904
-                    response.data.data.treatCostPartSelfTotal;
905
-                that.info["date"] = response.data.data.date;
906
-                that.info["number"] = response.data.data.number;
907
-                that.info["order_infos"] = response.data.data.order_infos;
908
-                that.info["diagnosis"] = response.data.data.diagnosis;
820
+        if (this.org_id == 10191) {
821
+          let params = {
822
+            his_patient_id: obj.his_patient_id,
823
+            id: obj.order_id,
824
+            order_id: obj.order_id,
825
+            admin_user_id: this.$store.getters.xt_user.user.id,
826
+          };
827
+          getPrivateExpensesOrder(params).then((response) => {
828
+            if (response.data.state == 0) {
829
+              // this.$message.error(response.data.msg)
909 830
 
910
-                let obj = {
911
-                  type: 1,
912
-                  details: [],
913
-                  total: 0,
914
-                };
915
-                let obj2 = {
916
-                  type: 2,
917
-                  details: [],
918
-                  total: 0,
919
-                };
920
-                let obj3 = {
921
-                  type: 3,
922
-                  details: [],
923
-                  total: 0,
924
-                };
925
-
926
-                let obj4 = {
927
-                  type: 4,
928
-                  details: [],
929
-                  total: 0,
930
-                };
931
-                let num = 0;
932
-                that.info.order_infos.map((item) => {
933
-                  if (item.advice_id > 0) {
934
-                    obj.details.push(item);
935
-                    obj.total += item.pric * item.advice.prescribing_number;
936
-                    num++;
937
-                  } else {
938
-                    if (item.project.type == 2) {
939
-                      obj2.details.push(item);
940
-                      obj2.total += item.pric * item.project.count;
941
-                      num++;
942
-                    } else {
943
-                      obj3.details.push(item);
944
-                      obj3.total += item.pric * item.project.count;
945
-                      num++;
946
-                    }
947
-                  }
948
-                });
831
+              return false;
832
+            } else {
833
+              var that = this;
834
+              that.info = response.data.data.info;
835
+              that.p_admin = response.data.data.printor_admin;
836
+              that.charge_admin = response.data.data.charge_admin;
837
+
838
+              that.info["p_admin"] = that.p_admin;
839
+              that.info["charge_admin"] = that.charge_admin;
840
+              that.info["order_number"] = response.data.data.order_number;
841
+              that.info["patient"] = response.data.data.patient;
842
+              that.info["date"] = response.data.data.date;
843
+              that.info["number"] = response.data.data.number;
844
+              that.info["order_infos"] = response.data.data.order_infos;
845
+              that.info["diagnosis"] = response.data.data.diagnosis;
846
+              that.info["fixmedins_name"] = response.data.data.org_name;
847
+              that.info["fixmedins_code"] = response.data.data.org_code;
848
+              // that.info["doctor_code"] = response.data.data.doctor_code;
849
+              // that.info["department"] = response.data.data.department;
850
+              // that.info["health_card_no"] = response.data.data.health_card_no;
851
+
852
+              that.info["bed_cost_total"] = response.data.data.bedCostTotal;
853
+              that.info["bed_cost_self_total"] =
854
+                  response.data.data.bedCostSelfTotal;
855
+              that.info["bed_cost_part_self_total"] =
856
+                  response.data.data.bedCostPartSelfTotal;
949 857
 
950
-                // this.info.order_infos.map(item => {
951
-                //   obj4.total = item.Total
952
-                //   obj4.details.push(item)
953
-                //   num++
954
-                //
955
-                // })
858
+              that.info["operation_cost_total"] =
859
+                  response.data.data.operationCostTotal;
860
+              that.info["operation_cost_self_total"] =
861
+                  response.data.data.operationCostSelfTotal;
862
+              that.info["operation_cost_part_self_total"] =
863
+                  response.data.data.operationCostPartSelfTotal;
864
+
865
+              that.info["other_cost_total"] = response.data.data.otherCostTotal;
866
+              that.info["other_cost_self_total"] =
867
+                  response.data.data.otherCostSelfTotal;
868
+              that.info["other_cost_part_self_total"] =
869
+                  response.data.data.otherCostPartSelfTotal;
870
+
871
+              that.info["material_cost_total"] =
872
+                  response.data.data.materialCostTotal;
873
+              that.info["material_cost_self_total"] =
874
+                  response.data.data.materialCostSelfTotal;
875
+              that.info["material_cost_part_self_total"] =
876
+                  response.data.data.materialCostPartSelfTotal;
877
+
878
+              that.info["western_medicine_cost_total"] =
879
+                  response.data.data.westernMedicineCostTotal;
880
+              that.info["western_medicine_cost_self_total"] =
881
+                  response.data.data.westernMedicineCostSelfTotal;
882
+              that.info["western_medicine_cost_part_self_total"] =
883
+                  response.data.data.westernMedicineCostPartSelfTotal;
956 884
 
957
-                that.info.new_detail_list = [];
958
-                that.info.new_detail_list.push(obj);
959
-                that.info.new_detail_list.push(obj2);
960
-                that.info.new_detail_list.push(obj3);
961
-                // that.info.new_detail_list.push(obj4)
885
+              that.info["chinese_traditional_medicine_cost_total"] =
886
+                  response.data.data.chineseTraditionalMedicineCostTotal;
887
+              that.info["chinese_traditional_medicine_cost_self_total"] =
888
+                  response.data.data.chineseTraditionalMedicineCostSelfTotal;
889
+              that.info["chinese_traditional_medicine_cost_part_self_total"] =
890
+                  response.data.data.chineseTraditionalMedicineCostPartSelfTotal;
962 891
 
963
-                that.num = num;
892
+              that.info["check_cost_total"] = response.data.data.checkCostTotal;
893
+              that.info["check_cost_self_total"] =
894
+                  response.data.data.checkCostSelfTotal;
895
+              that.info["check_cost_part_self_total"] =
896
+                  response.data.data.checkCostPartSelfTotal;
964 897
 
965
-                if (that.paramsObj.settle_type != 1) {
966
-                  that.info.begndate = that.getTimes(that.paramsObj.start_time);
967
-                  that.info.enddate = that.getTimes(that.paramsObj.end_time);
898
+              that.info["laboratory_cost_total"] =
899
+                  response.data.data.laboratoryCostTotal;
900
+              that.info["laboratory_cost_self_total"] =
901
+                  response.data.data.laboratoryCostSelfTotal;
902
+              that.info["laboratory_cost_part_self_total"] =
903
+                  response.data.data.laboratoryCostPartSelfTotal;
904
+
905
+              that.info["treat_cost_total"] = response.data.data.treatCostTotal;
906
+              that.info["treat_cost_self_total"] =
907
+                  response.data.data.treatCostSelfTotal;
908
+              that.info["treat_cost_part_self_total"] =
909
+                  response.data.data.treatCostPartSelfTotal;
910
+              that.info["date"] = response.data.data.date;
911
+              // that.info["number"] = response.data.data.number;
912
+              that.info["order_infos"] = response.data.data.order_infos;
913
+              that.info["diagnosis"] = response.data.data.diagnosis;
914
+
915
+              let list = []
916
+              for (let i = 0; i < response.data.data.order_infos.length; i++) {
917
+                let order = response.data.data.order_infos[i]
918
+                let obj = {
919
+                  name: "",
920
+                  spec: "",
921
+                  cnt: "",
922
+                  det_item_fee_sumamt: "",
968 923
                 }
969 924
 
925
+                if (order.advice_id > 0 && order.project_id == 0) {
926
+                  obj.name = order.advice.advice_name
927
+                  let spec = order.advice.drug.dose + order.advice.drug.dose_unit + '*' + order.advice.drug.min_number + order.advice.drug.min_unit + '/' + order.advice.drug.max_unit
928
+                  obj.spec = spec
929
+                  obj.cnt = order.cnt
930
+                  obj.det_item_fee_sumamt = order.det_item_fee_sumamt
931
+                  list.push(obj)
970 932
 
933
+                } else if (order.advice_id == 0 && order.project_id > 0) {
934
+                  if (order.project.type == 2) {
935
+                    obj.name = order.project.project.project_name
936
+                    obj.spec = ""
937
+                    obj.cnt = order.cnt
938
+                    obj.det_item_fee_sumamt = order.det_item_fee_sumamt
971 939
 
972
-                let list = []
973
-                for (let i = 0; i < response.data.data.order_infos.length; i++) {
974
-                  let order = response.data.data.order_infos[i]
975
-                  let obj = {
976
-                    name: "",
977
-                    spec: "",
978
-                    cnt: "",
979
-                    det_item_fee_sumamt: "",
940
+                  } else {
941
+                    obj.name = order.project.good_info.good_name
942
+                    obj.spec = order.project.good_info.specification_name
943
+                    obj.cnt = order.cnt
944
+                    obj.det_item_fee_sumamt = order.det_item_fee_sumamt
980 945
                   }
946
+                  list.push(obj)
947
+                }
981 948
 
982
-                  if (order.advice_id > 0 && order.project_id == 0) {
983
-                    obj.name = order.advice.advice_name
984
-                    let spec = order.advice.drug.dose + order.advice.drug.dose_unit + '*' + order.advice.drug.min_number + order.advice.drug.min_unit + '/' + order.advice.drug.max_unit
985
-                    obj.spec = spec
986
-                    obj.cnt = order.cnt
987
-                    obj.det_item_fee_sumamt =order.det_item_fee_sumamt
988
-                    list.push(obj)
949
+              }
950
+              console.log(list)
951
+              let len = list.length / 2
952
+              let L_list = []
953
+              let R_list = []
954
+              len = Math.trunc(len)
955
+              for (let i = 0; i < len; i++) {
956
+                L_list.push(list[i])
957
+              }
958
+              console.log(len)
959
+              for (let i = len; i < list.length; i++) {
960
+                console.log(list[i])
961
+                R_list.push(list[i])
962
+              }
963
+              console.log(L_list)
964
+              console.log(R_list)
989 965
 
990
-                  }else if (order.advice_id == 0 && order.project_id > 0) {
991
-                    if(order.project.type == 2){
992
-                      obj.name = order.project.project.project_name
993
-                      obj.spec = ""
994
-                      obj.cnt = order.cnt
995
-                      obj.det_item_fee_sumamt =order.det_item_fee_sumamt
966
+              that.info["L_list"] = L_list
967
+              that.info["R_list"] = R_list
968
+
969
+            }
970
+          });
971
+        } else {
972
+          var that = this;
973
+          axios
974
+              .get("http://127.0.0.1:9532/api/settle/query", {
975
+                params: {
976
+                  order_id: order_id,
977
+                  admin_user_id: this.$store.getters.xt_user.user.id,
978
+                },
979
+              })
980
+              .then(function (response) {
981
+                if (response.data.state == 0) {
982
+                  this.$message.error(response.data.msg);
983
+                  return false;
984
+                } else {
985
+                  console.log(response.data.data.info);
986
+                  that.info = response.data.data.info;
987
+                  that.p_admin = response.data.data.printor_admin;
988
+                  that.charge_admin = response.data.data.charge_admin;
989
+
990
+                  that.info["p_admin"] = that.p_admin;
991
+                  that.info["charge_admin"] = that.charge_admin;
992
+
993
+                  that.info["order_number"] = response.data.data.order_number;
994
+                  that.info["patient"] = response.data.data.patient;
995
+                  that.info["date"] = response.data.data.date;
996
+                  that.info["number"] = response.data.data.number;
997
+                  that.info["order_infos"] = response.data.data.order_infos;
998
+                  that.info["diagnosis"] = response.data.data.diagnosis;
999
+                  that.info["org_code"] = response.data.data.org_code;
1000
+                  that.info["org_name"] = response.data.data.org_name;
1001
+                  that.info["doctor_code"] = response.data.data.doctor_code;
1002
+                  that.info["department"] = response.data.data.department;
1003
+                  that.info["health_card_no"] = response.data.data.health_card_no;
1004
+
1005
+                  that.info["bed_cost_total"] = response.data.data.bedCostTotal;
1006
+                  that.info["bed_cost_self_total"] =
1007
+                      response.data.data.bedCostSelfTotal;
1008
+                  that.info["bed_cost_part_self_total"] =
1009
+                      response.data.data.bedCostPartSelfTotal;
1010
+
1011
+                  that.info["operation_cost_total"] =
1012
+                      response.data.data.operationCostTotal;
1013
+                  that.info["operation_cost_self_total"] =
1014
+                      response.data.data.operationCostSelfTotal;
1015
+                  that.info["operation_cost_part_self_total"] =
1016
+                      response.data.data.operationCostPartSelfTotal;
1017
+
1018
+                  that.info["other_cost_total"] = response.data.data.otherCostTotal;
1019
+                  that.info["other_cost_self_total"] =
1020
+                      response.data.data.otherCostSelfTotal;
1021
+                  that.info["other_cost_part_self_total"] =
1022
+                      response.data.data.otherCostPartSelfTotal;
1023
+
1024
+                  that.info["material_cost_total"] =
1025
+                      response.data.data.materialCostTotal;
1026
+                  that.info["material_cost_self_total"] =
1027
+                      response.data.data.materialCostSelfTotal;
1028
+                  that.info["material_cost_part_self_total"] =
1029
+                      response.data.data.materialCostPartSelfTotal;
1030
+
1031
+                  that.info["western_medicine_cost_total"] =
1032
+                      response.data.data.westernMedicineCostTotal;
1033
+                  that.info["western_medicine_cost_self_total"] =
1034
+                      response.data.data.westernMedicineCostSelfTotal;
1035
+                  that.info["western_medicine_cost_part_self_total"] =
1036
+                      response.data.data.westernMedicineCostPartSelfTotal;
1037
+
1038
+                  that.info["chinese_traditional_medicine_cost_total"] =
1039
+                      response.data.data.chineseTraditionalMedicineCostTotal;
1040
+                  that.info["chinese_traditional_medicine_cost_self_total"] =
1041
+                      response.data.data.chineseTraditionalMedicineCostSelfTotal;
1042
+                  that.info["chinese_traditional_medicine_cost_part_self_total"] =
1043
+                      response.data.data.chineseTraditionalMedicineCostPartSelfTotal;
1044
+
1045
+                  that.info["check_cost_total"] = response.data.data.checkCostTotal;
1046
+                  that.info["check_cost_self_total"] =
1047
+                      response.data.data.checkCostSelfTotal;
1048
+                  that.info["check_cost_part_self_total"] =
1049
+                      response.data.data.checkCostPartSelfTotal;
1050
+
1051
+                  that.info["laboratory_cost_total"] =
1052
+                      response.data.data.laboratoryCostTotal;
1053
+                  that.info["laboratory_cost_self_total"] =
1054
+                      response.data.data.laboratoryCostSelfTotal;
1055
+                  that.info["laboratory_cost_part_self_total"] =
1056
+                      response.data.data.laboratoryCostPartSelfTotal;
1057
+
1058
+                  that.info["treat_cost_total"] = response.data.data.treatCostTotal;
1059
+                  that.info["treat_cost_self_total"] =
1060
+                      response.data.data.treatCostSelfTotal;
1061
+                  that.info["treat_cost_part_self_total"] =
1062
+                      response.data.data.treatCostPartSelfTotal;
1063
+                  that.info["date"] = response.data.data.date;
1064
+                  that.info["number"] = response.data.data.number;
1065
+                  that.info["order_infos"] = response.data.data.order_infos;
1066
+                  that.info["diagnosis"] = response.data.data.diagnosis;
996 1067
 
997
-                    }else{
998
-                      obj.name = order.project.good_info.good_name
999
-                      obj.spec = order.project.good_info.specification_name
1068
+                  let obj = {
1069
+                    type: 1,
1070
+                    details: [],
1071
+                    total: 0,
1072
+                  };
1073
+                  let obj2 = {
1074
+                    type: 2,
1075
+                    details: [],
1076
+                    total: 0,
1077
+                  };
1078
+                  let obj3 = {
1079
+                    type: 3,
1080
+                    details: [],
1081
+                    total: 0,
1082
+                  };
1083
+
1084
+                  let obj4 = {
1085
+                    type: 4,
1086
+                    details: [],
1087
+                    total: 0,
1088
+                  };
1089
+                  let num = 0;
1090
+                  that.info.order_infos.map((item) => {
1091
+                    if (item.advice_id > 0) {
1092
+                      obj.details.push(item);
1093
+                      obj.total += item.pric * item.advice.prescribing_number;
1094
+                      num++;
1095
+                    } else {
1096
+                      if (item.project.type == 2) {
1097
+                        obj2.details.push(item);
1098
+                        obj2.total += item.pric * item.project.count;
1099
+                        num++;
1100
+                      } else {
1101
+                        obj3.details.push(item);
1102
+                        obj3.total += item.pric * item.project.count;
1103
+                        num++;
1104
+                      }
1105
+                    }
1106
+                  });
1107
+
1108
+                  // this.info.order_infos.map(item => {
1109
+                  //   obj4.total = item.Total
1110
+                  //   obj4.details.push(item)
1111
+                  //   num++
1112
+                  //
1113
+                  // })
1114
+
1115
+                  that.info.new_detail_list = [];
1116
+                  that.info.new_detail_list.push(obj);
1117
+                  that.info.new_detail_list.push(obj2);
1118
+                  that.info.new_detail_list.push(obj3);
1119
+                  // that.info.new_detail_list.push(obj4)
1120
+
1121
+                  that.num = num;
1122
+
1123
+                  if (that.paramsObj.settle_type != 1) {
1124
+                    that.info.begndate = that.getTimes(that.paramsObj.start_time);
1125
+                    that.info.enddate = that.getTimes(that.paramsObj.end_time);
1126
+                  }
1127
+
1128
+                  let list = []
1129
+                  for (let i = 0; i < response.data.data.order_infos.length; i++) {
1130
+                    let order = response.data.data.order_infos[i]
1131
+                    let obj = {
1132
+                      name: "",
1133
+                      spec: "",
1134
+                      cnt: "",
1135
+                      det_item_fee_sumamt: "",
1136
+                    }
1137
+
1138
+                    if (order.advice_id > 0 && order.project_id == 0) {
1139
+                      obj.name = order.advice.advice_name
1140
+                      let spec = order.advice.drug.dose + order.advice.drug.dose_unit + '*' + order.advice.drug.min_number + order.advice.drug.min_unit + '/' + order.advice.drug.max_unit
1141
+                      obj.spec = spec
1000 1142
                       obj.cnt = order.cnt
1001
-                      obj.det_item_fee_sumamt =order.det_item_fee_sumamt
1143
+                      obj.det_item_fee_sumamt = order.det_item_fee_sumamt
1144
+                      list.push(obj)
1145
+
1146
+                    } else if (order.advice_id == 0 && order.project_id > 0) {
1147
+                      if (order.project.type == 2) {
1148
+                        obj.name = order.project.project.project_name
1149
+                        obj.spec = ""
1150
+                        obj.cnt = order.cnt
1151
+                        obj.det_item_fee_sumamt = order.det_item_fee_sumamt
1152
+                        list.push(obj)
1153
+
1154
+                      } else {
1155
+                        obj.name = order.project.good_info.good_name
1156
+                        obj.spec = order.project.good_info.specification_name
1157
+                        obj.cnt = order.cnt
1158
+                        obj.det_item_fee_sumamt = order.det_item_fee_sumamt
1159
+                        list.push(obj)
1160
+                      }
1002 1161
                     }
1003
-                    list.push(obj)
1004 1162
                   }
1005 1163
 
1006
-                }
1007
-                let len = list.length / 2
1008
-                let L_list = []
1009
-                let R_list = []
1164
+                  let len = list.length / 2
1165
+                  let L_list = []
1166
+                  let R_list = []
1167
+                  len = Math.trunc(len)
1010 1168
 
1011
-                for(let i = 0; i < len; i++){
1012
-                  L_list.push(list[i])
1013
-                }
1014
-                for(let i = len; i < list.length; i++){
1015
-                  R_list.push(list[i])
1016
-                }
1017
-                that.info["L_list"] = L_list
1018
-                that.info["R_list"] = R_list
1169
+                  for (let i = 0; i < len; i++) {
1170
+                    L_list.push(list[i])
1171
+                  }
1172
+                  for (let i = len; i < list.length; i++) {
1173
+                    R_list.push(list[i])
1174
+                  }
1175
+                  that.info["L_list"] = L_list
1176
+                  that.info["R_list"] = R_list
1019 1177
 
1020
-              }
1021
-            })
1022
-            .catch(function (error) {
1023
-            });
1178
+                }
1179
+              })
1180
+              .catch(function (error) {
1181
+              });
1182
+        }
1024 1183
       }
1025 1184
     },
1026 1185
   },

+ 8 - 1
src/xt_pages/workforce/components/tableWeeks.vue View File

@@ -26,6 +26,8 @@
26 26
                     type="primary">
27 27
                 打印设置
28 28
             </el-button>
29
+
30
+           
29 31
         </div>
30 32
 
31 33
         <div class="cell clearfix">
@@ -1530,7 +1532,12 @@
1530 1532
       changeZone(val){
1531 1533
         this.zone = val
1532 1534
         this.getScheduleList()
1533
-      }
1535
+      },
1536
+     printActionSchedule(){
1537
+        this.$router.push({
1538
+          path: '/workforce/schedulePrint=' + this.week_type + '&week_time=' + this.week_time + '&zone=' + this.pre_status+"&type="+1
1539
+        })
1540
+     }
1534 1541
     },
1535 1542
     components: {
1536 1543
       WeekItem

+ 542 - 0
src/xt_pages/workforce/printOne.vue View File

@@ -0,0 +1,542 @@
1
+<template>
2
+  <div class="main-contain">
3
+    <div class="position">
4
+      <bread-crumb :crumbs="crumbs"></bread-crumb>
5
+      <el-row style="float:right;">
6
+        <el-col :span="24">
7
+          <el-button size="small" icon="el-icon-printer" type="primary" @click="printAction">打印</el-button>
8
+        </el-col>
9
+      </el-row>
10
+    </div>
11
+    <div class="app-container" style="background-color: white;">
12
+
13
+      <div id="print_content">
14
+        <div class="print_main_content" v-for="(item,index) in tableData" :key="index">
15
+        
16
+          <div class="order_title_panl">
17
+            <span class="main_title">{{getTimeOne(item.schedule_date)}}&nbsp;
18
+              <span v-if="item.schedule_type == 1">上午</span>
19
+              <span v-if="item.schedule_type == 2">下午</span>
20
+              <span v-if="item.schedule_type == 3">晚上</span>
21
+            </span>
22
+          </div>
23
+          <div class="table_panel">
24
+
25
+            <table class="table">
26
+              <thead>
27
+              <tr>
28
+                <td :width="td_1_width">分区</td>
29
+             
30
+                <td :width="td_3_width">病人姓名</td>
31
+               
32
+              </tr>
33
+              </thead>
34
+              <tbody>
35
+              <tr v-for="(it, i) in item.zones" :key="i">
36
+                <td :width="td_1_width">{{getZoneName(it.partition_id)}} </td>
37
+                <td :width="td_3_width" valign="top">
38
+                  <div style="min-height: 80px;">
39
+                    <div class="proj">
40
+                      <div class="proj_item">
41
+                        <span class="zone_name">
42
+                          {{getPatientName(item.schedule_type,it.partition_id)}}  
43
+                        </span>
44
+                        
45
+                      </div>
46
+                    </div>
47
+                  </div>
48
+                </td>
49
+               
50
+              </tr>
51
+              </tbody>
52
+            </table>
53
+          </div>
54
+        </div>
55
+      </div>
56
+    </div>
57
+  </div>
58
+</template>
59
+
60
+<script>
61
+  import { GetAllZone,getSchedualPrintList } from "@/api/dialysis";
62
+  import { parseTime } from '@/utils'
63
+  import { uParseTime } from '@/utils/tools'
64
+  import BreadCrumb from '@/xt_pages/components/bread-crumb'
65
+  import print from 'print-js'
66
+
67
+  export default {
68
+    name: 'SchedulePrint',
69
+    data() {
70
+      return {
71
+        crumbs: [
72
+          { path: false, name: '排班管理' },
73
+          { path: false, name: '排班打印' }
74
+        ],
75
+        td_1_width: '8%',
76
+        td_2_width: '8%',
77
+        td_3_width: '64%',
78
+        td_4_width: '20%',
79
+
80
+        month: 1,
81
+        begin_day: 1,
82
+
83
+        schedules: [
84
+          {
85
+            day: 1,
86
+            weekday: '星期一',
87
+            all: {
88
+              am: { /* zone_name: [ schedule, ... ] */ },
89
+              pm: { /* zone_name: [ schedule, ... ] */ },
90
+              evening: { /* zone_name: [ schedule, ... ] */ }
91
+            },
92
+            hdf: [ /* schedule, ... */],
93
+            hd_hp: [ /* schedule, ... */],
94
+
95
+            new_hdf:{
96
+              am: { /* zone_name: [ schedule, ... ] */ },
97
+              pm: { /* zone_name: [ schedule, ... ] */ },
98
+              evening: { /* zone_name: [ schedule, ... ] */ }
99
+            },
100
+            new_hd_hp:{
101
+              am: { /* zone_name: [ schedule, ... ] */ },
102
+              pm: { /* zone_name: [ schedule, ... ] */ },
103
+              evening: { /* zone_name: [ schedule, ... ] */ }
104
+            }
105
+
106
+          },
107
+          {
108
+            day: 2,
109
+            weekday: '星期二',
110
+            all: {
111
+              am: { /* zone_name: [ schedule, ... ] */ },
112
+              pm: { /* zone_name: [ schedule, ... ] */ },
113
+              evening: { /* zone_name: [ schedule, ... ] */ }
114
+            },
115
+            hdf: [ /* schedule, ... */],
116
+            hd_hp: [ /* schedule, ... */],
117
+            new_hdf:{
118
+              am: { /* zone_name: [ schedule, ... ] */ },
119
+              pm: { /* zone_name: [ schedule, ... ] */ },
120
+              evening: { /* zone_name: [ schedule, ... ] */ }
121
+            },
122
+            new_hd_hp:{
123
+              am: { /* zone_name: [ schedule, ... ] */ },
124
+              pm: { /* zone_name: [ schedule, ... ] */ },
125
+              evening: { /* zone_name: [ schedule, ... ] */ }
126
+            }
127
+          },
128
+          {
129
+            day: 3,
130
+            weekday: '星期三',
131
+            all: {
132
+              am: { /* zone_name: [ schedule, ... ] */ },
133
+              pm: { /* zone_name: [ schedule, ... ] */ },
134
+              evening: { /* zone_name: [ schedule, ... ] */ }
135
+            },
136
+            hdf: [ /* schedule, ... */],
137
+            hd_hp: [ /* schedule, ... */],
138
+            new_hdf:{
139
+              am: { /* zone_name: [ schedule, ... ] */ },
140
+              pm: { /* zone_name: [ schedule, ... ] */ },
141
+              evening: { /* zone_name: [ schedule, ... ] */ }
142
+            },
143
+            new_hd_hp:{
144
+              am: { /* zone_name: [ schedule, ... ] */ },
145
+              pm: { /* zone_name: [ schedule, ... ] */ },
146
+              evening: { /* zone_name: [ schedule, ... ] */ }
147
+            }
148
+          },
149
+          {
150
+            day: 4,
151
+            weekday: '星期四',
152
+            all: {
153
+              am: { /* zone_name: [ schedule, ... ] */ },
154
+              pm: { /* zone_name: [ schedule, ... ] */ },
155
+              evening: { /* zone_name: [ schedule, ... ] */ }
156
+            },
157
+            hdf: [ /* schedule, ... */],
158
+            hd_hp: [ /* schedule, ... */],
159
+            new_hdf:{
160
+              am: { /* zone_name: [ schedule, ... ] */ },
161
+              pm: { /* zone_name: [ schedule, ... ] */ },
162
+              evening: { /* zone_name: [ schedule, ... ] */ }
163
+            },
164
+            new_hd_hp:{
165
+              am: { /* zone_name: [ schedule, ... ] */ },
166
+              pm: { /* zone_name: [ schedule, ... ] */ },
167
+              evening: { /* zone_name: [ schedule, ... ] */ }
168
+            }
169
+          },
170
+          {
171
+            day: 5,
172
+            weekday: '星期五',
173
+            all: {
174
+              am: { /* zone_name: [ schedule, ... ] */ },
175
+              pm: { /* zone_name: [ schedule, ... ] */ },
176
+              evening: { /* zone_name: [ schedule, ... ] */ }
177
+            },
178
+            hdf: [ /* schedule, ... */],
179
+            hd_hp: [ /* schedule, ... */],
180
+            new_hdf:{
181
+              am: { /* zone_name: [ schedule, ... ] */ },
182
+              pm: { /* zone_name: [ schedule, ... ] */ },
183
+              evening: { /* zone_name: [ schedule, ... ] */ }
184
+            },
185
+            new_hd_hp:{
186
+              am: { /* zone_name: [ schedule, ... ] */ },
187
+              pm: { /* zone_name: [ schedule, ... ] */ },
188
+              evening: { /* zone_name: [ schedule, ... ] */ }
189
+            }
190
+          },
191
+          {
192
+            day: 6,
193
+            weekday: '星期六',
194
+            all: {
195
+              am: { /* zone_name: [ schedule, ... ] */ },
196
+              pm: { /* zone_name: [ schedule, ... ] */ },
197
+              evening: { /* zone_name: [ schedule, ... ] */ }
198
+            },
199
+            hdf: [ /* schedule, ... */],
200
+            hd_hp: [ /* schedule, ... */],
201
+            new_hdf:{
202
+              am: { /* zone_name: [ schedule, ... ] */ },
203
+              pm: { /* zone_name: [ schedule, ... ] */ },
204
+              evening: { /* zone_name: [ schedule, ... ] */ }
205
+            },
206
+            new_hd_hp:{
207
+              am: { /* zone_name: [ schedule, ... ] */ },
208
+              pm: { /* zone_name: [ schedule, ... ] */ },
209
+              evening: { /* zone_name: [ schedule, ... ] */ }
210
+            }
211
+          },
212
+          {
213
+            day: 7,
214
+            weekday: '星期日',
215
+            all: {
216
+              am: { /* zone_name: [ schedule, ... ] */ },
217
+              pm: { /* zone_name: [ schedule, ... ] */ },
218
+              evening: { /* zone_name: [ schedule, ... ] */ }
219
+            },
220
+            hdf: [ /* schedule, ... */],
221
+            hd_hp: [ /* schedule, ... */],
222
+            new_hdf:{
223
+              am: { /* zone_name: [ schedule, ... ] */ },
224
+              pm: { /* zone_name: [ schedule, ... ] */ },
225
+              evening: { /* zone_name: [ schedule, ... ] */ }
226
+            },
227
+            new_hd_hp:{
228
+              am: { /* zone_name: [ schedule, ... ] */ },
229
+              pm: { /* zone_name: [ schedule, ... ] */ },
230
+              evening: { /* zone_name: [ schedule, ... ] */ }
231
+            }
232
+          }
233
+        ],
234
+
235
+        total:[],
236
+        list:[],
237
+        schedule_date:"",
238
+        schedule_type:0,
239
+        partition_type:0,
240
+        keywords:"",
241
+        loading:false,
242
+        tableData:[],
243
+        numberList:[],
244
+        partitionArr:[],
245
+
246
+      }
247
+    },
248
+    components: {
249
+      BreadCrumb
250
+    },
251
+    created() {
252
+      var date = new Date().getTime()
253
+      if (this.$route.query.date) {
254
+        date = this.$route.query.date
255
+      }
256
+      var date_str = parseTime(date, '{y}-{m}-{d}')
257
+
258
+      this.month = parseInt(parseTime(date, '{m}'))
259
+      this.getAllZone()
260
+      this.getlist()
261
+    
262
+
263
+ 
264
+    },
265
+    methods: {
266
+     getAllZone() {
267
+      GetAllZone().then(response => {
268
+        if (response.data.state == 0) {
269
+          this.$message.error(response.data.msg);
270
+          return false;
271
+        } else {
272
+          this.partitionArr = response.data.data.zone;
273
+        }
274
+      });
275
+     },
276
+      getlist(){
277
+         var params = {
278
+           schedule_date:this.$route.query.schedule_date,
279
+           schedule_type:parseInt(this.$route.query.schedule_type),
280
+           partition_type:parseInt(this.$route.query.partition_type),
281
+           keywords:this.$route.query.keywords,
282
+           page:1,
283
+           limit:5000,
284
+         }
285
+        this.loading = true;
286
+        this.tableData = [];
287
+        getSchedualPrintList(params).then(response => {
288
+            if(response.data.state == 1){
289
+            this.loading = false
290
+            var list =  response.data.data.list
291
+            this.list = list
292
+            var listOne = response.data.data.listOne
293
+            if(list!=null && list.length > 0){
294
+              let dataInfo = {}
295
+              list.forEach((item, index) => {
296
+                 let { schedule_type } = item
297
+                  if (!dataInfo[schedule_type]) {
298
+                    dataInfo[schedule_type] = {
299
+                      schedule_type:item.schedule_type,
300
+                      schedule_date:item.schedule_date,
301
+                      zones: [],
302
+                    }
303
+                  }
304
+                })
305
+              let arr = Object.values(dataInfo)
306
+              console.log("arr222",arr)
307
+               
308
+             if(arr!=null && arr.length > 0){
309
+              for(let i=0;i<arr.length;i++){
310
+                for(let j=0;j<listOne.length;j++){
311
+                   if(arr[i].schedule_type == listOne[j].schedule_type){
312
+                      arr[i].zones.push(listOne[j])
313
+                   }
314
+                }
315
+              } 
316
+             }
317
+            console.log("arr23322332",arr)
318
+             
319
+              this.tableData = arr
320
+            }
321
+            
322
+           
323
+            this.numberList = response.data.data.numberList
324
+            console.log("list2332233232wo",list)
325
+            console.log("numberList",this.numberList)
326
+           
327
+           
328
+            }
329
+        
330
+        });
331
+      },
332
+     getTimeOne(val) {
333
+        if(val == ""){
334
+        return ""
335
+        }else {
336
+        return uParseTime(val, '{y}-{m}-{d}')
337
+        }
338
+     },
339
+      getPatientNum(week,type){
340
+        if(week == '星期一'){
341
+          week = 1
342
+        }else if(week == '星期二'){
343
+          week = 2
344
+        }else if(week == '星期三'){
345
+          week = 3
346
+        }else if(week == '星期四'){
347
+          week = 4
348
+        }else if(week == '星期五'){
349
+          week = 5
350
+        }else if(week == '星期六'){
351
+          week = 6
352
+        }else if(week == '星期日'){
353
+          week = 7
354
+        }
355
+        let num = 0
356
+        this.total.map(item => {
357
+          if(item.schedule_week == week && item.schedule_type == type){
358
+            num = item.Count
359
+          }
360
+        })
361
+        return num
362
+      },
363
+      patient_names: function(schedules) {
364
+        var names = []
365
+        for (let index = 0; index < schedules.length; index++) {
366
+          const schedule = schedules[index]
367
+          console.log(schedule)
368
+
369
+          names.push(schedule.patient.name)
370
+        }
371
+        const obj = {}
372
+        names = names.reduce((cur, next) => {
373
+          obj[next] ? '' : obj[next] = true && cur.push(next)
374
+          return cur
375
+        }, []) // 设置cur默认类型为数组,并且初始值为空的数组
376
+        console.log('names',names)
377
+        return names.join('、')
378
+      },
379
+      patient_other_names: function(schedules) {
380
+        let am = []
381
+        let pm = []
382
+        let evening = []
383
+
384
+        var names = []
385
+        for (let index = 0; index < schedules.length; index++) {
386
+          const schedule = schedules[index]
387
+          console.log(schedule)
388
+
389
+          names.push(schedule.patient.name)
390
+
391
+          if(schedule.schedule_type == 1){
392
+            am.push(schedule.patient.name)
393
+
394
+          }else if(schedule.schedule_type == 2){
395
+            pm.push(schedule.patient.name)
396
+
397
+
398
+          }else if(schedule.schedule_type == 3){
399
+            evening.push(schedule.patient.name)
400
+          }
401
+        }
402
+        const obj = {}
403
+        names = names.reduce((cur, next) => {
404
+          obj[next] ? '' : obj[next] = true && cur.push(next)
405
+          return cur
406
+        }, []) // 设置cur默认类型为数组,并且初始值为空的数组
407
+        var str= ""
408
+
409
+        if(am.length > 0){
410
+          str = "上午:"+ am.length + '人' +"<br/>" + '&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;' + am.join("、") +"<br/>"
411
+        }
412
+
413
+        if(pm.length > 0){
414
+          str = str + "下午:" + pm.length + '人' + "<br/>" + '&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;' + pm.join("、")+"<br/>"
415
+        }
416
+
417
+        if(evening.length > 0){
418
+          str = str + "晚上:" + evening.length + '人' +"<br/>" + '&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;' + evening.join("、")
419
+        }
420
+        return str
421
+      },
422
+      printAction: function() {
423
+        const style = '@media print { .print_main_content { background-color: white; width:960px;  margin:0 auto; padding: 0 0 20px 0; } .order_title_panl { text-align: center; } .main_title { font-size: 18px; line-height: 40px; font-weight: 500; } .table_panel { } .table { width: 100%; border: 1px solid; border-collapse: collapse; padding: 2px; } thead tr td { border: 1px solid; text-align: center; font-size: 20px; padding: 15px 5px; } tbody tr td { border: 1px solid; text-align: center; font-size: 18px; padding: 10px 5px; } .proj { padding: 5px 0; text-align: left; } .proj_title { font-size: 16px; font-weight: 500; line-height: 25px; } .proj_item { font-size: 15px; line-height: 20px; } .zone_name { font-weight: 500; } }'
424
+
425
+        printJS({
426
+          printable: 'print_content',
427
+          type: 'html',
428
+          documentTitle: '  ',
429
+          style: style,
430
+          scanStyles: false
431
+        })
432
+      },
433
+      getPatientName(schedule_type,partition_id){
434
+        
435
+        var str = ""
436
+        var arr= []
437
+        if(this.list!=null && this.list.length > 0){
438
+          for(let i=0;i<this.list.length;i++){
439
+            if(this.list[i].schedule_type == schedule_type && this.list[i].partition_id == partition_id){
440
+                arr.push(this.list[i])
441
+            }
442
+          }
443
+        }
444
+       
445
+        if(arr.length > 0){
446
+          for(let i=0;i<arr.length;i++){
447
+            str += arr[i].name + ","
448
+          }
449
+        }
450
+        return str.slice(0,str.length-1)
451
+      },
452
+      getZoneName(id){
453
+        var name = ""
454
+        for(let i=0;i<this.partitionArr.length;i++){
455
+          if(id == this.partitionArr[i].id){
456
+            name = this.partitionArr[i].name
457
+          }
458
+        }
459
+       
460
+
461
+        return name
462
+      }
463
+    }
464
+  }
465
+</script>
466
+
467
+<style rel="stylesheet/scss" lang="scss" scoped>
468
+  .print_main_content {
469
+    background-color: white;
470
+    width: 960px;
471
+    margin: 0 auto;
472
+    padding: 0 0 20px 0;
473
+
474
+  .order_title_panl {
475
+    text-align: center;
476
+
477
+  .main_title {
478
+    font-size: 18px;
479
+    line-height: 40px;
480
+    font-weight: 500;
481
+  }
482
+
483
+  }
484
+  .table_panel {
485
+
486
+  .table {
487
+    width: 100%;
488
+    border: 1px solid;
489
+    border-collapse: collapse;
490
+    padding: 2px;
491
+
492
+  thead {
493
+
494
+  tr {
495
+
496
+  td {
497
+    border: 1px solid;
498
+    text-align: center;
499
+    font-size: 20px;
500
+    padding: 15px 5px;
501
+  }
502
+
503
+  }
504
+  }
505
+  tbody {
506
+
507
+  tr {
508
+
509
+  td {
510
+    border: 1px solid;
511
+    text-align: center;
512
+    font-size: 18px;
513
+    padding: 10px 5px;
514
+
515
+  .proj {
516
+    padding: 5px 0;
517
+    text-align: left;
518
+
519
+  .proj_title {
520
+    font-size: 16px;
521
+    font-weight: 500;
522
+    line-height: 25px;
523
+  }
524
+
525
+  .proj_item {
526
+    font-size: 15px;
527
+    line-height: 20px;
528
+
529
+  .zone_name {
530
+    font-weight: 500;
531
+  }
532
+
533
+  }
534
+  }
535
+  }
536
+  }
537
+  }
538
+  }
539
+  }
540
+  }
541
+</style>
542
+

+ 439 - 0
src/xt_pages/workforce/schedulePrint.vue View File

@@ -0,0 +1,439 @@
1
+<template>
2
+  <div class="main-contain">
3
+    <div class="position">
4
+      <bread-crumb :crumbs="crumbs"></bread-crumb>
5
+    </div>
6
+    <div class="app-container">
7
+      <div class="cell clearfix">
8
+       <label class="title"> <span class="name">日期查询</span> : </label>
9
+       <el-date-picker
10
+        @change="changeTime"
11
+        v-model="listQuery.schedule_date"
12
+        type="date"
13
+        placeholder="选择日期">
14
+         </el-date-picker>
15
+      </div>
16
+      <div class="cell clearfix">
17
+        <label class="title"> <span class="name">排班班次</span> : </label>
18
+        <div class="time">
19
+          <ul class>
20
+            <li
21
+              :class="item.value == schedulType ? 'active' : ''"
22
+              @click="selectSchedulType(item.value)"
23
+              v-for="item in schedulArr"
24
+              :key="item.value"
25
+            >
26
+              {{ item.label }}
27
+            </li>
28
+          </ul>
29
+        </div>
30
+      </div>
31
+      <div class="cell clearfix">
32
+        <label class="title"> <span class="name">分区</span> : </label>
33
+        <div class="time">
34
+          <ul class>
35
+            <li
36
+              :class="item.id == partitionType ? 'active' : ''"
37
+              @click="selectPartitionType(item.id)"
38
+              v-for="item in partitionArr"
39
+              :key="item.id"
40
+            >
41
+              {{ item.name }}
42
+            </li>
43
+          </ul>
44
+        </div>
45
+      </div>
46
+      <div class="cell clearfix">
47
+         <el-input
48
+          v-model="patient_search_keyword"
49
+          style="width: 250px;"
50
+          placeholder="请输入患者姓名"
51
+          @keyup.enter.native='searchPatientAction'
52
+        >
53
+        </el-input>
54
+        <span>&nbsp;&nbsp;</span>
55
+        <el-button
56
+            slot="append"
57
+            style="background-color: #409EFF; color: white; border-radius: 0;"
58
+            icon="el-icon-search"
59
+            type="primary"
60
+            size="small"
61
+            @click="searchPatientAction"
62
+          >搜索</el-button>
63
+
64
+        <el-button type="primary" size="small" style="margin-right" @click="toPrint">打印</el-button>
65
+      </div>
66
+
67
+      <el-table
68
+        border
69
+        :row-style="{ color: '#303133' }"
70
+        :header-cell-style="{
71
+          backgroundColor: 'rgb(245, 247, 250)',
72
+          color: '#606266'
73
+        }"
74
+        :data="tableData"
75
+        style="width: 100%"
76
+      >
77
+    
78
+     <el-table-column label="排班日期" align="center" width="120">
79
+        <template slot-scope="scope">
80
+          {{getTimeOne(scope.row.schedule_date)}}
81
+        </template>
82
+     </el-table-column>
83
+
84
+        <el-table-column prop="name" label="姓名" align="center">
85
+        <template slot-scope="scope">
86
+          <span style="color: #579ef8;width:100%;display:block;">{{ scope.row.name }}</span>
87
+        </template>
88
+       </el-table-column>
89
+      
90
+       <el-table-column label="透析模式" align="center" width="100">
91
+       
92
+          <template slot-scope="scope">
93
+            <span v-if="scope.row.mode_id == 1">HD</span>
94
+            <span v-if="scope.row.mode_id == 2">HDF</span>
95
+            <span v-if="scope.row.mode_id == 3">HD+HP</span>
96
+            <span v-if="scope.row.mode_id == 4">HP</span>
97
+            <span v-if="scope.row.mode_id == 5">HF</span>
98
+            <span v-if="scope.row.mode_id == 6">SCUF</span>
99
+            <span v-if="scope.row.mode_id == 7">IUF</span>
100
+            <span v-if="scope.row.mode_id == 8">HFHD</span>
101
+            <span v-if="scope.row.mode_id == 9">HFHD+HP</span>
102
+            <span v-if="scope.row.mode_id == 10">PHF</span>
103
+            <span v-if="scope.row.mode_id == 11">HFR</span>
104
+            <span v-if="scope.row.mode_id == 12">HDF+HP</span>
105
+            <span v-if="scope.row.mode_id == 13">CRRT</span>
106
+            <span v-if="scope.row.mode_id == 14">腹水回输</span>
107
+            <span v-if="scope.row.mode_id == 15"></span>
108
+            <span v-if="scope.row.mode_id == 16"></span>
109
+            <span v-if="scope.row.mode_id == 17"></span>
110
+            <span v-if="scope.row.mode_id == 18"></span>
111
+            <span v-if="scope.row.mode_id == 19">IUF+HD</span>
112
+            <span v-if="scope.row.mode_id == 20">UF</span>
113
+            <span v-if="scope.row.mode_id == 21">HD+</span>
114
+            <span v-if="scope.row.mode_id == 22">血浆胆红素吸附+HDF</span>
115
+            <span v-if="scope.row.mode_id == 23">血浆胆红素吸附</span>
116
+            <span v-if="scope.row.mode_id == 24">I-HDF</span> 
117
+            <span v-if="scope.row.mode_id == 25">HD高通</span>
118
+            <span v-if="scope.row.mode_id == 26">CVVH</span>
119
+            <span v-if="scope.row.mode_id == 27">CVVHD</span>
120
+            <span v-if="scope.row.mode_id == 28">CVVHDF</span>
121
+            <span v-if="scope.row.mode_id == 29">PE</span>
122
+            <span v-if="scope.row.mode_id == 30">血浆胆红素吸附+HP</span>
123
+            <span v-if="scope.row.mode_id == 31">HPD</span>
124
+            <span v-if="scope.row.mode_id == 32">HDP</span>
125
+
126
+
127
+          </template>
128
+
129
+       </el-table-column>
130
+      
131
+        <el-table-column  label="分区" align="center">
132
+           <template slot-scope="scope">
133
+            <span>
134
+               {{getZoneName(scope.row.partition_id)}} 
135
+            </span>
136
+          </template>
137
+        </el-table-column>
138
+        <el-table-column  label="机号" align="center">
139
+         <template slot-scope="scope">
140
+            <span>
141
+               {{getNumberName(scope.row.bed_id)}} 
142
+            </span>
143
+          </template>
144
+        </el-table-column>
145
+       
146
+      </el-table>
147
+
148
+      <el-pagination
149
+        align="right"
150
+        @size-change="handleSizeChange"
151
+        @current-change="handleCurrentChange"
152
+        :page-sizes="[10,20,30,40,100]"
153
+        :page-size="10"
154
+        background
155
+        style="margin-top:20px;"
156
+        layout="total, sizes, prev, pager, next, jumper"
157
+        :total="total"
158
+      ></el-pagination>
159
+    </div>
160
+  </div>
161
+</template>
162
+
163
+<script>
164
+import { getSchedualPatient, GetAllZone,getSchedualPrintList } from "@/api/dialysis";
165
+import { parseTime } from "@/utils";
166
+import { uParseTime } from '@/utils/tools'
167
+import BreadCrumb from "@/xt_pages/components/bread-crumb";
168
+const moment = require('moment')
169
+export default {
170
+  name: "Patient",
171
+  data() {
172
+    return {
173
+      crumbs: [
174
+        { path: false, name: "患者排班" },
175
+        { path: false, name: "排班打印" }
176
+      ],
177
+      loading: false,
178
+      time: "",
179
+      search_mode: 1, // 搜索模式 1.日期搜索 2.病人搜索
180
+      patient_search_keyword: "",
181
+      tableData: [],
182
+      active: true,
183
+      schedulType: 0,
184
+      schedulArr: [
185
+        { value: 0, label: "全部" },
186
+        { value: 1, label: "上午" },
187
+        { value: 2, label: "下午" },
188
+        { value: 3, label: "晚上" }
189
+      ],
190
+      template_id: 0,
191
+
192
+      partitionType: 0,
193
+
194
+      labelArr: ["第1次", "第2次", "第3次", "第4次", "第5次", "第6次", "第7次"],
195
+      total: 0,
196
+      listQuery: {
197
+        page: 1,
198
+        limit: 10,
199
+        schedule_type: 0,
200
+        partition_type: 0,
201
+        keywords: "",
202
+        schedule_date:"",
203
+      },
204
+      selecting_schs: [],
205
+      partitionArr: [],
206
+      numberList:[],
207
+    };
208
+  },
209
+  created() {
210
+    this.listQuery.schedule_date = moment(new Date()).add('year',0).format("YYYY-MM-DD")
211
+    this.getAllZone();
212
+    var search_mode = this.$store.getters.search_mode
213
+    var search_value = this.$store.getters.search_value
214
+    this.getlist();
215
+  },
216
+  methods: {
217
+    clickCurrent(val) {
218
+      console.log(val);
219
+      this.$router.push({
220
+        path: "/dialysis/details",
221
+        query: { patient_id: val.patient_id, date: val.sch_time_int,mode_id:val.mode_id }
222
+      });
223
+    },
224
+    handleSelectionChange(val) {
225
+      this.selecting_schs = val;
226
+    },
227
+
228
+    selectSchedulType(scheduleType) {
229
+      this.schedulType = scheduleType;
230
+      this.listQuery.schedule_type = scheduleType;
231
+      this.getlist();
232
+    },
233
+    selectPartitionType(partitionType) {
234
+      this.partitionType = partitionType;
235
+      this.listQuery.partition_type = partitionType;
236
+      this.getlist();
237
+    },
238
+
239
+    changeTime() {
240
+      this.listQuery.schedul_time = this.time;
241
+      this.getlist();
242
+    },
243
+    getAllZone: function() {
244
+      GetAllZone().then(response => {
245
+        if (response.data.state == 0) {
246
+          this.$message.error(response.data.msg);
247
+          return false;
248
+        } else {
249
+          this.partitionArr = response.data.data.zone;
250
+          this.partitionArr.unshift({ id: 0, name: "全部" });
251
+        }
252
+      });
253
+    },
254
+    getlist: function() {
255
+      this.loading = true;
256
+      console.log("params332322332323232",this.listQuery)
257
+      this.tableData = [];
258
+      getSchedualPrintList(this.listQuery).then(response => {
259
+         if(response.data.state == 1){
260
+           this.loading = false
261
+           var list =  response.data.data.list
262
+           this.numberList = response.data.data.numberList
263
+           console.log("list2332233232wo",list)
264
+           console.log("numberList",this.numberList)
265
+           this.tableData = list
266
+           this.total = response.data.data.total
267
+         }
268
+      
269
+      });
270
+    },
271
+    getValue: function(val) {
272
+
273
+      if (val != undefined) {
274
+        var str = val.value.split("/")
275
+        return str[0];
276
+      } else {
277
+        return "";
278
+      }
279
+    },
280
+   getValueOne: function(val) {
281
+      if (val != undefined) {
282
+        var str = val.value.split("/")
283
+        return str[1];
284
+      } else {
285
+        return "";
286
+      }
287
+    },
288
+    handleCurrentChange(val) {
289
+      this.listQuery.page = val;
290
+      this.getlist();
291
+    },
292
+    changeSearchMode: function() {
293
+     this.getlist();
294
+      
295
+    },
296
+    searchPatientAction: function() {
297
+      this.listQuery.page = 1
298
+      this.listQuery.limit = 10
299
+      this.listQuery.keywords = this.patient_search_keyword;
300
+      this.$store.dispatch('SetSearchValue', this.patient_search_keyword)
301
+      console.log(this.patient_search_keyword);
302
+      if (this.patient_search_keyword.length == 0) {
303
+        return;
304
+      }
305
+      this.getlist();
306
+    },
307
+    handleSizeChange(val) {
308
+      this.listQuery.limit = val;
309
+      this.getlist();
310
+    },
311
+     getTimeOne(val) {
312
+      if(val == ""){
313
+      return ""
314
+      }else {
315
+      return uParseTime(val, '{y}-{m}-{d}')
316
+      }
317
+    },
318
+    toPrint(){
319
+        this.$router.push({
320
+          path: '/workforce/schedule/printone?schedule_date=' + this.listQuery.schedule_date+"&schedule_type="+this.listQuery.schedule_type+"&partition_type="+this.listQuery.partition_type+"&keywords="+this.listQuery.keywords
321
+        })
322
+    },
323
+    getZoneName(id){
324
+        var name = ""
325
+        for(let i=0;i<this.partitionArr.length;i++){
326
+          if(id == this.partitionArr[i].id){
327
+            name = this.partitionArr[i].name
328
+          }
329
+        }
330
+       
331
+
332
+        return name
333
+      },
334
+    getNumberName(id){
335
+      var name = ""
336
+      for(let i=0;i<this.numberList.length;i++){
337
+       if(id == this.numberList[i].id){
338
+          name = this.numberList[i].number
339
+       }
340
+      }
341
+      return name
342
+    }
343
+  },
344
+  components: {
345
+    BreadCrumb
346
+  }
347
+};
348
+</script>
349
+
350
+<style rel="stylesheet/scss" lang="scss" scoped>
351
+.app-container {
352
+  //   margin: 20px;
353
+  font-size: 15px;
354
+  .filter-container {
355
+    padding-bottom: 5px;
356
+  }
357
+  .cqd-dataTitle {
358
+    color: #303133;
359
+    font-size: 14px;
360
+    border-bottom: 2px #e4e7ed solid;
361
+    height: 36px;
362
+    line-height: 36px;
363
+    margin: 0 0 25px 0;
364
+    position: relative;
365
+  }
366
+  .cqd-dataTitle::before {
367
+    position: absolute;
368
+    left: 0;
369
+    bottom: -2px;
370
+    content: "";
371
+    width: 42px;
372
+    height: 2px;
373
+    background: #409eff;
374
+  }
375
+  .search-component {
376
+    width: 500px;
377
+    .searchBox {
378
+      width: 300px;
379
+      height: 36px;
380
+      line-height: 36px;
381
+      padding-left: 15px;
382
+      border: 1px #dcdfe6 solid;
383
+      border-right: none;
384
+      outline: none;
385
+      float: left;
386
+      border-radius: 6px 0 0 6px;
387
+      font-size: 14px;
388
+      color: #333;
389
+      background: #fff;
390
+      box-shadow: 3px 3px 4px rgba(135, 135, 135, 0.05);
391
+    }
392
+    .searchBtn {
393
+      background-color: #409eff;
394
+      color: #fff;
395
+      font-size: 15px;
396
+      text-align: center;
397
+      height: 36px;
398
+      line-height: 36px;
399
+      float: left;
400
+      outline: none;
401
+      width: 70px;
402
+      border: none;
403
+      border-radius: 0 6px 6px 0;
404
+      font-family: "Microsoft Yahei";
405
+      cursor: pointer;
406
+    }
407
+  }
408
+  .amount {
409
+    font-weight: normal;
410
+    padding: 10px 0 0 0;
411
+    color: #606266;
412
+    font-size: 14px;
413
+    span {
414
+      color: #ef2525;
415
+      font-family: "Arial";
416
+      padding: 0 2px;
417
+    }
418
+  }
419
+}
420
+.el-table td,
421
+.el-table th.is-leaf,
422
+.el-table--border,
423
+.el-table--group {
424
+  border-color: #d0d3da;
425
+}
426
+.el-table--border::after,
427
+.el-table--group::after,
428
+.el-table::before {
429
+  background-color: #d0d3da;
430
+}
431
+.el-checkbox__inner::after {
432
+  height: 10px;
433
+  left: 7px;
434
+}
435
+.el-checkbox__inner {
436
+  width: 20px;
437
+  height: 20px;
438
+}
439
+</style>

+ 3 - 2
src/xt_pages/workforce/schedule_print.vue View File

@@ -276,7 +276,7 @@
276 276
 
277 277
           this.total = resp.data.total
278 278
           var schedules = resp.data.schedules
279
-
279
+          console.log("scheudle_date",schedules)
280 280
           for (let index = 0; index < schedules.length; index++) {
281 281
             const schedule = schedules[index]
282 282
             if (schedule.patient == null || schedule.zone == null) {
@@ -314,7 +314,8 @@
314 314
             } else if (schedule.mode.id == 3) { // HD+HF
315 315
               main_collection.hd_hp.push(schedule)
316 316
             }
317
-
317
+         
318
+           console.log("scheudle_date",main_collection)
318 319
           }
319 320
 
320 321