Преглед изворни кода

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

XMLWAN пре 4 година
родитељ
комит
d386cf1f0d

+ 10 - 0
src/styles/index.scss Прегледај датотеку

@@ -532,3 +532,13 @@ code {
532 532
 .el-checkbox__inner {
533 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 Прегледај датотеку

@@ -1,7 +1,7 @@
1 1
 <template>
2 2
   <div id="quality-form">
3 3
     <el-row class="row">
4
-      <el-col :span="4">
4
+      <el-col :span="5">
5 5
         <span class="machineClass">机号:</span>
6 6
         <el-select style="width:100px" v-model="forms.bed">
7 7
           <el-option
@@ -12,12 +12,8 @@
12 12
           ></el-option>
13 13
         </el-select>
14 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 17
           <el-option
22 18
             v-for="item in this.tableTypes"
23 19
             :key="item.id"
@@ -26,7 +22,7 @@
26 22
           ></el-option>
27 23
         </el-select>
28 24
       </el-col>
29
-      <el-col :span="11">
25
+      <el-col :span="12">
30 26
         <span class="machineClass">日期查询:</span>
31 27
         <el-date-picker
32 28
           v-model="forms.start_time"
@@ -36,8 +32,7 @@
36 32
           format="yyyy-MM-dd"
37 33
           value-format="yyyy-MM-dd"
38 34
           style="width:150px"
39
-        ></el-date-picker
40
-        >-
35
+        ></el-date-picker>-
41 36
         <el-date-picker
42 37
           v-model="forms.end_time"
43 38
           prefix-icon="none"
@@ -55,22 +50,14 @@
55 50
         <el-button>打印</el-button>
56 51
       </el-col>-->
57 52
     </el-row>
58
-    <el-row>
53
+    <el-row style="display: flex;align-items: center;">
59 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 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 61
       </el-col>
75 62
     </el-row>
76 63
     <el-row>
@@ -78,7 +65,11 @@
78 65
       <el-table
79 66
         ref="multipleTable"
80 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 73
         :data="tableData"
83 74
         border
84 75
         fit
@@ -86,106 +77,64 @@
86 77
         style="width: 100%;margin-top: 10px;"
87 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 81
         <el-table-column prop="date" label="机号" width="80" align="center">
95 82
           <template slot-scope="scope">{{ scope.row.bed }}</template>
96 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 87
             getTime(scope.row.speling_date)
105
-          }}</template>
88
+            }}
89
+          </template>
106 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 92
           <template slot-scope="scope">{{ scope.row.specimen }}</template>
114 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 97
             scope.row.concentrate_noa
123
-          }}</template>
98
+            }}
99
+          </template>
124 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 104
             scope.row.concentrate_nob
133
-          }}</template>
105
+            }}
106
+          </template>
134 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 111
             scope.row.sampling_locationa
143
-          }}</template>
112
+            }}
113
+          </template>
144 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 116
           <template slot-scope="scope">{{ scope.row.detection_unit }}</template>
152 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 119
           <template slot-scope="scope">{{ scope.row.user_name }}</template>
160 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 124
             getTime(scope.row.reporting_date)
169
-          }}</template>
125
+            }}
126
+          </template>
170 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 131
             scope.row.detection_result
179
-          }}</template>
132
+            }}
133
+          </template>
180 134
         </el-table-column>
181 135
         <el-table-column label="操作" align="center" min-width="150px">
182 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 138
               <el-button
190 139
                 size="mini"
191 140
                 type="primary"
@@ -196,12 +145,7 @@
196 145
               ></el-button>
197 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 149
               <el-button
206 150
                 size="mini"
207 151
                 type="primary"
@@ -225,106 +169,64 @@
225 169
         style="width: 100%;margin-top: 10px;"
226 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 173
         <el-table-column prop="date" label="机号" width="80" align="center">
234 174
           <template slot-scope="scope">{{ scope.row.bed }}</template>
235 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 179
             getTime(scope.row.sampling_date)
244
-          }}</template>
180
+            }}
181
+          </template>
245 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 184
           <template slot-scope="scope">{{ scope.row.specimenb }}</template>
253 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 189
             scope.row.concentrate_noc
262
-          }}</template>
190
+            }}
191
+          </template>
263 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 196
             scope.row.concentrateb_nod
272
-          }}</template>
197
+            }}
198
+          </template>
273 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 203
             scope.row.sampling_locationb
282
-          }}</template>
204
+            }}
205
+          </template>
283 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 208
           <template slot-scope="scope">{{ scope.row.detection_unit }}</template>
291 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 211
           <template slot-scope="scope">{{ scope.row.user_name }}</template>
299 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 216
             getTime(scope.row.reporting_dateb)
308
-          }}</template>
217
+            }}
218
+          </template>
309 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 223
             scope.row.detection_resultb
