Selaa lähdekoodia

Merge branch '20230223_pc_vue_new_branch' of http://git.shengws.com/csx/Vue_New into 20230223_pc_vue_new_branch

28169 2 vuotta sitten
vanhempi
commit
afd877f495

+ 34 - 133
src/xt_pages/management/components/RepairForm.vue Näytä tiedosto

1
 <template>
1
 <template>
2
   <div>
2
   <div>
3
     <el-row class="row">
3
     <el-row class="row">
4
-      <!-- <el-col :span="5">
4
+      <el-col :span="5">
5
         <span class="machineClass">机号:</span>
5
         <span class="machineClass">机号:</span>
6
         <el-select style="width:100px" v-model="forms.bed">
6
         <el-select style="width:100px" v-model="forms.bed">
7
           <el-option
7
           <el-option
11
             :value="item.id"
11
             :value="item.id"
12
           ></el-option>
12
           ></el-option>
13
         </el-select>
13
         </el-select>
14
-      </el-col> -->
14
+      </el-col>
15
       <el-col :span="11">
15
       <el-col :span="11">
16
         <span class="machineClass">日期查询:</span>
16
         <span class="machineClass">日期查询:</span>
17
         <el-date-picker
17
         <el-date-picker
52
           <el-button type="primary" @click="printCard">打印</el-button>
52
           <el-button type="primary" @click="printCard">打印</el-button>
53
       </el-col>
53
       </el-col>
54
     </el-row>
54
     </el-row>
55
-    <el-row>
56
 
55
 
57
       <el-table
56
       <el-table
58
         ref="multipleTable"
57
         ref="multipleTable"
81
 
80
 
82
         <el-table-column prop="date" label= "型号" width="80" align="center">
81
         <el-table-column prop="date" label= "型号" width="80" align="center">
83
           <template slot-scope="scope">
82
           <template slot-scope="scope">
84
-            <span v-if="getRepairName(scope.row.equitment_id) == 1">透析机</span> 
85
-            <span v-if="getRepairName(scope.row.equitment_id) == 2">水处理机</span> 
86
-            <span v-if="getRepairName(scope.row.equitment_id) == 3">其他</span> 
83
+            <span v-if="getRepairName(scope.row.equitment_id) == 1">透析机</span>
84
+            <span v-if="getRepairName(scope.row.equitment_id) == 2">水处理机</span>
85
+            <span v-if="getRepairName(scope.row.equitment_id) == 3">其他</span>
87
           </template>
86
           </template>
88
         </el-table-column>
87
         </el-table-column>
89
 
88
 
136
               {{ scope.row.reason }}
135
               {{ scope.row.reason }}
137
               </template>
136
               </template>
138
            </el-table-column>
137
            </el-table-column>
139
- 
140
-      
141
-        
138
+
139
+
140
+
142
         <el-table-column label="操作" align="center" min-width="150px">
141
         <el-table-column label="操作" align="center" min-width="150px">
143
           <template slot-scope="scope">
142
           <template slot-scope="scope">
144
             <el-tooltip
143
             <el-tooltip
333
             </el-tooltip>
332
             </el-tooltip>
334
           </template>
333
           </template>
335
         </el-table-column>
334
         </el-table-column>
336
-      </el-table> -->
335
+      </el-table>
337
       <el-pagination
336
       <el-pagination
338
         @size-change="handleSizeChange"
337
         @size-change="handleSizeChange"
339
         @current-change="handleCurrentChange"
338
         @current-change="handleCurrentChange"
415
             </el-form-item>
414
             </el-form-item>
416
           </el-col>
415
           </el-col>
417
         </el-row>
416
         </el-row>
418
-        <el-row>
419
-          <el-col :span="24">
420
-              <el-form-item class="formItem" label="功能及附件检查:">
421
-                  <el-input
422
-                    type="textarea"
423
-                    :rows="2"
424
-                      placeholder="请输入内容"
425
-                      v-model="guaForm.function_accessories_inspection"
426
-                    style="width:85%">
427
-                  </el-input>
428
-              </el-form-item>
429
-            </el-col>
430
-        </el-row>
431
-        <el-row>
432
-        <el-col :span="24">
433
-            <el-form-item class="formItem" label="其他:">
434
-                <el-input
435
-                  type="textarea"
436
-                  :rows="2"
437
-                    placeholder="请输入内容"
438
-                    v-model="guaForm.other_information"
439
-                  style="width:85%">
440
-                </el-input>
441
-            </el-form-item>
442
-          </el-col>
443
-        </el-row>
444
         <el-row>
417
         <el-row>
445
           <el-col :span="24">
418
           <el-col :span="24">
446
             <el-form-item label="故障发生阶段">
419
             <el-form-item label="故障发生阶段">
471
         </el-row>
444
         </el-row>
472
         <el-row>
445
         <el-row>
473
           <el-col :span="8">
446
           <el-col :span="8">
474
-            <el-form-item label="故障现象:" required prop="fault_description">
447
+            <el-form-item label="故障描述:" required prop="fault_description">
475
               <el-input
448
               <el-input
476
                 type="textarea"
449
                 type="textarea"
477
                 :rows="2"
450
                 :rows="2"
482
             </el-form-item>
455
             </el-form-item>
483
           </el-col>
456
           </el-col>
484
           <el-col :span="8">
457
           <el-col :span="8">
485
-            <el-form-item label="维修内容:">
458
+            <el-form-item label="原因分析:">
486
               <el-input
459
               <el-input
487
                 type="textarea"
460
                 type="textarea"
488
                 :rows="2"
461
                 :rows="2"
493
             </el-form-item>
466
             </el-form-item>
494
           </el-col>
467
           </el-col>
495
           <el-col :span="8">
468
           <el-col :span="8">
496
-            <el-form-item label="维修结果:">
469
+            <el-form-item label="处理过程:">
497
               <el-input
470
               <el-input
498
                 type="textarea"
471
                 type="textarea"
499
                 :rows="2"
472
                 :rows="2"
543
         </el-row>
516
         </el-row>
544
         <el-row>
517
         <el-row>
545
           <el-col :span="20">
518
           <el-col :span="20">
546
-            <el-form-item label="备注:">
519
+            <el-form-item label="原因:">
547
               <el-input
520
               <el-input
548
                 type="textarea"
521
                 type="textarea"
549
                 :rows="2"
522
                 :rows="2"
554
             </el-form-item>
527
             </el-form-item>
555
           </el-col>
528
           </el-col>
556
         </el-row>
529
         </el-row>
557
-        <el-row>
558
-          <el-col :span="20">
559
-            <el-form-item label="维修者:">
560
-              <el-select v-model="guaForm.admin_user_id" placeholder="请选择" >
561
-                      <el-option
562
-                      v-for="item in docList"
563
-                      :key="item.admin_user_id"
564
-                      :label="item.user_name"
565
-                      :value="item.admin_user_id"
566
-                      style="width:185px">
567
-                      </el-option>
568
-              </el-select>
569
-            </el-form-item>
570
-          </el-col>
571
-        </el-row>
572
       </el-form>
530
       </el-form>
573
       <span slot="footer" class="dialog-footer">
531
       <span slot="footer" class="dialog-footer">
574
 <!--        <button @click="lili">调试</button>-->
532
 <!--        <button @click="lili">调试</button>-->
616
                 >
574
                 >
617
                  保养维护内容
575
                  保养维护内容
618
                 </td>
576
                 </td>
619
-              
577
+
620
                 <td
578
                 <td
621
                   :colspan="3"
579
                   :colspan="3"
622
                   style="text-align:center;width:60px;font-size:15px;"
580
                   style="text-align:center;width:60px;font-size:15px;"
630
                 >
588
                 >
631
                  维修者
589
                  维修者
632
                 </td>
590
                 </td>
633
-              
591
+
634
                 <td
592
                 <td
635
                   :rowspan="2"
593
                   :rowspan="2"
636
                   style="text-align:center;width:120px;font-size:15px;"
