Pārlūkot izejas kodu

设备管理更新代码

XMLWAN 5 gadus atpakaļ
vecāks
revīzija
f49bd4847c

+ 211 - 213
src/api/manage.js Parādīt failu

@@ -1,20 +1,20 @@
1
-import request from "@/utils/request";
1
+import request from '@/utils/request'
2 2
 
3 3
 export function getAllSubregion(params) {
4 4
   return request({
5
-    url: "/api/management/getallsubregion",
6
-    method: "Get",
5
+    url: '/api/management/getallsubregion',
6
+    method: 'Get',
7 7
     params: params
8
-  });
8
+  })
9 9
 }
10 10
 
11 11
 export function SaveManageInfo(data) {
12
-  console.log("data是什么", data);
12
+  console.log('data是什么', data)
13 13
   return request({
14
-    url: "/api/management/savemanageinfo",
15
-    method: "Post",
14
+    url: '/api/management/savemanageinfo',
15
+    method: 'Post',
16 16
     data: data
17
-  });
17
+  })
18 18
 }
19 19
 
20 20
 export function getAllMachineInfo(
@@ -25,12 +25,12 @@ export function getAllMachineInfo(
25 25
   equipmentid,
26 26
   statusid
27 27
 ) {
28
-  console.log("page", page);
29
-  console.log("limit", limit);
30
-  console.log("zoneid", zoneid);
31
-  console.log("equipmentid", equipmentid);
32
-  console.log("statusid", statusid);
33
-  console.log("seacherkey", searchKey);
28
+  console.log('page', page)
29
+  console.log('limit', limit)
30
+  console.log('zoneid', zoneid)
31
+  console.log('equipmentid', equipmentid)
32
+  console.log('statusid', statusid)
33
+  console.log('seacherkey', searchKey)
34 34
   const params = {
35 35
     page: page,
36 36
     limit: limit,
@@ -38,318 +38,310 @@ export function getAllMachineInfo(
38 38
     zoneid: zoneid,
39 39
     equipmentid: equipmentid,
40 40
     statusid: statusid
41
-  };
41
+  }
42 42
   return request({
43
-    url: "/api/management/getallmachineinfo",
44
-    method: "Get",
43
+    url: '/api/management/getallmachineinfo',
44
+    method: 'Get',
45 45
     params: params
46
-  });
46
+  })
47 47
 }
48 48
 
49 49
 export function getAllMachine(zoneid, classid, deviceid) {
50
-  console.log("zoneid", zoneid);
51
-  console.log("classid", classid);
52
-  console.log("deviceid", deviceid);
50
+  console.log('zoneid', zoneid)
51
+  console.log('classid', classid)
52
+  console.log('deviceid', deviceid)
53 53
   const params = {
54 54
     zoneid: zoneid,
55 55
     classid: classid,
56 56
     deviceid: deviceid
57
-  };
57
+  }
58 58
   return request({
59
-    url: "/api/management/getallmachine",
60
-    method: "Get",
59
+    url: '/api/management/getallmachine',
60
+    method: 'Get',
61 61
     params: params
62
-  });
62
+  })
63 63
 }
64 64
 
65 65
 export function getMachineDetailById(id, params) {
66
-  console.log("id是神m", id);
67 66
   return request({
68
-    url: "/api/management/getmachinedetail?id=" + id,
69
-    method: "Get",
67
+    url: '/api/management/getmachinedetail?id=' + id,
68
+    method: 'Get',
70 69
     params: params
71
-  });
70
+  })
72 71
 }
73 72
 
74 73
 export function UpdateMachineInfo(data) {
75
-  console.log("data..", data);
76 74
   return request({
77
-    url: "/api/management/updatemachineinfo",
78
-    method: "Post",
75
+    url: '/api/management/updatemachineinfo',
76
+    method: 'Post',
79 77
     data: data
80
-  });
78
+  })
81 79
 }
82 80
 
83
-export function UpdateMachineInfoTwo(data){
84
-   return request({
85
-     url:"/api/management/updatemachineinfotwo",
86
-     method:"post",
87
-     data:data,
88
-   })
81
+export function UpdateMachineInfoTwo(data) {
82
+  return request({
83
+    url: '/api/management/updatemachineinfotwo',
84
+    method: 'post',
85
+    data: data
86
+  })
89 87
 }
90 88
 
91 89
 export function getAllEquimentName(params) {
92 90
   return request({
93
-    url: "/api/management/getallequimentname",
94
-    method: "Get",
91
+    url: '/api/management/getallequimentname',
92
+    method: 'Get',
95 93
     params: params
96
-  });
94
+  })
97 95
 }
