Browse Source

Merge branch 'superman' of http://git.shengws.com/zhangbj/xt_vue into superman

XMLWAN 4 years ago
parent
commit
d386cf1f0d

+ 10 - 0
src/styles/index.scss View File

532
 .el-checkbox__inner {
532
 .el-checkbox__inner {
533
   border: 1px solid #696969 !important;
533
   border: 1px solid #696969 !important;
534
 }
534
 }
535
+
536
+.el-table--striped .el-table__body tr.el-table__row--striped.current-row td,
537
+.el-table__body tr.current-row > td {
538
+  background-color: #409eff;
539
+  color: #fff;
540
+}
541
+
542
+.el-table__body tr:hover > td {
543
+  background-color: #409eff !important;
544
+}

+ 145 - 405
src/xt_pages/management/components/QualityForm.vue View File

1
 <template>
1
 <template>
2
   <div id="quality-form">
2
   <div id="quality-form">
3
     <el-row class="row">
3
     <el-row class="row">
4
-      <el-col :span="4">
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
12
           ></el-option>
12
           ></el-option>
13
         </el-select>
13
         </el-select>
14
       </el-col>
14
       </el-col>
15
-      <el-col :span="6">
16
-        <el-select
17
-          style="width:175px"
18
-          v-model="forms.sename"
19
-          @change="changeTable"
20
-        >
15
+      <el-col :span="4">
16
+        <el-select style="width:130px" v-model="forms.sename" @change="changeTable">
21
           <el-option
17
           <el-option
22
             v-for="item in this.tableTypes"
18
             v-for="item in this.tableTypes"
23
             :key="item.id"
19
             :key="item.id"
26
           ></el-option>
22
           ></el-option>
27
         </el-select>
23
         </el-select>
28
       </el-col>
24
       </el-col>
29
-      <el-col :span="11">
25
+      <el-col :span="12">
30
         <span class="machineClass">日期查询:</span>
26
         <span class="machineClass">日期查询:</span>
31
         <el-date-picker
27
         <el-date-picker
32
           v-model="forms.start_time"
28
           v-model="forms.start_time"
36
           format="yyyy-MM-dd"
32
           format="yyyy-MM-dd"
37
           value-format="yyyy-MM-dd"
33
           value-format="yyyy-MM-dd"
38
           style="width:150px"
34
           style="width:150px"
39
-        ></el-date-picker
40
-        >-
35
+        ></el-date-picker>-
41
         <el-date-picker
36
         <el-date-picker
42
           v-model="forms.end_time"
37
           v-model="forms.end_time"
43
           prefix-icon="none"
38
           prefix-icon="none"
55
         <el-button>打印</el-button>
50
         <el-button>打印</el-button>
56
       </el-col>-->
51
       </el-col>-->
57
     </el-row>
52
     </el-row>
58
-    <el-row>
53
+    <el-row style="display: flex;align-items: center;">
59
       <el-col :span="2">
54
       <el-col :span="2">
60
-        <el-checkbox v-model="checkAllStatus" @change="changeCheck"
61
-          >全选</el-checkbox
62
-        >
55
+        <el-checkbox v-model="checkAllStatus" @change="changeCheck">全选</el-checkbox>
63
       </el-col>
56
       </el-col>
64
-      <el-col :span="3" class="a">
65
-        <el-button size="small" @click="BatchDelete" v-show="show"
66
-          >批量删除</el-button
67
-        >
68
-        <el-button size="small" @click="BatchDeleteOne" v-show="showOne"
69
-          >批量删除</el-button
70
-        >
71
-        <el-button size="small" @click="BatchDeleteTwo" v-show="showTwo"
72
-          >批量删除</el-button
73
-        >
57
+      <el-col :span="3">
58
+        <el-button size="small" @click="BatchDelete" v-show="show">批量删除</el-button>
59
+        <el-button size="small" @click="BatchDeleteOne" v-show="showOne">批量删除</el-button>
60
+        <el-button size="small" @click="BatchDeleteTwo" v-show="showTwo">批量删除</el-button>
74
       </el-col>
61
       </el-col>
75
     </el-row>
62
     </el-row>
76
     <el-row>
63
     <el-row>
78
       <el-table
65
       <el-table
79
         ref="multipleTable"
66
         ref="multipleTable"
80
         @selection-change="handleSelectionChange"
67
         @selection-change="handleSelectionChange"
81
-        :header-cell-style="{ backgroundColor: 'rgb(245, 247, 250)' }"
68
+        :row-style="{ color: '#303133' }"
69
+        :header-cell-style="{
70
+          backgroundColor: 'rgb(245, 247, 250)',
71
+          color: '#606266'
72
+        }"
82
         :data="tableData"
73
         :data="tableData"
83
         border
74
         border
84
         fit
75
         fit
86
         style="width: 100%;margin-top: 10px;"
77
         style="width: 100%;margin-top: 10px;"
87
         v-show="show"
78
         v-show="show"
88
       >
79
       >
89
-        <el-table-column
90
-          align="center"
91
-          type="selection"
92
-          width="55"
93
-        ></el-table-column>
80
+        <el-table-column align="center" type="selection" width="55"></el-table-column>
94
         <el-table-column prop="date" label="机号" width="80" align="center">
81
         <el-table-column prop="date" label="机号" width="80" align="center">
95
           <template slot-scope="scope">{{ scope.row.bed }}</template>
82
           <template slot-scope="scope">{{ scope.row.bed }}</template>
96
         </el-table-column>
83
         </el-table-column>
97
-        <el-table-column
98
-          prop="name"
99
-          label="取样日期"
100
-          width="100"
101
-          align="center"
102
-        >
103
-          <template slot-scope="scope">{{
84
+        <el-table-column prop="name" label="取样日期" width="100" align="center">
85
+          <template slot-scope="scope">
86
+            {{
104
             getTime(scope.row.speling_date)
87
             getTime(scope.row.speling_date)
105
-          }}</template>
88
+            }}
89
+          </template>
106
         </el-table-column>
90
         </el-table-column>
107
-        <el-table-column
108
-          prop="address"
109
-          label="取样标本"
110
-          width="100"
111
-          align="center"
112
-        >
91
+        <el-table-column prop="address" label="取样标本" width="100" align="center">
113
           <template slot-scope="scope">{{ scope.row.specimen }}</template>
92
           <template slot-scope="scope">{{ scope.row.specimen }}</template>
114
         </el-table-column>
93
         </el-table-column>
115
-        <el-table-column
116
-          prop="address"
117
-          label="A浓缩液批号"
118
-          width="80"
119
-          align="center"
120
-        >
121
-          <template slot-scope="scope">{{
94
+        <el-table-column prop="address" label="A浓缩液批号" width="80" align="center">
95
+          <template slot-scope="scope">
96
+            {{
122
             scope.row.concentrate_noa
97
             scope.row.concentrate_noa
123
-          }}</template>
98
+            }}
99
+          </template>
124
         </el-table-column>
100
         </el-table-column>
125
-        <el-table-column
126
-          prop="address"
127
-          label="B浓缩液批号"
128
-          width="80"
129
-          align="center"
130
-        >
131
-          <template slot-scope="scope">{{
101
+        <el-table-column prop="address" label="B浓缩液批号" width="80" align="center">
102
+          <template slot-scope="scope">
103
+            {{
132
             scope.row.concentrate_nob
104
             scope.row.concentrate_nob
133
-          }}</template>
105
+            }}
106
+          </template>
134
         </el-table-column>
107
         </el-table-column>
135
-        <el-table-column
136
-          prop="address"
137
-          label="采样部位"
138
-          width="100"
139
-          align="center"
140
-        >
141
-          <template slot-scope="scope">{{
108
+        <el-table-column prop="address" label="采样部位" width="100" align="center">
109
+          <template slot-scope="scope">
110
+            {{
142
             scope.row.sampling_locationa
111
             scope.row.sampling_locationa
143
-          }}</template>
112
+            }}
113
+          </template>
144
         </el-table-column>
114
         </el-table-column>
145
-        <el-table-column
146
-          prop="address"
147
-          label="检测单位"
148
-          width="100"
149
-          align="center"
150
-        >
115
+        <el-table-column prop="address" label="检测单位" width="100" align="center">
151
           <template slot-scope="scope">{{ scope.row.detection_unit }}</template>
116
           <template slot-scope="scope">{{ scope.row.detection_unit }}</template>
152
         </el-table-column>
117
         </el-table-column>
153
-        <el-table-column
154
-          prop="address"
155
-          label="取样者"
156
-          width="80"
157
-          align="center"
158
-        >
118
+        <el-table-column prop="address" label="取样者" width="80" align="center">
159
           <template slot-scope="scope">{{ scope.row.user_name }}</template>
119
           <template slot-scope="scope">{{ scope.row.user_name }}</template>
160
         </el-table-column>
120
         </el-table-column>
161
-        <el-table-column
162
-          prop="address"
163
-          label="出报告日期"
164
-          width="110"
165
-          align="center"
166
-        >
167
-          <template slot-scope="scope">{{
121
+        <el-table-column prop="address" label="出报告日期" width="110" align="center">
122
+          <template slot-scope="scope">
123
+            {{
168
             getTime(scope.row.reporting_date)
124
             getTime(scope.row.reporting_date)
169
-          }}</template>
125
+            }}
126
+          </template>
170
         </el-table-column>
127
         </el-table-column>
171
-        <el-table-column
172
-          prop="address"
173
-          label="检测结果(cfu/ml)"
174
-          width="140"
175
-          align="center"
176
-        >
177
-          <template slot-scope="scope">{{
128
+        <el-table-column prop="address" label="检测结果(cfu/ml)" width="140" align="center">
129
+          <template slot-scope="scope">
130
+            {{
178
             scope.row.detection_result
131
             scope.row.detection_result
179
-          }}</template>
132
+            }}
133
+          </template>
180
         </el-table-column>
134
         </el-table-column>
181
         <el-table-column label="操作" align="center" min-width="150px">
135
         <el-table-column label="操作" align="center" min-width="150px">
182
           <template slot-scope="scope">
136
           <template slot-scope="scope">
183
-            <el-tooltip
184
-              class="item"
185
-              effect="dark"
186
-              content="编辑"
187
-              placement="top"
188
-            >
137
+            <el-tooltip class="item" effect="dark" content="编辑" placement="top">
189
               <el-button
138
               <el-button
190
                 size="mini"
139
                 size="mini"
191
                 type="primary"
140
                 type="primary"
196
               ></el-button>
145
               ></el-button>
197
             </el-tooltip>
146
             </el-tooltip>
198
 
147
 
199
-            <el-tooltip
200
-              class="item"
201
-              effect="dark"
202
-              content="删除"
203
-              placement="top"
204
-            >
148
+            <el-tooltip class="item" effect="dark" content="删除" placement="top">
205
               <el-button
149
               <el-button
206
                 size="mini"
150
                 size="mini"
207
                 type="primary"
151
                 type="primary"
225
         style="width: 100%;margin-top: 10px;"
169
         style="width: 100%;margin-top: 10px;"
226
         v-show="showOne"
170
         v-show="showOne"
227
       >
171
       >
228
-        <el-table-column
229
-          align="center"
230
-          type="selection"
231
-          width="55"
232
-        ></el-table-column>
172
+        <el-table-column align="center" type="selection" width="55"></el-table-column>
233
         <el-table-column prop="date" label="机号" width="80" align="center">
173
         <el-table-column prop="date" label="机号" width="80" align="center">
234
           <template slot-scope="scope">{{ scope.row.bed }}</template>
174
           <template slot-scope="scope">{{ scope.row.bed }}</template>
235
         </el-table-column>
175
         </el-table-column>
236
-        <el-table-column
237
-          prop="name"
238
-          label="取样日期"
239
-          width="100"
240
-          align="center"
241
-        >
242
-          <template slot-scope="scope">{{
176
+        <el-table-column prop="name" label="取样日期" width="100" align="center">
177
+          <template slot-scope="scope">
178
+            {{
243
             getTime(scope.row.sampling_date)
179
             getTime(scope.row.sampling_date)
244
-          }}</template>
180
+            }}
181
+          </template>
245
         </el-table-column>
182
         </el-table-column>
246
-        <el-table-column
247
-          prop="address"
248
-          label="取样标本"
249
-          width="100"
250
-          align="center"
251
-        >
183
+        <el-table-column prop="address" label="取样标本" width="100" align="center">
252
           <template slot-scope="scope">{{ scope.row.specimenb }}</template>
184
           <template slot-scope="scope">{{ scope.row.specimenb }}</template>
253
         </el-table-column>
185
         </el-table-column>
254
-        <el-table-column
255
-          prop="address"
256
-          label="A浓缩液批号"
257
-          width="80"
258
-          align="center"
259
-        >
260
-          <template slot-scope="scope">{{
186
+        <el-table-column prop="address" label="A浓缩液批号" width="80" align="center">
187
+          <template slot-scope="scope">
188
+            {{
261
             scope.row.concentrate_noc
189
             scope.row.concentrate_noc
262
-          }}</template>
190
+            }}
191
+          </template>
263
         </el-table-column>
192
         </el-table-column>