594
                   style="text-align:center;width:120px;font-size:15px;"
646
                 </td>
604
                 </td>
647
 
605
 
648
 
606
 
649
-               
650
-               
607
+
608
+
651
               </tr>
609
               </tr>
652
               <tr>
610
               <tr>
653
-              
611
+
654
                 <td style="text-align:center;font-size:15px;height:30px">
612
                 <td style="text-align:center;font-size:15px;height:30px">
655
                   功能及附件检查
613
                   功能及附件检查
656
                 </td>
614
                 </td>
659
                   其他
617
                   其他
660
                 </td>
618
                 </td>
661
 
619
 
662
-                 
620
+
663
                 <td style="text-align:center;font-size:15px;height:30px">
621
                 <td style="text-align:center;font-size:15px;height:30px">
664
                   故障现象
622
                   故障现象
665
                 </td>
623
                 </td>
671
                 <td style="text-align:center;font-size:15px;height:30px">
629
                 <td style="text-align:center;font-size:15px;height:30px">
672
                   维修结果
630
                   维修结果
673
                 </td>
631
                 </td>
674
-           
675
-               
676
-            
632
+
633
+
634
+
677
               </tr>
635
               </tr>
678
               <tr v-for="item in this.tableData" :key="item.id">
636
               <tr v-for="item in this.tableData" :key="item.id">
679
                 <td style="text-align:center;font-size:15px;height:30px">
637
                 <td style="text-align:center;font-size:15px;height:30px">
681
                 </td>
639
                 </td>
682
 
640
 
683
                 <td style="text-align:center;font-size:15px;height:30px">
641
                 <td style="text-align:center;font-size:15px;height:30px">
684
-                  <span v-if="getRepairName(item.equitment_id) == 1">透析机</span> 
685
-                  <span v-if="getRepairName(item.equitment_id) == 2">水处理机</span> 
686
-                  <span v-if="getRepairName(item.equitment_id) == 3">其他</span> 
642
+                  <span v-if="getRepairName(item.equitment_id) == 1">透析机</span>
643
+                  <span v-if="getRepairName(item.equitment_id) == 2">水处理机</span>
644
+                  <span v-if="getRepairName(item.equitment_id) == 3">其他</span>
687
                 </td>
645
                 </td>
688
-                
646
+
689
                 <td style="text-align:center;font-size:15px;height:30px">
647
                 <td style="text-align:center;font-size:15px;height:30px">
690
                   {{item.function_accessories_inspection }}
648
                   {{item.function_accessories_inspection }}
691
                 </td>
649
                 </td>
693
                 <td style="text-align:center;font-size:15px;height:30px">
651
                 <td style="text-align:center;font-size:15px;height:30px">
694
                   {{ item.other_information }}
652
                   {{ item.other_information }}
695
                 </td>
653
                 </td>
696
-                 
654
+
697
                 <td style="text-align:center;font-size:15px;height:30px">
655
                 <td style="text-align:center;font-size:15px;height:30px">
698
                   {{ item.fault_description }}
656
                   {{ item.fault_description }}
699
                 </td>
657
                 </td>
700
-                
658
+
701
                 <td style="text-align:center;font-size:15px;height:30px">
659
                 <td style="text-align:center;font-size:15px;height:30px">
702
                    {{item.cause_analysis }}
660
                    {{item.cause_analysis }}
703
                 </td>
661
                 </td>
710
                 <td style="text-align:center;font-size:15px;height:30px">
668
                 <td style="text-align:center;font-size:15px;height:30px">
711
                   {{ getName(item.admin_user_id) }}
669
                   {{ getName(item.admin_user_id) }}
712
                 </td>
670
                 </td>
713
-                
671
+
714
                 <td style="text-align:center;font-size:15px;height:30px">
672
                 <td style="text-align:center;font-size:15px;height:30px">
715
                   {{ getTime(item.guarantee_date) }}
673
                   {{ getTime(item.guarantee_date) }}
716
                 </td>
674
                 </td>
718
                 <td style="text-align:center;font-size:15px;height:30px">
676
                 <td style="text-align:center;font-size:15px;height:30px">
719
                   {{item.reason }}
677
                   {{item.reason }}
720
                 </td>
678
                 </td>
721
-             
679
+
722
               </tr>
680
               </tr>
723
             </table>
681
             </table>
724
           </div>
682
           </div>
745
   name: "RepairForm",
703
   name: "RepairForm",
746
   data() {
704
   data() {
747
     return {
705
     return {
748
-      nowTime: moment(new Date()).format("YYYY-MM-DD HH:MM:SS"),
749
       dialogVisible: false,
706
       dialogVisible: false,
750
       selectCulture: [],
707
       selectCulture: [],
751
       forms: {
708
       forms: {
769
         exclude: "",
726
         exclude: "",
770
         reason: "",
727
         reason: "",
771
         code_information: "",
728
         code_information: "",
772
-        image_name: "",
773
-        admin_user_id:this.$store.getters.xt_user.user.id,
774
-        function_accessories_inspection:"",
775
-        other_information:"",
729
+        image_name: ""
776
       },
730
       },
777
       isIndeterminate: false,
731
       isIndeterminate: false,
778
       checkAllStatus: false,
732
       checkAllStatus: false,
800
       limit: 10,
754
       limit: 10,
801
       page: 1,
755
       page: 1,
802
       total: 0,
756
       total: 0,
803
-      macherList:[],
804
-      docList:[],
805
-      hiddenShow:false,
806
     };
757
     };
807
   },
758
   },
808
   methods: {
759
   methods: {
835
         if (response.data.state === 1) {
786
         if (response.data.state === 1) {
836
           var repair = response.data.data.repair;
787
           var repair = response.data.data.repair;
837
           console.log("repair是", repair);
788
           console.log("repair是", repair);
838
-          var macherList = response.data.data.macherList
839
-         
840
-          this.macherList = macherList
841
-          this.docList = response.data.data.docList
842
           // eslint-disable-next-line no-unused-vars
789
           // eslint-disable-next-line no-unused-vars
843
           var total = response.data.data.total;
790
           var total = response.data.data.total;
844
           this.total = total;
791
           this.total = total;
877
               repair[index].exclude = "未解决";
824
               repair[index].exclude = "未解决";
878
             }
825
             }
879
           }
826
           }
880
-          console.log("repair------",repair)
881
           this.tableData = repair;
827
           this.tableData = repair;
882
         }
828
         }
883
       });
829
       });
900
         if (response.data.state === 1) {
846
         if (response.data.state === 1) {
901
           var repair = response.data.data.repair;
847
           var repair = response.data.data.repair;
902
           console.log("repair", repair);
848
           console.log("repair", repair);
903
-          this.docList = response.data.data.docList
904
           this.guaForm.guarantee_date = uParseTime(
849
           this.guaForm.guarantee_date = uParseTime(
905
             repair.guarantee_date,
850
             repair.guarantee_date,
906
             "{y}-{m}-{d}"
851
             "{y}-{m}-{d}"
928
           this.guaForm.code_information = repair.code_information;
873
           this.guaForm.code_information = repair.code_information;
929
           this.guaForm.id = repair.id;
874
           this.guaForm.id = repair.id;
930
           this.filename = repair.image_name;
875
           this.filename = repair.image_name;
931
-          this.guaForm.admin_user_id = repair.admin_user_id
932
-          this.guaForm.function_accessories_inspection = repair.function_accessories_inspection
933
-          this.guaForm.other_information= repair.other_information
934
         }
876
         }
935
       });
877
       });
936
     },
878
     },
1137
         });
1079
         });
1138
       });
1080
       });
1139
     },
1081
     },
