Procházet zdrojové kódy

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

杨青 před 2 roky
rodič
revize
a711815d78

+ 12 - 10
src/router/modules/device.js Zobrazit soubor

@@ -88,16 +88,18 @@ export default {
88 88
 
89 89
       }
90 90
     },
91
-    // {
92
-    //   path: '/device/waterformprint',
93
-    //   component: () => import('@/xt_pages/management/components/waterFormPrint'),
94
-    //   name: 'waterFormPrint',
95
-    //   meta: {
96
-    //     title: 'waterFormPrint',
97
-    //     noCache: true,
98
-
99
-    //   }
100
-    // }
91
+    {
92
+      path: '/device/waterformprint',
93
+      component: () => import('@/xt_pages/management/components/waterFormPrint'),
94
+      name: 'waterFormPrint',
95
+      is_menu: false,
96
+      hidden: true,
97
+      meta: {
98
+        title: 'waterFormPrint',
99
+        noCache: true,
100
+        
101
+      }
102
+    }
101 103
 
102 104
   ]
103 105
 }

+ 156 - 8
src/xt_pages/management/components/RepairForm.vue Zobrazit soubor

@@ -49,10 +49,10 @@
49 49
       </el-col>
50 50
       <span>&nbsp;&nbsp;</span>
51 51
       <el-col :span="6">
52
-          <el-button type="primary" size="small" @click="printCard">打印</el-button>
52
+          <el-button type="primary" @click="printCard">打印</el-button>
53 53
       </el-col>
54 54
     </el-row>
55
-   
55
+
56 56
       <el-table
57 57
         ref="multipleTable"
58 58
         @selection-change="handleSelectionChange"
@@ -80,9 +80,9 @@
80 80
 
81 81
         <el-table-column prop="date" label= "型号" width="80" align="center">
82 82
           <template slot-scope="scope">
83
-            <span v-if="getRepairName(scope.row.equitment_id) == 1">透析机</span> 
84
-            <span v-if="getRepairName(scope.row.equitment_id) == 2">水处理机</span> 
85
-            <span v-if="getRepairName(scope.row.equitment_id) == 3">其他</span> 
83
+            <span v-if="getRepairName(scope.row.equitment_id) == 1">透析机</span>
84
+            <span v-if="getRepairName(scope.row.equitment_id) == 2">水处理机</span>
85
+            <span v-if="getRepairName(scope.row.equitment_id) == 3">其他</span>
86 86
           </template>
87 87
         </el-table-column>
88 88
 
@@ -135,9 +135,9 @@
135 135
               {{ scope.row.reason }}
136 136
               </template>
137 137
            </el-table-column>
138
- 
139
-      
140
-        
138
+
139
+
140
+
141 141
         <el-table-column label="操作" align="center" min-width="150px">
142 142
           <template slot-scope="scope">
143 143
             <el-tooltip
@@ -536,6 +536,153 @@
536 536
         >
537 537
       </span>
538 538
     </el-dialog>
539
+
540
+
541
+    <div hidden="hidden">
542
+      <div id="print-card-info-one" v-show="hiddenShow">
543
+        <div>
544
+          <div class="print_main_content-one">
545
+            <div class="order_title" style="text-align: center;">医疗器械保养维护、维修登记表</div>
546
+          </div>
547
+          <div>
548
+            <div class="printClass">打印日期:{{ nowTime }}</div>
549
+            <table
550
+              border="1"
551
+              style="width:100%"
552
+              cellspacing="0"
553
+              cellpadding="0"
554
+              class="tableClass"
555
+            >
556
+              <tr>
557
+                <td
558
+                  :rowspan="2"
559
+                  style="text-align:center;width:60px;font-size:15px;"
560
+                >
561
+                  设备名称
562
+                </td>
563
+
564
+                <td
565
+                  :rowspan="2"
566
+                  style="text-align:center;width:60px;font-size:15px;"
567
+                >
568
+                  型号
569
+                </td>
570
+
571
+                <td
572
+                  :colspan="2"
573
+                  style="text-align:center;width:60px;font-size:15px;"
574
+                >
575
+                 保养维护内容
576
+                </td>
577
+
578
+                <td
579
+                  :colspan="3"
580
+                  style="text-align:center;width:60px;font-size:15px;"
581
+                >
582
+                  维修记录
583
+                </td>
584
+
585
+                <td
586
+                  :rowspan="2"
587
+                  style="text-align:center;width:60px;font-size:15px;"
588
+                >
589
+                 维修者
590
+                </td>
591
+
592
+                <td
593
+                  :rowspan="2"
594
+                  style="text-align:center;width:120px;font-size:15px;"
595
+                >
596
+                 日期
597
+                </td>
598
+
599
+                <td
600
+                 :rowspan="2"
601
+                  style="text-align:center;width:60px;font-size:15px;"
602
+                >
603
+                 备注
604
+                </td>
605
+
606
+
607
+
608
+
609
+              </tr>
610
+              <tr>
611
+
612
+                <td style="text-align:center;font-size:15px;height:30px">
613
+                  功能及附件检查
614
+                </td>
615
+
616
+                <td style="text-align:center;font-size:15px;height:30px">
617
+                  其他
618
+                </td>
619
+
620
+
621
+                <td style="text-align:center;font-size:15px;height:30px">
622
+                  故障现象
623
+                </td>
624
+
625
+                <td style="text-align:center;font-size:15px;height:30px">
626
+                  维修内容
627
+                </td>
628
+
629
+                <td style="text-align:center;font-size:15px;height:30px">
630
+                  维修结果
631
+                </td>
632
+
633
+
634
+
635
+              </tr>
636
+              <tr v-for="item in this.tableData" :key="item.id">
637
+                <td style="text-align:center;font-size:15px;height:30px">
638
+                  {{ getDeviceName(item.equitment_id) }}
639
+                </td>
640
+
641
+                <td style="text-align:center;font-size:15px;height:30px">
642
+                  <span v-if="getRepairName(item.equitment_id) == 1">透析机</span>
643
+                  <span v-if="getRepairName(item.equitment_id) == 2">水处理机</span>
644
+                  <span v-if="getRepairName(item.equitment_id) == 3">其他</span>
645
+                </td>
646
+
647
+                <td style="text-align:center;font-size:15px;height:30px">
648
+                  {{item.function_accessories_inspection }}
649
+                </td>
650
+
651
+                <td style="text-align:center;font-size:15px;height:30px">
652
+                  {{ item.other_information }}
653
+                </td>
654
+
655
+                <td style="text-align:center;font-size:15px;height:30px">
656
+                  {{ item.fault_description }}
657
+                </td>
658
+
659
+                <td style="text-align:center;font-size:15px;height:30px">
660
+                   {{item.cause_analysis }}
661
+                </td>
662
+
663
+                <td style="text-align:center;font-size:15px;height:30px">
664
+                    {{item.treatment_process}}
665
+                </td>
666
+
667
+
668
+                <td style="text-align:center;font-size:15px;height:30px">
669
+                  {{ getName(item.admin_user_id) }}
670
+                </td>
671
+
672
+                <td style="text-align:center;font-size:15px;height:30px">
673
+                  {{ getTime(item.guarantee_date) }}
674
+                </td>
675
+
676
+                <td style="text-align:center;font-size:15px;height:30px">
677
+                  {{item.reason }}
678
+                </td>
679
+
680
+              </tr>
681
+            </table>
682
+          </div>
683
+        </div>
684
+      </div>
685
+      </div>
539 686
   </div>
