Ver código fonte

4月12日bug修改

杨青 2 anos atrás
pai
commit
0a64302fae

+ 12 - 402
src/xt_pages/management/components/RepairForm.vue Ver arquivo

@@ -1,8 +1,7 @@
1 1
 <template>
2 2
   <div>
3
-    <div>
4 3
     <el-row class="row">
5
-      <!-- <el-col :span="5">
4
+      <el-col :span="5">
6 5
         <span class="machineClass">机号:</span>
7 6
         <el-select style="width:100px" v-model="forms.bed">
8 7
           <el-option
@@ -12,7 +11,7 @@
12 11
             :value="item.id"
13 12
           ></el-option>
14 13
         </el-select>
15
-      </el-col> -->
14
+      </el-col>
16 15
       <el-col :span="11">
17 16
         <span class="machineClass">日期查询:</span>
18 17
         <el-date-picker
@@ -53,8 +52,7 @@
53 52
           <el-button type="primary" size="small" @click="printCard">打印</el-button>
54 53
       </el-col>
55 54
     </el-row>
56
-    <el-row>
57
-
55
+   
58 56
       <el-table
59 57
         ref="multipleTable"
60 58
         @selection-change="handleSelectionChange"
@@ -334,7 +332,7 @@
334 332
             </el-tooltip>
335 333
           </template>
336 334
         </el-table-column>
337
-      </el-table> -->
335
+      </el-table>
338 336
       <el-pagination
339 337
         @size-change="handleSizeChange"
340 338
         @current-change="handleCurrentChange"
@@ -416,32 +414,6 @@
416 414
             </el-form-item>
417 415
           </el-col>
418 416
         </el-row>
419
-        <el-row>
420
-          <el-col :span="24">
421
-              <el-form-item class="formItem" label="功能及附件检查:">
422
-                  <el-input
423
-                    type="textarea"
424
-                    :rows="2"
425
-                      placeholder="请输入内容"
426
-                      v-model="guaForm.function_accessories_inspection"
427
-                    style="width:85%">
428
-                  </el-input>
429
-              </el-form-item>
430
-            </el-col>
431
-        </el-row>
432
-        <el-row>
433
-        <el-col :span="24">
434
-            <el-form-item class="formItem" label="其他:">
435
-                <el-input
436
-                  type="textarea"
437
-                  :rows="2"
438
-                    placeholder="请输入内容"
439
-                    v-model="guaForm.other_information"
440
-                  style="width:85%">
441
-                </el-input>
442
-            </el-form-item>
443
-          </el-col>
444
-        </el-row>
445 417
         <el-row>
446 418
           <el-col :span="24">
447 419
             <el-form-item label="故障发生阶段">
@@ -472,7 +444,7 @@
472 444
         </el-row>
473 445
         <el-row>
474 446
           <el-col :span="8">
475
-            <el-form-item label="故障现象:" required prop="fault_description">
447
+            <el-form-item label="故障描述:" required prop="fault_description">
476 448
               <el-input
477 449
                 type="textarea"
478 450
                 :rows="2"
@@ -483,7 +455,7 @@
483 455
             </el-form-item>
484 456
           </el-col>
485 457
           <el-col :span="8">
486
-            <el-form-item label="维修内容:">
458
+            <el-form-item label="原因分析:">
487 459
               <el-input
488 460
                 type="textarea"
489 461
                 :rows="2"
@@ -494,7 +466,7 @@
494 466
             </el-form-item>
495 467
           </el-col>
496 468
           <el-col :span="8">
497
-            <el-form-item label="维修结果:">
469
+            <el-form-item label="处理过程:">
498 470
               <el-input
499 471
                 type="textarea"
500 472
                 :rows="2"
@@ -544,7 +516,7 @@
544 516
         </el-row>
545 517
         <el-row>
546 518
           <el-col :span="20">
547
-            <el-form-item label="备注:">
519
+            <el-form-item label="原因:">
548 520
               <el-input
549 521
                 type="textarea"
550 522
                 :rows="2"
@@ -555,21 +527,6 @@
555 527
             </el-form-item>
556 528
           </el-col>
557 529
         </el-row>