264
-        <el-table-column
265
-          prop="address"
266
-          label="B浓缩液批号"
267
-          width="80"
268
-          align="center"
269
-        >
270
-          <template slot-scope="scope">{{
193
+        <el-table-column prop="address" label="B浓缩液批号" width="80" align="center">
194
+          <template slot-scope="scope">
195
+            {{
271
             scope.row.concentrateb_nod
196
             scope.row.concentrateb_nod
272
-          }}</template>
197
+            }}
198
+          </template>
273
         </el-table-column>
199
         </el-table-column>
274
-        <el-table-column
275
-          prop="address"
276
-          label="采样部位"
277
-          width="100"
278
-          align="center"
279
-        >
280
-          <template slot-scope="scope">{{
200
+        <el-table-column prop="address" label="采样部位" width="100" align="center">
201
+          <template slot-scope="scope">
202
+            {{
281
             scope.row.sampling_locationb
203
             scope.row.sampling_locationb
282
-          }}</template>
204
+            }}
205
+          </template>
283
         </el-table-column>
206
         </el-table-column>
284
-        <el-table-column
285
-          prop="address"
286
-          label="检测单位"
287
-          width="100"
288
-          align="center"
289
-        >
207
+        <el-table-column prop="address" label="检测单位" width="100" align="center">
290
           <template slot-scope="scope">{{ scope.row.detection_unit }}</template>
208
           <template slot-scope="scope">{{ scope.row.detection_unit }}</template>
291
         </el-table-column>
209
         </el-table-column>
292
-        <el-table-column
293
-          prop="address"
294
-          label="取样者"
295
-          width="80"
296
-          align="center"
297
-        >
210
+        <el-table-column prop="address" label="取样者" width="80" align="center">
298
           <template slot-scope="scope">{{ scope.row.user_name }}</template>
211
           <template slot-scope="scope">{{ scope.row.user_name }}</template>
299
         </el-table-column>
212
         </el-table-column>
300
-        <el-table-column
301
-          prop="address"
302
-          label="出报告日期"
303
-          width="110"
304
-          align="center"
305
-        >
306
-          <template slot-scope="scope">{{
213
+        <el-table-column prop="address" label="出报告日期" width="110" align="center">
214
+          <template slot-scope="scope">
215
+            {{
307
             getTime(scope.row.reporting_dateb)
216
             getTime(scope.row.reporting_dateb)
308
-          }}</template>
217
+            }}
218
+          </template>
309
         </el-table-column>
219
         </el-table-column>
310
-        <el-table-column
311
-          prop="address"
312
-          label="检测结果(cfu/ml)"
313
-          width="100"
314
-          align="center"
315
-        >
316
-          <template slot-scope="scope">{{
220
+        <el-table-column prop="address" label="检测结果(cfu/ml)" width="100" align="center">
221
+          <template slot-scope="scope">
222
+            {{
317
             scope.row.detection_resultb
223
             scope.row.detection_resultb
318
-          }}</template>
224
+            }}
225
+          </template>
319
         </el-table-column>
226
         </el-table-column>
320
         <el-table-column label="操作" align="center" min-width="150px">
227
         <el-table-column label="操作" align="center" min-width="150px">
321
           <template slot-scope="scope">
228
           <template slot-scope="scope">
322
-            <el-tooltip
323
-              class="item"
324
-              effect="dark"
325
-              content="编辑"
326
-              placement="top"
327
-            >
229
+            <el-tooltip class="item" effect="dark" content="编辑" placement="top">
328
               <el-button
230
               <el-button
329
                 size="mini"
231
                 size="mini"
330
                 type="primary"
232
                 type="primary"
333
               ></el-button>
235
               ></el-button>
334
             </el-tooltip>
236
             </el-tooltip>
335
 
237
 
336
-            <el-tooltip
337
-              class="item"
338
-              effect="dark"
339
-              content="删除"
340
-              placement="top"
341
-            >
238
+            <el-tooltip class="item" effect="dark" content="删除" placement="top">
342
               <el-button
239
               <el-button
343
                 size="mini"
240
                 size="mini"
344
                 type="primary"
241
                 type="primary"
362
         style="width: 100%;margin-top: 10px;"
259
         style="width: 100%;margin-top: 10px;"
363
         v-show="showTwo"
260
         v-show="showTwo"
364
       >
261
       >
365
-        <el-table-column
366
-          align="center"
367
-          type="selection"
368
-          width="55"
369
-        ></el-table-column>
262
+        <el-table-column align="center" type="selection" width="55"></el-table-column>
370
         <el-table-column prop="date" label="机号" width="80" align="center">
263
         <el-table-column prop="date" label="机号" width="80" align="center">
371
           <template slot-scope="scope">{{ scope.row.bed }}</template>
264
           <template slot-scope="scope">{{ scope.row.bed }}</template>
372
         </el-table-column>
265
         </el-table-column>
373
         <el-table-column prop="name" label="取样日期" width="80" align="center">
266
         <el-table-column prop="name" label="取样日期" width="80" align="center">
374
-          <template slot-scope="scope">{{
267
+          <template slot-scope="scope">
268
+            {{
375
             getTime(scope.row.sampling_date)
269
             getTime(scope.row.sampling_date)
376
-          }}</template>
270
+            }}
271
+          </template>
377
         </el-table-column>
272
         </el-table-column>
378
-        <el-table-column
379
-          prop="address"
380
-          label="取样者"
381
-          width="80"
382
-          align="center"
383
-        >
273
+        <el-table-column prop="address" label="取样者" width="80" align="center">
384
           <template slot-scope="scope">{{ scope.row.user_name }}</template>
274
           <template slot-scope="scope">{{ scope.row.user_name }}</template>
385
         </el-table-column>
275
         </el-table-column>
386
-        <el-table-column
387
-          prop="address"
388
-          label="检测单位"
389
-          width="80"
390
-          align="center"
391
-        >
276
+        <el-table-column prop="address" label="检测单位" width="80" align="center">
392
           <template slot-scope="scope">{{ scope.row.detection_unit }}</template>
277
           <template slot-scope="scope">{{ scope.row.detection_unit }}</template>
393
         </el-table-column>
278
         </el-table-column>
394
-        <el-table-column
395
-          prop="address"
396
-          label="A浓缩液批号"
397
-          width="80"
398
-          align="center"
399
-        >
400
-          <template slot-scope="scope">{{
279
+        <el-table-column prop="address" label="A浓缩液批号" width="80" align="center">
280
+          <template slot-scope="scope">
281
+            {{
401
             scope.row.concentrate_nof
282
             scope.row.concentrate_nof
402
-          }}</template>
283
+            }}
284
+          </template>
403
         </el-table-column>
285
         </el-table-column>
404
-        <el-table-column
405
-          prop="address"
406
-          label="B浓缩液批号"
407
-          width="80"
408
-          align="center"
409
-        >
410
-          <template slot-scope="scope">{{
286
+        <el-table-column prop="address" label="B浓缩液批号" width="80" align="center">
287
+          <template slot-scope="scope">
288
+            {{
411
             scope.row.concentrate_nog
289
             scope.row.concentrate_nog
412
-          }}</template>
290
+            }}
291
+          </template>
413
         </el-table-column>
292
         </el-table-column>
414
-        <el-table-column
415
-          prop="address"
416
-          label="出报告日期"
417
-          width="80"
418
-          align="center"
419
-        >
420
-          <template slot-scope="scope">{{
293
+        <el-table-column prop="address" label="出报告日期" width="80" align="center">
294
+          <template slot-scope="scope">
295
+            {{
421
             getTime(scope.row.date_reportc)
296
             getTime(scope.row.date_reportc)
422
-          }}</template>
297
+            }}
298
+          </template>
423
         </el-table-column>
299
         </el-table-column>
424
-        <el-table-column
425
-          prop="address"
426
-          label="检测结果"
427
-          width="80"
428
-          align="center"
429
-        >
430
-          <el-table-column
431
-            prop="address"
432
-            label="实际Na⁺(mmol/L)"
433
-            width="80"
434
-            align="center"
435
-          >
300
+        <el-table-column prop="address" label="检测结果" width="80" align="center">
301
+          <el-table-column prop="address" label="实际Na⁺(mmol/L)" width="80" align="center">
436
             <template slot-scope="scope">{{ scope.row.actual_na }}</template>
302
             <template slot-scope="scope">{{ scope.row.actual_na }}</template>
437
           </el-table-column>
303
           </el-table-column>
438
-          <el-table-column
439
-            prop="address"
440
-            label="配方Na⁺(mmol/L)"
441
-            width="90"
442
-            align="center"
443
-          >
304
+          <el-table-column prop="address" label="配方Na⁺(mmol/L)" width="90" align="center">
444
             <template slot-scope="scope">{{ scope.row.actual_pna }}</template>
305
             <template slot-scope="scope">{{ scope.row.actual_pna }}</template>
445
           </el-table-column>
306
           </el-table-column>
446
-          <el-table-column
447
-            prop="address"
448
-            label="K⁺(mmol/L)"
449
-            width="80"
450
-            align="center"
451
-          >
307
+          <el-table-column prop="address" label="K⁺(mmol/L)" width="80" align="center">
452
             <template slot-scope="scope">{{ scope.row.actual_k }}</template>
308
             <template slot-scope="scope">{{ scope.row.actual_k }}</template>
453
           </el-table-column>
309
           </el-table-column>
454
-          <el-table-column
455
-            prop="address"
456
-            label="Ca2⁺(mmol/L)"
457
-            width="80"
458
-            align="center"
459
-          >
310
+          <el-table-column prop="address" label="Ca2⁺(mmol/L)" width="80" align="center">
460
             <template slot-scope="scope">{{ scope.row.actual_ca }}</template>
311
             <template slot-scope="scope">{{ scope.row.actual_ca }}</template>
461
           </el-table-column>
312
           </el-table-column>
462
-          <el-table-column
463
-            prop="address"
464
-            label="Cl¯(mmol/L)"
465
-            width="80"
466
-            align="center"
467
-          >
313
+          <el-table-column prop="address" label="Cl¯(mmol/L)" width="80" align="center">
468
             <template slot-scope="scope">{{ scope.row.actual_ci }}</template>
314
             <template slot-scope="scope">{{ scope.row.actual_ci }}</template>
469
           </el-table-column>
315
           </el-table-column>
470
-          <el-table-column
471
-            prop="address"
472
-            label="HCO3¯(mmol/L)"
473
-            width="80"
474
-            align="center"
475
-          >
316
+          <el-table-column prop="address" label="HCO3¯(mmol/L)" width="80" align="center">
476
             <template slot-scope="scope">{{ scope.row.actual_hco }}</template>
317
             <template slot-scope="scope">{{ scope.row.actual_hco }}</template>
477
           </el-table-column>
318
           </el-table-column>
478
-          <el-table-column
479
-            prop="address"
480
-            label="Mg2⁺(mmol/L)"
481
-            width="80"
482
-            align="center"
483
-          >
319
+          <el-table-column prop="address" label="Mg2⁺(mmol/L)" width="80" align="center">
484
             <template slot-scope="scope">{{ scope.row.actual_mg }}</template>
320
             <template slot-scope="scope">{{ scope.row.actual_mg }}</template>
485
           </el-table-column>
321
           </el-table-column>
486
-          <el-table-column
487
-            prop="address"
488
-            label="PH(mmol/L)"
489
-            width="80"
490
-            align="center"
491
-          >
322
+          <el-table-column prop="address" label="PH(mmol/L)" width="80" align="center">
492
             <template slot-scope="scope">{{ scope.row.actual_ph }}</template>
323
             <template slot-scope="scope">{{ scope.row.actual_ph }}</template>
493
           </el-table-column>
324
           </el-table-column>
494
         </el-table-column>
325
         </el-table-column>
497
         </el-table-column>
328
         </el-table-column>
498
         <el-table-column label="操作" align="center" min-width="150px">
329
         <el-table-column label="操作" align="center" min-width="150px">
499
           <template slot-scope="scope">
330
           <template slot-scope="scope">
500
-            <el-tooltip
501
-              class="item"
502
-              effect="dark"
503
-              content="编辑"
504
-              placement="top"
505
-            >
331
+            <el-tooltip class="item" effect="dark" content="编辑" placement="top">
506
               <el-button
332
               <el-button
507
                 size="mini"
333
                 size="mini"
508
                 type="primary"
334
                 type="primary"
511
               ></el-button>
337
               ></el-button>
512
             </el-tooltip>
338
             </el-tooltip>
513
 
339
 
514
-            <el-tooltip
515
-              class="item"
516
-              effect="dark"
517
-              content="删除"
518
-              placement="top"
519
-            >
340
+            <el-tooltip class="item" effect="dark" content="删除" placement="top">
520
               <el-button
341
               <el-button
521
                 size="mini"
342
                 size="mini"
522
                 type="primary"
343
                 type="primary"
530
     </el-row>
351
     </el-row>
531
 
352
 
532
     <!-- 编辑细菌培养 -->
353
     <!-- 编辑细菌培养 -->
533
-    <el-dialog
534
-      title="细菌培养"
535
-      :visible.sync="dialogVisible"
536
-      width="60%"
537
-      center
538
-    >
354
+    <el-dialog title="细菌培养" :visible.sync="dialogVisible" width="60%" center>
539
       <el-form :model="form" ref="form" :rules="rules">
355
       <el-form :model="form" ref="form" :rules="rules">
540
         <el-row>