540 687
 </template>
541 688
 
@@ -551,6 +698,7 @@ import {
551 698
 } from "@/api/manage";
552 699
 import { uParseTime } from "@/utils/tools";
553 700
 import { getFileExtension } from "@/utils/tools";
701
+const moment = require('moment')
554 702
 export default {
555 703
   name: "RepairForm",
556 704
   data() {

+ 19 - 44
src/xt_pages/management/components/UserForm.vue Zobrazit soubor

@@ -362,7 +362,7 @@
362 362
                 value-format="yyyy-MM-dd HH:mm"
363 363
                 placeholder="选择时间"
364 364
                 v-model="userform.start_time"
365
-                
365
+
366 366
               ></el-date-picker>
367 367
             </el-form-item>
368 368
           </el-col>
@@ -633,7 +633,7 @@
633 633
                 value-format="yyyy-MM-dd HH:mm"
634 634
                 placeholder="选择时间"
635 635
                 v-model="userform.starttime"
636
-                
636
+
637 637
               ></el-date-picker>
638 638
             </el-form-item>
639 639
           </el-col>
@@ -645,7 +645,7 @@
645 645
                 value-format="yyyy-MM-dd HH:mm"
646 646
                 placeholder="选择时间"
647 647
                 v-model="userform.endtime"
648
-                
648
+
649 649
               ></el-date-picker>
650 650
             </el-form-item>
651 651
           </el-col>
@@ -684,7 +684,7 @@
684 684
               >桶
685 685
             </el-form-item>
686 686
             <span style="color:red" v-show="showone"
687
-              >您已个月未更换,请注意检测</span
687
+              >您已个月未更换,请注意检测</span
688 688
             >
689 689
           </el-col>
690 690
         </el-row>
@@ -711,7 +711,7 @@
711 711
             >
712 712
               <el-checkbox v-model="userform.germ_checked">更换</el-checkbox>
713 713
               <span style="color:red" v-show="showone"
714
-                >您已个月未更换,请注意检测</span
714
+                >您已个月未更换,请注意检测</span
715 715
               >
716 716
             </el-form-item>
717 717
           </el-col>
@@ -750,7 +750,7 @@
750 750
             >
751 751
               <el-checkbox v-model="userform.clean">清洁:</el-checkbox>
752 752
               <span style="color:red" v-show="showone"
753
-                >您已个月未清洁,请检查</span
753
+                >您已个月未清洁,请检查</span
754 754
               >
755 755
             </el-form-item>
756 756
           </el-col>
@@ -851,18 +851,6 @@
851 851
                 >
852 852
                   液路消毒
853 853
                 </td>
854
-                <td :rowspan="2" 
855
-                style="text-align:center;min-width:40px;font-size:15px">
856
-                透析机消毒液<br/>(更换)
857
-                </td>
858
-                <td :rowspan="2" 
859
-                  style="text-align:center;min-width:40px;font-size:15px">
860
-                  细菌过滤器<br/>(更换)
861
-                </td>
862
-                <td :rowspan="2" 
863
-                    style="text-align:center;min-width:40px;font-size:15px">
864
-                    空气滤网
865
-                </td>
866 854
                 <td
867 855
                   :rowspan="2"
868 856
                   style="text-align:center;min-width:40px;font-size:15px"
@@ -1223,11 +1211,14 @@ export default {
1223 1211
           this.zones = zone;
1224 1212
 
1225 1213
           var numbers = response.data.data.numbers;
1214
+
1226 1215
           var number = [{ id: 0, number: "全部" }];
1227 1216
           for (let index = 0; index < numbers.length; index++) {
1228 1217
             const item = numbers[index];
1229 1218
             number.push({ id: item.id, number: item.number });
1230 1219
           }
1220
+          this.bedNumberTwo = []
1221
+          this.bedNumberTwo  = number
1231 1222
           this.bedNumber = number;
1232 1223
         }
1233 1224
       });
@@ -2450,7 +2441,10 @@ export default {
2450 2441
             const item = number[i];
2451 2442
             bed.push({ id: item.id, number: item.number });
2452 2443
           }
2444
+          this.bedNumberTwo = []
2453 2445
           this.bedNumberTwo = bed;
2446
+
2447
+          console.log("this233232322323233232",this.bedNumberTwo)
2454 2448
         }
2455 2449
       });
2456 2450
     },
@@ -2510,8 +2504,14 @@ export default {
2510 2504
 
2511 2505
           if (bed.length !== 0) {
2512 2506
             this.form.bed = "";
2507
+            this.bedNumberTwo = []
2513 2508
             this.bedNumberTwo = bed;
2509
+          }else{
2510
+            this.form.bed = ""
2511
+            this.bedNumberTwo = []
2512
+
2514 2513
           }
2514
+
2515 2515
         }
2516 2516
       });
2517 2517
     },
@@ -2583,32 +2583,6 @@ export default {
2583 2583
         return jsonData.map(v => filterVal.map(j => v[j]));
2584 2584
       },
2585 2585
     },
