瀏覽代碼

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

28169 2 年之前
父節點
當前提交
afd877f495

+ 34 - 133
src/xt_pages/management/components/RepairForm.vue 查看文件

@@ -1,7 +1,7 @@
1 1
 <template>
2 2
   <div>
3 3
     <el-row class="row">
4
-      <!-- <el-col :span="5">
4
+      <el-col :span="5">
5 5
         <span class="machineClass">机号:</span>
6 6
         <el-select style="width:100px" v-model="forms.bed">
7 7
           <el-option
@@ -11,7 +11,7 @@
11 11
             :value="item.id"
12 12
           ></el-option>
13 13
         </el-select>
14
-      </el-col> -->
14
+      </el-col>
15 15
       <el-col :span="11">
16 16
         <span class="machineClass">日期查询:</span>
17 17
         <el-date-picker
@@ -52,7 +52,6 @@
52 52
           <el-button type="primary" @click="printCard">打印</el-button>
53 53
       </el-col>
54 54
     </el-row>
55
-    <el-row>
56 55
 
57 56
       <el-table
58 57
         ref="multipleTable"
@@ -81,9 +80,9 @@
81 80
 
82 81
         <el-table-column prop="date" label= "型号" width="80" align="center">
83 82
           <template slot-scope="scope">
84
-            <span v-if="getRepairName(scope.row.equitment_id) == 1">透析机</span> 
85
-            <span v-if="getRepairName(scope.row.equitment_id) == 2">水处理机</span> 
86
-            <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>
87 86
           </template>
88 87
         </el-table-column>
89 88
 
@@ -136,9 +135,9 @@
136 135
               {{ scope.row.reason }}
137 136
               </template>
138 137
            </el-table-column>
139
- 
140
-      
141
-        
138
+
139
+
140
+
142 141
         <el-table-column label="操作" align="center" min-width="150px">
143 142
           <template slot-scope="scope">
144 143
             <el-tooltip
@@ -333,7 +332,7 @@
333 332
             </el-tooltip>
334 333
           </template>
335 334
         </el-table-column>
336
-      </el-table> -->
335
+      </el-table>
337 336
       <el-pagination
338 337
         @size-change="handleSizeChange"
339 338
         @current-change="handleCurrentChange"
@@ -415,32 +414,6 @@
415 414
             </el-form-item>
416 415
           </el-col>
417 416
         </el-row>
418
-        <el-row>
419
-          <el-col :span="24">
420
-              <el-form-item class="formItem" label="功能及附件检查:">
421
-                  <el-input
422
-                    type="textarea"
423
-                    :rows="2"
424
-                      placeholder="请输入内容"
425
-                      v-model="guaForm.function_accessories_inspection"
426
-                    style="width:85%">
427
-                  </el-input>
428
-              </el-form-item>
429
-            </el-col>
430
-        </el-row>
431
-        <el-row>
432
-        <el-col :span="24">
433
-            <el-form-item class="formItem" label="其他:">
434
-                <el-input
435
-                  type="textarea"
436
-                  :rows="2"
437
-                    placeholder="请输入内容"
438
-                    v-model="guaForm.other_information"
439
-                  style="width:85%">
440
-                </el-input>
441
-            </el-form-item>
442
-          </el-col>
443
-        </el-row>
444 417
         <el-row>
445 418
           <el-col :span="24">
446 419
             <el-form-item label="故障发生阶段">
@@ -471,7 +444,7 @@
471 444
         </el-row>
472 445
         <el-row>
473 446
           <el-col :span="8">
474
-            <el-form-item label="故障现象:" required prop="fault_description">
447
+            <el-form-item label="故障描述:" required prop="fault_description">
475 448
               <el-input
476 449
                 type="textarea"
477 450
                 :rows="2"
@@ -482,7 +455,7 @@
482 455
             </el-form-item>
483 456
           </el-col>
484 457
           <el-col :span="8">
485
-            <el-form-item label="维修内容:">
458
+            <el-form-item label="原因分析:">
486 459
               <el-input
487 460
                 type="textarea"
488 461
                 :rows="2"
@@ -493,7 +466,7 @@
493 466
             </el-form-item>
494 467
           </el-col>
495 468
           <el-col :span="8">
496
-            <el-form-item label="维修结果:">
469
+            <el-form-item label="处理过程:">
497 470
               <el-input
498 471
                 type="textarea"
499 472
                 :rows="2"
@@ -543,7 +516,7 @@
543 516
         </el-row>
544 517
         <el-row>
545 518
           <el-col :span="20">
546
-            <el-form-item label="备注:">
519
+            <el-form-item label="原因:">
547 520
               <el-input
548 521
                 type="textarea"
549 522
                 :rows="2"
@@ -554,21 +527,6 @@
554 527
             </el-form-item>
555 528
           </el-col>
556 529
         </el-row>
557
-        <el-row>
558
-          <el-col :span="20">
559
-            <el-form-item label="维修者:">
560
-              <el-select v-model="guaForm.admin_user_id" placeholder="请选择" >
561
-                      <el-option
562
-                      v-for="item in docList"
563
-                      :key="item.admin_user_id"
564
-                      :label="item.user_name"
565
-                      :value="item.admin_user_id"
566
-                      style="width:185px">
567
-                      </el-option>
568
-              </el-select>
569
-            </el-form-item>
570
-          </el-col>
571
-        </el-row>
572 530
       </el-form>
573 531
       <span slot="footer" class="dialog-footer">
574 532
 <!--        <button @click="lili">调试</button>-->
@@ -616,7 +574,7 @@
616 574
                 >
617 575
                  保养维护内容
618 576
                 </td>
619
-              
577
+
620 578
                 <td
621 579
                   :colspan="3"
622 580
                   style="text-align:center;width:60px;font-size:15px;"
@@ -630,7 +588,7 @@
630 588
                 >
631 589
                  维修者
632 590
                 </td>
633
-              
591
+
634 592
                 <td
635 593
                   :rowspan="2"
636 594
                   style="text-align:center;width:120px;font-size:15px;"
@@ -646,11 +604,11 @@
646 604
                 </td>
647 605
 
648 606
 
649
-               
650
-               
607
+
608
+
651 609
               </tr>
652 610
               <tr>
653
-              
611
+
654 612
                 <td style="text-align:center;font-size:15px;height:30px">
655 613
                   功能及附件检查
656 614
                 </td>
@@ -659,7 +617,7 @@
659 617
                   其他
660 618
                 </td>
661 619
 
662
-                 
620
+
663 621
                 <td style="text-align:center;font-size:15px;height:30px">
664 622
                   故障现象
665 623
                 </td>
@@ -671,9 +629,9 @@
671 629
                 <td style="text-align:center;font-size:15px;height:30px">
672 630
                   维修结果
673 631
                 </td>
674
-           
675
-               
676
-            
632
+
633
+
634
+
677 635
               </tr>
678 636
               <tr v-for="item in this.tableData" :key="item.id">
679 637
                 <td style="text-align:center;font-size:15px;height:30px">
@@ -681,11 +639,11 @@
681 639
                 </td>
682 640
 