98 96
 
99 97
 export function savePlan(data, id) {
100
-  console.log("data是什么", data);
101
-  console.log("id", id);
102 98
   return request({
103
-    url: "/api/management/saveplan?id=" + id,
104
-    method: "Post",
99
+    url: '/api/management/saveplan?id=' + id,
100
+    method: 'Post',
105 101
     data: data
106
-  });
102
+  })
107 103
 }
108 104
 
109 105
 export function getAllPlan(params) {
110 106
   return request({
111
-    url: "/api/management/getallplan",
112
-    method: "Get",
107
+    url: '/api/management/getallplan',
108
+    method: 'Get',
113 109
     params: params
114
-  });
110
+  })
115 111
 }
116 112
 
117 113
 export function getAllPlanDetail(id, params) {
118 114
   return request({
119
-    url: "/api/management/getallplandetail?id=" + id,
120
-    method: "Get",
115
+    url: '/api/management/getallplandetail?id=' + id,
116
+    method: 'Get',
121 117
     params: params
122
-  });
118
+  })
123 119
 }
124 120
 
125 121
 export function getEditMachine(id, params) {
126 122
   return request({
127
-    url: "/api/management/geteditmachine?id=" + id,
128
-    method: "Get",
123
+    url: '/api/management/geteditmachine?id=' + id,
124
+    method: 'Get',
129 125
     params: params
130
-  });
126
+  })
131 127
 }
132 128
 
133 129
 export function DeletePlans(data) {
134 130
   return request({
135
-    url: "/api/staff/deleteplans",
136
-    method: "delete",
131
+    url: '/api/staff/deleteplans',
132
+    method: 'delete',
137 133
     data: data
138
-  });
134
+  })
139 135
 }
140 136
 
141 137
 export function EditPlanDetail(id, params) {
142 138
   return request({
143
-    url: "/api/manage/editplandetail?id=" + id,
144
-    method: "get",
139
+    url: '/api/manage/editplandetail?id=' + id,
140
+    method: 'get',
145 141
     params: params
146
-  });
142
+  })
147 143
 }
148 144
 
149 145
 export function UpdatePlanInfo(data) {
150 146
   return request({
151
-    url: "/api/manage/updateplaninfo",
152
-    method: "Post",
147
+    url: '/api/manage/updateplaninfo',
148
+    method: 'Post',
153 149
     data: data
154
-  });
150
+  })
155 151
 }
156 152
 
157 153
 export function getComprehensive(params) {
158 154
   return request({
159
-    url: "/api/manage/getcomprehensive",
160
-    method: "Get",
155
+    url: '/api/manage/getcomprehensive',
156
+    method: 'Get',
161 157
     params: params
162
-  });
158
+  })
163 159
 }
164 160
 
165 161
 export function SaveInformation(id, data) {
162
+  console.log('data', data)
166 163
   return request({
167
-    url: "/api/manage/saveinformation?id=" + id,
168
-    method: "Post",
164
+    url: '/api/manage/saveinformation?id=' + id,
165
+    method: 'Post',
169 166
     data: data
170
-  });
167
+  })
171 168
 }
172 169
 
173 170
 export function getPatientInfo(id, params) {
174 171
   return request({
175
-    url: "/api/manage/getpatientinfo?id=" + id,
176
-    method: "Get",
172
+    url: '/api/manage/getpatientinfo?id=' + id,
173
+    method: 'Get',
177 174
     params: params
178
-  });
175
+  })
179 176
 }
180 177
 
181 178
 export function ChangeClass(equitid, id) {
182 179
   const params = {
183 180
     equitid: equitid,
184 181
     id: id
185
-  };
182
+  }
186 183
   return request({
187
-    url: "/api/manage/changeclass",
188
-    method: "Get",
184
+    url: '/api/manage/changeclass',
185
+    method: 'Get',
189 186
     params: params
190
-  });
187
+  })
191 188
 }
192 189
 
193 190
 export function changePatient(equitid, id) {
194
-  console.log("equitid", equitid);
195
-  console.log("id", id);
196 191
   const params = {
197 192
     equitid: equitid,
198 193
     id: id
199
-  };
194
+  }
200 195
   return request({
201
-    url: "/api/manage/changepatient",
202
-    method: "Get",
196
+    url: '/api/manage/changepatient',
197
+    method: 'Get',
203 198
     params: params
204
-  });
199
+  })
205 200
 }
206 201
 