558
-        <el-row>
559
-          <el-col :span="20">
560
-            <el-form-item label="维修者:">
561
-              <el-select v-model="guaForm.admin_user_id" placeholder="请选择" >
562
-                      <el-option
563
-                      v-for="item in docList"
564
-                      :key="item.admin_user_id"
565
-                      :label="item.user_name"
566
-                      :value="item.admin_user_id"
567
-                      style="width:185px">
568
-                      </el-option>
569
-              </el-select>
570
-            </el-form-item>
571
-          </el-col>
572
-        </el-row>
573 530
       </el-form>
574 531
       <span slot="footer" class="dialog-footer">
575 532
 <!--        <button @click="lili">调试</button>-->
@@ -579,272 +536,6 @@
579 536
         >
580 537
       </span>
581 538
     </el-dialog>
582
-
583
-    <div hidden="hidden">
584
-      <div id="print-card-info" v-show="hiddenShow">
585
-        <div>
586
-          <div class="print_main_content">
587
-            <div class="order_title">水机使用记录清单</div>
588
-          </div>
589
-          <div>
590
-            <div class="printClass">打印日期:{{ nowTime }}</div>
591
-            <table
592
-              border="1"
593
-              style="width:100%"
594
-              cellspacing="0"
595
-              cellpadding="0"
596
-              class="tableClass"
597
-            >
598
-              <tr>
599
-                <td
600
-                  :rowspan="2"
601
-                  style="text-align:center;width:60px;font-size:15px;"
602
-                >
603
-                  日期
604
-                </td>
605
-              
606
-               
607
-                <td
608
-                  :colspan="4"
609
-                  style="text-align:center;width:60px;font-size:15px"
610
-                >
611
-                  原水参数
612
-                </td>
613
-
614
-                <td
615
-                  :colspan="2"
616
-                  style="text-align:center;width:60px;font-size:15px"
617
-                >
618
-                  一级反渗
619
-                </td>
620
-
621
-                <td
622
-                  :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"
637
-                >
638
-                 砂罐
639
-                </td>
640
-
641
-                <td
642
-                 :rowspan="2"
643
-                  style="text-align:center;width:60px;font-size:15px"
644
-                >
645
-                 树脂罐
646
-                </td>
647
-
648
-                <td
649
-                 :rowspan="2"
650
-                  style="text-align:center;width:60px;font-size:15px"
651
-                >
652
-                  静谧过滤器(MPa)
653
-                </td>
654
-              
655
-                <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"
665
-                >
666
-                 消毒
667
-                </td>
668
-
669
-                <td
670
-                 :rowspan="2"
671
-                  style="text-align:center;width:60px;font-size:15px"
672
-                >
673
-                过滤器更换
674
-                </td>
675
-
676
-                <td
677
-                 :rowspan="2"
678
-                  style="text-align:center;width:60px;font-size:15px"
679
-                >
680
-                记录人
681
-                </td>
682
-               
683
-              </tr>
684
-              <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
-                  产水量
703
-                </td>
704
-
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
-                  产水量
710
-                </td>
711
-
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)
719
-                </td>
720
-
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)
726
-                </td>
727
-
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
-                  输水管道消毒
733
-                </td>
734
-                
735
-               
736
-              
737
-              </tr>
738
-              <tr v-for="item in this.tableData" :key="item.id">
739
-                <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
-                  
754
-                </td>
755
-
756
-                <td style="text-align:center;font-size:15px;height:30px">
757
-                
758
-                </td>
759
-                <td style="text-align:center;font-size:15px;height:30px">
760
-                 
761
-                </td>
762
-
763
-                <td style="text-align:center;font-size:15px;height:30px">
764
-                 
765
-                </td>
766
-                <td style="text-align:center;font-size:15px;height:30px">
767
-                 
768
-                </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
-                
779
-                </td>
780
-
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
-              
791
-                </td>
792
-
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
-
804
-                <td
805
-                  style="text-align:center;width:60px;font-size:15px"
806
-                >
807
-                 
808
-                </td>
809
-
810
-                <td
811
-                  style="text-align:center;width:60px;font-size:15px"
812
-                >
813
-                
814
-                </td>
815
-
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
-                
836
-                </td>
837
-             
838
-               
839
-               
840
-             
841
-              </tr>
842
-            </table>
843
-          </div>
844
-        </div>
845
-      </div>
846
-    </div>
847
-   </div>
848 539
   </div>
