|
@@ -1,7 +1,8 @@
|
1
|
1
|
<template>
|
2
|
2
|
<div>
|
|
3
|
+ <div>
|
3
|
4
|
<el-row class="row">
|
4
|
|
- <el-col :span="5">
|
|
5
|
+ <!-- <el-col :span="5">
|
5
|
6
|
<span class="machineClass">机号:</span>
|
6
|
7
|
<el-select style="width:100px" v-model="forms.bed">
|
7
|
8
|
<el-option
|
|
@@ -11,7 +12,7 @@
|
11
|
12
|
:value="item.id"
|
12
|
13
|
></el-option>
|
13
|
14
|
</el-select>
|
14
|
|
- </el-col>
|
|
15
|
+ </el-col> -->
|
15
|
16
|
<el-col :span="11">
|
16
|
17
|
<span class="machineClass">日期查询:</span>
|
17
|
18
|
<el-date-picker
|
|
@@ -47,8 +48,13 @@
|
47
|
48
|
<el-col :span="2">
|
48
|
49
|
<el-button size="small" @click="BatchDelete">批量删除</el-button>
|
49
|
50
|
</el-col>
|
|
51
|
+ <span> </span>
|
|
52
|
+ <el-col :span="6">
|
|
53
|
+ <el-button type="primary" size="small" @click="printCard">打印</el-button>
|
|
54
|
+ </el-col>
|
50
|
55
|
</el-row>
|
51
|
56
|
<el-row>
|
|
57
|
+
|
52
|
58
|
<el-table
|
53
|
59
|
ref="multipleTable"
|
54
|
60
|
@selection-change="handleSelectionChange"
|
|
@@ -62,6 +68,125 @@
|
62
|
68
|
fit
|
63
|
69
|
highlight-current-row
|
64
|
70
|
style="width: 100%;margin-top: 10px;"
|
|
71
|
+ >
|
|
72
|
+ <el-table-column
|
|
73
|
+ align="center"
|
|
74
|
+ type="selection"
|
|
75
|
+ width="55"
|
|
76
|
+ ></el-table-column>
|
|
77
|
+ <el-table-column prop="date" label="设备名称" width="100" align="center">
|
|
78
|
+ <template slot-scope="scope">
|
|
79
|
+ {{ getDeviceName(scope.row.equitment_id) }}
|
|
80
|
+ </template>
|
|
81
|
+ </el-table-column>
|
|
82
|
+
|
|
83
|
+ <el-table-column prop="date" label= "型号" width="80" align="center">
|
|
84
|
+ <template slot-scope="scope">
|
|
85
|
+ <span v-if="getRepairName(scope.row.equitment_id) == 1">透析机</span>
|
|
86
|
+ <span v-if="getRepairName(scope.row.equitment_id) == 2">水处理机</span>
|
|
87
|
+ <span v-if="getRepairName(scope.row.equitment_id) == 3">其他</span>
|
|
88
|
+ </template>
|
|
89
|
+ </el-table-column>
|
|
90
|
+
|
|
91
|
+ <el-table-column label="保养维护内容" align="center" min-width="110px">
|
|
92
|
+ <el-table-column label="功能及附件检查" align="center" min-width="110px">
|
|
93
|
+ <template slot-scope="scope">
|
|
94
|
+ {{scope.row.function_accessories_inspection }}
|
|
95
|
+ </template>
|
|
96
|
+ </el-table-column>
|
|
97
|
+ <el-table-column label="其他" align="center" min-width="110px">
|
|
98
|
+ <template slot-scope="scope">
|
|
99
|
+ {{ scope.row.other_information }}
|
|
100
|
+ </template>
|
|
101
|
+ </el-table-column>
|
|
102
|
+ </el-table-column>
|
|
103
|
+
|
|
104
|
+ <el-table-column label="维修记录" align="center" min-width="110px">
|
|
105
|
+ <el-table-column label="故障现象" align="center" min-width="110px">
|
|
106
|
+ <template slot-scope="scope">
|
|
107
|
+ {{ scope.row.fault_description }}
|
|
108
|
+ </template>
|
|
109
|
+ </el-table-column>
|
|
110
|
+ <el-table-column label="维修内容" align="center" min-width="110px">
|
|
111
|
+ <template slot-scope="scope">
|
|
112
|
+ {{ scope.row.cause_analysis }}
|
|
113
|
+ </template>
|
|
114
|
+ </el-table-column>
|
|
115
|
+
|
|
116
|
+ <el-table-column label="维修结果" align="center" min-width="110px">
|
|
117
|
+ <template slot-scope="scope">
|
|
118
|
+ {{ scope.row.treatment_process }}
|
|
119
|
+ </template>
|
|
120
|
+ </el-table-column>
|
|
121
|
+ </el-table-column>
|
|
122
|
+
|
|
123
|
+ <el-table-column prop="date" label= "维修者" width="80" align="center">
|
|
124
|
+ <template slot-scope="scope">
|
|
125
|
+ {{ getName(scope.row.admin_user_id) }}
|
|
126
|
+ </template>
|
|
127
|
+ </el-table-column>
|
|
128
|
+
|
|
129
|
+ <el-table-column prop="date" label= "日期" width="80" align="center">
|
|
130
|
+ <template slot-scope="scope">
|
|
131
|
+ {{ getTime(scope.row.guarantee_date) }}
|
|
132
|
+ </template>
|
|
133
|
+ </el-table-column>
|
|
134
|
+
|
|
135
|
+ <el-table-column prop="date" label= "备注" width="80" align="center">
|
|
136
|
+ <template slot-scope="scope">
|
|
137
|
+ {{ scope.row.reason }}
|
|
138
|
+ </template>
|
|
139
|
+ </el-table-column>
|
|
140
|
+
|
|
141
|
+
|
|
142
|
+
|
|
143
|
+ <el-table-column label="操作" align="center" min-width="150px">
|
|
144
|
+ <template slot-scope="scope">
|
|
145
|
+ <el-tooltip
|
|
146
|
+ class="item"
|
|
147
|
+ effect="dark"
|
|
148
|
+ content="编辑"
|
|
149
|
+ placement="top"
|
|
150
|
+ >
|
|
151
|
+ <el-button
|
|
152
|
+ size="mini"
|
|
153
|
+ type="primary"
|
|
154
|
+ icon="el-icon-edit-outline"
|
|
155
|
+ @click="
|
|
156
|
+ EditRepair(scope.row.id, scope.row.sampler, scope.$index)
|
|
157
|
+ "
|
|
158
|
+ ></el-button>
|
|
159
|
+ </el-tooltip>
|
|
160
|
+
|
|
161
|
+ <el-tooltip
|
|
162
|
+ class="item"
|
|
163
|
+ effect="dark"
|
|
164
|
+ content="删除"
|
|
165
|
+ placement="top"
|
|
166
|
+ >
|
|
167
|
+ <el-button
|
|
168
|
+ size="mini"
|
|
169
|
+ type="danger"
|
|
170
|
+ icon="el-icon-delete"
|
|
171
|
+ @click="DeleteRepairs(scope.row.id, scope.$index)"
|
|
172
|
+ ></el-button>
|
|
173
|
+ </el-tooltip>
|
|
174
|
+ </template>
|
|
175
|
+ </el-table-column>
|
|
176
|
+ </el-table>
|
|
177
|
+ <!-- <el-table
|
|
178
|
+ ref="multipleTable"
|
|
179
|
+ @selection-change="handleSelectionChange"
|
|
180
|
+ :row-style="{ color: '#303133' }"
|
|
181
|
+ :header-cell-style="{
|
|
182
|
+ backgroundColor: 'rgb(245, 247, 250)',
|
|
183
|
+ color: '#606266'
|
|
184
|
+ }"
|
|
185
|
+ :data="tableData"
|
|
186
|
+ border
|
|
187
|
+ fit
|
|
188
|
+ highlight-current-row
|
|
189
|
+ style="width: 100%;margin-top: 10px;"
|
65
|
190
|
>
|
66
|
191
|
<el-table-column
|
67
|
192
|
align="center"
|
|
@@ -209,7 +334,7 @@
|
209
|
334
|
</el-tooltip>
|
210
|
335
|
</template>
|
211
|
336
|
</el-table-column>
|
212
|
|
- </el-table>
|
|
337
|
+ </el-table> -->
|
213
|
338
|
<el-pagination
|
214
|
339
|
@size-change="handleSizeChange"
|
215
|
340
|
@current-change="handleCurrentChange"
|
|
@@ -291,6 +416,32 @@
|
291
|
416
|
</el-form-item>
|
292
|
417
|
</el-col>
|
293
|
418
|
</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>
|
294
|
445
|
<el-row>
|
295
|
446
|
<el-col :span="24">
|
296
|
447
|
<el-form-item label="故障发生阶段">
|
|
@@ -321,7 +472,7 @@
|
321
|
472
|
</el-row>
|
322
|
473
|
<el-row>
|
323
|
474
|
<el-col :span="8">
|
324
|
|
- <el-form-item label="故障描述:" required prop="fault_description">
|
|
475
|
+ <el-form-item label="故障现象:" required prop="fault_description">
|
325
|
476
|
<el-input
|
326
|
477
|
type="textarea"
|
327
|
478
|
:rows="2"
|
|
@@ -332,7 +483,7 @@
|
332
|
483
|
</el-form-item>
|
333
|
484
|
</el-col>
|
334
|
485
|
<el-col :span="8">
|
335
|
|
- <el-form-item label="原因分析:">
|
|
486
|
+ <el-form-item label="维修内容:">
|
336
|
487
|
<el-input
|
337
|
488
|
type="textarea"
|
338
|
489
|
:rows="2"
|
|
@@ -343,7 +494,7 @@
|
343
|
494
|
</el-form-item>
|
344
|
495
|
</el-col>
|
345
|
496
|
<el-col :span="8">
|
346
|
|
- <el-form-item label="处理过程:">
|
|
497
|
+ <el-form-item label="维修结果:">
|
347
|
498
|
<el-input
|
348
|
499
|
type="textarea"
|
349
|
500
|
:rows="2"
|
|
@@ -393,7 +544,7 @@
|
393
|
544
|
</el-row>
|
394
|
545
|
<el-row>
|
395
|
546
|
<el-col :span="20">
|
396
|
|
- <el-form-item label="原因:">
|
|
547
|
+ <el-form-item label="备注:">
|
397
|
548
|
<el-input
|
398
|
549
|
type="textarea"
|
399
|
550
|
:rows="2"
|
|
@@ -404,6 +555,21 @@
|
404
|
555
|
</el-form-item>
|
405
|
556
|
</el-col>
|
406
|
557
|
</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>
|
407
|
573
|
</el-form>
|
408
|
574
|
<span slot="footer" class="dialog-footer">
|
409
|
575
|
<!-- <button @click="lili">调试</button>-->
|
|
@@ -413,6 +579,272 @@
|
413
|
579
|
>
|
414
|
580
|
</span>
|
415
|
581
|
</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>
|
416
|
848
|
</div>
|
417
|
849
|
</template>
|
418
|
850
|
|
|
@@ -428,10 +860,13 @@ import {
|
428
|
860
|
} from "@/api/manage";
|
429
|
861
|
import { uParseTime } from "@/utils/tools";
|
430
|
862
|
import { getFileExtension } from "@/utils/tools";
|
|
863
|
+import print from "print-js";
|
|
864
|
+const moment = require("moment");
|
431
|
865
|
export default {
|
432
|
866
|
name: "RepairForm",
|
433
|
867
|
data() {
|
434
|
868
|
return {
|
|
869
|
+ nowTime: moment(new Date()).format("YYYY-MM-DD HH:MM:SS"),
|
435
|
870
|
dialogVisible: false,
|
436
|
871
|
selectCulture: [],
|
437
|
872
|
forms: {
|
|
@@ -455,7 +890,10 @@ export default {
|
455
|
890
|
exclude: "",
|
456
|
891
|
reason: "",
|
457
|
892
|
code_information: "",
|
458
|
|
- image_name: ""
|
|
893
|
+ image_name: "",
|
|
894
|
+ admin_user_id:this.$store.getters.xt_user.user.id,
|
|
895
|
+ function_accessories_inspection:"",
|
|
896
|
+ other_information:"",
|
459
|
897
|
},
|
460
|
898
|
isIndeterminate: false,
|
461
|
899
|
checkAllStatus: false,
|
|
@@ -483,6 +921,9 @@ export default {
|
483
|
921
|
limit: 10,
|
484
|
922
|
page: 1,
|
485
|
923
|
total: 0,
|
|
924
|
+ macherList:[],
|
|
925
|
+ docList:[],
|
|
926
|
+ hiddenShow:false,
|
486
|
927
|
};
|
487
|
928
|
},
|
488
|
929
|
methods: {
|
|
@@ -515,6 +956,10 @@ export default {
|
515
|
956
|
if (response.data.state === 1) {
|
516
|
957
|
var repair = response.data.data.repair;
|
517
|
958
|
console.log("repair是", repair);
|
|
959
|
+ var macherList = response.data.data.macherList
|
|
960
|
+
|
|
961
|
+ this.macherList = macherList
|
|
962
|
+ this.docList = response.data.data.docList
|
518
|
963
|
// eslint-disable-next-line no-unused-vars
|
519
|
964
|
var total = response.data.data.total;
|
520
|
965
|
this.total = total;
|
|
@@ -553,6 +998,7 @@ export default {
|
553
|
998
|
repair[index].exclude = "未解决";
|
554
|
999
|
}
|
555
|
1000
|
}
|
|
1001
|
+ console.log("repair------",repair)
|
556
|
1002
|
this.tableData = repair;
|
557
|
1003
|
}
|
558
|
1004
|
});
|
|
@@ -575,6 +1021,7 @@ export default {
|
575
|
1021
|
if (response.data.state === 1) {
|
576
|
1022
|
var repair = response.data.data.repair;
|
577
|
1023
|
console.log("repair", repair);
|
|
1024
|
+ this.docList = response.data.data.docList
|
578
|
1025
|
this.guaForm.guarantee_date = uParseTime(
|
579
|
1026
|
repair.guarantee_date,
|
580
|
1027
|
"{y}-{m}-{d}"
|
|
@@ -602,6 +1049,9 @@ export default {
|
602
|
1049
|
this.guaForm.code_information = repair.code_information;
|
603
|
1050
|
this.guaForm.id = repair.id;
|
604
|
1051
|
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
|
605
|
1055
|
}
|
606
|
1056
|
});
|
607
|
1057
|
},
|
|
@@ -807,7 +1257,51 @@ export default {
|
807
|
1257
|
}
|
808
|
1258
|
});
|
809
|
1259
|
});
|
810
|
|
- }
|
|
1260
|
+ },
|
|
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
|
+ },
|
811
|
1305
|
},
|
812
|
1306
|
created() {
|
813
|
1307
|
this.getAllSubregion();
|
|
@@ -816,8 +1310,30 @@ export default {
|
816
|
1310
|
};
|
817
|
1311
|
</script>
|
818
|
1312
|
|
|
1313
|
+
|
819
|
1314
|
<style scoped>
|
|
1315
|
+
|
820
|
1316
|
.row {
|
821
|
1317
|
margin-bottom: 10px;
|
822
|
1318
|
}
|
|
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
|
+}
|
823
|
1339
|
</style>
|