207 202
 export function getAllOrganization(params) {
208 203
   return request({
209
-    url: "/api/manage/getallorganization",
210
-    method: "Get",
204
+    url: '/api/manage/getallorganization',
205
+    method: 'Get',
211 206
     params: params
212
-  });
207
+  })
213 208
 }
214 209
 
215 210
 export function getUserRegister(id, params) {
211
+  console.log('id是什么================', id)
216 212
   return request({
217
-    url: "/api/manage/getregisterinfo?id=" + id,
218
-    method: "Get",
213
+    url: '/api/manage/getregisterinfo?id=' + id,
214
+    method: 'Get',
219 215
     params: params
220
-  });
216
+  })
221 217
 }
222 218
 
223 219
 export function getInformationData(limit, page) {
224 220
   const params = {
225 221
     limit: limit,
226 222
     page: page
227
-  };
228
-  console.log("params", params);
223
+  }
229 224
   return request({
230
-    url: "/api/manage/getinformationdata",
231
-    method: "Get",
225
+    url: '/api/manage/getinformationdata',
226
+    method: 'Get',
232 227
     params: params
233
-  });
228
+  })
234 229
 }
235 230
 
236 231
 export function SaveBacteria(id, data) {
237 232
   return request({
238
-    url: "/api/manage/savebacteria?id=" + id,
239
-    method: "Post",
233
+    url: '/api/manage/savebacteria?id=' + id,
234
+    method: 'Post',
240 235
     data: data
241
-  });
236
+  })
242 237
 }
243 238
 
244 239
 export function SaveLincomycin(id, data) {
245
-  console.log("data", data);
246 240
   return request({
247
-    url: "/api/manage/savelincomycin?id=" + id,
248
-    method: "Post",
241
+    url: '/api/manage/savelincomycin?id=' + id,
242
+    method: 'Post',
249 243
     data: data
250
-  });
244
+  })
251 245
 }
252 246
 
253 247
 export function SaveQualityControl(id, data) {
254
-  console.log("data", data);
255 248
   return request({
256
-    url: "/api/manage/savequalitycontrol?id=" + id,
257
-    method: "Post",
249
+    url: '/api/manage/savequalitycontrol?id=' + id,
250
+    method: 'Post',
258 251
     data: data
259
-  });
252
+  })
260 253
 }
261 254
 
262 255
 export function getOrgName(params) {
263 256
   return request({
264
-    url: "/api/manage/getorgname",
265
-    method: "Get",
257
+    url: '/api/manage/getorgname',
258
+    method: 'Get',
266 259
     params: params
267
-  });
260
+  })
268 261
 }
269 262
 
270 263
 export function getAllQulityInfo(params) {
271 264
   return request({
272
-    url: "/api/manage/getallqulityinfo",
273
-    method: "Get",
265
+    url: '/api/manage/getallqulityinfo',
266
+    method: 'Get',
274 267
     params: params
275
-  });
268
+  })
276 269
 }
277 270
 
278 271
 export function EditCulture(id, userid) {
279 272
   const params = {
280 273
     id: id,
281 274
     userid: userid
282
-  };
275
+  }
283 276
   return request({
284
-    url: "/api/manage/editculture",
285
-    method: "Get",
277
+    url: '/api/manage/editculture',
278
+    method: 'Get',
286 279
     params: params
287
-  });
280
+  })
288 281
 }
289 282
 
290 283
 export function UpdateCulture(data) {
291
-  console.log("data", data);
292 284
   return request({
293
-    url: "/api/manage/updateculture",
294
-    method: "Post",
285
+    url: '/api/manage/updateculture',
286
+    method: 'Post',
295 287
     data: data
296
-  });
288
+  })
297 289
 }
298 290
 
299 291
 export function DeleteCultrue(data) {
300 292
   return request({
301
-    url: "/api/manage/deletecultrue",
302
-    method: "delete",
293
+    url: '/api/manage/deletecultrue',
294
+    method: 'delete',
303 295
     data: data
304
-  });
296
+  })
305 297
 }
306 298
 
307 299
 export function EditDialyState(id, params) {
308 300
   return request({
309
-    url: "/api/manage/editdialystate?id=" + id,
310
-    method: "Get",
301
+    url: '/api/manage/editdialystate?id=' + id,
302
+    method: 'Get',
311 303
     params: params
312
-  });
304
+  })
313 305
 }
314 306
 
315 307
 export function UpdateDialyState(data) {
316 308
   return request({
317
-    url: "/api/manage/updatedialystate",
318
-    method: "post",
309
+    url: '/api/manage/updatedialystate',
310
+    method: 'post',
319 311
     data: data
320
-  });
312
+  })
321 313
 }