1140
-    getDeviceName(id){
1141
-      var device_name= ""
1142
-      for(let i=0;i<this.macherList.length;i++){
1143
-        if(id == this.macherList[i].id){
1144
-           device_name = this.macherList[i].device_name
1145
-        }
1146
-      }
1147
-      return device_name
1148
-    },
1149
-    getRepairName(id){
1150
-      var device_type= ""
1151
-      for(let i=0;i<this.macherList.length;i++){
1152
-        if(id == this.macherList[i].id){
1153
-          device_type = this.macherList[i].device_type
1154
-        }
1155
-      }
1156
-      return device_type
1157
-    },
1158
-    getName(admin_user_id){
1159
-      var user_name = ""
1160
-      for(let i=0;i<this.docList.length;i++){
1161
-        if(admin_user_id == this.docList[i].admin_user_id){
1162
-           user_name = this.docList[i].user_name
1163
-        }
1164
-      }
1165
-      return user_name
1166
-    },
1167
-    printCard() {
1168
-        this.hiddenShow = true;
1169
-        var ptime = Math.round(new Date().getTime() / 1000);
1170
-        this.print_time = uParseTime(ptime, "{y}年{m}月{d}日");
1171
-
1172
-        const style =
1173
-          "@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}";
1174
-
1175
-        setTimeout(() => {
1176
-          printJS({
1177
-            printable: "print-card-info-one",
1178
-            type: "html",
1179
-            style: style,
1180
-            scanStyles: false
1181
-          });
1182
-        }, 1);
1183
-      },
1082
+    printCard(){
1083
+      console.log('sadfgadsf');
1084
+    }
1184
   },
1085
   },
1185
   created() {
1086
   created() {
1186
     this.getAllSubregion();
1087
     this.getAllSubregion();

+ 27 - 26
src/xt_pages/management/components/UserForm.vue Näytä tiedosto

362
                 value-format="yyyy-MM-dd HH:mm"
362
                 value-format="yyyy-MM-dd HH:mm"
363
                 placeholder="选择时间"
363
                 placeholder="选择时间"
364
                 v-model="userform.start_time"
364
                 v-model="userform.start_time"
365
-                style="width:185px"
365
+
366
               ></el-date-picker>
366
               ></el-date-picker>
367
             </el-form-item>
367
             </el-form-item>
368
           </el-col>
368
           </el-col>
374
                 value-format="yyyy-MM-dd HH:mm"
374
                 value-format="yyyy-MM-dd HH:mm"
375
                 placeholder="选择时间"
375
                 placeholder="选择时间"
376
                 v-model="userform.end_time"
376
                 v-model="userform.end_time"
377
-                style="width:185px"
378
               ></el-date-picker>
377
               ></el-date-picker>
379
             </el-form-item>
378
             </el-form-item>
380
           </el-col>
379
           </el-col>
634
                 value-format="yyyy-MM-dd HH:mm"
633
                 value-format="yyyy-MM-dd HH:mm"
635
                 placeholder="选择时间"
634
                 placeholder="选择时间"
636
                 v-model="userform.starttime"
635
                 v-model="userform.starttime"
637
-                style="width:185px"
636
+
638
               ></el-date-picker>
637
               ></el-date-picker>
639
             </el-form-item>
638
             </el-form-item>
640
           </el-col>
639
           </el-col>
646
                 value-format="yyyy-MM-dd HH:mm"
645
                 value-format="yyyy-MM-dd HH:mm"
647
                 placeholder="选择时间"
646
                 placeholder="选择时间"
648
                 v-model="userform.endtime"
647
                 v-model="userform.endtime"
649
-                style="width:185px"
648
+
650
               ></el-date-picker>
649
               ></el-date-picker>
651
             </el-form-item>
650
             </el-form-item>
652
           </el-col>
651
           </el-col>
800
               <tr>
799
               <tr>
801
                 <td
800
                 <td
802
                   :rowspan="2"
801
                   :rowspan="2"
803
-                  style="text-align:center;width:60px;font-size:15px;"
802
+                  style="text-align:center;min-width:40px; font-size:15px;"
804
                 >
803
                 >
805
                   机号
804
                   机号
806
                 </td>
805
                 </td>
807
                 <td
806
                 <td
808
                   :rowspan="2"
807
                   :rowspan="2"
809
-                  style="text-align:center;width:100px;font-size:15px"
808
+                  style="text-align:center;min-width:40px;font-size:15px"
810
                 >
809
                 >
811
                   日期
810
                   日期
812
                 </td>
811
                 </td>
813
                 <td
812
                 <td
814
                   :rowspan="2"
813
                   :rowspan="2"
815
-                  style="text-align:center;width:50px;font-size:15px"
814
+                  style="text-align:center;min-width:40px;font-size:15px"
816
                 >
815
                 >
817
                   班次
816
                   班次
818
                 </td>
817
                 </td>
819
                 <td
818
                 <td
820
                   :rowspan="2"
819
                   :rowspan="2"
821
-                  style="text-align:center;width:70px;font-size:15px"
820
+                  style="text-align:center;min-width:40px;font-size:15px"
822
                 >
821
                 >
823
                   患者
822
                   患者
824
                 </td>
823
                 </td>
825
                 <td
824
                 <td
826
                   :rowspan="2"
825
                   :rowspan="2"
827
-                  style="text-align:center;width:60px;font-size:15px"
826
+                  style="text-align:center;min-width:40px;font-size:15px"
828
                 >
827
                 >
829
                   透析方式
828
                   透析方式
830
                 </td>
829
                 </td>
831
                 <td
830
                 <td
832
                   :rowspan="2"
831
                   :rowspan="2"
833
-                  style="text-align:center;width:60px;font-size:15px"
832
+                  style="text-align:center;min-width:40px;font-size:15px"
834
                 >
833
                 >
835
                   使用次数
834
                   使用次数
836
                 </td>
835
                 </td>
842
                 </td>
841
                 </td>
843
                 <td
842
                 <td
844
                   :colspan="4"
843
                   :colspan="4"
845
-                  style="text-align:center;width:60px;font-size:15px"
844
+                  style="text-align:center;font-size:15px"
846
                 >
845
                 >
847
                   机表(床单元、床旁桌)消毒
846
                   机表(床单元、床旁桌)消毒
848
                 </td>
847
                 </td>
849
                 <td
848
                 <td
850
-                  :colspan="5"
851
-                  style="text-align:center;width:80px;font-size:15px"
849
+                  :colspan="6"
850
+                  style="text-align:center;font-size:15px"
852
                 >
851
                 >
853
                   液路消毒
852
                   液路消毒
854
                 </td>
853
                 </td>
855
                 <td
854
                 <td
856
                   :rowspan="2"
855
                   :rowspan="2"
857
-                  style="text-align:center;width:80px;font-size:15px"
856
+                  style="text-align:center;min-width:40px;font-size:15px"
858
                 >
857
                 >
859
                  透析机消毒液(更换)
858
                  透析机消毒液(更换)
860
                 </td>
859
                 </td>
878
                 </td>
877
                 </td>
879
               </tr>
878
               </tr>
880
               <tr>
879
               <tr>
881
-                <td style="text-align:center;width:70px;font-size:15px">
880
+                <td style="text-align:center;min-width:40px;font-size:15px">
882
                   消毒方式
881
                   消毒方式
883
                 </td>
882
                 </td>
884
-                <td style="text-align:center;width:50px;font-size:15px">
883
+                <td style="text-align:center;min-width:40px;font-size:15px">
885
                   消毒液
884
                   消毒液
886
                 </td>
885
                 </td>
887
-                <td style="text-align:center;width:70px;font-size:15px">
886
+                <td style="text-align:center;min-width:40px;font-size:15px">
888
                   消毒状态
887
                   消毒状态
889
                 </td>
888
                 </td>
890
-                <td style="text-align:center;width:95px;font-size:15px">
889
+                <td style="text-align:center;min-width:40px;font-size:15px">
891
                   消毒液浓度
890
                   消毒液浓度
892
                 </td>
891
                 </td>
893
-                <td style="text-align:center;width:70px;font-size:15px">
892
+                <td style="text-align:center;min-width:40px;font-size:15px">
894
                   消毒方式
893
                   消毒方式
895
                 </td>
894
                 </td>
896
-                <td style="text-align:center;width:50px;font-size:15px">
895
+                <td style="text-align:center;min-width:40px;font-size:15px">
897
                   消毒液
896
                   消毒液
898
                 </td>
897
                 </td>
899
-                <td style="text-align:center;width:70px;font-size:15px">
898
+                <td style="text-align:center;min-width:40px;font-size:15px">
899
+                  开始消毒时间
900
+                </td>
901
+                <td style="text-align:center;min-width:40px;font-size:15px">
900
                   消毒时长/min
902
                   消毒时长/min
901
                 </td>
903
                 </td>
902
-                <td style="text-align:center;width:70px;font-size:15px">
904
+                <td style="text-align:center;min-width:40px;font-size:15px">
903
                   消毒状态
905
                   消毒状态
904
                 </td>
906
                 </td>
905
-                <td style="text-align:center;width:70px;font-size:15px">
907
+                <td style="text-align:center;min-width:40px;font-size:15px">
906
                   消毒液残留
908
                   消毒液残留
907
                 </td>
909
                 </td>
908
               </tr>
910
               </tr>
2509
             this.bedNumberTwo = []
2511
             this.bedNumberTwo = []
2510
 
2512
 
2511
           }
2513
           }