318
-          }}</template>
224
+            }}
225
+          </template>
319 226
         </el-table-column>
320 227
         <el-table-column label="操作" align="center" min-width="150px">
321 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 230
               <el-button
329 231
                 size="mini"
330 232
                 type="primary"
@@ -333,12 +235,7 @@
333 235
               ></el-button>
334 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 239
               <el-button
343 240
                 size="mini"
344 241
                 type="primary"
@@ -362,133 +259,67 @@
362 259
         style="width: 100%;margin-top: 10px;"
363 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 263
         <el-table-column prop="date" label="机号" width="80" align="center">
371 264
           <template slot-scope="scope">{{ scope.row.bed }}</template>
372 265
         </el-table-column>
373 266
         <el-table-column prop="name" label="取样日期" width="80" align="center">
374
-          <template slot-scope="scope">{{
267
+          <template slot-scope="scope">
268
+            {{
375 269
             getTime(scope.row.sampling_date)
376
-          }}</template>
270
+            }}
271
+          </template>
377 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 274
           <template slot-scope="scope">{{ scope.row.user_name }}</template>
385 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 277
           <template slot-scope="scope">{{ scope.row.detection_unit }}</template>
393 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 282
             scope.row.concentrate_nof
402
-          }}</template>
283
+            }}
284
+          </template>
403 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 289
             scope.row.concentrate_nog
412
-          }}</template>
290
+            }}
291
+          </template>
413 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 296
             getTime(scope.row.date_reportc)
422
-          }}</template>
297
+            }}
298
+          </template>
423 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 302
             <template slot-scope="scope">{{ scope.row.actual_na }}</template>
437 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 305
             <template slot-scope="scope">{{ scope.row.actual_pna }}</template>
445 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 308
             <template slot-scope="scope">{{ scope.row.actual_k }}</template>
453 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 311
             <template slot-scope="scope">{{ scope.row.actual_ca }}</template>
461 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 314
             <template slot-scope="scope">{{ scope.row.actual_ci }}</template>
469 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 317
             <template slot-scope="scope">{{ scope.row.actual_hco }}</template>
477 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 320
             <template slot-scope="scope">{{ scope.row.actual_mg }}</template>
485 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 323
             <template slot-scope="scope">{{ scope.row.actual_ph }}</template>
493 324
           </el-table-column>
494 325
         </el-table-column>
@@ -497,12 +328,7 @@
497 328
         </el-table-column>
498 329
         <el-table-column label="操作" align="center" min-width="150px">
499 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 332
               <el-button
507 333
                 size="mini"
508 334
                 type="primary"
@@ -511,12 +337,7 @@
511 337
               ></el-button>
512 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 341
               <el-button
521 342
                 size="mini"
522 343
                 type="primary"
@@ -530,12 +351,7 @@
530 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 355
       <el-form :model="form" ref="form" :rules="rules">
540 356
         <el-row>
541 357
           <el-col :span="8">
@@ -553,11 +369,7 @@
553 369
           </el-col>
554 370
           <el-col :span="8">
555 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 373
                 <el-option
562 374
                   v-for="item in samplingSpecimen"
563 375
                   :key="item.id"
@@ -569,22 +381,14 @@
569 381
           </el-col>
570 382
           <el-col :span="8">
571 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 385
             </el-form-item>
578 386
           </el-col>
579 387
         </el-row>
580 388
         <el-row>
581 389
           <el-col :span="8">
582 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 392
             </el-form-item>
589 393
           </el-col>
590 394
           <el-col :span="8">
@@ -601,10 +405,7 @@
601 405
           </el-col>
602 406
           <el-col :span="8">
603 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 409
             </el-form-item>
609 410
           </el-col>
610 411
         </el-row>
@@ -651,19 +452,12 @@
651 452
       </el-form>
652 453
       <span slot="footer" class="dialog-footer">
653 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 456
       </span>
658 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 461
       <el-form :model="diaForm" ref="diaForm" rules="diaRules">
668 462
         <el-row>
669 463
           <el-col :span="8">
@@ -681,11 +475,7 @@
681 475
           </el-col>
682 476
           <el-col :span="8">
683 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 479
                 <el-option
690 480
                   v-for="item in samplingSpecimen"
691 481
                   :key="item.id"
@@ -697,11 +487,7 @@
697 487
           </el-col>
698 488
           <el-col :span="8">
699 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 491
             </el-form-item>
706 492
           </el-col>
707 493
         </el-row>
@@ -717,10 +503,7 @@
717 503
           </el-col>
718 504
           <el-col :span="8">
719 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 507
                 <el-option
725 508
                   v-for="item in samplingLocation"
726 509
                   :key="item.id"
@@ -732,10 +515,7 @@
732 515
           </el-col>