683 641
                 <td style="text-align:center;font-size:15px;height:30px">
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> 
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>
687 645
                 </td>
688
-                
646
+
689 647
                 <td style="text-align:center;font-size:15px;height:30px">
690 648
                   {{item.function_accessories_inspection }}
691 649
                 </td>
@@ -693,11 +651,11 @@
693 651
                 <td style="text-align:center;font-size:15px;height:30px">
694 652
                   {{ item.other_information }}
695 653
                 </td>
696
-                 
654
+
697 655
                 <td style="text-align:center;font-size:15px;height:30px">
698 656
                   {{ item.fault_description }}
699 657
                 </td>
700
-                
658
+
701 659
                 <td style="text-align:center;font-size:15px;height:30px">
702 660
                    {{item.cause_analysis }}
703 661
                 </td>
@@ -710,7 +668,7 @@
710 668
                 <td style="text-align:center;font-size:15px;height:30px">
711 669
                   {{ getName(item.admin_user_id) }}
712 670
                 </td>
713
-                
671
+
714 672
                 <td style="text-align:center;font-size:15px;height:30px">
715 673
                   {{ getTime(item.guarantee_date) }}
716 674
                 </td>
@@ -718,7 +676,7 @@
718 676
                 <td style="text-align:center;font-size:15px;height:30px">
719 677
                   {{item.reason }}
720 678
                 </td>
721
-             
679
+
722 680
               </tr>
723 681
             </table>
724 682
           </div>
@@ -745,7 +703,6 @@ export default {
745 703
   name: "RepairForm",
746 704
   data() {
747 705
     return {
748
-      nowTime: moment(new Date()).format("YYYY-MM-DD HH:MM:SS"),
749 706
       dialogVisible: false,
750 707
       selectCulture: [],
751 708
       forms: {
@@ -769,10 +726,7 @@ export default {
769 726
         exclude: "",
770 727
         reason: "",
771 728
         code_information: "",
772
-        image_name: "",
773
-        admin_user_id:this.$store.getters.xt_user.user.id,
774
-        function_accessories_inspection:"",
775
-        other_information:"",
729
+        image_name: ""
776 730
       },
777 731
       isIndeterminate: false,
778 732
       checkAllStatus: false,
@@ -800,9 +754,6 @@ export default {
800 754
       limit: 10,
801 755
       page: 1,
802 756
       total: 0,
803
-      macherList:[],
804
-      docList:[],
805
-      hiddenShow:false,
806 757
     };
807 758
   },
808 759
   methods: {
@@ -835,10 +786,6 @@ export default {
835 786
         if (response.data.state === 1) {
836 787
           var repair = response.data.data.repair;
837 788
           console.log("repair是", repair);
838
-          var macherList = response.data.data.macherList
839
-         
840
-          this.macherList = macherList
841
-          this.docList = response.data.data.docList
842 789
           // eslint-disable-next-line no-unused-vars
843 790
           var total = response.data.data.total;
844 791
           this.total = total;
@@ -877,7 +824,6 @@ export default {
877 824
               repair[index].exclude = "未解决";
878 825
             }
879 826
           }
880
-          console.log("repair------",repair)
881 827
           this.tableData = repair;
882 828
         }
883 829
       });
@@ -900,7 +846,6 @@ export default {
900 846
         if (response.data.state === 1) {
901 847
           var repair = response.data.data.repair;
902 848
           console.log("repair", repair);
903
-          this.docList = response.data.data.docList
904 849
           this.guaForm.guarantee_date = uParseTime(
905 850
             repair.guarantee_date,
906 851
             "{y}-{m}-{d}"
@@ -928,9 +873,6 @@ export default {
928 873
           this.guaForm.code_information = repair.code_information;
929 874
           this.guaForm.id = repair.id;
930 875
           this.filename = repair.image_name;
931
-          this.guaForm.admin_user_id = repair.admin_user_id
932
-          this.guaForm.function_accessories_inspection = repair.function_accessories_inspection
933
-          this.guaForm.other_information= repair.other_information
934 876
         }
935 877
       });
936 878
     },
@@ -1137,50 +1079,9 @@ export default {
1137 1079
         });
1138 1080
       });
1139 1081
     },
1140
-    getDeviceName(id){
1141
-      var device_name= ""
1142
-      for(let i=0;i<this.macherList.length;i++){
1143
-        if(id == this.macherList[i].id){
1144
-           device_name = this.macherList[i].device_name
1145
-        }
1146
-      }
1147
-      return device_name
1148
-    },
1149
-    getRepairName(id){
1150
-      var device_type= ""
1151
-      for(let i=0;i<this.macherList.length;i++){
1152
-        if(id == this.macherList[i].id){
1153
-          device_type = this.macherList[i].device_type
1154
-        }
1155
-      }
1156
-      return device_type
1157
-    },
1158
-    getName(admin_user_id){
1159
-      var user_name = ""
1160
-      for(let i=0;i<this.docList.length;i++){
1161
-        if(admin_user_id == this.docList[i].admin_user_id){
1162
-           user_name = this.docList[i].user_name
1163
-        }
1164
-      }
1165
-      return user_name
1166
-    },
1167
-    printCard() {
1168
-        this.hiddenShow = true;
1169
-        var ptime = Math.round(new Date().getTime() / 1000);
1170
-        this.print_time = uParseTime(ptime, "{y}年{m}月{d}日");
1171
-
1172
-        const style =
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}";
1174
-
1175
-        setTimeout(() => {
1176
-          printJS({
1177
-            printable: "print-card-info-one",
1178
-            type: "html",
1179
-            style: style,
1180
-            scanStyles: false
1181
-          });
1182
-        }, 1);
1183
-      },
1082
+    printCard(){
1083
+      console.log('sadfgadsf');
1084
+    }
1184 1085
   },
