Explorar el Código

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

csx hace 4 años
padre
commit
70d9bf4027

+ 279 - 246
src/api/manage.js Ver fichero

@@ -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
-  console.log('params', params)
4
+  console.log("params", params);
5 5
   return request({
6
-    url: '/api/management/getallsubregion',
7
-    method: 'Get',
6
+    url: "/api/management/getallsubregion",
7
+    method: "Get",
8 8
     params: params
9
-  })
9
+  });
10 10
 }
11 11
 
12 12
 export function SaveManageInfo(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(
@@ -32,310 +32,322 @@ export function getAllMachineInfo(
32 32
     zoneid: zoneid,
33 33
     equipmentid: equipmentid,
34 34
     statusid: statusid
35
-  }
35
+  };
36 36
   return request({
37
-    url: '/api/management/getallmachineinfo',
38
-    method: 'Get',
37
+    url: "/api/management/getallmachineinfo",
38
+    method: "Get",
39 39
     params: params
40
-  })
40
+  });
41 41
 }
42 42
 
43 43
 export function getAllMachine(zoneid, deviceid) {
44 44
   const params = {
45 45
     zoneid: zoneid,
46 46
     deviceid: deviceid
47
-  }
47
+  };
48 48
   return request({
49
-    url: '/api/management/getallmachine',
50
-    method: 'Get',
49
+    url: "/api/management/getallmachine",
50
+    method: "Get",
51 51
     params: params
52
-  })
52
+  });
53
+}
54
+
55
+export function getAllMachineTwo(zoneid, deviceid) {
56
+  const params = {
57
+    zoneid: zoneid,
58
+    deviceid: deviceid
59
+  };
60
+  return request({
61
+    url: "/api/management/getallmachinetwo",
62
+    method: "Get",
63
+    params: params
64
+  });
53 65
 }
54 66
 
55 67
 export function getMachineDetailById(id, params) {
56 68
   return request({
57
-    url: '/api/management/getmachinedetail?id=' + id,
58
-    method: 'Get',
69
+    url: "/api/management/getmachinedetail?id=" + id,
70
+    method: "Get",
59 71
     params: params
60
-  })
72
+  });
61 73
 }
62 74
 
63 75
 export function UpdateMachineInfo(data) {
64
-  console.log('data', data)
65 76
   return request({
66
-    url: '/api/management/updatemachineinfo',
67
-    method: 'Post',
77
+    url: "/api/management/updatemachineinfo",
78
+    method: "Post",
68 79
     data: data
69
-  })
80
+  });
70 81
 }
71 82
 
72 83
 export function UpdateMachineInfoTwo(data) {
73
-  console.log('data', data)
74 84
   return request({
75
-    url: '/api/management/updatemachineinfotwo',
76
-    method: 'post',
85
+    url: "/api/management/updatemachineinfotwo",
86
+    method: "post",
77 87
     data: data
78
-  })
88
+  });
79 89
 }
80 90
 
81 91
 export function getAllEquimentName(params) {
82 92
   return request({
83
-    url: '/api/management/getallequimentname',
84
-    method: 'Get',
93
+    url: "/api/management/getallequimentname",
94
+    method: "Get",
85 95
     params: params
86
-  })
96
+  });
87 97
 }
88 98
 
89 99
 export function savePlan(data, id) {
100
+  console.log("data", data);
90 101
   return request({
91
-    url: '/api/management/saveplan?id=' + id,
92
-    method: 'Post',
102
+    url: "/api/management/saveplan?id=" + id,
103
+    method: "Post",
93 104
     data: data
94
-  })
105
+  });
95 106
 }
96 107
 
97 108
 export function getAllPlan(params) {
98 109
   return request({
99
-    url: '/api/management/getallplan',
100
-    method: 'Get',
110
+    url: "/api/management/getallplan",
111
+    method: "Get",
101 112
     params: params
102
-  })
113
+  });
103 114
 }
104 115
 
105 116
 export function getAllPlanDetail(unitype) {
106 117
   // eslint-disable-next-line no-redeclare
107 118
   const params = {
108 119
     unitype: unitype
109
-  }
120
+  };
110 121
   return request({
111
-    url: '/api/management/getallplandetail',
112
-    method: 'Get',
122
+    url: "/api/management/getallplandetail",
123
+    method: "Get",
113 124
     params: params
114
-  })
125
+  });
115 126
 }
116 127
 
117 128
 export function getEditMachine(id, params) {
118 129
   return request({
119
-    url: '/api/management/geteditmachine?id=' + id,
120
-    method: 'Get',
130
+    url: "/api/management/geteditmachine?id=" + id,
131
+    method: "Get",
121 132
     params: params
122
-  })
133
+  });
123 134
 }
124 135
 
125 136
 export function DeletePlans(data) {
126 137
   return request({
127
-    url: '/api/staff/deleteplans',
128
-    method: 'delete',
138
+    url: "/api/staff/deleteplans",
139
+    method: "delete",
129 140
     data: data
130
-  })
141
+  });
131 142
 }
132 143
 
133 144
 export function EditPlanDetail(id, params) {
134 145
   return request({
135
-    url: '/api/manage/editplandetail?id=' + id,
136
-    method: 'get',
146
+    url: "/api/manage/editplandetail?id=" + id,
147
+    method: "get",
137 148
     params: params
138
-  })
149
+  });
139 150
 }
140 151
 
141 152
 export function UpdatePlanInfo(data) {
142 153
   return request({
143
-    url: '/api/manage/updateplaninfo',
144
-    method: 'Post',
154
+    url: "/api/manage/updateplaninfo",
155
+    method: "Post",
145 156
     data: data
146
-  })
157
+  });
147 158
 }
148 159
 
149 160
 export function getComprehensive(params) {
150 161
   return request({
151
-    url: '/api/manage/getcomprehensive',
152
-    method: 'Get',
162
+    url: "/api/manage/getcomprehensive",
163
+    method: "Get",
153 164
     params: params
154
-  })
165
+  });
155 166
 }
156 167
 
157 168
 export function SaveInformation(eid, data) {
169
+  console.log("data--", data);
158 170
   return request({
159
-    url: '/api/manage/saveinformation?eid=' + eid,
160
-    method: 'Post',
171
+    url: "/api/manage/saveinformation?eid=" + eid,
172
+    method: "Post",
161 173
     data: data
162
-  })
174
+  });
163 175
 }
164 176
 
165 177
 export function getPatientInfo(id, params) {
166 178
   return request({
167
-    url: '/api/manage/getpatientinfo?id=' + id,
168
-    method: 'Get',
179
+    url: "/api/manage/getpatientinfo?id=" + id,
180
+    method: "Get",
169 181
     params: params
170
-  })
182
+  });
171 183
 }
172 184
 
173 185
 export function ChangeClass(equitid, id) {
174 186
   const params = {
175 187
     equitid: equitid,
176 188
     id: id
177
-  }
189
+  };
178 190
   return request({
179
-    url: '/api/manage/changeclass',
180
-    method: 'Get',
191
+    url: "/api/manage/changeclass",
192
+    method: "Get",
181 193
     params: params
182
-  })
194
+  });
183 195
 }
184 196
 
185 197
 export function changePatient(equitid, id) {
186 198
   const params = {
187 199
     equitid: equitid,
188 200
     id: id
189
-  }
201
+  };
190 202
   return request({
191
-    url: '/api/manage/changepatient',
192
-    method: 'Get',
203
+    url: "/api/manage/changepatient",
204
+    method: "Get",
193 205
     params: params
194
-  })
206
+  });
195 207
 }
196 208
 
197 209
 export function getAllOrganization(params) {
198 210
   return request({
199
-    url: '/api/manage/getallorganization',
200
-    method: 'Get',
211
+    url: "/api/manage/getallorganization",
212
+    method: "Get",
201 213
     params: params
202
-  })
214
+  });
203 215
 }
204 216
 
205 217
 export function getUserRegister(id, params) {
206 218
   return request({
207
-    url: '/api/manage/getregisterinfo?id=' + id,
208
-    method: 'Get',
219
+    url: "/api/manage/getregisterinfo?id=" + id,
220
+    method: "Get",
209 221
     params: params
210
-  })
222
+  });
211 223
 }
212 224
 
213 225
 export function getInformationData(limit, page) {
214 226
   const params = {
215 227
     limit: limit,
216 228
     page: page
217
-  }
229
+  };
218 230
   return request({
219
-    url: '/api/manage/getinformationdata',
220
-    method: 'Get',
231
+    url: "/api/manage/getinformationdata",
232
+    method: "Get",
221 233
     params: params
222
-  })
234
+  });
223 235
 }
224 236
 
225 237
 export function SaveBacteria(id, data) {
226 238
   return request({
227
-    url: '/api/manage/savebacteria?id=' + id,
228
-    method: 'Post',
239
+    url: "/api/manage/savebacteria?id=" + id,
240
+    method: "Post",
229 241
     data: data
230
-  })
242
+  });
231 243
 }
232 244
 
233 245
 export function SaveLincomycin(id, data) {
234 246
   return request({
235
-    url: '/api/manage/savelincomycin?id=' + id,
236
-    method: 'Post',
247
+    url: "/api/manage/savelincomycin?id=" + id,
248
+    method: "Post",
237 249
     data: data
238
-  })
250
+  });
239 251
 }
240 252
 
241 253
 export function SaveQualityControl(id, data) {
242 254
   return request({
243
-    url: '/api/manage/savequalitycontrol?id=' + id,
244
-    method: 'Post',
255
+    url: "/api/manage/savequalitycontrol?id=" + id,
256
+    method: "Post",
245 257
     data: data
246
-  })
258
+  });
247 259
 }
248 260
 
249 261
 export function getOrgName(params) {
250 262
   return request({
251
-    url: '/api/manage/getorgname',
252
-    method: 'Get',
263
+    url: "/api/manage/getorgname",
264
+    method: "Get",
253 265
     params: params
254
-  })
266
+  });
255 267
 }
256 268
 
257 269
 export function getAllQulityInfo(params) {
258 270
   return request({
259
-    url: '/api/manage/getallqulityinfo',
260
-    method: 'Get',
271
+    url: "/api/manage/getallqulityinfo",
272
+    method: "Get",
261 273
     params: params
262
-  })
274
+  });
263 275
 }
264 276
 
265 277
 export function EditCulture(id, userid) {
266 278
   const params = {
267 279
     id: id,
268 280
     userid: userid
269
-  }
281
+  };
270 282
   return request({
271
-    url: '/api/manage/editculture',
272
-    method: 'Get',
283
+    url: "/api/manage/editculture",
284
+    method: "Get",
273 285
     params: params
274
-  })
286
+  });
275 287
 }
276 288
 
277 289
 export function UpdateCulture(data) {
278 290
   return request({
279
-    url: '/api/manage/updateculture',
280
-    method: 'Post',
291
+    url: "/api/manage/updateculture",
292
+    method: "Post",
281 293
     data: data
282
-  })
294
+  });
283 295
 }
284 296
 
285 297
 export function DeleteCultrue(data) {
286 298
   return request({
287
-    url: '/api/manage/deletecultrue',
288
-    method: 'delete',
299
+    url: "/api/manage/deletecultrue",
300
+    method: "delete",
289 301
     data: data
290
-  })
302
+  });
291 303
 }
292 304
 
293 305
 export function EditDialyState(id, params) {
294 306
   return request({
295
-    url: '/api/manage/editdialystate?id=' + id,
296
-    method: 'Get',
307
+    url: "/api/manage/editdialystate?id=" + id,
308
+    method: "Get",
297 309
     params: params
298
-  })
310
+  });
299 311
 }
300 312
 
301 313
 export function UpdateDialyState(data) {
302 314
   return request({
303
-    url: '/api/manage/updatedialystate',
304
-    method: 'post',
315
+    url: "/api/manage/updatedialystate",
316
+    method: "post",
305 317
     data: data
306
-  })
318
+  });
307 319
 }
308 320
 
309 321
 export function DeleteDialystate(data) {
310 322
   return request({
311
-    url: '/api/manage/deletedialystate',
312
-    method: 'delete',
323
+    url: "/api/manage/deletedialystate",
324
+    method: "delete",
313 325
     data: data
314
-  })
326
+  });
315 327
 }
316 328
 
317 329
 export function EditIon(id, params) {
318 330
   return request({
319
-    url: '/api/manage/edition?id=' + id,
320
-    method: 'Get',
331
+    url: "/api/manage/edition?id=" + id,
332
+    method: "Get",
321 333
     params: params
322
-  })
334
+  });
323 335
 }
324 336
 
325 337
 export function UpdateIon(data) {
326 338
   return request({
327
-    url: '/api/manage/updateion',
328
-    method: 'Post',
339
+    url: "/api/manage/updateion",
340
+    method: "Post",
329 341
     data: data
330
-  })
342
+  });
331 343
 }
332 344
 
333 345
 export function DeleteIon(data) {
334 346
   return request({
335
-    url: '/api/manage/deleteion',
336
-    method: 'delete',
347
+    url: "/api/manage/deleteion",
348
+    method: "delete",
337 349
     data: data
338
-  })
350
+  });
339 351
 }
340 352
 
341 353
 export function queryTable(bedid, startime, endtime) {
@@ -343,56 +355,57 @@ export function queryTable(bedid, startime, endtime) {
343 355
     bedid: bedid,
344 356
     startime: startime,
345 357
     endtime: endtime
346
-  }
358
+  };
347 359
   return request({
348
-    url: '/api/manage/query',
349
-    method: 'Get',
360
+    url: "/api/manage/query",
361
+    method: "Get",
350 362
     params: params
351
-  })
363
+  });
352 364
 }
353 365
 
354 366
 export function SaveRepair(id, data) {
355 367
   return request({
356
-    url: '/api/manage/saverepair?id=' + id,
357
-    method: 'post',
368
+    url: "/api/manage/saverepair?id=" + id,
369
+    method: "post",
358 370
     data: data
359
-  })
371
+  });
360 372
 }
361 373
 
362 374
 export function getAllRepair(limit, page) {
363 375
   const params = {
364 376
     limit: limit,
365 377
     page: page
366
-  }
378
+  };
367 379
   return request({
368
-    url: '/api/manage/getallrepair',
369
-    method: 'Get',
380
+    url: "/api/manage/getallrepair",
381
+    method: "Get",
370 382
     params: params
371
-  })
383
+  });
372 384
 }
373 385
 
374 386
 export function EditRepair(id, params) {
375 387
   return request({
376
-    url: '/api/manage/editrepair?id=' + id,
377
-    method: 'Get',
388
+    url: "/api/manage/editrepair?id=" + id,
389
+    method: "Get",
378 390
     params: params
379
-  })
391
+  });
380 392
 }
381 393
 
382 394
 export function UpdateRepair(data) {
395
+  console.log("data-----", data);
383 396
   return request({
384
-    url: '/api/manage/updaterepair',
385
-    method: 'Post',
397
+    url: "/api/manage/updaterepair",
398
+    method: "Post",
386 399
     data: data
387
-  })
400
+  });
388 401
 }
389 402
 
390 403
 export function DeleteRepair(data) {
391 404
   return request({
392
-    url: '/api/manage/deleterepair',
393
-    method: 'delete',
405
+    url: "/api/manage/deleterepair",
406
+    method: "delete",
394 407
     data: data
395
-  })
408
+  });
396 409
 }
397 410
 
398 411
 export function queryRepair(bedid, startime, endtime) {
@@ -400,47 +413,47 @@ export function queryRepair(bedid, startime, endtime) {
400 413
     bedid: bedid,
401 414
     startime: startime,
402 415
     endtime: endtime
403
-  }
416
+  };
404 417
 
405 418
   return request({
406
-    url: '/api/manage/queryrepair',
407
-    method: 'Get',
419
+    url: "/api/manage/queryrepair",
420
+    method: "Get",
408 421
     params: params
409
-  })
422
+  });
410 423
 }
411 424
 
412 425
 export function EditUser(id, patientid) {
413 426
   const params = {
414 427
     id: id,
415 428
     patientid: patientid
416
-  }
429
+  };
417 430
   return request({
418
-    url: '/api/manage/edituser',
419
-    method: 'Get',
431
+    url: "/api/manage/edituser",
432
+    method: "Get",
420 433
     params: params
421
-  })
434
+  });
422 435
 }
423 436
 
424 437
 export function DeleteUserform(data) {
425 438
   return request({
426
-    url: '/api/manage/deleteform',
427
-    method: 'delete',
439
+    url: "/api/manage/deleteform",
440
+    method: "delete",
428 441
     data: data
429
-  })
442
+  });
430 443
 }
431 444
 
432 445
 export function UpdateForm(data) {
433 446
   return request({
434
-    url: '/api/manage/updateform',
435
-    method: 'post',
447
+    url: "/api/manage/updateform",
448
+    method: "post",
436 449
     data: data
437
-  })
450
+  });
438 451
 }
439 452
 