733 516
           <el-col :span="8">
734 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 519
             </el-form-item>
740 520
           </el-col>
741 521
         </el-row>
@@ -782,19 +562,12 @@
782 562
       </el-form>
783 563
       <span slot="footer" class="dialog-footer">
784 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 566
       </span>
789 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 571
       <el-row>
799 572
         <el-form :model="ionForm" ref="ionForm" :rule="ionrule">
800 573
           <el-row>
@@ -825,28 +598,19 @@
825 598
             </el-col>
826 599
             <el-col :span="8">
827 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 602
               </el-form-item>
833 603
             </el-col>
834 604
           </el-row>
835 605
           <el-row>
836 606
             <el-col :span="8">
837 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 609
               </el-form-item>
843 610
             </el-col>
844 611
             <el-col :span="8">
845 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 614
               </el-form-item>
851 615
             </el-col>
852 616
             <el-col :span="8">
@@ -866,70 +630,46 @@
866 630
           <el-row>
867 631
             <el-col :span="8">
868 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 634
               </el-form-item>
874 635
             </el-col>
875 636
             <el-col :span="8">
876 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 639
               </el-form-item>
882 640
             </el-col>
883 641
             <el-col :span="8">
884 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 644
               </el-form-item>
890 645
             </el-col>
891 646
           </el-row>
892 647
           <el-row>
893 648
             <el-col :span="8">
894 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 651
               </el-form-item>
900 652
             </el-col>
901 653
             <el-col :span="8">
902 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 656
               </el-form-item>
908 657
             </el-col>
909 658
             <el-col :span="8">
910 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 661
               </el-form-item>
916 662
             </el-col>
917 663
           </el-row>
918 664
           <el-row>
919 665
             <el-col :span="8">
920 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 668
               </el-form-item>
926 669
             </el-col>
927 670
             <el-col :span="8">
928 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 673
               </el-form-item>
934 674
             </el-col>
935 675
           </el-row>

+ 236 - 302
src/xt_pages/management/components/RepairForm.vue Прегледај датотеку

@@ -1,7 +1,7 @@
1 1
 <template>
2 2
   <div>
3 3
     <el-row class="row">
4
-      <el-col :span="4">
4
+      <el-col :span="5">
5 5
         <span class="machineClass">机号:</span>
6 6
         <el-select style="width:100px" v-model="forms.bed">
7 7
           <el-option
@@ -12,7 +12,7 @@
12 12
           ></el-option>
13 13
         </el-select>
14 14
       </el-col>
15
-      <el-col :span="11">
15
+      <el-col :span="12">
16 16
         <span class="machineClass">日期查询:</span>
17 17
         <el-date-picker
18 18
           v-model="forms.start_time"
@@ -22,8 +22,7 @@
22 22
           format="yyyy-MM-dd"
23 23
           value-format="yyyy-MM-dd"
24 24
           style="width:150px"
25
-        ></el-date-picker
26
-        >-
25
+        ></el-date-picker>-
27 26
         <el-date-picker
28 27
           v-model="forms.end_time"
29 28
           prefix-icon="none"
@@ -38,13 +37,11 @@
38 37
         <el-button @click="queryRepair()">查询</el-button>
39 38
       </el-col>
40 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 43
       </el-col>
47
-      <el-col :span="2" class="a">
44
+      <el-col :span="2">
48 45
         <el-button size="small" @click="BatchDelete">批量删除</el-button>
49 46
       </el-col>
50 47
     </el-row>
@@ -52,121 +49,80 @@
52 49
       <el-table
53 50
         ref="multipleTable"
54 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 57
         :data="tableData"
57 58
         border
58 59
         fit
59 60
         highlight-current-row
60 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 64
         <el-table-column prop="date" label="机号" width="80" align="center">
68 65
           <template slot-scope="scope">{{ scope.row.bed_number }}</template>
69 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 70
             getTime(scope.row.guarantee_date)
78
-          }}</template>
71
+            }}
72
+          </template>
79 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 77
             getTimes(scope.row.start_time)
88
-          }}</template>
78
+            }}
79
+          </template>
89 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 84
             getTimes(scope.row.arrive_time)
98
-          }}</template>
85
+            }}
86
+          </template>
99 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 91
             getTimes(scope.row.finish_time)
108
-          }}</template>
92
+            }}
93
+          </template>
109 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 96
           <template slot-scope="scope">{{ scope.row.total_distance }}</template>
117 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 99
           <template slot-scope="scope">{{ scope.row.failure_stage }}</template>
125 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 104
             scope.row.code_information
134
-          }}</template>
105
+            }}
106
+          </template>
135 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 111
             scope.row.fault_description
144
-          }}</template>
112
+            }}
113
+          </template>
145 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 116
           <template slot-scope="scope">{{ scope.row.cause_analysis }}</template>
