28169 2 лет назад
Родитель
Сommit
48d571ca88

+ 1 - 1
src/xt_pages/management/components/RepairForm.vue Просмотреть файл

@@ -345,7 +345,7 @@
345 345
       ></el-pagination>
346 346
     </el-row>
347 347
 
348
-    <!-- 编辑维修记录 -->
348
+    <-- 编辑维修记录 -->
349 349
     <el-dialog
350 350
       title="编辑维修记录"
351 351
       :visible.sync="dialogVisible"

+ 1 - 2
src/xt_pages/management/components/UserForm.vue Просмотреть файл

@@ -1557,8 +1557,6 @@ export default {
1557 1557
       });
1558 1558
     },
1559 1559
     EditUser(id, patientid) {
1560
-       console.log("hh2h333232332233232323322323",id)
1561
-       console.log("patient_id2323223323223322332323322323",patientid)
1562 1560
       EditUser(id, patientid).then(response => {
1563 1561
         if (response.data.state === 1) {
1564 1562
           this.dialogVisible = true;
@@ -2509,6 +2507,7 @@ export default {
2509 2507
           }else{
2510 2508
             this.form.bed = ""
2511 2509
             this.bedNumberTwo = []
2510
+            this.getAllSubregion()
2512 2511
 
2513 2512
           }
2514 2513
 

+ 138 - 7
src/xt_pages/management/components/WaterForm.vue Просмотреть файл

@@ -214,7 +214,7 @@
214 214
             </el-col>
215 215
             <el-col :span="8">
216 216
                 <el-form-item label="时长(h):"  class="st">
217
-                    <el-input  v-model="form.first_disinfection_time" type="number" style="width:100px" oninput="value=value.replace(/[^\d^\.]/g, '')"></el-input>
217
+                    <el-input  v-model="form.first_disinfection_time" style="width:100px" oninput="value=value.replace(/[^\d^\.]/g, '')"></el-input>
218 218
                 </el-form-item>
219 219
             </el-col>
220 220
          </el-row>
@@ -237,7 +237,7 @@
237 237
             </el-col>
238 238
             <el-col :span="8">
239 239
                 <el-form-item label="时长(h):"  class="st">
240
-                    <el-input  v-model="form.last_disinfection_time" type="number" style="width:100px" oninput="value=value.replace(/[^\d^\.]/g, '')"></el-input>
240
+                    <el-input  v-model="form.last_disinfection_time" style="width:100px" oninput="value=value.replace(/[^\d^\.]/g, '')"></el-input>
241 241
                 </el-form-item>
242 242
             </el-col>
243 243
          </el-row>
@@ -570,7 +570,135 @@ import {getAllDoctorList,saveWaterList} from "@/api/manage";
570 570
                 var deviceWater =  response.data.data.deviceWater
571 571
                 console.log("保存成功!",deviceWater)
572 572
                 this.$message.success("保存成功!")
573
+                console.log("2333333333333333333333333w",this.form.water_conductivity)
574
+                if(this.form.water_conductivity == 0){
575
+                   this.form.water_conductivity = ""
576
+                }
577
+                if(this.form.fault_description == 0){
578
+                   this.form.fault_description = ""
579
+                }
580
+                
581
+                if(this.form.water_conductivity == 0){
582
+                   this.form.water_conductivity = ""
583
+                }
573 584
 
585
+                if(this.form.water_pressure == 0){
586
+                  this.form.water_pressure = ""
587
+                }
588
+               
589
+                if(this.form.temperature == 0){
590
+                   this.form.temperature = ""
591
+                }
592
+
593
+                if(this.form.first_ro_membrane_water == 0){
594
+                   this.form.first_ro_membrane_water = ""
595
+                }
596
+
597
+                if(this.form.first_ro_film_thick_water ==0 ){
598
+                   this.form.first_ro_film_thick_water = ""
599
+                }
600
+
601
+                if(this.form.first_ro_membrane_effluent == 0){
602
+                   this.form.first_ro_membrane_effluent=""
603
+                }
604
+
605
+                if(this.form.first_production_of_water_conductivity == 0){
606
+                   this.form.first_production_of_water_conductivity = ""
607
+                }
608
+                
609
+                if(this.form.first_water_yield == 0){
610
+                   this.form.first_water_yield = ""
611
+                }
612
+              
613
+                if(this.form.last_ro_membrane_water == 0){
614
+                  this.form.last_ro_membrane_water= ""
615
+                }
616
+                
617
+                if(this.form.last_ro_film_thick_water== 0){
618
+                   this.form.last_ro_film_thick_water = ""
619
+                }
620
+
621
+                if(this.form.last_ro_membrane_effluent == 0){
622
+                  this.form.last_ro_membrane_effluent = ""
623
+                }
624
+               
625
+                if(this.form.last_production_of_water_conductivity == 0){
626
+                  this.form.last_production_of_water_conductivity = ""
627
+                }
628
+
629
+                if(this.form.last_water_yield  == 0){
630
+                  this.form.last_water_yield = ""
631
+                }
632
+              
633
+                if(this.form.carbon_tank == 0){
634
+                   this.form.carbon_tank = ""
635
+                }
636
+                
637
+                if(this.form.snd_tank == 0){
638
+                  this.form.snd_tank = ""
639
+                }
640
+             
641
+                if(this.form.resin_tank == 0){
642
+                  this.form.resin_tank= ""
643
+                }
644
+                
645
+                if(this.form.ultrafilter == 0){
646
+                   this.form.ultrafilter= ""
647
+                }
648
+                
649
+                if(this.form.hardness_monitoring  ==0){
650
+                    this.form.hardness_monitoring = ""
651
+                }
652
+                
653
+                if(this.form.total_chlorine_detection == 0){
654
+                  this.form.total_chlorine_detection= ""
655
+                }
656
+                if(this.form.concentration_of_peroxyacetic_acid == 0){
657
+                  this.form.concentration_of_peroxyacetic_acid = ""
658
+                }
659
+                
660
+                if(this.form.reverse_osmosis_membrane_disinfection ==0){
661
+                  this.form.reverse_osmosis_membrane_disinfection = ""
662
+                } 
663
+              
664
+                if(this.form.disinfection_of_water_pipeline == 0){
665
+                  this.form.disinfection_of_water_pipeline= ""
666
+                }
667
+                
668
+                if(this.form.first_disinfection_method == 0){
669
+                    this.form.first_disinfection_method = ""
670
+                }
671
+                
672
+                if(this.form.last_disinfection_method  == 0){
673
+                    this.form.last_disinfection_method = ""
674
+                }
675
+
676
+                if(this.form.first_disinfection_time == 0){
677
+                  this.form.first_disinfection_time = ""
678
+                }
679
+                
680
+                if(this.form.last_disinfection_time == 0){
681
+                  this.form.last_disinfection_time = ""
682
+                }
683
+              
684
+                if(this.form.remark == 0){
685
+                  this.form.remark = ""
686
+                } 
687
+                 
688
+                if(this.form.filter_replacement == 0){
689
+                    this.form.filter_replacement = ""
690
+                }
691
+               
692
+                if(this.form.admin_user_id == 0){
693
+                   this.form.admin_user_id = ""
694
+                }
695
+               
696
+              
697
+               
698
+               
699
+                // this.$parent.toParent()
700
+                
701
+             }else{
574 702
                 this.form.fault_description = ""
575 703
                 this.form.water_conductivity = ""
576 704
                 this.form.water_pressure = ""
@@ -599,7 +727,7 @@ import {getAllDoctorList,saveWaterList} from "@/api/manage";
599 727
                 this.form.first_disinfection_time = ""
600 728
                 this.form.last_disinfection_time = ""
601 729
                 this.form.remark = ""
602
-                this.form.filter_replacement = ""
730
+                this.form.filter_replacement = "" 
603 731
              }
604 732
            })
605 733
 
@@ -612,11 +740,12 @@ import {getAllDoctorList,saveWaterList} from "@/api/manage";
612 740
              var doctorList = response.data.data.list
613 741
              console.log("dcotorlist",doctorList)
614 742
              for(let i=0;i<doctorList.length;i++){
615
-              if(doctorList[i].user_type == 3){
616
-                 this.nurseList.push(doctorList[i])
617
-              }
743
+            //   if(doctorList[i].user_type == 3){
744
+            //      this.nurseList.push(doctorList[i])
745
+            //   }
746
+               this.nurseList.push(doctorList[i])
618 747
              }
619
-
748
+             console.log("nurseLisrt===============",this.nurseList)
620 749
            }