440 453
 export function queryInfo(zone, bed, startime, endtime, limit, page) {
441
-  console.log('开始时间', startime)
442
-  console.log('结束时间', endtime)
443
-  console.log('床位好', bed)
454
+  console.log("开始时间", startime);
455
+  console.log("结束时间", endtime);
456
+  console.log("床位好", bed);
444 457
   const params = {
445 458
     zone: zone,
446 459
     bed: bed,
@@ -448,28 +461,28 @@ export function queryInfo(zone, bed, startime, endtime, limit, page) {
448 461
     endtime: endtime,
449 462
     limit: limit,
450 463
     page: page
451
-  }
464
+  };
452 465
   return request({
453
-    url: '/api/manage/queryinfo',
454
-    method: 'Get',
466
+    url: "/api/manage/queryinfo",
467
+    method: "Get",
455 468
     params: params
456
-  })
469
+  });
457 470
 }
458 471
 
459 472
 export function getAutoData(id, params) {
460 473
   return request({
461
-    url: '/api/manage/insertautodata?id=' + id,
462
-    method: 'Get',
474
+    url: "/api/manage/insertautodata?id=" + id,
475
+    method: "Get",
463 476
     params: params
464
-  })
477
+  });
465 478
 }
466 479
 
467 480
 export function getAllEquitType(params) {
468 481
   return request({
469
-    url: '/api/manage/getallequittype',
470
-    method: 'Get',
482
+    url: "/api/manage/getallequittype",
483
+    method: "Get",
471 484
     params: params
472
-  })
485
+  });
473 486
 }
474 487
 
475 488
 export function getUserForm(id, limit, page) {
@@ -477,203 +490,223 @@ export function getUserForm(id, limit, page) {
477 490
     id: id,
478 491
     limit: limit,
479 492
     page: page
480
-  }
493
+  };
481 494
   return request({
482
-    url: '/api/manage/getuserform',
483
-    method: 'Get',
495
+    url: "/api/manage/getuserform",
496
+    method: "Get",
484 497
     params: params
485
-  })
498
+  });
486 499
 }
487 500
 
488 501
 export function UpdateMacheineTwo(data) {
489 502
   return request({
490
-    url: '/api/manage/updatemacheinettwo',
491
-    method: 'post',
503
+    url: "/api/manage/updatemacheinettwo",
504
+    method: "post",
492 505
     data: data
493
-  })
506
+  });
494 507
 }
495 508
 
496 509
 export function getBedForm(id, params) {
497 510
   return request({
498
-    url: '/api/manage/getbedform?id=' + id,
499
-    method: 'get',
511
+    url: "/api/manage/getbedform?id=" + id,
512
+    method: "get",
500 513
     params: params
501
-  })
514
+  });
502 515
 }
503 516
 
504 517
 export function getTotalCount(params) {
505 518
   return request({
506
-    url: '/api/manage/gettotalcount',
507
-    method: 'Get',
519
+    url: "/api/manage/gettotalcount",
520
+    method: "Get",
508 521
     params: params
509
-  })
522
+  });
510 523
 }
511 524
 
512 525
 export function getTotalNumber(id, params) {
513 526
   return request({
514
-    url: '/api/manage/getotalnumber?id=' + id,
515
-    method: 'Get',
527
+    url: "/api/manage/getotalnumber?id=" + id,
528
+    method: "Get",
516 529
     params: params
517
-  })
530
+  });
518 531
 }
519 532
 
520 533
 export function getTimeWarning(id, params) {
521 534
   return request({
522
-    url: '/api/manage/gettimewarning?id=' + id,
523
-    method: 'Get',
535
+    url: "/api/manage/gettimewarning?id=" + id,
536
+    method: "Get",
524 537
     params: params
525
-  })
538
+  });
526 539
 }
527 540
 
528 541
 export function SaveManageInfoTwo(data, beds) {
529
-  console.log('data', beds)
542
+  console.log("data", beds);
530 543
   return request({
531
-    url: '/api/manage/savemanageinfotwo?beds=' + beds,
532
-    method: 'post',
544
+    url: "/api/manage/savemanageinfotwo?beds=" + beds,
545
+    method: "post",
533 546
     data: data
534
-  })
547
+  });
535 548
 }
536 549
 
537 550
 export function getAllpatient(params) {
538 551
   return request({
539
-    url: '/api/manage/getallpatient',
540
-    method: 'get',
552
+    url: "/api/manage/getallpatient",
553
+    method: "get",
541 554
     params: params
542
-  })
555
+  });
543 556
 }
544 557
 
545 558
 export function changeBed(id, params) {
546 559
   return request({
547
-    url: '/api/manage/changebed?id=' + id,
548
-    method: 'get',
560
+    url: "/api/manage/changebed?id=" + id,
561
+    method: "get",
549 562
     params: params
550
-  })
563
+  });
551 564
 }
552 565
 
553 566
 export function getPatientDetail(id, params) {
554 567
   return request({
555
-    url: '/api/manage/getpatientdetail?id=' + id,
556
-    method: 'get',
568
+    url: "/api/manage/getpatientdetail?id=" + id,
569
+    method: "get",
557 570
     params: params
558
-  })
571
+  });
559 572
 }
560 573
 
561 574
 export function changeRun(id, data) {
562 575
   return request({
563
-    url: '/api/manage/changrun?id=' + id,
564
-    method: 'post',
576
+    url: "/api/manage/changrun?id=" + id,
577
+    method: "post",
565 578
     data: data
566
-  })
579
+  });
567 580
 }
568 581
 
569 582
 export function getRemanderData(params) {
570 583
   return request({
571
-    url: '/api/manage/getremanderdata',
572
-    method: 'get',
584
+    url: "/api/manage/getremanderdata",
585
+    method: "get",
573 586
     params: params
574
-  })
587
+  });
575 588
 }
576 589
 
577 590
 export function openDelete(id, params) {
578 591
   return request({
579
-    url: '/api/manage/opendelete?id=' + id,
580
-    method: 'delete',
592
+    url: "/api/manage/opendelete?id=" + id,
593
+    method: "delete",
581 594
     params: params
582
-  })
595
+  });
583 596
 }
584 597
 
585 598
 export function DeleteUserLogin(id, params) {
586 599
   return request({
587
-    url: '/api/manage/deleteuserlogin?id=' + id,
588
-    method: 'delete',
600
+    url: "/api/manage/deleteuserlogin?id=" + id,
601
+    method: "delete",
589 602
     params: params
590
-  })
603
+  });
591 604
 }
592 605
 
593 606
 export function DeleteCultrues(id, params) {
594 607
   return request({
595
-    url: '/api/manage/deletecultrues?id=' + id,
596
-    method: 'delete',
608
+    url: "/api/manage/deletecultrues?id=" + id,
609
+    method: "delete",
597 610
     params: params
598
-  })
611
+  });
599 612
 }
600 613
 
601 614
 export function DeleteDialystates(id, params) {
602 615
   return request({
603
-    url: '/api/manage/deletedialystates?id=' + id,
604
-    method: 'delete',
616
+    url: "/api/manage/deletedialystates?id=" + id,
617
+    method: "delete",
605 618
     params: params
606
-  })
619
+  });
607 620
 }
608 621
 
609 622
 export function DeleteIons(id, params) {
610 623
   return request({
611
-    url: '/api/manage/deleteions?id=' + id,
612
-    method: 'delete',
624
+    url: "/api/manage/deleteions?id=" + id,
625
+    method: "delete",
613 626
     params: params
614
-  })
627
+  });
615 628
 }
616 629
 
617 630
 export function DeleteRepairs(id, params) {
618 631
   return request({
619
-    url: '/api/manage/deleterepairs?id=' + id,
620
-    method: 'delete',
632
+    url: "/api/manage/deleterepairs?id=" + id,
633
+    method: "delete",
621 634
     params: params
622
-  })
635
+  });
623 636
 }
624 637
 
625 638
 export function SaveMode(data) {
626 639
   return request({
627
-    url: '/api/manage/savemode',
628
-    method: 'post',
640
+    url: "/api/manage/savemode",
641
+    method: "post",
629 642
     data: data
630
-  })
643
+  });
631 644
 }
632 645
 
633 646
 export function getAllMode(params) {
634 647
   return request({
635
-    url: '/api/manage/getallmode',
636
-    method: 'get',
648
+    url: "/api/manage/getallmode",
649
+    method: "get",
637 650
     params: params
638
-  })
651
+  });
639 652
 }
640 653
 
641 654
 export function EditMode(id, params) {
642 655
   return request({
643
-    url: '/api/manage/editmode?id=' + id,
644
-    method: 'get',
656
+    url: "/api/manage/editmode?id=" + id,
657
+    method: "get",
645 658
     params: params
646
-  })
659
+  });
647 660
 }
648 661
 
649 662
 export function UpdateMode(id, data) {
650 663
   return request({
651
-    url: '/api/manage/updatemode?id=' + id,
652
-    method: 'post',
664
+    url: "/api/manage/updatemode?id=" + id,
665
+    method: "post",
653 666
     data: data
654
-  })
667
+  });
655 668
 }
656 669
 
657 670
 export function DeleteMode(id, params) {
658 671
   return request({
659
-    url: '/api/manage/deletemode?id=' + id,
660
-    method: 'delete',
672
+    url: "/api/manage/deletemode?id=" + id,
673
+    method: "delete",
661 674
     params: params
662
-  })
675
+  });
663 676
 }
664 677
 
665 678
 export function selectChange(id, params) {
666 679
   return request({
667
-    url: '/api/manage/selectchange?id=' + id,
668
-    method: 'get',
680
+    url: "/api/manage/selectchange?id=" + id,
681
+    method: "get",
669 682
     params: params
670
-  })
683
+  });
671 684
 }
672 685
 
673 686
 export function selectBed(id, params) {
674 687
   return request({
675
-    url: '/api/manage/selectbed?id=' + id,
676
-    method: 'get',
688
+    url: "/api/manage/selectbed?id=" + id,
689
+    method: "get",
690
+    params: params
691
+  });
692
+}
693
+
694
+export function getTimeBeteen(equitid, todaytime) {
695
+  const params = {
696
+    equitid: equitid,
697
+    todaytime: todaytime
698
+  };
699
+  return request({
700
+    url: "/api/manage/getime",
701
+    method: "get",
702
+    params: params
703
+  });
704
+}
705
+
706
+export function DeleteImages(id,params) {
707
+  return request({
708
+    url: "/api/manage/deleteimages?id=" + id,
709
+    method: "delete",
677 710
     params: params
678
-  })
711
+  });
679 712
 }

+ 4 - 4
src/xt_pages/dialysis/batch_print/batch_print_order_other.vue Ver fichero

@@ -21,7 +21,7 @@
21 21
             <div class="inline_block" style="margin-left: 5px;">
22 22
               住院号:
23 23
               <div class="under_line" style="width: 70px;text-align: left" v-if="record.receive_assessment.admission_number">
24
-                {{record.receive_assessment.admission_number}}
24
+                {{record.receive_assessment.condition == 1?record.receive_assessment.admission_number:'/'}}
25 25
               </div>
26 26
               <div class="under_line" style="width: 70px;" v-else>
27 27
                 {{'/'}}
@@ -383,7 +383,7 @@
383 383
               <div class="inline_block" style="margin-left: 5px;">
384 384
                 住院号:
385 385
                 <div class="under_line" style="width: 70px;text-align: left" v-if="record.receive_assessment.admission_number">
386
-                  {{record.receive_assessment.admission_number}}
386
+                  {{record.receive_assessment.condition == 1?record.receive_assessment.admission_number:'/'}}
387 387
                 </div>
388 388
                 <div class="under_line" style="width: 70px;" v-else>
389 389
                   {{'/'}}
@@ -694,7 +694,7 @@
694 694
             <div class="inline_block" style="margin-left: 5px;">
695 695
               住院号:
696 696
               <div class="under_line" style="width: 70px;text-align: left" v-if="record.receive_assessment.admission_number">
697
-                {{record.receive_assessment.admission_number}}
697
+                {{record.receive_assessment.condition == 1?record.receive_assessment.admission_number:'/'}}
698 698
               </div>
699 699
               <div class="under_line" style="width: 70px;" v-else>
700 700
                 {{'/'}}
@@ -1042,7 +1042,7 @@
1042 1042
                 <div class="inline_block" style="margin-left: 5px;">
1043 1043
                   住院号:
1044 1044
                   <div class="under_line" style="width: 70px;text-align: left" v-if="record.receive_assessment.admission_number">
1045
-                    {{record.receive_assessment.admission_number}}
1045
+                    {{record.receive_assessment.condition == 1?record.receive_assessment.admission_number:'/'}}
1046 1046
                   </div>
1047 1047
                   <div class="under_line" style="width: 70px;" v-else>
1048 1048
                     {{'/'}}

+ 2 - 2
src/xt_pages/dialysis/batch_print/batch_print_order_other_one.vue Ver fichero

@@ -21,7 +21,7 @@
21 21
             <div class="inline_block" style="margin-left: 5px;">
22 22
               住院号:
23 23
               <div class="under_line" style="width: 70px;text-align: left" v-if="record.receive_assessment.admission_number">
24
-                {{record.receive_assessment.admission_number}}
24
+                {{record.receive_assessment.condition == 1?record.receive_assessment.admission_number:'/'}}
25 25
               </div>
26 26
               <div class="under_line" style="width: 70px;" v-else>
27 27
                 {{'/'}}
@@ -379,7 +379,7 @@
379 379
               <div class="inline_block" style="margin-left: 5px;">
380 380
                 住院号:
381 381
                 <div class="under_line" style="width: 70px;text-align: left" v-if="record.receive_assessment.admission_number">
382
-                  {{record.receive_assessment.admission_number}}
382
+                  {{record.receive_assessment.condition == 1?record.receive_assessment.admission_number:'/'}}
383 383
                 </div>
384 384
                 <div class="under_line" style="width: 70px;" v-else>
385 385
                   {{'/'}}

+ 2 - 2
src/xt_pages/dialysis/batch_print/batch_print_order_other_two.vue Ver fichero

@@ -21,7 +21,7 @@
21 21
             <div class="inline_block" style="margin-left: 5px;">
22 22
               住院号:
23 23
               <div class="under_line" style="width: 70px;text-align: left" v-if="record.receive_assessment.admission_number">
24
-                {{record.receive_assessment.admission_number}}
24
+                {{record.receive_assessment.condition == 1?record.receive_assessment.admission_number:'/'}}
25 25
               </div>
26 26
               <div class="under_line" style="width: 70px;" v-else>
27 27
                 {{'/'}}
@@ -358,7 +358,7 @@
358 358
                 <div class="inline_block" style="margin-left: 5px;">
359 359
                   住院号:
360 360
                   <div class="under_line" style="width: 70px;text-align: left" v-if="record.receive_assessment.admission_number">
361
-                    {{record.receive_assessment.admission_number}}
361
+                    {{record.receive_assessment.condition == 1?record.receive_assessment.admission_number:'/'}}
362 362
                   </div>
363 363
                   <div class="under_line" style="width: 70px;" v-else>
364 364
                     {{'/'}}

+ 127 - 41
src/xt_pages/dialysis/batch_print/batch_print_order_seven.vue Ver fichero

@@ -43,7 +43,7 @@
43 43
                   <td width="50">年 龄:</td>
44 44
                   <td width="180">
45 45
                     <div class="under-line">
46
-                      &nbsp;{{ getAge(record.patient) }}
46
+                      &nbsp;{{ checkIdCardNo(record.patient.id_card_no) }}
47 47
                     </div>
48 48
                   </td>
49 49
                   <td width="80">岁</td>
@@ -290,44 +290,112 @@
290 290
                           >
291 291
                         </td>
292 292
                         <td style="text-align:left;margin-left:15px">
293
-                          透析型号:
293
+                          透析型号:
294 294
                           <span class="under-line"
295
+                               v-if="
296
+                         record.prescription.mode_id != 3 &&
297
+                         record.prescription.mode_id != 4 &&
298
+                         record.prescription.mode_id != 12 &&
299
+                         record.prescription.mode_id != 9
300
+                      "
295 301
                           >&nbsp;{{
296
-                              record.assessment_before_dislysis.machine_type
297
-                                ? record.assessment_before_dislysis.machine_type
302
+                              record.prescription.dialyzer_perfusion_apparatus
303
+                                ? record.prescription.dialyzer_perfusion_apparatus
298 304
                                 : '/'
299 305
                             }}</span
300 306
                           >
307
+                          <span v-else  class="under-line" >
308
+                            /
309
+                          </span>
301 310
                         </td>
302 311
                         <td style="text-align:left;margin-left:15px">
303
-                          预脱:
304
-                          <span class="under-line"
312
+                         灌流器型号: <span class="under-line"
313
+                           v-if="
314
+                         record.prescription.mode_id == 3 ||
315
+                         record.prescription.mode_id == 4 ||
316
+                         record.prescription.mode_id == 12 ||
317
+                         record.prescription.mode_id == 9
318
+                      "
305 319
                           >&nbsp;{{
306
-                              record.prescription.target_ultrafiltration
307
-                                ? record.prescription.target_ultrafiltration
308
-                                : '/'
309
-                            }}</span
310
-                          >L
320
+                            record.prescription.dialyzer_perfusion_apparatus
321
+                          ? record.prescription.dialyzer_perfusion_apparatus
322
+                          : "/"
323
+                      }}</span
324
+                    >
325
+                      <span v-else class="under-line" >
326
+                        /
327
+                      </span>
311 328
                         </td>
312 329
                         <td style="text-align:left;margin-left:15px">