322 314
 
323 315
 export function DeleteDialystate(data) {
324 316
   return request({
325
-    url: "/api/manage/deletedialystate",
326
-    method: "delete",
317
+    url: '/api/manage/deletedialystate',
318
+    method: 'delete',
327 319
     data: data
328
-  });
320
+  })
329 321
 }
330 322
 
331 323
 export function EditIon(id, params) {
332 324
   return request({
333
-    url: "/api/manage/edition?id=" + id,
334
-    method: "Get",
325
+    url: '/api/manage/edition?id=' + id,
326
+    method: 'Get',
335 327
     params: params
336
-  });
328
+  })
337 329
 }
338 330
 
339 331
 export function UpdateIon(data) {
340 332
   return request({
341
-    url: "/api/manage/updateion",
342
-    method: "Post",
333
+    url: '/api/manage/updateion',
334
+    method: 'Post',
343 335
     data: data
344
-  });
336
+  })
345 337
 }
346 338
 
347 339
 export function DeleteIon(data) {
348 340
   return request({
349
-    url: "/api/manage/deleteion",
350
-    method: "delete",
341
+    url: '/api/manage/deleteion',
342
+    method: 'delete',
351 343
     data: data
352
-  });
344
+  })
353 345
 }
354 346
 
355 347
 export function queryTable(bedid, startime, endtime) {
@@ -357,53 +349,52 @@ export function queryTable(bedid, startime, endtime) {
357 349
     bedid: bedid,
358 350
     startime: startime,
359 351
     endtime: endtime
360
-  };
352
+  }
361 353
   return request({
362
-    url: "/api/manage/query",
363
-    method: "Get",
354
+    url: '/api/manage/query',
355
+    method: 'Get',
364 356
     params: params
365
-  });
357
+  })
366 358
 }
367 359
 
368 360
 export function SaveRepair(id, data) {
369
-  console.log("data", data);
370 361
   return request({
371
-    url: "/api/manage/saverepair?id=" + id,
372
-    method: "post",
362
+    url: '/api/manage/saverepair?id=' + id,
363
+    method: 'post',
373 364
     data: data
374
-  });
365
+  })
375 366
 }
376 367
 
377 368
 export function getAllRepair(params) {
378 369
   return request({
379
-    url: "/api/manage/getallrepair",
380
-    method: "Get",
370
+    url: '/api/manage/getallrepair',
371
+    method: 'Get',
381 372
     params: params
382
-  });
373
+  })
383 374
 }
384 375
 
385 376
 export function EditRepair(id, params) {
386 377
   return request({
387
-    url: "/api/manage/editrepair?id=" + id,
388
-    method: "Get",
378
+    url: '/api/manage/editrepair?id=' + id,
379
+    method: 'Get',
389 380
     params: params
390
-  });
381
+  })
391 382
 }
392 383
 
393 384
 export function UpdateRepair(data) {
394 385
   return request({
395
-    url: "/api/manage/updaterepair",
396
-    method: "Post",
386
+    url: '/api/manage/updaterepair',
387
+    method: 'Post',
397 388
     data: data
398
-  });
389
+  })
399 390
 }
400 391
 
401 392
 export function DeleteRepair(data) {
402 393
   return request({
403
-    url: "/api/manage/deleterepair",
404
-    method: "delete",
394
+    url: '/api/manage/deleterepair',
395
+    method: 'delete',
405 396
     data: data
406
-  });
397
+  })
407 398
 }
408 399
 
409 400
 export function queryRepair(bedid, startime, endtime) {
@@ -411,41 +402,41 @@ export function queryRepair(bedid, startime, endtime) {
411 402
     bedid: bedid,
412 403
     startime: startime,
413 404
     endtime: endtime
414
-  };
405
+  }
415 406
 
416 407
   return request({
417
-    url: "/api/manage/queryrepair",
418
-    method: "Get",
408
+    url: '/api/manage/queryrepair',
409
+    method: 'Get',
419 410
     params: params
420
-  });
411
+  })
421 412
 }
422 413
 
423 414
 export function EditUser(id, patientid) {
424 415
   const params = {
425 416
     id: id,
426 417
     patientid: patientid
427
-  };
418
+  }
428 419
   return request({
429
-    url: "/api/manage/edituser",
430
-    method: "Get",
420
+    url: '/api/manage/edituser',
421
+    method: 'Get',
431 422
     params: params
432
-  });
423
+  })
433 424
 }