621 750
          })
622 751
        },
@@ -642,6 +771,8 @@ import {getAllDoctorList,saveWaterList} from "@/api/manage";
642 771
     //     }
643 772
     },
644 773
     created(){
774
+       this.form.admin_user_id = this.$store.getters.xt_user.user.id
775
+    //    this.form.admin_user_id = 829
645 776
        this.getAllDoctorList()
646 777
     },
647 778
     mounted(){

+ 11 - 0
src/xt_pages/management/components/WaterFormList.vue Просмотреть файл

@@ -5,6 +5,7 @@
5 5
           <span class="machineClass">日期查询:</span>
6 6
           <el-date-picker
7 7
             v-model="form.start_time"
8
+            @change="changeStartime"
8 9
             prefix-icon="none"
9 10
             type="date"
10 11
             placeholder="请选择"
@@ -14,6 +15,7 @@
14 15
           ></el-date-picker
15 16
           >-
16 17
           <el-date-picker
18
+           @change="changeEndtime"
17 19
             v-model="form.end_time"
18 20
             prefix-icon="none"
19 21
             type="date"
@@ -879,6 +881,14 @@
879 881
         }
880 882
       },
881 883
       methods:{
884
+        changeStartime(){
885
+         this.tableData = []
886
+         this.getlist()
887
+        },
888
+        changeEndtime(){
889
+         this.tableData = []
890
+         this.getlist()
891
+        },
882 892
          getlist(){
883 893
            var params = {
884 894
              start_time:this.form.start_time,
@@ -1328,6 +1338,7 @@
1328 1338
         },
1329 1339
       },
1330 1340
       created(){
1341
+        console.log("list+++++++++++++++++++++++")
1331 1342
         this.getlist()
1332 1343
       }
1333 1344
     }

