浏览代码

新分支

28169 2 年前
父节点
当前提交
439cb1455d

+ 12 - 10
src/router/modules/device.js 查看文件

@@ -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
 }

+ 62 - 205
src/xt_pages/management/components/RepairForm.vue 查看文件

@@ -1,6 +1,5 @@
1 1
 <template>
2 2
   <div>
3
-    <div>
4 3
     <el-row class="row">
5 4
       <!-- <el-col :span="5">
6 5
         <span class="machineClass">机号:</span>
@@ -50,7 +49,7 @@
50 49
       </el-col>
51 50
       <span>&nbsp;&nbsp;</span>
52 51
       <el-col :span="6">
53
-          <el-button type="primary" size="small" @click="printCard">打印</el-button>
52
+          <el-button type="primary" @click="printCard">打印</el-button>
54 53
       </el-col>
55 54
     </el-row>
56 55
     <el-row>
@@ -580,11 +579,12 @@
580 579
       </span>
581 580
     </el-dialog>
582 581
 
582
+
583 583
     <div hidden="hidden">
584
-      <div id="print-card-info" v-show="hiddenShow">
584
+      <div id="print-card-info-one" v-show="hiddenShow">
585 585
         <div>
586
-          <div class="print_main_content">
587
-            <div class="order_title">水机使用记录清单</div>
586
+          <div class="print_main_content-one">
587
+            <div class="order_title" style="text-align: center;">医疗器械保养维护、维修登记表</div>
588 588
           </div>
589 589
           <div>
590 590
             <div class="printClass">打印日期:{{ nowTime }}</div>
@@ -600,251 +600,131 @@
600 600
                   :rowspan="2"
601 601
                   style="text-align:center;width:60px;font-size:15px;"
602 602
                 >
603
-                  日期
604
-                </td>
605
-              
606
-               
607
-                <td
608
-                  :colspan="4"
609
-                  style="text-align:center;width:60px;font-size:15px"
610
-                >
611
-                  原水参数
603
+                  设备名称
612 604
                 </td>
613 605
 
614 606
                 <td
615
-                  :colspan="2"
616
-                  style="text-align:center;width:60px;font-size:15px"
607
+                  :rowspan="2"
608
+                  style="text-align:center;width:60px;font-size:15px;"
617 609
                 >
618
-                  一级反渗
610
+                  型号
619 611
                 </td>
620 612
 
621 613
                 <td
622 614
                   :colspan="2"
623
-                  style="text-align:center;width:60px;font-size:15px"
624
-                >
625
-                  二级反渗
626
-                </td>
627
-
628
-                <td
629
-                  :rowspan="2"
630
-                  style="text-align:center;width:60px;font-size:15px"
631
-                >
632
-                 碳罐
633
-                </td>
634
-                <td
635
-                 :rowspan="2"
636
-                  style="text-align:center;width:60px;font-size:15px"
615
+                  style="text-align:center;width:60px;font-size:15px;"
637 616
                 >
638
-                 砂罐
617
+                 保养维护内容
639 618
                 </td>
640
-
619
+              
641 620
                 <td
642
-                 :rowspan="2"
643
-                  style="text-align:center;width:60px;font-size:15px"
621
+                  :colspan="3"
622
+                  style="text-align:center;width:60px;font-size:15px;"
644 623
                 >
645
-                 树脂罐
624
+                  维修记录
646 625
                 </td>
647 626
 
648 627
                 <td
649
-                 :rowspan="2"
650
-                  style="text-align:center;width:60px;font-size:15px"
628
+                  :rowspan="2"
629
+                  style="text-align:center;width:60px;font-size:15px;"
651 630
                 >
652
-                  静谧过滤器(MPa)
631
+                 维修者
653 632
                 </td>
654 633
               
655 634
                 <td
656
-                 :colspan="4"
657
-                  style="text-align:center;width:60px;font-size:15px"
658
-                >
659
-                 水质监测
660
-                </td>
661
-
662
-                <td
663
-                 :colspan="2"
664
-                  style="text-align:center;width:60px;font-size:15px"
635
+                  :rowspan="2"
636
+                  style="text-align:center;width:120px;font-size:15px;"
665 637
                 >