1185 1086
   created() {
1186 1087
     this.getAllSubregion();

+ 27 - 26
src/xt_pages/management/components/UserForm.vue 查看文件

@@ -362,7 +362,7 @@
362 362
                 value-format="yyyy-MM-dd HH:mm"
363 363
                 placeholder="选择时间"
364 364
                 v-model="userform.start_time"
365
-                style="width:185px"
365
+
366 366
               ></el-date-picker>
367 367
             </el-form-item>
368 368
           </el-col>
@@ -374,7 +374,6 @@
374 374
                 value-format="yyyy-MM-dd HH:mm"
375 375
                 placeholder="选择时间"
376 376
                 v-model="userform.end_time"
377
-                style="width:185px"
378 377
               ></el-date-picker>
379 378
             </el-form-item>
380 379
           </el-col>
@@ -634,7 +633,7 @@
634 633
                 value-format="yyyy-MM-dd HH:mm"
635 634
                 placeholder="选择时间"
636 635
                 v-model="userform.starttime"
637
-                style="width:185px"
636
+
638 637
               ></el-date-picker>
639 638
             </el-form-item>
640 639
           </el-col>
@@ -646,7 +645,7 @@
646 645
                 value-format="yyyy-MM-dd HH:mm"
647 646
                 placeholder="选择时间"
648 647
                 v-model="userform.endtime"
649
-                style="width:185px"
648
+
650 649
               ></el-date-picker>
651 650
             </el-form-item>
652 651
           </el-col>
@@ -800,37 +799,37 @@
800 799
               <tr>
801 800
                 <td
802 801
                   :rowspan="2"
803
-                  style="text-align:center;width:60px;font-size:15px;"
802
+                  style="text-align:center;min-width:40px; font-size:15px;"
804 803
                 >
805 804
                   机号
806 805
                 </td>
807 806
                 <td
808 807
                   :rowspan="2"
809
-                  style="text-align:center;width:100px;font-size:15px"
808
+                  style="text-align:center;min-width:40px;font-size:15px"
810 809
                 >
811 810
                   日期
812 811
                 </td>
813 812
                 <td
814 813
                   :rowspan="2"
815
-                  style="text-align:center;width:50px;font-size:15px"
814
+                  style="text-align:center;min-width:40px;font-size:15px"
816 815
                 >
817 816
                   班次
818 817
                 </td>
819 818
                 <td
820 819
                   :rowspan="2"
821
-                  style="text-align:center;width:70px;font-size:15px"
820
+                  style="text-align:center;min-width:40px;font-size:15px"
822 821
                 >
823 822
                   患者
824 823
                 </td>
825 824
                 <td
826 825
                   :rowspan="2"
827
-                  style="text-align:center;width:60px;font-size:15px"
826
+                  style="text-align:center;min-width:40px;font-size:15px"
828 827
                 >
829 828
                   透析方式
830 829
                 </td>
831 830
                 <td
832 831
                   :rowspan="2"
833
-                  style="text-align:center;width:60px;font-size:15px"
832
+                  style="text-align:center;min-width:40px;font-size:15px"
834 833
                 >
835 834
                   使用次数
836 835
                 </td>
@@ -842,19 +841,19 @@
842 841
                 </td>
843 842
                 <td
844 843
                   :colspan="4"
845
-                  style="text-align:center;width:60px;font-size:15px"
844
+                  style="text-align:center;font-size:15px"
846 845
                 >
847 846
                   机表(床单元、床旁桌)消毒
848 847
                 </td>
849 848
                 <td
850
-                  :colspan="5"
851
-                  style="text-align:center;width:80px;font-size:15px"
849
+                  :colspan="6"
850
+                  style="text-align:center;font-size:15px"
852 851
                 >
853 852
                   液路消毒
854 853
                 </td>
855 854
                 <td
856 855
                   :rowspan="2"
857
-                  style="text-align:center;width:80px;font-size:15px"
856
+                  style="text-align:center;min-width:40px;font-size:15px"
858 857
                 >
859 858
                  透析机消毒液(更换)
860 859
                 </td>
@@ -878,31 +877,34 @@
878 877
                 </td>
879 878
               </tr>
880 879
               <tr>
881
-                <td style="text-align:center;width:70px;font-size:15px">
880
+                <td style="text-align:center;min-width:40px;font-size:15px">
882 881
                   消毒方式
883 882
                 </td>
884
-                <td style="text-align:center;width:50px;font-size:15px">
883
+                <td style="text-align:center;min-width:40px;font-size:15px">
885 884
                   消毒液
886 885
                 </td>
887
-                <td style="text-align:center;width:70px;font-size:15px">
886
+                <td style="text-align:center;min-width:40px;font-size:15px">
888 887
                   消毒状态
889 888
                 </td>
890
-                <td style="text-align:center;width:95px;font-size:15px">
889
+                <td style="text-align:center;min-width:40px;font-size:15px">
891 890
                   消毒液浓度
892 891
                 </td>
893
-                <td style="text-align:center;width:70px;font-size:15px">
892
+                <td style="text-align:center;min-width:40px;font-size:15px">
894 893
                   消毒方式
895 894
                 </td>
896
-                <td style="text-align:center;width:50px;font-size:15px">
895
+                <td style="text-align:center;min-width:40px;font-size:15px">
897 896
                   消毒液
898 897
                 </td>
899
-                <td style="text-align:center;width:70px;font-size:15px">
898
+                <td style="text-align:center;min-width:40px;font-size:15px">
899
+                  开始消毒时间
900
+                </td>
901
+                <td style="text-align:center;min-width:40px;font-size:15px">
900 902
                   消毒时长/min
901 903
                 </td>
902
-                <td style="text-align:center;width:70px;font-size:15px">
904
+                <td style="text-align:center;min-width:40px;font-size:15px">
903 905
                   消毒状态
904 906
                 </td>
905
-                <td style="text-align:center;width:70px;font-size:15px">
907
+                <td style="text-align:center;min-width:40px;font-size:15px">
906 908
                   消毒液残留
907 909
                 </td>
908 910
               </tr>
@@ -2509,7 +2511,7 @@ export default {
2509 2511
             this.bedNumberTwo = []
2510 2512
 
2511 2513
           }
2512
-          
2514
+
2513 2515
         }
2514 2516
       });
2515 2517
     },
@@ -2593,7 +2595,6 @@ export default {
2593 2595
       this.getBedForm(newvalue);
2594 2596
       this.value = newvalue;
2595 2597
     }
2596
-
2597 2598
   }
2598 2599
 };
2599 2600
 </script>
@@ -2635,7 +2636,7 @@ export default {
2635 2636
     text-align: right;
2636 2637
   }
2637 2638
   .el-input--prefix .el-input__inner {
2638
-    padding-left: 15px;
2639
+    // padding-left: 15px;
2639 2640
   }