434 425
 
435 426
 export function DeleteUserform(data) {
436 427
   return request({
437
-    url: "/api/manage/deleteform",
438
-    method: "delete",
428
+    url: '/api/manage/deleteform',
429
+    method: 'delete',
439 430
     data: data
440
-  });
431
+  })
441 432
 }
442 433
 
443 434
 export function UpdateForm(data) {
444 435
   return request({
445
-    url: "/api/manage/updateform",
446
-    method: "post",
436
+    url: '/api/manage/updateform',
437
+    method: 'post',
447 438
     data: data
448
-  });
439
+  })
449 440
 }
450 441
 
451 442
 export function queryInfo(zone, bed, startime, endtime, limit, page) {
@@ -456,29 +447,29 @@ export function queryInfo(zone, bed, startime, endtime, limit, page) {
456 447
     endtime: endtime,
457 448
     limit: limit,
458 449
     page: page
459
-  };
460
-
450
+  }
451
+  console.log("params",params)
461 452
   return request({
462
-    url: "/api/manage/queryinfo",
463
-    method: "Get",
453
+    url: '/api/manage/queryinfo',
454
+    method: 'Get',
464 455
     params: params
465
-  });
456
+  })
466 457
 }
467 458
 
468 459
 export function getAutoData(id, params) {
469 460
   return request({
470
-    url: "/api/manage/insertautodata?id=" + id,
471
-    method: "Get",
461
+    url: '/api/manage/insertautodata?id=' + id,
462
+    method: 'Get',
472 463
     params: params
473
-  });
464
+  })
474 465
 }
475 466
 
476 467
 export function getAllEquitType(params) {
477 468
   return request({
478
-    url: "/api/manage/getallequittype",
479
-    method: "Get",
469
+    url: '/api/manage/getallequittype',
470
+    method: 'Get',
480 471
     params: params
481
-  });
472
+  })
482 473
 }
483 474
 
484 475
 export function getUserForm(id, limit, page) {
@@ -486,59 +477,66 @@ export function getUserForm(id, limit, page) {
486 477
     id: id,
487 478
     limit: limit,
488 479
     page: page
489
-  };
480
+  }
490 481
   return request({
491
-    url: "/api/manage/getuserform",
492
-    method: "Get",
482
+    url: '/api/manage/getuserform',
483
+    method: 'Get',
493 484
     params: params
494
-  });
485
+  })
495 486
 }
496 487
 
497 488
 export function UpdateMacheineTwo(data) {
498 489
   return request({
499
-    url: "/api/manage/updatemacheinettwo",
500
-    method: "post",
490
+    url: '/api/manage/updatemacheinettwo',
491
+    method: 'post',
501 492
     data: data
502
-  });
493
+  })
503 494
 }
504 495
 
505 496
 export function getBedForm(id, params) {
506 497
   return request({
507
-    url: "/api/manage/getbedform?id=" + id,
508
-    method: "get",
498
+    url: '/api/manage/getbedform?id=' + id,
499
+    method: 'get',
509 500
     params: params
510
-  });
501
+  })
511 502
 }
512 503
 
513 504
 export function getTotalCount(params) {
514 505
   return request({
515
-    url: "/api/manage/gettotalcount",
516
-    method: "Get",
506
+    url: '/api/manage/gettotalcount',
507
+    method: 'Get',
517 508
     params: params
518
-  });
509
+  })
519 510
 }
520 511
 
521 512
 export function getTotalNumber(id, params) {
522 513
   return request({
523
-    url: "/api/manage/getotalnumber?id=" + id,
524
-    method: "Get",
514
+    url: '/api/manage/getotalnumber?id=' + id,
515
+    method: 'Get',
525 516
     params: params
526
-  });
517
+  })
527 518
 }
528 519
 
529 520
 export function getTimeWarning(id, params) {
530 521
   return request({
531
-    url: "/api/manage/gettimewarning?id=" + id,
532
-    method: "Get",
522
+    url: '/api/manage/gettimewarning?id=' + id,
523
+    method: 'Get',
533 524
     params: params
534
-  });
525
+  })
526
+}
527
+
528
+export function SaveManageInfoTwo(data) {
529
+  return request({
530
+    url: '/api/manage/savemanageinfotwo',
531
+    method: 'post',
532
+    data: data
533
+  })
535 534
 }
536 535
 
