28169 il y a 2 ans
Parent
révision
979fa10b50

+ 2 - 2
src/xt_pages/management/components/ManageForm.vue Voir le fichier

@@ -16,7 +16,7 @@
16 16
               ></el-input>
17 17
             </el-form-item>
18 18
           </el-col>
19
-
19
+          
20 20
           <el-col :span="8">
21 21
             <el-form-item label="设备类型:" required prop="device_type">
22 22
               <el-select
@@ -851,7 +851,7 @@ export default {
851 851
     padding: 0;
852 852
   }
853 853
   .el-form-item__error {
854
-    margin-left: 210px;
854
+    margin-left: 60px;
855 855
   }
856 856
 }
857 857
 .el-checkbox {

+ 2 - 2
src/xt_pages/management/components/UserForm.vue Voir le fichier

@@ -1570,7 +1570,7 @@ export default {
1570 1570
            if(macher.user_total == ''){
1571 1571
              macher.user_total = 0
1572 1572
            }
1573
-          var totals = count[0].Total + parseInt(macher.user_total)
1573
+          // var totals = count[0].Total + parseInt(macher.user_total)
1574 1574
           this.userform.id = device.id;
1575 1575
           this.userform.spling_date = uParseTime(
1576 1576
               device.date,
@@ -1648,7 +1648,7 @@ export default {
1648 1648
           if (device.disinfection === 0) {
1649 1649
             this.userform.disinfection = "";
1650 1650
           }
1651
-          this.userform.user_total = totals.toString()
1651
+          this.userform.user_total = device.user_total.toString()
1652 1652
         }
1653 1653
       });
1654 1654
     },

+ 64 - 25
src/xt_pages/management/home.vue Voir le fichier