666
-                 消毒
638
+                 日期
667 639
                 </td>
668 640
 
669 641
                 <td
670 642
                  :rowspan="2"
671
-                  style="text-align:center;width:60px;font-size:15px"
643
+                  style="text-align:center;width:60px;font-size:15px;"
672 644
                 >
673
-                过滤器更换
645
+                 备注
674 646
                 </td>
675 647
 
676
-                <td
677
-                 :rowspan="2"
678
-                  style="text-align:center;width:60px;font-size:15px"
679
-                >
680
-                记录人
681
-                </td>
648
+
649
+               
682 650
                
683 651
               </tr>
684 652
               <tr>
685
-                <td style="text-align:center;width:70px;font-size:15px">
686
-                  原水电导度
687
-                </td>
688
-                <td style="text-align:center;width:50px;font-size:15px">
689
-                  原水压力
690
-                </td>
691
-                <td style="text-align:center;width:70px;font-size:15px">
692
-                  温度
693
-                </td>
694
-                <td style="text-align:center;width:95px;font-size:15px">
695
-                  加压泵
696
-                </td>
697
-
698
-                <td style="text-align:center;width:70px;font-size:15px">
699
-                  产水电导度
700
-                </td>
701
-                <td style="text-align:center;width:95px;font-size:15px">
702
-                  产水量
653
+              
654
+                <td style="text-align:center;font-size:15px;height:30px">
655
+                  功能及附件检查
703 656
                 </td>
704 657
 
705
-                <td style="text-align:center;width:70px;font-size:15px">
706
-                  产水电导度
707
-                </td>
708
-                <td style="text-align:center;width:95px;font-size:15px">
709
-                  产水量
658
+                <td style="text-align:center;font-size:15px;height:30px">
659
+                  其他
710 660
                 </td>
711 661
 
712
-             
713
-
714
-                <td style="text-align:center;width:70px;font-size:15px">
715
-                   硬度(mg/l)
716
-                </td>
717
-                <td style="text-align:center;width:95px;font-size:15px">
718
-                  总氯(mg/l)
662
+                 
663
+                <td style="text-align:center;font-size:15px;height:30px">
664
+                  故障现象
719 665
                 </td>
720 666
 
721
-                <td style="text-align:center;width:70px;font-size:15px">
722
-                  PH值
723
-                </td>
724
-                <td style="text-align:center;width:95px;font-size:15px">
725
-                  过氧乙酸(mg/l)
667
+                <td style="text-align:center;font-size:15px;height:30px">
668
+                  维修内容
726 669
                 </td>
727 670
 
728
-                <td style="text-align:center;width:70px;font-size:15px">
729
-                  反渗膜消毒
730
-                </td>
731
-                <td style="text-align:center;width:95px;font-size:15px">
732
-                  输水管道消毒
671
+                <td style="text-align:center;font-size:15px;height:30px">
672
+                  维修结果
733 673
                 </td>
734
-                
674
+           
735 675
                
736
-              
676
+            
737 677
               </tr>
738 678
               <tr v-for="item in this.tableData" :key="item.id">
739 679
                 <td style="text-align:center;font-size:15px;height:30px">
740
-                 
741
-                </td>
742
-               
743
-                <td style="text-align:center;font-size:15px;height:30px">
744
-                  
745
-                </td>
746
-                <td style="text-align:center;font-size:15px;height:30px">
747
-                 
748
-                </td>
749
-                <td style="text-align:center;font-size:15px;height:30px">
750
-                 
751
-                </td>
752
-                <td style="text-align:center;font-size:15px;height:30px">
753
-                  
680
+                  {{ getDeviceName(item.equitment_id) }}
754 681
                 </td>
755 682
 
756 683
                 <td style="text-align:center;font-size:15px;height:30px">