356
         <el-row>
541
           <el-col :span="8">
357
           <el-col :span="8">
553
           </el-col>
369
           </el-col>
554
           <el-col :span="8">
370
           <el-col :span="8">
555
             <el-form-item label="取样标本:">
371
             <el-form-item label="取样标本:">
556
-              <el-select
557
-                style="width:130px"
558
-                v-model="form.specimen"
559
-                @change="changeSpecimen"
560
-              >
372
+              <el-select style="width:130px" v-model="form.specimen" @change="changeSpecimen">
561
                 <el-option
373
                 <el-option
562
                   v-for="item in samplingSpecimen"
374
                   v-for="item in samplingSpecimen"
563
                   :key="item.id"
375
                   :key="item.id"
569
           </el-col>
381
           </el-col>
570
           <el-col :span="8">
382
           <el-col :span="8">
571
             <el-form-item label="A浓缩液批号:">
383
             <el-form-item label="A浓缩液批号:">
572
-              <el-input
573
-                style="width:130px"
574
-                v-model="form.concentrate_noa"
575
-                :disabled="disable"
576
-              ></el-input>
384
+              <el-input style="width:130px" v-model="form.concentrate_noa" :disabled="disable"></el-input>
577
             </el-form-item>
385
             </el-form-item>
578
           </el-col>
386
           </el-col>
579
         </el-row>
387
         </el-row>
580
         <el-row>
388
         <el-row>
581
           <el-col :span="8">
389
           <el-col :span="8">
582
             <el-form-item label="B浓缩液批号">
390
             <el-form-item label="B浓缩液批号">
583
-              <el-input
584
-                style="width:130px"
585
-                v-model="form.concentrate_nob"
586
-                :disabled="diableTwo"
587
-              ></el-input>
391
+              <el-input style="width:130px" v-model="form.concentrate_nob" :disabled="diableTwo"></el-input>
588
             </el-form-item>
392
             </el-form-item>
589
           </el-col>
393
           </el-col>
590
           <el-col :span="8">
394
           <el-col :span="8">
601
           </el-col>
405
           </el-col>
602
           <el-col :span="8">
406
           <el-col :span="8">
603
             <el-form-item label="检测单位:" required prop="detection_unit">
407
             <el-form-item label="检测单位:" required prop="detection_unit">
604
-              <el-input
605
-                style="width:180px"
606
-                v-model="form.detection_unit"
607
-              ></el-input>
408
+              <el-input style="width:180px" v-model="form.detection_unit"></el-input>
608
             </el-form-item>
409
             </el-form-item>
609
           </el-col>
410
           </el-col>
610
         </el-row>
411
         </el-row>
651
       </el-form>
452
       </el-form>
652
       <span slot="footer" class="dialog-footer">
453
       <span slot="footer" class="dialog-footer">
653
         <el-button @click="dialogVisible = false">取 消</el-button>
454
         <el-button @click="dialogVisible = false">取 消</el-button>
654
-        <el-button type="primary" @click="UpdateCulture('form')"
655
-          >保存</el-button
656
-        >
455
+        <el-button type="primary" @click="UpdateCulture('form')">保存</el-button>
657
       </span>
456
       </span>
658
     </el-dialog>
457
     </el-dialog>
659
 
458
 
660
     <!-- 编辑内霉素检测 -->
459
     <!-- 编辑内霉素检测 -->
661
-    <el-dialog
662
-      title="内霉素检测"
663
-      :visible.sync="dialogVisibleTwo"
664
-      width="60%"
665
-      center
666
-    >
460
+    <el-dialog title="内霉素检测" :visible.sync="dialogVisibleTwo" width="60%" center>
667
       <el-form :model="diaForm" ref="diaForm" rules="diaRules">
461
       <el-form :model="diaForm" ref="diaForm" rules="diaRules">
668
         <el-row>
462
         <el-row>
669
           <el-col :span="8">
463
           <el-col :span="8">
681
           </el-col>
475
           </el-col>
682
           <el-col :span="8">
476
           <el-col :span="8">
683
             <el-form-item label="取样标本:">
477
             <el-form-item label="取样标本:">
684
-              <el-select
685
-                style="width:130px"
686
-                v-model="diaForm.specimenb"
687
-                @change="changeSpeciment"
688
-              >
478
+              <el-select style="width:130px" v-model="diaForm.specimenb" @change="changeSpeciment">
689
                 <el-option
479
                 <el-option
690
                   v-for="item in samplingSpecimen"
480
                   v-for="item in samplingSpecimen"
691
                   :key="item.id"
481
                   :key="item.id"
697
           </el-col>
487
           </el-col>
698
           <el-col :span="8">
488
           <el-col :span="8">
699
             <el-form-item label="A浓缩液批号:">
489
             <el-form-item label="A浓缩液批号:">
700
-              <el-input
701
-                style="width:130px"
702
-                v-model="diaForm.concentrate_noc"
703
-                :disabled="disable"
704
-              ></el-input>
490
+              <el-input style="width:130px" v-model="diaForm.concentrate_noc" :disabled="disable"></el-input>
705
             </el-form-item>
491
             </el-form-item>
706
           </el-col>
492
           </el-col>
707
         </el-row>
493
         </el-row>
717
           </el-col>
503
           </el-col>
718
           <el-col :span="8">
504
           <el-col :span="8">
719
             <el-form-item label="采样部位:">
505
             <el-form-item label="采样部位:">
720
-              <el-select
721
-                style="width:130px"
722
-                v-model="diaForm.sampling_locationb"
723
-              >
506
+              <el-select style="width:130px" v-model="diaForm.sampling_locationb">
724
                 <el-option
507
                 <el-option
725
                   v-for="item in samplingLocation"
508
                   v-for="item in samplingLocation"
726
                   :key="item.id"
509
                   :key="item.id"
732
           </el-col>
515
           </el-col>
733
           <el-col :span="8">
516
           <el-col :span="8">
734
             <el-form-item label="检测单位:" required prop="detection_unit">
517
             <el-form-item label="检测单位:" required prop="detection_unit">
735
-              <el-input
736
-                style="width:180px"
737
-                v-model="diaForm.detection_unit"
738
-              ></el-input>
518
+              <el-input style="width:180px" v-model="diaForm.detection_unit"></el-input>
739
             </el-form-item>
519
             </el-form-item>
740
           </el-col>
520
           </el-col>
741
         </el-row>
521
         </el-row>
782
       </el-form>
562
       </el-form>
783
       <span slot="footer" class="dialog-footer">
563
       <span slot="footer" class="dialog-footer">
784
         <el-button @click="dialogVisibleTwo = false">取 消</el-button>
564
         <el-button @click="dialogVisibleTwo = false">取 消</el-button>
785
-        <el-button type="primary" @click="UpdateDialyState('diaForm')"
786
-          >保存</el-button
787
-        >
565
+        <el-button type="primary" @click="UpdateDialyState('diaForm')">保存</el-button>
788
       </span>
566
       </span>
789
     </el-dialog>
567
     </el-dialog>
790
 
568
 
791
     <!--  -->
569
     <!--  -->
792
-    <el-dialog
793
-      title="透析液离子浓度检测"
794
-      :visible.sync="dialogVisibleThree"
795
-      width="50%"
796
-      center
797
-    >
570
+    <el-dialog title="透析液离子浓度检测" :visible.sync="dialogVisibleThree" width="50%" center>
798
       <el-row>
571
       <el-row>
799
         <el-form :model="ionForm" ref="ionForm" :rule="ionrule">
572
         <el-form :model="ionForm" ref="ionForm" :rule="ionrule">
800
           <el-row>
573
           <el-row>
825
             </el-col>
598
             </el-col>
826
             <el-col :span="8">
599
             <el-col :span="8">
827
               <el-form-item label="检测单位:" required prop="detection_unit">
600
               <el-form-item label="检测单位:" required prop="detection_unit">
828
-                <el-input
829
-                  style="width:180px"
830
-                  v-model="ionForm.detection_unit"
831
-                ></el-input>
601
+                <el-input style="width:180px" v-model="ionForm.detection_unit"></el-input>
832
               </el-form-item>
602
               </el-form-item>
833
             </el-col>
603
             </el-col>
834
           </el-row>
604
           </el-row>
835
           <el-row>
605
           <el-row>
836
             <el-col :span="8">
606
             <el-col :span="8">
837
               <el-form-item label="A浓缩液批号:">
607
               <el-form-item label="A浓缩液批号:">
838
-                <el-input
839
-                  style="width:130px"
840
-                  v-model="ionForm.concentrate_nof"
841
-                ></el-input>
608
+                <el-input style="width:130px" v-model="ionForm.concentrate_nof"></el-input>
842
               </el-form-item>
609
               </el-form-item>
843
             </el-col>
610
             </el-col>
844
             <el-col :span="8">
611
             <el-col :span="8">
845
               <el-form-item label="B浓缩液批号:">
612
               <el-form-item label="B浓缩液批号:">
846
-                <el-input
847
-                  style="width:130px"
848
-                  v-model="ionForm.concentrate_nog"
849
-                ></el-input>
613
+                <el-input style="width:130px" v-model="ionForm.concentrate_nog"></el-input>
850
               </el-form-item>
614
               </el-form-item>
851
             </el-col>
615
             </el-col>
852
             <el-col :span="8">
616
             <el-col :span="8">
866
           <el-row>
630
           <el-row>
867
             <el-col :span="8">
631
             <el-col :span="8">
868
               <el-form-item label="实际Na⁺(mmol/L):">
632
               <el-form-item label="实际Na⁺(mmol/L):">
869
-                <el-input
870
-                  style="width:100px"
871
-                  v-model="ionForm.actual_na"
872
-                ></el-input>
633
+                <el-input style="width:100px" v-model="ionForm.actual_na"></el-input>
873
               </el-form-item>
634
               </el-form-item>
874
             </el-col>
635
             </el-col>
875
             <el-col :span="8">
636
             <el-col :span="8">
876
               <el-form-item label="配方Na⁺(mmol/L):">
637
               <el-form-item label="配方Na⁺(mmol/L):">
877
-                <el-input
878
-                  style="width:100px"
879
-                  v-model="ionForm.actual_pna"
880
-                ></el-input>
638
+                <el-input style="width:100px" v-model="ionForm.actual_pna"></el-input>
881
               </el-form-item>
639
               </el-form-item>
882
             </el-col>
640
             </el-col>
883
             <el-col :span="8">
641
             <el-col :span="8">
884
               <el-form-item label="K⁺ (mmol/L):">
642
               <el-form-item label="K⁺ (mmol/L):">
885
-                <el-input
886
-                  style="width:100px"
887
-                  v-model="ionForm.actual_k"
888
-                ></el-input>
643
+                <el-input style="width:100px" v-model="ionForm.actual_k"></el-input>
889
               </el-form-item>
644
               </el-form-item>
890
             </el-col>
645
             </el-col>
891
           </el-row>
646
           </el-row>
892
           <el-row>
647
           <el-row>
893
             <el-col :span="8">
648
             <el-col :span="8">
894
               <el-form-item label="Ca2⁺(mmol/L):">
649
               <el-form-item label="Ca2⁺(mmol/L):">
895
-                <el-input
896
-                  style="width:100px"
897
-                  v-model="ionForm.actual_ca"
898
-                ></el-input>
650
+                <el-input style="width:100px" v-model="ionForm.actual_ca"></el-input>
899
               </el-form-item>
651
               </el-form-item>
900
             </el-col>
652
             </el-col>
901
             <el-col :span="8">
653
             <el-col :span="8">
902
               <el-form-item label="CI¯(mmol/L):">
654
               <el-form-item label="CI¯(mmol/L):">
903
-                <el-input
904
-                  style="width:100px"
905
-                  v-model="ionForm.actual_ci"
906
-                ></el-input>
655
+                <el-input style="width:100px" v-model="ionForm.actual_ci"></el-input>
907
               </el-form-item>
656
               </el-form-item>
908
             </el-col>
657
             </el-col>
909
             <el-col :span="8">
658
             <el-col :span="8">
910
               <el-form-item label="HCO3¯(mmol/L):">
659
               <el-form-item label="HCO3¯(mmol/L):">
911
-                <el-input
912
-                  style="width:100px"
913
-                  v-model="ionForm.actual_hco"
914
-                ></el-input>
660
+                <el-input style="width:100px" v-model="ionForm.actual_hco"></el-input>
915
               </el-form-item>
661
               </el-form-item>
916
             </el-col>
662
             </el-col>
917
           </el-row>
663
           </el-row>
918
           <el-row>
664
           <el-row>
919
             <el-col :span="8">
665
             <el-col :span="8">
920
               <el-form-item label="Mg2⁺(mmol/L):">
666
               <el-form-item label="Mg2⁺(mmol/L):">
921
-                <el-input
922
-                  style="width:100px"
923
-                  v-model="ionForm.actual_mg"
924
-                ></el-input>
667
+                <el-input style="width:100px" v-model="ionForm.actual_mg"></el-input>
925
               </el-form-item>
668
               </el-form-item>
926
             </el-col>
669
             </el-col>
927
             <el-col :span="8">
670
             <el-col :span="8">
928
               <el-form-item label="PH:">
671
               <el-form-item label="PH:">
