|
@@ -1,8 +1,7 @@
|
1
|
1
|
<template>
|
2
|
2
|
<div>
|
3
|
|
- <div>
|
4
|
3
|
<el-row class="row">
|
5
|
|
- <!-- <el-col :span="5">
|
|
4
|
+ <el-col :span="5">
|
6
|
5
|
<span class="machineClass">机号:</span>
|
7
|
6
|
<el-select style="width:100px" v-model="forms.bed">
|
8
|
7
|
<el-option
|
|
@@ -12,7 +11,7 @@
|
12
|
11
|
:value="item.id"
|
13
|
12
|
></el-option>
|
14
|
13
|
</el-select>
|
15
|
|
- </el-col> -->
|
|
14
|
+ </el-col>
|
16
|
15
|
<el-col :span="11">
|
17
|
16
|
<span class="machineClass">日期查询:</span>
|
18
|
17
|
<el-date-picker
|
|
@@ -53,8 +52,7 @@
|
53
|
52
|
<el-button type="primary" size="small" @click="printCard">打印</el-button>
|
54
|
53
|
</el-col>
|
55
|
54
|
</el-row>
|
56
|
|
- <el-row>
|
57
|
|
-
|
|
55
|
+
|
58
|
56
|
<el-table
|
59
|
57
|
ref="multipleTable"
|
60
|
58
|
@selection-change="handleSelectionChange"
|
|
@@ -334,7 +332,7 @@
|
334
|
332
|
</el-tooltip>
|
335
|
333
|
</template>
|
336
|
334
|
</el-table-column>
|
337
|
|
- </el-table> -->
|
|
335
|
+ </el-table>
|
338
|
336
|
<el-pagination
|
339
|
337
|
@size-change="handleSizeChange"
|
340
|
338
|
@current-change="handleCurrentChange"
|
|
@@ -416,32 +414,6 @@
|
416
|
414
|
</el-form-item>
|
417
|
415
|
</el-col>
|
418
|
416
|
</el-row>
|
419
|
|
- <el-row>
|
420
|
|
- <el-col :span="24">
|
421
|
|
- <el-form-item class="formItem" label="功能及附件检查:">
|
422
|
|
- <el-input
|
423
|
|
- type="textarea"
|
424
|
|
- :rows="2"
|
425
|
|
- placeholder="请输入内容"
|
426
|
|
- v-model="guaForm.function_accessories_inspection"
|
427
|
|
- style="width:85%">
|
428
|
|
- </el-input>
|
429
|
|
- </el-form-item>
|
430
|
|
- </el-col>
|
431
|
|
- </el-row>
|
432
|
|
- <el-row>
|
433
|
|
- <el-col :span="24">
|
434
|
|
- <el-form-item class="formItem" label="其他:">
|
435
|
|
- <el-input
|
436
|
|
- type="textarea"
|
437
|
|
- :rows="2"
|
438
|
|
- placeholder="请输入内容"
|
439
|
|
- v-model="guaForm.other_information"
|
440
|
|
- style="width:85%">
|
441
|
|
- </el-input>
|
442
|
|
- </el-form-item>
|
443
|
|
- </el-col>
|
444
|
|
- </el-row>
|
445
|
417
|
<el-row>
|
446
|
418
|
<el-col :span="24">
|
447
|
419
|
<el-form-item label="故障发生阶段">
|
|
@@ -472,7 +444,7 @@
|
472
|
444
|
</el-row>
|
473
|
445
|
<el-row>
|
474
|
446
|
<el-col :span="8">
|
475
|
|
- <el-form-item label="故障现象:" required prop="fault_description">
|
|
447
|
+ <el-form-item label="故障描述:" required prop="fault_description">
|
476
|
448
|
<el-input
|
477
|
449
|
type="textarea"
|
478
|
450
|
:rows="2"
|
|
@@ -483,7 +455,7 @@
|
483
|
455
|
</el-form-item>
|
484
|
456
|
</el-col>
|
485
|
457
|
<el-col :span="8">
|
486
|
|
- <el-form-item label="维修内容:">
|
|
458
|
+ <el-form-item label="原因分析:">
|
487
|
459
|
<el-input
|
488
|
460
|
type="textarea"
|
489
|
461
|
:rows="2"
|
|
@@ -494,7 +466,7 @@
|
494
|
466
|
</el-form-item>
|
495
|
467
|
</el-col>
|
496
|
468
|
<el-col :span="8">
|
497
|
|
- <el-form-item label="维修结果:">
|
|
469
|
+ <el-form-item label="处理过程:">
|
498
|
470
|
<el-input
|
499
|
471
|
type="textarea"
|
500
|
472
|
:rows="2"
|
|
@@ -544,7 +516,7 @@
|
544
|
516
|
</el-row>
|
545
|
517
|
<el-row>
|
546
|
518
|
<el-col :span="20">
|
547
|
|
- <el-form-item label="备注:">
|
|
519
|
+ <el-form-item label="原因:">
|
548
|
520
|
<el-input
|
549
|
521
|
type="textarea"
|
550
|
522
|
:rows="2"
|
|
@@ -555,21 +527,6 @@
|
555
|
527
|
</el-form-item>
|
556
|
528
|
</el-col>
|
557
|
529
|
</el-row>
|
558
|
|
- <el-row>
|
559
|
|
- <el-col :span="20">
|
560
|
|
- <el-form-item label="维修者:">
|
561
|
|
- <el-select v-model="guaForm.admin_user_id" placeholder="请选择" >
|
562
|
|
- <el-option
|
563
|
|
- v-for="item in docList"
|
564
|
|
- :key="item.admin_user_id"
|
565
|
|
- :label="item.user_name"
|
566
|
|
- :value="item.admin_user_id"
|
567
|
|
- style="width:185px">
|
568
|
|
- </el-option>
|
569
|
|
- </el-select>
|
570
|
|
- </el-form-item>
|
571
|
|
- </el-col>
|
572
|
|
- </el-row>
|
573
|
530
|
</el-form>
|
574
|
531
|
<span slot="footer" class="dialog-footer">
|
575
|
532
|
<!-- <button @click="lili">调试</button>-->
|
|
@@ -579,272 +536,6 @@
|
579
|
536
|
>
|
580
|
537
|
</span>
|
581
|
538
|
</el-dialog>
|
582
|
|
-
|
583
|
|
- <div hidden="hidden">
|
584
|
|
- <div id="print-card-info" v-show="hiddenShow">
|
585
|
|
- <div>
|
586
|
|
- <div class="print_main_content">
|
587
|
|
- <div class="order_title">水机使用记录清单</div>
|
588
|
|
- </div>
|
589
|
|
- <div>
|
590
|
|
- <div class="printClass">打印日期:{{ nowTime }}</div>
|
591
|
|
- <table
|
592
|
|
- border="1"
|
593
|
|
- style="width:100%"
|
594
|
|
- cellspacing="0"
|
595
|
|
- cellpadding="0"
|
596
|
|
- class="tableClass"
|
597
|
|
- >
|
598
|
|
- <tr>
|
599
|
|
- <td
|
600
|
|
- :rowspan="2"
|
601
|
|
- style="text-align:center;width:60px;font-size:15px;"
|
602
|
|
- >
|
603
|
|
- 日期
|
604
|
|
- </td>
|
605
|
|
-
|
606
|
|
-
|
607
|
|
- <td
|
608
|
|
- :colspan="4"
|
609
|
|
- style="text-align:center;width:60px;font-size:15px"
|
610
|
|
- >
|
611
|
|
- 原水参数
|
612
|
|
- </td>
|
613
|
|
-
|
614
|
|
- <td
|
615
|
|
- :colspan="2"
|
616
|
|
- style="text-align:center;width:60px;font-size:15px"
|
617
|
|
- >
|
618
|
|
- 一级反渗
|
619
|
|
- </td>
|
620
|
|
-
|
621
|
|
- <td
|
622
|
|
- :colspan="2"
|
623
|
|
- style="text-align:center;width:60px;font-size:15px"
|
624
|
|
- >
|
625
|
|
- 二级反渗
|
626
|
|
- </td>
|
627
|
|
-
|
628
|
|
- <td
|
629
|
|
- :rowspan="2"
|
630
|
|
- style="text-align:center;width:60px;font-size:15px"
|
631
|
|
- >
|
632
|
|
- 碳罐
|
633
|
|
- </td>
|
634
|
|
- <td
|
635
|
|
- :rowspan="2"
|
636
|
|
- style="text-align:center;width:60px;font-size:15px"
|
637
|
|
- >
|
638
|
|
- 砂罐
|
639
|
|
- </td>
|
640
|
|
-
|
641
|
|
- <td
|
642
|
|
- :rowspan="2"
|
643
|
|
- style="text-align:center;width:60px;font-size:15px"
|
644
|
|
- >
|
645
|
|
- 树脂罐
|
646
|
|
- </td>
|
647
|
|
-
|
648
|
|
- <td
|
649
|
|
- :rowspan="2"
|
650
|
|
- style="text-align:center;width:60px;font-size:15px"
|
651
|
|
- >
|
652
|
|
- 静谧过滤器(MPa)
|
653
|
|
- </td>
|
654
|
|
-
|
655
|
|
- <td
|
656
|
|
- :colspan="4"
|
657
|
|
- style="text-align:center;width:60px;font-size:15px"
|
658
|
|
- >
|
659
|
|
- 水质监测
|
660
|
|
- </td>
|
661
|
|
-
|
662
|
|
- <td
|
663
|
|
- :colspan="2"
|
664
|
|
- style="text-align:center;width:60px;font-size:15px"
|
665
|
|
- >
|
666
|
|
- 消毒
|
667
|
|
- </td>
|
668
|
|
-
|
669
|
|
- <td
|
670
|
|
- :rowspan="2"
|
671
|
|
- style="text-align:center;width:60px;font-size:15px"
|
672
|
|
- >
|
673
|
|
- 过滤器更换
|
674
|
|
- </td>
|
675
|
|
-
|
676
|
|
- <td
|
677
|
|
- :rowspan="2"
|
678
|
|
- style="text-align:center;width:60px;font-size:15px"
|
679
|
|
- >
|
680
|
|
- 记录人
|
681
|
|
- </td>
|
682
|
|
-
|
683
|
|
- </tr>
|
684
|
|
- <tr>
|
685
|
|
- <td style="text-align:center;width:70px;font-size:15px">
|
686
|
|
- 原水电导度
|
687
|
|
- </td>
|
688
|
|
- <td style="text-align:center;width:50px;font-size:15px">
|
689
|
|
- 原水压力
|
690
|
|
- </td>
|
691
|
|
- <td style="text-align:center;width:70px;font-size:15px">
|
692
|
|
- 温度
|
693
|
|
- </td>
|
694
|
|
- <td style="text-align:center;width:95px;font-size:15px">
|
695
|
|
- 加压泵
|
696
|
|
- </td>
|
697
|
|
-
|
698
|
|
- <td style="text-align:center;width:70px;font-size:15px">
|
699
|
|
- 产水电导度
|
700
|
|
- </td>
|
701
|
|
- <td style="text-align:center;width:95px;font-size:15px">
|
702
|
|
- 产水量
|
703
|
|
- </td>
|
704
|
|
-
|
705
|
|
- <td style="text-align:center;width:70px;font-size:15px">
|
706
|
|
- 产水电导度
|
707
|
|
- </td>
|
708
|
|
- <td style="text-align:center;width:95px;font-size:15px">
|
709
|
|
- 产水量
|
710
|
|
- </td>
|
711
|
|
-
|
712
|
|
-
|
713
|
|
-
|
714
|
|
- <td style="text-align:center;width:70px;font-size:15px">
|
715
|
|
- 硬度(mg/l)
|
716
|
|
- </td>
|
717
|
|
- <td style="text-align:center;width:95px;font-size:15px">
|
718
|
|
- 总氯(mg/l)
|
719
|
|
- </td>
|
720
|
|
-
|
721
|
|
- <td style="text-align:center;width:70px;font-size:15px">
|
722
|
|
- PH值
|
723
|
|
- </td>
|
724
|
|
- <td style="text-align:center;width:95px;font-size:15px">
|
725
|
|
- 过氧乙酸(mg/l)
|
726
|
|
- </td>
|
727
|
|
-
|
728
|
|
- <td style="text-align:center;width:70px;font-size:15px">
|
729
|
|
- 反渗膜消毒
|
730
|
|
- </td>
|
731
|
|
- <td style="text-align:center;width:95px;font-size:15px">
|
732
|
|
- 输水管道消毒
|
733
|
|
- </td>
|
734
|
|
-
|
735
|
|
-
|
736
|
|
-
|
737
|
|
- </tr>
|
738
|
|
- <tr v-for="item in this.tableData" :key="item.id">
|
739
|
|
- <td style="text-align:center;font-size:15px;height:30px">
|
740
|
|
-
|
741
|
|
- </td>
|
742
|
|
-
|
743
|
|
- <td style="text-align:center;font-size:15px;height:30px">
|
744
|
|
-
|
745
|
|
- </td>
|
746
|
|
- <td style="text-align:center;font-size:15px;height:30px">
|
747
|
|
-
|
748
|
|
- </td>
|
749
|
|
- <td style="text-align:center;font-size:15px;height:30px">
|
750
|
|
-
|
751
|
|
- </td>
|
752
|
|
- <td style="text-align:center;font-size:15px;height:30px">
|
753
|
|
-
|
754
|
|
- </td>
|
755
|
|
-
|
756
|
|
- <td style="text-align:center;font-size:15px;height:30px">
|
757
|
|
-
|
758
|
|
- </td>
|
759
|
|
- <td style="text-align:center;font-size:15px;height:30px">
|
760
|
|
-
|
761
|
|
- </td>
|
762
|
|
-
|
763
|
|
- <td style="text-align:center;font-size:15px;height:30px">
|
764
|
|
-
|
765
|
|
- </td>
|
766
|
|
- <td style="text-align:center;font-size:15px;height:30px">
|
767
|
|
-
|
768
|
|
- </td>
|
769
|
|
-
|
770
|
|
- <td
|
771
|
|
- style="text-align:center;width:60px;font-size:15px"
|
772
|
|
- >
|
773
|
|
-
|
774
|
|
- </td>
|
775
|
|
- <td
|
776
|
|
- style="text-align:center;width:60px;font-size:15px"
|
777
|
|
- >
|
778
|
|
-
|
779
|
|
- </td>
|
780
|
|
-
|
781
|
|
- <td
|
782
|
|
- style="text-align:center;width:60px;font-size:15px"
|
783
|
|
- >
|
784
|
|
-
|
785
|
|
- </td>
|
786
|
|
-
|
787
|
|
- <td
|
788
|
|
- style="text-align:center;width:60px;font-size:15px"
|
789
|
|
- >
|
790
|
|
-
|
791
|
|
- </td>
|
792
|
|
-
|
793
|
|
- <td
|
794
|
|
- style="text-align:center;width:60px;font-size:15px"
|
795
|
|
- >
|
796
|
|
-
|
797
|
|
- </td>
|
798
|
|
- <td
|
799
|
|
- style="text-align:center;width:60px;font-size:15px"
|
800
|
|
- >
|
801
|
|
-
|
802
|
|
- </td>
|
803
|
|
-
|
804
|
|
- <td
|
805
|
|
- style="text-align:center;width:60px;font-size:15px"
|
806
|
|
- >
|
807
|
|
-
|
808
|
|
- </td>
|
809
|
|
-
|
810
|
|
- <td
|
811
|
|
- style="text-align:center;width:60px;font-size:15px"
|
812
|
|
- >
|
813
|
|
-
|
814
|
|
- </td>
|
815
|
|
-
|
816
|
|
- <td
|
817
|
|
- style="text-align:center;width:60px;font-size:15px"
|
818
|
|
- >
|
819
|
|
-
|
820
|
|
- </td>
|
821
|
|
-
|
822
|
|
- <td
|
823
|
|
- style="text-align:center;width:60px;font-size:15px"
|
824
|
|
- >
|
825
|
|
-
|
826
|
|
- </td>
|
827
|
|
-
|
828
|
|
- <td
|
829
|
|
- style="text-align:center;width:60px;font-size:15px"
|
830
|
|
- >
|
831
|
|
-
|
832
|
|
- </td>
|
833
|
|
-
|
834
|
|
- <td style="text-align:center;width:70px;font-size:15px">
|
835
|
|
-
|
836
|
|
- </td>
|
837
|
|
-
|
838
|
|
-
|
839
|
|
-
|
840
|
|
-
|
841
|
|
- </tr>
|
842
|
|
- </table>
|
843
|
|
- </div>
|
844
|
|
- </div>
|
845
|
|
- </div>
|
846
|
|
- </div>
|
847
|
|
- </div>
|
848
|
539
|
</div>
|
849
|
540
|
</template>
|
850
|
541
|
|
|
@@ -860,13 +551,10 @@ import {
|
860
|
551
|
} from "@/api/manage";
|
861
|
552
|
import { uParseTime } from "@/utils/tools";
|
862
|
553
|
import { getFileExtension } from "@/utils/tools";
|
863
|
|
-import print from "print-js";
|
864
|
|
-const moment = require("moment");
|
865
|
554
|
export default {
|
866
|
555
|
name: "RepairForm",
|
867
|
556
|
data() {
|
868
|
557
|
return {
|
869
|
|
- nowTime: moment(new Date()).format("YYYY-MM-DD HH:MM:SS"),
|
870
|
558
|
dialogVisible: false,
|
871
|
559
|
selectCulture: [],
|
872
|
560
|
forms: {
|
|
@@ -890,10 +578,7 @@ export default {
|
890
|
578
|
exclude: "",
|
891
|
579
|
reason: "",
|
892
|
580
|
code_information: "",
|
893
|
|
- image_name: "",
|
894
|
|
- admin_user_id:this.$store.getters.xt_user.user.id,
|
895
|
|
- function_accessories_inspection:"",
|
896
|
|
- other_information:"",
|
|
581
|
+ image_name: ""
|
897
|
582
|
},
|
898
|
583
|
isIndeterminate: false,
|
899
|
584
|
checkAllStatus: false,
|
|
@@ -921,9 +606,6 @@ export default {
|
921
|
606
|
limit: 10,
|
922
|
607
|
page: 1,
|
923
|
608
|
total: 0,
|
924
|
|
- macherList:[],
|
925
|
|
- docList:[],
|
926
|
|
- hiddenShow:false,
|
927
|
609
|
};
|
928
|
610
|
},
|
929
|
611
|
methods: {
|
|
@@ -956,10 +638,6 @@ export default {
|
956
|
638
|
if (response.data.state === 1) {
|
957
|
639
|
var repair = response.data.data.repair;
|
958
|
640
|
console.log("repair是", repair);
|
959
|
|
- var macherList = response.data.data.macherList
|
960
|
|
-
|
961
|
|
- this.macherList = macherList
|
962
|
|
- this.docList = response.data.data.docList
|
963
|
641
|
// eslint-disable-next-line no-unused-vars
|
964
|
642
|
var total = response.data.data.total;
|
965
|
643
|
this.total = total;
|
|
@@ -998,7 +676,6 @@ export default {
|
998
|
676
|
repair[index].exclude = "未解决";
|
999
|
677
|
}
|
1000
|
678
|
}
|
1001
|
|
- console.log("repair------",repair)
|
1002
|
679
|
this.tableData = repair;
|
1003
|
680
|
}
|
1004
|
681
|
});
|
|
@@ -1021,7 +698,6 @@ export default {
|
1021
|
698
|
if (response.data.state === 1) {
|
1022
|
699
|
var repair = response.data.data.repair;
|
1023
|
700
|
console.log("repair", repair);
|
1024
|
|
- this.docList = response.data.data.docList
|
1025
|
701
|
this.guaForm.guarantee_date = uParseTime(
|
1026
|
702
|
repair.guarantee_date,
|
1027
|
703
|
"{y}-{m}-{d}"
|
|
@@ -1049,9 +725,6 @@ export default {
|
1049
|
725
|
this.guaForm.code_information = repair.code_information;
|
1050
|
726
|
this.guaForm.id = repair.id;
|
1051
|
727
|
this.filename = repair.image_name;
|
1052
|
|
- this.guaForm.admin_user_id = repair.admin_user_id
|
1053
|
|
- this.guaForm.function_accessories_inspection = repair.function_accessories_inspection
|
1054
|
|
- this.guaForm.other_information= repair.other_information
|
1055
|
728
|
}
|
1056
|
729
|
});
|
1057
|
730
|
},
|
|
@@ -1258,50 +931,9 @@ export default {
|
1258
|
931
|
});
|
1259
|
932
|
});
|
1260
|
933
|
},
|
1261
|
|
- getDeviceName(id){
|
1262
|
|
- var device_name= ""
|
1263
|
|
- for(let i=0;i<this.macherList.length;i++){
|
1264
|
|
- if(id == this.macherList[i].id){
|
1265
|
|
- device_name = this.macherList[i].device_name
|
1266
|
|
- }
|
1267
|
|
- }
|
1268
|
|
- return device_name
|
1269
|
|
- },
|
1270
|
|
- getRepairName(id){
|
1271
|
|
- var device_type= ""
|
1272
|
|
- for(let i=0;i<this.macherList.length;i++){
|
1273
|
|
- if(id == this.macherList[i].id){
|
1274
|
|
- device_type = this.macherList[i].device_type
|
1275
|
|
- }
|
1276
|
|
- }
|
1277
|
|
- return device_type
|
1278
|
|
- },
|
1279
|
|
- getName(admin_user_id){
|
1280
|
|
- var user_name = ""
|
1281
|
|
- for(let i=0;i<this.docList.length;i++){
|
1282
|
|
- if(admin_user_id == this.docList[i].admin_user_id){
|
1283
|
|
- user_name = this.docList[i].user_name
|
1284
|
|
- }
|
1285
|
|
- }
|
1286
|
|
- return user_name
|
1287
|
|
- },
|
1288
|
|
- printCard() {
|
1289
|
|
- this.hiddenShow = true;
|
1290
|
|
- var ptime = Math.round(new Date().getTime() / 1000);
|
1291
|
|
- this.print_time = uParseTime(ptime, "{y}年{m}月{d}日");
|
1292
|
|
-
|
1293
|
|
- const style =
|
1294
|
|
- "@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}";
|
1295
|
|
-
|
1296
|
|
- setTimeout(() => {
|
1297
|
|
- printJS({
|
1298
|
|
- printable: "print-card-info",
|
1299
|
|
- type: "html",
|
1300
|
|
- style: style,
|
1301
|
|
- scanStyles: false
|
1302
|
|
- });
|
1303
|
|
- }, 1);
|
1304
|
|
- },
|
|
934
|
+ printCard(){
|
|
935
|
+ console.log('sadfgadsf');
|
|
936
|
+ }
|
1305
|
937
|
},
|
1306
|
938
|
created() {
|
1307
|
939
|
this.getAllSubregion();
|
|
@@ -1310,30 +942,8 @@ export default {
|
1310
|
942
|
};
|
1311
|
943
|
</script>
|
1312
|
944
|
|
1313
|
|
-
|
1314
|
945
|
<style scoped>
|
1315
|
|
-
|
1316
|
946
|
.row {
|
1317
|
947
|
margin-bottom: 10px;
|
1318
|
948
|
}
|
1319
|
|
-.a {
|
1320
|
|
- /* .el-col-2 {
|
1321
|
|
- width: 8.33333%;
|
1322
|
|
- margin-bottom: 20px;
|
1323
|
|
- } */
|
1324
|
|
-}
|
1325
|
|
-.print_main_content {
|
1326
|
|
- background-color: white;
|
1327
|
|
- width: 960px;
|
1328
|
|
- margin: 0 auto;
|
1329
|
|
- padding: 0 0 20px 0;
|
1330
|
|
-}
|
1331
|
|
-.tableClass {
|
1332
|
|
- font-size: 10px;
|
1333
|
|
- font-weight: none;
|
1334
|
|
-}
|
1335
|
|
-.printClass {
|
1336
|
|
- width: 100%;
|
1337
|
|
- text-align: right;
|
1338
|
|
-}
|
1339
|
949
|
</style>
|