153 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 121
             scope.row.treatment_process
162
-          }}</template>
122
+            }}
123
+          </template>
163 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 126
           <template slot-scope="scope">{{ scope.row.exclude }}</template>
171 127
         </el-table-column>
172 128
         <el-table-column prop="address" label="原因" width="80" align="center">
@@ -174,12 +130,7 @@
174 130
         </el-table-column>
175 131
         <el-table-column label="操作" align="center" min-width="150px">
176 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 134
               <el-button
184 135
                 size="mini"
185 136
                 type="primary"
@@ -190,15 +141,10 @@
190 141
               ></el-button>
191 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 145
               <el-button
200 146
                 size="mini"
201
-                type="primary"
147
+                type="danger"
202 148
                 icon="el-icon-delete"
203 149
                 @click="DeleteRepairs(scope.row.id, scope.$index)"
204 150
               ></el-button>
@@ -219,12 +165,7 @@
219 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 169
       <el-form :model="guaForm" ref="guaForm" :rules="repirRules">
229 170
         <el-row>
230 171
           <el-col :span="8">
@@ -280,10 +221,7 @@
280 221
           </el-col>
281 222
           <el-col :span="8">
282 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 225
             </el-form-item>
288 226
           </el-col>
289 227
         </el-row>
@@ -296,8 +234,7 @@
296 234
                   :value="gender.id"
297 235
                   v-for="(gender, index) in faultPhase"
298 236
                   :key="index"
299
-                  >{{ gender.name }}</el-radio
300
-                >
237
+                >{{ gender.name }}</el-radio>
301 238
               </el-radio-group>
302 239
             </el-form-item>
303 240
           </el-col>
@@ -366,9 +303,9 @@
366 303
               </el-upload>
367 304
             </el-form-item>
368 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 309
             </a>
373 310
           </el-col>
374 311
         </el-row>
@@ -381,8 +318,7 @@
381 318
                   :value="gender.id"
382 319
                   v-for="(gender, index) in breakDown"
383 320
                   :key="index"
384
-                  >{{ gender.name }}</el-radio
385
-                >
321
+                >{{ gender.name }}</el-radio>
386 322
               </el-radio-group>
387 323
             </el-form-item>
388 324
           </el-col>
@@ -403,9 +339,7 @@
403 339
       </el-form>
404 340
       <span slot="footer" class="dialog-footer">
405 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 343
       </span>
410 344
     </el-dialog>
411 345
   </div>