929
-                <el-input
930
-                  style="width:100px"
931
-                  v-model="ionForm.actual_ph"
932
-                ></el-input>
672
+                <el-input style="width:100px" v-model="ionForm.actual_ph"></el-input>
933
               </el-form-item>
673
               </el-form-item>
934
             </el-col>
674
             </el-col>
935
           </el-row>
675
           </el-row>

+ 236 - 302
src/xt_pages/management/components/RepairForm.vue View File

1
 <template>
1
 <template>
2
   <div>
2
   <div>
3
     <el-row class="row">
3
     <el-row class="row">
4
-      <el-col :span="4">
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
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="12">
16
         <span class="machineClass">日期查询:</span>
16
         <span class="machineClass">日期查询:</span>
17
         <el-date-picker
17
         <el-date-picker
18
           v-model="forms.start_time"
18
           v-model="forms.start_time"
22
           format="yyyy-MM-dd"
22
           format="yyyy-MM-dd"
23
           value-format="yyyy-MM-dd"
23
           value-format="yyyy-MM-dd"
24
           style="width:150px"
24
           style="width:150px"
25
-        ></el-date-picker
26
-        >-
25
+        ></el-date-picker>-
27
         <el-date-picker
26
         <el-date-picker
28
           v-model="forms.end_time"
27
           v-model="forms.end_time"
29
           prefix-icon="none"
28
           prefix-icon="none"
38
         <el-button @click="queryRepair()">查询</el-button>
37
         <el-button @click="queryRepair()">查询</el-button>
39
       </el-col>
38
       </el-col>
40
     </el-row>
39
     </el-row>
41
-    <el-row>
42
-        <el-col :span="2">
43
-        <el-checkbox v-model="checkAllStatus" @change="changeCheck"
44
-          >全选</el-checkbox
45
-        >
40
+    <el-row style="display: flex;align-items: center;">
41
+      <el-col :span="2">
42
+        <el-checkbox v-model="checkAllStatus" @change="changeCheck">全选</el-checkbox>
46
       </el-col>
43
       </el-col>
47
-      <el-col :span="2" class="a">
44
+      <el-col :span="2">
48
         <el-button size="small" @click="BatchDelete">批量删除</el-button>
45
         <el-button size="small" @click="BatchDelete">批量删除</el-button>
49
       </el-col>
46
       </el-col>
50
     </el-row>
47
     </el-row>
52
       <el-table
49
       <el-table
53
         ref="multipleTable"
50
         ref="multipleTable"
54
         @selection-change="handleSelectionChange"
51
         @selection-change="handleSelectionChange"
55
-        :header-cell-style="{ backgroundColor: 'rgb(245, 247, 250)' }"
52
+        :row-style="{ color: '#303133' }"
53
+        :header-cell-style="{
54
+          backgroundColor: 'rgb(245, 247, 250)',
55
+          color: '#606266'
56
+        }"
56
         :data="tableData"
57
         :data="tableData"
57
         border
58
         border
58
         fit
59
         fit
59
         highlight-current-row
60
         highlight-current-row
60
         style="width: 100%;margin-top: 10px;"
61
         style="width: 100%;margin-top: 10px;"
61
       >
62
       >
62
-        <el-table-column
63
-          align="center"
64
-          type="selection"
65
-          width="55"
66
-        ></el-table-column>
63
+        <el-table-column align="center" type="selection" width="55"></el-table-column>
67
         <el-table-column prop="date" label="机号" width="80" align="center">
64
         <el-table-column prop="date" label="机号" width="80" align="center">
68
           <template slot-scope="scope">{{ scope.row.bed_number }}</template>
65
           <template slot-scope="scope">{{ scope.row.bed_number }}</template>
69
         </el-table-column>
66
         </el-table-column>
70
-        <el-table-column
71
-          prop="name"
72
-          label="保修时间"
73
-          width="100"
74
-          align="center"
75
-        >
76
-          <template slot-scope="scope">{{
67
+        <el-table-column prop="name" label="保修时间" width="100" align="center">
68
+          <template slot-scope="scope">
69
+            {{
77
             getTime(scope.row.guarantee_date)
70
             getTime(scope.row.guarantee_date)
78
-          }}</template>
71
+            }}
72
+          </template>
79
         </el-table-column>
73
         </el-table-column>
80
-        <el-table-column
81
-          prop="address"
82
-          label="出发时间"
83
-          width="100"
84
-          align="center"
85
-        >
86
-          <template slot-scope="scope">{{
74
+        <el-table-column prop="address" label="出发时间" width="100" align="center">
75
+          <template slot-scope="scope">
76
+            {{
87
             getTimes(scope.row.start_time)
77
             getTimes(scope.row.start_time)
88
-          }}</template>
78
+            }}
79
+          </template>
89
         </el-table-column>
80
         </el-table-column>
90
-        <el-table-column
91
-          prop="address"
92
-          label="到达时间"
93
-          width="100"
94
-          align="center"
95
-        >
96
-          <template slot-scope="scope">{{
81
+        <el-table-column prop="address" label="到达时间" width="100" align="center">
82
+          <template slot-scope="scope">
83
+            {{
97
             getTimes(scope.row.arrive_time)
84
             getTimes(scope.row.arrive_time)
98
-          }}</template>
85
+            }}
86
+          </template>
99
         </el-table-column>
87
         </el-table-column>
100
-        <el-table-column
101
-          prop="address"
102
-          label="完成时间"
103
-          width="100"
104
-          align="center"
105
-        >
106
-          <template slot-scope="scope">{{
88
+        <el-table-column prop="address" label="完成时间" width="100" align="center">
89
+          <template slot-scope="scope">
90
+            {{
107
             getTimes(scope.row.finish_time)
91
             getTimes(scope.row.finish_time)
108
-          }}</template>
92
+            }}
93
+          </template>
109
         </el-table-column>
94
         </el-table-column>
110
-        <el-table-column
111
-          prop="address"
112
-          label="总路程(公里)"
113
-          width="110"
114
-          align="center"
115
-        >
95
+        <el-table-column prop="address" label="总路程(公里)" width="110" align="center">
116
           <template slot-scope="scope">{{ scope.row.total_distance }}</template>
96
           <template slot-scope="scope">{{ scope.row.total_distance }}</template>
117
         </el-table-column>
97
         </el-table-column>
118
-        <el-table-column
119
-          prop="address"
120
-          label="故障发生阶段"
121
-          width="110"
122
-          align="center"
123
-        >
98
+        <el-table-column prop="address" label="故障发生阶段" width="110" align="center">
124
           <template slot-scope="scope">{{ scope.row.failure_stage }}</template>
99
           <template slot-scope="scope">{{ scope.row.failure_stage }}</template>
125
         </el-table-column>
100
         </el-table-column>
126
-        <el-table-column
127
-          prop="address"
128
-          label="故障提示信息及代码"
129
-          width="120"
130
-          align="center"
131
-        >
132
-          <template slot-scope="scope">{{
101
+        <el-table-column prop="address" label="故障提示信息及代码" width="120" align="center">
102
+          <template slot-scope="scope">
103
+            {{
133
             scope.row.code_information
104
             scope.row.code_information
134
-          }}</template>
105
+            }}
106
+          </template>
135
         </el-table-column>
107
         </el-table-column>
136
-        <el-table-column
137
-          prop="address"
138
-          label="故障描述"
139
-          width="100"
140
-          align="center"
141
-        >
142
-          <template slot-scope="scope">{{
108
+        <el-table-column prop="address" label="故障描述" width="100" align="center">
109
+          <template slot-scope="scope">
110
+            {{
143
             scope.row.fault_description
111
             scope.row.fault_description
144
-          }}</template>
112
+            }}
113
+          </template>
145
         </el-table-column>
114
         </el-table-column>
146
-        <el-table-column
147
-          prop="address"
148
-          label="原因分析"
149
-          width="100"
150
-          align="center"
151
-        >
115
+        <el-table-column prop="address" label="原因分析" width="100" align="center">
152
           <template slot-scope="scope">{{ scope.row.cause_analysis }}</template>
116
           <template slot-scope="scope">{{ scope.row.cause_analysis }}</template>
153
         </el-table-column>
117
         </el-table-column>
154
-        <el-table-column
155
-          prop="address"
156
-          label="处理过程"
157
-          width="100"
158
-          align="center"
159
-        >
160
-          <template slot-scope="scope">{{
118
+        <el-table-column prop="address" label="处理过程" width="100" align="center">
119
+          <template slot-scope="scope">
120
+            {{
161
             scope.row.treatment_process
121
             scope.row.treatment_process
162
-          }}</template>
122
+            }}
123
+          </template>
163
         </el-table-column>
124
         </el-table-column>
164
-        <el-table-column
165
-          prop="address"
166
-          label="故障是否排除"
167
-          width="110"
168
-          align="center"
169
-        >
125
+        <el-table-column prop="address" label="故障是否排除" width="110" align="center">
170
           <template slot-scope="scope">{{ scope.row.exclude }}</template>
126
           <template slot-scope="scope">{{ scope.row.exclude }}</template>
171
         </el-table-column>
127
         </el-table-column>
172
         <el-table-column prop="address" label="原因" width="80" align="center">
128
         <el-table-column prop="address" label="原因" width="80" align="center">
174
         </el-table-column>
130
         </el-table-column>
175
         <el-table-column label="操作" align="center" min-width="150px">
131
         <el-table-column label="操作" align="center" min-width="150px">
176
           <template slot-scope="scope">
132
           <template slot-scope="scope">
177
-            <el-tooltip
178
-              class="item"
179
-              effect="dark"
180
-              content="编辑"
181
-              placement="top"
182
-            >
133
+            <el-tooltip class="item" effect="dark" content="编辑" placement="top">
183
               <el-button
134
               <el-button
184
                 size="mini"
135
                 size="mini"
185
                 type="primary"
136
                 type="primary"
190
               ></el-button>
141
               ></el-button>
191
             </el-tooltip>
142
             </el-tooltip>
192
 
143
 
193
-            <el-tooltip
194
-              class="item"
195
-              effect="dark"
196
-              content="删除"
197
-              placement="top"
198
-            >
144
+            <el-tooltip class="item" effect="dark" content="删除" placement="top">
199
               <el-button
145
               <el-button
200
                 size="mini"
146
                 size="mini"
201
-                type="primary"
147
+                type="danger"
202
                 icon="el-icon-delete"
148
                 icon="el-icon-delete"
203
                 @click="DeleteRepairs(scope.row.id, scope.$index)"
149
                 @click="DeleteRepairs(scope.row.id, scope.$index)"
204
               ></el-button>
150
               ></el-button>
219
     </el-row>
165
     </el-row>
220
 
166
 
221
     <!-- 编辑维修记录 -->
167
     <!-- 编辑维修记录 -->
222
-    <el-dialog
223
-      title="编辑维修记录"
224
-      :visible.sync="dialogVisible"
225
-      width="65%"
226
-      center
227
-    >
168
+    <el-dialog title="编辑维修记录" :visible.sync="dialogVisible" width="65%" center>
228
       <el-form :model="guaForm" ref="guaForm" :rules="repirRules">
169
       <el-form :model="guaForm" ref="guaForm" :rules="repirRules">
229
         <el-row>
170
         <el-row>
230
           <el-col :span="8">
171
           <el-col :span="8">
280
           </el-col>
221
           </el-col>
281
           <el-col :span="8">
222
           <el-col :span="8">
282
             <el-form-item label="总路程:(公里)">
223
             <el-form-item label="总路程:(公里)">
283
-              <el-input
284
-                style="width:200px"
285
-                v-model="guaForm.total_distance"
286
-              ></el-input>
224
+              <el-input style="width:200px" v-model="guaForm.total_distance"></el-input>
287
             </el-form-item>
225
             </el-form-item>
288
           </el-col>
226
           </el-col>
289
         </el-row>
227
         </el-row>
296
                   :value="gender.id"
234
                   :value="gender.id"
297
                   v-for="(gender, index) in faultPhase"
235
                   v-for="(gender, index) in faultPhase"
298
                   :key="index"
236
                   :key="index"
299
-                  >{{ gender.name }}</el-radio
300
-                >
237
+                >{{ gender.name }}</el-radio>
301
               </el-radio-group>
238
               </el-radio-group>
302
             </el-form-item>
239
             </el-form-item>
303
           </el-col>
240
           </el-col>
366
               </el-upload>
303
               </el-upload>
367
             </el-form-item>
304
             </el-form-item>
368
             <a class="el-upload-list__item-name">
305
             <a class="el-upload-list__item-name">
369
-              <i
370
-                ><a @click="toLink()">{{ filename }}</a></i
371
-              >
306
+              <i>
307
+                <a @click="toLink()">{{ filename }}</a>
308
+              </i>
372
             </a>
309
             </a>
373
           </el-col>
310
           </el-col>
374
         </el-row>
311
         </el-row>
381
                   :value="gender.id"
318
                   :value="gender.id"
382
                   v-for="(gender, index) in breakDown"
319
                   v-for="(gender, index) in breakDown"
383
                   :key="index"
320
                   :key="index"
384
-                  >{{ gender.name }}</el-radio
385
-                >
321
+                >{{ gender.name }}</el-radio>
386
               </el-radio-group>
322
               </el-radio-group>
387
             </el-form-item>
323
             </el-form-item>