@@ -2885,10 +2885,10 @@ export default {
2885 2885
           patient_name: [{ required: true, message: '请填写患者', trigger: ['blur', 'change'] }],
2886 2886
           disinfect_type: [{ required: true, message: '请填写消毒方式' }],
2887 2887
           disinfectant_type: [{ required: true, message: '请填写消毒液' }],
2888
-          disinfection: [{ required: true, message: '请填写消毒状态' }],
2888
+          disinfection: [{ required: true, message: '请填写消毒状态', trigger: ['blur','change'] }],
2889 2889
           fluid_path: [{ required: true, message: '请填写消毒方式' }],
2890 2890
           disinfectant: [{ required: true, message: '请填写消毒液' }],
2891
-          disinfection_status: [{ required: true, message: '消毒状态' }],
2891
+          disinfection_status: [{ required: true, message: '请填写消毒状态', trigger: ['blur','change'] }],
2892 2892
           sign_name: [{ required: true, message: '请填写签名', trigger: ['blur','change'] }],
2893 2893
           classtype: [{ required: true, message: '请填写班次', trigger: ['blur','change']  }],
2894 2894
           reporting_date:[{required:true,message:"请填写出报告日期"}]
@@ -3093,7 +3093,7 @@ export default {
3093 3093
           { id:29, name:"PE"},
3094 3094
         ],
3095 3095
         disinfection: [
3096
-          { id: 0, name: '请选择' },
3096
+          // { id: 0, name: '请选择' },
3097 3097
           { id: 1, name: '已消毒' },
3098 3098
           { id: 2, name: '未消毒' },
3099 3099
           { id: 3, name: '消毒未完成' }
@@ -3383,11 +3383,15 @@ export default {
3383 3383
         this.getAllMachine()
3384 3384
       },
3385 3385
       changeDeviceId(val) {
3386
+        console.log("val-------",val)
3386 3387
         if (val === 1) {
3387 3388
           this.zoneDisabled = false
3388 3389
         } else {
3389 3390
           this.zoneDisabled = true
3390 3391
         }
3392
+        if(val == 0){
3393
+          this.zoneDisabled = false
3394
+        }
3391 3395
         this.forms.device_type = val
3392 3396
         this.getAllMachine()
3393 3397
       },
@@ -3424,7 +3428,7 @@ export default {
3424 3428
         this.tabIndex = index
3425 3429
       },
3426 3430
       handleCurrentChange(val) {
3427
-       console.log("val232323232323------",val)
3431
+      
3428 3432
         // 通过设备型号区分质量控制
3429 3433
         this.device_type = val.device_type
3430 3434
         this.unitType = val.unit_type
@@ -4480,22 +4484,22 @@ export default {
4480 4484
         }
4481 4485
 
4482 4486
         // eslint-disable-next-line eqeqeq
4483
-        if (this.userform.start_time == '') {
4484
-          this.userform.start_time = '0'
4485
-        }
4486
-        // eslint-disable-next-line eqeqeq
4487
-        if (this.userform.end_time == '') {
4488
-          this.userform.end_time = '0'
4489
-        }
4487
+        // if (this.userform.start_time == '') {
4488
+        //   this.userform.start_time = '0'
4489
+        // }
4490
+        // // eslint-disable-next-line eqeqeq
4491
+        // if (this.userform.end_time == '') {
4492
+        //   this.userform.end_time = '0'
4493
+        // }
4490 4494
 
4491
-        // eslint-disable-next-line eqeqeq
4492
-        if (this.userform.starttime == '') {
4493
-          this.userform.starttime = '0'
4494
-        }
4495
-        // eslint-disable-next-line eqeqeq
4496
-        if (this.userform.endtime == '') {
4497
-          this.userform.endtime = '0'
4498
-        }
4495
+        // // eslint-disable-next-line eqeqeq
4496
+        // if (this.userform.starttime == '') {
4497
+        //   this.userform.starttime = '0'
4498
+        // }
4499
+        // // eslint-disable-next-line eqeqeq
4500
+        // if (this.userform.endtime == '') {
4501
+        //   this.userform.endtime = '0'
4502
+        // }
4499 4503
 
4500 4504
         if (this.userform.hyperfiltratio === '') {
4501 4505
           this.userform.hyperfiltratio = 0
@@ -4582,8 +4586,18 @@ export default {
4582 4586
             this.userform.patient_id = information.patient_id
4583 4587
             this.userform.contagion = information.contagion
4584 4588
             this.userform.dialysis_mode = information.dialysis_mode
4585
-            this.userform.start_time = this.updateTimes(information.start_time)
4586
-            this.userform.end_time = this.updateTimes(information.end_time)
4589
+            if(information.start_time > 0){
4590
+              this.userform.start_time = this.updateTimes(information.start_time)
4591
+            }else{
4592
+              this.userform.start_time =  ""
4593
+            }
4594
+            if(information.end_time >0){
4595
+              this.userform.end_time = this.updateTimes(information.end_time)
4596
+            }else{
4597
+              this.userform.end_time = ""
4598
+            }
4599
+          
4600
+           
4587 4601
             // this.userform.end_time = uParseTime(information.end_time, '{y}-{m}-{d} {h}:{i}')
4588 4602
             if (information.hyperfiltratio === '') {
4589 4603
               this.userform.hyperfiltratio = dislysis.actual_ultrafiltration
@@ -4612,15 +4626,36 @@ export default {
4612 4626
             this.userform.fault_description = information.fault_description
4613 4627
             this.userform.code_information = information.code_information
4614 4628
             this.userform.disinfect_type = information.disinfect_type
4615
-            this.userform.disinfection = information.disinfection
4629
+            if(information.disinfection == 0){
4630
+              this.userform.disinfection = ""
4631
+            }else{
4632
+              this.userform.disinfection = information.disinfection
4633
+            }
4634
+           
4616 4635
             this.userform.machine_run = information.machine_run
4617 4636
             this.userform.fluid_path = information.fluid_path
4618 4637
             this.userform.disinfectant = information.disinfectant
4619
-            this.userform.disinfection_status = information.disinfection_status
4638
+            if(information.disinfection_status == 0){
4639
+               this.userform.disinfection_status = ""
4640
+            }else{
4641
+              this.userform.disinfection_status = information.disinfection_status
4642
+            }
4643
+           
4620 4644
             this.userform.disinfection_residue = information.disinfection_residue
4621 4645
             this.userform.longtime = information.long_time
4622
-            this.userform.starttime = this.updateTimes(information.disinfec_startime)
4623
-            this.userform.endtime = this.updateTimes(information.disinfec_endtime)
4646
+            if(information.disinfec_startime >0){
4647
+              this.userform.starttime = this.updateTimes(information.disinfec_startime)
4648
+            }else{
4649
+              this.userform.starttime= ""
4650
+            }
4651
+
4652
+            if(information.disinfec_endtime >0){
4653
+              this.userform.endtime = this.updateTimes(information.disinfec_endtime)
4654
+            }else{
4655
+              this.userform.endtime = ""
4656
+            }
4657
+           
4658
+           
4624 4659
 
4625 4660
             if (information.dialysis_checked === 1) {
4626 4661
               this.userform.dialysis_checked = true
@@ -5413,10 +5448,14 @@ export default {
5413 5448
   }
5414 5449
   .el-form-item__error {
5415 5450
     margin-left: 130px;
5451
+    
5416 5452
   }
5417 5453
 
5418 5454
 </style>
5419 5455
 <style lang="scss">
5456
+    .el-form-item__error {
5457
+      left:103px !important;
5458
+    }
5420 5459
    .a{
5421 5460
      margin-bottom: 10px;
5422 5461
       margin-top: 6px;