313
-                          治疗时间:
314
-                          <span class="under-line"
315
-                          >&nbsp;{{
316
-                              record.assessment_after_dislysis
317
-                                .actual_treatment_hour
318
-                                ? record.assessment_after_dislysis
319
-                                    .actual_treatment_hour
320
-                                : '/'
321
-                            }}小时{{
322
-                              record.assessment_after_dislysis
323
-                                .actual_treatment_minute
324
-                                ? record.assessment_after_dislysis
325
-                                    .actual_treatment_minute
326
-                                : '/'
327
-                            }}分钟</span
328
-                          >
330
+                          血管通路:
331
+                           <span class="under-line"
332
+                          >&nbsp
333
+                           {{
334
+                            QueryPartById(
335
+                              record.assessment_before_dislysis &&
336
+                                record.assessment_before_dislysis
337
+                                  .blood_access_part_opera_id
338
+                                ? record.assessment_before_dislysis
339
+                                    .blood_access_part_opera_id
340
+                                : 0
341
+                            )
342
+                          }}
343
+                          {{
344
+                            record.assessment_before_dislysis &&
345
+                            record.assessment_before_dislysis
346
+                              .blood_access_part_opera_name
347
+                              ? record.assessment_before_dislysis
348
+                                  .blood_access_part_opera_name
349
+                              : ""
350
+                          }}
351
+                          </span
352
+                    >
329 353
                         </td>
330 354
                       </tr>
355
+                      <tr>
356
+                        <td style="text-align:left;margin-left:15px">
357
+                    干体重:
358
+                    <span class="under-line"
359
+                      >&nbsp;{{
360
+                        record.assessment_before_dislysis.dry_weight ? record.assessment_before_dislysis.dry_weight.dry_weight : "/"
361
+                      }}</span
362
+                    >kg
363
+                  </td>
364
+                   <td style="text-align:left;margin-left:15px">
365
+                    透前体重:
366
+                    <span class="under-line"
367
+                      >&nbsp;{{
368
+                        record.assessment_before_dislysis.weight_before
369
+                          ? record.assessment_before_dislysis.weight_before
370
+                          : "/"
371
+                      }}</span
372
+                    >kg
373
+                  </td>
374
+                      <td style="text-align:left;margin-left:15px">
375
+                    预脱:
376
+                    <span class="under-line"
377
+                      >&nbsp;{{
378
+                        record.prescription.target_ultrafiltration
379
+                          ? record.prescription.target_ultrafiltration
380
+                          : "/"
381
+                      }}</span
382
+                    >L
383
+                  </td>
384
+                  <td style="text-align:left;margin-left:15px">
385
+                    治疗时间:
386
+                    <span class="under-line"
387
+                      >&nbsp;{{
388
+                        record.prescription.dialysis_duration_hour
389
+                          ? record.prescription.dialysis_duration_hour
390
+                          : "0"
391
+                      }}小时{{
392
+                        record.prescription.dialysis_duration_minute
393
+                          ? record.prescription.dialysis_duration_minute
394
+                          : "0"
395
+                      }}分钟</span
396
+                    >
397
+                  </td>
398
+                      </tr>
331 399
                       <tr>
332 400
                         <td style="text-align:left;margin-left:15px">
333 401
                           血流量:
@@ -612,6 +680,10 @@
612 680
                     <p style="height:20px;line-height:20px">呼吸</p>
613 681
                     <p style="height:20px;line-height:20px">次/分</p>
614 682
                   </th>
683
+                  <th style="min-width:60px">
684
+                    <p style="height:20px;line-height:20px">血流量</p>
685
+                    <p style="height:20px;line-height:20px">ml/min</p>
686
+                  </th>
615 687
                   <th style="min-width:60px">
616 688
                     <p style="height:20px;line-height:20px">超滤量</p>
617 689
                     <p style="height:20px;line-height:20px">L</p>
@@ -628,7 +700,7 @@
628 700
                     <p style="height:20px;line-height:20px">跨膜压</p>
629 701
                     <p style="height:20px;line-height:20px">(mmHg)</p>
630 702
                   </th>
631
-                  <th style="min-width:60px">
703
+                  <th style="min-width:260px">
632 704
                     <p style="height:20px;line-height:20px">病情变化</p>
633 705
                   </th>
634 706
                 </tr>
@@ -650,9 +722,10 @@
650 722
                   </td>
651 723
                   <td>{{ monitor.pulse_frequency ? monitor.pulse_frequency : '/' }}</td>
652 724
                   <td>{{ monitor.breathing_rate ? monitor.breathing_rate : '/' }}</td>
725
+                  <td>{{monitor.blood_flow_volume?monitor.blood_flow_volume:"/"}}</td>
653 726
                   <td>
654 727
                     {{
655
-                    monitor.ultrafiltration_rate ? monitor.ultrafiltration_rate : '/'
728
+                    monitor.ultrafiltration_volume ? monitor.ultrafiltration_volume : '/'
656 729
                     }}
657 730
                   </td>
658 731
                   <td>
@@ -860,7 +933,10 @@
860 933
                       </td>
861 934
                       <td style="text-align:left;margin-left:15px;width:25%">
862 935
                         核对护士:
863
-                        <span class="under-line">&nbsp; </span>
936
+                        <span class="under-line">&nbsp;
937
+                        <span v-if="setAdminUserES(record.check, 'modifier') == ''">{{getAdminUser(record.check, 'modifier')}}</span>
938
+                        <img class="es-img" :src="setAdminUserES(record.check, 'modifier')" alt="" srcset=""> 
939
+                        </span>
864 940
                       </td>
865 941
                       <tr>
866 942
                         <td style="text-align:left;margin-left:15px">
@@ -895,7 +971,7 @@
895 971
                           <span class="under-line"
896 972
                           >&nbsp;{{ record.dialysis_order.systolic_blood_pressure }}/{{
897 973
                     record.dialysis_order.diastolic_blood_pressure
898
-                  }}</span
974
+                  }}&nbsp;mmHg</span
899 975
                           >
900 976
                         </td>
901 977
                         <td style="text-align:left;margin-left:15px">
@@ -915,7 +991,7 @@
915 991
                         </td>
916 992
                         <td style="text-align:left;margin-left:15px">
917 993
                           实际超滤量:
918
-                          <span class="under-line">&nbsp;{{record.assessment_after_dislysis.actual_ultrafiltration?record.assessment_after_dislysis.actual_ultrafiltration:'/'}}</span>
994
+                          <span class="under-line">&nbsp;{{record.assessment_after_dislysis.actual_ultrafiltration?record.assessment_after_dislysis.actual_ultrafiltration:'/'}}&nbsp;L</span>
919 995
                         </td>
920 996
                       </tr>
921 997
                       <tr>
@@ -956,15 +1032,7 @@
956 1032
                         </td>
957 1033
                         <td style="text-align:left;margin-left:15px">
958 1034
                           透析器凝血:
959
-                          <span class="under-line" v-if="record.assessment_after_dislysis.dialyzer === 0">&nbsp;/</span>
960
-                          <span class="under-line"
961
-                                v-if="record.assessment_after_dislysis.dialyzer === 1">&nbsp;0级</span>
962
-                          <span class="under-line"
963
-                                v-if="record.assessment_after_dislysis.dialyzer === 2">&nbsp;1级</span>
964
-                          <span class="under-line"
965
-                                v-if="record.assessment_after_dislysis.dialyzer === 3">&nbsp;2级</span>
966
-                          <span class="under-line"
967
-                                v-if="record.assessment_after_dislysis.dialyzer === 4">&nbsp;3级</span>
1035
+                          <span class="under-line">{{record.assessment_after_dislysis.cruor?record.assessment_after_dislysis.cruor:"/"}}</span>
968 1036
                         </td>
969 1037
                       </tr>
970 1038
                       <td style="text-align:left;margin-left:15px;width:200px">
@@ -1482,6 +1550,24 @@
1482 1550
           return val.age
1483 1551
         }
1484 1552
       },
1553
+     checkIdCardNo(val) {
1554
+      var thisLen = val.length;
1555
+      var birth = "";
1556
+      if (thisLen == 15) {
1557
+        birth = "19" + val.substr(6, 6);
1558
+      } else {
1559
+        birth = val.substr(6, 8);
1560
+      }
1561
+      var birthTwo =
1562
+        birth.substr(0, 4) +
1563
+        "-" +
1564
+        birth.substr(4, 2) +
1565
+        "-" +
1566
+        birth.substr(6, 2);
1567
+
1568
+      var age = jsGetAge(birthTwo, "-");
1569
+      return age;
1570
+    },
1485 1571
       newAdviceGroupObject: function() {
1486 1572
         return Object.assign(
1487 1573
           {},

La diferencia del archivo ha sido suprimido porque es demasiado grande
+ 509 - 395
src/xt_pages/dialysis/template/DialysisPrintOrderSeven.vue


+ 2 - 8
src/xt_pages/dialysis/template/DialysisPrintOrderSix.vue Ver fichero

@@ -294,10 +294,7 @@
294 294
                   </div>
295 295
                 </div>
296 296
 
297
-                <div
298
-                  class="row"
299
-                  style="padding: 2px 0;line-height:23px;display:flex;"
300
-                >
297
+                <div class="row" style="padding: 2px 0;line-height:23px;display:flex;" >
301 298
                   <div class="inline_block" style="flex:1.4">
302 299
                     血管通路:
303 300
                     <div
@@ -1389,10 +1386,7 @@
1389 1386
                     min
1390 1387
                   </div>
1391 1388
                 </div>
1392
-                <div
1393
-                  class="row"
1394
-                  style="padding: 2px 0;line-height:23px;display:flex;"
1395
-                >
1389
+                <div  class="row"  style="padding: 2px 0;line-height:23px;display:flex;"  >
1396 1390
                   <div class="inline_block" style="flex:2;">
1397 1391
                     凝血程度:
1398 1392
                     <div

+ 5 - 5
src/xt_pages/dialysis/template/dialysisPrintOrderTwo.vue Ver fichero

@@ -13,7 +13,7 @@
13 13
         <div class="inline_block" style="margin-left: 5px;">
14 14
           住院号:
15 15
           <div class="under_line" style="width: 70px;text-align: left" v-if="receiverTreatmentAccess.admission_number">
16
-            {{receiverTreatmentAccess.admission_number}}
16
+            {{patientInfo_source_2?receiverTreatmentAccess.admission_number: '/'}}
17 17
           </div>
18 18
           <div class="under_line" style="width: 70px;text-align: left" v-else>
19 19
             {{'/'}}
@@ -305,7 +305,7 @@
305 305
           <div class="inline_block" style="margin-left: 5px;">
306 306
             住院号:
307 307
             <div class="under_line" style="width: 70px;text-align: left" v-if="receiverTreatmentAccess.admission_number">
308
-              {{receiverTreatmentAccess.admission_number}}
308
+              {{patientInfo_source_2?receiverTreatmentAccess.admission_number:'/'}}
309 309
             </div>
310 310
             <div class="under_line" style="width: 70px;text-align: left" v-else>
311 311
               {{'/'}}
@@ -601,7 +601,7 @@
601 601
         <div class="inline_block" style="margin-left: 5px;">
602 602
           住院号:
603 603
           <div class="under_line" style="width: 70px;text-align: left" v-if="receiverTreatmentAccess.admission_number">
604
-            {{receiverTreatmentAccess.admission_number}}
604
+            {{patientInfo_source_2?receiverTreatmentAccess.admission_number:'/'}}
605 605
           </div>
606 606
           <div class="under_line" style="width: 70px;text-align: left" v-else>
607 607
             {{'/'}}
@@ -940,7 +940,7 @@
940 940
             <div class="inline_block" style="margin-left: 5px;">
941 941
               住院号:
942 942
               <div class="under_line" style="width: 70px;text-align: left" v-if="receiverTreatmentAccess.admission_number">
943
-                {{receiverTreatmentAccess.admission_number}}
943
+                {{patientInfo_source_2?receiverTreatmentAccess.admission_number:'/'}}
944 944
               </div>
945 945
               <div class="under_line" style="width: 70px;text-align: left" v-else>
946 946
                 {{'/'}}
@@ -1647,7 +1647,7 @@
1647 1647
         if (this.receiverTreatmentAccess.condition == 1) {
1648 1648
           this.patientInfo_source_1 = false
1649 1649
           this.patientInfo_source_2 = true
1650
-        } else if (this.receiverTreatmentAccess.source == 2) {
1650
+        } else if (this.receiverTreatmentAccess.condition == 2) {
1651 1651
           this.patientInfo_source_2 = false
1652 1652
           this.patientInfo_source_1 = true
1653 1653
         } else {

+ 70 - 70
src/xt_pages/management/components/MultipleForm.vue Ver fichero

@@ -184,7 +184,7 @@
184 184
             width="100"
185 185
             align="center"
186 186
           >
187
-            <template slot-scope="scope">{{ scope.row.unit_type }}</template>
187
+            <template slot-scope="scope">{{ scope.row.device_mode }}</template>
188 188
           </el-table-column>
189 189
           <el-table-column
190 190
             prop="address"
@@ -287,10 +287,10 @@ import {
287 287
   getAllEquimentName,
288 288
   getComprehensive,
289 289
   getTotalCount
290
-} from "@/api/manage";
291
-import { uParseTime } from "@/utils/tools";
290
+} from '@/api/manage'
291
+import { uParseTime } from '@/utils/tools'
292 292
 export default {
293
-  name: "MultipleForm",
293
+  name: 'MultipleForm',
294 294
   props: {
295 295
     equimentid: Number
296 296
   },
@@ -300,77 +300,77 @@ export default {
300 300
       failure: 0,
301 301
       dialogVisible: false,
302 302
       form: {
303
-        zone: "",
304
-        device_number: "",
305
-        device_type: "",
306
-        device_model: "",
307
-        user_year: "",
308
-        start_time: "",
309
-        end_time: ""
303
+        zone: '',
304
+        device_number: '',
305
+        device_type: '',
306
+        device_model: '',
307
+        user_year: '',
308
+        start_time: '',
309
+        end_time: ''
310 310
       },
311 311
       userYear: [
312
-        { id: 0, name: "全部" },
313
-        { id: 1, name: "0~1" },
314
-        { id: 2, name: "1~3" },
315
-        { id: 3, name: "3~10" },
316
-        { id: 4, name: "10年以上" }
312
+        { id: 0, name: '全部' },
313
+        { id: 1, name: '0~1' },
314
+        { id: 2, name: '1~3' },
315
+        { id: 3, name: '3~10' },
316
+        { id: 4, name: '10年以上' }
317 317
       ],
318
-      value1: "",
319
-      value2: "",
318
+      value1: '',
319
+      value2: '',
320 320
       tableData: [],
321 321
       EquitmentType: [
322
-        { id: 0, name: "全部" },
323
-        { id: 1, name: "透析机" },
324
-        { id: 2, name: "水处理机" },
325
-        { id: 3, name: "报废机" },
326
-        { id: 4, name: "其他" }
322
+        { id: 0, name: '全部' },
323
+        { id: 1, name: '透析机' },
324
+        { id: 2, name: '水处理机' },
325
+        { id: 3, name: '报废机' },
326
+        { id: 4, name: '其他' }
327 327
       ],
328
-      DeviceType: [{ id: 0, name: "不限" }],
329
-      Numbers: [{ id: 0, number: "不限" }],
330
-      EquitmentName: [{ id: 0, equitment_name: "全部" }],
328
+      DeviceType: [{ id: 0, name: '不限' }],
329
+      Numbers: [{ id: 0, number: '不限' }],
330
+      EquitmentName: [{ id: 0, equitment_name: '全部' }],
331 331
       runOptions: [
332
-        { value: "1", label: "正常" },
333
-        { value: "2", label: "故障" }
332
+        { value: '1', label: '正常' },
333
+        { value: '2', label: '故障' }
334 334
       ]
335
-    };
335
+    }
336 336
   },
337 337
   methods: {
338 338
     open: function() {
339
-      this.dialogVisible = true;
339
+      this.dialogVisible = true
340 340
     },
341 341
     getAllSubregion() {
342 342
       getAllSubregion().then(response => {
343 343
         if (response.data.state === 1) {
344
-          var zone = response.data.data.zones;
345
-          var zones = [{ id: 0, name: "不限" }];
344
+          var zone = response.data.data.zones
345
+          var zones = [{ id: 0, name: '不限' }]
346 346
           for (let i = 0; i < zone.length; i++) {
347
-            const item = zone[i];
348
-            zones.push({ id: item.id, name: item.name });
347
+            const item = zone[i]
348
+            zones.push({ id: item.id, name: item.name })
349 349
           }
350
-          this.DeviceType = zones;
351
-          var number = response.data.data.numbers;
352
-          var numbers = [{ id: 0, number: "不限" }];
350
+          this.DeviceType = zones
351
+          var number = response.data.data.numbers
352
+          var numbers = [{ id: 0, number: '不限' }]
353 353
           for (let index = 0; index < number.length; index++) {
354
-            const item = number[index];
355
-            numbers.push({ id: item.id, number: item.number });
354
+            const item = number[index]
355
+            numbers.push({ id: item.id, number: item.number })
356 356
           }
357
-          this.Numbers = numbers;
357
+          this.Numbers = numbers
358 358
           // console.log('numbers', number)
359 359
         }
360
-      });
360
+      })
361 361
     },