757
-                
684
+                  <span v-if="getRepairName(item.equitment_id) == 1">透析机</span> 
685
+                  <span v-if="getRepairName(item.equitment_id) == 2">水处理机</span> 
686
+                  <span v-if="getRepairName(item.equitment_id) == 3">其他</span> 
758 687
                 </td>
688
+                
759 689
                 <td style="text-align:center;font-size:15px;height:30px">
760
-                 
690
+                  {{item.function_accessories_inspection }}
761 691
                 </td>
762 692
 
763 693
                 <td style="text-align:center;font-size:15px;height:30px">
764
-                 
694
+                  {{ item.other_information }}
765 695
                 </td>
766
-                <td style="text-align:center;font-size:15px;height:30px">
767 696
                  
697
+                <td style="text-align:center;font-size:15px;height:30px">
698
+                  {{ item.fault_description }}
768 699
                 </td>
769
-
770
-                <td
771
-                  style="text-align:center;width:60px;font-size:15px"
772
-                >
773
-                
774
-                </td>
775
-                <td
776
-                  style="text-align:center;width:60px;font-size:15px"
777
-                >
778 700
                 
701
+                <td style="text-align:center;font-size:15px;height:30px">
702
+                   {{item.cause_analysis }}
779 703
                 </td>
780 704
 
781
-                <td
782
-                  style="text-align:center;width:60px;font-size:15px"
783
-                >
784
-                 
785
-                </td>
786
-
787
-                <td
788
-                  style="text-align:center;width:60px;font-size:15px"
789
-                >
790
-              
705
+                <td style="text-align:center;font-size:15px;height:30px">
706
+                    {{item.treatment_process}}
791 707
                 </td>
792 708
 
793
-                <td
794
-                  style="text-align:center;width:60px;font-size:15px"
795
-                >
796
-               
797
-                </td>
798
-                <td
799
-                  style="text-align:center;width:60px;font-size:15px"
800
-                >
801
-               
802
-                </td>
803 709
 
804
-                <td
805
-                  style="text-align:center;width:60px;font-size:15px"
806
-                >
807
-                 
710
+                <td style="text-align:center;font-size:15px;height:30px">
711
+                  {{ getName(item.admin_user_id) }}
808 712
                 </td>
809
-
810
-                <td
811
-                  style="text-align:center;width:60px;font-size:15px"
812
-                >
813 713
                 
714
+                <td style="text-align:center;font-size:15px;height:30px">
715
+                  {{ getTime(item.guarantee_date) }}
814 716
                 </td>
815 717
 
816
-                <td
817
-                  style="text-align:center;width:60px;font-size:15px"
818
-                >
819
-               
820
-                </td>
821
-
822
-                <td
823
-                  style="text-align:center;width:60px;font-size:15px"
824
-                >
825
-              
826
-                </td>
827
-
828
-                <td
829
-                  style="text-align:center;width:60px;font-size:15px"
830
-                >
831
-                
832
-                </td>
833
-                
834
-                <td style="text-align:center;width:70px;font-size:15px">
835
-                
718
+                <td style="text-align:center;font-size:15px;height:30px">
719
+                  {{item.reason }}
836 720
                 </td>
837 721
              
838
-               
839
-               
840
-             
841 722
               </tr>
842 723
             </table>
843 724
           </div>
844 725
         </div>
845 726
       </div>
846
-    </div>
847
-   </div>
727
+      </div>
848 728
   </div>
849 729
 </template>
850 730
 
@@ -860,8 +740,7 @@ import {
860 740
 } from "@/api/manage";
861 741
 import { uParseTime } from "@/utils/tools";
862 742
 import { getFileExtension } from "@/utils/tools";