2640 2641
   .el-input--prefix .el-input__inner {
2641 2642
     padding-right: 15px;

+ 104 - 67
src/xt_pages/management/components/WaterForm.vue 查看文件

@@ -36,19 +36,31 @@
36 36
          </el-row>
37 37
          <el-row>
38 38
             <el-col :span="8">
39
-                <el-form-item label="原水电导度(μs/cm):"   class="st" label-width="100px">
40
-                    <el-input  v-model="form.water_conductivity" style="width:100px" oninput="value=value.replace(/[^\d^\.]/g,'')" maxlength='4'></el-input>
41
-                    <!-- <el-input-number v-model="form.water_conductivity" :controls="false" :precision="2" ></el-input-number> -->
39
+                <el-form-item label="原水电导度(μs/cm):" prop="water_conductivity"  class="st" label-width="100px">
40
+                    <el-input  v-model="form.water_conductivity" style="width:100px" 
41
+                        oninput="value=value.replace(/[^\d.]/g, '').replace(/\.{2,}/g, '.').replace('.', '$#$').replace(/\./g, '').replace('$#$', '.').replace(/^(\-)*(\d+)\.(\d\d).*$/, '$1$2.$3').replace(/^\./g, '')"
42
+                    >
43
+                    </el-input>
44
+                    <!-- <el-input  v-model="form.water_conductivity" style="width:100px" oninput="value=value.replace(/[^\d+(.\d{1,2})?$]/g,'')" ></el-input> /[^\d^\.]/g,''-->
45
+                    <!-- <el-input  v-model="form.water_conductivity" style="width:100px" onkeyup="value=value.match(/^\d+(.\d{1,2})?$/g,'')" ></el-input> -->
46
+                    <!-- <el-input-number  auto-complete="off" v-model.number="form.water_conductivity" :precision="2" :controls="false"></el-input-number> -->
42 47
                 </el-form-item>
43 48
             </el-col>
44 49
             <el-col :span="8">
45 50
                 <el-form-item label="原水压力(Mpa):"  class="st">
46
-                    <el-input  v-model="form.water_pressure" style="width:100px" oninput="value=value.replace(/[^\d^\.]/g,'')" maxlength='4'></el-input>
51
+                    <el-input  v-model="form.water_pressure" style="width:100px" 
52
+                    oninput="value=value.replace(/[^\d.]/g, '').replace(/\.{2,}/g, '.').replace('.', '$#$').replace(/\./g, '').replace('$#$', '.').replace(/^(\-)*(\d+)\.(\d\d).*$/, '$1$2.$3').replace(/^\./g, '')"
53
+                    >
54
+                    </el-input>
55
+                    <!-- <el-input-number  auto-complete="off" v-model.number="form.water_pressure" :precision="2" :controls="false"></el-input-number> -->
47 56
                 </el-form-item>
48 57
             </el-col>
49 58
             <el-col :span="8">
50 59
                 <el-form-item label="温度:"  class="st">
51
-                    <el-input  v-model="form.temperature" style="width:100px" oninput="value=value.replace(/[^\d^\.]/g,'')" maxlength='4'></el-input>
60
+                    <el-input  v-model="form.temperature" style="width:100px"
61
+                    oninput="value=value.replace(/[^\d.]/g, '').replace(/\.{2,}/g, '.').replace('.', '$#$').replace(/\./g, '').replace('$#$', '.').replace(/^(\-)*(\d+)\.(\d\d).*$/, '$1$2.$3').replace(/^\./g, '')"
62
+                     ></el-input>
63
+                    <!-- <el-input-number  auto-complete="off" v-model.number="form.temperature" :precision="2" :controls="false"></el-input-number> -->
52 64
                 </el-form-item>
53 65
             </el-col>
54 66
          </el-row>
@@ -60,72 +72,66 @@
60 72
                 </el-form-item>
61 73
             </el-col>
62 74
          </el-row>
63
-         <el-row>
64
-            <span>反渗一级</span>
65
-         </el-row>
66
-         <el-row>
67
-            <el-col :span="8">
68
-                <el-form-item label="RO膜进水:"  class="st">
69
-                    <el-input  v-model="form.first_ro_membrane_water" type="number" style="width:100px"></el-input>
70
-                </el-form-item>
75
+         <el-row :gutter="20">
76
+            <el-col :span="4" style="text-align: center;">
77
+                <span >反渗</span>
71 78
             </el-col>
72
-            <el-col :span="8">
73
-                <el-form-item label="RO膜浓水:"  class="st">
74
-                    <el-input  v-model="form.first_ro_film_thick_water" type="number" style="width:100px"></el-input>
75
-                </el-form-item>
79
+            <el-col :span="4">
80
+                <span >RO膜进水</span>
76 81
             </el-col>
77
-            <el-col :span="8">
78
-                <el-form-item label="RO膜出水:"  class="st">
79
-                    <el-input  v-model="form.first_ro_membrane_effluent" type="number" style="width:100px"></el-input>
80
-                </el-form-item>
82
+            <el-col :span="4">
83
+                <span >RO膜浓水</span>
81 84
             </el-col>
82
-         </el-row>
83
-         <el-row>
84
-            <el-col :span="8">
85
-                <el-form-item label="产水电导度(μs/cm):"  class="st">
86
-                    <el-input  v-model="form.first_production_of_water_conductivity" type="number" style="width:100px"></el-input>
87
-                </el-form-item>
85
+            <el-col :span="4">
86
+                <span >RO膜出水</span>
88 87
             </el-col>
89
-            <el-col :span="8">
90
-                <el-form-item label="产水量(L/h):"  class="st">
91
-                    <el-input  v-model="form.first_water_yield" style="width:100px" type="number"></el-input>
92
-                </el-form-item>
88
+            <el-col :span="4">
89
+                <span >产水电导度(μs/cm)</span>
90
+            </el-col>
91
+            <el-col :span="4">
92
+                <span >产水量(L/h)</span>
93 93
             </el-col>
94
-         
95
-         </el-row>
96
-         <el-row>
97
-            <span>反渗二级</span>
98 94
          </el-row>
99
-         <el-row>
100
-            <el-col :span="8">
101
-                <el-form-item label="RO膜进水:"  class="st">
102
-                    <el-input  v-model="form.last_ro_membrane_water" type="number" style="width:100px"></el-input>
103
-                </el-form-item>
95
+         <el-row :gutter="20">
96
+            <el-col :span="4" style="text-align: center;">
97
+                <span>一级</span>
104 98
             </el-col>
105
-            <el-col :span="8">
106
-                <el-form-item label="RO膜浓水:"  class="st">
107
-                    <el-input  v-model="form.last_ro_film_thick_water" type="number" style="width:100px"></el-input>
108
-                </el-form-item>
99
+            <el-col :span="4">
100
+                <el-input v-model.number="form.first_ro_membrane_water" style="width:100px" type="number"></el-input>
109 101
             </el-col>
110
-            <el-col :span="8">
111
-                <el-form-item label="RO膜出水:"  class="st">
112
-                    <el-input  v-model="form.last_ro_membrane_effluent" type="number" style="width:100px"></el-input>
113
-                </el-form-item>
102
+            <el-col :span="4">
103
+                <el-input v-model.number="form.first_ro_film_thick_water" style="width:100px" type="number"></el-input>
104
+            </el-col>
105
+            <el-col :span="4">
106
+                <el-input v-model.number="form.first_ro_membrane_effluent" style="width:100px" type="number"></el-input>
107
+            </el-col>
108
+            <el-col :span="4">
109
+                <el-input v-model.number="form.first_production_of_water_conductivity" style="width:100px" type="number"></el-input>
110
+            </el-col>
111
+            <el-col :span="4">
112
+                <el-input v-model.number="form.first_water_yield" style="width:100px" type="number"></el-input>
114 113
             </el-col>
115 114
          </el-row>
116
-         <el-row>
117
-            <el-col :span="8">
118
-                <el-form-item label="产水电导度(μs/cm):"  class="st">
119
-                    <el-input  v-model="form.last_production_of_water_conductivity" type="number" style="width:100px"></el-input>
120
-                </el-form-item>
115
+         <el-row :gutter="20">
116
+            <el-col :span="4" style="text-align: center;">
117
+                <span>二级</span>
121 118
             </el-col>
122
-            <el-col :span="8">
123
-                <el-form-item label="产水量(L/h):"  class="st">
124
-                    <el-input  v-model="form.last_water_yield" type="number" style="width:100px"></el-input>
125
-                </el-form-item>
119
+            <el-col :span="4">
120
+                <el-input v-model.number="form.last_ro_membrane_water"  style="width:100px" type="number"></el-input>
121
+            </el-col>
122
+            <el-col :span="4">
123
+                <el-input v-model="form.last_ro_film_thick_water"  style="width:100px" type="number"></el-input>
124
+            </el-col>
125
+            <el-col :span="4">
126
+                <el-input  v-model="form.last_ro_membrane_effluent"  style="width:100px" type="number"></el-input>
127
+            </el-col>
128
+            <el-col :span="4">
129
+                <el-input v-model="form.last_production_of_water_conductivity"  style="width:100px" type="number"></el-input>
130
+            </el-col>
131
+            <el-col :span="4">
132
+                <el-input v-model.number="form.last_water_yield"  style="width:100px" type="number"></el-input>
126 133
             </el-col>
127 134
          </el-row>
128
-
129 135
          <el-row>
130 136
             <el-col :span="8">
131 137
                 <el-form-item label="碳罐(MPa):"  class="st">
@@ -159,19 +165,23 @@
159 165
             <el-col :span="8">
160 166
                 <el-form-item label="硬度监测(mg/l):"  class="st">
161 167
                     <el-input  v-model="form.hardness_monitoring" style="width:100px"
162
-                     oninput="value=value.replace(/[^\d^\.]/g,'')" maxlength='4'></el-input>
168
+                    oninput="value=value.replace(/[^\d.]/g, '').replace(/\.{2,}/g, '.').replace('.', '$#$').replace(/\./g, '').replace('$#$', '.').replace(/^(\-)*(\d+)\.(\d\d).*$/, '$1$2.$3').replace(/^\./g, '')"
169
+                     ></el-input>
163 170
                 </el-form-item>
164 171
             </el-col>
165 172
             <el-col :span="8">
166 173
                 <el-form-item label="总氯检测(mg/l):"  class="st">
167 174
                     <el-input  v-model="form.total_chlorine_detection" style="width:100px"
168
-                     oninput="value=value.replace(/[^\d^\.]/g,'')" maxlength='4'></el-input>
175
+                    oninput="value=value.replace(/[^\d.]/g, '').replace(/\.{2,}/g, '.').replace('.', '$#$').replace(/\./g, '').replace('$#$', '.').replace(/^(\-)*(\d+)\.(\d\d).*$/, '$1$2.$3').replace(/^\./g, '')"
176
+                     ></el-input>
177
+                     
169 178
                 </el-form-item>
170 179
             </el-col>
171 180
             <el-col :span="8">
172 181
                 <el-form-item label="PH值检测:"  class="st">
173 182
                     <el-input  v-model="form.ph_detection" style="width:100px"
174
-                     oninput="value=value.replace(/[^\d^\.]/g,'')" maxlength='4'></el-input>
183
+                    oninput="value=value.replace(/[^\d.]/g, '').replace(/\.{2,}/g, '.').replace('.', '$#$').replace(/\./g, '').replace('$#$', '.').replace(/^(\-)*(\d+)\.(\d\d).*$/, '$1$2.$3').replace(/^\./g, '')"
184
+                     ></el-input>
175 185
                 </el-form-item>
176 186
             </el-col>
177 187
          </el-row>
@@ -180,7 +190,8 @@
180 190
             <el-col :span="8">
181 191
                 <el-form-item label="过氧乙酸浓度(mg/l):"  class="st">
182 192
                     <el-input  v-model="form.concentration_of_peroxyacetic_acid" style="width:100px"
183
-                     oninput="value=value.replace(/[^\d^\.]/g,'')" maxlength='4'></el-input>
193
+                    oninput="value=value.replace(/[^\d.]/g, '').replace(/\.{2,}/g, '.').replace('.', '$#$').replace(/\./g, '').replace('$#$', '.').replace(/^(\-)*(\d+)\.(\d\d).*$/, '$1$2.$3').replace(/^\./g, '')"
194
+                     ></el-input>
184 195
                 </el-form-item>
185 196
             </el-col>
186 197
          </el-row>
@@ -339,11 +350,11 @@ import {getAllDoctorList,saveWaterList} from "@/api/manage";
339 350
             ],
