28169 2 lat temu
rodzic
commit
979fa10b50

+ 2 - 2
src/xt_pages/management/components/ManageForm.vue Wyświetl plik

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

+ 2 - 2
src/xt_pages/management/components/UserForm.vue Wyświetl plik

1570
            if(macher.user_total == ''){
1570
            if(macher.user_total == ''){
1571
              macher.user_total = 0
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
           this.userform.id = device.id;
1574
           this.userform.id = device.id;
1575
           this.userform.spling_date = uParseTime(
1575
           this.userform.spling_date = uParseTime(
1576
               device.date,
1576
               device.date,
1648
           if (device.disinfection === 0) {
1648
           if (device.disinfection === 0) {
1649
             this.userform.disinfection = "";
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 Wyświetl plik

2885
           patient_name: [{ required: true, message: '请填写患者', trigger: ['blur', 'change'] }],
2885
           patient_name: [{ required: true, message: '请填写患者', trigger: ['blur', 'change'] }],
2886
           disinfect_type: [{ required: true, message: '请填写消毒方式' }],
2886
           disinfect_type: [{ required: true, message: '请填写消毒方式' }],
2887
           disinfectant_type: [{ required: true, message: '请填写消毒液' }],
2887
           disinfectant_type: [{ required: true, message: '请填写消毒液' }],
2888
-          disinfection: [{ required: true, message: '请填写消毒状态' }],
2888
+          disinfection: [{ required: true, message: '请填写消毒状态', trigger: ['blur','change'] }],
2889
           fluid_path: [{ required: true, message: '请填写消毒方式' }],
2889
           fluid_path: [{ required: true, message: '请填写消毒方式' }],
2890
           disinfectant: [{ required: true, message: '请填写消毒液' }],
2890
           disinfectant: [{ required: true, message: '请填写消毒液' }],
2891
-          disinfection_status: [{ required: true, message: '消毒状态' }],
2891
+          disinfection_status: [{ required: true, message: '请填写消毒状态', trigger: ['blur','change'] }],
2892
           sign_name: [{ required: true, message: '请填写签名', trigger: ['blur','change'] }],
2892
           sign_name: [{ required: true, message: '请填写签名', trigger: ['blur','change'] }],
2893
           classtype: [{ required: true, message: '请填写班次', trigger: ['blur','change']  }],
2893
           classtype: [{ required: true, message: '请填写班次', trigger: ['blur','change']  }],
2894
           reporting_date:[{required:true,message:"请填写出报告日期"}]
2894
           reporting_date:[{required:true,message:"请填写出报告日期"}]
3093
           { id:29, name:"PE"},
3093
           { id:29, name:"PE"},
3094
         ],
3094
         ],
3095
         disinfection: [
3095
         disinfection: [
3096
-          { id: 0, name: '请选择' },
3096
+          // { id: 0, name: '请选择' },
3097
           { id: 1, name: '已消毒' },
3097
           { id: 1, name: '已消毒' },
3098
           { id: 2, name: '未消毒' },
3098
           { id: 2, name: '未消毒' },
3099
           { id: 3, name: '消毒未完成' }
3099
           { id: 3, name: '消毒未完成' }
3383
         this.getAllMachine()
3383
         this.getAllMachine()
3384
       },
3384
       },
3385
       changeDeviceId(val) {
3385
       changeDeviceId(val) {
3386
+        console.log("val-------",val)
3386
         if (val === 1) {
3387
         if (val === 1) {
3387
           this.zoneDisabled = false
3388
           this.zoneDisabled = false
3388
         } else {
3389
         } else {
3389
           this.zoneDisabled = true
3390
           this.zoneDisabled = true
3390
         }
3391
         }
3392
+        if(val == 0){
3393
+          this.zoneDisabled = false
3394
+        }
3391
         this.forms.device_type = val
3395
         this.forms.device_type = val
3392
         this.getAllMachine()
3396
         this.getAllMachine()
3393
       },
3397
       },
3424
         this.tabIndex = index
3428
         this.tabIndex = index
3425
       },
3429
       },
3426
       handleCurrentChange(val) {
3430
       handleCurrentChange(val) {
3427
-       console.log("val232323232323------",val)
3431
+      
3428
         // 通过设备型号区分质量控制
3432
         // 通过设备型号区分质量控制
3429
         this.device_type = val.device_type
3433
         this.device_type = val.device_type
3430
         this.unitType = val.unit_type
3434
         this.unitType = val.unit_type
4480
         }
4484
         }
4481
 
4485
 
4482
         // eslint-disable-next-line eqeqeq
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
         if (this.userform.hyperfiltratio === '') {
4504
         if (this.userform.hyperfiltratio === '') {
4501
           this.userform.hyperfiltratio = 0
4505
           this.userform.hyperfiltratio = 0
4582
             this.userform.patient_id = information.patient_id
4586
             this.userform.patient_id = information.patient_id
4583
             this.userform.contagion = information.contagion
4587
             this.userform.contagion = information.contagion
4584
             this.userform.dialysis_mode = information.dialysis_mode
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
             // this.userform.end_time = uParseTime(information.end_time, '{y}-{m}-{d} {h}:{i}')
4601
             // this.userform.end_time = uParseTime(information.end_time, '{y}-{m}-{d} {h}:{i}')
4588
             if (information.hyperfiltratio === '') {
4602
             if (information.hyperfiltratio === '') {
4589
               this.userform.hyperfiltratio = dislysis.actual_ultrafiltration
4603
               this.userform.hyperfiltratio = dislysis.actual_ultrafiltration
4612
             this.userform.fault_description = information.fault_description
4626
             this.userform.fault_description = information.fault_description
4613
             this.userform.code_information = information.code_information
4627
             this.userform.code_information = information.code_information
4614
             this.userform.disinfect_type = information.disinfect_type
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
             this.userform.machine_run = information.machine_run
4635
             this.userform.machine_run = information.machine_run
4617
             this.userform.fluid_path = information.fluid_path
4636
             this.userform.fluid_path = information.fluid_path
4618
             this.userform.disinfectant = information.disinfectant
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
             this.userform.disinfection_residue = information.disinfection_residue
4644
             this.userform.disinfection_residue = information.disinfection_residue
4621
             this.userform.longtime = information.long_time
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
             if (information.dialysis_checked === 1) {
4660
             if (information.dialysis_checked === 1) {
4626
               this.userform.dialysis_checked = true
4661
               this.userform.dialysis_checked = true
5413
   }
5448
   }
5414
   .el-form-item__error {
5449
   .el-form-item__error {
5415
     margin-left: 130px;
5450
     margin-left: 130px;
5451
+    
5416
   }
5452
   }
5417
 
5453
 
5418
 </style>
5454
 </style>
5419
 <style lang="scss">
5455
 <style lang="scss">
5456
+    .el-form-item__error {
5457
+      left:103px !important;
5458
+    }
5420
    .a{
5459
    .a{
5421
      margin-bottom: 10px;
5460
      margin-bottom: 10px;
5422
       margin-top: 6px;
5461
       margin-top: 6px;