863
-import print from "print-js";
864
-const moment = require("moment");
743
+const moment = require('moment')
865 744
 export default {
866 745
   name: "RepairForm",
867 746
   data() {
@@ -1291,11 +1170,11 @@ export default {
1291 1170
         this.print_time = uParseTime(ptime, "{y}年{m}月{d}日");
1292 1171
 
1293 1172
         const style =
1294
-          "@media print {.print_main_content { background-color: white; width:960px; margin:0 auto; padding: 0 0 20px 0;font-size:15px } .print_main_content .order_title { text-align: center; font-size: 15px; line-height: 50px;} .print_main_content table { width: 100%; border: 1px solid; border-collapse: collapse; padding: 2px;font-size:15px } .print_main_content table tbody tr td { border: 1px solid; text-align: center; padding: 10px 8px;font-size:15px } .td_proj_title { font-size: 15px; line-height: 25px;} .td_proj_content { font-size: 15px; line-height: 25px; } .td_align_left { text-align: left; } .print_footnote_panel { font-size: 15px; line-height: 40px; } .print_footnote_panel .proj { display: inline-block; width: 49%; } .print_footnote_panel .proj}";
1173
+          "@media print { .print_main_content { background-color: white; width:960px; margin:0 auto; padding: 0 0 20px 0;font-size:15px } .print_main_content .order_title { text-align: center; font-size: 15px; line-height: 50px;} .print_main_content table { width: 100%; border: 1px solid; border-collapse: collapse; padding: 2px;font-size:15px } .print_main_content table tbody tr td { border: 1px solid; text-align: center; padding: 10px 8px;font-size:15px } .td_proj_title { font-size: 15px; line-height: 25px;} .td_proj_content { font-size: 15px; line-height: 25px; } .td_align_left { text-align: left; } .print_footnote_panel { font-size: 15px; line-height: 40px; } .print_footnote_panel .proj { display: inline-block; width: 49%; } .print_footnote_panel .proj}";
1295 1174
 
1296 1175
         setTimeout(() => {
1297 1176
           printJS({
1298
-            printable: "print-card-info",
1177
+            printable: "print-card-info-one",
1299 1178
             type: "html",
1300 1179
             style: style,
1301 1180
             scanStyles: false
@@ -1310,30 +1189,8 @@ export default {
1310 1189
 };
1311 1190
 </script>
1312 1191
 
1313
-
1314 1192
 <style scoped>
1315
-
1316 1193
 .row {
1317 1194
   margin-bottom: 10px;
1318 1195
 }
1319
-.a {
1320
-  /* .el-col-2 {
1321
-    width: 8.33333%;
1322
-    margin-bottom: 20px;
1323
-  } */
1324
-}
1325
-.print_main_content {
1326
-  background-color: white;
1327
-  width: 960px;
1328
-  margin: 0 auto;
1329
-  padding: 0 0 20px 0;
1330
-}
1331
-.tableClass {
1332
-  font-size: 10px;
1333
-  font-weight: none;
1334
-}
1335
-.printClass {
1336
-  width: 100%;
1337
-  text-align: right;
1338
-}
1339 1196
 </style>

+ 17 - 29
src/xt_pages/management/components/UserForm.vue 查看文件

@@ -685,7 +685,7 @@
685 685
               >桶
686 686
             </el-form-item>
687 687
             <span style="color:red" v-show="showone"
688
-              >您已个月未更换,请注意检测</span
688
+              >您已个月未更换,请注意检测</span
689 689
             >
690 690
           </el-col>
691 691
         </el-row>
@@ -712,7 +712,7 @@
712 712
             >
713 713
               <el-checkbox v-model="userform.germ_checked">更换</el-checkbox>
714 714
               <span style="color:red" v-show="showone"
715
-                >您已个月未更换,请注意检测</span
715
+                >您已个月未更换,请注意检测</span
716 716
               >
717 717
             </el-form-item>
718 718
           </el-col>
@@ -751,7 +751,7 @@
751 751
             >
752 752
               <el-checkbox v-model="userform.clean">清洁:</el-checkbox>
753 753
               <span style="color:red" v-show="showone"
754
-                >您已个月未清洁,请检查</span
754
+                >您已个月未清洁,请检查</span
755 755
               >
756 756
             </el-form-item>
757 757
           </el-col>
@@ -1209,11 +1209,14 @@ export default {
1209 1209
           this.zones = zone;
1210 1210
 
1211 1211
           var numbers = response.data.data.numbers;
1212
+
1212 1213
           var number = [{ id: 0, number: "全部" }];
1213 1214
           for (let index = 0; index < numbers.length; index++) {
1214 1215
             const item = numbers[index];
1215 1216
             number.push({ id: item.id, number: item.number });
1216 1217
           }
1218
+          this.bedNumberTwo = []
1219
+          this.bedNumberTwo  = number
1217 1220
           this.bedNumber = number;
1218 1221
         }
1219 1222
       });
@@ -2436,7 +2439,10 @@ export default {
2436 2439
             const item = number[i];
2437 2440
             bed.push({ id: item.id, number: item.number });
2438 2441
           }
2442
+          this.bedNumberTwo = []
2439 2443
           this.bedNumberTwo = bed;
2444
+
2445
+          console.log("this233232322323233232",this.bedNumberTwo)
2440 2446
         }
2441 2447
       });
2442 2448
     },
@@ -2496,8 +2502,14 @@ export default {
2496 2502
 
2497 2503
           if (bed.length !== 0) {
2498 2504
             this.form.bed = "";
2505
+            this.bedNumberTwo = []
2499 2506
             this.bedNumberTwo = bed;
2507
+          }else{
2508
+            this.form.bed = ""
2509
+            this.bedNumberTwo = []
2510
+
2500 2511
           }
2512
+          
2501 2513
         }
2502 2514
       });