388
           </el-col>
324
           </el-col>
403
       </el-form>
339
       </el-form>
404
       <span slot="footer" class="dialog-footer">
340
       <span slot="footer" class="dialog-footer">
405
         <el-button @click="dialogVisible = false">取 消</el-button>
341
         <el-button @click="dialogVisible = false">取 消</el-button>
406
-        <el-button type="primary" @click="UpdateRepair('guaForm')"
407
-          >保存</el-button
408
-        >
342
+        <el-button type="primary" @click="UpdateRepair('guaForm')">保存</el-button>
409
       </span>
343
       </span>
410
     </el-dialog>
344
     </el-dialog>
411
   </div>
345
   </div>
420
   DeleteRepair,
354
   DeleteRepair,
421
   queryRepair,
355
   queryRepair,
422
   DeleteRepairs
356
   DeleteRepairs
423
-} from '@/api/manage'
424
-import { uParseTime } from '@/utils/tools'
425
-import { getFileExtension } from '@/utils/tools'
357
+} from "@/api/manage";
358
+import { uParseTime } from "@/utils/tools";
359
+import { getFileExtension } from "@/utils/tools";
426
 export default {
360
 export default {
427
-  name: 'RepairForm',
361
+  name: "RepairForm",
428
   data() {
362
   data() {
429
     return {
363
     return {
430
       dialogVisible: false,
364
       dialogVisible: false,
431
       selectCulture: [],
365
       selectCulture: [],
432
       forms: {
366
       forms: {
433
-        bed: '',
367
+        bed: "",
434
         sename: 1,
368
         sename: 1,
435
-        start_time: '',
436
-        end_time: ''
369
+        start_time: "",
370
+        end_time: ""
437
       },
371
       },
438
       guaForm: {
372
       guaForm: {
439
-        id: '',
440
-        guarantee_date: '',
441
-        start_time: '',
442
-        arrive_time: '',
443
-        finish_time: '',
444
-        total_distance: '',
445
-        failure_stage: '',
446
-        fault_description: '',
447
-        cause_analysis: '',
448
-        treatment_process: '',
449
-        images: '',
450
-        exclude: '',
451
-        reason: '',
452
-        code_information: '',
453
-        image_name: ''
373
+        id: "",
374
+        guarantee_date: "",
375
+        start_time: "",
376
+        arrive_time: "",
377
+        finish_time: "",
378
+        total_distance: "",
379
+        failure_stage: "",
380
+        fault_description: "",
381
+        cause_analysis: "",
382
+        treatment_process: "",
383
+        images: "",
384
+        exclude: "",
385
+        reason: "",
386
+        code_information: "",
387
+        image_name: ""
454
       },
388
       },
455
       isIndeterminate: false,
389
       isIndeterminate: false,
456
       checkAllStatus: false,
390
       checkAllStatus: false,
457
       bedNumber: [],
391
       bedNumber: [],
458
       tableData: [],
392
       tableData: [],
459
-      qiniuDomain: 'https://images.shengws.com/',
460
-      uploadFileData: { token: '', key: '' },
393
+      qiniuDomain: "https://images.shengws.com/",
394
+      uploadFileData: { token: "", key: "" },
461
       faultPhase: [
395
       faultPhase: [
462
-        { id: 1, name: '开机启动' },
463
-        { id: 2, name: '自检' },
464
-        { id: 3, name: '准备' },
465
-        { id: 4, name: '治疗' },
466
-        { id: 5, name: '消毒' }
396
+        { id: 1, name: "开机启动" },
397
+        { id: 2, name: "自检" },
398
+        { id: 3, name: "准备" },
399
+        { id: 4, name: "治疗" },
400
+        { id: 5, name: "消毒" }
467
       ],
401
       ],
468
       breakDown: [
402
       breakDown: [
469
-        { id: 1, name: '是' },
470
-        { id: 2, name: '待观察' },
471
-        { id: 3, name: '未解决' }
403
+        { id: 1, name: "是" },
404
+        { id: 2, name: "待观察" },
405
+        { id: 3, name: "未解决" }
472
       ],
406
       ],
473
       repirRules: {
407
       repirRules: {
474
-        guarantee_date: [{ required: true, message: '请填写保修日期' }],
475
-        fault_description: [{ required: true, message: '请填写故障描述' }]
408
+        guarantee_date: [{ required: true, message: "请填写保修日期" }],
409
+        fault_description: [{ required: true, message: "请填写故障描述" }]
476
       },
410
       },
477
-      filename: '',
411
+      filename: "",
478
       limit: 10,
412
       limit: 10,
479
       page: 1,
413
       page: 1,
480
       total: 0,
414
       total: 0,
481
-      filename: ''
482
-    }
415
+      filename: ""
416
+    };
483
   },
417
   },
484
   methods: {
418
   methods: {
485
     changeCheck() {
419
     changeCheck() {
486
-      this.$refs.multipleTable.clearSelection()
420
+      this.$refs.multipleTable.clearSelection();
487
       if (this.checkAllStatus) {
421
       if (this.checkAllStatus) {
488
-        this.$refs.multipleTable.toggleAllSelection()
422
+        this.$refs.multipleTable.toggleAllSelection();
489
       }
423
       }
490
     },
424
     },
491
     getAllSubregion() {
425
     getAllSubregion() {
492
       getAllSubregion().then(response => {
426
       getAllSubregion().then(response => {
493
-        var zones = response.data.data.zones
494
-        var numbers = response.data.data.numbers
495
-        var number = [{ id: 0, number: '全部' }]
427
+        var zones = response.data.data.zones;
428
+        var numbers = response.data.data.numbers;
429
+        var number = [{ id: 0, number: "全部" }];
496
         for (let index = 0; index < numbers.length; index++) {
430
         for (let index = 0; index < numbers.length; index++) {
497
-          const item = numbers[index]
498
-          number.push({ id: item.id, number: item.number })
431
+          const item = numbers[index];
432
+          number.push({ id: item.id, number: item.number });
499
         }
433
         }
500
-        this.bedNumber = number
501
-      })
434
+        this.bedNumber = number;
435
+      });
502
     },
436
     },
503
     handleSelectionChange(val) {
437
     handleSelectionChange(val) {
504
-      this.selectCulture = val
438
+      this.selectCulture = val;
505
     },
439
     },
506
     getAllRepair() {
440
     getAllRepair() {
507
       getAllRepair(this.limit, this.page).then(response => {
441
       getAllRepair(this.limit, this.page).then(response => {
508
         if (response.data.state === 1) {
442
         if (response.data.state === 1) {
509
-          var repair = response.data.data.repair
443
+          var repair = response.data.data.repair;
510
           // console.log('repair是', repair)
444
           // console.log('repair是', repair)
511
           // eslint-disable-next-line no-unused-vars
445
           // eslint-disable-next-line no-unused-vars
512
-          var total = response.data.data.total
513
-          this.total = total
446
+          var total = response.data.data.total;
447
+          this.total = total;
514
           for (let index = 0; index < repair.length; index++) {
448
           for (let index = 0; index < repair.length; index++) {
515
             if (repair[index].failure_stage === 0) {
449
             if (repair[index].failure_stage === 0) {
516
-              repair[index].failure_stage = ''
450
+              repair[index].failure_stage = "";
517
             }
451
             }
518
 
452
 
519
             if (repair[index].failure_stage === 1) {
453
             if (repair[index].failure_stage === 1) {
520
-              repair[index].failure_stage = '开机启动'
454
+              repair[index].failure_stage = "开机启动";
521
             }
455
             }
522
             if (repair[index].failure_stage === 2) {
456
             if (repair[index].failure_stage === 2) {
523
-              repair[index].failure_stage = '自检'
457
+              repair[index].failure_stage = "自检";
524
             }
458
             }
525
             if (repair[index].failure_stage === 3) {
459
             if (repair[index].failure_stage === 3) {
526
-              repair[index].failure_stage = '准备'
460
+              repair[index].failure_stage = "准备";
527
             }
461
             }
528
             if (repair[index].failure_stage === 4) {
462
             if (repair[index].failure_stage === 4) {
529
-              repair[index].failure_stage = '治疗'
463
+              repair[index].failure_stage = "治疗";
530
             }
464
             }
531
             if (repair[index].failure_stage === 5) {
465
             if (repair[index].failure_stage === 5) {
532
-              repair[index].failure_stage = '消毒'
466
+              repair[index].failure_stage = "消毒";
533
             }
467
             }
534
 
468
 
535
             if (repair[index].exclude === 0) {
469
             if (repair[index].exclude === 0) {
536
-              repair[index].exclude = ''
470
+              repair[index].exclude = "";
537
             }
471
             }
538
 
472
 
539
             if (repair[index].exclude === 1) {
473
             if (repair[index].exclude === 1) {
540
-              repair[index].exclude = '是'
474
+              repair[index].exclude = "是";
541
             }
475
             }
542
             if (repair[index].exclude === 2) {
476
             if (repair[index].exclude === 2) {
543
-              repair[index].exclude = '待观察'
477
+              repair[index].exclude = "待观察";
544
             }
478
             }
545
             if (repair[index].exclude === 3) {
479
             if (repair[index].exclude === 3) {
546
-              repair[index].exclude = '未解决'
480
+              repair[index].exclude = "未解决";
547
             }
481
             }
548
           }
482
           }
549
-          this.tableData = repair
483
+          this.tableData = repair;
550
         }
484
         }
551
-      })
485
+      });
552
     },
486
     },
553
     getTime(time) {
487
     getTime(time) {
554
-      return uParseTime(time, '{y}-{m}-{d}')
488
+      return uParseTime(time, "{y}-{m}-{d}");
555
     },
489
     },
556
     getTimes(time) {
490
     getTimes(time) {
557
-      return uParseTime(time, '{y}-{m}-{d} {h}:{i}')
491
+      return uParseTime(time, "{y}-{m}-{d} {h}:{i}");
558
     },
492
     },
559
     handleExceed(file) {
493
     handleExceed(file) {
560
       // console.log(file)
494
       // console.log(file)
563
       // console.log(file)
497
       // console.log(file)
564
     },
498
     },
565
     EditRepair(id) {
499
     EditRepair(id) {
566
-      this.dialogVisible = true
500
+      this.dialogVisible = true;
567
       EditRepair(id).then(response => {
501
       EditRepair(id).then(response => {
568
         if (response.data.state === 1) {
502
         if (response.data.state === 1) {
569
-          var repair = response.data.data.repair
570
-          console.log('repair', repair)
503
+          var repair = response.data.data.repair;
504
+          console.log("repair", repair);
571
           this.guaForm.guarantee_date = uParseTime(
505
           this.guaForm.guarantee_date = uParseTime(
572
             repair.guarantee_date,
506
             repair.guarantee_date,
573
-            '{y}-{m}-{d}'
574
-          )
507
+            "{y}-{m}-{d}"
508
+          );
575
           this.guaForm.start_time = uParseTime(
509
           this.guaForm.start_time = uParseTime(
576
             repair.start_time,
510
             repair.start_time,
577
-            '{y}-{m}-{d} {h}:{i}'
578
-          )
511
+            "{y}-{m}-{d} {h}:{i}"
512
+          );
579
           this.guaForm.arrive_time = uParseTime(
513
           this.guaForm.arrive_time = uParseTime(
580
             repair.arrive_time,
514
             repair.arrive_time,
581
-            '{y}-{m}-{d} {h}:{i}'
582
-          )
515
+            "{y}-{m}-{d} {h}:{i}"
516
+          );
583
           this.guaForm.finish_time = uParseTime(
517
           this.guaForm.finish_time = uParseTime(
584
             repair.finish_time,
518
             repair.finish_time,
585
-            '{y}-{m}-{d} {h}:{i}'
586
-          )
587
-          this.guaForm.total_distance = repair.total_distance
588
-          this.guaForm.failure_stage = repair.failure_stage
589
-          this.guaForm.fault_description = repair.fault_description
590
-          this.guaForm.cause_analysis = repair.cause_analysis
591
-          this.guaForm.treatment_process = repair.treatment_process
592
-          this.guaForm.images = repair.images
593
-          this.guaForm.exclude = repair.exclude
594
-          this.guaForm.reason = repair.reason
595
-          this.guaForm.code_information = repair.code_information
596
-          this.guaForm.id = repair.id
597
-          this.filename = repair.image_name
519
+            "{y}-{m}-{d} {h}:{i}"
520
+          );
521
+          this.guaForm.total_distance = repair.total_distance;
522
+          this.guaForm.failure_stage = repair.failure_stage;
523
+          this.guaForm.fault_description = repair.fault_description;
524
+          this.guaForm.cause_analysis = repair.cause_analysis;
525
+          this.guaForm.treatment_process = repair.treatment_process;
526
+          this.guaForm.images = repair.images;
527
+          this.guaForm.exclude = repair.exclude;
528
+          this.guaForm.reason = repair.reason;
529
+          this.guaForm.code_information = repair.code_information;
530
+          this.guaForm.id = repair.id;
531
+          this.filename = repair.image_name;
598
         }
532
         }
599
-      })
533
+      });
600
     },
534
     },
601
     handleSuccess(res, file, fileList) {
535
     handleSuccess(res, file, fileList) {
602
-      this.guaForm.images = this.qiniuDomain + res.url
603
-      console.log('图片上传', this.guaForm.images)
604
-      this.$refs.upload.clearFiles()
605
-      this.filename = file.name
606
-      this.guaForm.image_name = file.name
536
+      this.guaForm.images = this.qiniuDomain + res.url;
537
+      console.log("图片上传", this.guaForm.images);
538
+      this.$refs.upload.clearFiles();
539
+      this.filename = file.name;
540
+      this.guaForm.image_name = file.name;
607
     },
541
     },
608
     beforeUploadFile(file) {
542
     beforeUploadFile(file) {
609
-      this.filename = file.name
610
-      this.guaForm.image_name = file.name
611
-      const isLt2M = file.size / 1024 / 1024 <= 2048
612
-      console.log('filename', file)
543
+      this.filename = file.name;
544
+      this.guaForm.image_name = file.name;
545
+      const isLt2M = file.size / 1024 / 1024 <= 2048;
546
+      console.log("filename", file);
613
       // console.log('视频大小', file.size / 1024 / 1024)
547
       // console.log('视频大小', file.size / 1024 / 1024)
614
       // console.log('isLt2M是什么', isLt2M)
548
       // console.log('isLt2M是什么', isLt2M)
615
 
549
 
616
       if (!isLt2M) {
550
       if (!isLt2M) {
617
-        this.$message.error('上传视频大小不能超过 2G!')
618
-        return false
551
+        this.$message.error("上传视频大小不能超过 2G!");
552
+        return false;
619
       }
553
       }
620
-      var date = new Date()
621
-      var ext = getFileExtension(file.name)
554
+      var date = new Date();
555
+      var ext = getFileExtension(file.name);
622
       var key =
556
       var key =
623
         date.getFullYear() +
557
         date.getFullYear() +
624
         (date.getMonth() + 1) +
558
         (date.getMonth() + 1) +
626
         date.getHours() +
560
         date.getHours() +
627
         date.getMinutes() +
561
         date.getMinutes() +
628
         date.getSeconds() +
562
         date.getSeconds() +
629
-        '_o_' +
563
+        "_o_" +
630
         file.uid +
564
         file.uid +
631
-        '.' +
632
-        ext
633
-      const _self = this
565
+        "." +
566
+        ext;
567
+      const _self = this;
634
       return new Promise((resolve, reject) => {
568
       return new Promise((resolve, reject) => {
635
         // eslint-disable-next-line no-undef
569
         // eslint-disable-next-line no-undef
636
         getToken()
570
         getToken()
637
           .then(response => {
571
           .then(response => {
638
-            const token = response.data.data.uptoken
639
-            console.log('token2是什么?', token)
640
-            _self._data.uploadFileData.token = token
641
-            _self._data.uploadFileData.key = key
642
-            resolve(true)
572
+            const token = response.data.data.uptoken;
573
+            console.log("token2是什么?", token);
574
+            _self._data.uploadFileData.token = token;
575
+            _self._data.uploadFileData.key = key;
576
+            resolve(true);
643
           })
577
           })
644
           // eslint-disable-next-line handle-callback-err
578
           // eslint-disable-next-line handle-callback-err
645
           .catch(err => {
579
           .catch(err => {
646
-            reject(false)
647
-          })
648
-      })
580
+            reject(false);
581
+          });
582
+      });
649
     },
583
     },
650
     toLink() {
584
     toLink() {
651
-      window.location.href = this.guaForm.images
585
+      window.location.href = this.guaForm.images;
652
     },
586
     },
653
     UpdateRepair(formName) {
587
     UpdateRepair(formName) {
654
       this.$refs[formName].validate(valid => {
588
       this.$refs[formName].validate(valid => {
655
         this.guaForm.start_time = uParseTime(
589
         this.guaForm.start_time = uParseTime(
656
           this.guaForm.start_time,
590
           this.guaForm.start_time,
657
-          '{y}-{m}-{d} {h}:{i}'
658
-        )
591
+          "{y}-{m}-{d} {h}:{i}"
592
+        );
659
         this.guaForm.arrive_time = uParseTime(
593
         this.guaForm.arrive_time = uParseTime(
660
           this.guaForm.arrive_time,
594
           this.guaForm.arrive_time,
661
-          '{y}-{m}-{d} {h}:{i}'
662
-        )
595
+          "{y}-{m}-{d} {h}:{i}"
596
+        );
663
         this.guaForm.finish_time = uParseTime(
597
         this.guaForm.finish_time = uParseTime(
664
           this.guaForm.finish_time,
598
           this.guaForm.finish_time,
665
-          '{y}-{m}-{d} {h}:{i}'
666
-        )
599
+          "{y}-{m}-{d} {h}:{i}"
600
+        );
667
 
601
 
668
-        if (this.guaForm.failure_stage === '') {
669
-          this.guaForm.failure_stage = 0
602
+        if (this.guaForm.failure_stage === "") {
603
+          this.guaForm.failure_stage = 0;
670
         }
604
         }
671
 
605
 
672
-        var failurestages = this.guaForm.failure_stage
673
-        var falur = parseInt(failurestages)
674
-        this.guaForm.failure_stage = falur
606
+        var failurestages = this.guaForm.failure_stage;
607
+        var falur = parseInt(failurestages);
608
+        this.guaForm.failure_stage = falur;
675
 
609
 
676
-        if (this.guaForm.exclude === '') {
677
-          this.guaForm.exclude = 0
610
+        if (this.guaForm.exclude === "") {
611
+          this.guaForm.exclude = 0;
678
         }
612
         }
679
-        var excludes = this.guaForm.exclude
680
-        var exclude = parseInt(excludes)
681
-        this.guaForm.exclude = exclude
613
+        var excludes = this.guaForm.exclude;
614
+        var exclude = parseInt(excludes);
615
+        this.guaForm.exclude = exclude;
682
         if (valid) {
616
         if (valid) {
683
           UpdateRepair(this.guaForm).then(response => {
617
           UpdateRepair(this.guaForm).then(response => {
684
             if (response.data.state === 1) {
618
             if (response.data.state === 1) {
685
-              var repair = response.data.data.repair
686
-              this.dialogVisible = false
687
-              this.$message.success('修改成功')
619
+              var repair = response.data.data.repair;
620
+              this.dialogVisible = false;
621
+              this.$message.success("修改成功");
688
             }
622
             }
689
-          })
623
+          });
690
         }
624
         }
691
-      })
625
+      });
692
     },
626
     },
693
     BatchDelete() {
627
     BatchDelete() {
694
       if (this.selectCulture.length == 0) {
628
       if (this.selectCulture.length == 0) {
695
-        this.$message.error('请选择要删除的信息')
696
-        return false
629
+        this.$message.error("请选择要删除的信息");
630
+        return false;
697
       }
631
       }
698
       this.$confirm(
632
       this.$confirm(
699
-        '确认要删除所选记录吗? <br>删除后,信息将无法恢复',
700
-        '删除提示',
633
+        "确认要删除所选记录吗? <br>删除后,信息将无法恢复",
634
+        "删除提示",
701
         {
635
         {
702
           dangerouslyUseHTMLString: true,
636
           dangerouslyUseHTMLString: true,
703
-          confirmButtonText: '确定',
704
-          cancelButtonText: '取消',
705
-          type: 'warning'
637
+          confirmButtonText: "确定",
638
+          cancelButtonText: "取消",
639
+          type: "warning"
706
         }
640
         }
707
       ).then(() => {
641
       ).then(() => {
708
-        var ids = []
709
-        var idMap = {}
642
+        var ids = [];
643
+        var idMap = {};
710
         for (const index in this.selectCulture) {
644
         for (const index in this.selectCulture) {
711
-          ids.push(this.selectCulture[index].id)
712
-          idMap[this.selectCulture[index].id] = this.selectCulture[index].id
645
+          ids.push(this.selectCulture[index].id);
646
+          idMap[this.selectCulture[index].id] = this.selectCulture[index].id;
713
         }
647
         }
714
         DeleteRepair({ ids: ids }).then(response => {
648
         DeleteRepair({ ids: ids }).then(response => {
715
           if (response.data.state === 1) {
649
           if (response.data.state === 1) {
716
-            var msg = response.data.data.msg
717
-            var planDataLength = this.tableData.length
650
+            var msg = response.data.data.msg;
651
+            var planDataLength = this.tableData.length;
718
             for (let index = planDataLength - 1; index >= 0; index--) {
652
             for (let index = planDataLength - 1; index >= 0; index--) {
719
               if (this.tableData[index].id in idMap) {
653
               if (this.tableData[index].id in idMap) {
720
-                this.tableData.splice(index, 1)
654
+                this.tableData.splice(index, 1);
721
               }
655
               }
722
             }
656
             }
723
-            this.$message.success('删除成功')
657
+            this.$message.success("删除成功");
724
           }
658
           }
725
-        })
726
-      })
659
+        });
660
+      });
727
     },
661
     },
728
     queryRepair() {
662
     queryRepair() {
729
       queryRepair(
663
       queryRepair(
732
         this.forms.end_time
666
         this.forms.end_time
733
       ).then(response => {
667
       ).then(response => {
734
         if (response.data.state === 1) {
668
         if (response.data.state === 1) {
735
-          var repair = response.data.data.repair
736
-          this.tableData = repair
669
+          var repair = response.data.data.repair;
670
+          this.tableData = repair;
737
         }
671
         }
738
-      })
672
+      });
739
     },
673
     },
740
     handleSizeChange(limit) {
674
     handleSizeChange(limit) {
741
-      this.limit = limit
742
-      this.getAllRepair()
675
+      this.limit = limit;
676
+      this.getAllRepair();
743
     },
677
     },
744
     handleCurrentChange(page) {
678
     handleCurrentChange(page) {
745
-      this.page = page
746
-      this.getAllRepair()
679
+      this.page = page;
680
+      this.getAllRepair();
747
     },
681
     },
748
     DeleteRepairs(id, index) {
682
     DeleteRepairs(id, index) {
749
       this.$confirm(
683
       this.$confirm(
750
-        '确认要删除所选记录吗? <br>删除后,信息将无法恢复',
751
-        '删除提示',
684
+        "确认要删除所选记录吗? <br>删除后,信息将无法恢复",
685
+        "删除提示",
752
         {
686
         {
753
           dangerouslyUseHTMLString: true,
687
           dangerouslyUseHTMLString: true,
754
-          confirmButtonText: '确定',
755
-          cancelButtonText: '取消',
756
-          type: 'warning'
688
+          confirmButtonText: "确定",
689
+          cancelButtonText: "取消",
690
+          type: "warning"
757
         }
691
         }
758
       ).then(() => {
692
       ).then(() => {
759
         DeleteRepairs(id, index).then(response => {
693
         DeleteRepairs(id, index).then(response => {
760
           if (response.data.state === 1) {
694
           if (response.data.state === 1) {
761
-            var msg = response.data.data.msg
762
-            this.tableData.splice(index, 1)
695
+            var msg = response.data.data.msg;
696
+            this.tableData.splice(index, 1);
763
           }
697
           }
764
-        })
765
-      })
698
+        });
699
+      });
766
     }
700
     }
767
   },
701
   },
768
   created() {
702
   created() {
769
-    this.getAllSubregion()
770
-    this.getAllRepair()
703
+    this.getAllSubregion();
704
+    this.getAllRepair();
771
   }
705
   }
772
-}
706
+};
773
 </script>