@@ -420,141 +354,141 @@ import {
420 354
   DeleteRepair,
421 355
   queryRepair,
422 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 360
 export default {
427
-  name: 'RepairForm',
361
+  name: "RepairForm",
428 362
   data() {
429 363
     return {
430 364
       dialogVisible: false,
431 365
       selectCulture: [],
432 366
       forms: {
433
-        bed: '',
367
+        bed: "",
434 368
         sename: 1,
435
-        start_time: '',
436
-        end_time: ''
369
+        start_time: "",
370
+        end_time: ""
437 371
       },
438 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 389
       isIndeterminate: false,
456 390
       checkAllStatus: false,
457 391
       bedNumber: [],
458 392
       tableData: [],
459
-      qiniuDomain: 'https://images.shengws.com/',
460
-      uploadFileData: { token: '', key: '' },
393
+      qiniuDomain: "https://images.shengws.com/",
394
+      uploadFileData: { token: "", key: "" },
461 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 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 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 412
       limit: 10,
479 413
       page: 1,
480 414
       total: 0,
481
-      filename: ''
482
-    }
415
+      filename: ""
416
+    };
483 417
   },
484 418
   methods: {
485 419
     changeCheck() {
486
-      this.$refs.multipleTable.clearSelection()
420
+      this.$refs.multipleTable.clearSelection();
487 421
       if (this.checkAllStatus) {
488
-        this.$refs.multipleTable.toggleAllSelection()
422
+        this.$refs.multipleTable.toggleAllSelection();
489 423
       }
490 424
     },
491 425
     getAllSubregion() {
492 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 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 437
     handleSelectionChange(val) {
504
-      this.selectCulture = val
438
+      this.selectCulture = val;
505 439
     },
506 440
     getAllRepair() {
507 441
       getAllRepair(this.limit, this.page).then(response => {
508 442
         if (response.data.state === 1) {
509
-          var repair = response.data.data.repair
443
+          var repair = response.data.data.repair;
510 444
           // console.log('repair是', repair)
511 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 448
           for (let index = 0; index < repair.length; index++) {
515 449
             if (repair[index].failure_stage === 0) {
516
-              repair[index].failure_stage = ''
450
+              repair[index].failure_stage = "";
517 451
             }
518 452
 
519 453
             if (repair[index].failure_stage === 1) {
520
-              repair[index].failure_stage = '开机启动'
454
+              repair[index].failure_stage = "开机启动";
521 455
             }
522 456
             if (repair[index].failure_stage === 2) {
523
-              repair[index].failure_stage = '自检'
457
+              repair[index].failure_stage = "自检";
524 458
             }
525 459
             if (repair[index].failure_stage === 3) {
526
-              repair[index].failure_stage = '准备'
460
+              repair[index].failure_stage = "准备";
527 461
             }
528 462
             if (repair[index].failure_stage === 4) {
529
-              repair[index].failure_stage = '治疗'
463
+              repair[index].failure_stage = "治疗";
530 464
             }
531 465
             if (repair[index].failure_stage === 5) {
532
-              repair[index].failure_stage = '消毒'
466
+              repair[index].failure_stage = "消毒";
533 467
             }
534 468
 
535 469
             if (repair[index].exclude === 0) {
536
-              repair[index].exclude = ''
470
+              repair[index].exclude = "";
537 471
             }
538 472
 
539 473
             if (repair[index].exclude === 1) {
540
-              repair[index].exclude = '是'
474
+              repair[index].exclude = "是";
541 475
             }
542 476
             if (repair[index].exclude === 2) {
543
-              repair[index].exclude = '待观察'
477
+              repair[index].exclude = "待观察";
544 478
             }
545 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 487
     getTime(time) {
554
-      return uParseTime(time, '{y}-{m}-{d}')
488
+      return uParseTime(time, "{y}-{m}-{d}");
555 489
     },
556 490
     getTimes(time) {
557
-      return uParseTime(time, '{y}-{m}-{d} {h}:{i}')
491
+      return uParseTime(time, "{y}-{m}-{d} {h}:{i}");
558 492
     },
559 493
     handleExceed(file) {
560 494
       // console.log(file)
@@ -563,62 +497,62 @@ export default {
563 497
       // console.log(file)
564 498
     },
565 499
     EditRepair(id) {
566
-      this.dialogVisible = true
500
+      this.dialogVisible = true;
567 501
       EditRepair(id).then(response => {
568 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 505
           this.guaForm.guarantee_date = uParseTime(
572 506
             repair.guarantee_date,
573
-            '{y}-{m}-{d}'
574
-          )
507
+            "{y}-{m}-{d}"
508
+          );
575 509
           this.guaForm.start_time = uParseTime(
576 510
             repair.start_time,
577
-            '{y}-{m}-{d} {h}:{i}'
578
-          )
511
+            "{y}-{m}-{d} {h}:{i}"
512
+          );
579 513
           this.guaForm.arrive_time = uParseTime(
580 514
             repair.arrive_time,
581
-            '{y}-{m}-{d} {h}:{i}'
582
-          )
515
+            "{y}-{m}-{d} {h}:{i}"
516
+          );
583 517
           this.guaForm.finish_time = uParseTime(
584 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 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 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 547
       // console.log('视频大小', file.size / 1024 / 1024)
614 548
       // console.log('isLt2M是什么', isLt2M)
615 549
 
616 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 556
       var key =
623 557
         date.getFullYear() +
624 558
         (date.getMonth() + 1) +
@@ -626,104 +560,104 @@ export default {
626 560
         date.getHours() +
627 561
         date.getMinutes() +
628 562
         date.getSeconds() +
629
-        '_o_' +
563
+        "_o_" +
630 564
         file.uid +
631
-        '.' +
632
-        ext
633
-      const _self = this
565
+        "." +
566
+        ext;
567
+      const _self = this;
634 568
       return new Promise((resolve, reject) => {
635 569
         // eslint-disable-next-line no-undef
636 570
         getToken()
637 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 578
           // eslint-disable-next-line handle-callback-err
645 579
           .catch(err => {
646
-            reject(false)
647
-          })
648
-      })
580
+            reject(false);
581
+          });
582
+      });
649 583
     },
650 584
     toLink() {
651
-      window.location.href = this.guaForm.images
585
+      window.location.href = this.guaForm.images;
652 586
     },
653 587
     UpdateRepair(formName) {
654 588
       this.$refs[formName].validate(valid => {
655 589
         this.guaForm.start_time = uParseTime(
656 590
           this.guaForm.start_time,
657
-          '{y}-{m}-{d} {h}:{i}'
658
-        )
591
+          "{y}-{m}-{d} {h}:{i}"
592
+        );
659 593
         this.guaForm.arrive_time = uParseTime(
660 594
           this.guaForm.arrive_time,
661
-          '{y}-{m}-{d} {h}:{i}'
662
-        )
595
+          "{y}-{m}-{d} {h}:{i}"
596
+        );
663 597
         this.guaForm.finish_time = uParseTime(
664 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 616
         if (valid) {
683 617
           UpdateRepair(this.guaForm).then(response => {
684 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 627
     BatchDelete() {
694 628
       if (this.selectCulture.length == 0) {
695
-        this.$message.error('请选择要删除的信息')
696
-        return false
629
+        this.$message.error("请选择要删除的信息");
630
+        return false;
697 631
       }
698 632
       this.$confirm(
699
-        '确认要删除所选记录吗? <br>删除后,信息将无法恢复',
700
-        '删除提示',
633
+        "确认要删除所选记录吗? <br>删除后,信息将无法恢复",
634
+        "删除提示",
701 635
         {
702 636
           dangerouslyUseHTMLString: true,
703
-          confirmButtonText: '确定',
704
-          cancelButtonText: '取消',
705
-          type: 'warning'
637
+          confirmButtonText: "确定",
638
+          cancelButtonText: "取消",
639
+          type: "warning"
706 640
         }
707 641
       ).then(() => {
708
-        var ids = []
709
-        var idMap = {}
642
+        var ids = [];
643
+        var idMap = {};
710 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 648
         DeleteRepair({ ids: ids }).then(response => {
715 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 652
             for (let index = planDataLength - 1; index >= 0; index--) {
719 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 662
     queryRepair() {
729 663
       queryRepair(
@@ -732,48 +666,48 @@ export default {
732 666
         this.forms.end_time
733 667
       ).then(response => {
734 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 674
     handleSizeChange(limit) {
741
-      this.limit = limit
742
-      this.getAllRepair()
675
+      this.limit = limit;
676
+      this.getAllRepair();
743 677
     },
744 678
     handleCurrentChange(page) {
745
-      this.page = page
746
-      this.getAllRepair()
679
+      this.page = page;
680
+      this.getAllRepair();
747 681
     },
748 682
     DeleteRepairs(id, index) {
749 683
       this.$confirm(
750
-        '确认要删除所选记录吗? <br>删除后,信息将无法恢复',
751
-        '删除提示',
684
+        "确认要删除所选记录吗? <br>删除后,信息将无法恢复",
685
+        "删除提示",
752 686
         {
753 687
           dangerouslyUseHTMLString: true,
754
-          confirmButtonText: '确定',
755
-          cancelButtonText: '取消',
756
-          type: 'warning'
688
+          confirmButtonText: "确定",
689
+          cancelButtonText: "取消",
690
+          type: "warning"
757 691
         }
758 692
       ).then(() => {
759 693
         DeleteRepairs(id, index).then(response => {
760 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 702
   created() {
769
-    this.getAllSubregion()
770
-    this.getAllRepair()
703
+    this.getAllSubregion();
704
+    this.getAllRepair();
771 705
   }
772
-}
706
+};
773 707
 </script>
774 708
 
775 709
 <style scoped>
776
-  .row{
777
-    margin-bottom:10px;
778
-  }
710
+.row {
711
+  margin-bottom: 10px;
712
+}
779 713
 </style>

+ 68 - 190
src/xt_pages/management/components/UserForm.vue Прегледај датотеку

@@ -11,8 +11,7 @@
11 11
           format="yyyy-MM-dd"
12 12
           value-format="yyyy-MM-dd"
13 13
           style="width:145px"
14
-        ></el-date-picker
15
-        >-
14
+        ></el-date-picker>-
16 15
         <el-date-picker
17 16
           v-model="form.end_time"
18 17
           prefix-icon="none"
@@ -23,20 +22,15 @@
23 22
           style="width:145px"
24 23
         ></el-date-picker>
25 24
       </el-col>
26
-      <el-col :span="4">
25
+      <el-col :span="5">
27 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 29
         </el-select>
36 30
       </el-col>
37
-      <el-col :span="4">
31
+      <el-col :span="6">
38 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 34
           <el-option
41 35
             v-for="item in this.bedNumberTwo"
42 36
             :key="item.id"
@@ -45,23 +39,22 @@
45 39
           ></el-option>
46 40
         </el-select>
47 41
       </el-col>
48
-      <el-col :span="5">
42
+      <el-col :span="2">
49 43
         <el-button @click="queryInfo()">查询</el-button>
50 44
       </el-col>
51 45
     </el-row>
52
-    <el-row :span="24">
46
+    <el-row :span="24" style="display: flex;align-items: center;">
53 47
       <el-col :span="2">
54 48
         <el-checkbox
55 49
           :indeterminate="isIndeterminate"
56 50
           v-model="checkAllStatus"
57 51
           @change="changeCheck"
58
-          >全选</el-checkbox
59
-        >
52
+        >全选</el-checkbox>
60 53
       </el-col>
61 54
       <el-col :span="3">
62 55
         <el-button size="small" @click="BatchDelete">批量删除</el-button>
63 56
       </el-col>
64
-      <el-col :span="6" class="a">
57
+      <el-col :span="6">
65 58
         <el-button @click="printCard">打印</el-button>
66 59
       </el-col>
67 60
     </el-row>
@@ -69,18 +62,18 @@
69 62
       <el-table
70 63
         ref="multipleTable"
71 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 70
         :data="tableData"
74 71
         border
75 72
         fit
76 73
         highlight-current-row
77 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 77
         <el-table-column label="机号" align="center" width="50">
85 78
           <template slot-scope="scope">{{ scope.row.bed }}</template>
86 79
         </el-table-column>
@@ -104,22 +97,16 @@
104 97
         </el-table-column>
105 98
         <el-table-column label="机表消毒" align="center" min-width="110px">
106 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 101
           </el-table-column>
111 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 104
           </el-table-column>
116 105
           <el-table-column label="消毒状态" align="center" min-width="110px">
117 106
             <template slot-scope="scope">{{ scope.row.disinfection }}</template>
118 107
           </el-table-column>
119 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 110
           </el-table-column>
124 111
         </el-table-column>
125 112
         <el-table-column label="液路消毒" align="center" min-width="110px">
@@ -129,56 +116,30 @@
129 116
           <el-table-column label="消毒液" align="center" min-width="110px">
130 117
             <template slot-scope="scope">{{ scope.row.disinfectant }}</template>
131 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 120
             <template slot-scope="scope">
147
-              {{ getTimes(scope.row.disinfec_endtime) }}
121
+              {{
122
+              getTimes(scope.row.disinfec_startime)
123
+              }}
148 124
             </template>
149 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 130
             <template slot-scope="scope">{{ scope.row.long_time }}</template>
156 131
           </el-table-column>
157 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 134
           </el-table-column>
162 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 137
           </el-table-column>
167 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 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 143
           <template slot-scope="scope">{{ scope.row.germ_checked }}</template>
183 144
         </el-table-column>
184 145
         <el-table-column label="空气滤网" align="center" min-width="110px">
@@ -189,12 +150,7 @@
189 150
         </el-table-column>
190 151
         <el-table-column label="操作" align="center" min-width="150px">
191 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 154
               <el-button
199 155
                 size="mini"
200 156
                 type="primary"
@@ -205,15 +161,10 @@
205 161
               ></el-button>
206 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 165
               <el-button
215 166
                 size="mini"
216
-                type="primary"
167
+                type="danger"
217 168
                 icon="el-icon-delete"
218 169
                 @click="DeleteUserLogin(scope.row.id, scope.$index)"
219 170
               ></el-button>
@@ -233,12 +184,7 @@
233 184
       ></el-pagination>
234 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 188
       <el-form :model="userform" ref="userform">
243 189
         <el-row>
244 190
           <el-col :span="8">
@@ -256,11 +202,7 @@
256 202
           </el-col>
257 203
           <el-col :span="8">
258 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 206
                 <el-option
265 207
                   v-for="item in classType"
266 208
                   :key="item.id"
@@ -274,12 +216,7 @@
274 216
           <el-col :span="8">
275 217
             <el-form-item label="分区:">
276 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 220
               </el-select>
284 221
             </el-form-item>
285 222
           </el-col>
@@ -306,7 +243,7 @@
306 243
                 placeholder="请输入内容"
307 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 247
                 <template slot-scope="{ item }">
311 248
                   <span class="addr">{{ item.name }}</span>
312 249
                 </template>
@@ -333,22 +270,14 @@
333 270
           </el-col>
334 271
           <el-col :span="8">
335 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 274
             </el-form-item>
342 275
           </el-col>
343 276
         </el-row>
344 277
         <el-row>
345 278
           <el-col :span="8">
346 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 281
                 <el-option
353 282
                   v-for="item in treatmode"
354 283
                   :key="item.id"
@@ -386,44 +315,29 @@
386 315
         <el-row>
387 316
           <el-col :span="8">
388 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 319
             </el-form-item>
394 320
           </el-col>
395 321
           <el-col :span="8">
396 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 324
             </el-form-item>
402 325
           </el-col>
403 326
           <el-col :span="8">
404 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 329
             </el-form-item>
410 330
           </el-col>
411 331
         </el-row>
412 332
         <el-row>
413 333
           <el-col :span="8">
414 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 336
             </el-form-item>
420 337
           </el-col>
421 338
           <el-col :span="8">
422 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 341
             </el-form-item>
428 342
           </el-col>
429 343
           <el-col :span="8">
@@ -434,8 +348,7 @@
434 348
                   :value="gender.id"
435 349
                   v-for="(gender, index) in runOption"
436 350
                   :key="index"
437
-                  >{{ gender.name }}</el-radio
438
-                >
351
+                >{{ gender.name }}</el-radio>
439 352
               </el-radio-group>
440 353
             </el-form-item>
441 354
           </el-col>
@@ -449,8 +362,7 @@
449 362
                   :value="gender.id"
450 363
                   v-for="(gender, index) in faultPhase"
451 364
                   :key="index"
452
-                  >{{ gender.name }}</el-radio
453
-                >
365
+                >{{ gender.name }}</el-radio>
454 366
               </el-radio-group>
455 367
             </el-form-item>
456 368
           </el-col>
@@ -458,20 +370,14 @@
458 370
         <el-row>
459 371
           <el-col :span="24">
460 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 374
             </el-form-item>
466 375
           </el-col>
467 376
         </el-row>
468 377
         <el-row>
469 378
           <el-col :span="24">
470 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 381
             </el-form-item>
476 382
           </el-col>
477 383
         </el-row>
@@ -497,10 +403,7 @@
497 403
           </el-col>
498 404
           <el-col :span="8">
499 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 407
                 <el-option
505 408
                   v-for="item in disinfectantType"
506 409
                   :key="item.id"
@@ -534,8 +437,7 @@
534 437
                   :value="gender.id"
535 438
                   v-for="(gender, index) in runOptions"
536 439
                   :key="index"
537
-                  >{{ gender.name }}</el-radio
538
-                >
440
+                >{{ gender.name }}</el-radio>
539 441
               </el-radio-group>
540 442
             </el-form-item>
541 443
           </el-col>
@@ -574,10 +476,7 @@
574 476
         <el-row>
575 477
           <el-col :span="8">
576 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 480
                 <el-option
582 481
                   v-for="item in disinfection"
583 482
                   :key="item.id"
@@ -596,8 +495,7 @@
596 495
                   :value="gender.id"
597 496
                   v-for="(gender, index) in Disinfectant"
598 497
                   :key="index"
599
-                  >{{ gender.name }}</el-radio
600
-                >
498
+                >{{ gender.name }}</el-radio>
601 499
               </el-radio-group>
602 500
             </el-form-item>
603 501
           </el-col>
@@ -605,11 +503,7 @@
605 503
         <el-row>
606 504
           <el-col :span="8">
607 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 507
             </el-form-item>
614 508
           </el-col>
615 509
           <el-col :span="8">
@@ -659,12 +553,9 @@
659 553
           </el-col>
660 554
           <el-col :span="6">
661 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 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 559
           </el-col>
669 560
         </el-row>
670 561
         <el-row>
@@ -676,8 +567,7 @@
676 567
                   :value="gender.id"
677 568
                   v-for="(gender, index) in potency"
678 569
                   :key="index"
679
-                  >{{ gender.name }}</el-radio
680
-                >
570
+                >{{ gender.name }}</el-radio>
681 571
               </el-radio-group>
682 572
             </el-form-item>
683 573
           </el-col>
@@ -688,9 +578,7 @@
688 578
           </el-col>
689 579
           <el-col :span="7">
690 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 582
           </el-col>
695 583
           <el-col :span="8">
696 584
             <el-form-item label="名称:">
@@ -707,11 +595,7 @@
707 595
           </el-col>
708 596
           <el-col :span="6">
709 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 599
             </el-form-item>
716 600
           </el-col>
717 601
         </el-row>
@@ -721,9 +605,7 @@
721 605
           </el-col>
722 606
           <el-col :span="10">
723 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 609
           </el-col>
728 610
           <el-col :span="10">
729 611
             <el-form-item label="签名:">
@@ -742,9 +624,7 @@
742 624
       </el-form>
743 625
       <span slot="footer" class="dialog-footer">
744 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 628
       </span>
749 629
     </el-dialog>
750 630
 
@@ -756,12 +636,7 @@
756 636
           </div>
757 637
           <div>
758 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 640
               <tr>
766 641
                 <th :rowspan="2">机号</th>
767 642
                 <th :rowspan="2">日期</th>
@@ -2225,10 +2100,10 @@ export default {
2225 2100
 </script>
2226 2101
 <style scoped>
2227 2102
 .a {
2228
-  .el-col-2 {
2103
+  /* .el-col-2 {
2229 2104
     width: 8.33333%;
2230 2105
     margin-bottom: 20px;
2231
-  }
2106
+  } */
2232 2107
 }
2233 2108
 .print_main_content {
2234 2109
   background-color: white;
@@ -2243,5 +2118,8 @@ export default {
2243 2118
 }
2244 2119
 .c {
2245 2120
   margin-bottom: 10px;
2121
+  .el-input--prefix .el-input__inner {
2122
+    margin-left: 15px;
2123
+  }
2246 2124
 }
2247 2125
 </style>

Разлика између датотеке није приказан због своје велике величине
+ 206 - 150
src/xt_pages/management/home.vue