340 351
             checked:"",
341 352
             rules: {
342
-             admin_user_id: [{ required: true, message: '请选择记录人' }],
353
+                admin_user_id: [{ required: true, message: '请选择记录人' }],
343 354
            },
344 355
            nurseList:[],
345 356
         }
346
-
357
+       
347 358
     },
348 359
     methods:{
349 360
         saveWater(formName){
@@ -607,15 +618,41 @@ import {getAllDoctorList,saveWaterList} from "@/api/manage";
607 618
 
608 619
            }
609 620
          })
610
-       }
621
+       },
622
+    //    limitInput (e) {
623
+    //     e.target.value = e.target.value.replace(/(^\s*)|(\s*$)/g, "");
624
+    //     const reg = /[^\d.]/g;
625
+
626
+    //     // 只能是数字和小数点,不能是其他输入
627
+    //     e.target.value = e.target.value.replace(reg, "");
628
+
629
+    //     // 保证第一位只能是数字,不能是点
630
+    //     e.target.value = e.target.value.replace(/^\./g, "");
631
+    //     // 小数只能出现1位
632
+    //     e.target.value = e.target.value
633
+    //       .replace(".", "$#$")
634
+    //       .replace(/\./g, "")
635
+    //       .replace("$#$", ".");
636
+    //     // 小数点后面保留2位
637
+    //     e.target.value = e.target.value.replace(
638
+    //       /^(\-)*(\d+)\.(\d\d).*$/,
639
+    //       "$1$2.$3"
640
+    //     );
641
+    //     }
611 642
     },
612 643
     created(){
613
-      
614 644
        this.getAllDoctorList()
645
+    },
646
+    mounted(){
647
+        
615 648
     }
616 649
  }
650
+ 
617 651
 </script>
618
-<style >
652
+<style scoped>
653
+.el-row {
654
+    margin-bottom: 20px;
655
+}
619 656
 .newMain .el-form-item__label {
620 657
     width: 110px !important;
621 658
 }

+ 76 - 75
src/xt_pages/management/home.vue 查看文件

@@ -893,7 +893,7 @@
893 893
                                         </el-table-column>
894 894
                                         <el-table-column label="床单位更换" align="center" min-width="100px" >
895 895
                                                 <template slot-scope="scope">
896
-                                                  
896
+
897 897
                                                    <span v-if="scope.row.bed_way ==0">/</span>
898 898
                                                    <span v-if="scope.row.bed_way ==1">床单</span>
899 899
                                                    <span v-if="scope.row.bed_way ==2">被套</span>
@@ -1382,7 +1382,7 @@
1382 1382
                       <div v-show="zhiShow">
1383 1383
                        <el-tabs type="border-card" v-model="activeNameSix" @tab-click="handleClick">
1384 1384
                          <el-tab-pane label="新增质量控制" name="first">
1385
-  
1385
+
1386 1386
                            <span style="margin-bottom: 20px;display: block;">细菌培养</span>
1387 1387
                            <el-form :model="qualityForm" ref="qualityForm" :rules="qualitRules">
1388 1388
                              <el-row>
@@ -1579,7 +1579,7 @@
1579 1579
                                     </el-date-picker>
1580 1580
                                   </el-form-item>
1581 1581
                                 </el-col>
1582
-                               
1582
+
1583 1583
                                 <el-col :span="8">