707
 </script>
774
 
708
 
775
 <style scoped>
709
 <style scoped>
776
-  .row{
777
-    margin-bottom:10px;
778
-  }
710
+.row {
711
+  margin-bottom: 10px;
712
+}
779
 </style>
713
 </style>

+ 68 - 190
src/xt_pages/management/components/UserForm.vue View File

11
           format="yyyy-MM-dd"
11
           format="yyyy-MM-dd"
12
           value-format="yyyy-MM-dd"
12
           value-format="yyyy-MM-dd"
13
           style="width:145px"
13
           style="width:145px"
14
-        ></el-date-picker
15
-        >-
14
+        ></el-date-picker>-
16
         <el-date-picker
15
         <el-date-picker
17
           v-model="form.end_time"
16
           v-model="form.end_time"
18
           prefix-icon="none"
17
           prefix-icon="none"
23
           style="width:145px"
22
           style="width:145px"
24
         ></el-date-picker>
23
         ></el-date-picker>
25
       </el-col>
24
       </el-col>
26
-      <el-col :span="4">
25
+      <el-col :span="5">
27
         <span class="machineClass">分区:</span>
26
         <span class="machineClass">分区:</span>
28
-        <el-select style="width:90px" v-model="form.zone" @change="changeBed">
29
-          <el-option
30
-            v-for="item in this.zones"
31
-            :key="item.id"
32
-            :label="item.name"
33
-            :value="item.id"
34
-          ></el-option>
27
+        <el-select style="width:110px" v-model="form.zone" @change="changeBed">
28
+          <el-option v-for="item in this.zones" :key="item.id" :label="item.name" :value="item.id"></el-option>
35
         </el-select>
29
         </el-select>
36
       </el-col>
30
       </el-col>
37
-      <el-col :span="4">
31
+      <el-col :span="6">
38
         <span class="machineClass">机位号:</span>
32
         <span class="machineClass">机位号:</span>