2512
-          
2514
+
2513
         }
2515
         }
2514
       });
2516
       });
2515
     },
2517
     },
2593
       this.getBedForm(newvalue);
2595
       this.getBedForm(newvalue);
2594
       this.value = newvalue;
2596
       this.value = newvalue;
2595
     }
2597
     }
2596
-
2597
   }
2598
   }
2598
 };
2599
 };
2599
 </script>
2600
 </script>
2635
     text-align: right;
2636
     text-align: right;
2636
   }
2637
   }
2637
   .el-input--prefix .el-input__inner {
2638
   .el-input--prefix .el-input__inner {
2638
-    padding-left: 15px;
2639
+    // padding-left: 15px;
2639
   }
2640
   }
2640
   .el-input--prefix .el-input__inner {
2641
   .el-input--prefix .el-input__inner {
2641
     padding-right: 15px;
2642
     padding-right: 15px;

+ 104 - 67
src/xt_pages/management/components/WaterForm.vue Näytä tiedosto

36
          </el-row>
36
          </el-row>
37
          <el-row>
37
          <el-row>
38
             <el-col :span="8">
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
                 </el-form-item>
47
                 </el-form-item>
43
             </el-col>
48
             </el-col>
44
             <el-col :span="8">
49
             <el-col :span="8">
45
                 <el-form-item label="原水压力(Mpa):"  class="st">
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
                 </el-form-item>
56
                 </el-form-item>
48
             </el-col>
57
             </el-col>
49
             <el-col :span="8">
58
             <el-col :span="8">
50
                 <el-form-item label="温度:"  class="st">
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
                 </el-form-item>
64
                 </el-form-item>
53
             </el-col>
65
             </el-col>
54
          </el-row>
66
          </el-row>
60
                 </el-form-item>
72
                 </el-form-item>
61
             </el-col>
73
             </el-col>
62
          </el-row>
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
             </el-col>
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
             </el-col>
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
             </el-col>
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
             </el-col>
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
             </el-col>
93
             </el-col>
94
-         
95
-         </el-row>
96
-         <el-row>
97
-            <span>反渗二级</span>
98
          </el-row>
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
             </el-col>
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
             </el-col>
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
             </el-col>
113
             </el-col>
115
          </el-row>
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
             </el-col>
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
             </el-col>
133
             </el-col>
127
          </el-row>
134
          </el-row>
128
-
129
          <el-row>
135
          <el-row>
130
             <el-col :span="8">
136
             <el-col :span="8">
131
                 <el-form-item label="碳罐(MPa):"  class="st">
137
                 <el-form-item label="碳罐(MPa):"  class="st">
159
             <el-col :span="8">
165
             <el-col :span="8">
160
                 <el-form-item label="硬度监测(mg/l):"  class="st">
166
                 <el-form-item label="硬度监测(mg/l):"  class="st">
161
                     <el-input  v-model="form.hardness_monitoring" style="width:100px"
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
                 </el-form-item>
170
                 </el-form-item>
164
             </el-col>
171
             </el-col>
165
             <el-col :span="8">
172
             <el-col :span="8">
166
                 <el-form-item label="总氯检测(mg/l):"  class="st">
173
                 <el-form-item label="总氯检测(mg/l):"  class="st">
167
                     <el-input  v-model="form.total_chlorine_detection" style="width:100px"
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
                 </el-form-item>
178
                 </el-form-item>
170
             </el-col>
179
             </el-col>
171
             <el-col :span="8">
180
             <el-col :span="8">
172
                 <el-form-item label="PH值检测:"  class="st">
181
                 <el-form-item label="PH值检测:"  class="st">
173
                     <el-input  v-model="form.ph_detection" style="width:100px"
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
                 </el-form-item>
185
                 </el-form-item>
176
             </el-col>
186
             </el-col>
177
          </el-row>
187
          </el-row>
180
             <el-col :span="8">
190
             <el-col :span="8">
181
                 <el-form-item label="过氧乙酸浓度(mg/l):"  class="st">
191
                 <el-form-item label="过氧乙酸浓度(mg/l):"  class="st">
182
                     <el-input  v-model="form.concentration_of_peroxyacetic_acid" style="width:100px"
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
                 </el-form-item>
195
                 </el-form-item>
185
             </el-col>
196
             </el-col>
186
          </el-row>
197
          </el-row>
339
             ],
350
             ],
340
             checked:"",
351
             checked:"",
341
             rules: {
352
             rules: {
342
-             admin_user_id: [{ required: true, message: '请选择记录人' }],
353
+                admin_user_id: [{ required: true, message: '请选择记录人' }],
343
            },
354
            },
344
            nurseList:[],
355
            nurseList:[],
345
         }
356
         }
346
-
357
+       
347
     },
358
     },
348
     methods:{
359
     methods:{
349
         saveWater(formName){
360
         saveWater(formName){
607
 
618
 
608
            }
619
            }
609
          })
620
          })
610
-       }
621
+       },
622
+    //    limitInput (e) {
623
+    //     e.target.value = e.target.value.replace(/(^\s*)|(\s*$)/g, "");
624
+    //     const reg = /[^\d.]/g;
625
+
626
+    //     // 只能是数字和小数点,不能是其他输入
627
+    //     e.target.value = e.target.value.replace(reg, "");
628
+
629
+    //     // 保证第一位只能是数字,不能是点
630
+    //     e.target.value = e.target.value.replace(/^\./g, "");
631
+    //     // 小数只能出现1位
632
+    //     e.target.value = e.target.value
633
+    //       .replace(".", "$#$")
634
+    //       .replace(/\./g, "")
635
+    //       .replace("$#$", ".");
636
+    //     // 小数点后面保留2位
637
+    //     e.target.value = e.target.value.replace(
638
+    //       /^(\-)*(\d+)\.(\d\d).*$/,
639
+    //       "$1$2.$3"
640
+    //     );
641
+    //     }
611
     },
642
     },
612
     created(){
643
     created(){
613
-      
614
        this.getAllDoctorList()
644
        this.getAllDoctorList()
645
+    },
646
+    mounted(){
647
+        
615
     }
648
     }
616
  }
649
  }
650
+ 
617
 </script>
651
 </script>
618
-<style >
652
+<style scoped>
653
+.el-row {
654
+    margin-bottom: 20px;
655
+}
619
 .newMain .el-form-item__label {
656
 .newMain .el-form-item__label {
620
     width: 110px !important;
657
     width: 110px !important;
621
 }
658
 }

+ 76 - 75
src/xt_pages/management/home.vue Näytä tiedosto

893
                                         </el-table-column>
893
                                         </el-table-column>
894
                                         <el-table-column label="床单位更换" align="center" min-width="100px" >
894
                                         <el-table-column label="床单位更换" align="center" min-width="100px" >