362 362
     getAllEquimentName() {
363 363
       getAllEquimentName().then(response => {
364 364
         if (response.data.state == 1) {
365
-          var equit = response.data.data.equit;
366
-          var equits = [{ id: 0, equitment_name: "全部" }];
365
+          var equit = response.data.data.equit
366
+          var equits = [{ id: 0, equitment_name: '全部' }]
367 367
           for (let index = 0; index < equit.length; index++) {
368
-            const item = equit[index];
369
-            equits.push({ id: item.id, equitment_name: item.equitment_name });
368
+            const item = equit[index]
369
+            equits.push({ id: item.id, equitment_name: item.equitment_name })
370 370
           }
371
-          this.EquitmentName = equits;
371
+          this.EquitmentName = equits
372 372
         }
373
-      });
373
+      })
374 374
     },
375 375
     getComprehensive() {
376 376
       const params = {
@@ -380,66 +380,66 @@ export default {
380 380
         year: this.form.user_year,
381 381
         starttime: this.form.start_time,
382 382
         endtime: this.form.end_time
383
-      };
383
+      }
384 384
       getComprehensive(params).then(response => {
385 385
         if (response.data.state === 1) {
386
-          var macher = response.data.data.macher;
387
-          console.log("设备型号5555", macher);
386
+          var macher = response.data.data.macher
387
+        
388 388
           for (let index = 0; index < macher.length; index++) {
389 389
             if (macher[index].device_type === 1) {
390
-              macher[index].device_type = "透析机";
390
+              macher[index].device_type = '透析机'
391 391
             }
392 392
             if (macher[index].device_type === 2) {
393
-              macher[index].device_type = "水处理机";
393
+              macher[index].device_type = '水处理机'
394 394
             }
395 395
             if (macher[index].device_type === 3) {
396
-              macher[index].device_type = "其他";
396
+              macher[index].device_type = '其他'
397 397
             }
398 398
 
399 399
             if (macher[index].machine_status === 1) {
400
-              macher[index].machine_status = "使用机";
400
+              macher[index].machine_status = '使用机'
401 401
             }
402 402
             if (macher[index].machine_status === 2) {
403
-              macher[index].machine_status = "备用机";
403
+              macher[index].machine_status = '备用机'
404 404
             }
405 405
             if (macher[index].machine_status === 3) {
406
-              macher[index].machine_status = "急诊机";
406
+              macher[index].machine_status = '急诊机'
407 407
             }
408 408
             if (macher[index].machine_status === 4) {
409
-              macher[index].machine_status = "报废机";
409
+              macher[index].machine_status = '报废机'
410 410
             }
411 411
             if (macher[index].rubbish_reason === 0) {
412
-              macher[index].rubbish_reason = "";
412
+              macher[index].rubbish_reason = ''
413 413
             }
414 414
           }
415 415
           // console.log('macher', macher)
416
-          this.tableData = macher;
416
+          this.tableData = macher
417 417
         }
418
-      });
418
+      })
419 419
     },
420 420
     getTime(time) {
421 421
       if (time === 0) {
422
-        return "";
422
+        return ''
423 423
       } else {
424
-        return uParseTime(time, "{y}-{m}-{d}");
424
+        return uParseTime(time, '{y}-{m}-{d}')
425 425
       }
426 426
     },
427 427
     getTotalCount() {
428 428
       getTotalCount().then(response => {
429 429
         if (response.data.state === 1) {
430
-          var total = response.data.data.total;
431
-          // console.log('total ========', total)
432
-          this.failure_times = total;
430
+          var total = response.data.data.total
431
+     
432
+          this.failure_times = total
433 433
         }
434
-      });
434
+      })
435 435
     }
436 436
   },
437 437
   created() {
438
-    this.getAllSubregion();
439
-    this.getAllEquimentName();
440
-    this.getTotalCount();
438
+    this.getAllSubregion()
439
+    this.getAllEquimentName()
440
+    this.getTotalCount()
441 441
   }
442
-};
442
+}
443 443
 </script>
444 444
 
445 445
 <style scoped></style>

+ 55 - 24
src/xt_pages/management/components/PlanForm.vue Ver fichero

@@ -6,10 +6,10 @@
6 6
       width="55%"
7 7
       center
8 8
     >
9
-      <el-form ref="form" :model="form">
9
+      <el-form ref="form" :model="form" :rules="rules">
10 10
         <el-row>
11 11
           <el-col :span="10">
12
-            <el-form-item label="设备型号:">
12
+            <el-form-item label="设备型号:" required prop="device_type">
13 13
               <el-select style="width:135px" v-model="form.device_type">
14 14
                 <el-option
15 15
                   v-for="item in this.DeviceType"
@@ -21,7 +21,7 @@
21 21
             </el-form-item>
22 22
           </el-col>
23 23
           <el-col :span="10">
24
-            <el-form-item label="消毒时长:">
24
+            <el-form-item label="消毒时长:" required prop="disinfec_time">
25 25
               <el-input
26 26
                 style="width:135px"
27 27
                 v-model="form.disinfec_time"
@@ -32,7 +32,7 @@
32 32
         </el-row>
33 33
         <el-row>
34 34
           <el-col :span="10">
35
-            <el-form-item label="时间:">
35
+            <el-form-item label="时间:" required prop="time">
36 36
               <el-select
37 37
                 v-model="form.time"
38 38
                 multiple
@@ -52,7 +52,7 @@
52 52
             </el-form-item>
53 53
           </el-col>
54 54
           <el-col :span="10">
55
-            <el-form-item label="班次:">
55
+            <el-form-item label="班次:" required prop="class_time">
56 56
               <el-select
57 57
                 v-model="form.class_time"
58 58
                 multiple
@@ -211,7 +211,13 @@ export default {
211 211
       ],
212 212
       DeviceType: [],
213 213
       planid: 0,
214
-      plandata: 0
214
+      plandata: 0,
215
+      rules: {
216
+        device_type: [{ required: true, message: "请输入设备型号" }],
217
+        disinfec_time: [{ required: true, message: "请输入消毒时长" }],
218
+        time: [{ required: true, message: "请输入时间" }],
219
+        class_time: [{ required: true, message: "请输入班次" }]
220
+      }
215 221
     };
216 222
   },