1584 1584
                                   <el-form-item label="顺序号:" required prop="sort">
1585 1585
                                      <el-input style="width:150px" v-model="qualityFormTwo.sort" ></el-input>
@@ -1632,9 +1632,9 @@
1632 1632
                               </el-row>
1633 1633
                             </el-form>
1634 1634
                             <el-divider></el-divider>
1635
-                           
1636 1635
 
1637
-                          
1636
+
1637
+
1638 1638
                           <div v-if="device_type == 1">
1639 1639
                            <span style="margin-bottom: 20px;display: block;">透析液离子浓度检测</span>
1640 1640
                             <el-form ref="qualityFormThree" :model="qualityFormThree" :rules="ruleThree">
@@ -1689,9 +1689,9 @@
1689 1689
                                         </el-date-picker>
1690 1690
                                     </el-form-item>
1691 1691
                                 </el-col>
1692
-                                
1692
+
1693 1693
                               </el-row>
1694
-                            
1694
+
1695 1695
                               <el-row>
1696 1696
                                 <el-col :span="8">
1697 1697
                                   <!-- <span>Na<sup>+</sup></span> -->
@@ -1791,11 +1791,11 @@
1791 1791
 
1792 1792
 
1793 1793
 
1794
-                           
1794
+
1795 1795
                             <el-divider></el-divider>
1796
-                         </div>     
1797
-                             
1798
-                        
1796
+                         </div>
1797
+
1798
+
1799 1799
                             <span style="margin-bottom: 20px;display: block;">有毒化合物检测</span>
1800 1800
                             <el-form ref="qualityFormFour" :model="qualityFormFour" :rules="diaRules">
1801 1801
                               <el-row>
@@ -1866,7 +1866,7 @@
1866 1866
                                     </el-date-picker>
1867 1867
                                   </el-form-item>
1868 1868
                                 </el-col>
1869
-                               
1869
+
1870 1870
                                 <el-col :span="8">
1871 1871
                                   <el-form-item label="顺序号:" required prop="sort">
1872 1872
                                      <el-input style="width:150px" v-model="qualityFormFour.sort" ></el-input>
@@ -1993,7 +1993,7 @@
1993 1993
                                     </el-date-picker>
1994 1994
                                   </el-form-item>
1995 1995
                                 </el-col>
1996
-                               
1996
+
1997 1997
                                 <el-col :span="8">
1998 1998
                                   <el-form-item label="顺序号:" required prop="sort">
1999 1999
                                      <el-input style="width:150px" v-model="qualityFormFive.sort" ></el-input>
@@ -2046,7 +2046,7 @@
2046 2046
                               </el-row>
2047 2047
                             </el-form>
2048 2048
                             <el-divider></el-divider>
2049
-                            
2049
+
2050 2050
 
2051 2051
 
2052 2052
 
@@ -2120,7 +2120,7 @@
2120 2120
                                       </el-date-picker>
2121 2121
                                     </el-form-item>
2122 2122
                                   </el-col>
2123
-                                
2123
+
2124 2124
                                   <el-col :span="8">
2125 2125
                                     <el-form-item label="顺序号:" required prop="sort">
2126 2126
                                       <el-input style="width:150px" v-model="qualityFormSix.sort" ></el-input>
@@ -2174,8 +2174,8 @@
2174 2174
                               </el-form>
2175 2175
                             <el-divider></el-divider>
2176 2176
 
2177
-                           
2178
-                           
2177
+
2178
+
2179 2179
                             <span style="margin-bottom: 20px;display: block;">PH值检测</span>
2180 2180
                             <el-form ref="qualityFormSeven" :model="qualityFormSeven" :rules="diaRules">
2181 2181
                               <el-row>
@@ -2246,7 +2246,7 @@
2246 2246
                                     </el-date-picker>
2247 2247
                                   </el-form-item>
2248 2248
                                 </el-col>
2249
-                               
2249
+
2250 2250
                                 <el-col :span="8">
2251 2251
                                   <el-form-item label="顺序号:" required prop="sort">
2252 2252
                                      <el-input style="width:150px" v-model="qualityFormSeven.sort" ></el-input>
@@ -2302,7 +2302,7 @@
2302 2302
 
2303 2303
 
2304 2304
 
2305
-                          
2305
+
2306 2306
 
2307 2307
                          </el-tab-pane>
2308 2308
 
@@ -2316,7 +2316,7 @@
2316 2316
                           暂无数据
2317 2317
                         </div>
2318 2318
                    </el-tab-pane>
2319
-                   
2319
+
2320 2320
                     <el-tab-pane label="维修维护" name="five">
2321 2321
                        <el-tabs type="border-card" v-model="activeNameFive" @tab-click="handleClick">
2322 2322
                          <el-tab-pane label="新增维修维护" name="first">
@@ -2351,7 +2351,7 @@
2351 2351
                              <el-row>
2352 2352
                                  <el-col :span="8">
2353 2353
                                   <el-form-item label="到达时间:">
2354
-                                   
2354
+
2355 2355
                                          <el-date-picker
2356 2356
                                           type="datetime"
2357 2357
                                           format="yyyy-MM-dd HH:mm"
@@ -2848,7 +2848,7 @@ export default {
2848 2848
           device_name: [{ required: true, message: '请填写序列号' }],
2849 2849
           devicetype: [{ required: true, message: '请填写设备类型' }],
2850 2850
           unit_type: [{ required: true, message: '请填写设备型号' }],
2851
-        
2851
+
2852 2852
         },
2853 2853
         qualitRules: {
2854 2854
           detection_unit: [{ required: true, message: '请填写检测单位' }],
@@ -3416,7 +3416,7 @@ export default {
3416 3416
               }
3417 3417
 
3418 3418
             }
3419
-            
3419
+
3420 3420
           }
3421 3421
         })
3422 3422
       },