895
                                                 <template slot-scope="scope">
895
                                                 <template slot-scope="scope">
896
-                                                  
896
+
897
                                                    <span v-if="scope.row.bed_way ==0">/</span>
897
                                                    <span v-if="scope.row.bed_way ==0">/</span>
898
                                                    <span v-if="scope.row.bed_way ==1">床单</span>
898
                                                    <span v-if="scope.row.bed_way ==1">床单</span>
899
                                                    <span v-if="scope.row.bed_way ==2">被套</span>
899
                                                    <span v-if="scope.row.bed_way ==2">被套</span>
1382
                       <div v-show="zhiShow">
1382
                       <div v-show="zhiShow">
1383
                        <el-tabs type="border-card" v-model="activeNameSix" @tab-click="handleClick">
1383
                        <el-tabs type="border-card" v-model="activeNameSix" @tab-click="handleClick">
1384
                          <el-tab-pane label="新增质量控制" name="first">
1384
                          <el-tab-pane label="新增质量控制" name="first">
1385
-  
1385
+
1386
                            <span style="margin-bottom: 20px;display: block;">细菌培养</span>
1386
                            <span style="margin-bottom: 20px;display: block;">细菌培养</span>
1387
                            <el-form :model="qualityForm" ref="qualityForm" :rules="qualitRules">
1387
                            <el-form :model="qualityForm" ref="qualityForm" :rules="qualitRules">
1388
                              <el-row>
1388
                              <el-row>
1579
                                     </el-date-picker>
1579
                                     </el-date-picker>
1580
                                   </el-form-item>
1580
                                   </el-form-item>
1581
                                 </el-col>
1581
                                 </el-col>
1582
-                               
1582
+
1583
                                 <el-col :span="8">
1583
                                 <el-col :span="8">
1584
                                   <el-form-item label="顺序号:" required prop="sort">
1584
                                   <el-form-item label="顺序号:" required prop="sort">
1585
                                      <el-input style="width:150px" v-model="qualityFormTwo.sort" ></el-input>
1585
                                      <el-input style="width:150px" v-model="qualityFormTwo.sort" ></el-input>
1632
                               </el-row>
1632
                               </el-row>
1633
                             </el-form>
1633
                             </el-form>
1634
                             <el-divider></el-divider>
1634
                             <el-divider></el-divider>
1635
-                           
1636
 
1635
 
1637
-                          
1636
+
1637
+
1638
                           <div v-if="device_type == 1">
1638
                           <div v-if="device_type == 1">
1639
                            <span style="margin-bottom: 20px;display: block;">透析液离子浓度检测</span>
1639
                            <span style="margin-bottom: 20px;display: block;">透析液离子浓度检测</span>
1640
                             <el-form ref="qualityFormThree" :model="qualityFormThree" :rules="ruleThree">
1640
                             <el-form ref="qualityFormThree" :model="qualityFormThree" :rules="ruleThree">
1689
                                         </el-date-picker>
1689
                                         </el-date-picker>
1690
                                     </el-form-item>
1690
                                     </el-form-item>
1691
                                 </el-col>
1691
                                 </el-col>
1692
-                                
1692
+
1693
                               </el-row>
1693
                               </el-row>
1694
-                            
1694
+
1695
                               <el-row>
1695
                               <el-row>
1696
                                 <el-col :span="8">
1696
                                 <el-col :span="8">
1697
                                   <!-- <span>Na<sup>+</sup></span> -->
1697
                                   <!-- <span>Na<sup>+</sup></span> -->
1791
 
1791
 
1792
 
1792
 
1793
 
1793
 
1794
-                           
1794
+
1795
                             <el-divider></el-divider>
1795
                             <el-divider></el-divider>
1796
-                         </div>     
1797
-                             
1798
-                        
1796
+                         </div>
1797
+
1798
+
1799
                             <span style="margin-bottom: 20px;display: block;">有毒化合物检测</span>
1799
                             <span style="margin-bottom: 20px;display: block;">有毒化合物检测</span>
1800
                             <el-form ref="qualityFormFour" :model="qualityFormFour" :rules="diaRules">
1800
                             <el-form ref="qualityFormFour" :model="qualityFormFour" :rules="diaRules">
1801
                               <el-row>
1801
                               <el-row>
1866
                                     </el-date-picker>
1866
                                     </el-date-picker>
1867
                                   </el-form-item>
1867
                                   </el-form-item>
1868
                                 </el-col>
1868
                                 </el-col>
1869
-                               
1869
+
1870
                                 <el-col :span="8">
1870
                                 <el-col :span="8">
1871
                                   <el-form-item label="顺序号:" required prop="sort">
1871
                                   <el-form-item label="顺序号:" required prop="sort">
1872
                                      <el-input style="width:150px" v-model="qualityFormFour.sort" ></el-input>
1872
                                      <el-input style="width:150px" v-model="qualityFormFour.sort" ></el-input>
1993
                                     </el-date-picker>
1993
                                     </el-date-picker>
1994
                                   </el-form-item>
1994
                                   </el-form-item>
1995
                                 </el-col>
1995
                                 </el-col>
1996
-                               
1996
+
1997
                                 <el-col :span="8">
1997
                                 <el-col :span="8">
1998
                                   <el-form-item label="顺序号:" required prop="sort">
1998
                                   <el-form-item label="顺序号:" required prop="sort">
1999
                                      <el-input style="width:150px" v-model="qualityFormFive.sort" ></el-input>
1999
                                      <el-input style="width:150px" v-model="qualityFormFive.sort" ></el-input>
2046
                               </el-row>
2046
                               </el-row>
2047
                             </el-form>
2047
                             </el-form>
2048
                             <el-divider></el-divider>
2048
                             <el-divider></el-divider>
2049
-                            
2049
+
2050
 
2050
 
2051
 
2051
 
2052
 
2052
 
2120
                                       </el-date-picker>
2120
                                       </el-date-picker>
2121
                                     </el-form-item>
2121
                                     </el-form-item>
2122
                                   </el-col>
2122
                                   </el-col>
2123
-                                
2123
+
2124
                                   <el-col :span="8">
2124
                                   <el-col :span="8">
2125
                                     <el-form-item label="顺序号:" required prop="sort">
2125
                                     <el-form-item label="顺序号:" required prop="sort">
2126
                                       <el-input style="width:150px" v-model="qualityFormSix.sort" ></el-input>
2126
                                       <el-input style="width:150px" v-model="qualityFormSix.sort" ></el-input>
2174
                               </el-form>
2174
                               </el-form>
2175
                             <el-divider></el-divider>
2175
                             <el-divider></el-divider>
2176
 
2176
 
2177
-                           
2178
-                           
2177
+
2178
+
2179
                             <span style="margin-bottom: 20px;display: block;">PH值检测</span>
2179
                             <span style="margin-bottom: 20px;display: block;">PH值检测</span>
2180
                             <el-form ref="qualityFormSeven" :model="qualityFormSeven" :rules="diaRules">
2180
                             <el-form ref="qualityFormSeven" :model="qualityFormSeven" :rules="diaRules">
2181
                               <el-row>
2181
                               <el-row>
2246
                                     </el-date-picker>
2246
                                     </el-date-picker>
2247
                                   </el-form-item>
2247
                                   </el-form-item>
2248
                                 </el-col>
2248
                                 </el-col>
2249
-                               
2249
+
2250
                                 <el-col :span="8">
2250
                                 <el-col :span="8">
2251
                                   <el-form-item label="顺序号:" required prop="sort">
2251
                                   <el-form-item label="顺序号:" required prop="sort">
2252
                                      <el-input style="width:150px" v-model="qualityFormSeven.sort" ></el-input>
2252
                                      <el-input style="width:150px" v-model="qualityFormSeven.sort" ></el-input>
2302
 
2302
 
2303
 
2303
 
2304
 
2304
 
2305
-                          
2305
+
2306
 
2306
 
2307
                          </el-tab-pane>