39
-        <el-select style="width:80px" v-model="form.bed">
33
+        <el-select style="width:145px" v-model="form.bed">
40
           <el-option
34
           <el-option
41
             v-for="item in this.bedNumberTwo"
35
             v-for="item in this.bedNumberTwo"
42
             :key="item.id"
36
             :key="item.id"
45
           ></el-option>
39
           ></el-option>
46
         </el-select>
40
         </el-select>
47
       </el-col>
41
       </el-col>
48
-      <el-col :span="5">
42
+      <el-col :span="2">
49
         <el-button @click="queryInfo()">查询</el-button>
43
         <el-button @click="queryInfo()">查询</el-button>
50
       </el-col>
44
       </el-col>
51
     </el-row>
45
     </el-row>
52
-    <el-row :span="24">
46
+    <el-row :span="24" style="display: flex;align-items: center;">
53
       <el-col :span="2">
47
       <el-col :span="2">
54
         <el-checkbox
48
         <el-checkbox
55
           :indeterminate="isIndeterminate"
49
           :indeterminate="isIndeterminate"
56
           v-model="checkAllStatus"
50
           v-model="checkAllStatus"
57
           @change="changeCheck"
51
           @change="changeCheck"
58
-          >全选</el-checkbox
59
-        >
52
+        >全选</el-checkbox>
60
       </el-col>
53
       </el-col>
61
       <el-col :span="3">
54
       <el-col :span="3">
62
         <el-button size="small" @click="BatchDelete">批量删除</el-button>
55
         <el-button size="small" @click="BatchDelete">批量删除</el-button>
63
       </el-col>
56
       </el-col>
64
-      <el-col :span="6" class="a">
57
+      <el-col :span="6">
65
         <el-button @click="printCard">打印</el-button>
58
         <el-button @click="printCard">打印</el-button>
66
       </el-col>
59
       </el-col>
67
     </el-row>
60
     </el-row>
69
       <el-table
62
       <el-table
70
         ref="multipleTable"
63
         ref="multipleTable"
71
         @selection-change="handleSelectionChange"
64
         @selection-change="handleSelectionChange"
72
-        :header-cell-style="{ backgroundColor: 'rgb(245, 247, 250)' }"
65
+        :row-style="{ color: '#303133' }"
66
+        :header-cell-style="{
67
+          backgroundColor: 'rgb(245, 247, 250)',
68
+          color: '#606266'
69
+        }"
73
         :data="tableData"
70
         :data="tableData"
74
         border
71
         border
75
         fit
72
         fit
76
         highlight-current-row
73
         highlight-current-row
77
         style="width: 100%;margin-top: 10px;"
74
         style="width: 100%;margin-top: 10px;"
78
       >
75
       >
79
-        <el-table-column
80
-          align="center"
81
-          type="selection"
82
-          width="55"
83
-        ></el-table-column>
76
+        <el-table-column align="center" type="selection" width="55"></el-table-column>
84
         <el-table-column label="机号" align="center" width="50">
77
         <el-table-column label="机号" align="center" width="50">
85
           <template slot-scope="scope">{{ scope.row.bed }}</template>
78
           <template slot-scope="scope">{{ scope.row.bed }}</template>
86
         </el-table-column>
79
         </el-table-column>
104
         </el-table-column>
97
         </el-table-column>
105
         <el-table-column label="机表消毒" align="center" min-width="110px">
98
         <el-table-column label="机表消毒" align="center" min-width="110px">
106
           <el-table-column label="消毒方式" align="center" min-width="110px">
99
           <el-table-column label="消毒方式" align="center" min-width="110px">
107
-            <template slot-scope="scope">
108
-              {{ scope.row.disinfect_type }}
109
-            </template>
100
+            <template slot-scope="scope">{{ scope.row.disinfect_type }}</template>
110
           </el-table-column>
101
           </el-table-column>
111
           <el-table-column label="消毒液" align="center" min-width="110px">
102
           <el-table-column label="消毒液" align="center" min-width="110px">
112
-            <template slot-scope="scope">
113
-              {{ scope.row.disinfectant_type }}
114
-            </template>
103
+            <template slot-scope="scope">{{ scope.row.disinfectant_type }}</template>
115
           </el-table-column>
104
           </el-table-column>
116
           <el-table-column label="消毒状态" align="center" min-width="110px">
105
           <el-table-column label="消毒状态" align="center" min-width="110px">
117
             <template slot-scope="scope">{{ scope.row.disinfection }}</template>
106
             <template slot-scope="scope">{{ scope.row.disinfection }}</template>
118
           </el-table-column>
107
           </el-table-column>
119
           <el-table-column label="消毒液浓度" align="center" min-width="110px">
108
           <el-table-column label="消毒液浓度" align="center" min-width="110px">
120
-            <template slot-scope="scope">
121
-              {{ scope.row.dialysis_concentration }}
122
-            </template>
109
+            <template slot-scope="scope">{{ scope.row.dialysis_concentration }}</template>
123
           </el-table-column>
110
           </el-table-column>
124
         </el-table-column>
111
         </el-table-column>
125
         <el-table-column label="液路消毒" align="center" min-width="110px">
112
         <el-table-column label="液路消毒" align="center" min-width="110px">
129
           <el-table-column label="消毒液" align="center" min-width="110px">
116
           <el-table-column label="消毒液" align="center" min-width="110px">
130
             <template slot-scope="scope">{{ scope.row.disinfectant }}</template>
117
             <template slot-scope="scope">{{ scope.row.disinfectant }}</template>
131
           </el-table-column>
118
           </el-table-column>
132
-          <el-table-column
133
-            label="开始消毒时间"
134
-            align="center"
135
-            min-width="110px"
136
-          >
137
-            <template slot-scope="scope">{{
138
-              getTimes(scope.row.disinfec_startime)
139
-            }}</template>
140
-          </el-table-column>
141
-          <el-table-column
142
-            label="结束消毒时间"
143
-            align="center"
144
-            min-width="110px"
145
-          >
119
+          <el-table-column label="开始消毒时间" align="center" min-width="110px">
146
             <template slot-scope="scope">
120
             <template slot-scope="scope">
147
-              {{ getTimes(scope.row.disinfec_endtime) }}
121
+              {{
122
+              getTimes(scope.row.disinfec_startime)
123
+              }}
148
             </template>
124
             </template>
149
           </el-table-column>
125
           </el-table-column>
150
-          <el-table-column
151
-            label="消毒时长/min"
152
-            align="center"
153
-            min-width="110px"
154
-          >
126
+          <el-table-column label="结束消毒时间" align="center" min-width="110px">
127
+            <template slot-scope="scope">{{ getTimes(scope.row.disinfec_endtime) }}</template>
128
+          </el-table-column>
129
+          <el-table-column label="消毒时长/min" align="center" min-width="110px">
155
             <template slot-scope="scope">{{ scope.row.long_time }}</template>
130
             <template slot-scope="scope">{{ scope.row.long_time }}</template>
156
           </el-table-column>
131
           </el-table-column>
157
           <el-table-column label="消毒状态" align="center" min-width="110px">
132
           <el-table-column label="消毒状态" align="center" min-width="110px">
158
-            <template slot-scope="scope">
159
-              {{ scope.row.disinfection_status }}
160
-            </template>
133
+            <template slot-scope="scope">{{ scope.row.disinfection_status }}</template>
161
           </el-table-column>
134
           </el-table-column>
162
           <el-table-column label="消毒液残留" align="center" min-width="110px">
135
           <el-table-column label="消毒液残留" align="center" min-width="110px">
163
-            <template slot-scope="scope">
164
-              {{ scope.row.disinfection_residue }}
165
-            </template>
136
+            <template slot-scope="scope">{{ scope.row.disinfection_residue }}</template>
166
           </el-table-column>
137
           </el-table-column>
167
         </el-table-column>
138
         </el-table-column>
168
-        <el-table-column
169
-          label="透析机消毒液(更换)"
170
-          align="center"
171
-          min-width="110px"
172
-        >
173
-          <template slot-scope="scope">
174
-            {{ scope.row.dialysis_checked }}
175
-          </template>
139
+        <el-table-column label="透析机消毒液(更换)" align="center" min-width="110px">
140
+          <template slot-scope="scope">{{ scope.row.dialysis_checked }}</template>
176
         </el-table-column>
141
         </el-table-column>
177
-        <el-table-column
178
-          label="细菌过滤器(更换)"
179
-          align="center"
180
-          min-width="110px"
181
-        >
142
+        <el-table-column label="细菌过滤器(更换)" align="center" min-width="110px">
182
           <template slot-scope="scope">{{ scope.row.germ_checked }}</template>
143
           <template slot-scope="scope">{{ scope.row.germ_checked }}</template>
183
         </el-table-column>
144
         </el-table-column>
184
         <el-table-column label="空气滤网" align="center" min-width="110px">
145
         <el-table-column label="空气滤网" align="center" min-width="110px">
189
         </el-table-column>
150
         </el-table-column>
190
         <el-table-column label="操作" align="center" min-width="150px">
151
         <el-table-column label="操作" align="center" min-width="150px">
191
           <template slot-scope="scope">
152
           <template slot-scope="scope">
192
-            <el-tooltip
193
-              class="item"
194
-              effect="dark"
195
-              content="编辑"
196
-              placement="top"
197
-            >
153
+            <el-tooltip class="item" effect="dark" content="编辑" placement="top">
198
               <el-button
154
               <el-button
199
                 size="mini"
155
                 size="mini"
200
                 type="primary"
156
                 type="primary"
205
               ></el-button>
161
               ></el-button>
206
             </el-tooltip>
162
             </el-tooltip>
207
 
163
 
208
-            <el-tooltip
209
-              class="item"
210
-              effect="dark"
211
-              content="删除"
212
-              placement="top"
213
-            >
164
+            <el-tooltip class="item" effect="dark" content="删除" placement="top">
214
               <el-button
165
               <el-button
215
                 size="mini"
166
                 size="mini"
216
-                type="primary"
167
+                type="danger"
217
                 icon="el-icon-delete"
168
                 icon="el-icon-delete"
218
                 @click="DeleteUserLogin(scope.row.id, scope.$index)"
169
                 @click="DeleteUserLogin(scope.row.id, scope.$index)"
219
               ></el-button>
170
               ></el-button>
233
       ></el-pagination>
184
       ></el-pagination>
234
     </el-row>
185
     </el-row>
235
 
186
 
236
-    <el-dialog
237
-      title="使用登记"
238
-      :visible.sync="dialogVisible"
239
-      width="65%"
240
-      center
241
-    >
187
+    <el-dialog title="使用登记" :visible.sync="dialogVisible" width="65%" center>
242
       <el-form :model="userform" ref="userform">
188
       <el-form :model="userform" ref="userform">
243
         <el-row>
189
         <el-row>
244
           <el-col :span="8">
190
           <el-col :span="8">
256
           </el-col>
202
           </el-col>
257
           <el-col :span="8">
203
           <el-col :span="8">
258
             <el-form-item label="班次:">
204
             <el-form-item label="班次:">
259
-              <el-select
260
-                v-model="userform.classtype"
261
-                placeholder="请选择"
262
-                class="a"
263
-              >
205
+              <el-select v-model="userform.classtype" placeholder="请选择" class="a">
264
                 <el-option
206
                 <el-option
265
                   v-for="item in classType"
207
                   v-for="item in classType"
266
                   :key="item.id"
208
                   :key="item.id"
274
           <el-col :span="8">
216
           <el-col :span="8">
275
             <el-form-item label="分区:">
217
             <el-form-item label="分区:">
276
               <el-select v-model="userform.zone" placeholder="请选择" class="a">
218
               <el-select v-model="userform.zone" placeholder="请选择" class="a">
277
-                <el-option
278
-                  v-for="item in zones"
279
-                  :key="item.id"
280
-                  :label="item.name"
281
-                  :value="item.id"
282
-                ></el-option>
219
+                <el-option v-for="item in zones" :key="item.id" :label="item.name" :value="item.id"></el-option>
283
               </el-select>
220
               </el-select>
284
             </el-form-item>
221
             </el-form-item>
285
           </el-col>
222
           </el-col>
306
                 placeholder="请输入内容"
243
                 placeholder="请输入内容"
307
                 @select="handleSelect"
244
                 @select="handleSelect"
308
               >
245
               >
309
-                <i class="el-icon-search el-input__icon" slot="suffix"> </i>
246
+                <i class="el-icon-search el-input__icon" slot="suffix"></i>
310
                 <template slot-scope="{ item }">
247
                 <template slot-scope="{ item }">
311
                   <span class="addr">{{ item.name }}</span>
248
                   <span class="addr">{{ item.name }}</span>
312
                 </template>
249
                 </template>
333
           </el-col>
270
           </el-col>
334
           <el-col :span="8">
271
           <el-col :span="8">
335
             <el-form-item label="传染病:">
272
             <el-form-item label="传染病:">
336
-              <el-input
337
-                style="width:180px"
338
-                v-model="userform.contagion"
339
-                :disabled="true"
340
-              ></el-input>
273
+              <el-input style="width:180px" v-model="userform.contagion" :disabled="true"></el-input>
341
             </el-form-item>
274
             </el-form-item>
342
           </el-col>
275
           </el-col>
343
         </el-row>
276
         </el-row>
344
         <el-row>
277
         <el-row>