849 540
 </template>
850 541
 
@@ -860,13 +551,10 @@ import {
860 551
 } from "@/api/manage";
861 552
 import { uParseTime } from "@/utils/tools";
862 553
 import { getFileExtension } from "@/utils/tools";
863
-import print from "print-js";
864
-const moment = require("moment");
865 554
 export default {
866 555
   name: "RepairForm",
867 556
   data() {
868 557
     return {
869
-      nowTime: moment(new Date()).format("YYYY-MM-DD HH:MM:SS"),
870 558
       dialogVisible: false,
871 559
       selectCulture: [],
872 560
       forms: {
@@ -890,10 +578,7 @@ export default {
890 578
         exclude: "",
891 579
         reason: "",
892 580
         code_information: "",
893
-        image_name: "",
894
-        admin_user_id:this.$store.getters.xt_user.user.id,
895
-        function_accessories_inspection:"",
896
-        other_information:"",
581
+        image_name: ""
897 582
       },
898 583
       isIndeterminate: false,
899 584
       checkAllStatus: false,
@@ -921,9 +606,6 @@ export default {
921 606
       limit: 10,
922 607
       page: 1,
923 608
       total: 0,
924
-      macherList:[],
925
-      docList:[],
926
-      hiddenShow:false,
927 609
     };
928 610
   },
929 611
   methods: {
@@ -956,10 +638,6 @@ export default {
956 638
         if (response.data.state === 1) {
957 639
           var repair = response.data.data.repair;
958 640
           console.log("repair是", repair);
959
-          var macherList = response.data.data.macherList
960
-         
961
-          this.macherList = macherList
962
-          this.docList = response.data.data.docList
963 641
           // eslint-disable-next-line no-unused-vars
964 642
           var total = response.data.data.total;
965 643
           this.total = total;
@@ -998,7 +676,6 @@ export default {
998 676
               repair[index].exclude = "未解决";
999 677
             }
1000 678
           }
1001
-          console.log("repair------",repair)
1002 679
           this.tableData = repair;
1003 680
         }
1004 681
       });
@@ -1021,7 +698,6 @@ export default {
1021 698
         if (response.data.state === 1) {
1022 699
           var repair = response.data.data.repair;
1023 700
           console.log("repair", repair);
1024
-          this.docList = response.data.data.docList
1025 701
           this.guaForm.guarantee_date = uParseTime(
1026 702
             repair.guarantee_date,
1027 703
             "{y}-{m}-{d}"
@@ -1049,9 +725,6 @@ export default {
1049 725
           this.guaForm.code_information = repair.code_information;
1050 726
           this.guaForm.id = repair.id;
1051 727
           this.filename = repair.image_name;
1052
-          this.guaForm.admin_user_id = repair.admin_user_id
1053
-          this.guaForm.function_accessories_inspection = repair.function_accessories_inspection
1054
-          this.guaForm.other_information= repair.other_information
1055 728
         }
1056 729
       });
1057 730
     },
@@ -1258,50 +931,9 @@ export default {
1258 931
         });
1259 932
       });
1260 933
     },
1261
-    getDeviceName(id){
1262
-      var device_name= ""
1263
-      for(let i=0;i<this.macherList.length;i++){
1264
-        if(id == this.macherList[i].id){
1265
-           device_name = this.macherList[i].device_name
1266
-        }
1267
-      }
1268
-      return device_name
1269
-    },
1270
-    getRepairName(id){
1271
-      var device_type= ""
1272
-      for(let i=0;i<this.macherList.length;i++){
1273
-        if(id == this.macherList[i].id){
1274
-          device_type = this.macherList[i].device_type
1275
-        }
1276
-      }
1277
-      return device_type
1278
-    },
1279
-    getName(admin_user_id){
1280
-      var user_name = ""
1281
-      for(let i=0;i<this.docList.length;i++){
1282
-        if(admin_user_id == this.docList[i].admin_user_id){
1283
-           user_name = this.docList[i].user_name
1284
-        }
1285
-      }
1286
-      return user_name
1287
-    },
1288
-    printCard() {
1289
-        this.hiddenShow = true;
1290
-        var ptime = Math.round(new Date().getTime() / 1000);
1291
-        this.print_time = uParseTime(ptime, "{y}年{m}月{d}日");
1292
-
1293
-        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}";
1295
-
1296
-        setTimeout(() => {
1297
-          printJS({
1298
-            printable: "print-card-info",
1299
-            type: "html",
1300
-            style: style,
1301
-            scanStyles: false
1302
-          });
1303
-        }, 1);
1304
-      },
934
+    printCard(){
935
+      console.log('sadfgadsf');
936
+    }
1305 937
   },
