Browse Source

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

28169 2 years ago
parent
commit
b42cff40bb

+ 7 - 5
src/xt_pages/dialysis/batch_print/batch_print_order_forty.vue View File

@@ -311,11 +311,12 @@
311 311
                         <tbody>
312 312
                         <tr>
313 313
                             <td width="70">穿刺方式:</td>
314
-                            <td width="220">
314
+                            <td width="250">
315 315
                             <div>
316 316
                               <label-box showValue="绳梯" :isChecked="record.assessment_before_dislysis.puncture_way.indexOf('绳梯')>-1 ? true : false"></label-box>&nbsp;
317 317
                               <label-box showValue="定点" :isChecked="record.assessment_before_dislysis.puncture_way.indexOf('定点')>-1 ? true : false"></label-box>&nbsp;
318
-                              <label-box showValue="直接穿刺" :isChecked="record.assessment_before_dislysis.puncture_way.indexOf('直接穿刺')>-1 ? true:false"></label-box>&nbsp;             
318
+                              <label-box showValue="直接穿刺" :isChecked="record.assessment_before_dislysis.puncture_way.indexOf('直接穿刺')>-1 ? true:false"></label-box>&nbsp;   
319
+                              <label-box showValue="扣眼" :isChecked="record.assessment_before_dislysis.puncture_way.indexOf('扣眼')>-1 ? true:false"></label-box>&nbsp;                       
319 320
                             </div>
320 321
                             </td>
321 322
                            <td width="60"></td>
@@ -946,16 +947,17 @@
946 947
                             </td>
947 948
                             <td width="35">min</td>
948 949
                             <td width="60">去向</td>
949
-                            <td width="200">
950
+                            <td width="250">
950 951
                             <div style="display:flex;justify-content:space-between;">
951 952
                                 <label-box :isChecked="record.assessment_after_dislysis.patient_gose == 1 ? true : false" showValue="回家"></label-box>
952 953
                                 <label-box :isChecked="record.assessment_after_dislysis.patient_gose == 2 ? true : false" showValue="留观"></label-box>
953 954
                                 <label-box :isChecked="record.assessment_after_dislysis.patient_gose == 3 ? true : false" showValue="住院"></label-box>
955
+                                <label-box :isChecked="record.assessment_after_dislysis.patient_gose == 4 ? true : false" showValue="门诊"></label-box>
954 956
                              </div>
955 957
                              </td>
956
-                              <td>
958
+                              <!-- <td>
957 959
                                  <div class="under-line">&nbsp;</div>
958
-                              </td>
960
+                              </td> -->
959 961
                             </tr>
960 962
                             </tbody>
961 963
                         </table>

+ 14 - 1
src/xt_pages/dialysis/bloodPresssWatch.vue View File

@@ -552,6 +552,10 @@
552 552
           width="100"
553 553
         ></el-table-column>
554 554
 
555
+        <el-table-column label="透前血压(kg)" align="center" width="120" prop="pressure_name">
556
+          
557
+        </el-table-column>
558
+
555 559
         <el-table-column
556 560
           prop="dry_weight"
557 561
           label="干体重(kg)"
@@ -564,6 +568,7 @@
564 568
           align="center"
565 569
           width="120"
566 570
         ></el-table-column>
571
+
567 572
         <el-table-column
568 573
           prop="dialysis_after_weight"
569 574
           label="透后称重(kg)"