2307
                          </el-tab-pane>
2308
 
2308
 
2316
                           暂无数据
2316
                           暂无数据
2317
                         </div>
2317
                         </div>
2318
                    </el-tab-pane>
2318
                    </el-tab-pane>
2319
-                   
2319
+
2320
                     <el-tab-pane label="维修维护" name="five">
2320
                     <el-tab-pane label="维修维护" name="five">
2321
                        <el-tabs type="border-card" v-model="activeNameFive" @tab-click="handleClick">
2321
                        <el-tabs type="border-card" v-model="activeNameFive" @tab-click="handleClick">
2322
                          <el-tab-pane label="新增维修维护" name="first">
2322
                          <el-tab-pane label="新增维修维护" name="first">
2351
                              <el-row>
2351
                              <el-row>
2352
                                  <el-col :span="8">
2352
                                  <el-col :span="8">
2353
                                   <el-form-item label="到达时间:">
2353
                                   <el-form-item label="到达时间:">
2354
-                                   
2354
+
2355
                                          <el-date-picker
2355
                                          <el-date-picker
2356
                                           type="datetime"
2356
                                           type="datetime"
2357
                                           format="yyyy-MM-dd HH:mm"
2357
                                           format="yyyy-MM-dd HH:mm"
2848
           device_name: [{ required: true, message: '请填写序列号' }],
2848
           device_name: [{ required: true, message: '请填写序列号' }],
2849
           devicetype: [{ required: true, message: '请填写设备类型' }],
2849
           devicetype: [{ required: true, message: '请填写设备类型' }],
2850
           unit_type: [{ required: true, message: '请填写设备型号' }],
2850
           unit_type: [{ required: true, message: '请填写设备型号' }],
2851
-        
2851
+
2852
         },
2852
         },
2853
         qualitRules: {
2853
         qualitRules: {
2854
           detection_unit: [{ required: true, message: '请填写检测单位' }],
2854
           detection_unit: [{ required: true, message: '请填写检测单位' }],
3416
               }
3416
               }
3417
 
3417
 
3418
             }
3418
             }
3419
-            
3419
+
3420
           }
3420
           }
3421
         })
3421
         })
3422
       },
3422
       },