@@ -3455,16 +3455,16 @@ export default {
3455 3455
           if (response.data.state === 1) {
3456 3456
             var addmacher = response.data.data.addmacher
3457 3457
             var warning = response.data.data.warning
3458
-          
3458
+
3459 3459
             var time = this.getTimestamp(this.userform.date) - warning.stime
3460 3460
             var germ = response.data.data.germ
3461
-          
3461
+
3462 3462
             var timetwo = this.getTimestamp(this.userform.date) - germ.stime
3463
-           
3463
+
3464 3464
             var clean = response.data.data.clean
3465 3465
             var timethree = this.getTimestamp(this.userform.date) - clean.stime
3466 3466
             var number = response.data.data.number
3467
-          
3467
+
3468 3468
             this.Number = number
3469 3469
             if (addmacher.device_type === 1) {
3470 3470
               this.sShow = false
@@ -3505,7 +3505,7 @@ export default {
3505 3505
             var zone = response.data.data.zone
3506 3506
 
3507 3507
             const arr1 = []
3508
-          
3508
+
3509 3509
             for (let index = 0; index < mode.length; index++) {
3510 3510
               if (mode[index].treate_mode === 1) {
3511 3511
                 mode[index] = 'HD'
@@ -3594,7 +3594,7 @@ export default {
3594 3594
             this.form.machine_status = addmacher.machine_status
3595 3595
             this.form.user_total = addmacher.user_total
3596 3596
             this.form.remarks = addmacher.remarks
3597
-           
3597
+
3598 3598
             if (addmacher.rubbish_date !== 0) {
3599 3599
               this.form.rubbish_date = uParseTime(addmacher.rubbish_date, '{y}-{m}-{d}')
3600 3600
             }
@@ -3701,16 +3701,16 @@ export default {
3701 3701
         var bed_numberss = parseInt(bed_numbers)
3702 3702
         this.form.bed_number = bed_numberss
3703 3703
         this.$refs[formName].validate(valid => {
3704
-          UpdateMachineInfo(this.form).then(response => {         
3704
+          UpdateMachineInfo(this.form).then(response => {
3705 3705
             if (response.data.state === 1) {
3706
-              var addmacher = response.data.data.addmacher         
3707
-              this.$message.success('修改成功')           
3706
+              var addmacher = response.data.data.addmacher
3707
+              this.$message.success('修改成功')
3708 3708
               for (let i = 0; i < this.tableDatatwo.length; i++) {
3709 3709
                 if (this.tableDatatwo[i].id == addmacher.id) {
3710 3710
                   for (let j = 0; j < this.deviceMode.length; j++) {
3711 3711
                     if (this.deviceMode[j].id === parseInt(addmacher.unit_type)) {
3712 3712
                       addmacher.device_mode = this.deviceMode[j].device_mode
3713
-                    
3713
+
3714 3714
                     }
3715 3715
                   }
3716 3716
 
@@ -4371,7 +4371,7 @@ export default {
4371 4371
             }
4372 4372
             this.userform.date = uParseTime(patients.schedule_date, '{y}-{m}-{d}')
4373 4373
             this.userform.patient_name = patients.name
4374
-            this.userform.patient_id = patients.patient_id 
4374
+            this.userform.patient_id = patients.patient_id
4375 4375
             var zone = response.data.data.zone
4376 4376
             this.userform.zone = zone.id
4377 4377
             var number = response.data.data.number
@@ -4520,7 +4520,7 @@ export default {
4520 4520
         this.userform.user_total = parseInt(this.userform.user_total)
4521 4521
 
4522 4522
         console.log("user_form",this.userform)
4523
-      
4523
+
4524 4524
         this.$refs[formName].validate((valid) => {
4525 4525
           if (valid) {
4526 4526
             SaveInformation(this.equimentid, this.userform).then(response => {
@@ -4700,16 +4700,16 @@ export default {
4700 4700
         var samplinglocationa = this.qualityForm.sampling_locationa
4701 4701
         var samplinglocationas = parseInt(samplinglocationa)
4702 4702
         this.qualityForm.sampling_locationa = samplinglocationas
4703
-        
4703
+
4704 4704
         //  if(this.qualityForm.pass_examination!=''){
4705 4705
         //    this.qualityForm.pass_examination = parseInt(this.qualityForm.pass_examination)
4706 4706
         //  }
4707 4707
          if(this.qualityForm.modifications!=''){
4708 4708
            this.qualityForm.modifications = parseInt(this.qualityForm.modifications)
4709 4709
          }
4710
-       
4710
+
4711 4711
         console.log("3333333",this.qualityForm)
4712
-       
4712
+
4713 4713
         this.$refs[formName].validate(response => {
4714 4714
           SaveBacteria(this.equimentid, this.qualityForm).then(response => {
4715 4715
             if (response.data.state === 1) {
@@ -4737,7 +4737,7 @@ export default {
4737 4737
         this.qualityForm.detection_result = ''
4738 4738
       },
4739 4739
       SaveLincomycin(formName) {
4740
-       
4740
+
4741 4741
         this.$refs[formName].validate((valid) => {
4742 4742
           if (this.qualityFormTwo.specimenb === '') {
4743 4743
             this.qualityFormTwo.specimenb = 0
@@ -4753,13 +4753,13 @@ export default {
4753 4753
           var sampling = this.qualityFormTwo.sampling_locationb
4754 4754
           var samplings = parseInt(sampling)
4755 4755
           this.qualityFormTwo.sampling_locationb = samplings
4756
-           
4757
-       
4756
+
4757
+
4758 4758
           if(this.qualityFormTwo.modifications!=''){
4759 4759
             this.qualityFormTwo.modifications = parseInt(this.qualityFormTwo.modifications)
4760 4760
           }
4761
-       
4762
-      
4761
+
4762
+
4763 4763
           if (valid) {
4764 4764
             SaveLincomycin(this.equimentid, this.qualityFormTwo).then(response => {
4765 4765
               if (response.data.state === 1) {
@@ -4771,8 +4771,8 @@ export default {
4771 4771
                 this.qualityFormTwo.concentrateb_nod = ''
4772 4772
                 this.qualityFormTwo.sampling_locationb = ''
4773 4773
                 this.qualityFormTwo.detection_resultb = ''
4774
-               
4775
-              
4774
+
4775
+
4776 4776
                 this.$refs.mychild.getAllQulityInfo()
4777 4777
               }
4778 4778
             })
@@ -4791,11 +4791,11 @@ export default {
4791 4791
       SaveQualityControl(formName) {
4792 4792
         this.$refs[formName].validate((valid) => {
4793 4793
           if (valid) {
4794
-             
4794
+
4795 4795
               if(this.qualityFormThree.modifications!=''){
4796 4796
                 this.qualityFormThree.modifications = parseInt(this.qualityFormThree.modifications)
4797 4797
               }
4798
-            
4798
+
4799 4799
             SaveQualityControl(this.equimentid, this.qualityFormThree).then(response => {
4800 4800
               if (response.data.state === 1) {
4801 4801
                 var ion = response.data.data.ion
@@ -5045,7 +5045,7 @@ export default {
5045 5045
             var deviceInformation = response.data.data.deviceInformation
5046 5046
             var timetwo = this.getTimestamp(this.userform.date) - deviceInformation.stime
5047 5047
             var clean = response.data.data.clean
5048
-          
5048
+
5049 5049
           }
5050 5050
         })
5051 5051
       },
@@ -5148,10 +5148,10 @@ export default {
5148 5148
          GetUserTotalCount(bedid).then(response=>{
5149 5149
             if(response.data.state == 1){
5150 5150
               var count =  response.data.data.count
5151
-              var addmacher = response.data.data.addmacher 
5151
+              var addmacher = response.data.data.addmacher
5152 5152
               if(addmacher.user_total == ''){
5153 5153
                   addmacher.user_total = 0
5154
-              }   
5154
+              }
5155 5155
               // this.userform.user_total = count[0].Total + parseInt(addmacher.user_total)
5156 5156
             }
5157 5157
          })
@@ -5174,12 +5174,12 @@ export default {
5174 5174
           var sampling = this.qualityFormFour.sampling_locationb
5175 5175
           var samplings = parseInt(sampling)
5176 5176
           this.qualityFormFour.sampling_locationb = samplings
5177
-           
5178
-        
5177
+
5178
+
5179 5179
           if(this.qualityFormFour.modifications!=''){
5180 5180
             this.qualityFormFour.modifications = parseInt(this.qualityFormFour.modifications)
5181 5181
           }
5182
-       
5182
+
5183 5183
           if (valid) {
5184 5184
             saveOxygenates(this.equimentid, this.qualityFormFour).then(response => {
5185 5185
               if (response.data.state === 1) {
@@ -5190,10 +5190,10 @@ export default {
5190 5190
                 this.qualityFormFour.concentrate_noc = ''
5191 5191
                 this.qualityFormFour.concentrateb_nod = ''
5192 5192
                 this.qualityFormFour.sampling_locationb = ''
5193
-             
5193
+
5194 5194
                 this.qualityFormFour.detection_resultb = ''
5195
-                
5196
-              
5195
+
5196
+
5197 5197
                 this.$refs.mychild.getAllQulityInfo()
5198 5198
               }
5199 5199
             })
@@ -5218,12 +5218,12 @@ export default {
5218 5218
           var sampling = this.qualityFormFive.sampling_locationb
5219 5219
           var samplings = parseInt(sampling)
5220 5220
           this.qualityFormFive.sampling_locationb = samplings
5221
-           
5222
-        
5221
+
5222
+
5223 5223
           if(this.qualityFormFive.modifications!=''){
5224 5224
             this.qualityFormFive.modifications = parseInt(this.qualityFormFive.modifications)
5225 5225
           }
5226
-       
5226
+
5227 5227
           if (valid) {
5228 5228
             saveHardWater(this.equimentid, this.qualityFormFive).then(response => {
5229 5229
               if (response.data.state === 1) {
@@ -5235,8 +5235,8 @@ export default {
5235 5235
                 this.qualityFormFive.concentrateb_nod = ''
5236 5236
                 this.qualityFormFive.sampling_locationb = ''
5237 5237
                 this.qualityFormFive.detection_resultb = ''
5238
-               
5239
-              
5238
+
5239
+
5240 5240
                 this.$refs.mychild.getAllQulityInfo()
5241 5241
               }
5242 5242
             })
@@ -5261,12 +5261,12 @@ export default {
5261 5261
           var sampling = this.qualityFormSix.sampling_locationb
5262 5262
           var samplings = parseInt(sampling)
5263 5263
           this.qualityFormSix.sampling_locationb = samplings
5264
-           
5265
-       
5264
+
5265
+
5266 5266
           if(this.qualityFormSix.modifications!=''){
5267 5267
             this.qualityFormSix.modifications = parseInt(this.qualityFormSix.modifications)
5268 5268
           }
5269
-       
5269
+
5270 5270
           if (valid) {
5271 5271
             saveWater(this.equimentid, this.qualityFormSix).then(response => {
5272 5272
               if (response.data.state === 1) {
@@ -5278,8 +5278,8 @@ export default {
5278 5278
                 this.qualityFormSix.concentrateb_nod = ''
5279 5279
                 this.qualityFormSix.sampling_locationb = ''
5280 5280
                 this.qualityFormSix.detection_resultb = ''
5281
-             
5282
-              
5281
+
5282
+
5283 5283
                 this.$refs.child.getAllQulityInfo()
5284 5284
               }else{
5285 5285
                 this.qualityFormSix.pass_examination = "1"
@@ -5306,12 +5306,12 @@ export default {
5306 5306
           var sampling = this.qualityFormSeven.sampling_locationb
5307 5307
           var samplings = parseInt(sampling)
5308 5308
           this.qualityFormSeven.sampling_locationb = samplings
5309
-           
5310
-       
5309
+
5310
+
5311 5311
           if(this.qualityFormSeven.modifications!=''){
5312 5312
             this.qualityFormSeven.modifications = parseInt(this.qualityFormSeven.modifications)
5313 5313
           }
5314
-       
5314
+
5315 5315
           if (valid) {
5316 5316
             saveDevicePH(this.equimentid, this.qualityFormSeven).then(response => {
5317 5317
               if (response.data.state === 1) {
@@ -5323,8 +5323,8 @@ export default {
5323 5323
                 this.qualityFormSeven.concentrateb_nod = ''
5324 5324
                 this.qualityFormSeven.sampling_locationb = ''
5325 5325
                 this.qualityFormSeven.detection_resultb = ''
5326
-              
5327
-              
5326
+
5327
+
5328 5328
                 this.$refs.mychild.getAllQulityInfo()
5329 5329
               }
5330 5330
             })
@@ -5346,7 +5346,7 @@ export default {
5346 5346
       this.getAllpatient()
5347 5347
       this.getAllMode()
5348 5348
       this.GetUserTotalCount(bedid)
5349
-      
5349
+
5350 5350
 
5351 5351
   }
5352 5352
   }
@@ -5411,6 +5411,9 @@ export default {
5411 5411
        margin-bottom: 10px;
5412 5412
     margin-left: 82%
5413 5413
   }
5414
+  .el-form-item__error {
5415
+    margin-left: 130px;
5416
+  }
5414 5417
 
5415 5418
 </style>
5416 5419
 <style lang="scss">
@@ -5456,9 +5459,7 @@ export default {
5456 5459
   //   width: 130px;
5457 5460
   //   font-size: 14px;
5458 5461
   // }
5459
-  .el-form-item__error {
5460
-    margin-left: 130px;
5461
-  }
5462
+  
5462 5463
 
5463 5464
  .el-upload-list__item-name {
5464 5465
     color: #606266;

+ 6 - 3
src/xt_pages/user/courseOfDisease.vue 查看文件

@@ -48,7 +48,10 @@
48 48
                         :row-class-name="tableRow"
49 49
                         @row-click="onRowClick"
50 50
               >
51
-                <el-table-column type="selection" width="40" align="center"></el-table-column>
51
+                <el-table-column
52
+                  type="selection"
53
+                  width="55">
54
+                </el-table-column>
52 55
                 <el-table-column label="病程标题" align="center">
53 56
                   <template slot-scope="scope">
54 57
                     {{ scope.row.title}}
@@ -69,8 +72,8 @@
69 72
             <el-col :span="14">
70 73
               <div class="record_content_panel">
71 74
                 <div style="background-color:rgb(245, 247, 250)" class="title">病程内容</div>
72
-                <div class="content">
73
-                  <span v-if="current_select_record" v-html="current_select_record.content">{{current_select_record.content }}</span>
75
+                <div class="content"><!--v-html="current_select_record.content"-->
76
+                  <span v-if="current_select_record" >{{current_select_record.content }}</span>
74 77
                   <span v-else></span>
75 78
                 </div>
76 79
               </div>

+ 4 - 5
src/xt_pages/user/rescueRecord.vue 查看文件

@@ -68,11 +68,10 @@
68 68
                 @current-change="didChangeCurrentRecord"
69 69
                 @selection-change="didSelectionChange"
70 70
               >
71
-                <el-table-column
72
-                  type="selection"
73
-                  width="40"
74
-                  align="center"
75
-                ></el-table-column>
71
+              <el-table-column
72
+                type="selection"
73
+                width="55">
74
+              </el-table-column>
76 75
                 <el-table-column label="记录时间" align="center">
77 76
                   <template slot-scope="scope">
78 77
                     {{ recordTime(scope.row.record_time) }}