소스 검색

新分支

28169 2 년 전
부모
커밋
48d571ca88

+ 1 - 1
src/xt_pages/management/components/RepairForm.vue 파일 보기

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

+ 1 - 2
src/xt_pages/management/components/UserForm.vue 파일 보기

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

+ 138 - 7
src/xt_pages/management/components/WaterForm.vue 파일 보기

214
             </el-col>
214
             </el-col>
215
             <el-col :span="8">
215
             <el-col :span="8">
216
                 <el-form-item label="时长(h):"  class="st">
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
                 </el-form-item>
218
                 </el-form-item>
219
             </el-col>
219
             </el-col>
220
          </el-row>
220
          </el-row>
237
             </el-col>
237
             </el-col>
238
             <el-col :span="8">
238
             <el-col :span="8">
239
                 <el-form-item label="时长(h):"  class="st">
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
                 </el-form-item>
241
                 </el-form-item>
242
             </el-col>
242
             </el-col>
243
          </el-row>
243
          </el-row>
570
                 var deviceWater =  response.data.data.deviceWater
570
                 var deviceWater =  response.data.data.deviceWater
571
                 console.log("保存成功!",deviceWater)
571
                 console.log("保存成功!",deviceWater)
572
                 this.$message.success("保存成功!")
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
                 this.form.fault_description = ""
702
                 this.form.fault_description = ""
575
                 this.form.water_conductivity = ""
703
                 this.form.water_conductivity = ""
576
                 this.form.water_pressure = ""
704
                 this.form.water_pressure = ""
599
                 this.form.first_disinfection_time = ""
727
                 this.form.first_disinfection_time = ""
600
                 this.form.last_disinfection_time = ""
728
                 this.form.last_disinfection_time = ""
601
                 this.form.remark = ""
729
                 this.form.remark = ""
602
-                this.form.filter_replacement = ""
730
+                this.form.filter_replacement = "" 
603
              }
731
              }
604
            })
732
            })
605
 
733
 
612
              var doctorList = response.data.data.list
740
              var doctorList = response.data.data.list
613
              console.log("dcotorlist",doctorList)
741
              console.log("dcotorlist",doctorList)
614
              for(let i=0;i<doctorList.length;i++){
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
     //     }
771
     //     }
643
     },
772
     },
644
     created(){
773
     created(){
774
+       this.form.admin_user_id = this.$store.getters.xt_user.user.id
775
+    //    this.form.admin_user_id = 829
645
        this.getAllDoctorList()
776
        this.getAllDoctorList()
646
     },
777
     },
647
     mounted(){
778
     mounted(){

+ 11 - 0
src/xt_pages/management/components/WaterFormList.vue 파일 보기

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

+ 12 - 4
src/xt_pages/management/home.vue 파일 보기

1368
                           </el-tab-pane>
1368
                           </el-tab-pane>
1369
 
1369
 
1370
                            <el-tab-pane label="使用登记列表" name="second" >
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
                            </el-tab-pane>
1373
                            </el-tab-pane>
1374
                        </el-tabs>
1374
                        </el-tabs>
1375
                      </div>
1375
                      </div>
3383
         this.getAllMachine()
3383
         this.getAllMachine()
3384
       },
3384
       },
3385
       changeDeviceId(val) {
3385
       changeDeviceId(val) {
3386
-        console.log("val-------",val)
3386
+       
3387
         if (val === 1) {
3387
         if (val === 1) {
3388
           this.zoneDisabled = false
3388
           this.zoneDisabled = false
3389
         } else {
3389
         } else {
3428
         this.tabIndex = index
3428
         this.tabIndex = index
3429
       },
3429
       },
3430
       handleCurrentChange(val) {
3430
       handleCurrentChange(val) {
3431
-      
3431
+        console.log("val3223323223",val)
3432
         // 通过设备型号区分质量控制
3432
         // 通过设备型号区分质量控制
3433
         this.device_type = val.device_type
3433
         this.device_type = val.device_type
3434
         this.unitType = val.unit_type
3434
         this.unitType = val.unit_type
3446
         this.GetUserTotalCount(val.bed_id)
3446
         this.GetUserTotalCount(val.bed_id)
3447
         this.getTimeBeteen(val.id)
3447
         this.getTimeBeteen(val.id)
3448
         this.getData(val.bed_id)
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
       getAutoData(id) {
3458
       getAutoData(id) {
3451
         getAutoData(id).then(response => {
3459
         getAutoData(id).then(response => {