2503 2515
     },
@@ -2569,32 +2581,6 @@ export default {
2569 2581
         return jsonData.map(v => filterVal.map(j => v[j]));
2570 2582
       },
2571 2583
     },
2572
-    exportList: function() {
2573
-      console.log('123245354');
2574
-      // for(let i=0;i<this.tableList.length;i++){
2575
-      //     this.tableList[i].index = i+1
2576
-      //   }
2577
-      //   import('@/vendor/Export2Excel').then(excel => {
2578
-      //     const multiHeader = [['序号', '日期','  药品类型','药品名称','规格&单位','生产产商', '期初结余' , '', '', '本期增加', '', '', '本期减少' , '', '', '期末结余' , '', '']]
2579
-      //     const header = ['', '','','','','', '数量', '进货金额', '销售金额', '数量', '进货金额', '销售金额', '数量', '进货金额', '销售金额', '数量', '进货金额', '销售金额']
2580
-      //     const merges = ['A1:A2', 'B1:B2','C1:C2','D1:D2','E1:E2','F1:F2','G1:I1', 'J1:L1', 'M1:O1', 'P1:R1']
2581
-      //     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']
2582
-
2583
-      //     const data = this.formatJson(filterVal, this.tableList)
2584
-
2585
-      //     const filename = '药品进销存查询'
2586
-
2587
-
2588
-      //       excel.export_json_to_excel({
2589
-      //         multiHeader,
2590
-      //         header,
2591
-      //         merges,
2592
-      //         data,
2593
-      //         filename
2594
-      //       })
2595
-      //   })
2596
-    },
2597
-  },
2598 2584
   created() {
2599 2585
     this.getAllSubregion();
2600 2586
     // this.getInformationData();
@@ -2602,10 +2588,12 @@ export default {
2602 2588
   },
2603 2589
   watch: {
2604 2590
     userdata(newvalue, oldvalue) {
2591
+      console.log("newVlaue233333333333333333333",newvalue)
2605 2592
       this.getUserForm(newvalue);
2606 2593
       this.getBedForm(newvalue);
2607 2594
       this.value = newvalue;
2608 2595
     }
2596
+
2609 2597
   }
2610 2598
 };
2611 2599
 </script>

+ 190 - 33
src/xt_pages/management/components/WaterForm.vue 查看文件

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

+ 20 - 17
src/xt_pages/management/components/WaterFormList.vue 查看文件

@@ -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 查看文件

@@ -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 查看文件

@@ -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