+ 12 - 4
src/xt_pages/management/home.vue Просмотреть файл

@@ -1368,8 +1368,8 @@
1368 1368
                           </el-tab-pane>
1369 1369
 
1370 1370
                            <el-tab-pane label="使用登记列表" name="second" >
1371
-                             <user-form ref="userForm" :userdata="userdata" v-if="device_type == 1"></user-form>
1372
-                             <water-form-list ref="waterFormList" v-if="device_type == 2" :equimentid="equimentid"></water-form-list>
1371
+                             <user-form ref="childFive" :userdata="userdata" v-if="device_type == 1"></user-form>
1372
+                             <water-form-list ref="childSix" v-if="device_type == 2" :equimentid="equimentid"></water-form-list>
1373 1373
                            </el-tab-pane>
1374 1374
                        </el-tabs>
1375 1375
                      </div>
@@ -3383,7 +3383,7 @@ export default {
3383 3383
         this.getAllMachine()
3384 3384
       },
3385 3385
       changeDeviceId(val) {
3386
-        console.log("val-------",val)
3386
+       
3387 3387
         if (val === 1) {
3388 3388
           this.zoneDisabled = false
3389 3389
         } else {
@@ -3428,7 +3428,7 @@ export default {
3428 3428
         this.tabIndex = index
3429 3429
       },
3430 3430
       handleCurrentChange(val) {
3431
-      
3431
+        console.log("val3223323223",val)
3432 3432
         // 通过设备型号区分质量控制
3433 3433
         this.device_type = val.device_type
3434 3434
         this.unitType = val.unit_type
@@ -3446,6 +3446,14 @@ export default {
3446 3446
         this.GetUserTotalCount(val.bed_id)
3447 3447
         this.getTimeBeteen(val.id)
3448 3448
         this.getData(val.bed_id)
3449
+        if(val.device_type == 2){
3450
+          this.$refs.childSix.getlist()
3451
+        }
3452
+       
3453
+      },
3454
+      toParent(){
3455
+        console.log("处方23322332")
3456
+        this.$refs.childSix.getlist()
3449 3457
       },
3450 3458
       getAutoData(id) {
3451 3459
         getAutoData(id).then(response => {