345
           <el-col :span="8">
278
           <el-col :span="8">
346
             <el-form-item label="透析方式:">
279
             <el-form-item label="透析方式:">
347
-              <el-select
348
-                v-model="userform.dialysis_mode"
349
-                placeholder="请选择"
350
-                class="a"
351
-              >
280
+              <el-select v-model="userform.dialysis_mode" placeholder="请选择" class="a">
352
                 <el-option
281
                 <el-option
353
                   v-for="item in treatmode"
282
                   v-for="item in treatmode"
354
                   :key="item.id"
283
                   :key="item.id"
386
         <el-row>
315
         <el-row>
387
           <el-col :span="8">
316
           <el-col :span="8">
388
             <el-form-item label="透析时长:">
317
             <el-form-item label="透析时长:">
389
-              <el-input
390
-                style="width:180px"
391
-                v-model="userform.dialysis_time"
392
-              ></el-input>
318
+              <el-input style="width:180px" v-model="userform.dialysis_time"></el-input>
393
             </el-form-item>
319
             </el-form-item>
394
           </el-col>
320
           </el-col>
395
           <el-col :span="8">
321
           <el-col :span="8">
396
             <el-form-item label="实际超滤量:">
322
             <el-form-item label="实际超滤量:">
397
-              <el-input
398
-                style="width:180px"
399
-                v-model="userform.hyperfiltratio"
400
-              ></el-input>
323
+              <el-input style="width:180px" v-model="userform.hyperfiltratio"></el-input>
401
             </el-form-item>
324
             </el-form-item>
402
           </el-col>
325
           </el-col>
403
           <el-col :span="8">
326
           <el-col :span="8">
404
             <el-form-item label="体重减少:">
327
             <el-form-item label="体重减少:">
405
-              <el-input
406
-                style="width:180px"
407
-                v-model="userform.weight_loss"
408
-              ></el-input>
328
+              <el-input style="width:180px" v-model="userform.weight_loss"></el-input>
409
             </el-form-item>
329
             </el-form-item>
410
           </el-col>
330
           </el-col>
411
         </el-row>
331
         </el-row>
412
         <el-row>
332
         <el-row>
413
           <el-col :span="8">
333
           <el-col :span="8">
414
             <el-form-item label="预警值:">
334
             <el-form-item label="预警值:">
415
-              <el-input
416
-                style="width:180px"
417
-                v-model="userform.warning_value"
418
-              ></el-input>
335
+              <el-input style="width:180px" v-model="userform.warning_value"></el-input>
419
             </el-form-item>
336
             </el-form-item>
420
           </el-col>
337
           </el-col>
421
           <el-col :span="8">
338
           <el-col :span="8">
422
             <el-form-item label="使用次数:">
339
             <el-form-item label="使用次数:">
423
-              <el-input
424
-                style="width:180px"
425
-                v-model="userform.user_total"
426
-              ></el-input>
340
+              <el-input style="width:180px" v-model="userform.user_total"></el-input>
427
             </el-form-item>
341
             </el-form-item>
428
           </el-col>
342
           </el-col>
429
           <el-col :span="8">
343
           <el-col :span="8">
434
                   :value="gender.id"
348
                   :value="gender.id"
435
                   v-for="(gender, index) in runOption"
349
                   v-for="(gender, index) in runOption"
436
                   :key="index"
350
                   :key="index"
437
-                  >{{ gender.name }}</el-radio
438
-                >
351
+                >{{ gender.name }}</el-radio>
439
               </el-radio-group>
352
               </el-radio-group>
440
             </el-form-item>
353
             </el-form-item>
441
           </el-col>
354
           </el-col>
449
                   :value="gender.id"
362
                   :value="gender.id"
450
                   v-for="(gender, index) in faultPhase"
363
                   v-for="(gender, index) in faultPhase"
451
                   :key="index"
364
                   :key="index"
452
-                  >{{ gender.name }}</el-radio
453
-                >
365
+                >{{ gender.name }}</el-radio>
454
               </el-radio-group>
366
               </el-radio-group>
455
             </el-form-item>
367
             </el-form-item>
456
           </el-col>
368
           </el-col>
458
         <el-row>
370
         <el-row>
459
           <el-col :span="24">
371
           <el-col :span="24">
460
             <el-form-item label="故障描述:">
372
             <el-form-item label="故障描述:">
461
-              <el-input
462
-                style="width:600px"
463
-                v-model="userform.fault_description"
464
-              ></el-input>
373
+              <el-input style="width:600px" v-model="userform.fault_description"></el-input>
465
             </el-form-item>
374
             </el-form-item>
466
           </el-col>
375
           </el-col>
467
         </el-row>
376
         </el-row>
468
         <el-row>
377
         <el-row>
469
           <el-col :span="24">
378
           <el-col :span="24">
470
             <el-form-item class="stoppage" label="故障提示信息及代码:">
379
             <el-form-item class="stoppage" label="故障提示信息及代码:">
471
-              <el-input
472
-                style="width:600px"
473
-                v-model="userform.code_information"
474
-              ></el-input>
380
+              <el-input style="width:600px" v-model="userform.code_information"></el-input>
475
             </el-form-item>
381
             </el-form-item>
476
           </el-col>
382
           </el-col>
477
         </el-row>
383
         </el-row>
497
           </el-col>
403
           </el-col>
498
           <el-col :span="8">
404
           <el-col :span="8">
499
             <el-form-item label="消毒液:">
405
             <el-form-item label="消毒液:">
500
-              <el-select
501
-                v-model="userform.disinfectant_type"
502
-                placeholder="请选择"
503
-              >
406
+              <el-select v-model="userform.disinfectant_type" placeholder="请选择">
504
                 <el-option
407
                 <el-option
505
                   v-for="item in disinfectantType"
408
                   v-for="item in disinfectantType"
506
                   :key="item.id"
409
                   :key="item.id"
534
                   :value="gender.id"
437
                   :value="gender.id"
535
                   v-for="(gender, index) in runOptions"
438
                   v-for="(gender, index) in runOptions"
536
                   :key="index"
439
                   :key="index"
537
-                  >{{ gender.name }}</el-radio
538
-                >
440
+                >{{ gender.name }}</el-radio>
539
               </el-radio-group>
441
               </el-radio-group>
540
             </el-form-item>
442
             </el-form-item>
541
           </el-col>
443
           </el-col>
574
         <el-row>
476
         <el-row>
575
           <el-col :span="8">
477
           <el-col :span="8">
576
             <el-form-item label="消毒状态:">
478
             <el-form-item label="消毒状态:">
577
-              <el-select
578
-                v-model="userform.disinfection_status"
579
-                placeholder="请选择"
580
-              >
479
+              <el-select v-model="userform.disinfection_status" placeholder="请选择">
581
                 <el-option
480
                 <el-option
582
                   v-for="item in disinfection"
481
                   v-for="item in disinfection"
583
                   :key="item.id"
482
                   :key="item.id"
596
                   :value="gender.id"
495
                   :value="gender.id"
597
                   v-for="(gender, index) in Disinfectant"
496
                   v-for="(gender, index) in Disinfectant"
598
                   :key="index"
497
                   :key="index"
599
-                  >{{ gender.name }}</el-radio
600
-                >
498
+                >{{ gender.name }}</el-radio>
601
               </el-radio-group>
499
               </el-radio-group>
602
             </el-form-item>
500
             </el-form-item>
603
           </el-col>
501
           </el-col>
605
         <el-row>
503
         <el-row>
606
           <el-col :span="8">
504
           <el-col :span="8">
607
             <el-form-item label="消毒时长:">
505
             <el-form-item label="消毒时长:">
608
-              <el-input
609
-                style="width:135px"
610
-                v-model="userform.longtime"
611
-              ></el-input
612
-              >分钟
506
+              <el-input style="width:135px" v-model="userform.longtime"></el-input>分钟
613
             </el-form-item>
507
             </el-form-item>
614
           </el-col>
508
           </el-col>
615
           <el-col :span="8">
509
           <el-col :span="8">
659
           </el-col>
553
           </el-col>
660
           <el-col :span="6">
554
           <el-col :span="6">
661
             <el-form-item label="规格:">
555
             <el-form-item label="规格:">
662
-              <el-input style="width:100px" v-model="userform.norms"></el-input
663
-              >桶
556
+              <el-input style="width:100px" v-model="userform.norms"></el-input>桶
664
             </el-form-item>
557
             </el-form-item>
665
-            <span style="color:red" v-show="showone"
666
-              >您已一个月未更换,请注意检测</span
667
-            >
558
+            <span style="color:red" v-show="showone">您已一个月未更换,请注意检测</span>
668
           </el-col>
559
           </el-col>
669
         </el-row>
560
         </el-row>
670
         <el-row>
561
         <el-row>
676
                   :value="gender.id"
567
                   :value="gender.id"
677
                   v-for="(gender, index) in potency"
568
                   v-for="(gender, index) in potency"
678
                   :key="index"
569
                   :key="index"
679
-                  >{{ gender.name }}</el-radio
680
-                >
570
+                >{{ gender.name }}</el-radio>
681
               </el-radio-group>
571
               </el-radio-group>
682
             </el-form-item>
572
             </el-form-item>
683
           </el-col>
573
           </el-col>
688
           </el-col>
578
           </el-col>
689
           <el-col :span="7">
579
           <el-col :span="7">
690
             <el-checkbox v-model="userform.germ_checked">更换</el-checkbox>
580
             <el-checkbox v-model="userform.germ_checked">更换</el-checkbox>
691
-            <span style="color:red" v-show="showone"
692
-              >您已一个月未更换,请注意检测</span
693
-            >
581
+            <span style="color:red" v-show="showone">您已一个月未更换,请注意检测</span>
694
           </el-col>
582
           </el-col>
695
           <el-col :span="8">
583
           <el-col :span="8">
696
             <el-form-item label="名称:">
584
             <el-form-item label="名称:">
707
           </el-col>
595
           </el-col>
708
           <el-col :span="6">
596
           <el-col :span="6">
709
             <el-form-item label="数量:">
597
             <el-form-item label="数量:">
710
-              <el-input
711
-                style="width:100px"
712
-                v-model="userform.germ_number"
713
-              ></el-input
714
-              >支
598
+              <el-input style="width:100px" v-model="userform.germ_number"></el-input>支
715
             </el-form-item>
599
             </el-form-item>
716
           </el-col>
600
           </el-col>
717
         </el-row>
601
         </el-row>
721
           </el-col>
605
           </el-col>
722
           <el-col :span="10">
606
           <el-col :span="10">
723
             <el-checkbox v-model="userform.clean">清洁:</el-checkbox>
607
             <el-checkbox v-model="userform.clean">清洁:</el-checkbox>
724
-            <span style="color:red" v-show="showone"
725
-              >您已一个月未清洁,请检查</span
726
-            >
608
+            <span style="color:red" v-show="showone">您已一个月未清洁,请检查</span>
727
           </el-col>
609
           </el-col>
728
           <el-col :span="10">
610
           <el-col :span="10">
729
             <el-form-item label="签名:">
611
             <el-form-item label="签名:">
742
       </el-form>
624
       </el-form>
743
       <span slot="footer" class="dialog-footer">
625
       <span slot="footer" class="dialog-footer">
744
         <el-button @click="dialogVisible = false">取 消</el-button>
626
         <el-button @click="dialogVisible = false">取 消</el-button>
745
-        <el-button type="primary" @click="UpdateForm('userform')"
746
-          >保存</el-button
747
-        >
627
+        <el-button type="primary" @click="UpdateForm('userform')">保存</el-button>
748
       </span>
628
       </span>
749
     </el-dialog>
629
     </el-dialog>
750
 
630
 
756
           </div>
636
           </div>
757
           <div>
637
           <div>
758
             <div class="printClass">打印日期:{{ nowTime }}</div>
638
             <div class="printClass">打印日期:{{ nowTime }}</div>
759
-            <table
760
-              border="1"
761
-              style="width:100%"
762
-              cellspacing="0"
763
-              cellpadding="0"
764
-            >
639
+            <table border="1" style="width:100%" cellspacing="0" cellpadding="0">
765
               <tr>
640
               <tr>
766
                 <th :rowspan="2">机号</th>
641
                 <th :rowspan="2">机号</th>
767
                 <th :rowspan="2">日期</th>
642
                 <th :rowspan="2">日期</th>
2225
 </script>
2100
 </script>
2226
 <style scoped>
2101
 <style scoped>
2227
 .a {
2102
 .a {
2228
-  .el-col-2 {
2103
+  /* .el-col-2 {
2229
     width: 8.33333%;
2104
     width: 8.33333%;
2230
     margin-bottom: 20px;
2105
     margin-bottom: 20px;
2231
-  }
2106
+  } */
2232
 }
2107
 }
2233
 .print_main_content {
2108
 .print_main_content {
2234
   background-color: white;
2109
   background-color: white;
2243
 }
2118
 }
2244
 .c {
2119
 .c {
2245
   margin-bottom: 10px;
2120
   margin-bottom: 10px;
2121
+  .el-input--prefix .el-input__inner {
2122
+    margin-left: 15px;
2123
+  }
2246
 }
2124
 }
2247
 </style>
2125
 </style>

File diff suppressed because it is too large
+ 206 - 150
src/xt_pages/management/home.vue