2586
-    exportList: function() {
2587
-      console.log('123245354');
2588
-      // for(let i=0;i<this.tableList.length;i++){
2589
-      //     this.tableList[i].index = i+1
2590
-      //   }
2591
-      //   import('@/vendor/Export2Excel').then(excel => {
2592
-      //     const multiHeader = [['序号', '日期','  药品类型','药品名称','规格&单位','生产产商', '期初结余' , '', '', '本期增加', '', '', '本期减少' , '', '', '期末结余' , '', '']]
2593
-      //     const header = ['', '','','','','', '数量', '进货金额', '销售金额', '数量', '进货金额', '销售金额', '数量', '进货金额', '销售金额', '数量', '进货金额', '销售金额']
2594
-      //     const merges = ['A1:A2', 'B1:B2','C1:C2','D1:D2','E1:E2','F1:F2','G1:I1', 'J1:L1', 'M1:O1', 'P1:R1']
2595
-      //     const filterVal = ['index', 'query_date', 'good_type','drug_name','specification_name','manufacturer_name','drugIn','drugInMoney','drugSaleMoney','drugAdd','drugAddPrice','drugAddSalePrice','drugOut','drugOutPrice','drugOutSalePrice','overDrug','overDrugPrice','oveDrugSaleMoney']
2596
-
2597
-      //     const data = this.formatJson(filterVal, this.tableList)
2598
-
2599
-      //     const filename = '药品进销存查询'
2600
-
2601
-
2602
-      //       excel.export_json_to_excel({
2603
-      //         multiHeader,
2604
-      //         header,
2605
-      //         merges,
2606
-      //         data,
2607
-      //         filename
2608
-      //       })
2609
-      //   })
2610
-    },
2611
-  
2612 2586
   created() {
2613 2587
     this.getAllSubregion();
2614 2588
     // this.getInformationData();
@@ -2616,6 +2590,7 @@ export default {
2616 2590
   },
2617 2591
   watch: {
2618 2592
     userdata(newvalue, oldvalue) {
2593
+      console.log("newVlaue233333333333333333333",newvalue)
2619 2594
       this.getUserForm(newvalue);
2620 2595
       this.getBedForm(newvalue);
2621 2596
       this.value = newvalue;

+ 190 - 33
src/xt_pages/management/components/WaterForm.vue Zobrazit soubor

@@ -359,8 +359,14 @@ import {getAllDoctorList,saveWaterList} from "@/api/manage";
359 359
     methods:{
360 360
         saveWater(formName){
361 361
         // console.log("form",this.form,this.equimentid)
362
-        this.form.force_pump_status = parseInt(this.form.force_pump_status)
363
-        this.form.machine_status = parseInt(this.form.machine_status)
362
+        if(this.form.force_pump_status!=""){
363
+          this.form.force_pump_status = parseInt(this.form.force_pump_status)
364
+        }
365
+        if(this.form.machine_status!=""){
366
+          this.form.machine_status = parseInt(this.form.machine_status)
367
+        }
368
+      
369
+       
364 370
         if(this.form.reverse_osmosis_membrane_disinfection == true){
365 371
            this.form.reverse_osmosis_membrane_disinfection = 1
366 372
         }
@@ -373,38 +379,189 @@ import {getAllDoctorList,saveWaterList} from "@/api/manage";
373 379
         if(this.form.disinfection_of_water_pipeline == false){
374 380
           this.form.disinfection_of_water_pipeline = 2
375 381
         }
382
+        if(this.form.water_conductivity!=""){
383
+          this.form.water_conductivity = parseFloat(this.form.water_conductivity)== NaN ? 0:parseFloat(this.form.water_conductivity)
384
+        }else{
385
+           this.form.water_conductivity = 0 
386
+        }
387
+        
388
+        if(this.form.water_pressure!=""){
389
+          this.form.water_pressure = parseFloat(this.form.water_pressure) == NaN ? 0:parseFloat(this.form.water_pressure)
390
+        }else{
391
+            this.form.water_pressure=  0
392
+        }
393
+
394
+        if(this.form.temperature!=""){
395
+          this.form.temperature = parseFloat(this.form.temperature)== NaN ? 0:parseFloat(this.form.temperature)
396
+        }else{
397
+          this.form.temperature = 0    
398
+        }
399
+        
400
+        if(this.form.force_pump_status!=""){
401
+          this.form.force_pump_status = parseFloat(this.form.force_pump_status) ==  NaN ? 0: parseFloat(this.form.force_pump_status)
402
+        }else{
403
+            this.form.force_pump_status = 0
404
+        }
405
+        
406
+        if(this.form.first_ro_membrane_water!=""){
407
+          this.form.first_ro_membrane_water = parseFloat(this.form.first_ro_membrane_water) == NaN?0:parseFloat(this.form.first_ro_membrane_water)
408
+        }else{
409
+          this.form.first_ro_membrane_water = 0
410
+        }
411
+
412
+        if(this.form.first_ro_film_thick_water!=""){
413
+          this.form.first_ro_film_thick_water = parseFloat(this.form.first_ro_film_thick_water) ==NaN?0:parseFloat(this.form.first_ro_film_thick_water)
414
+        }else{
415
+          this.form.first_ro_film_thick_water = 0
416
+        }
417
+        
418
+        if(this.form.first_ro_membrane_effluent!=""){
419
+          this.form.first_ro_membrane_effluent =parseFloat(this.form.first_ro_membrane_effluent) == NaN?0:parseFloat(this.form.first_ro_membrane_effluent) 
420
+        }else{
421
+           this.form.first_ro_membrane_effluent = 0 
422
+        }
423
+
424
+        if(this.form.first_production_of_water_conductivity!=""){
425
+          this.form.first_production_of_water_conductivity = parseFloat(this.form.first_production_of_water_conductivity) == NaN?0: parseFloat(this.form.first_production_of_water_conductivity)
426
+        }else{
427
+          this.form.first_production_of_water_conductivity = 0
428
+        }
429
+        
430
+        if(this.form.first_water_yield !=""){
431
+           this.form.first_water_yield = parseFloat(this.form.first_water_yield) == NaN?0:parseFloat(this.form.first_water_yield)  
432
+        }else{
433
+            this.form.first_water_yield =0
434
+        }
435
+       
436
+        if(this.form.last_ro_membrane_water!=""){
437
+          this.form.last_ro_membrane_water = parseFloat(this.form.last_ro_membrane_water) ==NaN?0:parseFloat(this.form.last_ro_membrane_water)  
438
+        }else{
439
+          this.form.last_ro_membrane_water = 0
440
+        }
441
+      
442
+        if(this.form.last_ro_membrane_effluent!=""){
443
+          this.form.last_ro_membrane_effluent = parseFloat(this.form.last_ro_membrane_effluent) == NaN?0:parseFloat(this.form.last_ro_membrane_effluent)
444
+        }else{
445
+          this.form.last_ro_membrane_effluent = 0
446
+        }
447
+      
448
+        if(this.form.last_ro_film_thick_water!=""){
449
+            this.form.last_ro_film_thick_water = parseFloat(this.form.last_ro_film_thick_water) == NaN?0:parseFloat(this.form.last_ro_film_thick_water)
450
+        }else{
451
+          this.form.last_ro_film_thick_water = 0
452
+        }
453
+   
454
+        if( this.form.last_production_of_water_conductivity!=""){
455
+            this.form.last_production_of_water_conductivity = parseFloat(this.form.last_production_of_water_conductivity) == NaN?0:parseFloat(this.form.last_production_of_water_conductivity)
456
+        }else{
457
+            this.form.last_production_of_water_conductivity =0
458
+        }
459
+       
460
+        if(this.form.last_water_yield!=""){
461
+            this.form.last_water_yield = parseFloat(this.form.last_water_yield)==NaN?0: parseFloat(this.form.last_water_yield)
462
+        }else{
463
+            this.form.last_water_yield = 0
464
+        }
376 465
 
377
-        this.form.water_conductivity = parseFloat(this.form.water_conductivity)
378
-        this.form.water_pressure = parseFloat(this.form.water_pressure)
379
-        this.form.temperature = parseFloat(this.form.temperature)
380
-        this.form.force_pump_status = parseFloat(this.form.force_pump_status)
381
-        this.form.first_ro_membrane_water = parseFloat(this.form.first_ro_membrane_water)
382
-        this.form.first_ro_film_thick_water = parseFloat(this.form.first_ro_film_thick_water)
383
-        this.form.first_ro_membrane_effluent =parseFloat(this.form.first_ro_membrane_effluent)
384
-        this.form.first_production_of_water_conductivity = parseFloat(this.form.first_production_of_water_conductivity)
385
-        this.form.first_water_yield = parseFloat(this.form.first_water_yield)
386
-        this.form.last_ro_membrane_water = parseFloat(this.form.last_ro_membrane_water)
387
-        this.form.last_ro_membrane_effluent = parseFloat(this.form.last_ro_membrane_effluent)
388
-        this.form.last_ro_film_thick_water = parseFloat(this.form.last_ro_film_thick_water)
389
-        this.form.last_production_of_water_conductivity = parseFloat(this.form.last_production_of_water_conductivity)
390
-        this.form.last_water_yield = parseFloat(this.form.last_water_yield)
391
-        this.form.carbon_tank = parseFloat(this.form.carbon_tank)
392
-        this.form.snd_tank = parseFloat(this.form.snd_tank)
393
-        this.form.resin_tank= parseFloat(this.form.resin_tank)
394
-        this.form.ultrafilter = parseFloat(this.form.ultrafilter)
395
-        this.form.hardness_monitoring = parseFloat(this.form.hardness_monitoring)
396
-        this.form.total_chlorine_detection = parseFloat(this.form.total_chlorine_detection)
397
-        this.form.ph_detection = parseFloat(this.form.ph_detection)
398
-        this.form.concentration_of_peroxyacetic_acid = parseFloat(this.form.concentration_of_peroxyacetic_acid)
399
-        this.form.reverse_osmosis_membrane_disinfection= parseFloat(this.form.reverse_osmosis_membrane_disinfection)
400
-        this.form.first_disinfection_method = parseFloat(this.form.first_disinfection_method)
401
-        this.form.last_disinfection_method = parseFloat(this.form.last_disinfection_method)
402
-        this.form.first_disinfection_time = parseFloat(this.form.first_disinfection_time)
403
-        this.form.last_disinfection_time = parseFloat(this.form.last_disinfection_time)
404
-        this.form.filter_replacement = parseFloat(this.form.filter_replacement)
405
-        this.form.admin_user_id = parseFloat(this.form.admin_user_id)
406
-        this.form.disinfection_of_water_pipeline = parseFloat(this.form.disinfection_of_water_pipeline)
407
-        console.log("fomr=================",this.form)
466
+        if(this.form.carbon_tank!=""){
467
+            this.form.carbon_tank = parseFloat(this.form.carbon_tank) == NaN?0:parseFloat(this.form.carbon_tank)
468
+        }else{
469
+            this.form.carbon_tank = 0
470
+        }
471
+        
472
+        if( this.form.snd_tank!=""){
473
+            this.form.snd_tank = parseFloat(this.form.snd_tank) == NaN?0:parseFloat(this.form.snd_tank)
474
+        }else{
475
+            this.form.snd_tank = 0
476
+        }
477
+         
478
+        if(this.form.resin_tank!=""){
479
+            this.form.resin_tank= parseFloat(this.form.resin_tank) ==NaN?0:parseFloat(this.form.resin_tank)
480
+        }else{
481
+            this.form.resin_tank= 0
482
+        }
483
+      
484
+        if( this.form.ultrafilter!=""){
485
+            this.form.ultrafilter = parseFloat(this.form.ultrafilter)== NaN?0:parseFloat(this.form.ultrafilter)
486
+        }else{
487
+          this.form.ultrafilter = 0
488
+        }
489
+        
490
+        if(this.form.hardness_monitoring !=""){
491
+            this.form.hardness_monitoring = parseFloat(this.form.hardness_monitoring) ==NaN?0: parseFloat(this.form.hardness_monitoring)
492
+        }else{
493
+           this.form.hardness_monitoring= 0
494
+        }
495
+
496
+        if( this.form.total_chlorine_detection!=""){
497
+            this.form.total_chlorine_detection = parseFloat(this.form.total_chlorine_detection)==NaN?0: parseFloat(this.form.total_chlorine_detection)
498
+        }else{
499
+            this.form.total_chlorine_detection = 0
500
+        }
501
+        
502
+        if( this.form.ph_detection!=""){
503
+            this.form.ph_detection = parseFloat(this.form.ph_detection) == NaN?0:parseFloat(this.form.ph_detection)
504
+        }else{
505
+            this.form.ph_detection = 0
506
+        }
507
+
508
+        if(this.form.concentration_of_peroxyacetic_acid!="" ){
509
+            this.form.concentration_of_peroxyacetic_acid = parseFloat(this.form.concentration_of_peroxyacetic_acid) == NaN?0: parseFloat(this.form.concentration_of_peroxyacetic_acid)   
510
+        }else{
511
+            this.form.concentration_of_peroxyacetic_acid = 0
512
+        }
513
+
514
+        if( this.form.reverse_osmosis_membrane_disinfection!=""){
515
+            this.form.reverse_osmosis_membrane_disinfection= parseFloat(this.form.reverse_osmosis_membrane_disinfection) == NaN?0:parseFloat(this.form.reverse_osmosis_membrane_disinfection)
516
+        }else{
517
+            this.form.reverse_osmosis_membrane_disinfection=  0
518
+        }
519
+
520
+        if(this.form.first_disinfection_method !=""){
521
+            this.form.first_disinfection_method = parseFloat(this.form.first_disinfection_method) == NaN?0:parseFloat(this.form.first_disinfection_method)
522
+        }else{
523
+            this.form.first_disinfection_method = 0
524
+        }
525
+      
526
+       
527
+        if(this.form.last_disinfection_method !=""){
528
+           this.form.last_disinfection_method = parseFloat(this.form.last_disinfection_method) == NaN?0:parseFloat(this.form.last_disinfection_method)
529
+        }else{
530
+            this.form.last_disinfection_method = 0
531
+        }
532
+       
533
+        if(this.form.first_disinfection_time !=""){
534
+          this.form.first_disinfection_time = parseFloat(this.form.first_disinfection_time) == NaN?0:parseFloat(this.form.first_disinfection_time)
535
+        }else{
536
+            this.form.first_disinfection_time = 0
537
+        }
538
+        
539
+        if( this.form.last_disinfection_time!=""){
540
+            this.form.last_disinfection_time = parseFloat(this.form.last_disinfection_time) == NaN?0:parseFloat(this.form.last_disinfection_time)
541
+        }else{
542
+            this.form.last_disinfection_time = 0  
543
+        }
544
+      
545
+        if(this.form.filter_replacement!=""){
546
+            this.form.filter_replacement = parseFloat(this.form.filter_replacement) == NaN?0:parseFloat(this.form.filter_replacement)
547
+        }else{
548
+            this.form.filter_replacement= 0
549
+        }
550
+
551
+        if( this.form.admin_user_id != ""){
552
+            this.form.admin_user_id = parseFloat(this.form.admin_user_id) == NaN?0:parseFloat(this.form.admin_user_id)
553
+        }else{
554
+            this.form.admin_user_id =0
555
+        }
556
+        
557
+        if(this.form.disinfection_of_water_pipeline !=""){
558
+            this.form.disinfection_of_water_pipeline = parseFloat(this.form.disinfection_of_water_pipeline) == NaN?0:parseFloat(this.form.disinfection_of_water_pipeline)
559
+        }else{
560
+            this.form.disinfection_of_water_pipeline =0
561
+        }
562
+      
563
+       
564
+        console.log("233223232323",this.form)
408 565
          this.$refs[formName].validate((valid) => {
409 566
           if (valid) {
410 567
             saveWaterList(this.equimentid,this.form).then(response=>{

+ 20 - 17
src/xt_pages/management/components/WaterFormList.vue Zobrazit soubor

@@ -76,17 +76,17 @@
76 76
           <el-table-column label="原水参数" align="center" min-width="110px">
77 77
             <el-table-column label="原水电导度" align="center" min-width="110px">
78 78
               <template slot-scope="scope">
79
-                {{ scope.row.water_conductivity }}
79
+                {{ scope.row.water_conductivity?scope.row.water_conductivity:"" }}
80 80
               </template>
81 81
             </el-table-column>
82 82
             <el-table-column label="原水压力" align="center" min-width="110px">
83 83
               <template slot-scope="scope">
84
-                 {{scope.row.water_pressure}}
84
+                 {{scope.row.water_pressure?scope.row.water_pressure:""}}
85 85
               </template>
86 86
             </el-table-column>
87 87
             <el-table-column label="温度" align="center" min-width="110px">
88 88
               <template slot-scope="scope">
89
-                {{scope.row.temperature }}
89
+                {{scope.row.temperature?scope.row.temperature:"" }}
90 90
              </template>
91 91
             </el-table-column>
92 92
             <el-table-column label="加压泵" align="center" min-width="110px">
@@ -100,12 +100,12 @@
100 100
           <el-table-column label="一级反渗" align="center" min-width="110px">
101 101
             <el-table-column label="产水电导度" align="center" min-width="110px">
102 102
               <template slot-scope="scope">
103
-                 {{scope.row.first_production_of_water_conductivity }}
103
+                 {{scope.row.first_production_of_water_conductivity?scope.row.first_production_of_water_conductivity:"" }}
104 104
               </template>
105 105
             </el-table-column>
106 106
             <el-table-column label="产水量" align="center" min-width="110px">
107 107
               <template slot-scope="scope">
108
-                 {{scope.row.first_water_yield }}
108
+                 {{scope.row.first_water_yield?scope.row.first_water_yield:"" }}
109 109
               </template>
110 110
             </el-table-column>
111 111
           </el-table-column>
@@ -113,59 +113,59 @@
113 113
           <el-table-column label="二级反渗" align="center" min-width="110px">
114 114
             <el-table-column label="产水电导度" align="center" min-width="110px">
115 115
               <template slot-scope="scope">
116
-                {{ scope.row.last_production_of_water_conductivity }}
116
+                {{ scope.row.last_production_of_water_conductivity?scope.row.last_production_of_water_conductivity:"" }}
117 117
               </template>
118 118
             </el-table-column>
119 119
             <el-table-column label="产水量" align="center" min-width="110px">
120 120
               <template slot-scope="scope">
121
-                {{ scope.row.last_water_yield }}
121
+                {{ scope.row.last_water_yield?scope.row.last_water_yield:"" }}
122 122
               </template>
123 123
             </el-table-column>
124 124
           </el-table-column>
125 125
 
126 126
           <el-table-column label="碳罐(MPa)" align="center" min-width="110px">
127 127
               <template slot-scope="scope">
128
-                {{scope.row.carbon_tank }}
128
+                {{scope.row.carbon_tank?scope.row.carbon_tank:"" }}
129 129
               </template>
130 130
          </el-table-column>
131 131
 
132 132
          <el-table-column label="砂罐(MPa)" align="center" min-width="110px">
133 133
               <template slot-scope="scope">
134
-                {{ scope.row.snd_tank }}
134
+                {{ scope.row.snd_tank?scope.row.snd_tank:"" }}
135 135
               </template>
136 136
          </el-table-column>
137 137
 
138 138
          <el-table-column label="树脂罐(MPa)" align="center" min-width="110px">
139 139
               <template slot-scope="scope">
140
-                {{ scope.row.resin_tank }}
140
+                {{ scope.row.resin_tank?scope.row.resin_tank:"" }}
141 141
               </template>
142 142
          </el-table-column>
143 143
 
144 144
          <el-table-column label="静谧过滤器(MPa)" align="center" min-width="110px">
145 145
               <template slot-scope="scope">
146
-                {{ scope.row.ultrafilter }}
146
+                {{ scope.row.ultrafilter?scope.row.ultrafilter:"" }}
147 147
               </template>
148 148
          </el-table-column>
149 149
 
150 150
           <el-table-column label="水质监测" align="center" min-width="110px">
151 151
             <el-table-column label="硬度" align="center" min-width="110px">
152 152
               <template slot-scope="scope">
153
-                {{ scope.row.hardness_monitoring }}
153
+                {{ scope.row.hardness_monitoring?scope.row.hardness_monitoring:"" }}
154 154
               </template>
155 155
             </el-table-column>
156 156
             <el-table-column label="总氯" align="center" min-width="110px">
157 157
               <template slot-scope="scope">
158
-                {{ scope.row.total_chlorine_detection }}
158
+                {{ scope.row.total_chlorine_detection?scope.row.total_chlorine_detection:"" }}
159 159
               </template>
160 160
             </el-table-column>
161 161
             <el-table-column label="PH值" align="center" min-width="110px">
162 162
               <template slot-scope="scope">
163
-                {{ scope.row.ph_detection }}
163
+                {{ scope.row.ph_detection?scope.row.ph_detection:"" }}
164 164
               </template>
165 165
             </el-table-column>
166 166
             <el-table-column label="过氧乙酸(mg/h)" align="center" min-width="110px">
167 167
               <template slot-scope="scope">
168
-                {{ scope.row.concentration_of_peroxyacetic_acid }}
168
+                {{ scope.row.concentration_of_peroxyacetic_acid?scope.row.concentration_of_peroxyacetic_acid:"" }}
169 169
               </template>
170 170
             </el-table-column>
171 171
           </el-table-column>
@@ -188,7 +188,7 @@
188 188
 
189 189
             <el-table-column label="过滤器更换" align="center" min-width="110px">
190 190
               <template slot-scope="scope">
191
-                 {{scope.row.filter_replacement}}
191
+                 {{scope.row.filter_replacement?scope.row.filter_replacement:""}}
192 192
               </template>
193 193
             </el-table-column>
194 194
             <el-table-column label="记录人" align="center" min-width="110px">
@@ -794,6 +794,8 @@
794 794
   </template>
795 795
   <script>
796 796
   import { uParseTime } from "@/utils/tools";
797
+  import print from "print-js";
798
+  const moment = require("moment");
797 799
   import {getWaterFormList,DeleteWater,getDialysisWaterDetail,UpdateDilaysisWater,DeleteBatchDialyisWater} from "@/api/manage";
798 800
     export default {
799 801
       name: "WaterFormList",
@@ -802,6 +804,7 @@
802 804
       },
803 805
       data(){
804 806
         return {
807
+          nowTime: moment(new Date()).format("YYYY-MM-DD HH:MM:SS"),
805 808
           tableData:[],
806 809
           total:0,
807 810
           adminRole:[],
@@ -1153,7 +1156,7 @@
1153 1156
 
1154 1157
               const filename = '水处理机使用登记'
1155 1158
 
1156
-              console.log("rwwwwwwwwwww",this.tableData)
1159
+              // console.log("rwwwwwwwwwww",this.tableData)
1157 1160
 
1158 1161
               excel.export_json_to_excel({
1159 1162
                 multiHeader,

+ 286 - 149
src/xt_pages/management/components/waterFormPrint.vue Zobrazit soubor

@@ -1,157 +1,294 @@
1 1
 <template>
2
-    <div hidden="hidden">
3
-      <div id="print-card-info" v-show="hiddenShow">
4
-        <div>
5
-          <div class="print_main_content">
6
-            <div class="order_title">设备使用记录清单</div>
7
-          </div>
8
-          <div>
9
-            <div class="printClass">打印日期:{{ nowTime }}</div>
10
-            <table
11
-              border="1"
12
-              style="width:100%"
13
-              cellspacing="0"
14
-              cellpadding="0"
15
-              class="tableClass"
16
-            >
17
-              <tr>
18
-                <td
19
-                  :rowspan="2"
20
-                  style="text-align:center;width:60px;font-size:15px;"
21
-                >
22
-                  机号
23
-                </td>
24
-                <td
25
-                  :rowspan="2"
26
-                  style="text-align:center;width:100px;font-size:15px"
27
-                >
28
-                  日期
29
-                </td>
30
-                <td
31
-                  :rowspan="2"
32
-                  style="text-align:center;width:50px;font-size:15px"
33
-                >
34
-                  班次
35
-                </td>
36
-                <td
37
-                  :rowspan="2"
38
-                  style="text-align:center;width:70px;font-size:15px"
39
-                >
40
-                  患者
41
-                </td>
42
-                <td
43
-                  :rowspan="2"
44
-                  style="text-align:center;width:60px;font-size:15px"
45
-                >
46
-                  透析方式
47
-                </td>
48
-                <td
49
-                  :rowspan="2"
50
-                  style="text-align:center;width:60px;font-size:15px"
51
-                >
52
-                  运行
53
-                </td>
54
-                <td
55
-                  :colspan="4"
56
-                  style="text-align:center;width:60px;font-size:15px"
57
-                >
58
-                  机表消毒
59
-                </td>
60
-                <td
61
-                  :colspan="5"
62
-                  style="text-align:center;width:80px;font-size:15px"
63
-                >
64
-                  液路消毒
65
-                </td>
66
-                <td
67
-                  :rowspan="2"
68
-                  style="text-align:center;width:80px;font-size:15px"
69
-                >
70
-                  签名
71
-                </td>
72
-              </tr>
73
-              <tr>
74
-                <td style="text-align:center;width:70px;font-size:15px">
75
-                  消毒方式
76
-                </td>
77
-                <td style="text-align:center;width:50px;font-size:15px">
78
-                  消毒液
79
-                </td>
80
-                <td style="text-align:center;width:70px;font-size:15px">
81
-                  消毒状态
82
-                </td>
83
-                <td style="text-align:center;width:95px;font-size:15px">
84
-                  消毒液浓度
85
-                </td>
86
-                <td style="text-align:center;width:70px;font-size:15px">
87
-                  消毒方式
88
-                </td>
89
-                <td style="text-align:center;width:50px;font-size:15px">
90
-                  消毒液
91
-                </td>
92
-                <td style="text-align:center;width:70px;font-size:15px">
93
-                  消毒时长/min
94
-                </td>
95
-                <td style="text-align:center;width:70px;font-size:15px">
96
-                  消毒状态
97
-                </td>
98
-                <td style="text-align:center;width:70px;font-size:15px">
99
-                  消毒液残留
100
-                </td>
101
-              </tr>
102
-              <tr v-for="item in this.tableData" :key="item.id">
103
-                <td style="text-align:center;font-size:15px;height:30px">
104
-                 
105
-                </td>
106
-                <td style="text-align:center;font-size:15px;height:30px">
107
-                 
108
-                </td>
109
-                <td style="text-align:center;font-size:15px;height:30px">
110
-                 
111
-                </td>
112
-                <td style="text-align:center;font-size:15px;height:30px">
113
-                 
114
-                </td>
115
-                <td style="text-align:center;font-size:15px;height:30px">
116
-                 
117
-                </td>
118
-                <td style="text-align:center;font-size:15px;height:30px">
119
-                
120
-                </td>
121
-                <td style="text-align:center;font-size:15px;height:30px">
122
-                 
123
-                </td>
124
-                <td style="text-align:center;font-size:15px;height:30px">
125
-                  
126
-                </td>
127
-                <td style="text-align:center;font-size:15px;height:30px">
128
-                
129
-                </td>
130
-                <td style="text-align:center;font-size:15px;height:30px">
131
-                 
132
-                </td>
133
-                <td style="text-align:center;font-size:15px;height:30px">
2
+  <div class="main-contain">
3
+    <div class="position">
4
+      <bread-crumb :crumbs='crumbs'></bread-crumb>
5
+      <el-button  size="small" icon="el-icon-printer" @click="printThisPage" type="primary">打印
6
+      </el-button>
7
+    </div>
8
+    <div class="app-container ">
9
+      <div id="dialysis-print-box">
10
+        <div class="dialysis-print-order" v-for="(it,index) in tableList" :key="index">
11
+          <div style="font-size:22px;font-weight:bold;text-align:center;margin-top:40px"></div>
12
+          <div class="order-title" style="font-size:18px;padding-top:0;">药品入库登记表</div>
13
+          <div style="float: right;margin-bottom: 1px;">{{getDateTwo()}}</div>
14
+
15
+          <table class="print-table" border="1">
16
+            <tbody>
17
+            <tr>
18
+              <td width="80">药品名称</td>
19
+              <td style="line-height:18px;" width="80">注册证号/批准文号/备案凭证号</td>
20
+              <td style="line-height:18px;" width="100">规格<br>型号</td>
21
+              <td style="line-height:18px;" width="80">生产<br>厂商</td>
22
+              <td style="line-height:18px;" width="80">经销商</td>
23
+              <td style="line-height:18px;" width="80">进货价</td>
24
+              <td style="line-height:18px;" width="80">入库<br>数量</td>
25
+              <td style="line-height:18px;" width="80">单位</td>
26
+              <td style="line-height:18px;" width="60">总价</td>
27
+              <td style="line-height:18px;" width="80">批号</td>
28
+              <td style="line-height:18px;" width="120">生产日期</td>
29
+              <td style="line-height:18px;" width="120">有效日期</td>
30
+              <td style="line-height:18px;" width="120">入库日期</td>
31
+              <td style="line-height:18px;" width="60">质检<br>意见</td>
32
+              <td style="line-height:18px;" width="60">验收<br>结论</td>
33
+            </tr>
34
+
35
+            <tr v-for="(item,i) in it.child" :key="i">
36
+              <td style="line-height: 18px">
134 37
                  
135
-                </td>
136
-                <td style="text-align:center;font-size:15px;height:30px">
38
+              </td>
39
+              <td style="line-height: 18px"></td>
40
+              <td style="line-height: 18px">
137 41
                 
138
-                </td>
139
-                <td style="text-align:center;font-size:15px;height:30px">
140
-                  
141
-                </td>
142
-                <td style="text-align:center;font-size:15px;height:30px">
143
-                 
144
-                </td>
145
-                <td style="text-align:center;font-size:15px;height:30px">
146
-                  
147
-                </td>
148
-                <td style="text-align:center;font-size:15px;height:30px">
42
+              </td>
43
+              <td style="line-height: 18px"></td>
44
+              <td style="line-height: 18px"></td>
45
+              <td style="line-height:18px">
149 46
                  
150
-                </td>
151
-              </tr>
152
-            </table>
47
+              </td>
48
+              <td style="line-height: 18px">
49
+                   <span></span>
50
+              </td>
51
+              <td style="line-height: 18px">
52
+                <span></span>
53
+              </td>
54
+              <td style="line-height:18px">
55
+                  <span></span>
56
+              </td>
57
+              <td style="line-height:18px"></td>
58
+              <td style="line-height:18px"></td>
59
+              <td style="line-height:18px"></td>
60
+              <td style="line-height:18px"></td>
61
+              <td style="line-height:18px"></td>
62
+              <td style="line-height:18px"></td>
63
+            </tr>
64
+            <tr>
65
+              <td>合计</td>
66
+              <td colspan="7" style="text-align:center"></td>
67
+              <td style="text-align:center">{{getAllPrince(it.id).toFixed(2)}}</td>
68
+              <td colspan="6" style="text-align:center"></td>
69
+            </tr>
70
+            </tbody>
71
+          </table>
72
+
73
+          <div style="display:flex;margin-top:1px;float:right;" v-if="orgId == 10024">
74
+            <div style="width:50px;">审批:</div><div style="width:100px;"></div>
75
+            <div style="width:50px;">会计:</div><div style="width:100px;"><span v-if='orgId == 10024'>徐立琼</span></div>
76
+            <div style="width:50px;">审核:</div><div style="width:100px;"><span v-if='orgId == 10024'>徐立琼</span></div>
77
+            <div style="width:70px;">制单人:</div><div style="width:100px;">{{ getXuserName(it.creater) }}</div>
78
+          </div>
79
+          <div style="display:flex;margin-top:1px;float:right;" v-if="orgId !=10024">
80
+            <div style="width:50px;">审批:</div><div style="width:100px;"></div>
81
+            <div style="width:80px;">药材主任:</div><div style="width:100px;"></div>
82
+            <div style="width:50px;">会计:</div><div style="width:100px;"></div>
83
+            <div style="width:70px;">制单人:</div><div style="width:100px;">{{ getXuserName(it.creater) }}</div>
153 84
           </div>
154 85
         </div>
86
+
155 87
       </div>
88
+
156 89
     </div>
157
-</template>
90
+  </div>
91
+
92
+</template>
93
+
94
+<script>
95
+  import { GetAllConfig,getPrintStockGood } from '@/api/stock'
96
+  import { getDataConfig } from '@/utils/data'
97
+  import { jsGetAge, uParseTime } from '@/utils/tools'
98
+  import BreadCrumb from '@/xt_pages/components/bread-crumb'
99
+  import print from 'print-js'
100
+  import {getDrugWarehouseInfoList,getDrugOrderInPrint} from "@/api/drug/drug_stock";
101
+  import {getBaseDrugLibList} from '@/api/data'
102
+
103
+  export default {
104
+    name: 'dialysisPrintOrder',
105
+    components: {
106
+      BreadCrumb
107
+
108
+    },
109
+    data() {
110
+      return {
111
+        crumbs: [
112
+          { path: false, name: '维修列表' },
113
+          { path: false, name: '打印单' }
114
+        ],
115
+        tableList:[]
116
+      }
117
+    },
118
+    methods: {
119
+       getTime(val) {
120
+         if(val < 0){
121
+           return ""
122
+         }
123
+         if(val == ""){
124
+          return ""
125
+         }else {
126
+          return uParseTime(val, '{y}-{m}-{d}')
127
+         }
128
+      },
129
+      printThisPage(){
130
+        
131
+      }
132
+    },
133
+    created() {
134
+          
135
+   
136
+
137
+    }
138
+
139
+  }
140
+</script>
141
+
142
+<style>
143
+  .dialysis-print-order {
144
+    width: 960px;
145
+    margin: 0 auto
146
+  }
147
+
148
+  .dialysis-print-order .order-yy-name {
149
+    margin: auto;
150
+    text-align: center;
151
+    font-size: 20px;
152
+    letter-spacing: 5px;
153
+  }
154
+
155
+  .dialysis-print-order .order-title {
156
+    margin: auto;
157
+    font-weight: 600;
158
+    text-align: center;
159
+    font-size: 22px;
160
+    padding: 10px 20px 20px 20px;
161
+  }
162
+
163
+  .dialysis-print-order .table-box {
164
+
165
+    width: 100%;
166
+    line-height: 23px;
167
+    font-size: 14px;
168
+  }
169
+
170
+  .dialysis-print-order .print-table {
171
+    width: 100%;
172
+    text-align: center;
173
+    border-collapse: collapse;
174
+    line-height: 40px;
175
+    font-size: 14px;
176
+  }
177
+
178
+  .dialysis-print-order .print-table-no {
179
+    width: 100%;
180
+    text-align: center;
181
+    border-collapse: collapse;
182
+    font-size: 14px;
183
+  }
184
+
185
+  .dialysis-print-order .under-line {
186
+    border-bottom: 1px solid #999;
187
+    width: 95%;
188
+    text-align: center;
189
+    margin-left: 2px;
190
+
191
+
192
+  }
193
+
194
+  .dialysis-print-order .title-box {
195
+    text-align: center;
196
+    font-size: 16px;
197
+  }
198
+
199
+  .dialysis-print-order .radio-lebel-box {
200
+    font-weight: 400;
201
+    cursor: pointer;
202
+  }
203
+
204
+  .dialysis-print-order .radio-no {
205
+    opacity: 0;
206
+    outline: none;
207
+    position: absolute;
208
+    margin: 0;
209
+    width: 0;
210
+    height: 0;
211
+    z-index: -1;
212
+  }
213
+
214
+  .dialysis-print-order .radio-inner {
215
+    white-space: nowrap;
216
+    cursor: pointer;
217
+    outline: none;
218
+    display: inline-block;
219
+    line-height: 1;
220
+    position: relative;
221
+    vertical-align: middle;
222
+  }
223
+
224
+  .dialysis-print-order .radio-fang {
225
+    display: inline-block;
226
+    position: relative;
227
+    border: 1px solid #000;
228
+    box-sizing: border-box;
229
+    width: 14px;
230
+    height: 14px;
231
+    background-color: #fff;
232
+    z-index: 1;
233
+    transition: border-color .25s cubic-bezier(.71, -.46, .29, 1.46), background-color .25s cubic-bezier(.71, -.46, .29, 1.46);
234
+  }
235
+
236
+  .dialysis-print-order .is-checked-radio::after {
237
+    content: "√";
238
+    font-size: 15px;
239
+  }
240
+
241
+
242
+  .dialysis-print-order .print-table-no tr td {
243
+    padding: 8px 5px;
244
+    line-height: 25px;
245
+  }
246
+
247
+  .dialysis-print-order .print-table tr td {
248
+    padding: 1px 1px;
249
+    /*line-height: 25px;*/
250
+  }
251
+
252
+  .es-img {
253
+    height: 25px;
254
+  }
255
+
256
+  .advice-name {
257
+    text-align: left;
258
+  }
259
+
260
+  .advice-children {
261
+    display: flex;
262
+  }
263
+
264
+  .title-box-pro {
265
+    border: 0 #fff;
266
+    line-height: 25px;
267
+    height: 25px;
268
+    text-align: left;
269
+    padding-left: 10px !important;
270
+  }
271
+
272
+  .title-box-pro-tr {
273
+    border: 0 #fff;
274
+  }
275
+
276
+  .text-align-left {
277
+    text-align: left !important;
278
+    padding-left: 10px !important;
279
+    font-size: 14px !important;
280
+    line-height: 25px;
281
+  }
282
+
283
+  .print-table-tr-new td {
284
+    line-height: 20px !important;
285
+  }
286
+
287
+  .border-top-solid {
288
+    border: solid 1px #000;
289
+  }
290
+
291
+  .print-template-two tr {
292
+    line-height: 30px;
293
+  }
294
+</style>

+ 25 - 21
src/xt_pages/management/home.vue Zobrazit soubor

@@ -964,12 +964,12 @@
964 964
                                      <el-form-item label="班次:" required prop="classtype" class="st">
965 965
                                        <el-select v-model="userform.classtype" placeholder="请选择" style="width:150px">
966 966
                                            <el-option
967
-                                            v-for="item in classType"
968
-                                           :key="item.id"
969
-                                           :label="item.name"
970
-                                           :value="item.id"
971
-                                           style="width:90px">
972
-                                       </el-option>
967
+                                              v-for="item in classType"
968
+                                              :key="item.id"
969
+                                              :label="item.name"
970
+                                              :value="item.id"
971
+                                              style="width:90px">
972
+                                           </el-option>
973 973
                                         </el-select>
974 974
                                      </el-form-item>
975 975
                                   </el-col>
@@ -1290,7 +1290,7 @@
1290 1290
                                       <el-form-item label="规格:">
1291 1291
                                           <el-input style="width:100px" v-model="userform.norms"></el-input><span style="color:#606266;">桶</span>
1292 1292
                                       </el-form-item>
1293
-                                       <span class="warn" v-show="warnShow">您已个月未更换,请注意检测</span>
1293
+                                       <span class="warn" v-show="warnShow">您已个月未更换,请注意检测</span>
1294 1294
                                    </el-col>
1295 1295
                                 </el-row>
1296 1296
                                 <el-row>
@@ -1307,7 +1307,7 @@
1307 1307
                                    <el-col :span="8">
1308 1308
                                      <el-form-item label="细菌过滤器:">
1309 1309
                                        <el-checkbox v-model="userform.germ_checked">更换</el-checkbox>
1310
-                                       <span class="warn" v-show="warnShowTwo">您已个月未更换,请注意检测</span>
1310
+                                       <span class="warn" v-show="warnShowTwo">您已个月未更换,请注意检测</span>
1311 1311
                                      </el-form-item>
1312 1312
 
1313 1313
                                      </el-col>
@@ -1334,7 +1334,7 @@
1334 1334
                                    <el-col :span="8">
1335 1335
                                       <el-form-item label="空气滤网清洁:">
1336 1336
                                         <el-checkbox v-model="userform.clean">清洁</el-checkbox>
1337
-                                      <span class="warn" v-show="warnShowThree">您已个月未清洁,请检查</span>
1337
+                                      <span class="warn" v-show="warnShowThree">您已个月未清洁,请检查</span>
1338 1338
                                       </el-form-item>
1339 1339
                                      </el-col>
1340 1340
                                    <el-col :span="8">
@@ -2889,8 +2889,8 @@ export default {
2889 2889
           fluid_path: [{ required: true, message: '请填写消毒方式' }],
2890 2890
           disinfectant: [{ required: true, message: '请填写消毒液' }],
2891 2891
           disinfection_status: [{ required: true, message: '消毒状态' }],
2892
-          sign_name: [{ required: true, message: '请填写签名', trigger: ['change'] }],
2893
-          classtype: [{ required: true, message: '请填写班次' }],
2892
+          sign_name: [{ required: true, message: '请填写签名', trigger: ['blur','change'] }],
2893
+          classtype: [{ required: true, message: '请填写班次', trigger: ['blur','change']  }],
2894 2894
           reporting_date:[{required:true,message:"请填写出报告日期"}]
2895 2895
         },
2896 2896
         planRules: {
@@ -2953,7 +2953,7 @@ export default {
2953 2953
           { id: 7, name: '周日' }
2954 2954
         ],
2955 2955
         classType: [
2956
-          { id: 0, name: '请选择' },
2956
+          // { id: 0, name: '请选择' },
2957 2957
           { id: 1, name: '上午' },
2958 2958
           { id: 2, name: '下午' },
2959 2959
           { id: 3, name: '晚上' }
@@ -4402,13 +4402,17 @@ export default {
4402 4402
       },
4403 4403
 
4404 4404
       SaveInformation(formName) {
4405
-        if (this.userform.classtype === '') {
4406
-          this.userform.classtype = 0
4405
+        // if (this.userform.classtype === '') {
4406
+        //   this.userform.classtype = 0
4407
+        // }
4408
+        console.log("form233232322323",this.userform.classtype)
4409
+        if(this.userform.classtype!=""){
4410
+          var classtypes = this.userform.classtype
4411
+          var classtype = parseInt(classtypes)
4412
+          this.userform.classtype = classtype
4407 4413
         }
4408
-        var classtypes = this.userform.classtype
4409
-        var classtype = parseInt(classtypes)
4410
-        this.userform.classtype = classtype
4411
-
4414
+     
4415
+        
4412 4416
         var zone = this.userform.zone
4413 4417
         var zones = parseInt(zone)
4414 4418
         this.userform.zone = zones
@@ -4528,7 +4532,7 @@ export default {
4528 4532
                 this.userform.starttime = ''
4529 4533
                 this.userform.endtime = ''
4530 4534
                 this.userform.date = ''
4531
-                this.userform.classtype = ''
4535
+                // this.userform.classtype = ''
4532 4536
                 this.userform.zone = ''
4533 4537
                 this.userform.patient_name = ''
4534 4538
                 this.userform.sign_name = ''
@@ -4569,8 +4573,8 @@ export default {
4569 4573
             } else {
4570 4574
               this.userform.date = uParseTime(information.date, '{y}-{m}-{d}')
4571 4575
             }
4572
-
4573
-            this.userform.classtype = information.class
4576
+            
4577
+            this.userform.classtype = information.class?information.class:""
4574 4578
             this.userform.zone = information.zone
4575 4579
             this.userform.bed_number = information.bed_number
4576 4580
             this.userform.patient_name = information.name