1306 938
   created() {
1307 939
     this.getAllSubregion();
@@ -1310,30 +942,8 @@ export default {
1310 942
 };
1311 943
 </script>
1312 944
 
1313
-
1314 945
 <style scoped>
1315
-
1316 946
 .row {
1317 947
   margin-bottom: 10px;
1318 948
 }
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 949
 </style>

+ 5 - 6
src/xt_pages/management/components/UserForm.vue Ver arquivo

@@ -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>
@@ -2609,7 +2608,7 @@ export default {
2609 2608
       //       })
2610 2609
       //   })
2611 2610
     },
2612
-  },
2611
+  
2613 2612
   created() {
2614 2613
     this.getAllSubregion();
2615 2614
     // this.getInformationData();
@@ -2662,7 +2661,7 @@ export default {
2662 2661
     text-align: right;
2663 2662
   }
2664 2663
   .el-input--prefix .el-input__inner {
2665
-    padding-left: 15px;
2664
+    // padding-left: 15px;
2666 2665
   }
2667 2666
   .el-input--prefix .el-input__inner {
2668 2667
     padding-right: 15px;

+ 103 - 66
src/xt_pages/management/components/WaterForm.vue Ver arquivo

@@ -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){
@@ -450,15 +461,41 @@ import {getAllDoctorList,saveWaterList} from "@/api/manage";
450 461
 
451 462
            }
452 463
          })
453
-       }
464
+       },
465
+    //    limitInput (e) {
466
+    //     e.target.value = e.target.value.replace(/(^\s*)|(\s*$)/g, "");
467
+    //     const reg = /[^\d.]/g;
468
+
469
+    //     // 只能是数字和小数点,不能是其他输入
470
+    //     e.target.value = e.target.value.replace(reg, "");
471
+
472
+    //     // 保证第一位只能是数字,不能是点
473
+    //     e.target.value = e.target.value.replace(/^\./g, "");
474
+    //     // 小数只能出现1位
475
+    //     e.target.value = e.target.value
476
+    //       .replace(".", "$#$")
477
+    //       .replace(/\./g, "")
478
+    //       .replace("$#$", ".");
479
+    //     // 小数点后面保留2位
480
+    //     e.target.value = e.target.value.replace(
481
+    //       /^(\-)*(\d+)\.(\d\d).*$/,
482
+    //       "$1$2.$3"
483
+    //     );
484
+    //     }
454 485
     },
455 486
     created(){
456
-      
457 487
        this.getAllDoctorList()
488
+    },
489
+    mounted(){
490
+        
458 491
     }
459 492
  }
493
+ 
460 494
 </script>
461 495
 <style scoped>
496
+.el-row {
497
+    margin-bottom: 20px;
498
+}
462 499
 .newMain .el-form-item__label {
463 500
     width: 110px !important;
464 501
 }

+ 4 - 3
src/xt_pages/management/home.vue Ver arquivo

@@ -5404,6 +5404,9 @@ export default {
5404 5404
        margin-bottom: 10px;
5405 5405
     margin-left: 82%
5406 5406
   }
5407
+  .el-form-item__error {
5408
+    margin-left: 130px;
5409
+  }
5407 5410
 
5408 5411
 </style>
5409 5412
 <style lang="scss">
@@ -5449,9 +5452,7 @@ export default {
5449 5452
   //   width: 130px;
5450 5453
   //   font-size: 14px;
5451 5454
   // }
5452
-  .el-form-item__error {
5453
-    margin-left: 130px;
5454
-  }
5455
+  
5455 5456
 
5456 5457
  .el-upload-list__item-name {
5457 5458
     color: #606266;

+ 6 - 3
src/xt_pages/user/courseOfDisease.vue Ver arquivo

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

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