3455
           if (response.data.state === 1) {
3455
           if (response.data.state === 1) {
3456
             var addmacher = response.data.data.addmacher
3456
             var addmacher = response.data.data.addmacher
3457
             var warning = response.data.data.warning
3457
             var warning = response.data.data.warning
3458
-          
3458
+
3459
             var time = this.getTimestamp(this.userform.date) - warning.stime
3459
             var time = this.getTimestamp(this.userform.date) - warning.stime
3460
             var germ = response.data.data.germ
3460
             var germ = response.data.data.germ
3461
-          
3461
+
3462
             var timetwo = this.getTimestamp(this.userform.date) - germ.stime
3462
             var timetwo = this.getTimestamp(this.userform.date) - germ.stime
3463
-           
3463
+
3464
             var clean = response.data.data.clean
3464
             var clean = response.data.data.clean
3465
             var timethree = this.getTimestamp(this.userform.date) - clean.stime
3465
             var timethree = this.getTimestamp(this.userform.date) - clean.stime
3466
             var number = response.data.data.number
3466
             var number = response.data.data.number
3467
-          
3467
+
3468
             this.Number = number
3468
             this.Number = number
3469
             if (addmacher.device_type === 1) {
3469
             if (addmacher.device_type === 1) {
3470
               this.sShow = false
3470
               this.sShow = false
3505
             var zone = response.data.data.zone
3505
             var zone = response.data.data.zone
3506
 
3506
 
3507
             const arr1 = []
3507
             const arr1 = []
3508
-          
3508
+
3509
             for (let index = 0; index < mode.length; index++) {
3509
             for (let index = 0; index < mode.length; index++) {
3510
               if (mode[index].treate_mode === 1) {
3510
               if (mode[index].treate_mode === 1) {
3511
                 mode[index] = 'HD'
3511
                 mode[index] = 'HD'
3594
             this.form.machine_status = addmacher.machine_status
3594
             this.form.machine_status = addmacher.machine_status
3595
             this.form.user_total = addmacher.user_total
3595
             this.form.user_total = addmacher.user_total
3596
             this.form.remarks = addmacher.remarks
3596
             this.form.remarks = addmacher.remarks
3597
-           
3597
+
3598
             if (addmacher.rubbish_date !== 0) {
3598
             if (addmacher.rubbish_date !== 0) {
3599
               this.form.rubbish_date = uParseTime(addmacher.rubbish_date, '{y}-{m}-{d}')
3599
               this.form.rubbish_date = uParseTime(addmacher.rubbish_date, '{y}-{m}-{d}')
3600
             }
3600
             }
3701
         var bed_numberss = parseInt(bed_numbers)
3701
         var bed_numberss = parseInt(bed_numbers)
3702
         this.form.bed_number = bed_numberss
3702
         this.form.bed_number = bed_numberss
3703
         this.$refs[formName].validate(valid => {
3703
         this.$refs[formName].validate(valid => {
3704
-          UpdateMachineInfo(this.form).then(response => {         
3704
+          UpdateMachineInfo(this.form).then(response => {
3705
             if (response.data.state === 1) {
3705
             if (response.data.state === 1) {
3706
-              var addmacher = response.data.data.addmacher         
3707
-              this.$message.success('修改成功')           
3706
+              var addmacher = response.data.data.addmacher
3707
+              this.$message.success('修改成功')
3708
               for (let i = 0; i < this.tableDatatwo.length; i++) {
3708
               for (let i = 0; i < this.tableDatatwo.length; i++) {
3709
                 if (this.tableDatatwo[i].id == addmacher.id) {
3709
                 if (this.tableDatatwo[i].id == addmacher.id) {
3710
                   for (let j = 0; j < this.deviceMode.length; j++) {
3710
                   for (let j = 0; j < this.deviceMode.length; j++) {
3711
                     if (this.deviceMode[j].id === parseInt(addmacher.unit_type)) {
3711
                     if (this.deviceMode[j].id === parseInt(addmacher.unit_type)) {
3712
                       addmacher.device_mode = this.deviceMode[j].device_mode
3712
                       addmacher.device_mode = this.deviceMode[j].device_mode
3713
-                    
3713
+
3714
                     }
3714
                     }
3715
                   }
3715
                   }
3716
 
3716
 
4371
             }
4371
             }
4372
             this.userform.date = uParseTime(patients.schedule_date, '{y}-{m}-{d}')
4372
             this.userform.date = uParseTime(patients.schedule_date, '{y}-{m}-{d}')
4373
             this.userform.patient_name = patients.name
4373
             this.userform.patient_name = patients.name
4374
-            this.userform.patient_id = patients.patient_id 
4374
+            this.userform.patient_id = patients.patient_id
4375
             var zone = response.data.data.zone
4375
             var zone = response.data.data.zone
4376
             this.userform.zone = zone.id
4376
             this.userform.zone = zone.id
4377
             var number = response.data.data.number
4377
             var number = response.data.data.number
4520
         this.userform.user_total = parseInt(this.userform.user_total)
4520
         this.userform.user_total = parseInt(this.userform.user_total)
4521
 
4521
 
4522
         console.log("user_form",this.userform)
4522
         console.log("user_form",this.userform)
4523
-      
4523
+
4524
         this.$refs[formName].validate((valid) => {
4524
         this.$refs[formName].validate((valid) => {
4525
           if (valid) {
4525
           if (valid) {
4526
             SaveInformation(this.equimentid, this.userform).then(response => {
4526
             SaveInformation(this.equimentid, this.userform).then(response => {
4700
         var samplinglocationa = this.qualityForm.sampling_locationa
4700
         var samplinglocationa = this.qualityForm.sampling_locationa
4701
         var samplinglocationas = parseInt(samplinglocationa)
4701
         var samplinglocationas = parseInt(samplinglocationa)
4702
         this.qualityForm.sampling_locationa = samplinglocationas
4702
         this.qualityForm.sampling_locationa = samplinglocationas
4703
-        
4703
+
4704
         //  if(this.qualityForm.pass_examination!=''){
4704
         //  if(this.qualityForm.pass_examination!=''){
4705
         //    this.qualityForm.pass_examination = parseInt(this.qualityForm.pass_examination)
4705
         //    this.qualityForm.pass_examination = parseInt(this.qualityForm.pass_examination)
4706
         //  }
4706
         //  }
4707
          if(this.qualityForm.modifications!=''){
4707
          if(this.qualityForm.modifications!=''){
4708
            this.qualityForm.modifications = parseInt(this.qualityForm.modifications)
4708
            this.qualityForm.modifications = parseInt(this.qualityForm.modifications)
4709
          }
4709
          }
4710
-       
4710
+
4711
         console.log("3333333",this.qualityForm)
4711
         console.log("3333333",this.qualityForm)
4712
-       
4712
+
4713
         this.$refs[formName].validate(response => {
4713
         this.$refs[formName].validate(response => {
4714
           SaveBacteria(this.equimentid, this.qualityForm).then(response => {
4714
           SaveBacteria(this.equimentid, this.qualityForm).then(response => {
4715
             if (response.data.state === 1) {
4715
             if (response.data.state === 1) {
4737
         this.qualityForm.detection_result = ''
4737
         this.qualityForm.detection_result = ''
4738
       },
4738
       },
4739
       SaveLincomycin(formName) {
4739
       SaveLincomycin(formName) {
4740
-       
4740
+
4741
         this.$refs[formName].validate((valid) => {
4741
         this.$refs[formName].validate((valid) => {
4742
           if (this.qualityFormTwo.specimenb === '') {
4742
           if (this.qualityFormTwo.specimenb === '') {
4743
             this.qualityFormTwo.specimenb = 0
4743
             this.qualityFormTwo.specimenb = 0
4753
           var sampling = this.qualityFormTwo.sampling_locationb
4753
           var sampling = this.qualityFormTwo.sampling_locationb
4754
           var samplings = parseInt(sampling)
4754
           var samplings = parseInt(sampling)
4755
           this.qualityFormTwo.sampling_locationb = samplings
4755
           this.qualityFormTwo.sampling_locationb = samplings
4756
-           
4757
-       
4756
+
4757
+
4758
           if(this.qualityFormTwo.modifications!=''){
4758
           if(this.qualityFormTwo.modifications!=''){
4759
             this.qualityFormTwo.modifications = parseInt(this.qualityFormTwo.modifications)
4759
             this.qualityFormTwo.modifications = parseInt(this.qualityFormTwo.modifications)
4760
           }
4760
           }
4761
-       
4762
-      
4761
+
4762
+
4763
           if (valid) {
4763
           if (valid) {
4764
             SaveLincomycin(this.equimentid, this.qualityFormTwo).then(response => {
4764
             SaveLincomycin(this.equimentid, this.qualityFormTwo).then(response => {
4765
               if (response.data.state === 1) {
4765
               if (response.data.state === 1) {
4771
                 this.qualityFormTwo.concentrateb_nod = ''
4771
                 this.qualityFormTwo.concentrateb_nod = ''
4772
                 this.qualityFormTwo.sampling_locationb = ''
4772
                 this.qualityFormTwo.sampling_locationb = ''
4773
                 this.qualityFormTwo.detection_resultb = ''
4773
                 this.qualityFormTwo.detection_resultb = ''
4774
-               
4775
-              
4774
+
4775
+
4776
                 this.$refs.mychild.getAllQulityInfo()
4776
                 this.$refs.mychild.getAllQulityInfo()
4777
               }
4777
               }
4778
             })
4778
             })
4791
       SaveQualityControl(formName) {
4791
       SaveQualityControl(formName) {
4792
         this.$refs[formName].validate((valid) => {
4792
         this.$refs[formName].validate((valid) => {
4793
           if (valid) {
4793
           if (valid) {
4794
-             
4794
+
4795
               if(this.qualityFormThree.modifications!=''){
4795
               if(this.qualityFormThree.modifications!=''){
4796
                 this.qualityFormThree.modifications = parseInt(this.qualityFormThree.modifications)
4796
                 this.qualityFormThree.modifications = parseInt(this.qualityFormThree.modifications)
4797
               }
4797
               }
4798
-            
4798
+
4799
             SaveQualityControl(this.equimentid, this.qualityFormThree).then(response => {
4799
             SaveQualityControl(this.equimentid, this.qualityFormThree).then(response => {
4800
               if (response.data.state === 1) {
4800
               if (response.data.state === 1) {
4801
                 var ion = response.data.data.ion
4801
                 var ion = response.data.data.ion
5045
             var deviceInformation = response.data.data.deviceInformation
5045
             var deviceInformation = response.data.data.deviceInformation
5046
             var timetwo = this.getTimestamp(this.userform.date) - deviceInformation.stime
5046
             var timetwo = this.getTimestamp(this.userform.date) - deviceInformation.stime
5047
             var clean = response.data.data.clean
5047
             var clean = response.data.data.clean
5048
-          
5048
+
5049
           }
5049
           }
5050
         })
5050
         })
5051
       },
5051
       },
5148
          GetUserTotalCount(bedid).then(response=>{
5148
          GetUserTotalCount(bedid).then(response=>{
5149
             if(response.data.state == 1){
5149
             if(response.data.state == 1){
5150
               var count =  response.data.data.count
5150
               var count =  response.data.data.count
5151
-              var addmacher = response.data.data.addmacher 
5151
+              var addmacher = response.data.data.addmacher
5152
               if(addmacher.user_total == ''){
5152
               if(addmacher.user_total == ''){
5153
                   addmacher.user_total = 0
5153
                   addmacher.user_total = 0
5154
-              }   
5154
+              }
5155
               // this.userform.user_total = count[0].Total + parseInt(addmacher.user_total)
5155
               // this.userform.user_total = count[0].Total + parseInt(addmacher.user_total)
5156
             }
5156
             }
5157
          })
5157
          })
5174
           var sampling = this.qualityFormFour.sampling_locationb
5174
           var sampling = this.qualityFormFour.sampling_locationb
5175
           var samplings = parseInt(sampling)
5175
           var samplings = parseInt(sampling)
5176
           this.qualityFormFour.sampling_locationb = samplings
5176
           this.qualityFormFour.sampling_locationb = samplings
5177
-           
5178
-        
5177
+
5178
+
5179
           if(this.qualityFormFour.modifications!=''){
5179
           if(this.qualityFormFour.modifications!=''){
5180
             this.qualityFormFour.modifications = parseInt(this.qualityFormFour.modifications)
5180
             this.qualityFormFour.modifications = parseInt(this.qualityFormFour.modifications)
5181
           }
5181
           }
5182
-       
5182
+
5183
           if (valid) {
5183
           if (valid) {
5184
             saveOxygenates(this.equimentid, this.qualityFormFour).then(response => {
5184
             saveOxygenates(this.equimentid, this.qualityFormFour).then(response => {
5185
               if (response.data.state === 1) {
5185
               if (response.data.state === 1) {
5190
                 this.qualityFormFour.concentrate_noc = ''
5190
                 this.qualityFormFour.concentrate_noc = ''
5191
                 this.qualityFormFour.concentrateb_nod = ''
5191
                 this.qualityFormFour.concentrateb_nod = ''
5192
                 this.qualityFormFour.sampling_locationb = ''
5192
                 this.qualityFormFour.sampling_locationb = ''
5193
-             
5193
+
5194
                 this.qualityFormFour.detection_resultb = ''
5194
                 this.qualityFormFour.detection_resultb = ''
5195
-                
5196
-              
5195
+
5196
+
5197
                 this.$refs.mychild.getAllQulityInfo()
5197
                 this.$refs.mychild.getAllQulityInfo()
5198
               }
5198
               }
5199
             })
5199
             })
5218
           var sampling = this.qualityFormFive.sampling_locationb
5218
           var sampling = this.qualityFormFive.sampling_locationb
5219
           var samplings = parseInt(sampling)
5219
           var samplings = parseInt(sampling)
5220
           this.qualityFormFive.sampling_locationb = samplings
5220
           this.qualityFormFive.sampling_locationb = samplings
5221
-           
5222
-        
5221
+
5222
+
5223
           if(this.qualityFormFive.modifications!=''){
5223
           if(this.qualityFormFive.modifications!=''){
5224
             this.qualityFormFive.modifications = parseInt(this.qualityFormFive.modifications)
5224
             this.qualityFormFive.modifications = parseInt(this.qualityFormFive.modifications)
5225
           }
5225
           }
5226
-       
5226
+
5227
           if (valid) {
5227
           if (valid) {
5228
             saveHardWater(this.equimentid, this.qualityFormFive).then(response => {
5228
             saveHardWater(this.equimentid, this.qualityFormFive).then(response => {
5229
               if (response.data.state === 1) {
5229
               if (response.data.state === 1) {
5235
                 this.qualityFormFive.concentrateb_nod = ''
5235
                 this.qualityFormFive.concentrateb_nod = ''
5236
                 this.qualityFormFive.sampling_locationb = ''
5236
                 this.qualityFormFive.sampling_locationb = ''
5237
                 this.qualityFormFive.detection_resultb = ''
5237
                 this.qualityFormFive.detection_resultb = ''
5238
-               
5239
-              
5238
+
5239
+
5240
                 this.$refs.mychild.getAllQulityInfo()
5240
                 this.$refs.mychild.getAllQulityInfo()
5241
               }
5241
               }
5242
             })
5242
             })
5261
           var sampling = this.qualityFormSix.sampling_locationb
5261
           var sampling = this.qualityFormSix.sampling_locationb
5262
           var samplings = parseInt(sampling)
5262
           var samplings = parseInt(sampling)
5263
           this.qualityFormSix.sampling_locationb = samplings
5263
           this.qualityFormSix.sampling_locationb = samplings
5264
-           
5265
-       
5264
+
5265
+
5266
           if(this.qualityFormSix.modifications!=''){
5266
           if(this.qualityFormSix.modifications!=''){
5267
             this.qualityFormSix.modifications = parseInt(this.qualityFormSix.modifications)
5267
             this.qualityFormSix.modifications = parseInt(this.qualityFormSix.modifications)
5268
           }
5268
           }
5269
-       
5269
+
5270
           if (valid) {
5270
           if (valid) {
5271
             saveWater(this.equimentid, this.qualityFormSix).then(response => {
5271
             saveWater(this.equimentid, this.qualityFormSix).then(response => {
5272
               if (response.data.state === 1) {
5272
               if (response.data.state === 1) {
5278
                 this.qualityFormSix.concentrateb_nod = ''
5278
                 this.qualityFormSix.concentrateb_nod = ''
5279
                 this.qualityFormSix.sampling_locationb = ''
5279
                 this.qualityFormSix.sampling_locationb = ''
5280
                 this.qualityFormSix.detection_resultb = ''
5280
                 this.qualityFormSix.detection_resultb = ''
5281
-             
5282
-              
5281
+
5282
+
5283
                 this.$refs.child.getAllQulityInfo()
5283
                 this.$refs.child.getAllQulityInfo()
5284
               }else{
5284
               }else{
5285
                 this.qualityFormSix.pass_examination = "1"
5285
                 this.qualityFormSix.pass_examination = "1"
5306
           var sampling = this.qualityFormSeven.sampling_locationb
5306
           var sampling = this.qualityFormSeven.sampling_locationb
5307
           var samplings = parseInt(sampling)
5307
           var samplings = parseInt(sampling)
5308
           this.qualityFormSeven.sampling_locationb = samplings
5308
           this.qualityFormSeven.sampling_locationb = samplings
5309
-           
5310
-       
5309
+
5310
+
5311
           if(this.qualityFormSeven.modifications!=''){
5311
           if(this.qualityFormSeven.modifications!=''){
5312
             this.qualityFormSeven.modifications = parseInt(this.qualityFormSeven.modifications)
5312
             this.qualityFormSeven.modifications = parseInt(this.qualityFormSeven.modifications)
5313
           }
5313
           }
5314
-       
5314
+
5315
           if (valid) {
5315
           if (valid) {
5316
             saveDevicePH(this.equimentid, this.qualityFormSeven).then(response => {
5316
             saveDevicePH(this.equimentid, this.qualityFormSeven).then(response => {
5317
               if (response.data.state === 1) {
5317
               if (response.data.state === 1) {
5323
                 this.qualityFormSeven.concentrateb_nod = ''
5323
                 this.qualityFormSeven.concentrateb_nod = ''
5324
                 this.qualityFormSeven.sampling_locationb = ''
5324
                 this.qualityFormSeven.sampling_locationb = ''
5325
                 this.qualityFormSeven.detection_resultb = ''
5325
                 this.qualityFormSeven.detection_resultb = ''
5326
-              
5327
-              
5326
+
5327
+
5328
                 this.$refs.mychild.getAllQulityInfo()
5328
                 this.$refs.mychild.getAllQulityInfo()
5329
               }
5329
               }
5330
             })
5330
             })
5346
       this.getAllpatient()
5346
       this.getAllpatient()
5347
       this.getAllMode()
5347
       this.getAllMode()
5348
       this.GetUserTotalCount(bedid)
5348
       this.GetUserTotalCount(bedid)
5349
-      
5349
+
5350
 
5350
 
5351
   }
5351
   }
5352
   }
5352
   }
5411
        margin-bottom: 10px;
5411
        margin-bottom: 10px;
5412
     margin-left: 82%
5412
     margin-left: 82%
5413
   }
5413
   }
5414
+  .el-form-item__error {
5415
+    margin-left: 130px;
5416
+  }
5414
 
5417
 
5415
 </style>
5418
 </style>
5416
 <style lang="scss">
5419
 <style lang="scss">
5456
   //   width: 130px;
5459
   //   width: 130px;
5457
   //   font-size: 14px;
5460
   //   font-size: 14px;
5458
   // }
5461
   // }
5459
-  .el-form-item__error {
5460
-    margin-left: 130px;
5461
-  }
5462
+  
5462
 
5463
 
5463
  .el-upload-list__item-name {
5464
  .el-upload-list__item-name {
5464
     color: #606266;
5465
     color: #606266;

+ 6 - 3
src/xt_pages/user/courseOfDisease.vue Näytä tiedosto

48
                         :row-class-name="tableRow"
48
                         :row-class-name="tableRow"
49
                         @row-click="onRowClick"
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
                 <el-table-column label="病程标题" align="center">
55
                 <el-table-column label="病程标题" align="center">
53
                   <template slot-scope="scope">
56
                   <template slot-scope="scope">
54
                     {{ scope.row.title}}
57
                     {{ scope.row.title}}
69
             <el-col :span="14">
72
             <el-col :span="14">
70
               <div class="record_content_panel">
73
               <div class="record_content_panel">
71
                 <div style="background-color:rgb(245, 247, 250)" class="title">病程内容</div>
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
                   <span v-else></span>
77
                   <span v-else></span>
75
                 </div>
78
                 </div>
76
               </div>
79
               </div>

+ 4 - 5
src/xt_pages/user/rescueRecord.vue Näytä tiedosto

68
                 @current-change="didChangeCurrentRecord"
68
                 @current-change="didChangeCurrentRecord"
69
                 @selection-change="didSelectionChange"
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
                 <el-table-column label="记录时间" align="center">
75
                 <el-table-column label="记录时间" align="center">
77
                   <template slot-scope="scope">
76
                   <template slot-scope="scope">
78
                     {{ recordTime(scope.row.record_time) }}
77
                     {{ recordTime(scope.row.record_time) }}