@@ -1566,7 +1571,7 @@ export default {
1566 1571
         } else {
1567 1572
           this.loading = false;
1568 1573
           this.total = response.data.data.total;
1569
-          console.log(response.data.data.schedule)
1574
+          console.log("世界文化遗产",response.data.data.schedule)
1570 1575
           for (let i = 0; i < response.data.data.schedule.length; i++) {
1571 1576
 
1572 1577
             if (response.data.data.schedule[i].patient&&response.data.data.schedule[i].patient.id > 0) {
@@ -1614,6 +1619,14 @@ export default {
1614 1619
                 SchedualPatientsTable["dialysis_after_weight"] =response.data.data.schedule[i].assessment_after_dislysis.weight_after;
1615 1620
               }
1616 1621
 
1622
+
1623
+              if (response.data.data.schedule[i].assessment_before_dislysis != null) {
1624
+                SchedualPatientsTable["pressure_name"] =response.data.data.schedule[i].assessment_before_dislysis.systolic_blood_pressure+"/"+ response.data.data.schedule[i].assessment_before_dislysis.diastolic_blood_pressure;
1625
+              }
1626
+           
1627
+
1628
+
1629
+
1617 1630
               if(response.data.data.schedule[i].monitoring_record!=null &&response.data.data.schedule[i].monitoring_record.length >0 ){
1618 1631
                  SchedualPatientsTable["monitoring_record"]  = response.data.data.schedule[i].monitoring_record
1619 1632
               }

+ 31 - 0
src/xt_pages/dialysis/details/dialog/assessmentBeforeDislysisDialog.vue View File

@@ -710,6 +710,34 @@
710 710
           </el-input>
711 711
         </el-form-item>
712 712
       </el-form>
713
+      <!-- 六次干体重调整记录 -->
714
+      <!-- <div  style="margin: 10px 50px;"><span style="font-weight: bold;">近六次干体重调整记录</span></div>
715
+      <div class="gantizhong">
716
+        <el-table
717
+          :data="tableData"
718
+          stripe
719
+          style="width: 100%">
720
+          <el-table-column
721
+            prop=""
722
+            label="时间"
723
+            width="180">
724
+          </el-table-column>
725
+          <el-table-column
726
+            prop=""
727
+            label="干体重"
728
+            width="180">
729
+          </el-table-column>
730
+          <el-table-column
731
+            prop=""
732
+            label="医生"
733
+            width="180">
734
+          </el-table-column>
735
+          <el-table-column
736
+            prop=""
737
+            label="备注">
738
+          </el-table-column>
739
+        </el-table>
740
+      </div> -->
713 741
       <div slot="footer" class="dialog-footer">
714 742
         <el-button @click="cancleDryWeight()">取 消</el-button>
715 743
         <el-button type="primary" @click="submitDryWeight()">保 存</el-button>
@@ -1667,6 +1695,9 @@
1667 1695
     margin-bottom: 10px;
1668 1696
     color:#fff;
1669 1697
   }
1698
+  .gantizhong{
1699
+    text-align: center;
1700
+  }
1670 1701
 </style>
1671 1702
 <style lang="scss">
1672 1703
   .newDialog{

+ 5 - 3
src/xt_pages/dialysis/template/DialysisPrintOrderForty.vue View File

@@ -382,6 +382,7 @@
382 382
                       <label-box showValue="绳梯" :isChecked="predialysis.puncture_way.indexOf('绳梯')>-1 ? true : false"></label-box>&nbsp;
383 383
                       <label-box showValue="定点" :isChecked="predialysis.puncture_way.indexOf('定点')>-1 ? true : false"></label-box>&nbsp;
384 384
                       <label-box showValue="直接穿刺" :isChecked="predialysis.puncture_way.indexOf('直接穿刺')>-1 ? true:false"></label-box>&nbsp;
385
+                      <label-box showValue="扣眼" :isChecked="predialysis.puncture_way.indexOf('扣眼')>-1 ? true : false"></label-box>&nbsp;
385 386
                     </div>
386 387
                   </td>
387 388
                   <td width='20'></td>
@@ -1310,16 +1311,17 @@
1310 1311
                     </td>
1311 1312
                     <td width="20">min</td>
1312 1313
                     <td width="50">去向:</td>
1313
-                      <td width="200">
1314
+                      <td width="250">
1314 1315
                         <div style="display:flex;justify-content:space-between;">
1315 1316
                           <label-box :isChecked="afterdialysis.patient_gose == 1 ? true : false" showValue="回家"></label-box>
1316 1317
                           <label-box :isChecked="afterdialysis.patient_gose == 2 ? true : false" showValue="留观"></label-box>
1317 1318
                           <label-box :isChecked="afterdialysis.patient_gose == 3 ? true : false" showValue="住院"></label-box>
1319
+                          <label-box :isChecked="afterdialysis.patient_gose == 4 ? true : false" showValue="门诊"></label-box>
1318 1320
                         </div>
1319 1321
                       </td>
1320
-                      <td>
1322
+                      <!-- <td>
1321 1323
                         <div class="under-line">&nbsp;</div>
1322
-                      </td>
1324
+                      </td> -->
1323 1325
                   </tr>
1324 1326
                   </tbody>
1325 1327
                 </table>

+ 1 - 1
src/xt_pages/hospitalStation/invoicePrint.vue View File

@@ -24,7 +24,7 @@
24 24
           :paramsObj="invoiceParams"
25 25
         ></printOne>
26 26
         <printTwo
27
-          v-if="org_id == 10215 "
27
+          v-if="org_id == 10215||org_id == 0"
28 28
           :paramsObj="invoiceParams"
29 29
         ></printTwo>
30 30
         <printThree

+ 2 - 12
src/xt_pages/hospitalStation/invoiceTemplate/printTwo.vue View File

@@ -269,7 +269,7 @@
269 269
           </span>
270 270
         </span>
271 271
         <span style="position: absolute; top: 235px; left: 500px">{{
272
-          totalPrice.toFixed(2)
272
+          totalPrice
273 273
         }}</span>
274 274
       </div>
275 275
       <!-- <div style="position: absolute;top:300px;left:460px">现金:{{ list.psn_cash_money }}</div> -->
@@ -326,17 +326,7 @@ export default {
326 326
       getInvoice(params).then((res) => {
327 327
         this.$nextTick(() => {
328 328
           this.list = res.data.data;
329
-          this.totalPrice =
330
-            this.list.westernMedicineCostTotal +
331
-            this.list.checkCostTotal +
332
-            this.list.treatCostTotal +
333
-            this.list.bedCostTotal +
334
-            this.list.chineseTraditionalMedicineCostTotal +
335
-            this.list.laboratoryCostTotal +
336
-            this.list.operationCostTotal +
337
-            this.list.otherCostTotal +
338
-            this.list.materialCostTotal +
339
-            this.list.zhenChaCostTotal;
329
+          this.totalPrice =this.list.order.medfee_sumamt
340 330
           this.smalltoBIG(this.list.order.medfee_sumamt);
341 331
           var data = new Date(res.data.data.date * 1000);
342 332
           var month =

+ 1 - 133
src/xt_pages/outpatientCharges/statementPrint.vue View File

@@ -395,139 +395,7 @@
395 395
       searchAction() {
396 396
       },
397 397
       getInfo(order_id, obj) {
398
-        if( this.org_id  == 0){
399
-          console.log("12222444444")
400
-          let params = {
401
-            his_patient_id: obj.his_patient_id,
402
-            id: obj.order_id,
403
-            order_id: obj.order_id,
404
-            admin_user_id: this.$store.getters.xt_user.user.id,
405
-          };
406
-          getPrivateExpensesTwo(params).then((response) => {
407
-            if (response.data.state == 0) {
408
-              // this.$message.error(response.data.msg)
409
-
410
-              return false;
411
-            } else {
412
-              var that = this;
413
-              that.info = response.data.data.info;
414
-              that.info["p_admin"] = that.p_admin;
415
-              that.info["charge_admin"] = that.charge_admin;
416
-              that.info["order_number"] = response.data.data.order_number;
417
-              that.info["number"] = response.data.data.number;
418
-              that.info["fixmedins_name"] = response.data.data.org_name;
419
-              that.info["fixmedins_code"] = response.data.data.org_code;
420
-              that.info["bed_cost_total"] = response.data.data.bedCostTotal;
421
-              that.info["bed_cost_self_total"] =
422
-                response.data.data.bedCostSelfTotal;
423
-              that.info["bed_cost_part_self_total"] =
424
-                response.data.data.bedCostPartSelfTotal;
425
-
426
-              that.info["bedInscpTotal"] =
427
-                response.data.data.bedInscpTotal;
428
-              that.info["bedSelfTotal"] =
429
-                response.data.data.bedSelfTotal;
430
-
431
-
432
-              that.info["operationInscpTotal"] =
433
-                response.data.data.operationInscpTotal;
434
-              that.info["operationSelfTotal"] =
435
-                response.data.data.operationSelfTotal;
436
-
437
-              that.info["checkInscpTotal"] =
438
-                response.data.data.checkInscpTotal;
439
-              that.info["checkSelfTotal"] =
440
-                response.data.data.checkSelfTotal;
441
-
442
-              that.info["treatInscpTotal"] =
443
-                response.data.data.treatInscpTotal;
444
-              that.info["treatSelfTotal"] =
445
-                response.data.data.treatSelfTotal;
446
-
447
-
448
-              that.info["laboratoryInscpTotal"] =
449
-                response.data.data.laboratoryInscpTotal;
450
-              that.info["laboratorySelfTotal"] =
451
-                response.data.data.laboratorySelfTotal;
452
-
453
-
454
-              that.info["westernMedicineInscpTotal"] =
455
-                response.data.data.westernMedicineInscpTotal;
456
-              that.info["westernMedicineSelfTotal"] =
457
-                response.data.data.westernMedicineSelfTotal;
458
-
459
-              that.info["materialInscpTotal"] =
460
-                response.data.data.materialInscpTotal;
461
-              that.info["materialSelfTotal"] =
462
-                response.data.data.materialSelfTotal;
463
-
464
-              that.info["chineseTraditionalInscpTotal"] =
465
-                response.data.data.chineseTraditionalInscpTotal;
466
-              that.info["chineseTraditionalSelfTotal"] =
467
-                response.data.data.chineseTraditionalSelfTotal;
468
-
469
-              that.info["otherInscpTotal"] =
470
-                response.data.data.otherInscpTotal;
471
-              that.info["otherSelfTotal"] =
472
-                response.data.data.otherSelfTotal;
473
-
474
-              that.info["operation_cost_total"] =
475
-                response.data.data.operationCostTotal;
476
-              that.info["operation_cost_self_total"] =
477
-                response.data.data.operationCostSelfTotal;
478
-              that.info["operation_cost_part_self_total"] =
479
-                response.data.data.operationCostPartSelfTotal;
480
-
481
-              that.info["other_cost_total"] = response.data.data.otherCostTotal;
482
-              that.info["other_cost_self_total"] =
483
-                response.data.data.otherCostSelfTotal;
484
-              that.info["other_cost_part_self_total"] =
485
-                response.data.data.otherCostPartSelfTotal;
486
-
487
-              that.info["material_cost_total"] =
488
-                response.data.data.materialCostTotal;
489
-              that.info["material_cost_self_total"] =
490
-                response.data.data.materialCostSelfTotal;
491
-              that.info["material_cost_part_self_total"] =
492
-                response.data.data.materialCostPartSelfTotal;
493
-
494
-              that.info["western_medicine_cost_total"] =
495
-                response.data.data.westernMedicineCostTotal;
496
-              that.info["western_medicine_cost_self_total"] =
497
-                response.data.data.westernMedicineCostSelfTotal;
498
-              that.info["western_medicine_cost_part_self_total"] =
499
-                response.data.data.westernMedicineCostPartSelfTotal;
500
-
501
-              that.info["chinese_traditional_medicine_cost_total"] =
502
-                response.data.data.chineseTraditionalMedicineCostTotal;
503
-              that.info["chinese_traditional_medicine_cost_self_total"] =
504
-                response.data.data.chineseTraditionalMedicineCostSelfTotal;
505
-              that.info["chinese_traditional_medicine_cost_part_self_total"] =
506
-                response.data.data.chineseTraditionalMedicineCostPartSelfTotal;
507
-
508
-              that.info["check_cost_total"] = response.data.data.checkCostTotal;
509
-              that.info["check_cost_self_total"] =
510
-                response.data.data.checkCostSelfTotal;
511
-              that.info["check_cost_part_self_total"] =
512
-                response.data.data.checkCostPartSelfTotal;
513
-
514
-              that.info["laboratory_cost_total"] =
515
-                response.data.data.laboratoryCostTotal;
516
-              that.info["laboratory_cost_self_total"] =
517
-                response.data.data.laboratoryCostSelfTotal;
518
-              that.info["laboratory_cost_part_self_total"] =
519
-                response.data.data.laboratoryCostPartSelfTotal;
520
-
521
-              that.info["treat_cost_total"] = response.data.data.treatCostTotal;
522
-              that.info["treat_cost_self_total"] =
523
-                response.data.data.treatCostSelfTotal;
524
-              that.info["treat_cost_part_self_total"] =
525
-                response.data.data.treatCostPartSelfTotal;
526
-              console.log(that.info)
527 398
 
528
-            }
529
-          });
530
-        }else{
531 399
           if (obj.balance_accounts_type == 2 ) {
532 400
             let params = {
533 401
               his_patient_id: obj.his_patient_id,
@@ -1387,7 +1255,7 @@
1387 1255
             }
1388 1256
           }
1389 1257
 
1390
-        }
1258
+
1391 1259
 
1392 1260
       },
1393 1261
     },

+ 43 - 43
src/xt_pages/outpatientCharges/statementTemplate/privateChargePrint.vue View File

@@ -93,13 +93,13 @@
93 93
       </tr>
94 94
       <tr>
95 95
         <td>床位费</td>
96
-        <td colspan="2" style="text-align:right;padding-right:10px;">{{info.bed_cost_total}}</td>
97
-        <td style="text-align:right;padding-right:10px;">{{info.bed_cost_self_total}}</td>
98
-        <td colspan="2" style="text-align:right;padding-right:10px;">{{info.bed_cost_part_self_total}}</td>
96
+        <td colspan="2" style="text-align:right;padding-right:10px;">{{info.bed_cost_total.toFixed(2)}}</td>
97
+        <td style="text-align:right;padding-right:10px;">{{info.bed_cost_self_total.toFixed(2)}}</td>
98
+        <td colspan="2" style="text-align:right;padding-right:10px;">{{info.bed_cost_part_self_total.toFixed(2)}}</td>
99 99
         <td>西成药</td>
100
-        <td colspan="2" style="text-align:right;padding-right:10px;">{{info.western_medicine_cost_total}}</td>
101
-        <td style="text-align:right;padding-right:10px;">{{info.western_medicine_cost_self_total}}</td>
102
-        <td colspan="2" style="text-align:right;padding-right:10px;">{{info.western_medicine_cost_part_self_total}}</td>
100
+        <td colspan="2" style="text-align:right;padding-right:10px;">{{info.western_medicine_cost_total.toFixed(2)}}</td>
101
+        <td style="text-align:right;padding-right:10px;">{{info.western_medicine_cost_self_total.toFixed(2)}}</td>
102
+        <td colspan="2" style="text-align:right;padding-right:10px;">{{info.western_medicine_cost_part_self_total.toFixed(2)}}</td>
103 103
       </tr>
104 104
       <tr>
105 105
         <td>中药费</td>
@@ -107,11 +107,11 @@
107 107
         <td style="text-align:right;padding-right:10px;">0</td>
108 108
         <td colspan="2" style="text-align:right;padding-right:10px;">0</td>
109 109
         <td>中成药</td>
110
-        <td colspan="2" style="text-align:right;padding-right:10px;">{{info.chinese_traditional_medicine_cost_total}}
110
+        <td colspan="2" style="text-align:right;padding-right:10px;">{{info.chinese_traditional_medicine_cost_total.toFixed(2)}}
111 111
         </td>
112
-        <td style="text-align:right;padding-right:10px;">{{info.chinese_traditional_medicine_cost_self_total}}</td>
112
+        <td style="text-align:right;padding-right:10px;">{{info.chinese_traditional_medicine_cost_self_total.toFixed(2)}}</td>
113 113
         <td colspan="2" style="text-align:right;padding-right:10px;">
114
-          {{info.chinese_traditional_medicine_cost_part_self_total}}
114
+          {{info.chinese_traditional_medicine_cost_part_self_total.toFixed(2)}}
115 115
         </td>
116 116
       </tr>
117 117
       <tr>
@@ -120,15 +120,15 @@
120 120
         <td style="text-align:right;padding-right:10px;">0</td>
121 121
         <td colspan="2" style="text-align:right;padding-right:10px;">0</td>
122 122
         <td>检查费</td>
123
-        <td colspan="2" style="text-align:right;padding-right:10px;">{{info.check_cost_total}}</td>
124
-        <td style="text-align:right;padding-right:10px;">{{info.check_cost_self_total}}</td>
125
-        <td colspan="2" style="text-align:right;padding-right:10px;">{{info.check_cost_part_self_total}}</td>
123
+        <td colspan="2" style="text-align:right;padding-right:10px;">{{info.check_cost_total.toFixed(2)}}</td>
124
+        <td style="text-align:right;padding-right:10px;">{{info.check_cost_self_total.toFixed(2)}}</td>
125
+        <td colspan="2" style="text-align:right;padding-right:10px;">{{info.check_cost_part_self_total.toFixed(2)}}</td>
126 126
       </tr>
127 127
       <tr>
128 128
         <td>治疗费</td>
129
-        <td colspan="2" style="text-align:right;padding-right:10px;">{{info.treat_cost_total}}</td>
130
-        <td style="text-align:right;padding-right:10px;">{{info.treat_cost_self_total}}</td>
131
-        <td colspan="2" style="text-align:right;padding-right:10px;">{{info.treat_cost_part_self_total}}</td>
129
+        <td colspan="2" style="text-align:right;padding-right:10px;">{{info.treat_cost_total.toFixed(2)}}</td>
130
+        <td style="text-align:right;padding-right:10px;">{{info.treat_cost_self_total.toFixed(2)}}</td>
131
+        <td colspan="2" style="text-align:right;padding-right:10px;">{{info.treat_cost_part_self_total.toFixed(2)}}</td>
132 132
         <td>放射费</td>
133 133
         <td colspan="2" style="text-align:right;padding-right:10px;">0</td>
134 134
         <td style="text-align:right;padding-right:10px;">0</td>
@@ -136,13 +136,13 @@
136 136
       </tr>
137 137
       <tr>
138 138
         <td>手术费</td>
139
-        <td colspan="2" style="text-align:right;padding-right:10px;">{{info.operation_cost_total}}</td>
140
-        <td style="text-align:right;padding-right:10px;">{{info.operation_cost_self_total}}</td>
141
-        <td colspan="2" style="text-align:right;padding-right:10px;">{{info.operation_cost_part_self_total}}</td>
139
+        <td colspan="2" style="text-align:right;padding-right:10px;">{{info.operation_cost_total.toFixed(2)}}</td>
140
+        <td style="text-align:right;padding-right:10px;">{{info.operation_cost_self_total.toFixed(2)}}</td>
141
+        <td colspan="2" style="text-align:right;padding-right:10px;">{{info.operation_cost_part_self_total.toFixed(2)}}</td>
142 142
         <td>化验费</td>
143
-        <td colspan="2" style="text-align:right;padding-right:10px;">{{info.laboratory_cost_total}}</td>
144
-        <td style="text-align:right;padding-right:10px;">{{info.laboratory_cost_self_total}}</td>
145
-        <td colspan="2" style="text-align:right;padding-right:10px;">{{info.laboratory_cost_part_self_total}}</td>
143
+        <td colspan="2" style="text-align:right;padding-right:10px;">{{info.laboratory_cost_total.toFixed(2)}}</td>
144
+        <td style="text-align:right;padding-right:10px;">{{info.laboratory_cost_self_total.toFixed(2)}}</td>
145
+        <td colspan="2" style="text-align:right;padding-right:10px;">{{info.laboratory_cost_part_self_total.toFixed(2)}}</td>
146 146
       </tr>
147 147
       <tr>
148 148
         <td>输血费</td>
@@ -156,9 +156,9 @@
156 156
       </tr>
157 157
       <tr>
158 158
         <td>其他</td>
159
-        <td colspan="2" style="text-align:right;padding-right:10px;">{{info.other_cost_total}}</td>
160
-        <td style="text-align:right;padding-right:10px;">{{info.other_cost_self_total}}</td>
161
-        <td colspan="2" style="text-align:right;padding-right:10px;">{{info.other_cost_part_self_total}}</td>
159
+        <td colspan="2" style="text-align:right;padding-right:10px;">{{info.other_cost_total.toFixed(2)}}</td>
160
+        <td style="text-align:right;padding-right:10px;">{{info.other_cost_self_total.toFixed(2)}}</td>
161
+        <td colspan="2" style="text-align:right;padding-right:10px;">{{info.other_cost_part_self_total.toFixed(2)}}</td>
162 162
         <td>麻醉费</td>
163 163
         <td colspan="2" style="text-align:right;padding-right:10px;">0</td>
164 164
         <td style="text-align:right;padding-right:10px;">0</td>
@@ -166,9 +166,9 @@
166 166
       </tr>
167 167
       <tr>
168 168
         <td>材料费</td>
169
-        <td colspan="2" style="text-align:right;padding-right:10px;">{{info.material_cost_total}}</td>
170
-        <td style="text-align:right;padding-right:10px;">{{info.material_cost_self_total}}</td>
171
-        <td colspan="2" style="text-align:right;padding-right:10px;">{{info.material_cost_part_self_total}}</td>
169
+        <td colspan="2" style="text-align:right;padding-right:10px;">{{info.material_cost_total.toFixed(2)}}</td>
170
+        <td style="text-align:right;padding-right:10px;">{{info.material_cost_self_total.toFixed(2)}}</td>
171
+        <td colspan="2" style="text-align:right;padding-right:10px;">{{info.material_cost_part_self_total.toFixed(2)}}</td>
172 172
         <td>特殊检查费</td>
173 173
         <td colspan="2" style="text-align:right;padding-right:10px;">0</td>
174 174
         <td style="text-align:right;padding-right:10px;">0</td>
@@ -186,24 +186,24 @@
186 186
       </tr>
187 187
       <tr>
188 188
         <td>合计</td>
189
-        <td colspan="2" style="text-align:right;padding-right:10px;">{{(parseFloat(info.bed_cost_total) +
190
-            parseFloat(info.operation_cost_total) + parseFloat(info.other_cost_total) +
191
-            parseFloat(info.material_cost_total) + parseFloat(info.western_medicine_cost_total) +
192
-            parseFloat(info.chinese_traditional_medicine_cost_total) + parseFloat(info.check_cost_total) +
193
-            parseFloat(info.laboratory_cost_total) + parseFloat(info.treat_cost_total)).toFixed(2) }}
189
+        <td colspan="2" style="text-align:right;padding-right:10px;">{{(parseFloat(info.bed_cost_total.toFixed(2)) +
190
+            parseFloat(info.operation_cost_total.toFixed(2)) + parseFloat(info.other_cost_total.toFixed(2)) +
191
+            parseFloat(info.material_cost_total.toFixed(2)) + parseFloat(info.western_medicine_cost_total.toFixed(2)) +
192
+            parseFloat(info.chinese_traditional_medicine_cost_total.toFixed(2)) + parseFloat(info.check_cost_total.toFixed(2)) +
193
+            parseFloat(info.laboratory_cost_total.toFixed(2)) + parseFloat(info.treat_cost_total.toFixed(2))).toFixed(2) }}
194 194
         </td>
195
-        <td style="text-align:right;padding-right:10px;">{{(parseFloat(info.bed_cost_self_total )+
196
-            parseFloat(info.operation_cost_self_total) + parseFloat(info.other_cost_self_total) +
197
-            parseFloat(info.material_cost_self_total) + parseFloat(info.western_medicine_cost_self_total) +
198
-            parseFloat(info.chinese_traditional_medicine_cost_self_total) + parseFloat(info.check_cost_self_total) +
199
-            parseFloat(info.laboratory_cost_self_total) + parseFloat(info.treat_cost_self_total)).toFixed(2)}}
195
+        <td style="text-align:right;padding-right:10px;">{{(parseFloat(info.bed_cost_self_total.toFixed(2) )+
196
+            parseFloat(info.operation_cost_self_total.toFixed(2)) + parseFloat(info.other_cost_self_total.toFixed(2)) +
197
+            parseFloat(info.material_cost_self_total.toFixed(2)) + parseFloat(info.western_medicine_cost_self_total.toFixed(2)) +
198
+            parseFloat(info.chinese_traditional_medicine_cost_self_total.toFixed(2)) + parseFloat(info.check_cost_self_total.toFixed(2)) +
199
+            parseFloat(info.laboratory_cost_self_total.toFixed(2)) + parseFloat(info.treat_cost_self_total.toFixed(2))).toFixed(2)}}
200 200
         </td>
201
-        <td colspan="2" style="text-align:right;padding-right:10px;">{{(parseFloat(info.bed_cost_part_self_total) +
202
-            parseFloat(info.operation_cost_part_self_total) + parseFloat(info.other_cost_part_self_total) +
203
-            parseFloat(info.material_cost_part_self_total) + parseFloat(info.western_medicine_cost_part_self_total) +
204
-            parseFloat(info.chinese_traditional_medicine_cost_part_self_total) +
205
-            parseFloat(info.check_cost_part_self_total) + parseFloat(info.laboratory_cost_part_self_total) +
206
-            parseFloat(info.treat_cost_part_self_total)).toFixed(2)}}
201
+        <td colspan="2" style="text-align:right;padding-right:10px;">{{(parseFloat(info.bed_cost_part_self_total.toFixed(2)) +
202
+            parseFloat(info.operation_cost_part_self_total.toFixed(2)) + parseFloat(info.other_cost_part_self_total.toFixed(2)) +
203
+            parseFloat(info.material_cost_part_self_total.toFixed(2)) + parseFloat(info.western_medicine_cost_part_self_total.toFixed(2)) +
204
+            parseFloat(info.chinese_traditional_medicine_cost_part_self_total.toFixed(2)) +
205
+            parseFloat(info.check_cost_part_self_total.toFixed(2)) + parseFloat(info.laboratory_cost_part_self_total.toFixed(2)) +
206
+            parseFloat(info.treat_cost_part_self_total.toFixed(2))).toFixed(2)}}
207 207
         </td>
208 208
         <td style="text-align:right;padding-right:10px;"></td>
209 209
         <td colspan="2" style="text-align:right;padding-right:10px;"></td>

File diff suppressed because it is too large
+ 1994 - 1994
src/xt_pages/user/components/PatientForm.vue


+ 3 - 1
src/xt_pages/workforce/appointment.vue View File

@@ -720,6 +720,7 @@ export default {
720 720
     changeZone(val){
721 721
     },
722 722
     setScheduleTemplateAction: function () {
723
+      this.schedulingTableVisible=true
723 724
       this.$router.push({path: '/workforce/template'})
724 725
     },
725 726
     export_file: function () {
@@ -2021,7 +2022,8 @@ export default {
2021 2022
           break
2022 2023
       }
2023 2024
 
2024
-    }, getDateByResultsStr(key) {
2025
+    }, 
2026
+    getDateByResultsStr(key) {
2025 2027
 
2026 2028
       switch (key) {
2027 2029
         case '周一' + "(" + this.days[0] + ")" : //本周一

+ 24 - 9
src/xt_pages/workforce/components/template_table.vue View File

@@ -1,6 +1,7 @@
1 1
 <template>
2
-  <div>
3
-    <div id="table_data">
2
+  <div  >
3
+    <div id="tem_table_data" v-show="schedulingTableVisible">
4
+      <slot></slot>
4 5
       <div class="table_contain">
5 6
         <div class="left_contain">
6 7
           <div
@@ -1269,6 +1270,7 @@ export default {
1269 1270
   },
1270 1271
   data() {
1271 1272
     return {
1273
+      schedulingTableVisible:true,//全屏
1272 1274
       changeLoadingOne:false,
1273 1275
       changeLoadingTwo:false,
1274 1276
       tipDialogVisibleTwo:false,
@@ -3131,7 +3133,8 @@ export default {
3131 3133
       }
3132 3134
 
3133 3135
       this.$message.error("设备不存在");
3134
-    },  will_add_schedule_action_four: function(patient_id, treat_mode, weekday, time_type, device_number_id) {
3136
+    }, 
3137
+     will_add_schedule_action_four: function(patient_id, treat_mode, weekday, time_type, device_number_id) {
3135 3138
       var patient = null
3136 3139
       for (let index = 0; index < this.patients.length; index++) {
3137 3140
         const p = this.patients[index]
@@ -4550,6 +4553,7 @@ export default {
4550 4553
 <style lang="scss">
4551 4554
 .table_contain {
4552 4555
   display: flex;
4556
+  margin-top: 30px;
4553 4557
 .left_contain {
4554 4558
   width: 14%;
4555 4559
   margin-right: 50px;
@@ -4620,15 +4624,26 @@ export default {
4620 4624
   white-space: normal !important;
4621 4625
 }
4622 4626
 
4623
-#table_data {
4627
+#tem_table_data {
4624 4628
   /*min-height: calc(100vh - 350px);*/
4629
+  position: fixed;
4630
+  top: 0;
4631
+  right: 0;
4632
+  bottom: 0;
4633
+  left: 0;
4634
+  overflow: auto;
4635
+  margin: 0;
4636
+  background: #fff;
4637
+  padding: 20px;
4638
+  z-index:2000;
4639
+  height: 100%;
4625 4640
 }
4626 4641
 
4627
-#table_data ::-webkit-scrollbar {
4642
+#tem_table_data ::-webkit-scrollbar {
4628 4643
   height: 15px;
4629 4644
 }
4630 4645
 
4631
-#table_data {
4646
+#tem_table_data {
4632 4647
 .el-table__body tr.current-row > td {
4633 4648
   background-color: #ecf5ff !important;
4634 4649
   color: #3a8ee6;
@@ -4652,7 +4667,7 @@ export default {
4652 4667
 //   min-height: calc(100vh - 350px);
4653 4668
 // }
4654 4669
 
4655
-#table_data ::-webkit-scrollbar {
4670
+#tem_table_data ::-webkit-scrollbar {
4656 4671
   height: 15px;
4657 4672
 }
4658 4673
 
@@ -4670,11 +4685,11 @@ export default {
4670 4685
 // }
4671 4686
 // }
4672 4687
 
4673
-#table_data {
4688
+#tem_table_data {
4674 4689
   min-height: calc(100vh - 350px);
4675 4690
 }
4676 4691
 
4677
-#table_data ::-webkit-scrollbar {
4692
+#tem_table_data ::-webkit-scrollbar {
4678 4693
   height: 15px;
4679 4694
 }
4680 4695
 

+ 90 - 20
src/xt_pages/workforce/template.vue View File

@@ -112,47 +112,48 @@
112 112
       <!-- </el-col> -->
113 113
     </div>
114 114
     <div class="app-container">
115
-      <el-tabs v-model="activeName" tab-position="top" @tab-click="handleClick">
115
+      
116
+      <!-- <el-tabs v-model="activeName" tab-position="top" @tab-click="handleClick"> -->
116 117
 <!--        <el-tab-pane name="schedules">-->
117 118
 <!--          <span slot="label"> 排班信息 </span>-->
118 119
 <!--          <template-table :editable="false" :device_numbers="device_numbers" :template="this_week_schedules" :is_editing="false"-->
119 120
 <!--                          :patients="patients" :data="data"></template-table>-->
120 121
 <!--        </el-tab-pane>-->
121
-        <el-tab-pane name="first" :disabled="template_mode.mode == 0" >
122
+        <!-- <el-tab-pane name="first" :disabled="template_mode.mode == 0" > -->
122 123
 <!--          <span slot="label">-->
123 124
 <!--          </span>-->
124
-          <span slot="label"> {{first_template.week?'一周模版':'一周模版'}}
125
+          <!-- <span slot="label"> {{first_template.week?'一周模版':'一周模版'}} -->
125 126
 <!--             <span v-if="schedule.mode == 2 && schedule.execute_times%2==0">(下一周)</span>-->
126 127
 <!--             <span v-if="schedule.mode == 2 && schedule.execute_times%2!=0">(本周)</span>-->
127 128
 
128
-             <span v-if="schedule.mode ==1">(本周)</span>
129
+             <!-- <span v-if="schedule.mode ==1">(本周)</span>
129 130
              <span v-if="schedule.mode == 2 && schedule.execute_times%2==0">(下一周)</span>
130 131
              <span v-if="schedule.mode == 2 && schedule.execute_times%2!=0">(本周)</span>
131 132
           </span>
132 133
 
133 134
         </el-tab-pane>
134 135
 
135
-        <el-tab-pane  name="second" :disabled="template_mode.mode != 2 && template_mode.mode != 3 && template_mode.mode  != 4">
136
+        <el-tab-pane  name="second" :disabled="template_mode.mode != 2 && template_mode.mode != 3 && template_mode.mode  != 4"> -->
136 137
 <!--          <template-table   ref="table_two"  :is_editing="is_editing" :editable="true" :device_numbers="device_numbers" :template="first_template"-->
137 138
 <!--                           :modes="modes"  :patients="patients" @cancel_sch="refresh" :data="data"  :template_mode="template_mode"  @cur_info="cur_info" @saveData="saveData" @event1="changeZone" @saveSuccessTwo="refresh"></template-table>-->
138
-          <span slot="label"> {{second_template.week?'二周模版':'二周模版'}}
139
+          <!-- <span slot="label"> {{second_template.week?'二周模版':'二周模版'}} -->
139 140
 <!--             <span v-if="schedule.mode == 2 && schedule.execute_times%2==0">(下一周)</span>-->
140 141
 <!--             <span v-if="schedule.mode == 2 && schedule.execute_times%2!=0">(本周)</span>-->
141 142
 <!--            -->
142
-              <span v-if="schedule.mode == 2 && schedule.execute_times%2==0">(本周)</span>
143
+              <!-- <span v-if="schedule.mode == 2 && schedule.execute_times%2==0">(本周)</span>
143 144
              <span v-if="schedule.mode == 2 && schedule.execute_times%2!=0">(下一周)</span>
144 145
           </span>
145
-        </el-tab-pane>
146
+        </el-tab-pane> -->
146 147
 
147 148
 
148 149
 
149
-        <el-tab-pane :label="  third_template.week? '三周模版':'三周模版'" name="third" :disabled="template_mode.mode != 3 && template_mode.mode  != 4">
150
+        <!-- <el-tab-pane :label="  third_template.week? '三周模版':'三周模版'" name="third" :disabled="template_mode.mode != 3 && template_mode.mode  != 4"> -->
150 151
 
151 152
 <!--          <template-table  ref="table_three"  :is_editing="is_editing" :editable="true" :device_numbers="device_numbers" :template="first_template"-->
152 153
 <!--                           :modes="modes"  :patients="patients" @cancel_sch="refresh" :data="data"  :template_mode="template_mode"  @cur_info="cur_info" @saveData="saveData" @event1="changeZone" @saveSuccessTwo="refresh"></template-table>-->
153
-        </el-tab-pane>
154
+        <!-- </el-tab-pane> -->
154 155
 
155
-      <el-tab-pane :label="four_template.week?'四周模版':'四周模版'" name="four" :disabled="template_mode.mode  != 4 ">
156
+      <!-- <el-tab-pane :label="four_template.week?'四周模版':'四周模版'" name="four" :disabled="template_mode.mode  != 4 "> -->
156 157
 <!--          <span slot="label"> 四周模版 {{ four_template.week?four_template.week+'周':""}}-->
157 158
 <!--             <span v-if="schedule.execute_times%2==0">(下一周)</span>-->
158 159
 <!--             <span v-if="schedule.execute_times%2!=0">(本周)</span>-->
@@ -164,7 +165,7 @@
164 165
 <!--        <template-table   ref="table_four"  :is_editing="is_editing" :editable="true" :device_numbers="device_numbers" :template="first_template"-->
165 166
 <!--                         :modes="modes"  :patients="patients" @cancel_sch="refresh" :data="data"  :template_mode="template_mode"  @cur_info="cur_info" @saveData="saveData" @event1="changeZone" @saveSuccessTwo="refresh"></template-table>-->
166 167
 
167
-        </el-tab-pane>
168
+        <!-- </el-tab-pane> -->
168 169
 
169 170
 
170 171
 <!--        <template-table-two   v-show="activeName =='second'"  ref="table_two"  :is_editing="is_editing" :editable="true" :device_numbers="device_numbers" :template="second_template"-->
@@ -175,9 +176,70 @@
175 176
 <!--                               :modes="modes"    :patients="patients" :data="data" @cancel_sch="refresh"  :template_mode="template_mode" @saveSuccess="refresh" @cur_info="cur_info" @saveData="saveData"   @saveSuccessTwo="refresh"></template-table-four>-->
176 177
 
177 178
 
178
-      </el-tabs>
179
+      <!-- </el-tabs> -->
179 180
       <template-table  v-loading="dataloading"  ref="table"  :is_editing="is_editing" :editable="true" :device_numbers="device_numbers" :template="template"
180
-                        :modes="modes"  :patients="patients" @cancel_sch="refresh" :data="data"  :template_mode="template_mode"  @cur_info="cur_info" @saveData="saveData" @event1="changeZone" @saveSuccessTwo="refresh" @setTemplate="setTemplate" @changeLoading="changeLoading"></template-table>
181
+                        :modes="modes"  :patients="patients" @cancel_sch="refresh" :data="data"  :template_mode="template_mode" 
182
+                         @cur_info="cur_info" @saveData="saveData" @event1="changeZone" @saveSuccessTwo="refresh" 
183
+                         @setTemplate="setTemplate" @changeLoading="changeLoading">
184
+            <div class="position">
185
+              <div>
186
+                <el-tabs v-model="activeName" tab-position="top" @tab-click="handleClick">
187
+
188
+        <el-tab-pane name="first" :disabled="template_mode.mode == 0" >
189
+
190
+          <span slot="label"> {{first_template.week?'一周模版':'一周模版'}}
191
+
192
+             <span v-if="schedule.mode ==1">(本周)</span>
193
+             <span v-if="schedule.mode == 2 && schedule.execute_times%2==0">(下一周)</span>
194
+             <span v-if="schedule.mode == 2 && schedule.execute_times%2!=0">(本周)</span>
195
+          </span>
196
+
197
+        </el-tab-pane>
198
+
199
+        <el-tab-pane  name="second" :disabled="template_mode.mode != 2 && template_mode.mode != 3 && template_mode.mode  != 4">
200
+
201
+          <span slot="label"> {{second_template.week?'二周模版':'二周模版'}}
202
+
203
+              <span v-if="schedule.mode == 2 && schedule.execute_times%2==0">(本周)</span>
204
+             <span v-if="schedule.mode == 2 && schedule.execute_times%2!=0">(下一周)</span>
205
+          </span>
206
+        </el-tab-pane>
207
+
208
+        <el-tab-pane :label="  third_template.week? '三周模版':'三周模版'" name="third" :disabled="template_mode.mode != 3 && template_mode.mode  != 4">
209
+
210
+        </el-tab-pane>
211
+
212
+      <el-tab-pane :label="four_template.week?'四周模版':'四周模版'" name="four" :disabled="template_mode.mode  != 4 ">
213
+        </el-tab-pane>
214
+      </el-tabs>
215
+              </div>
216
+              <div style="display:flex;align-items:center">
217
+
218
+                <!--<upload-excel style="float:right;" :on-success='handleSuccess' :before-upload="beforeUpload"></upload-excel>-->
219
+                <schedule-template-upload-excel style="margin-right:10px;"
220
+                                                :on-success='handleSuccess'></schedule-template-upload-excel>
221
+
222
+                <!-- <el-col :span="3" style="text-align: right;"> -->
223
+                <el-button v-loading="downloadLoading" v-if="template_mode"
224
+                          size="small" icon="el-icon-setting" type="primary" @click="import_file()">下载模版
225
+                </el-button>
226
+                <el-button size="small" icon="el-icon-setting" type="primary" @click="setData" v-if="template_mode.mode>0">同步数据</el-button>
227
+                <el-button size="small" icon="el-icon-setting" type="primary" @click="setScheduleTemplateAction">设置</el-button>
228
+
229
+                <el-button size="small" icon="el-icon-setting" type="primary" @click="editClick">智能排班</el-button>
230
+                <el-button size="small" icon="el-icon-setting" type="primary" @click="saveClick">保存并退出</el-button>
231
+
232
+                <el-button
233
+                    @click="generateLog()"
234
+                    class="filter-item"
235
+                    type="primary"
236
+                    size="small"
237
+                    v-loading="generateLoading"
238
+                >下载日志
239
+                </el-button>
240
+              </div>
241
+            </div>
242
+      </template-table>
181 243
 
182 244
 
183 245
 <!--      <template-table  ref="table" :editable="true" :device_numbers="device_numbers" :template="tar_template" :is_editing="is_editing"-->
@@ -271,6 +333,7 @@ export default {
271 333
   },
272 334
   data: function () {
273 335
     return {
336
+      schedulingTableVisible:false,
274 337
       dataloading:true,
275 338
       is_editing:true,
276 339
       editable:false,
@@ -1510,7 +1573,8 @@ export default {
1510 1573
 
1511 1574
       }
1512 1575
 
1513
-    },getInitData(){
1576
+    },
1577
+    getInitData(){
1514 1578
       let params = {
1515 1579
         patitionid:""
1516 1580
       }
@@ -3121,7 +3185,8 @@ export default {
3121 3185
 
3122 3186
       }
3123 3187
 
3124
-    },changeZone(val){
3188
+    },
3189
+    changeZone(val){
3125 3190
       this.getWeekPanels(val)
3126 3191
       let params = {
3127 3192
         patitionid:val
@@ -3197,7 +3262,8 @@ export default {
3197 3262
       })
3198 3263
 
3199 3264
 
3200
-    },saveData(val,del_data){
3265
+    },
3266
+    saveData(val,del_data){
3201 3267
       var tempDataOne = []
3202 3268
       for(let i = 0; i < val.length; i++){
3203 3269
           tempDataOne.push(val[i])
@@ -3377,7 +3443,8 @@ export default {
3377 3443
           })
3378 3444
         }
3379 3445
       })
3380
-    },editClick:function (){
3446
+    },
3447
+    editClick:function (){
3381 3448
       this.$nextTick(function() {
3382 3449
         if(this.activeName == "first"){
3383 3450
           this.activeName = "first"
@@ -3394,15 +3461,18 @@ export default {
3394 3461
         }
3395 3462
       })
3396 3463
 
3397
-    },saveClick:function (){
3464
+    },
3465
+    // 退出排班模板
3466
+    saveClick:function (){
3398 3467
       if(this.template_mode.mode == 0){
3399 3468
         // this.$router.go(-1)
3400 3469
         this.$router.back()
3401 3470
 
3402 3471
       }else{
3472
+        this.schedulingTableVisible=false
3403 3473
         this.$message.success("保存成功")
3404 3474
         this.$router.back()
3405
-
3475
+        
3406 3476
       }
3407 3477
 
3408 3478
     },