217 223
   methods: {
@@ -230,9 +236,15 @@ export default {
230 236
     savePlan(formName) {
231 237
       var equimentid = this.equimentid;
232 238
       // console.log('equimentid', equimentid);
233
-      var devicetype = this.form.device_type;
234
-      var devicetypes = parseInt(devicetype);
235
-      this.form.device_type = devicetypes;
239
+      console.log("数据---", this.form.device_type);
240
+      if (this.form.device_type === "") {
241
+        this.form.device_type === "";
242
+      }
243
+      if (this.form.device_type !== "") {
244
+        var devicetype = this.form.device_type;
245
+        var devicetypes = parseInt(devicetype);
246
+        this.form.device_type = devicetypes;
247
+      }
236 248
 
237 249
       var ways = this.form.way;
238 250
       var way = parseInt(ways);
@@ -249,27 +261,46 @@ export default {
249 261
       var disinfectants = this.form.disinfectant;
250 262
       var disinfectant = parseInt(disinfectants);
251 263
       this.form.disinfectant = disinfectant;
252
-      savePlan(this.form, this.equimentid).then(response => {
253
-        if (response.data.state === 1) {
254
-          var msg = response.data.data.msg;
255
-          // console.log('msg', msg);
256
-          this.$message.success("保存成功");
257
-          this.dialogVisible = false;
258
-          this.$emit("getAllPlan");
259
-          this.$emit("getAllPlanDetail");
260
-          // 如果保存成功通过状态值改变父组键表格的值
261
-          this.plandata = 1;
262
-          this.$emit("func", this.plandata);
263
-        } else {
264
-          this.$message.error("该消毒计划已存在");
264
+      this.$refs[formName].validate(valid => {
265
+        if (valid) {
266
+          savePlan(this.form, this.equimentid).then(response => {
267
+            if (response.data.state === 1) {
268
+              var msg = response.data.data.msg;
269
+              // console.log('msg', msg);
270
+              this.$message.success("保存成功");
271
+              this.form.device_type = "";
272
+              this.form.disinfec_time = [];
273
+              this.form.time = [];
274
+              this.form.class_time = "";
275
+              this.form.way = 0;
276
+              this.form.machine_disinfectant = 0;
277
+              this.form.disinfectant_way = 0;
278
+              this.form.disinfectant = 0;
279
+              this.dialogVisible = false;
280
+              this.$emit("getAllPlan");
281
+              this.$emit("getAllPlanDetail");
282
+              // 如果保存成功通过状态值改变父组键表格的值
283
+              this.plandata = 1;
284
+              this.$emit("func", this.plandata);
285
+            } else {
286
+              this.$message.error("该消毒计划已存在");
287
+              // this.form.disinfec_time = "";
288
+              // this.form.time = [];
289
+              // this.form.class_time = [];
290
+              // this.form.way = 0;
291
+              // this.form.machine_disinfectant = 0;
292
+              // this.form.disinfectant_way = 0;
293
+              // this.form.disinfectant = 0;
294
+            }
295
+          });
265 296
         }
266 297
       });
267 298
     },
268 299
     getAllEquitType() {
269 300
       getAllEquitType().then(response => {
270 301
         if (response.data.state === 1) {
271
-          var equitname = response.data.data.mode;
272
-          this.DeviceType = equitname;
302
+          this.DeviceType = response.data.data.mode;
303
+          console.log("类型", this.DeviceType);
273 304
         }
274 305
       });
275 306
     }

+ 1 - 1
src/xt_pages/management/components/QualityForm.vue Ver fichero

@@ -1691,7 +1691,7 @@ export default {
1691 1691
           }
1692 1692
           this.tableData = cultures;
1693 1693
           var dialysate = response.data.data.dialysate
1694
-          console.log("dialysate", dialysate);
1694
+          //console.log("dialysate", dialysate);
1695 1695
           for (let index = 0; index < dialysate.length; index++) {
1696 1696
             if (dialysate[index].specimenb === 0) {
1697 1697
               dialysate[index].specimenb = "";

+ 94 - 50
src/xt_pages/management/components/RepairForm.vue Ver fichero

@@ -226,7 +226,7 @@
226 226
     <el-dialog
227 227
       title="编辑维修记录"
228 228
       :visible.sync="dialogVisible"
229
-      width="65%"
229
+      width="75%"
230 230
       center
231 231
     >
232 232
       <el-form :model="guaForm" ref="guaForm" :rules="repirRules">
@@ -370,8 +370,11 @@
370 370
               </el-upload>
371 371
             </el-form-item>
372 372
             <a class="el-upload-list__item-name">
373
-              <i>
374
-                <a @click="toLink()">{{ filename }}</a>
373
+              <i style="color:#0000EE">
374
+                <a :href="guaForm.images" target="_blank">{{ filename }}</a
375
+                ><span v-show="classShow" @click="hiddenShow"
376
+                  ><li class="el-icon-circle-close"></li
377
+                ></span>
375 378
               </i>
376 379
             </a>
377 380
           </el-col>
@@ -423,10 +426,12 @@ import {
423 426
   UpdateRepair,
424 427
   DeleteRepair,
425 428
   queryRepair,
426
-  DeleteRepairs
429
+  DeleteRepairs,
430
+  DeleteImages
427 431
 } from "@/api/manage";
428 432
 import { uParseTime } from "@/utils/tools";
429 433
 import { getFileExtension } from "@/utils/tools";
434
+import { getToken } from "@/api/qiniu";
430 435
 export default {
431 436
   name: "RepairForm",
432 437
   data() {
@@ -482,7 +487,8 @@ export default {
482 487
       limit: 10,
483 488
       page: 1,
484 489
       total: 0,
485
-      filename: ""
490
+      filename: "",
491
+      classShow: false
486 492
     };
487 493
   },
488 494
   methods: {
@@ -511,7 +517,7 @@ export default {
511 517
       getAllRepair(this.limit, this.page).then(response => {
512 518
         if (response.data.state === 1) {
513 519
           var repair = response.data.data.repair;
514
-          // console.log('repair是', repair)
520
+
515 521
           // eslint-disable-next-line no-unused-vars
516 522
           var total = response.data.data.total;
517 523
           this.total = total;
@@ -549,6 +555,16 @@ export default {
549 555
             if (repair[index].exclude === 3) {
550 556
               repair[index].exclude = "未解决";
551 557
             }
558
+
559
+            if (repair[index].start_time <= 0) {
560
+              repair[index].start_time = 0;
561
+            }
562
+            if (repair[index].arrive_time <= 0) {
563
+              repair[index].arrive_time = 0;
564
+            }
565
+            if (repair[index].finish_time <= 0) {
566
+              repair[index].finish_time = 0;
567
+            }
552 568
           }
553 569
           this.tableData = repair;
554 570
         }
@@ -572,22 +588,10 @@ export default {
572 588
         if (response.data.state === 1) {
573 589
           var repair = response.data.data.repair;
574 590
           console.log("repair", repair);
575
-          this.guaForm.guarantee_date = uParseTime(
576
-            repair.guarantee_date,
577
-            "{y}-{m}-{d}"
578
-          );
579
-          this.guaForm.start_time = uParseTime(
580
-            repair.start_time,
581
-            "{y}-{m}-{d} {h}:{i}"
582
-          );
583
-          this.guaForm.arrive_time = uParseTime(
584
-            repair.arrive_time,
585
-            "{y}-{m}-{d} {h}:{i}"
586
-          );
587
-          this.guaForm.finish_time = uParseTime(
588
-            repair.finish_time,
589
-            "{y}-{m}-{d} {h}:{i}"
590
-          );
591
+          this.guaForm.guarantee_date = this.getTime(repair.guarantee_date);
592
+          this.guaForm.start_time = this.getTimeTwo(repair.start_time);
593
+          this.guaForm.arrive_time = this.getTimeTwo(repair.arrive_time);
594
+          this.guaForm.finish_time = this.getTimeTwo(repair.finish_time);
591 595
           this.guaForm.total_distance = repair.total_distance;
592 596
           this.guaForm.failure_stage = repair.failure_stage;
593 597
           this.guaForm.fault_description = repair.fault_description;
@@ -599,28 +603,38 @@ export default {
599 603
           this.guaForm.code_information = repair.code_information;
600 604
           this.guaForm.id = repair.id;
601 605
           this.filename = repair.image_name;
606
+          if (repair.image_name === "") {
607
+            this.classShow = false;
608
+          }
609
+          if (repair.image_name !== "") {
610
+            this.classShow = true;
611
+          }
602 612
         }
603 613
       });
604 614
     },
605
-    handleSuccess(res, file, fileList) {
606
-      this.guaForm.images = this.qiniuDomain + res.url;
607
-      console.log("图片上传", this.guaForm.images);
608
-      this.$refs.upload.clearFiles();
609
-      this.filename = file.name;
610
-      this.guaForm.image_name = file.name;
611
-    },
612 615
     beforeUploadFile(file) {
616
+      var testmsg = file.name.substring(file.name.lastIndexOf(".") + 1);
617
+      const extension =
618
+        testmsg === "jpg" ||
619
+        testmsg === "JPG" ||
620
+        testmsg === "png" ||
621
+        testmsg === "PNG" ||
622
+        testmsg === "gif" ||
623
+        testmsg === "GIF";
624
+      if (!extension) {
625
+        // eslint-disable-next-line no-mixed-spaces-and-tabs
626
+        this.$message({
627
+          // eslint-disable-next-line no-mixed-spaces-and-tabs
628
+          message: "上传文件只能是jpg或者png或者gif格式!",
629
+          type: "error"
630
+        });
631
+        return false; // 必须加上return false; 才能阻止
632
+      }
613 633
       this.filename = file.name;
634
+      this.classShow = true;
614 635
       this.guaForm.image_name = file.name;
615 636
       const isLt2M = file.size / 1024 / 1024 <= 2048;
616 637
       console.log("filename", file);
617
-      // console.log('视频大小', file.size / 1024 / 1024)
618
-      // console.log('isLt2M是什么', isLt2M)
619
-
620
-      if (!isLt2M) {
621
-        this.$message.error("上传视频大小不能超过 2G!");
622
-        return false;
623
-      }
624 638
       var date = new Date();
625 639
       var ext = getFileExtension(file.name);
626 640
       var key =
@@ -651,23 +665,26 @@ export default {
651 665
           });
652 666
       });
653 667
     },
654
-    toLink() {
655
-      window.location.href = this.guaForm.images;
668
+    handleSuccess(res, file, fileList) {
669
+      this.guaForm.images = this.qiniuDomain + res.url;
670
+      console.log("图片路径", this.guaForm.images);
671
+      this.$refs.upload.clearFiles();
672
+      this.filename = file.name;
673
+      this.guaForm.imageName = file.name;
656 674
     },
657 675
     UpdateRepair(formName) {
658 676
       this.$refs[formName].validate(valid => {
659
-        this.guaForm.start_time = uParseTime(
660
-          this.guaForm.start_time,
661
-          "{y}-{m}-{d} {h}:{i}"
662
-        );
663
-        this.guaForm.arrive_time = uParseTime(
664
-          this.guaForm.arrive_time,
665
-          "{y}-{m}-{d} {h}:{i}"
666
-        );
667
-        this.guaForm.finish_time = uParseTime(
668
-          this.guaForm.finish_time,
669
-          "{y}-{m}-{d} {h}:{i}"
670
-        );
677
+        if (this.guaForm.start_time === "") {
678
+          this.guaForm.start_time = "0";
679
+        }
680
+
681
+        if (this.guaForm.arrive_time === "") {
682
+          this.guaForm.arrive_time = "0";
683
+        }
684
+
685
+        if (this.guaForm.finish_time === "") {
686
+          this.guaForm.finish_time = "0";
687
+        }
671 688
 
672 689
         if (this.guaForm.failure_stage === "") {
673 690
           this.guaForm.failure_stage = 0;
@@ -767,6 +784,33 @@ export default {
767 784
           }
768 785
         });
769 786
       });
787
+    },
788
+    hiddenShow() {
789
+      this.$confirm(
790
+        "确认要删除所选图片吗? <br>删除后,信息将无法恢复",
791
+        "删除提示",
792
+        {
793
+          dangerouslyUseHTMLString: true,
794
+          confirmButtonText: "确定",
795
+          cancelButtonText: "取消",
796
+          type: "warning"
797
+        }
798
+      ).then(() => {
799
+        DeleteImages(this.guaForm.id).then(response => {
800
+          if (response.data.state === 1) {
801
+            this.filename = "";
802
+            this.classShow = false;
803
+            var msg = response.data.data.msg;
804
+            this.$message.success("删除成功");
805
+          }
806
+        });
807
+      });
808
+    },
809
+    getTimeTwo(time) {
810
+      if (time < 0) {
811
+        return "";
812
+      }
813
+      return uParseTime(time, "{y}-{m}-{d} {h}:{i}");
770 814
     }
771 815
   },
772 816
   created() {

+ 4 - 4
src/xt_pages/management/components/UserForm.vue Ver fichero

@@ -1870,10 +1870,10 @@ export default {
1870 1870
               information[index].clean = ''
1871 1871
             }
1872 1872
           }
1873
-          console.log('消毒时间', information)
1873
+         // console.log('消毒时间', information)
1874 1874
           this.tableData = information
1875 1875
           var total = response.data.data.total
1876
-          console.log('total是什么', total)
1876
+         // console.log('total是什么', total)
1877 1877
           this.total = total
1878 1878
         }
1879 1879
       })
@@ -1916,7 +1916,7 @@ export default {
1916 1916
       getUserForm(id, this.limit, this.page).then(response => {
1917 1917
         if (response.data.state === 1) {
1918 1918
           var information = response.data.data.information
1919
-          console.log('数据是', information)
1919
+         // console.log('数据是', information)
1920 1920
           // eslint-disable-next-line no-unused-vars
1921 1921
           var addmacher = response.data.data.addmacher
1922 1922
           // console.log('addmacher', addmacher)
@@ -2238,7 +2238,7 @@ export default {
2238 2238
       changeBed(id).then(response => {
2239 2239
         if (response.data.state === 1) {
2240 2240
           var bed = response.data.data.bed
2241
-          console.log('aa', bed.length)
2241
+         
2242 2242
           if (bed.length !== 0) {
2243 2243
             this.form.bed = ''
2244 2244
             this.bedNumberTwo = bed

+ 251 - 100
src/xt_pages/management/home.vue Ver fichero

@@ -454,55 +454,55 @@
454 454
                                   </el-form-item>
455 455
                                </el-col>
456 456
                                <el-col :span="7">
457
-                                  <el-form-item label="备注:">
458
-                                      <el-input style="width:150px" v-model="form.remarks" :disabled="disableFour"></el-input>
459
-                                  </el-form-item>
457
+                                   <el-form-item label="消毒方式:">
458
+                                        <el-select style="width:135px" v-model="form.Disinfection_mode" :disabled="disableFour">
459
+                                          <el-option
460
+                                           v-for="item in this.DisinfectionMode"
461
+                                           :key="item.id"
462
+                                           :label="item.name"
463
+                                           :value="item.id"
464
+                                           ></el-option>
465
+                                         </el-select>
466
+                                     </el-form-item>
460 467
                                </el-col>
461 468
                                <el-col :span="7">
462
-                                  <el-form-item label="报废日期:">
463
-                                    <el-date-picker
464
-                                    v-model="form.rubbish_date"
465
-                                   prefix-icon="none"
466
-                                    type="date"
467
-                                    placeholder="请选择"
468
-                                    format="yyyy-MM-dd"
469
-                                     value-format="yyyy-MM-dd"
470
-                                     style="width:135px"
471
-                                     :disabled="disableFour">
472
-                                   </el-date-picker>
473
-                                 </el-form-item>
469
+                                    <el-form-item label="备注:">
470
+                                      <el-input style="width:150px" v-model="form.remarks" :disabled="disableFour"></el-input>
471
+                                    </el-form-item>
474 472
                                 </el-col>
475 473
                              </el-row>
476 474
                              <el-row>
477 475
                                <el-col :span="7">
478
-                                   <el-form-item label="报废原因:">
479
-                                     <el-select style="width:150px" v-model="form.rubbish_reason" :disabled="disableFour">
480
-                                       <el-option v-for="item in this.DisCardResion" :key="item.id" :label="item.name" :value="item.id" ></el-option>
481
-                                     </el-select>
476
+                                   <el-form-item label="报废日期:">
477
+                                     <el-date-picker
478
+                                       v-model="form.rubbish_date"
479
+                                       prefix-icon="none"
480
+                                       type="date"
481
+                                       placeholder="请选择"
482
+                                       format="yyyy-MM-dd"
483
+                                       value-format="yyyy-MM-dd"
484
+                                       style="width:135px"
485
+                                       :disabled="disableFour">
486
+                                    </el-date-picker>
482 487
                                    </el-form-item>
483 488
                                 </el-col>
484 489
                                 <el-col :span="7">
485
-                                 <el-form-item label="使用年限(年):">
486
-                                      <el-input style="width:150px" v-model="form.user_year" :disabled="disableFour"></el-input>
487
-                                 </el-form-item>
490
+                                    <el-form-item label="报废原因:">
491
+                                       <el-select style="width:150px" v-model="form.rubbish_reason" :disabled="disableFour">
492
+                                         <el-option v-for="item in this.DisCardResion" :key="item.id" :label="item.name" :value="item.id" ></el-option>
493
+                                        </el-select>
494
+                                     </el-form-item>
488 495
                                 </el-col>
489
-                                 <el-col :span="7">
490
-                                   <el-form-item label="工作时长(h):">
491
-                                       <el-input style="width:150px" v-model="form.work_time" :disabled="disableFour"></el-input>
492
-                                   </el-form-item>
496
+                                 <el-col :span="7">      
497
+                                    <el-form-item label="使用年限(年):">
498
+                                      <el-input style="width:150px" v-model="form.user_year" :disabled="disableFour"></el-input>
499
+                                    </el-form-item>
493 500
                                 </el-col>
494 501
                              </el-row>
495 502
                              <el-row>
496
-                                <el-col :span="8">
497
-                                    <el-form-item label="消毒方式:">
498
-                                        <el-select style="width:135px" v-model="form.Disinfection_mode" :disabled="disableFour">
499
-                                          <el-option
500
-                                           v-for="item in this.DisinfectionMode"
501
-                                           :key="item.id"
502
-                                           :label="item.name"
503
-                                           :value="item.id"
504
-                                           ></el-option>
505
-                                         </el-select>
503
+                                 <el-col :span="8">
504
+                                      <el-form-item label="工作时长(h):">
505
+                                         <el-input style="width:150px" v-model="form.work_time" :disabled="disableFour"></el-input>
506 506
                                      </el-form-item>
507 507
                                   </el-col>
508 508
                                  <el-col :span="8">
@@ -1306,8 +1306,8 @@
1306 1306
                                        <el-checkbox v-model="userform.germ_checked">更换</el-checkbox>
1307 1307
                                        <span class="warn" v-show="warnShowTwo">您已一个月未更换,请注意检测</span>
1308 1308
                                      </el-form-item>
1309
-                                      
1310
-                                     </el-col> 
1309
+
1310
+                                     </el-col>
1311 1311
                                    <el-col :span="8">
1312 1312
                                      <el-form-item class="newname" label="名称:">
1313 1313
                                        <el-select v-model="userform.germ_name" placeholder="请选择" style="width:150px">
@@ -1752,7 +1752,7 @@
1752 1752
                                           value-format="yyyy-MM-dd HH:mm"
1753 1753
                                           placeholder="选择时间"
1754 1754
                                           v-model="guaForm.start_time"
1755
-                                          style="width:150px;">
1755
+                                          style="width:185px;">
1756 1756
                                        </el-date-picker>
1757 1757
                                   </el-form-item>
1758 1758
                                </el-col>
@@ -1767,7 +1767,7 @@
1767 1767
                                           placeholder="请选择"
1768 1768
                                           format="yyyy-MM-dd"
1769 1769
                                           value-format="yyyy-MM-dd"
1770
-                                          style="width:150px">
1770
+                                          style="width:185px">
1771 1771
                                         </el-date-picker> -->
1772 1772
                                          <el-date-picker
1773 1773
                                           type="datetime"
@@ -1775,7 +1775,7 @@
1775 1775
                                           value-format="yyyy-MM-dd HH:mm"
1776 1776
                                           placeholder="选择时间"
1777 1777
                                           v-model="guaForm.arrive_time"
1778
-                                          style="width:150px;">
1778
+                                          style="width:185px;">
1779 1779
                                        </el-date-picker>
1780 1780
                                   </el-form-item>
1781 1781
                                </el-col>
@@ -1787,7 +1787,7 @@
1787 1787
                                           value-format="yyyy-MM-dd HH:mm"
1788 1788
                                           placeholder="选择时间"
1789 1789
                                           v-model="guaForm.finish_time"
1790
-                                          style="width:150px;">
1790
+                                          style="width:185px;">
1791 1791
                                        </el-date-picker>
1792 1792
                                   </el-form-item>
1793 1793
                                </el-col>
@@ -1864,11 +1864,12 @@
1864 1864
                                       :before-upload="beforeUploadFile"
1865 1865
                                       :limit="1"
1866 1866
                                       ref='upload'
1867
+                                      accept=".jpg,.png,.gif"
1867 1868
                                       >
1868 1869
                                         <el-button size="small" type="primary">上传图片</el-button>
1869 1870
                                       </el-upload>
1870
-                                     <a class="el-upload-list__item-name">
1871
-                                        <i><a @click="toLink()">{{filename}}</a></i>
1871
+                                     <a class="el-upload-list__item-name" v-show="classShow">
1872
+                                        <i style="color:#0000EE"><a :href="guaForm.images" target="_blank">{{filename}}</a><span @click="hiddenShow"><li class="el-icon-circle-close"></li></span></i>
1872 1873
                                      </a>
1873 1874
                                   </el-form-item>
1874 1875
                                </el-col>
@@ -1947,10 +1948,10 @@
1947 1948
          <remander-form ref="remanderform"> </remander-form>
1948 1949
     <!-- 编辑消毒计划 -->
1949 1950
      <el-dialog title="编辑消毒计划" :visible.sync="dialogVisible" width="50%" center>
1950
-       <el-form :model="machineform" ref="machineform">
1951
+       <el-form :model="machineform" ref="machineform" :rules="planRules">
1951 1952
         <el-row>
1952 1953
           <el-col :span="10">
1953
-            <el-form-item label="设备型号:">
1954
+            <el-form-item label="设备型号:" required prop = "device_type">
1954 1955
               <el-select style="width:135px" v-model="machineform.device_type">
1955 1956
                 <el-option
1956 1957
                   v-for="item in this.DeviceType"
@@ -1962,7 +1963,7 @@
1962 1963
             </el-form-item>
1963 1964
           </el-col>
1964 1965
           <el-col :span="10">
1965
-            <el-form-item label="消毒时长:">
1966
+            <el-form-item label="消毒时长:" required prop="disinfec_time">
1966 1967
               <el-input style="width:135px" v-model="machineform.disinfec_time"></el-input>
1967 1968
               <span>分钟</span>
1968 1969
             </el-form-item>
@@ -1970,7 +1971,7 @@
1970 1971
         </el-row>
1971 1972
         <el-row>
1972 1973
           <el-col :span="10">
1973
-            <el-form-item label="时间:">
1974
+            <el-form-item label="时间:" required prop="time">
1974 1975
               <el-select
1975 1976
                 v-model="machineform.time"
1976 1977
                 placeholder="请选择时间"
@@ -1986,7 +1987,7 @@
1986 1987
             </el-form-item>
1987 1988
           </el-col>
1988 1989
           <el-col :span="10">
1989
-            <el-form-item label="班次:">
1990
+            <el-form-item label="班次:" required prop="class_time">
1990 1991
               <el-select
1991 1992
                 v-model="machineform.class_time"
1992 1993
                 placeholder="请选择时间"
@@ -2074,7 +2075,7 @@
2074 2075
   import { getAllSubregion, getAllMachine, getMachineDetailById,
2075 2076
     UpdateMachineInfo, getAllPlan, getAllPlanDetail, DeletePlans,
2076 2077
     getAllEquimentName, EditPlanDetail, UpdatePlanInfo, SaveInformation, getPatientInfo,
2077
-    ChangeClass, getAllOrganization, getUserRegister, SaveQualityControl, getOrgName, SaveRepair, SaveBacteria, SaveLincomycin, getAutoData, getAllEquitType, UpdateMacheineTwo, getTotalNumber, getTimeWarning, getAllpatient, UpdateMachineInfoTwo, getPatientDetail, openDelete, getAllMode, selectChange, selectBed } from '@/api/manage'
2078
+    ChangeClass, getAllOrganization, getUserRegister, SaveQualityControl, getOrgName, SaveRepair, SaveBacteria, SaveLincomycin, getAutoData, getAllEquitType, UpdateMacheineTwo, getTotalNumber, getTimeWarning, getTimeBeteen, getAllpatient, UpdateMachineInfoTwo, getPatientDetail, openDelete, getAllMode, selectChange, selectBed } from '@/api/manage'
2078 2079
   import { uParseTime } from '@/utils/tools'
2079 2080
   import { getToken } from '@/api/qiniu'
2080 2081
   import PlanForm from './components/PlanForm'
@@ -2247,7 +2248,14 @@ export default {
2247 2248
           fluid_path: [{ required: true, message: '请填写消毒方式' }],
2248 2249
           disinfectant: [{ required: true, message: '请填写消毒液' }],
2249 2250
           disinfection_status: [{ required: true, message: '消毒状态' }],
2250
-          sign_name: [{ required: true, message: '请填写签名' }]
2251
+          sign_name: [{ required: true, message: '请填写签名', trigger: ['change'] }],
2252
+          classtype: [{ required: true, message: '请填写班次' }]
2253
+        },
2254
+        planRules: {
2255
+          device_type: [{ required: true, message: '请输入设备型号' }],
2256
+          disinfec_time: [{ required: true, message: '请输入消毒时长' }],
2257
+          time: [{ required: true, message: '请输入时间' }],
2258
+          class_time: [{ required: true, message: '请输入班次' }]
2251 2259
         },
2252 2260
         runOption: [
2253 2261
           { id: 1, name: '正常' },
@@ -2540,9 +2548,9 @@ export default {
2540 2548
         disableFour: true,
2541 2549
         disableFive: true,
2542 2550
         runDisable: true,
2543
-        warnShow: true,
2544
-        warnShowTwo: true,
2545
-        warnShowThree: true,
2551
+        warnShow: false,
2552
+        warnShowTwo: false,
2553
+        warnShowThree: false,
2546 2554
         bedZoneThree: [],
2547 2555
         bedNumberTwo: [],
2548 2556
         reverseMode: [
@@ -2554,7 +2562,8 @@ export default {
2554 2562
         deviceMode: [],
2555 2563
         zoneDisabled: false,
2556 2564
         bedid: '',
2557
-        unitType: ''
2565
+        unitType: '',
2566
+        classShow: false
2558 2567
       }
2559 2568
     },
2560 2569
     methods: {
@@ -2656,10 +2665,17 @@ export default {
2656 2665
         getAllMachine(this.forms.zone_id, this.forms.device_type).then(response => {
2657 2666
           if (response.data.state === 1) {
2658 2667
             var addmahcer = response.data.data.addmahcer
2659
-            console.log('addmacher是', addmahcer)
2668
+            console.log('查找的数据', addmahcer)
2660 2669
             this.tableDatatwo = addmahcer
2661 2670
             this.tabIndex = this.$route.query.index
2662
-            this.$refs.singleTable.setCurrentRow(this.tableDatatwo[this.tabIndex])
2671
+            var id = this.$route.query.id
2672
+            for (let i = 0; i < this.tableDatatwo.length; i++) {
2673
+              if (this.tableDatatwo[i].id == id) {
2674
+                this.$refs.singleTable.setCurrentRow(this.tableDatatwo[i])
2675
+                break
2676
+              }
2677
+            }
2678
+            // this.$refs.singleTable.setCurrentRow(this.tableDatatwo[this.tabIndex])
2663 2679
           }
2664 2680
         })
2665 2681
       },
@@ -2681,7 +2697,8 @@ export default {
2681 2697
         // 病人下机后插入数据
2682 2698
         this.getAutoData(val.id)
2683 2699
         this.getTotalNumber(val.id)
2684
-        this.getTimeWarning(val.id)
2700
+        // this.getTimeWarning(val.id)
2701
+        this.getTimeBeteen(val.id)
2685 2702
         this.getData(val.bed_id)
2686 2703
       },
2687 2704
       getAutoData(id) {
@@ -2700,28 +2717,28 @@ export default {
2700 2717
             // console.log('warning', warning)
2701 2718
             var time = this.getTimestamp(this.userform.date) - warning.stime
2702 2719
             // console.log('时间', time)
2703
-            if (time < 2678400 && warning.dialysis_checked === 1) {
2704
-              this.warnShow = false
2705
-            } else {
2706
-              this.warnShow = true
2707
-            }
2720
+            // if (time < 2678400 && warning.dialysis_checked === 1) {
2721
+            //   this.warnShow = false
2722
+            // } else {
2723
+            //   this.warnShow = true
2724
+            // }
2708 2725
             var germ = response.data.data.germ
2709 2726
             // console.log('germ', germ)
2710 2727
             var timetwo = this.getTimestamp(this.userform.date) - germ.stime
2711 2728
             // console.log('时间', timetwo)
2712
-            if (timetwo < 2678400 && germ.germ_checked === 1) {
2713
-              this.warnShowTwo = false
2714
-            } else {
2715
-              this.warnShowTwo = true
2716
-            }
2729
+            // if (timetwo < 2678400 && germ.germ_checked === 1) {
2730
+            //   this.warnShowTwo = false
2731
+            // } else {
2732
+            //   this.warnShowTwo = true
2733
+            // }
2717 2734
             var clean = response.data.data.clean
2718 2735
             var timethree = this.getTimestamp(this.userform.date) - clean.stime
2719 2736
             // console.log('时间', timethree)
2720
-            if (timethree < 2678400 && clean.clean === 1) {
2721
-              this.warnShowThree = false
2722
-            } else {
2723
-              this.warnShowThree = true
2724
-            }
2737
+            // if (timethree < 2678400 && clean.clean === 1) {
2738
+            //   this.warnShowThree = false
2739
+            // } else {
2740
+            //   this.warnShowThree = true
2741
+            // }
2725 2742
             var number = response.data.data.number
2726 2743
             // console.log('number', number)
2727 2744
             this.Number = number
@@ -2833,7 +2850,7 @@ export default {
2833 2850
             this.form.service_manufacturer = addmacher.service_manufacturer
2834 2851
 
2835 2852
             // this.form.unit_type = addmacher.unit_type
2836
-  
2853
+
2837 2854
             this.form.unit_type = parseInt(addmacher.device_mode)
2838 2855
             this.form.use_section = addmacher.use_section
2839 2856
             this.form.section_number = addmacher.section_number
@@ -2853,7 +2870,7 @@ export default {
2853 2870
             this.form.machine_status = addmacher.machine_status
2854 2871
             this.form.user_total = addmacher.user_total
2855 2872
             this.form.remarks = addmacher.remarks
2856
-
2873
+            // this.form.device_mode = addmacher.device_mode
2857 2874
             if (addmacher.rubbish_date !== 0) {
2858 2875
               this.form.rubbish_date = uParseTime(addmacher.rubbish_date, '{y}-{m}-{d}')
2859 2876
             }
@@ -2964,11 +2981,25 @@ export default {
2964 2981
             // console.log('form', this.form)
2965 2982
             if (response.data.state === 1) {
2966 2983
               var addmacher = response.data.data.addmacher
2984
+              // console.log('addmacher----', addmacher)
2967 2985
               this.$message.success('修改成功')
2968 2986
               // this.$router.push({ path: '/device/home?index=' + this.tabIndex })
2969
-              this.getAllMachine()
2970
-              this.getAllSubregion()
2971
-              // this.$refs.singleTable.setCurrentRow(addmacher)
2987
+              for (let i = 0; i < this.tableDatatwo.length; i++) {
2988
+                if (this.tableDatatwo[i].id == addmacher.id) {
2989
+                  for (let j = 0; j < this.deviceMode.length; j++) {
2990
+                    if (this.deviceMode[j].id === parseInt(addmacher.unit_type)) {
2991
+                      addmacher.device_mode = this.deviceMode[j].device_mode
2992
+                      //   this.$forceUpdate()
2993
+                    }
2994
+                  }
2995
+  
2996
+                  this.tableDatatwo[i] = addmacher
2997
+                  // this.$refs.singleTable.setCurrentRow(this.tableDatatwo[i])
2998
+                }
2999
+              }
3000
+              // this.getAllMachine()
3001
+              // this.getAllSubregion()
3002
+              this.$refs.singleTable.setCurrentRow(addmacher)
2972 3003
               this.$forceUpdate()
2973 3004
             }
2974 3005
           })
@@ -3008,8 +3039,23 @@ export default {
3008 3039
                 // eslint-disable-next-line no-unused-vars
3009 3040
                 var addmacher = response.data.data.addmacher
3010 3041
                 this.$message.success('修改成功')
3011
-                this.getAllMachine()
3042
+                for (let i = 0; i < this.tableDatatwo.length; i++) {
3043
+                  if (this.tableDatatwo[i].id == addmacher.id) {
3044
+                    for (let j = 0; j < this.deviceMode.length; j++) {
3045
+                      if (this.deviceMode[j].id === parseInt(addmacher.unit_type)) {
3046
+                        addmacher.device_mode = this.deviceMode[j].device_mode
3047
+                      //   this.$forceUpdate()
3048
+                      }
3049
+                    }
3050
+  
3051
+                    this.tableDatatwo[i] = addmacher
3052
+                  // this.$refs.singleTable.setCurrentRow(this.tableDatatwo[i])
3053
+                  }
3054
+                }
3055
+                // this.getAllMachine()
3012 3056
                 this.getAllSubregion()
3057
+                this.$refs.singleTable.setCurrentRow(addmacher)
3058
+                this.$forceUpdate()
3013 3059
               }
3014 3060
             })
3015 3061
           }
@@ -3035,10 +3081,25 @@ export default {
3035 3081
         this.$refs[formName].validate(valid => {
3036 3082
           UpdateMacheineTwo(this.form).then(response => {
3037 3083
             if (response.data.state === 1) {
3038
-              var add = response.data.data.addmacher
3084
+              var addmacher = response.data.data.addmacher
3039 3085
               this.$message.success('修改成功')
3040
-              this.getAllMachine()
3086
+              for (let i = 0; i < this.tableDatatwo.length; i++) {
3087
+                if (this.tableDatatwo[i].id == addmacher.id) {
3088
+                  for (let j = 0; j < this.deviceMode.length; j++) {
3089
+                    if (this.deviceMode[j].id === parseInt(addmacher.unit_type)) {
3090
+                      addmacher.device_mode = this.deviceMode[j].device_mode
3091
+                      //   this.$forceUpdate()
3092
+                    }
3093
+                  }
3094
+  
3095
+                  this.tableDatatwo[i] = addmacher
3096
+                  // this.$refs.singleTable.setCurrentRow(this.tableDatatwo[i])
3097
+                }
3098
+              }
3099
+              // this.getAllMachine()
3041 3100
               this.getAllSubregion()
3101
+              this.$refs.singleTable.setCurrentRow(addmacher)
3102
+              this.$forceUpdate()
3042 3103
             }
3043 3104
           })
3044 3105
         })
@@ -3232,7 +3293,7 @@ export default {
3232 3293
         getAllPlanDetail(unit_type).then(response => {
3233 3294
           if (response.data.state === 1) {
3234 3295
             var plandetail = response.data.data.plandetail
3235
-            console.log('plandetail', plandetail)
3296
+            // console.log('plandetail', plandetail)
3236 3297
             for (let index = 0; index < plandetail.length; index++) {
3237 3298
               if (plandetail[index].time === 1) {
3238 3299
                 plandetail[index].time = '周一'
@@ -3384,11 +3445,16 @@ export default {
3384 3445
         var devicetype = this.machineform.device_type
3385 3446
         var devicetypes = parseInt(devicetype)
3386 3447
         this.machineform.device_type = devicetypes
3387
-
3388
-        var disinfectimes = this.machineform.disinfec_time
3389
-        var disinfectime = parseInt(disinfectimes)
3390
-        this.machineform.disinfec_time = disinfectime
3391
-
3448
+  
3449
+        if (this.machineform.disinfec_time === '') {
3450
+          this.machineform.disinfec_time = ''
3451
+        }
3452
+        if (this.machineform.disinfec_time !== '') {
3453
+          var disinfectimes = this.machineform.disinfec_time
3454
+          var disinfectime = parseInt(disinfectimes)
3455
+          this.machineform.disinfec_time = disinfectime
3456
+        }
3457
+  
3392 3458
         var times = this.machineform.time
3393 3459
         var time = parseInt(times)
3394 3460
         this.machineform.time = time
@@ -3448,7 +3514,6 @@ export default {
3448 3514
             }
3449 3515
 
3450 3516
             DeletePlans({ ids: ids }).then(response => {
3451
-              console.log('ids', ids)
3452 3517
               // eslint-disable-next-line eqeqeq
3453 3518
               if (response.data.state == 1) {
3454 3519
                 // eslint-disable-next-line no-unused-vars
@@ -3744,6 +3809,15 @@ export default {
3744 3809
                 this.userform.end_time = ''
3745 3810
                 this.userform.starttime = ''
3746 3811
                 this.userform.endtime = ''
3812
+                this.userform.date = ''
3813
+                this.userform.classtype = ''
3814
+                this.userform.zone = ''
3815
+                this.userform.patient_name = ''
3816
+                this.userform.sign_name = ''
3817
+                this.userform.bed_number = ''
3818
+                this.userform.hyperfiltratio = ''
3819
+                this.userform.weight_loss = ''
3820
+                this.userform.dialysis_time = ''
3747 3821
                 this.$message.success('添加成功')
3748 3822
                 // this.$refs.child.getInformationData()
3749 3823
               }
@@ -3788,7 +3862,7 @@ export default {
3788 3862
         getUserRegister(id).then(response => {
3789 3863
           if (response.data.state === 1) {
3790 3864
             var information = response.data.data.information
3791
-            console.log('使用登记', information)
3865
+            // console.log('产讯使用登记', information)
3792 3866
             // eslint-disable-next-line no-unused-vars
3793 3867
             var role = response.data.data.role
3794 3868
             // console.log('role', role)
@@ -3816,9 +3890,25 @@ export default {
3816 3890
             // this.userform.dialysis_time = information.dialysis_hour
3817 3891
             // this.userform.hyperfiltratio = information.hyperfiltratio
3818 3892
             // this.userform.weight_loss = information.weight_loss
3819
-            this.userform.dialysis_time = dislysis.actual_treatment_hour + 'h' + dislysis.actual_treatment_minute + 'min'
3820
-            this.userform.hyperfiltratio = dislysis.actual_ultrafiltration
3821
-            this.userform.weight_loss = dislysis.weight_loss
3893
+            if (information.hyperfiltratio === '') {
3894
+              this.userform.hyperfiltratio = dislysis.actual_ultrafiltration
3895
+            } else {
3896
+              this.userform.hyperfiltratio = information.hyperfiltratio
3897
+            }
3898
+            if (information.dialysis_hour === '') {
3899
+              this.userform.dialysis_time = dislysis.actual_treatment_hour + 'h' + dislysis.actual_treatment_minute + 'min'
3900
+            } else {
3901
+              this.userform.dialysis_time = information.dialysis_hour
3902
+            }
3903
+            // this.userform.dialysis_time = dislysis.actual_treatment_hour + 'h' + dislysis.actual_treatment_minute + 'min'
3904
+            // this.userform.hyperfiltratio = dislysis.actual_ultrafiltration
3905
+            if (information.weight_loss === '') {
3906
+              this.userform.weight_loss = dislysis.weight_loss
3907
+            } else {
3908
+              this.userform.weight_loss = information.weight_loss
3909
+            }
3910
+
3911
+            // this.userform.weight_loss = dislysis.weight_loss
3822 3912
             this.userform.warning_value = information.warning_value
3823 3913
             this.userform.user_total = information.user_total
3824 3914
             if (information.move === 0) {
@@ -3862,7 +3952,7 @@ export default {
3862 3952
               this.userform.germ_checked = false
3863 3953
             }
3864 3954
 
3865
-            if (information.germs_checked === 2) {
3955
+            if (information.germ_checked === 2) {
3866 3956
               this.userform.germ_checked = false
3867 3957
             }
3868 3958
 
@@ -4060,7 +4150,19 @@ export default {
4060 4150
         }
4061 4151
       },
4062 4152
       beforeUploadFile(file) {
4153
+        var testmsg = file.name.substring(file.name.lastIndexOf('.') + 1)
4154
+        const extension = testmsg === 'jpg' || testmsg === 'JPG' || testmsg === 'png' || testmsg === 'PNG' || testmsg === 'gif' || testmsg === 'GIF'
4155
+    	if (!extension) {
4156
+      					// eslint-disable-next-line no-mixed-spaces-and-tabs
4157
+      					this.$message({
4158
+      						// eslint-disable-next-line no-mixed-spaces-and-tabs
4159
+      						message: '上传文件只能是jpg或者png或者gif格式!',
4160
+      						type: 'error'
4161
+          })
4162
+          return false// 必须加上return false; 才能阻止
4163
+        }
4063 4164
         this.filename = file.name
4165
+        this.classShow = true
4064 4166
         this.guaForm.imageName = file.name
4065 4167
         const isLt2M = file.size / 1024 / 1024 <= 2048
4066 4168
         var date = new Date()
@@ -4142,6 +4244,8 @@ export default {
4142 4244
                 this.guaForm.exclude = 0
4143 4245
                 this.guaForm.images = ''
4144 4246
                 this.guaForm.treatment_process = ''
4247
+                this.classShow = false
4248
+                this.guaForm.imageName = ''
4145 4249
               }
4146 4250
             })
4147 4251
           }
@@ -4227,12 +4331,9 @@ export default {
4227 4331
       getTimeWarning(id) {
4228 4332
         getTimeWarning(id).then(response => {
4229 4333
           if (response.data.state === 1) {
4230
-            var information = response.data.data.informations
4231
-            // console.log('码字', information)
4232
-            // console.log('当前时间', this.getTimestamp(this.userform.date))
4233
-            // console.log('存入时间', information.stime)
4334
+            var information = response.data.data.information
4234 4335
             var time = this.getTimestamp(this.userform.date) - information.stime
4235
-            console.log('时间', time)
4336
+            // console.log('时间', time)
4236 4337
             // if (time < 2678400) {
4237 4338
             //   this.warnShow = false
4238 4339
             // }
@@ -4251,6 +4352,38 @@ export default {
4251 4352
           }
4252 4353
         })
4253 4354
       },
4355
+      getTimeBeteen(id) {
4356
+        var todayTime = moment(new Date()).format('YYYY-MM-DD')
4357
+        // console.log('todayTime', todayTime)
4358
+        getTimeBeteen(id, todayTime).then(response => {
4359
+          if (response.data.state === 1) {
4360
+            var timedata = response.data.data.timeData
4361
+            if (timedata.length === 0) {
4362
+              this.warnShow = true
4363
+            }
4364
+            if (timedata.length !== 0) {
4365
+              this.warnShow = false
4366
+            }
4367
+            var todayTimeTwo = response.data.data.timeDataTwo
4368
+            // console.log('todayTimeTwo', todayTimeTwo)
4369
+            if (todayTimeTwo.length === 0) {
4370
+              this.warnShowTwo = true
4371
+            }
4372
+            if (todayTimeTwo.length !== 0) {
4373
+              this.warnShowTwo = false
4374
+            }
4375
+
4376
+            var timeDataThree = response.data.data.timeDataThree
4377
+            console.log('timeDataThree', timeDataThree)
4378
+            if (timeDataThree.length === 0) {
4379
+              this.warnShowThree = true
4380
+            }
4381
+            if (timeDataThree.length !== 0) {
4382
+              this.warnShowThree = false
4383
+            }
4384
+          }
4385
+        })
4386
+      },
4254 4387
       getTimestamp(time) { // 把时间日期转成时间戳
4255 4388
         return (new Date(time)).getTime() / 1000
4256 4389
       },
@@ -4265,6 +4398,7 @@ export default {
4265 4398
       getAllMode() {
4266 4399
         getAllMode().then(response => {
4267 4400
           var mode = response.data.data.mode
4401
+  
4268 4402
           this.deviceMode = mode
4269 4403
         })
4270 4404
       },
@@ -4292,8 +4426,25 @@ export default {
4292 4426
             this.$forceUpdate()
4293 4427
             this.userform.bed_number = zone.id
4294 4428
             this.userform.zone = zone.zone_id
4295
-            console.log('zone', zone)
4429
+            // console.log('zone', zone)
4430
+          }
4431
+        })
4432
+      },
4433
+      hiddenShow() {
4434
+        this.$confirm(
4435
+          '确认要删除所选图片吗? <br>删除后,信息将无法恢复',
4436
+          '删除提示',
4437
+          {
4438
+            dangerouslyUseHTMLString: true,
4439
+            confirmButtonText: '确定',
4440
+            cancelButtonText: '取消',
4441
+            type: 'warning'
4296 4442
           }
4443
+        ).then(() => {
4444
+          this.filename = ''
4445
+          this.guaForm.imageName = ''
4446
+          this.guaForm.images = ''
4447
+          this.classShow = false
4297 4448
         })
4298 4449
       }
4299 4450
     },
@@ -4381,7 +4532,7 @@ export default {
4381 4532
    .a{
4382 4533
      margin-bottom: 10px;
4383 4534
       margin-top: 6px;
4384
-     
4535
+
4385 4536
    }
4386 4537
 
4387 4538
    .b{

+ 288 - 103
src/xt_pages/user/components/PatientForm.vue Ver fichero

@@ -15,12 +15,17 @@
15 15
             <el-col :span="7" :key="index">
16 16
               <el-form-item
17 17
                 :label="item.item_name"
18
-                v-if="item.range_type==1"
18
+                v-if="item.range_type == 1"
19 19
                 :key="item.item_id"
20 20
                 :prop="'formItem.' + index + '.value'"
21 21
               >
22
-                <el-input placeholder="请填入" v-model="item.value" style="width:95%" type="number">
23
-                  <template slot="append">{{item.unit}}</template>
22
+                <el-input
23
+                  placeholder="请填入"
24
+                  v-model="item.value"
25
+                  style="width:95%"
26
+                  type="number"
27
+                >
28
+                  <template slot="append">{{ item.unit }}</template>
24 29
                 </el-input>
25 30
               </el-form-item>
26 31
               <el-form-item
@@ -29,7 +34,11 @@
29 34
                 :key="item.item_id"
30 35
                 :prop="'formItem.' + index + '.value'"
31 36
               >
32
-                <el-select v-model="item.value" placeholder="请选择" style="width:95%">
37
+                <el-select
38
+                  v-model="item.value"
39
+                  placeholder="请选择"
40
+                  style="width:95%"
41
+                >
33 42
                   <el-option
34 43
                     v-for="(optionItem, oidex) in item.select_options"
35 44
                     :key="oidex"
@@ -39,7 +48,7 @@
39 48
                 </el-select>
40 49
               </el-form-item>
41 50
             </el-col>
42
-            <el-col :span="1" :key="'form-col'+index">&nbsp;</el-col>
51
+            <el-col :span="1" :key="'form-col' + index">&nbsp;</el-col>
43 52
           </template>
44 53
         </el-row>
45 54
       </el-form>
@@ -53,17 +62,26 @@
53 62
       <bread-crumb :crumbs="crumbs"></bread-crumb>
54 63
       <div class style="float:right;color: white">
55 64
         <el-button
56
-          :disabled="$store.getters.xt_user.subscibe.state==3||!subscibeFlag?true:false"
65
+          :disabled="
66
+            $store.getters.xt_user.subscibe.state == 3 || !subscibeFlag
67
+              ? true
68
+              : false
69
+          "
57 70
           type="primary"
58
-          v-if="this.isEdit==false"
71
+          v-if="this.isEdit == false"
59 72
           @click="resetForm('form')"
60 73
           icon="el-icon-circle-plus-outline"
61 74
           size="small"
62
-        >新增</el-button>
75
+          >新增</el-button
76
+        >
63 77
       </div>
64 78
     </div>
65 79
 
66
-    <div v-if="isEdit" class style="float:right;margin-right: 35px;margin-top: 10px">
80
+    <div
81
+      v-if="isEdit"
82
+      class
83
+      style="float:right;margin-right: 35px;margin-top: 10px"
84
+    >
67 85
       <!-- <el-button @click="$router.back(-1)" icon="el-icon-refresh" size="small">取消</el-button>
68 86
       <el-button :disabled="$store.getters.xt_user.subscibe.state==3||!subscibeFlag?true:false" type="primary" v-if="this.isEdit==false" @click="resetForm('form')"  icon="el-icon-circle-plus-outline" size="small">新增</el-button>
69 87
       <el-button :disabled="$store.getters.xt_user.subscibe.state==3||!subscibeFlag?true:false" @click="onSubmit('form')"  size="small" type="success" icon="el-icon-setting" >保存</el-button>
@@ -83,12 +101,16 @@
83 101
         <el-row>
84 102
           <el-col :span="20" class="form-table">
85 103
             <el-row :span="20">
86
-              <el-col :span="8" :style="isEdit?'width:360px':''">
104
+              <el-col :span="8" :style="isEdit ? 'width:360px' : ''">
87 105
                 <el-form-item label="姓名 : " class="is-required" prop="name">
88 106
                   <el-input v-model="form.name"></el-input>
89 107
                 </el-form-item>
90 108
               </el-col>
91
-              <el-col :span="8" :style="isEdit?'width:360px':''" style="height:59px;">
109
+              <el-col
110
+                :span="8"
111
+                :style="isEdit ? 'width:360px' : ''"
112
+                style="height:59px;"
113
+              >
92 114
                 <el-form-item label="性别 : " class="is-required" prop="gender">
93 115
                   <el-radio-group v-model="form.gender" @change="changeGender">
94 116
                     <el-radio
@@ -96,20 +118,35 @@
96 118
                       :key="item.value"
97 119
                       :label="item.value"
98 120
                       :value="item.value"
99
-                    >{{item.label}}</el-radio>
121
+                      >{{ item.label }}</el-radio
122
+                    >
100 123
                   </el-radio-group>
101 124
                 </el-form-item>
102 125
               </el-col>
103 126
 
104
-              <el-col :span="8" :style="isEdit?'width:360px':''">
105
-                <el-form-item label="身份证号 : " class="is-required" prop="idCardNo">
106
-                  <el-input v-model="form.idCardNo" @blur="checkIdCardNo"></el-input>
127
+              <el-col :span="8" :style="isEdit ? 'width:360px' : ''">
128
+                <el-form-item
129
+                  label="身份证号 : "
130
+                  class="is-required"
131
+                  prop="idCardNo"
132
+                >
133
+                  <el-input
134
+                    v-model="form.idCardNo"
135
+                    @blur="checkIdCardNo"
136
+                  ></el-input>
107 137
                 </el-form-item>
108 138
               </el-col>
109 139
 
110
-              <el-col :span="8" :style="isEdit?'width:360px':''" style="height:59px;">
140
+              <el-col
141
+                :span="8"
142
+                :style="isEdit ? 'width:360px' : ''"
143
+                style="height:59px;"
144
+              >
111 145
                 <el-form-item label="年龄 : " class="is-required" prop="age">
112
-                  <el-input v-model="form.age" placeholder="请填写年龄"></el-input>
146
+                  <el-input
147
+                    v-model="form.age"
148
+                    placeholder="请填写年龄"
149
+                  ></el-input>
113 150
                 </el-form-item>
114 151
               </el-col>
115 152
               <template v-if="isEdit">
@@ -121,7 +158,7 @@
121 158
                   </el-form-item>
122 159
                 </el-col>-->
123 160
 
124
-                <el-col :span="8" :style="isEdit?'width:360px':''">
161
+                <el-col :span="8" :style="isEdit ? 'width:360px' : ''">
125 162
                   <el-form-item label="透析号 : " class="is-required">
126 163
                     <el-input
127 164
                       v-model="form.dialysisNo"
@@ -142,7 +179,11 @@
142 179
                 </el-col>-->
143 180
 
144 181
                 <el-col :span="8">
145
-                  <el-form-item label="透析号 : " class="is-required" prop="dialysisNo">
182
+                  <el-form-item
183
+                    label="透析号 : "
184
+                    class="is-required"
185
+                    prop="dialysisNo"
186
+                  >
146 187
                     <el-input
147 188
                       v-model="form.dialysisNo"
148 189
                       placeholder="填写或自动生成"
@@ -150,16 +191,26 @@
150 191
                     ></el-input>
151 192
                     <el-button
152 193
                       style="width:35%;padding:10px 0;"
153
-                      :disabled="$store.getters.xt_user.subscibe.state==3||!subscibeFlag?true:false"
194
+                      :disabled="
195
+                        $store.getters.xt_user.subscibe.state == 3 ||
196
+                        !subscibeFlag
197
+                          ? true
198
+                          : false
199
+                      "
154 200
                       type="primary"
155 201
                       @click="generatedialysisno"
156
-                    >自动生成</el-button>
202
+                      >自动生成</el-button
203
+                    >
157 204
                   </el-form-item>
158 205
                 </el-col>
159 206
               </template>
160 207
 
161
-              <el-col :span="8" :style="isEdit?'width:360px':''">
162
-                <el-form-item label="出生日期 : " class="is-required" prop="birth">
208
+              <el-col :span="8" :style="isEdit ? 'width:360px' : ''">
209
+                <el-form-item
210
+                  label="出生日期 : "
211
+                  class="is-required"
212
+                  prop="birth"
213
+                >
163 214
                   <el-date-picker
164 215
                     v-model="form.birth"
165 216
                     type="date"
@@ -172,8 +223,12 @@
172 223
                 </el-form-item>
173 224
               </el-col>
174 225
 
175
-              <el-col :span="6" :style="isEdit?'width:380px':''">
176
-                <el-form-item label="首次肾脏治疗时间:" prop="firstDialysisDate" label-width="150px">
226
+              <el-col :span="6" :style="isEdit ? 'width:380px' : ''">
227
+                <el-form-item
228
+                  label="首次肾脏治疗时间:"
229
+                  prop="firstDialysisDate"
230
+                  label-width="150px"
231
+                >
177 232
                   <el-date-picker
178 233
                     v-model="form.firstDialysisDate"
179 234
                     type="date"
@@ -182,43 +237,63 @@
182 237
                   ></el-date-picker>
183 238
                 </el-form-item>
184 239
               </el-col>
185
-              <el-col :span="8" :style="isEdit?'width:360px':''">
186
-                <el-form-item label="本人电话 : " class="is-required" prop="phone">
240
+              <el-col :span="8" :style="isEdit ? 'width:360px' : ''">
241
+                <el-form-item
242
+                  label="本人电话 : "
243
+                  class="is-required"
244
+                  prop="phone"
245
+                >
187 246
                   <el-input v-model="form.phone" maxlength="20"></el-input>
188 247
                 </el-form-item>
189 248
               </el-col>
190
-              <el-col :span="8" :style="isEdit?'width:360px':''">
249
+              <el-col :span="8" :style="isEdit ? 'width:360px' : ''">
191 250
                 <el-form-item label="家属姓名 : ">
192
-                  <el-input v-model="form.contact_name" maxlength="20"></el-input>
251
+                  <el-input
252
+                    v-model="form.contact_name"
253
+                    maxlength="20"
254
+                  ></el-input>
193 255
                 </el-form-item>
194 256
               </el-col>
195
-              <el-col :span="8" :style="isEdit?'width:360px':''">
257
+              <el-col :span="8" :style="isEdit ? 'width:360px' : ''">
196 258
                 <el-form-item label="家属电话 : " prop="homeTelephone">
197
-                  <el-input v-model="form.homeTelephone" maxlength="20"></el-input>
259
+                  <el-input
260
+                    v-model="form.homeTelephone"
261
+                    maxlength="20"
262
+                  ></el-input>
198 263
                 </el-form-item>
199 264
               </el-col>
200 265
 
201
-              <el-col :span="8" :style="isEdit?'width:360px':''">
202
-                <el-form-item label="患者来源 : " class="is-required" prop="source">
266
+              <el-col :span="8" :style="isEdit ? 'width:360px' : ''">
267
+                <el-form-item
268
+                  label="患者来源 : "
269
+                  class="is-required"
270
+                  prop="source"
271
+                >
203 272
                   <el-radio-group v-model="form.source">
204 273
                     <el-radio
205 274
                       v-for="item in sourceOptions"
206 275
                       :key="item.value"
207 276
                       :label="item.value"
208 277
                       :value="item.value"
209
-                    >{{item.label}}</el-radio>
278
+                      >{{ item.label }}</el-radio
279
+                    >
210 280
                   </el-radio-group>
211 281
                 </el-form-item>
212 282
               </el-col>
213
-              <el-col :span="8" :style="isEdit?'width:360px':''">
214
-                <el-form-item label="治疗状态(转归) : " class="is-required" prop="lapseto">
283
+              <el-col :span="8" :style="isEdit ? 'width:360px' : ''">
284
+                <el-form-item
285
+                  label="治疗状态(转归) : "
286
+                  class="is-required"
287
+                  prop="lapseto"
288
+                >
215 289
                   <el-radio-group v-model="form.lapseto">
216 290
                     <el-radio
217 291
                       v-for="item in lapsetoOptions"
218 292
                       :key="item.value"
219 293
                       :label="item.value"
220 294
                       :value="item.value"
221
-                    >{{item.label}}</el-radio>
295
+                      >{{ item.label }}</el-radio
296
+                    >
222 297
                   </el-radio-group>
223 298
                 </el-form-item>
224 299
               </el-col>
@@ -229,15 +304,19 @@
229 304
                     <el-radio :label="1">无</el-radio>
230 305
                     <el-radio :label="2">有</el-radio>
231 306
                   </el-radio-group>
232
-                  <el-checkbox-group v-model="form.contagions" v-if="form.is_infectious == '2'">
307
+                  <el-checkbox-group
308
+                    v-model="form.contagions"
309
+                    v-if="form.is_infectious == '2'"
310
+                  >
233 311
                     <el-checkbox
234 312
                       v-for="item in contagionList"
235
-                      v-if="item.type==2"
313
+                      v-if="item.type == 2"
236 314
                       :label="item.id"
237 315
                       :key="item.id"
238 316
                       name="contagions"
239 317
                       :value="item.id"
240
-                    >{{item.name}}</el-checkbox>
318
+                      >{{ item.name }}</el-checkbox
319
+                    >
241 320
                   </el-checkbox-group>
242 321
                 </el-form-item>
243 322
               </el-col>
@@ -260,14 +339,22 @@
260 339
                     value-format="yyyy-MM-dd"
261 340
                     v-if="!isEdit"
262 341
                   ></el-date-picker>
263
-                  <el-button type="primary" @click="recordCheck()" v-if="!isEdit">录入检验检查</el-button>
342
+                  <el-button
343
+                    type="primary"
344
+                    @click="recordCheck()"
345
+                    v-if="!isEdit"
346
+                    >录入检验检查</el-button
347
+                  >
264 348
                   <!--<el-button type="primary"  v-if="isEdit">查看检验检查</el-button>-->
265 349
                 </el-form-item>
266 350
               </el-col>
267 351
 
268 352
               <el-col :span="24">
269 353
                 <el-form-item label="传染病周期提醒: ">
270
-                  <el-radio-group v-model="form.remind_cycle" @change="changeCycle()">
354
+                  <el-radio-group
355
+                    v-model="form.remind_cycle"
356
+                    @change="changeCycle()"
357
+                  >
271 358
                     <el-radio :label="1">一月一次</el-radio>
272 359
                     <el-radio :label="2">两月一次</el-radio>
273 360
                     <el-radio :label="3">三月一次</el-radio>
@@ -288,38 +375,48 @@
288 375
                 </el-form-item>
289 376
               </el-col>
290 377
 
291
-              <el-col :span="8" :style="isEdit?'width:360px':''">
378
+              <el-col :span="8" :style="isEdit ? 'width:360px' : ''">
292 379
                 <el-form-item label="民族 : " prop="nation">
293 380
                   <el-input v-model="form.nation" maxlength="30"></el-input>
294 381
                 </el-form-item>
295 382
               </el-col>
296 383
 
297
-              <el-col :span="8" :style="isEdit?'width:360px':''">
384
+              <el-col :span="8" :style="isEdit ? 'width:360px' : ''">
298 385
                 <el-form-item label="籍贯 : " prop="native_place">
299
-                  <el-input v-model="form.native_place" maxlength="30"></el-input>
386
+                  <el-input
387
+                    v-model="form.native_place"
388
+                    maxlength="30"
389
+                  ></el-input>
300 390
                 </el-form-item>
301 391
               </el-col>
302 392
 
303
-              <el-col :span="8" :style="isEdit?'width:360px':''">
393
+              <el-col :span="8" :style="isEdit ? 'width:360px' : ''">
304 394
                 <el-form-item label="家庭住址 : " prop="homeAddress">
305 395
                   <el-input v-model="form.homeAddress"></el-input>
306 396
                 </el-form-item>
307 397
               </el-col>
308 398
 
309 399
               <div v-show="!generic_info_fold">
310
-                <el-col :span="8" :style="isEdit?'width:360px':''">
400
+                <el-col :span="8" :style="isEdit ? 'width:360px' : ''">
311 401
                   <el-form-item label="别名 : " prop="alias">
312 402
                     <el-input v-model="form.alias"></el-input>
313 403
                   </el-form-item>
314 404
                 </el-col>
315
-                <el-col :span="8" :style="isEdit?'width:360px':''">
405
+                <el-col :span="8" :style="isEdit ? 'width:360px' : ''">
316 406
                   <el-form-item label="身高(cm) : " prop="height">
317
-                    <el-input maxlength="5" v-model="form.height" @change="checkHeight"></el-input>
407
+                    <el-input
408
+                      maxlength="5"
409
+                      v-model="form.height"
410
+                      @change="checkHeight"
411
+                    ></el-input>
318 412
                   </el-form-item>
319 413
                 </el-col>
320
-                <el-col :span="8" :style="isEdit?'width:360px':''">
414
+                <el-col :span="8" :style="isEdit ? 'width:360px' : ''">
321 415
                   <el-form-item label="婚姻状况 : " prop="maritalStatus">
322
-                    <el-select v-model="form.maritalStatus" placeholder="请选择婚姻状况">
416
+                    <el-select
417
+                      v-model="form.maritalStatus"
418
+                      placeholder="请选择婚姻状况"
419
+                    >
323 420
                       <el-option
324 421
                         v-for="item in maritalOptions"
325 422
                         :key="item.id"
@@ -329,19 +426,23 @@
329 426
                     </el-select>
330 427
                   </el-form-item>
331 428
                 </el-col>
332
-                <el-col :span="8" style="clearfix" :style="isEdit?'width:360px':''">
429
+                <el-col
430
+                  :span="8"
431
+                  style="clearfix"
432
+                  :style="isEdit ? 'width:360px' : ''"
433
+                >
333 434
                   <el-form-item label="子女情况(个) : " prop="children">
334 435
                     <el-input maxlength="5" v-model="form.children"></el-input>
335 436
                   </el-form-item>
336 437
                   <!-- <el-form-item label=" " style="float:left;" label-width="30px">
337 438
                   </el-form-item>-->
338 439
                 </el-col>
339
-                <el-col :span="8" :style="isEdit?'width:360px':''">
440
+                <el-col :span="8" :style="isEdit ? 'width:360px' : ''">
340 441
                   <el-form-item label="住院(门诊)号 : ">
341 442
                     <el-input v-model="form.admissionNumber"></el-input>
342 443
                   </el-form-item>
343 444
                 </el-col>
344
-                <el-col :span="8" :style="isEdit?'width:360px':''">
445
+                <el-col :span="8" :style="isEdit ? 'width:360px' : ''">
345 446
                   <el-form-item label="医保类型 : " prop="reimbursementWayID">
346 447
                     <el-select v-model="form.reimbursementWayID">
347 448
                       <el-option
@@ -353,12 +454,12 @@
353 454
                     </el-select>
354 455
                   </el-form-item>
355 456
                 </el-col>
356
-                <el-col :span="8" :style="isEdit?'width:360px':''">
457
+                <el-col :span="8" :style="isEdit ? 'width:360px' : ''">
357 458
                   <el-form-item label="医保号 : " prop="healthCareNo">
358 459
                     <el-input v-model="form.healthCareNo"></el-input>
359 460
                   </el-form-item>
360 461
                 </el-col>
361
-                <el-col :span="8" :style="isEdit?'width:360px':''">
462
+                <el-col :span="8" :style="isEdit ? 'width:360px' : ''">
362 463
                   <el-form-item label="教育程度 : " prop="educationOptions">
363 464
                     <el-select v-model="form.education">
364 465
                       <el-option
@@ -371,13 +472,16 @@
371 472
                   </el-form-item>
372 473
                 </el-col>
373 474
 
374
-                <el-col :span="8" :style="isEdit?'width:360px':''">
475
+                <el-col :span="8" :style="isEdit ? 'width:360px' : ''">
375 476
                   <el-form-item label="固定电话 : ">
376
-                    <el-input v-model="form.tell_phone" maxlength="20"></el-input>
477
+                    <el-input
478
+                      v-model="form.tell_phone"
479
+                      maxlength="20"
480
+                    ></el-input>
377 481
                   </el-form-item>
378 482
                 </el-col>
379 483
 
380
-                <el-col :span="8" :style="isEdit?'width:360px':''">
484
+                <el-col :span="8" :style="isEdit ? 'width:360px' : ''">
381 485
                   <el-form-item label="费别 : ">
382 486
                     <el-select v-model="form.expense_kind">
383 487
                       <el-option
@@ -390,23 +494,33 @@
390 494
                   </el-form-item>
391 495
                 </el-col>
392 496
 
393
-                <el-col :span="8" :style="isEdit?'width:360px':''" style="height:59px;">
497
+                <el-col
498
+                  :span="8"
499
+                  :style="isEdit ? 'width:360px' : ''"
500
+                  style="height:59px;"
501
+                >
394 502
                   <el-form-item label="透析龄(月): ">
395 503
                     <el-input v-model="form.dialysis_age"></el-input>
396 504
                   </el-form-item>
397 505
                 </el-col>
398 506
 
399
-                <el-col :span="8" :style="isEdit?'width:360px':''">
507
+                <el-col :span="8" :style="isEdit ? 'width:360px' : ''">
400 508
                   <el-form-item label="亲友电话 : " prop="relative_phone">
401
-                    <el-input v-model="form.relative_phone" maxlength="20"></el-input>
509
+                    <el-input
510
+                      v-model="form.relative_phone"
511
+                      maxlength="20"
512
+                    ></el-input>
402 513
                   </el-form-item>
403 514
                 </el-col>
404
-                <el-col :span="8" :style="isEdit?'width:360px':''">
515
+                <el-col :span="8" :style="isEdit ? 'width:360px' : ''">
405 516
                   <el-form-item label="亲友关系 : " prop="relative_relations">
406
-                    <el-input v-model="form.relative_relations" maxlength="20"></el-input>
517
+                    <el-input
518
+                      v-model="form.relative_relations"
519
+                      maxlength="20"
520
+                    ></el-input>
407 521
                   </el-form-item>
408 522
                 </el-col>
409
-                <el-col :span="8" :style="isEdit?'width:360px':''">
523
+                <el-col :span="8" :style="isEdit ? 'width:360px' : ''">
410 524
                   <el-form-item label="职业 : " prop="profession">
411 525
                     <el-select v-model="form.profession">
412 526
                       <el-option
@@ -418,12 +532,12 @@
418 532
                     </el-select>
419 533
                   </el-form-item>
420 534
                 </el-col>
421
-                <el-col :span="8" :style="isEdit?'width:360px':''">
535
+                <el-col :span="8" :style="isEdit ? 'width:360px' : ''">
422 536
                   <el-form-item label="工作单位 : " prop="work">
423 537
                     <el-input v-model="form.work"></el-input>
424 538
                   </el-form-item>
425 539
                 </el-col>
426
-                <el-col :span="8" :style="isEdit?'width:360px':''">
540
+                <el-col :span="8" :style="isEdit ? 'width:360px' : ''">
427 541
                   <el-form-item label="单位地址 : " prop="unit_address">
428 542
                     <el-input v-model="form.unit_address"></el-input>
429 543
                   </el-form-item>
@@ -431,9 +545,11 @@
431 545
               </div>
432 546
               <el-col :span="24">
433 547
                 <el-form-item>
434
-                  <el-button type="text" @click="generic_info_fold = !generic_info_fold">
435
-                    {{ generic_info_fold ? '更多资料' :
436
-                    '收起' }}
548
+                  <el-button
549
+                    type="text"
550
+                    @click="generic_info_fold = !generic_info_fold"
551
+                  >
552
+                    {{ generic_info_fold ? "更多资料" : "收起" }}
437 553
                     <i class="el-icon--right" :class="generic_fold_icon"></i>
438 554
                   </el-button>
439 555
                 </el-form-item>
@@ -443,7 +559,11 @@
443 559
           <el-col :span="4" align="center">
444 560
             <el-upload
445 561
               style="width:100%;"
446
-              :disabled="$store.getters.xt_user.subscibe.state==3||!subscibeFlag?true:false"
562
+              :disabled="
563
+                $store.getters.xt_user.subscibe.state == 3 || !subscibeFlag
564
+                  ? true
565
+                  : false
566
+              "
447 567
               :data="uploadData"
448 568
               class="uploadHead"
449 569
               :multiple="false"
@@ -454,14 +574,24 @@
454 574
               list-type="picture-card"
455 575
               :before-upload="beforeAvatarUpload"
456 576
             >
457
-              <img width="100%" height="100%" v-if="form.avatar" :src="form.avatar" class="avatar" />
577
+              <img
578
+                width="100%"
579
+                height="100%"
580
+                v-if="form.avatar"
581
+                :src="form.avatar"
582
+                class="avatar"
583
+              />
458 584
               <i class="el-icon-plus" v-else></i>
459 585
             </el-upload>
460 586
             <el-dialog :visible.sync="dialogVisible">
461 587
               <img width="100%" :src="dialogImageUrl" alt />
462 588
             </el-dialog>
463 589
             <el-upload
464
-              :disabled="$store.getters.xt_user.subscibe.state==3||!subscibeFlag?true:false"
590
+              :disabled="
591
+                $store.getters.xt_user.subscibe.state == 3 || !subscibeFlag
592
+                  ? true
593
+                  : false
594
+              "
465 595
               :data="uploadData"
466 596
               :multiple="false"
467 597
               action="https://upload.qiniup.com"
@@ -471,13 +601,22 @@
471 601
               :before-upload="beforeAvatarUpload"
472 602
             >
473 603
               <el-button
474
-                :disabled="$store.getters.xt_user.subscibe.state==3||!subscibeFlag?true:false"
604
+                :disabled="
605
+                  $store.getters.xt_user.subscibe.state == 3 || !subscibeFlag
606
+                    ? true
607
+                    : false
608
+                "
475 609
                 class="uploadHeadBtn"
476 610
                 type="primary"
477
-              >上传头像</el-button>
611
+                >上传头像</el-button
612
+              >
478 613
             </el-upload>
479 614
             <el-form-item>
480
-              <el-input v-model="form.avatar" type="hidden" placeholder></el-input>
615
+              <el-input
616
+                v-model="form.avatar"
617
+                type="hidden"
618
+                placeholder
619
+              ></el-input>
481 620
             </el-form-item>
482 621
           </el-col>
483 622
         </el-row>
@@ -548,7 +687,13 @@
548 687
           <el-col></el-col>
549 688
           <el-col :span="24">
550 689
             <el-form-item label prop="remark">
551
-              <el-input type="textarea" :rows="3" v-model="form.remark" resize="none" placeholder></el-input>
690
+              <el-input
691
+                type="textarea"
692
+                :rows="3"
693
+                v-model="form.remark"
694
+                resize="none"
695
+                placeholder
696
+              ></el-input>
552 697
             </el-form-item>
553 698
           </el-col>
554 699
           <!--<el-col :span="24">-->
@@ -568,26 +713,31 @@
568 713
                   :label="item.id"
569 714
                   :key="item.id"
570 715
                   :value="item.id"
571
-                >{{item.name}}</el-checkbox>
716
+                  >{{ item.name }}</el-checkbox
717
+                >
572 718
               </el-checkbox-group>
573 719
             </el-form-item>
574 720
           </el-col>
575 721
 
576 722
           <div v-show="!treat_info_fold">
577
-            <el-col :span="6" :style="isEdit?'width:360px':''">
578
-              <el-form-item label="本院首次透析 : " prop="is_hospital_first_dialysis">
723
+            <el-col :span="6" :style="isEdit ? 'width:360px' : ''">
724
+              <el-form-item
725
+                label="本院首次透析 : "
726
+                prop="is_hospital_first_dialysis"
727
+              >
579 728
                 <el-radio-group v-model="form.is_hospital_first_dialysis">
580 729
                   <el-radio
581 730
                     v-for="item in isHospitalFirstDialysisOptions"
582 731
                     :key="item.value"
583 732
                     :label="item.value"
584 733
                     :value="item.value"
585
-                  >{{item.label}}</el-radio>
734
+                    >{{ item.label }}</el-radio
735
+                  >
586 736
                 </el-radio-group>
587 737
               </el-form-item>
588 738
             </el-col>
589 739
 
590
-            <el-col :span="6" :style="isEdit?'width:360px':''">
740
+            <el-col :span="6" :style="isEdit ? 'width:360px' : ''">
591 741
               <el-form-item label="首次诊治时间 : ">
592 742
                 <el-date-picker
593 743
                   v-model="form.first_treatment_date"
@@ -597,35 +747,53 @@
597 747
                 ></el-date-picker>
598 748
               </el-form-item>
599 749
             </el-col>
600
-            <el-col :span="6" :style="isEdit?'width:360px':''">
601
-              <el-form-item label="首次透析医院 : " prop="first_dialysis_hospital">
750
+            <el-col :span="6" :style="isEdit ? 'width:360px' : ''">
751
+              <el-form-item
752
+                label="首次透析医院 : "
753
+                prop="first_dialysis_hospital"
754
+              >
602 755
                 <el-input v-model="form.first_dialysis_hospital"></el-input>
603 756
               </el-form-item>
604 757
             </el-col>
605 758
             <el-col :span="24">
606
-              <el-form-item label="透析之前情况 : " prop="predialysis_condition">
759
+              <el-form-item
760
+                label="透析之前情况 : "
761
+                prop="predialysis_condition"
762
+              >
607 763
                 <el-checkbox-group v-model="form.predialysis_condition">
608 764
                   <el-checkbox
609 765
                     v-for="item in predialysisConditionOptions"
610 766
                     :label="item.label"
611 767
                     :key="item.value"
612 768
                     :value="item.label"
613
-                  >{{item.label}}</el-checkbox>
769
+                    >{{ item.label }}</el-checkbox
770
+                  >
614 771
                 </el-checkbox-group>
615 772
               </el-form-item>
616 773
             </el-col>
617
-            <el-col :span="6" :style="isEdit?'width:360px':''">
618
-              <el-form-item label="本院前透析频率 : " prop="pre_hospital_dialysis_frequency">
619
-                <el-input v-model="form.pre_hospital_dialysis_frequency"></el-input>
774
+            <el-col :span="6" :style="isEdit ? 'width:360px' : ''">
775
+              <el-form-item
776
+                label="本院前透析频率 : "
777
+                prop="pre_hospital_dialysis_frequency"
778
+              >
779
+                <el-input
780
+                  v-model="form.pre_hospital_dialysis_frequency"
781
+                ></el-input>
620 782
               </el-form-item>
621 783
             </el-col>
622
-            <el-col :span="6" :style="isEdit?'width:360px':''">
623
-              <el-form-item label="本院前透析次数 : " prop="pre_hospital_dialysis_times">
784
+            <el-col :span="6" :style="isEdit ? 'width:360px' : ''">
785
+              <el-form-item
786
+                label="本院前透析次数 : "
787
+                prop="pre_hospital_dialysis_times"
788
+              >
624 789
                 <el-input v-model="form.pre_hospital_dialysis_times"></el-input>
625 790
               </el-form-item>
626 791
             </el-col>
627
-            <el-col :span="6" :style="isEdit?'width:360px':''">
628
-              <el-form-item label="本院首次透析 : " prop="hospital_first_dialysis_date">
792
+            <el-col :span="6" :style="isEdit ? 'width:360px' : ''">
793
+              <el-form-item
794
+                label="本院首次透析 : "
795
+                prop="hospital_first_dialysis_date"
796
+              >
629 797
                 <el-date-picker
630 798
                   v-model="form.hospital_first_dialysis_date"
631 799
                   type="date"
@@ -637,8 +805,11 @@
637 805
           </div>
638 806
           <el-col :span="24">
639 807
             <el-form-item>
640
-              <el-button type="text" @click="treat_info_fold = !treat_info_fold">
641
-                {{ treat_info_fold ? '更多治疗信息' : '收起' }}
808
+              <el-button
809
+                type="text"
810
+                @click="treat_info_fold = !treat_info_fold"
811
+              >
812
+                {{ treat_info_fold ? "更多治疗信息" : "收起" }}
642 813
                 <i class="el-icon--right" :class="treat_fold_icon"></i>
643 814
               </el-button>
644 815
             </el-form-item>
@@ -646,28 +817,43 @@
646 817
 
647 818
           <el-col :span="24">
648 819
             <el-form-item label="登记人员 : ">
649
-              <span>{{adminusername}}</span>
820
+              <span>{{ adminusername }}</span>
650 821
             </el-form-item>
651 822
           </el-col>
652 823
 
653 824
           <el-col :span="24" align="right">
654 825
             <el-form-item>
655
-              <el-button @click="$router.back(-1)" icon="el-icon-refresh" size="small">取消</el-button>
656 826
               <el-button
657
-                :disabled="$store.getters.xt_user.subscibe.state==3||!subscibeFlag?true:false"
827
+                @click="$router.back(-1)"
828
+                icon="el-icon-refresh"
829
+                size="small"
830
+                >取消</el-button
831
+              >
832
+              <el-button
833
+                :disabled="
834
+                  $store.getters.xt_user.subscibe.state == 3 || !subscibeFlag
835
+                    ? true
836
+                    : false
837
+                "
658 838
                 @click="onSubmit('form')"
659 839
                 size="small"
660 840
                 type="primary"
661 841
                 icon="el-icon-setting"
662
-              >保存</el-button>
842
+                >保存</el-button
843
+              >
663 844
               <el-button
664
-                v-if="isEdit==false"
845
+                v-if="isEdit == false"
665 846
                 @click="onReSubmit('form')"
666
-                :disabled="$store.getters.xt_user.subscibe.state==3||!subscibeFlag?true:false"
847
+                :disabled="
848
+                  $store.getters.xt_user.subscibe.state == 3 || !subscibeFlag
849
+                    ? true
850
+                    : false
851
+                "
667 852
                 icon="el-icon-document-add"
668 853
                 size="small"
669 854
                 type="success"
670
-              >保存并继续新增</el-button>
855
+                >保存并继续新增</el-button
856
+              >
671 857
             </el-form-item>
672 858
           </el-col>
673 859
         </el-row>
@@ -1595,4 +1781,3 @@ export default {
1595 1781
   z-index: 998 !important;
1596 1782
 }
1597 1783
 </style>
1598
-