浏览代码

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

28169 2 年前
父节点
当前提交
b42cff40bb

+ 7 - 5
src/xt_pages/dialysis/batch_print/batch_print_order_forty.vue 查看文件

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

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

552
           width="100"
552
           width="100"
553
         ></el-table-column>
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
         <el-table-column
559
         <el-table-column
556
           prop="dry_weight"
560
           prop="dry_weight"
557
           label="干体重(kg)"
561
           label="干体重(kg)"
564
           align="center"
568
           align="center"
565
           width="120"
569
           width="120"
566
         ></el-table-column>
570
         ></el-table-column>
571
+
567
         <el-table-column
572
         <el-table-column
568
           prop="dialysis_after_weight"
573
           prop="dialysis_after_weight"
569
           label="透后称重(kg)"
574
           label="透后称重(kg)"
1566
         } else {
1571
         } else {
1567
           this.loading = false;
1572
           this.loading = false;
1568
           this.total = response.data.data.total;
1573
           this.total = response.data.data.total;
1569
-          console.log(response.data.data.schedule)
1574
+          console.log("世界文化遗产",response.data.data.schedule)
1570
           for (let i = 0; i < response.data.data.schedule.length; i++) {
1575
           for (let i = 0; i < response.data.data.schedule.length; i++) {
1571
 
1576
 
1572
             if (response.data.data.schedule[i].patient&&response.data.data.schedule[i].patient.id > 0) {
1577
             if (response.data.data.schedule[i].patient&&response.data.data.schedule[i].patient.id > 0) {
1614
                 SchedualPatientsTable["dialysis_after_weight"] =response.data.data.schedule[i].assessment_after_dislysis.weight_after;
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
               if(response.data.data.schedule[i].monitoring_record!=null &&response.data.data.schedule[i].monitoring_record.length >0 ){
1630
               if(response.data.data.schedule[i].monitoring_record!=null &&response.data.data.schedule[i].monitoring_record.length >0 ){
1618
                  SchedualPatientsTable["monitoring_record"]  = response.data.data.schedule[i].monitoring_record
1631
                  SchedualPatientsTable["monitoring_record"]  = response.data.data.schedule[i].monitoring_record
1619
               }
1632
               }

+ 31 - 0
src/xt_pages/dialysis/details/dialog/assessmentBeforeDislysisDialog.vue 查看文件

710
           </el-input>
710
           </el-input>
711
         </el-form-item>
711
         </el-form-item>
712
       </el-form>
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
       <div slot="footer" class="dialog-footer">
741
       <div slot="footer" class="dialog-footer">
714
         <el-button @click="cancleDryWeight()">取 消</el-button>
742
         <el-button @click="cancleDryWeight()">取 消</el-button>
715
         <el-button type="primary" @click="submitDryWeight()">保 存</el-button>
743
         <el-button type="primary" @click="submitDryWeight()">保 存</el-button>
1667
     margin-bottom: 10px;
1695
     margin-bottom: 10px;
1668
     color:#fff;
1696
     color:#fff;
1669
   }
1697
   }
1698
+  .gantizhong{
1699
+    text-align: center;
1700
+  }
1670
 </style>
1701
 </style>
1671
 <style lang="scss">
1702
 <style lang="scss">
1672
   .newDialog{
1703
   .newDialog{

+ 5 - 3
src/xt_pages/dialysis/template/DialysisPrintOrderForty.vue 查看文件

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

+ 1 - 1
src/xt_pages/hospitalStation/invoicePrint.vue 查看文件

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

+ 2 - 12
src/xt_pages/hospitalStation/invoiceTemplate/printTwo.vue 查看文件

269
           </span>
269
           </span>
270
         </span>
270
         </span>
271
         <span style="position: absolute; top: 235px; left: 500px">{{
271
         <span style="position: absolute; top: 235px; left: 500px">{{
272
-          totalPrice.toFixed(2)
272
+          totalPrice
273
         }}</span>
273
         }}</span>
274
       </div>
274
       </div>
275
       <!-- <div style="position: absolute;top:300px;left:460px">现金:{{ list.psn_cash_money }}</div> -->
275
       <!-- <div style="position: absolute;top:300px;left:460px">现金:{{ list.psn_cash_money }}</div> -->
326
       getInvoice(params).then((res) => {
326
       getInvoice(params).then((res) => {
327
         this.$nextTick(() => {
327
         this.$nextTick(() => {
328
           this.list = res.data.data;
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
           this.smalltoBIG(this.list.order.medfee_sumamt);
330
           this.smalltoBIG(this.list.order.medfee_sumamt);
341
           var data = new Date(res.data.data.date * 1000);
331
           var data = new Date(res.data.data.date * 1000);
342
           var month =
332
           var month =

+ 1 - 133
src/xt_pages/outpatientCharges/statementPrint.vue 查看文件

395
       searchAction() {
395
       searchAction() {
396
       },
396
       },
397
       getInfo(order_id, obj) {
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
           if (obj.balance_accounts_type == 2 ) {
399
           if (obj.balance_accounts_type == 2 ) {
532
             let params = {
400
             let params = {
533
               his_patient_id: obj.his_patient_id,
401
               his_patient_id: obj.his_patient_id,
1387
             }
1255
             }
1388
           }
1256
           }
1389
 
1257
 
1390
-        }
1258
+
1391
 
1259
 
1392
       },
1260
       },
1393
     },
1261
     },

+ 43 - 43
src/xt_pages/outpatientCharges/statementTemplate/privateChargePrint.vue 查看文件

93
       </tr>
93
       </tr>
94
       <tr>
94
       <tr>
95
         <td>床位费</td>
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
         <td>西成药</td>
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
       </tr>
103
       </tr>
104
       <tr>
104
       <tr>
105
         <td>中药费</td>
105
         <td>中药费</td>
107
         <td style="text-align:right;padding-right:10px;">0</td>
107
         <td style="text-align:right;padding-right:10px;">0</td>
108
         <td colspan="2" style="text-align:right;padding-right:10px;">0</td>
108
         <td colspan="2" style="text-align:right;padding-right:10px;">0</td>
109
         <td>中成药</td>
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
         </td>
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
         <td colspan="2" style="text-align:right;padding-right:10px;">
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
         </td>
115
         </td>
116
       </tr>
116
       </tr>
117
       <tr>
117
       <tr>
120
         <td style="text-align:right;padding-right:10px;">0</td>
120
         <td style="text-align:right;padding-right:10px;">0</td>
121
         <td colspan="2" style="text-align:right;padding-right:10px;">0</td>
121
         <td colspan="2" style="text-align:right;padding-right:10px;">0</td>
122
         <td>检查费</td>
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
       </tr>
126
       </tr>
127
       <tr>
127
       <tr>
128
         <td>治疗费</td>
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
         <td>放射费</td>
132
         <td>放射费</td>
133
         <td colspan="2" style="text-align:right;padding-right:10px;">0</td>
133
         <td colspan="2" style="text-align:right;padding-right:10px;">0</td>
134
         <td style="text-align:right;padding-right:10px;">0</td>
134
         <td style="text-align:right;padding-right:10px;">0</td>
136
       </tr>
136
       </tr>
137
       <tr>
137
       <tr>
138
         <td>手术费</td>
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
         <td>化验费</td>
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
       </tr>
146
       </tr>
147
       <tr>
147
       <tr>
148
         <td>输血费</td>
148
         <td>输血费</td>
156
       </tr>
156
       </tr>
157
       <tr>
157
       <tr>
158
         <td>其他</td>
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
         <td>麻醉费</td>
162
         <td>麻醉费</td>
163
         <td colspan="2" style="text-align:right;padding-right:10px;">0</td>
163
         <td colspan="2" style="text-align:right;padding-right:10px;">0</td>
164
         <td style="text-align:right;padding-right:10px;">0</td>
164
         <td style="text-align:right;padding-right:10px;">0</td>
166
       </tr>
166
       </tr>
167
       <tr>
167
       <tr>
168
         <td>材料费</td>
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
         <td>特殊检查费</td>
172
         <td>特殊检查费</td>
173
         <td colspan="2" style="text-align:right;padding-right:10px;">0</td>
173
         <td colspan="2" style="text-align:right;padding-right:10px;">0</td>
174
         <td style="text-align:right;padding-right:10px;">0</td>
174
         <td style="text-align:right;padding-right:10px;">0</td>
186
       </tr>
186
       </tr>
187
       <tr>
187
       <tr>
188
         <td>合计</td>
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
         </td>
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
         </td>
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
         </td>
207
         </td>
208
         <td style="text-align:right;padding-right:10px;"></td>
208
         <td style="text-align:right;padding-right:10px;"></td>
209
         <td colspan="2" style="text-align:right;padding-right:10px;"></td>
209
         <td colspan="2" style="text-align:right;padding-right:10px;"></td>

文件差异内容过多而无法显示
+ 1994 - 1994
src/xt_pages/user/components/PatientForm.vue


+ 3 - 1
src/xt_pages/workforce/appointment.vue 查看文件

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

+ 24 - 9
src/xt_pages/workforce/components/template_table.vue 查看文件

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

+ 90 - 20
src/xt_pages/workforce/template.vue 查看文件

112
       <!-- </el-col> -->
112
       <!-- </el-col> -->
113
     </div>
113
     </div>
114
     <div class="app-container">
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
 <!--        <el-tab-pane name="schedules">-->
117
 <!--        <el-tab-pane name="schedules">-->
117
 <!--          <span slot="label"> 排班信息 </span>-->
118
 <!--          <span slot="label"> 排班信息 </span>-->
118
 <!--          <template-table :editable="false" :device_numbers="device_numbers" :template="this_week_schedules" :is_editing="false"-->
119
 <!--          <template-table :editable="false" :device_numbers="device_numbers" :template="this_week_schedules" :is_editing="false"-->
119
 <!--                          :patients="patients" :data="data"></template-table>-->
120
 <!--                          :patients="patients" :data="data"></template-table>-->
120
 <!--        </el-tab-pane>-->
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
 <!--          <span slot="label">-->
123
 <!--          <span slot="label">-->
123
 <!--          </span>-->
124
 <!--          </span>-->
124
-          <span slot="label"> {{first_template.week?'一周模版':'一周模版'}}
125
+          <!-- <span slot="label"> {{first_template.week?'一周模版':'一周模版'}} -->
125
 <!--             <span v-if="schedule.mode == 2 && schedule.execute_times%2==0">(下一周)</span>-->
126
 <!--             <span v-if="schedule.mode == 2 && schedule.execute_times%2==0">(下一周)</span>-->
126
 <!--             <span v-if="schedule.mode == 2 && schedule.execute_times%2!=0">(本周)</span>-->
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
              <span v-if="schedule.mode == 2 && schedule.execute_times%2==0">(下一周)</span>
130
              <span v-if="schedule.mode == 2 && schedule.execute_times%2==0">(下一周)</span>
130
              <span v-if="schedule.mode == 2 && schedule.execute_times%2!=0">(本周)</span>
131
              <span v-if="schedule.mode == 2 && schedule.execute_times%2!=0">(本周)</span>
131
           </span>
132
           </span>
132
 
133
 
133
         </el-tab-pane>
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
 <!--          <template-table   ref="table_two"  :is_editing="is_editing" :editable="true" :device_numbers="device_numbers" :template="first_template"-->
137
 <!--          <template-table   ref="table_two"  :is_editing="is_editing" :editable="true" :device_numbers="device_numbers" :template="first_template"-->
137
 <!--                           :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
 <!--                           :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
 <!--             <span v-if="schedule.mode == 2 && schedule.execute_times%2==0">(下一周)</span>-->
140
 <!--             <span v-if="schedule.mode == 2 && schedule.execute_times%2==0">(下一周)</span>-->
140
 <!--             <span v-if="schedule.mode == 2 && schedule.execute_times%2!=0">(本周)</span>-->
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
              <span v-if="schedule.mode == 2 && schedule.execute_times%2!=0">(下一周)</span>
144
              <span v-if="schedule.mode == 2 && schedule.execute_times%2!=0">(下一周)</span>
144
           </span>
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
 <!--          <template-table  ref="table_three"  :is_editing="is_editing" :editable="true" :device_numbers="device_numbers" :template="first_template"-->
152
 <!--          <template-table  ref="table_three"  :is_editing="is_editing" :editable="true" :device_numbers="device_numbers" :template="first_template"-->
152
 <!--                           :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
 <!--                           :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
 <!--          <span slot="label"> 四周模版 {{ four_template.week?four_template.week+'周':""}}-->
157
 <!--          <span slot="label"> 四周模版 {{ four_template.week?four_template.week+'周':""}}-->
157
 <!--             <span v-if="schedule.execute_times%2==0">(下一周)</span>-->
158
 <!--             <span v-if="schedule.execute_times%2==0">(下一周)</span>-->
158
 <!--             <span v-if="schedule.execute_times%2!=0">(本周)</span>-->
159
 <!--             <span v-if="schedule.execute_times%2!=0">(本周)</span>-->
164
 <!--        <template-table   ref="table_four"  :is_editing="is_editing" :editable="true" :device_numbers="device_numbers" :template="first_template"-->
165
 <!--        <template-table   ref="table_four"  :is_editing="is_editing" :editable="true" :device_numbers="device_numbers" :template="first_template"-->
165
 <!--                         :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
 <!--                         :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
 <!--        <template-table-two   v-show="activeName =='second'"  ref="table_two"  :is_editing="is_editing" :editable="true" :device_numbers="device_numbers" :template="second_template"-->
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
 <!--                               :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
 <!--                               :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
       <template-table  v-loading="dataloading"  ref="table"  :is_editing="is_editing" :editable="true" :device_numbers="device_numbers" :template="template"
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
 <!--      <template-table  ref="table" :editable="true" :device_numbers="device_numbers" :template="tar_template" :is_editing="is_editing"-->
245
 <!--      <template-table  ref="table" :editable="true" :device_numbers="device_numbers" :template="tar_template" :is_editing="is_editing"-->
271
   },
333
   },
272
   data: function () {
334
   data: function () {
273
     return {
335
     return {
336
+      schedulingTableVisible:false,
274
       dataloading:true,
337
       dataloading:true,
275
       is_editing:true,
338
       is_editing:true,
276
       editable:false,
339
       editable:false,
1510
 
1573
 
1511
       }
1574
       }
1512
 
1575
 
1513
-    },getInitData(){
1576
+    },
1577
+    getInitData(){
1514
       let params = {
1578
       let params = {
1515
         patitionid:""
1579
         patitionid:""
1516
       }
1580
       }
3121
 
3185
 
3122
       }
3186
       }
3123
 
3187
 
3124
-    },changeZone(val){
3188
+    },
3189
+    changeZone(val){
3125
       this.getWeekPanels(val)
3190
       this.getWeekPanels(val)
3126
       let params = {
3191
       let params = {
3127
         patitionid:val
3192
         patitionid:val
3197
       })
3262
       })
3198
 
3263
 
3199
 
3264
 
3200
-    },saveData(val,del_data){
3265
+    },
3266
+    saveData(val,del_data){
3201
       var tempDataOne = []
3267
       var tempDataOne = []
3202
       for(let i = 0; i < val.length; i++){
3268
       for(let i = 0; i < val.length; i++){
3203
           tempDataOne.push(val[i])
3269
           tempDataOne.push(val[i])
3377
           })
3443
           })
3378
         }
3444
         }
3379
       })
3445
       })
3380
-    },editClick:function (){
3446
+    },
3447
+    editClick:function (){
3381
       this.$nextTick(function() {
3448
       this.$nextTick(function() {
3382
         if(this.activeName == "first"){
3449
         if(this.activeName == "first"){
3383
           this.activeName = "first"
3450
           this.activeName = "first"
3394
         }
3461
         }
3395
       })
3462
       })
3396
 
3463
 
3397
-    },saveClick:function (){
3464
+    },
3465
+    // 退出排班模板
3466
+    saveClick:function (){
3398
       if(this.template_mode.mode == 0){
3467
       if(this.template_mode.mode == 0){
3399
         // this.$router.go(-1)
3468
         // this.$router.go(-1)
3400
         this.$router.back()
3469
         this.$router.back()
3401
 
3470
 
3402
       }else{
3471
       }else{
3472
+        this.schedulingTableVisible=false
3403
         this.$message.success("保存成功")
3473
         this.$message.success("保存成功")
3404
         this.$router.back()
3474
         this.$router.back()
3405
-
3475
+        
3406
       }
3476
       }
3407
 
3477
 
3408
     },
3478
     },