537
-export function SaveManageInfoTwo(data){
538
-    console.log("12电",data)
539
-    return request({
540
-      url:"/api/manage/savemanageinfotwo",
541
-      method:"post",
542
-      data:data,
543
-    })
544
-}
536
+export function getAllpatient(params) {
537
+  return request({
538
+    url: '/api/manage/getallpatient',
539
+    method: 'get',
540
+    params: params
541
+  })
542
+}

+ 18 - 6
src/xt_pages/management/components/EditMachineForm.vue Parādīt failu

@@ -1,6 +1,11 @@
1 1
 <template>
2 2
   <div id="edit-machine-form">
3
-    <el-dialog title="编辑消毒计划" :visible.sync="dialogVisible" width="44%" center>
3
+    <el-dialog
4
+      title="编辑消毒计划"
5
+      :visible.sync="dialogVisible"
6
+      width="44%"
7
+      center
8
+    >
4 9
       <el-form :model="form" ref="form">
5 10
         <el-row>
6 11
           <el-col :span="10">
@@ -17,7 +22,10 @@
17 22
           </el-col>
18 23
           <el-col :span="10">
19 24
             <el-form-item label="消毒时长:">
20
-              <el-input style="width:135px" v-model="form.disinfec_time"></el-input>
25
+              <el-input
26
+                style="width:135px"
27
+                v-model="form.disinfec_time"
28
+              ></el-input>
21 29
               <span>分钟</span>
22 30
             </el-form-item>
23 31
           </el-col>
@@ -121,7 +129,9 @@
121 129
       </el-form>
122 130
       <span slot="footer" class="dialog-footer">
123 131
         <el-button @click="dialogVisible = false">取 消</el-button>
124
-        <el-button type="primary" @click="dialogVisible = false">确 定</el-button>
132
+        <el-button type="primary" @click="dialogVisible = false"
133
+          >确 定</el-button
134
+        >
125 135
       </span>
126 136
     </el-dialog>
127 137
   </div>
@@ -171,7 +181,10 @@ export default {
171 181
         { id: 3, name: "晚上" }
172 182
       ],
173 183
       // 基表消毒方式
174
-      disinfectType: [{ id: 1, name: "擦拭" }, { id: 2, name: "化学消毒" }],
184
+      disinfectType: [
185
+        { id: 1, name: "擦拭" },
186
+        { id: 2, name: "化学消毒" }
187
+      ],
175 188
       // 基表消毒液
176 189
       disinfectantType: [
177 190
         { id: 1, name: "0.22%季铵盐" },
@@ -239,5 +252,4 @@ export default {
239 252
 };
240 253
 </script>
241 254
 
242
-<style scoped>
243
-</style>
255
+<style scoped></style>

+ 5 - 2
src/xt_pages/management/components/PlanForm.vue Parādīt failu

@@ -210,7 +210,8 @@ export default {
210 210
         { id: 9, name: "5%次氯酸钠" }
211 211
       ],
212 212
       DeviceType: [],
213
-      planid: 0
213
+      planid: 0,
214
+      plandata: 0
214 215
     };
215 216
   },
216 217
   methods: {
@@ -256,6 +257,9 @@ export default {
256 257
           this.dialogVisible = false;
257 258
           this.$emit("getAllPlan");
258 259
           this.$emit("getAllPlanDetail");
260
+          // 如果保存成功通过状态值改变父组键表格的值
261
+          this.plandata = 1;
262
+          this.$emit("func", this.plandata);
259 263
         } else {
260 264
           this.$message.error("该消毒计划已存在");
261 265
         }
@@ -265,7 +269,6 @@ export default {
265 269
       getAllEquitType().then(response => {
266 270
         if (response.data.state === 1) {
267 271
           var addmacher = response.data.data.addmacher;
268
-          console.log("addmahcer去重", addmacher);
269 272
           this.DeviceType = addmacher;
270 273
         }
271 274
       });

+ 33 - 25
src/xt_pages/management/components/UserForm.vue Parādīt failu

@@ -654,26 +654,18 @@
654 654
             <div class="printClass">打印日期:{{nowTime}}</div>
655 655
             <table border="1" style="width:100%" cellspacing="0" cellpadding="0">
656 656
               <tr>
657
-                <th></th>
658
-                <th></th>
659
-                <th></th>
660
-                <th></th>
661
-                <th></th>
662
-                <th></th>
663
-                <th></th>
657
+                <th :rowspan="2">机号</th>
658
+                <th :rowspan="2">日期</th>
659
+                <th :rowspan="2">班次</th>
660
+                <th :rowspan="2">患者</th>
661
+                <th :rowspan="2">透析方式</th>
662
+                <th :rowspan="2">使用次数</th>
663
+                <th :rowspan="2">运行</th>
664 664
                 <th :colspan="4">基表消毒</th>
665 665
                 <th :colspan="7">液路消毒</th>
666
-                <th></th>
666
+                <th :rowspan="2">签名</th>
667 667
               </tr>
668 668
               <tr>
669
-                <th>机号</th>
670
-                <th>日期</th>
671
-                <th>班次</th>
672
-                <th>患者</th>
673
-                <th>透析方式</th>
674
-                <th>使用次数</th>
675
-                <th>运行</th>
676
-
677 669
                 <th>消毒方式</th>
678 670
                 <th>消毒液</th>
679 671
                 <th>消毒状态</th>
@@ -686,8 +678,6 @@
686 678
                 <th>消毒时长/min</th>
687 679
                 <th>消毒状态</th>
688 680
                 <th>消毒液残留</th>
689
-
690
-                <th>签名</th>
691 681
               </tr>
692 682
               <tr v-for="item in this.tableData" :key="item.id">
693 683
                 <td>{{item.bed_number}}</td>
@@ -940,7 +930,6 @@ export default {
940 930
       getInformationData(this.limit, this.page).then(response => {
941 931
         if (response.data.state === 1) {
942 932
           var information = response.data.data.information
943
-          console.log('information111', information)
944 933
           for (let index = 0; index < information.length; index++) {
945 934
             if (information[index].class === 1) {
946 935
               information[index].class = '上午'
@@ -1005,6 +994,11 @@ export default {
1005 994
             if (information[index].dialysis_mode === 18) {
1006 995
               information[index].dialysis_mode = 'HDF后置换'
1007 996
             }
997
+
998
+            if (information[index].move === 0) {
999
+              information[index].move = ''
1000
+            }
1001
+
1008 1002
             if (information[index].move === 1) {
1009 1003
               information[index].move = '正常'
1010 1004
             }
@@ -1034,7 +1028,7 @@ export default {
1034 1028
               information[index].disinfectant_type = '500mg/l含氯消毒剂'
1035 1029
             }
1036 1030
             if (information[index].disinfectant_type === 3) {
1037
-              information[idnex].disinfectant_type = '1000mg/l含氯消毒剂'
1031
+              information[index].disinfectant_type = '1000mg/l含氯消毒剂'
1038 1032
             }
1039 1033
             if (information[index].disinfectant_type === 4) {
1040 1034
               information[index].disinfectant_type = '1500mg/l含氯消毒剂'
@@ -1170,7 +1164,6 @@ export default {
1170 1164
       getAllOrganization().then(response => {
1171 1165
         if (response.data.state === 1) {
1172 1166
           var approle = response.data.data.approle
1173
-          console.log('签名', approle)
1174 1167
           this.autograph = approle
1175 1168
         }
1176 1169
       })
@@ -1180,7 +1173,7 @@ export default {
1180 1173
       EditUser(id, patientid).then(response => {
1181 1174
         if (response.data.state === 1) {
1182 1175
           var device = response.data.data.device
1183
-          console.log('device', device)
1176
+
1184 1177
           var patients = response.data.data.patients
1185 1178
           console.log('patients', patients);
1186 1179
           (this.userform.id = device.id),
@@ -1409,6 +1402,7 @@ export default {
1409 1402
             if (information[index].dialysis_mode === 18) {
1410 1403
               information[index].dialysis_mode = 'HDF后置换'
1411 1404
             }
1405
+
1412 1406
             if (information[index].move === 1) {
1413 1407
               information[index].move = '正常'
1414 1408
             }
@@ -1594,10 +1588,10 @@ export default {
1594 1588
       getUserForm(id, this.limit, this.page).then(response => {
1595 1589
         if (response.data.state === 1) {
1596 1590
           var information = response.data.data.information
1597
-          console.log('我草', information)
1591
+          console.log('洗濯', information)
1598 1592
           var addmacher = response.data.data.addmacher
1599 1593
           this.bed = addmacher.bed_number
1600
-          console.log('addmacher', addmacher)
1594
+
1601 1595
           for (let index = 0; index < information.length; index++) {
1602 1596
             if (information[index].class === 1) {
1603 1597
               information[index].class = '上午'
@@ -1666,6 +1660,10 @@ export default {
1666 1660
             if (information[index].dialysis_mode === 18) {
1667 1661
               information[index].dialysis_mode = 'HDF后置换'
1668 1662
             }
1663
+
1664
+            if (information[index].move === 0) {
1665
+              information[index].move = ''
1666
+            }
1669 1667
             if (information[index].move === 1) {
1670 1668
               information[index].move = '正常'
1671 1669
             }
@@ -1701,6 +1699,9 @@ export default {
1701 1699
               information[index].disinfectant_type = '1500mg/l含氯消毒剂'
1702 1700
             }
1703 1701
 
1702
+            if (information[index].disinfection === 0) {
1703
+              information[index].disinfection = ''
1704
+            }
1704 1705
             if (information[index].disinfection === 1) {
1705 1706
               information[index].disinfection = '已消毒'
1706 1707
             }
@@ -1710,6 +1711,10 @@ export default {
1710 1711
             if (information[index].disinfection === 3) {
1711 1712
               information[index].disinfection = '消毒未完成'
1712 1713
             }
1714
+
1715
+            if (information[index].dialysis_concentration === 0) {
1716
+              information[index].dialysis_concentration = ''
1717
+            }
1713 1718
             if (information[index].dialysis_concentration === 1) {
1714 1719
               information[index].dialysis_concentration = '达标'
1715 1720
             }
@@ -1782,6 +1787,10 @@ export default {
1782 1787
             if (information[index].disinfection_status === 3) {
1783 1788
               information[index].disinfection_status = '消毒未完成'
1784 1789
             }
1790
+
1791
+            if (information[index].disinfection_residue === 0) {
1792
+              information[index].disinfection_residue = ''
1793
+            }
1785 1794
             if (information[index].disinfection_residue === 1) {
1786 1795
               information[index].disinfection_residue = '有残留'
1787 1796
             }
@@ -1835,7 +1844,6 @@ export default {
1835 1844
   },
1836 1845
   watch: {
1837 1846
     userdata(newvalue, oldvalue) {
1838
-      console.log('new', newvalue)
1839 1847
       this.getUserForm(newvalue)
1840 1848
       this.getBedForm(newvalue)
1841 1849
     }

Failā izmaiņas netiks attēlotas, jo tās ir par lielu
+ 222 - 292
src/xt_pages/management/home.vue


+ 11 - 11
src/xt_pages/management/index.vue Parādīt failu

@@ -9,8 +9,8 @@
9 9
         icon="el-icon-circle-plus-outline"
10 10
         size="small"
11 11
         @click="AddManage()"
12
-        >新增</el-button
13
-      >
12
+        >新增
13
+      </el-button>
14 14
     </div>
15 15
     <div class="app-container">
16 16
       <div class="cell clearfix">
@@ -27,8 +27,8 @@
27 27
           icon="el-icon-search"
28 28
           size="small"
29 29
           @click="seahcerMacherInfo()"
30
-          >搜索</el-button
31
-        >
30
+          >搜索
31
+        </el-button>
32 32
       </div>
33 33
 
34 34
       <div class="cell clearfix">
@@ -126,8 +126,8 @@
126 126
               @click="handleClick(scope.row.id, scope.$index)"
127 127
               type="text"
128 128
               size="small"
129
-              >查看</el-button
130
-            >
129
+              >查看
130
+            </el-button>
131 131
           </template>
132 132
         </el-table-column>
133 133
       </el-table>
@@ -153,8 +153,9 @@
153 153
 
154 154
 <script>
155 155
 import BreadCrumb from "../components/bread-crumb";
156
-import { getAllSubregion, getAllMachineInfo } from "@/api/manage";
156
+import { getAllMachineInfo, getAllSubregion } from "@/api/manage";
157 157
 import ManageForm from "./components/ManageForm";
158
+
158 159
 export default {
159 160
   name: "index.vue",
160 161
   components: {
@@ -208,13 +209,12 @@ export default {
208 209
             const item = zone[i];
209 210
             zones.push({ id: item.id, name: item.name });
210 211
           }
211
-          console.log("zones", zones);
212
+          // console.log('zones', zones)
212 213
           this.zones = zones;
213 214
         }
214 215
       });
215 216
     },
216 217
     selectSchedulType(scheduleType) {
217
-      console.log("区号", scheduleType);
218 218
       this.schedulType = scheduleType;
219 219
       this.listQuery.zoneid = scheduleType;
220 220
       this.getAllMachineInfo();
@@ -272,9 +272,9 @@ export default {
272 272
             }
273 273
           }
274 274
           this.tableData = addmahcer;
275
-          console.log("addmacher", addmahcer);
275
+          // console.log('addmacher', addmahcer)
276 276
           var total = response.data.data.total;
277
-          console.log("total", total);
277
+          // console.log('total', total)
278 278
           this.total = total;
279 279
         }
280 280
       });