ソースを参照

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

XMLWAN 4 年 前
コミット
767ebb0f31

+ 237 - 236
src/api/manage.js ファイルの表示

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

+ 11 - 11
src/xt_pages/data/prescription.vue ファイルの表示

@@ -85,17 +85,17 @@
85 85
                     <el-input v-model="addPlan.blood_flow_volume" ></el-input>
86 86
                   </el-form-item>
87 87
                 </el-col>
88
-                <el-col :span="8" v-if="this.$store.getters.xt_user.template_info.template_id == 6">
89
-                  <el-form-item label="目标超滤量(ml) : ">
90
-                    <el-input v-model="addPlan.target_ultrafiltration" type="number" ></el-input>
91
-                  </el-form-item>
92
-                </el-col>
93
-
94
-                <el-col :span="8" v-if="this.$store.getters.xt_user.template_info.template_id != 6">
95
-                  <el-form-item label="目标超滤量(L) : ">
96
-                    <el-input v-model="addPlan.target_ultrafiltration" type="number" ></el-input>
97
-                  </el-form-item>
98
-                </el-col>
88
+                <!--<el-col :span="8" v-if="this.$store.getters.xt_user.template_info.template_id == 6">-->
89
+                  <!--<el-form-item label="目标超滤量(ml) : ">-->
90
+                    <!--<el-input v-model="addPlan.target_ultrafiltration" type="number" ></el-input>-->
91
+                  <!--</el-form-item>-->
92
+                <!--</el-col>-->
93
+
94
+                <!--<el-col :span="8" v-if="this.$store.getters.xt_user.template_info.template_id != 6">-->
95
+                  <!--<el-form-item label="目标超滤量(L) : ">-->
96
+                    <!--<el-input v-model="addPlan.target_ultrafiltration" type="number" ></el-input>-->
97
+                  <!--</el-form-item>-->
98
+                <!--</el-col>-->
99 99
 
100 100
 
101 101
                 <el-col :span="8">

+ 320 - 303
src/xt_pages/management/components/ManageForm.vue ファイルの表示

@@ -3,7 +3,7 @@
3 3
     <el-dialog
4 4
       title="新增设备"
5 5
       :visible.sync="dialogVisible"
6
-      width="52%"
6
+      width="70%"
7 7
       align="center"
8 8
     >
9 9
       <el-form ref="form" :model="form" :rules="rules">
@@ -122,7 +122,7 @@
122 122
                 placeholder="请选择"
123 123
                 format="yyyy-MM-dd"
124 124
                 value-format="yyyy-MM-dd"
125
-                style="width:140px"
125
+                style="width:135px"
126 126
               ></el-date-picker>
127 127
             </el-form-item>
128 128
           </el-col>
@@ -338,80 +338,80 @@ import {
338 338
   SaveManageInfo,
339 339
   SaveManageInfoTwo,
340 340
   getAllMode
341
-} from '@/api/manage'
341
+} from "@/api/manage";
342 342
 const treatmentmodes = [
343
-  'HD',
344
-  'HDF',
345
-  'HD+HP',
346
-  'HP',
347
-  'HF',
348
-  'SCUF',
349
-  'IUF',
350
-  'HFHD',
351
-  'HFHD+HP',
352
-  'PHF',
353
-  'HFR',
354
-  'HDF+HP',
355
-  'CRRT',
356
-  '腹水回输'
357
-]
343
+  "HD",
344
+  "HDF",
345
+  "HD+HP",
346
+  "HP",
347
+  "HF",
348
+  "SCUF",
349
+  "IUF",
350
+  "HFHD",
351
+  "HFHD+HP",
352
+  "PHF",
353
+  "HFR",
354
+  "HDF+HP",
355
+  "CRRT",
356
+  "腹水回输"
357
+];
358 358
 export default {
359
-  name: 'ManageForm',
359
+  name: "ManageForm",
360 360
   data() {
361 361
     return {
362 362
       dialogVisible: false,
363
-      checked1: '',
363
+      checked1: "",
364 364
       form: {
365
-        serial_number: '', // 序列号
365
+        serial_number: "", // 序列号
366 366
         device_type: 1, // 设备类型
367
-        bed_number: '', // 床位号
368
-        device_name: '', // 设备名称
369
-        manufacture_factory: '', // 生产厂家
370
-        service_manufacturer: '', // 维修厂家
371
-        unit_type: '', // 设备型号
372
-        use_section: '', // 使用科室
373
-        section_number: '', // 科室编号
374
-        buy_date: '', // 购买日期
375
-        install_date: '', // 安装日期
376
-        start_date: '', // 启用日期
377
-        maintenance_engineer: '', // 维修工程师
378
-        telephone: '', // 联系电话
379
-        guarantee_date: '', // 保修日期
367
+        bed_number: "", // 床位号
368
+        device_name: "", // 设备名称
369
+        manufacture_factory: "", // 生产厂家
370
+        service_manufacturer: "", // 维修厂家
371
+        unit_type: "", // 设备型号
372
+        use_section: "", // 使用科室
373
+        section_number: "", // 科室编号
374
+        buy_date: "", // 购买日期
375
+        install_date: "", // 安装日期
376
+        start_date: "", // 启用日期
377
+        maintenance_engineer: "", // 维修工程师
378
+        telephone: "", // 联系电话
379
+        guarantee_date: "", // 保修日期
380 380
         machine_status: 1, // 机器状态
381
-        user_total: '', // 初次使用次数
382
-        Disinfection_mode: '', // 消毒方式
383
-        remarks: '', // 备注
384
-        rubbish_date: '', // 报废日期
385
-        rubbish_reason: '', // 报废原因
386
-        user_year: '', // 使用年限
387
-        work_time: '', // 工作时长
388
-        revers_mode: '', // 反渗模式
381
+        user_total: "", // 初次使用次数
382
+        Disinfection_mode: "", // 消毒方式
383
+        remarks: "", // 备注
384
+        rubbish_date: "", // 报废日期
385
+        rubbish_reason: "", // 报废原因
386
+        user_year: "", // 使用年限
387
+        work_time: "", // 工作时长
388
+        revers_mode: "", // 反渗模式
389 389
         treat_mode: [],
390 390
         treat_type: [], // 治疗模式
391
-        beds: ''
391
+        beds: ""
392 392
       },
393 393
       forms: {
394
-        beds: ''
394
+        beds: ""
395 395
       },
396 396
       deviceType: [],
397 397
       bedNumber: [],
398 398
       machineStatus: [
399
-        { id: 1, name: '使用机' },
400
-        { id: 2, name: '备用机' },
401
-        { id: 3, name: '急诊机' },
402
-        { id: 4, name: '报废机' }
399
+        { id: 1, name: "使用机" },
400
+        { id: 2, name: "备用机" },
401
+        { id: 3, name: "急诊机" },
402
+        { id: 4, name: "报废机" }
403 403
       ],
404 404
       DisinfectionMode: [
405
-        { id: 0, name: '请选择' },
406
-        { id: 1, name: '化学消毒' },
407
-        { id: 2, name: '热消毒' },
408
-        { id: 3, name: '化学消毒+热消毒' }
405
+        { id: 0, name: "请选择" },
406
+        { id: 1, name: "化学消毒" },
407
+        { id: 2, name: "热消毒" },
408
+        { id: 3, name: "化学消毒+热消毒" }
409 409
       ],
410 410
       DisCardResion: [
411
-        { id: 0, name: '请选择' },
412
-        { id: 1, name: '超期限报废' },
413
-        { id: 2, name: '故障报废' },
414
-        { id: 3, name: '核定报废' }
411
+        { id: 0, name: "请选择" },
412
+        { id: 1, name: "超期限报废" },
413
+        { id: 2, name: "故障报废" },
414
+        { id: 3, name: "核定报废" }
415 415
       ],
416 416
       checkAll: false,
417 417
       isIndeterminate: true,
@@ -422,21 +422,21 @@ export default {
422 422
       //   { id: 3, name: 'ww' }
423 423
       // ],
424 424
       DeviceType: [
425
-        { id: 1, name: '透析机' },
426
-        { id: 2, name: '水处理机' },
427
-        { id: 3, name: '其他' }
425
+        { id: 1, name: "透析机" },
426
+        { id: 2, name: "水处理机" },
427
+        { id: 3, name: "其他" }
428 428
       ],
429 429
       reverseMode: [
430
-        { id: 0, name: '请选择' },
431
-        { id: 1, name: '单级反渗' },
432
-        { id: 2, name: '双级反渗' }
430
+        { id: 0, name: "请选择" },
431
+        { id: 1, name: "单级反渗" },
432
+        { id: 2, name: "双级反渗" }
433 433
       ],
434 434
       rules: {
435
-        serial_number: [{ required: true, message: '请填写序列号' }],
436
-        device_name: [{ required: true, message: '请填写设备名称' }],
437
-        device_type: [{ required: true, message: '请填写设备类型' }],
438
-        unit_type: [{ required: true, message: '请填写设备型号' }],
439
-        bed_number: [{ required: true, message: '请填写机位号' }]
435
+        serial_number: [{ required: true, message: "请填写序列号" }],
436
+        device_name: [{ required: true, message: "请填写设备名称" }],
437
+        device_type: [{ required: true, message: "请填写设备类型" }],
438
+        unit_type: [{ required: true, message: "请填写设备型号" }],
439
+        bed_number: [{ required: true, message: "请填写机位号" }]
440 440
         // treat_mode: [{ required: true, message: "请选择至少一种治疗模式" }]
441 441
       },
442 442
       DisinfectionShow: false,
@@ -451,155 +451,155 @@ export default {
451 451
       buttonShowTwo: false,
452 452
       buttonShowThree: false,
453 453
       deviceMode: []
454
-    }
454
+    };
455 455
   },
456 456
   methods: {
457 457
     open: function() {
458
-      this.dialogVisible = true
458
+      this.dialogVisible = true;
459 459
       // this.resetForm("form");
460 460
     },
461 461
     changetreatmentmode(val) {
462
-      const checkedCount = val.length
463
-      this.checkAll = checkedCount === 14
464
-      this.isIndeterminate = checkedCount > 0 && checkedCount < 14
462
+      const checkedCount = val.length;
463
+      this.checkAll = checkedCount === 14;
464
+      this.isIndeterminate = checkedCount > 0 && checkedCount < 14;
465 465
     },
466 466
     handleCheckAllChange(val) {
467
-      this.form.treat_mode = val ? this.treatmentmode : []
468
-      this.isIndeterminate = false
467
+      this.form.treat_mode = val ? this.treatmentmode : [];
468
+      this.isIndeterminate = false;
469 469
     },
470 470
     getAllSubregion() {
471 471
       getAllSubregion().then(response => {
472 472
         if (response.data.state === 1) {
473
-          var zones = response.data.data.zones
474
-          this.deviceType = zones
475
-          var numbers = response.data.data.numbers
476
-          var devicenumber = response.data.data.devicenumber
473
+          var zones = response.data.data.zones;
474
+          this.deviceType = zones;
475
+          var numbers = response.data.data.numbers;
476
+          var devicenumber = response.data.data.devicenumber;
477 477
           // console.log('devicenumber$', devicenumber)
478 478
           // var device = [{ bed_id: 0, bed_number: '请选择' }]
479 479
           // for (let index = 0; index < devicenumber.length; index++) {
480 480
           // const item = devicenumber[index]
481 481
           // device.push({ bed_id: item.bed_id, bed_number: item.bed_number })
482 482
           // }
483
-          this.bedNumber = devicenumber
483
+          this.bedNumber = devicenumber;
484 484
         }
485
-      })
485
+      });
486 486
     },
487 487
 
488 488
     changeDeviceType(val) {
489 489
       if (val === 1) {
490
-        this.bedShow = true
491
-        this.totalShow = true
492
-        this.treatShow = true
493
-        this.allShow = true
494
-        this.bedShowTwo = false
495
-        this.buttonShow = true
496
-        this.buttonShowTwo = false
497
-        this.buttonShowThree = false
490
+        this.bedShow = true;
491
+        this.totalShow = true;
492
+        this.treatShow = true;
493
+        this.allShow = true;
494
+        this.bedShowTwo = false;
495
+        this.buttonShow = true;
496
+        this.buttonShowTwo = false;
497
+        this.buttonShowThree = false;
498 498
       }
499 499
 
500 500
       if (val === 2) {
501
-        this.totalShow = false
502
-        this.DisinfectionShow = true
503
-        this.allShow = false
504
-        this.treatShow = false
505
-        this.reverseShow = true
506
-        this.bedShow = false
507
-        this.bedShowTwo = true
508
-        this.buttonShow = false
509
-        this.buttonShowTwo = true
510
-        this.buttonShowThree = false
501
+        this.totalShow = false;
502
+        this.DisinfectionShow = true;
503
+        this.allShow = false;
504
+        this.treatShow = false;
505
+        this.reverseShow = true;
506
+        this.bedShow = false;
507
+        this.bedShowTwo = true;
508
+        this.buttonShow = false;
509
+        this.buttonShowTwo = true;
510
+        this.buttonShowThree = false;
511 511
       }
512 512
 
513 513
       if (val === 3) {
514
-        this.bedShow = false
515
-        this.totalShow = false
516
-        this.reverseShow = false
517
-        this.allShow = false
518
-        this.treatShow = false
519
-        this.DisinfectionShow = false
520
-        this.bedShowTwo = false
521
-        this.buttonShow = false
522
-        this.buttonShowTwo = false
523
-        this.buttonShowThree = true
514
+        this.bedShow = false;
515
+        this.totalShow = false;
516
+        this.reverseShow = false;
517
+        this.allShow = false;
518
+        this.treatShow = false;
519
+        this.DisinfectionShow = false;
520
+        this.bedShowTwo = false;
521
+        this.buttonShow = false;
522
+        this.buttonShowTwo = false;
523
+        this.buttonShowThree = true;
524 524
       }
525 525
     },
526 526
     changeMachineStatus(val) {
527 527
       if (val === 4) {
528
-        this.disa = false
528
+        this.disa = false;
529 529
       } else {
530
-        this.disa = true
531
-        this.form.rubbish_date = ''
532
-        this.form.rubbish_reason = ''
530
+        this.disa = true;
531
+        this.form.rubbish_date = "";
532
+        this.form.rubbish_reason = "";
533 533
       }
534 534
     },
535 535
     SaveManageInfoThree(formName) {
536
-      if (this.form.bed_number === '') {
537
-        this.form.bed_number = 0
536
+      if (this.form.bed_number === "") {
537
+        this.form.bed_number = 0;
538 538
       }
539
-      const arr1 = []
539
+      const arr1 = [];
540 540
       this.form.treat_mode.map((item, index) => {
541
-        const obj = {}
542
-        if (item === 'HD') {
543
-          obj.id = 1
541
+        const obj = {};
542
+        if (item === "HD") {
543
+          obj.id = 1;
544 544
         }
545
-        if (item === 'HDF') {
546
-          obj.id = 2
545
+        if (item === "HDF") {
546
+          obj.id = 2;
547 547
         }
548
-        if (item === 'HD+HP') {
549
-          obj.id = 3
548
+        if (item === "HD+HP") {
549
+          obj.id = 3;
550 550
         }
551
-        if (item === 'HP') {
552
-          obj.id = 4
551
+        if (item === "HP") {
552
+          obj.id = 4;
553 553
         }
554
-        if (item === 'HF') {
555
-          obj.id = 5
554
+        if (item === "HF") {
555
+          obj.id = 5;
556 556
         }
557
-        if (item === 'SCUF') {
558
-          obj.id = 6
557
+        if (item === "SCUF") {
558
+          obj.id = 6;
559 559
         }
560
-        if (item === 'IUF') {
561
-          obj.id = 7
560
+        if (item === "IUF") {
561
+          obj.id = 7;
562 562
         }
563
-        if (item === 'HFHD') {
564
-          obj.id = 8
563
+        if (item === "HFHD") {
564
+          obj.id = 8;
565 565
         }
566
-        if (item === 'HFHD+HP') {
567
-          obj.id = 9
566
+        if (item === "HFHD+HP") {
567
+          obj.id = 9;
568 568
         }
569
-        if (item === 'PHF') {
570
-          obj.id = 10
569
+        if (item === "PHF") {
570
+          obj.id = 10;
571 571
         }
572
-        if (item === 'HFR') {
573
-          obj.id = 11
572
+        if (item === "HFR") {
573
+          obj.id = 11;
574 574
         }
575
-        if (item === 'HDF+HP') {
576
-          obj.id = 12
575
+        if (item === "HDF+HP") {
576
+          obj.id = 12;
577 577
         }
578
-        if (item === 'CRRT') {
579
-          obj.id = 13
578
+        if (item === "CRRT") {
579
+          obj.id = 13;
580 580
         }
581
-        if (item === '腹水回输') {
582
-          obj.id = 14
581
+        if (item === "腹水回输") {
582
+          obj.id = 14;
583 583
         }
584
-        arr1.push(obj.id)
585
-      })
584
+        arr1.push(obj.id);
585
+      });
586 586
       // console.log('arrr1', arr1)
587
-      this.form.treat_type = arr1
587
+      this.form.treat_type = arr1;
588 588
 
589
-      var device_type = this.form.device_type
590
-      var device_types = parseInt(device_type)
591
-      this.form.device_type = device_types
589
+      var device_type = this.form.device_type;
590
+      var device_types = parseInt(device_type);
591
+      this.form.device_type = device_types;
592 592
 
593
-      if (this.form.rubbish_reason === '') {
594
-        this.form.rubbish_reason = 0
593
+      if (this.form.rubbish_reason === "") {
594
+        this.form.rubbish_reason = 0;
595 595
       }
596
-      var rubbish_reason = this.form.rubbish_reason
597
-      var rubbish_reasons = parseInt(rubbish_reason)
598
-      this.form.rubbish_reason = rubbish_reasons
596
+      var rubbish_reason = this.form.rubbish_reason;
597
+      var rubbish_reasons = parseInt(rubbish_reason);
598
+      this.form.rubbish_reason = rubbish_reasons;
599 599
 
600
-      var machine_status = this.form.machine_status
601
-      var machine_statuss = parseInt(machine_status)
602
-      this.form.machine_status = machine_statuss
600
+      var machine_status = this.form.machine_status;
601
+      var machine_statuss = parseInt(machine_status);
602
+      this.form.machine_status = machine_statuss;
603 603
 
604 604
       // if (this.form.bed_number === '') {
605 605
       //  this.form.bed_number = 0
@@ -607,116 +607,116 @@ export default {
607 607
       // var bed_numbers = this.form.bed_number
608 608
       // var bed_numberss = parseInt(bed_numbers)
609 609
       // this.form.bed_number = bed_numberss
610
-      console.log('购买日期', this.form.buy_date)
610
+      console.log("购买日期", this.form.buy_date);
611 611
 
612
-      if (this.form.Disinfection_mode === '') {
613
-        this.form.Disinfection_mode = 0
612
+      if (this.form.Disinfection_mode === "") {
613
+        this.form.Disinfection_mode = 0;
614 614
       }
615
-      var disinfecction_modes = this.form.Disinfection_mode
616
-      var disinfecction_modess = parseInt(disinfecction_modes)
617
-      this.form.Disinfection_mode = disinfecction_modess
615
+      var disinfecction_modes = this.form.Disinfection_mode;
616
+      var disinfecction_modess = parseInt(disinfecction_modes);
617
+      this.form.Disinfection_mode = disinfecction_modess;
618 618
 
619
-      if (this.form.revers_mode === '') {
620
-        this.form.revers_mode = 0
619
+      if (this.form.revers_mode === "") {
620
+        this.form.revers_mode = 0;
621 621
       }
622 622
 
623 623
       this.$refs[formName].validate(valid => {
624 624
         if (valid) {
625 625
           SaveManageInfo(this.form).then(response => {
626 626
             if (response.data.state === 1) {
627
-              var addmacher = response.data.data.addmacher
628
-              this.dialogVisible = false
629
-              this.$message.success('保存成功')
630
-              this.form.bed_number = ''
631
-              this.form.serial_number = ''
632
-              this.form.device_name = ''
633
-              this.form.manufacture_factory = ''
634
-              this.form.service_manufacturer = ''
635
-              this.form.use_section = ''
636
-              this.form.section_number = ''
637
-              this.form.maintenance_engineer = ''
638
-              this.form.telephone = ''
639
-              this.form.user_total = ''
640
-              this.form.remarks = ''
641
-              this.form.user_year = ''
642
-              this.form.work_time = ''
643
-              this.form.unit_type = ''
644
-              this.getAllSubregion()
645
-              this.$emit('getAllMachineInfo')
646
-              this.$forceUpdate()
627
+              var addmacher = response.data.data.addmacher;
628
+              this.dialogVisible = false;
629
+              this.$message.success("保存成功");
630
+              this.form.bed_number = "";
631
+              this.form.serial_number = "";
632
+              this.form.device_name = "";
633
+              this.form.manufacture_factory = "";
634
+              this.form.service_manufacturer = "";
635
+              this.form.use_section = "";
636
+              this.form.section_number = "";
637
+              this.form.maintenance_engineer = "";
638
+              this.form.telephone = "";
639
+              this.form.user_total = "";
640
+              this.form.remarks = "";
641
+              this.form.user_year = "";
642
+              this.form.work_time = "";
643
+              this.form.unit_type = "";
644
+              this.getAllSubregion();
645
+              this.$emit("getAllMachineInfo");
646
+              this.$forceUpdate();
647 647
             } else {
648
-              this.$message.error('添加失败')
648
+              this.$message.error("添加失败");
649 649
             }
650
-          })
650
+          });
651 651
         }
652
-      })
652
+      });
653 653
     },
654 654
 
655 655
     SaveManageInfo(formName) {
656
-      const arr1 = []
656
+      const arr1 = [];
657 657
       this.form.treat_mode.map((item, index) => {
658
-        const obj = {}
659
-        if (item === 'HD') {
660
-          obj.id = 1
658
+        const obj = {};
659
+        if (item === "HD") {
660
+          obj.id = 1;
661 661
         }
662
-        if (item === 'HDF') {
663
-          obj.id = 2
662
+        if (item === "HDF") {
663
+          obj.id = 2;
664 664
         }
665
-        if (item === 'HD+HP') {
666
-          obj.id = 3
665
+        if (item === "HD+HP") {
666
+          obj.id = 3;
667 667
         }
668
-        if (item === 'HP') {
669
-          obj.id = 4
668
+        if (item === "HP") {
669
+          obj.id = 4;
670 670
         }
671
-        if (item === 'HF') {
672
-          obj.id = 5
671
+        if (item === "HF") {
672
+          obj.id = 5;
673 673
         }
674
-        if (item === 'SCUF') {
675
-          obj.id = 6
674
+        if (item === "SCUF") {
675
+          obj.id = 6;
676 676
         }
677
-        if (item === 'IUF') {
678
-          obj.id = 7
677
+        if (item === "IUF") {
678
+          obj.id = 7;
679 679
         }
680
-        if (item === 'HFHD') {
681
-          obj.id = 8
680
+        if (item === "HFHD") {
681
+          obj.id = 8;
682 682
         }
683
-        if (item === 'HFHD+HP') {
684
-          obj.id = 9
683
+        if (item === "HFHD+HP") {
684
+          obj.id = 9;
685 685
         }
686
-        if (item === 'PHF') {
687
-          obj.id = 10
686
+        if (item === "PHF") {
687
+          obj.id = 10;
688 688
         }
689
-        if (item === 'HFR') {
690
-          obj.id = 11
689
+        if (item === "HFR") {
690
+          obj.id = 11;
691 691
         }
692
-        if (item === 'HDF+HP') {
693
-          obj.id = 12
692
+        if (item === "HDF+HP") {
693
+          obj.id = 12;
694 694
         }
695
-        if (item === 'CRRT') {
696
-          obj.id = 13
695
+        if (item === "CRRT") {
696
+          obj.id = 13;
697 697
         }
698
-        if (item === '腹水回输') {
699
-          obj.id = 14
698
+        if (item === "腹水回输") {
699
+          obj.id = 14;
700 700
         }
701
-        arr1.push(obj.id)
702
-      })
701
+        arr1.push(obj.id);
702
+      });
703 703
       // console.log('arrr1', arr1)
704
-      this.form.treat_type = arr1
704
+      this.form.treat_type = arr1;
705 705
 
706
-      var device_type = this.form.device_type
707
-      var device_types = parseInt(device_type)
708
-      this.form.device_type = device_types
706
+      var device_type = this.form.device_type;
707
+      var device_types = parseInt(device_type);
708
+      this.form.device_type = device_types;
709 709
 
710
-      if (this.form.rubbish_reason === '') {
711
-        this.form.rubbish_reason = 0
710
+      if (this.form.rubbish_reason === "") {
711
+        this.form.rubbish_reason = 0;
712 712
       }
713
-      var rubbish_reason = this.form.rubbish_reason
714
-      var rubbish_reasons = parseInt(rubbish_reason)
715
-      this.form.rubbish_reason = rubbish_reasons
713
+      var rubbish_reason = this.form.rubbish_reason;
714
+      var rubbish_reasons = parseInt(rubbish_reason);
715
+      this.form.rubbish_reason = rubbish_reasons;
716 716
 
717
-      var machine_status = this.form.machine_status
718
-      var machine_statuss = parseInt(machine_status)
719
-      this.form.machine_status = machine_statuss
717
+      var machine_status = this.form.machine_status;
718
+      var machine_statuss = parseInt(machine_status);
719
+      this.form.machine_status = machine_statuss;
720 720
 
721 721
       // if (this.form.bed_number === '') {
722 722
       //  this.form.bed_number = 0
@@ -724,113 +724,113 @@ export default {
724 724
       // var bed_numbers = this.form.bed_number
725 725
       // var bed_numberss = parseInt(bed_numbers)
726 726
       // this.form.bed_number = bed_numberss
727
-      console.log('购买日期', this.form.buy_date)
727
+      console.log("购买日期", this.form.buy_date);
728 728
 
729
-      if (this.form.Disinfection_mode === '') {
730
-        this.form.Disinfection_mode = 0
729
+      if (this.form.Disinfection_mode === "") {
730
+        this.form.Disinfection_mode = 0;
731 731
       }
732
-      var disinfecction_modes = this.form.Disinfection_mode
733
-      var disinfecction_modess = parseInt(disinfecction_modes)
734
-      this.form.Disinfection_mode = disinfecction_modess
732
+      var disinfecction_modes = this.form.Disinfection_mode;
733
+      var disinfecction_modess = parseInt(disinfecction_modes);
734
+      this.form.Disinfection_mode = disinfecction_modess;
735 735
 
736
-      if (this.form.revers_mode === '') {
737
-        this.form.revers_mode = 0
736
+      if (this.form.revers_mode === "") {
737
+        this.form.revers_mode = 0;
738 738
       }
739 739
       this.$refs[formName].validate(valid => {
740 740
         if (valid) {
741 741
           SaveManageInfo(this.form).then(response => {
742 742
             if (response.data.state === 1) {
743
-              var addmacher = response.data.data.addmacher
744
-              this.dialogVisible = false
745
-              this.$message.success('保存成功')
746
-              this.form.bed_number = ''
747
-              this.form.serial_number = ''
748
-              this.form.device_name = ''
749
-              this.form.manufacture_factory = ''
750
-              this.form.service_manufacturer = ''
751
-              this.form.use_section = ''
752
-              this.form.section_number = ''
753
-              this.form.maintenance_engineer = ''
754
-              this.form.telephone = ''
755
-              this.form.user_total = ''
756
-              this.form.remarks = ''
757
-              this.form.user_year = ''
758
-              this.form.work_time = ''
759
-              this.form.unit_type = ''
760
-              this.getAllSubregion()
761
-              this.$emit('getAllMachineInfo')
762
-              this.$forceUpdate()
743
+              var addmacher = response.data.data.addmacher;
744
+              this.dialogVisible = false;
745
+              this.$message.success("保存成功");
746
+              this.form.bed_number = "";
747
+              this.form.serial_number = "";
748
+              this.form.device_name = "";
749
+              this.form.manufacture_factory = "";
750
+              this.form.service_manufacturer = "";
751
+              this.form.use_section = "";
752
+              this.form.section_number = "";
753
+              this.form.maintenance_engineer = "";
754
+              this.form.telephone = "";
755
+              this.form.user_total = "";
756
+              this.form.remarks = "";
757
+              this.form.user_year = "";
758
+              this.form.work_time = "";
759
+              this.form.unit_type = "";
760
+              this.getAllSubregion();
761
+              this.$emit("getAllMachineInfo");
762
+              this.$forceUpdate();
763 763
             } else {
764
-              this.$message.error('添加失败')
764
+              this.$message.error("添加失败");
765 765
             }
766
-          })
766
+          });
767 767
         }
768
-      })
768
+      });
769 769
     },
770 770
     SaveManageInfoTwo(formName) {
771
-      if (this.form.bed_number === '') {
772
-        this.form.bed_number = 0
771
+      if (this.form.bed_number === "") {
772
+        this.form.bed_number = 0;
773 773
       }
774 774
 
775
-      var device_type = this.form.device_type
776
-      var device_types = parseInt(device_type)
777
-      this.form.device_type = device_types
775
+      var device_type = this.form.device_type;
776
+      var device_types = parseInt(device_type);
777
+      this.form.device_type = device_types;
778 778
 
779
-      if (this.form.rubbish_reason === '') {
780
-        this.form.rubbish_reason = 0
779
+      if (this.form.rubbish_reason === "") {
780
+        this.form.rubbish_reason = 0;
781 781
       }
782
-      var rubbish_reason = this.form.rubbish_reason
783
-      var rubbish_reasons = parseInt(rubbish_reason)
784
-      this.form.rubbish_reason = rubbish_reasons
782
+      var rubbish_reason = this.form.rubbish_reason;
783
+      var rubbish_reasons = parseInt(rubbish_reason);
784
+      this.form.rubbish_reason = rubbish_reasons;
785 785
 
786
-      var machine_status = this.form.machine_status
787
-      var machine_statuss = parseInt(machine_status)
788
-      this.form.machine_status = machine_statuss
786
+      var machine_status = this.form.machine_status;
787
+      var machine_statuss = parseInt(machine_status);
788
+      this.form.machine_status = machine_statuss;
789 789
 
790
-      if (this.form.revers_mode === '') {
791
-        this.form.revers_mode = 0
790
+      if (this.form.revers_mode === "") {
791
+        this.form.revers_mode = 0;
792 792
       }
793 793
 
794
-      var revers_mode = this.form.revers_mode
795
-      var revers_modes = parseInt(revers_mode)
796
-      this.form.revers_mode = revers_modes
794
+      var revers_mode = this.form.revers_mode;
795
+      var revers_modes = parseInt(revers_mode);
796
+      this.form.revers_mode = revers_modes;
797 797
 
798
-      if (this.form.Disinfection_mode === '') {
799
-        this.form.Disinfection_mode = 0
798
+      if (this.form.Disinfection_mode === "") {
799
+        this.form.Disinfection_mode = 0;
800 800
       }
801
-      var disinfecction_modes = this.form.Disinfection_mode
802
-      var disinfecction_modess = parseInt(disinfecction_modes)
803
-      this.form.Disinfection_mode = disinfecction_modess
801
+      var disinfecction_modes = this.form.Disinfection_mode;
802
+      var disinfecction_modess = parseInt(disinfecction_modes);
803
+      this.form.Disinfection_mode = disinfecction_modess;
804 804
 
805 805
       this.$refs[formName].validate(valid => {
806 806
         if (valid) {
807 807
           SaveManageInfoTwo(this.form, this.forms.beds).then(response => {
808 808
             if (response.data.state === 1) {
809
-              var add = response.data.data.addmacher
810
-              console.log('add', add)
811
-              this.dialogVisible = false
812
-              this.$message.success('保存成功')
813
-              this.getAllSubregion()
814
-              this.$emit('getAllMachineInfo')
815
-              this.$forceUpdate()
809
+              var add = response.data.data.addmacher;
810
+              console.log("add", add);
811
+              this.dialogVisible = false;
812
+              this.$message.success("保存成功");
813
+              this.getAllSubregion();
814
+              this.$emit("getAllMachineInfo");
815
+              this.$forceUpdate();
816 816
             }
817
-          })
817
+          });
818 818
         }
819
-      })
819
+      });
820 820
     },
821 821
     getAllMode() {
822 822
       getAllMode().then(response => {
823
-        var mode = response.data.data.mode
824
-        this.deviceMode = mode
825
-        console.log('mode', mode)
826
-      })
823
+        var mode = response.data.data.mode;
824
+        this.deviceMode = mode;
825
+        console.log("mode", mode);
826
+      });
827 827
     }
828 828
   },
829 829
   created() {
830
-    this.getAllSubregion()
831
-    this.getAllMode()
830
+    this.getAllSubregion();
831
+    this.getAllMode();
832 832
   }
833
-}
833
+};
834 834
 </script>
835 835
 
836 836
 <style lang="scss">
@@ -847,4 +847,21 @@ export default {
847 847
   line-height: 26px;
848 848
   height: 26px;
849 849
 }
850
+#manage-form {
851
+  .el-form-item__label {
852
+    width: 100px;
853
+    padding: 0;
854
+  }
855
+}
856
+.el-checkbox {
857
+  color: #606266;
858
+  font-weight: 500;
859
+  font-size: 14px;
860
+  cursor: pointer;
861
+  -webkit-user-select: none;
862
+  -moz-user-select: none;
863
+  -ms-user-select: none;
864
+  user-select: none;
865
+  margin-right: 26px;
866
+}
850 867
 </style>

+ 91 - 74
src/xt_pages/management/index.vue ファイルの表示

@@ -9,8 +9,8 @@
9 9
         icon="el-icon-circle-plus-outline"
10 10
         size="small"
11 11
         @click="AddManage()"
12
-        >新增
13
-      </el-button>
12
+        >新增</el-button
13
+      >
14 14
     </div>
15 15
     <div class="app-container">
16 16
       <div class="cell clearfix">
@@ -27,8 +27,8 @@
27 27
           icon="el-icon-search"
28 28
           size="small"
29 29
           @click="seahcerMacherInfo()"
30
-          >搜索
31
-        </el-button>
30
+          >搜索</el-button
31
+        >
32 32
       </div>
33 33
 
34 34
       <div class="cell clearfix">
@@ -85,22 +85,31 @@
85 85
         </div>
86 86
       </div>
87 87
 
88
-      <el-table :data="tableData" border style="width: 100%">
89
-        <el-table-column label="序号" width="180" align="center" type="index">
88
+      <el-table
89
+        :data="tableData"
90
+        border
91
+        style="width: 100%"
92
+        :row-style="{ color: '#303133' }"
93
+        :header-cell-style="{
94
+          backgroundColor: 'rgb(245, 247, 250)',
95
+          color: '#606266'
96
+        }"
97
+      >
98
+        <el-table-column label="序号" width="80" align="center" type="index">
90 99
           <!-- <template slot-scope="scope">{{ scope.row.id }}</template> -->
91 100
         </el-table-column>
92 101
 
93
-        <el-table-column label="序列号" width="180" align="center">
102
+        <el-table-column label="序列号" width="120" align="center">
94 103
           <template slot-scope="scope">{{ scope.row.serial_number }}</template>
95 104
         </el-table-column>
96 105
 
97
-        <el-table-column label="设备类型" width="180" align="center">
106
+        <el-table-column label="设备类型" width="120" align="center">
98 107
           <template slot-scope="scope">{{ scope.row.device_type }}</template>
99 108
         </el-table-column>
100
-        <el-table-column label="设备名称" width="180" align="center">
109
+        <el-table-column label="设备名称" width="120" align="center">
101 110
           <template slot-scope="scope">{{ scope.row.device_name }}</template>
102 111
         </el-table-column>
103
-        <el-table-column label="设备型号" align="center">
112
+        <el-table-column label="设备型号" width="120" align="center">
104 113
           <template slot-scope="scope">{{ scope.row.device_mode }}</template>
105 114
         </el-table-column>
106 115
 
@@ -120,14 +129,14 @@
120 129
           <template slot-scope="scope">{{ scope.row.user_total }}</template>
121 130
         </el-table-column>
122 131
 
123
-        <el-table-column label="操作" align="center">
132
+        <el-table-column label="操作" width="120" align="center">
124 133
           <template slot-scope="scope">
125 134
             <el-button
126 135
               @click="handleClick(scope.row.id, scope.$index, scope.row.bed_id)"
127
-              type="text"
136
+              type="primary"
128 137
               size="small"
129
-              >查看
130
-            </el-button>
138
+              >查看</el-button
139
+            >
131 140
           </template>
132 141
         </el-table-column>
133 142
       </el-table>
@@ -152,12 +161,12 @@
152 161
 </template>
153 162
 
154 163
 <script>
155
-import BreadCrumb from '../components/bread-crumb'
156
-import { getAllMachineInfo, getAllSubregion } from '@/api/manage'
157
-import ManageForm from './components/ManageForm'
164
+import BreadCrumb from "../components/bread-crumb";
165
+import { getAllMachineInfo, getAllSubregion } from "@/api/manage";
166
+import ManageForm from "./components/ManageForm";
158 167
 
159 168
 export default {
160
-  name: 'index.vue',
169
+  name: "index.vue",
161 170
   components: {
162 171
     BreadCrumb,
163 172
     ManageForm
@@ -165,75 +174,75 @@ export default {
165 174
   data() {
166 175
     return {
167 176
       crumbs: [
168
-        { path: false, name: '设备管理' },
169
-        { path: false, name: '设备管理' }
177
+        { path: false, name: "设备管理" },
178
+        { path: false, name: "设备管理" }
170 179
       ],
171
-      searchKey: '',
172
-      zones: [{ id: 0, name: '全部' }],
180
+      searchKey: "",
181
+      zones: [{ id: 0, name: "全部" }],
173 182
       schedulType: 0,
174 183
       schedulTypeone: 0,
175 184
       schedulTypetwo: 0,
176 185
       DeviceType: [
177
-        { id: 0, name: '全部' },
178
-        { id: 1, name: '透析机' },
179
-        { id: 2, name: '水处理机' },
180
-        { id: 3, name: '其他' }
186
+        { id: 0, name: "全部" },
187
+        { id: 1, name: "透析机" },
188
+        { id: 2, name: "水处理机" },
189
+        { id: 3, name: "其他" }
181 190
       ],
182 191
 
183 192
       AllStatus: [
184
-        { id: 0, name: '全部' },
185
-        { id: 1, name: '使用机' },
186
-        { id: 2, name: '备用机' },
187
-        { id: 3, name: '急诊机' },
188
-        { id: 4, name: '报废机' }
193
+        { id: 0, name: "全部" },
194
+        { id: 1, name: "使用机" },
195
+        { id: 2, name: "备用机" },
196
+        { id: 3, name: "急诊机" },
197
+        { id: 4, name: "报废机" }
189 198
       ],
190 199
       tableData: [],
191 200
       listQuery: {
192 201
         page: 1,
193 202
         limit: 10,
194
-        searchKey: '',
195
-        zoneid: '',
196
-        equipmentid: '',
197
-        statusid: ''
203
+        searchKey: "",
204
+        zoneid: "",
205
+        equipmentid: "",
206
+        statusid: ""
198 207
       },
199 208
       total: 0
200
-    }
209
+    };
201 210
   },
202 211
   methods: {
203 212
     getAllSubregion() {
204 213
       getAllSubregion().then(response => {
205 214
         if (response.data.state === 1) {
206
-          var zone = response.data.data.zones
207
-          var zones = [{ id: 0, name: '全部' }]
215
+          var zone = response.data.data.zones;
216
+          var zones = [{ id: 0, name: "全部" }];
208 217
           for (let i = 0; i < zone.length; i++) {
209
-            const item = zone[i]
210
-            zones.push({ id: item.id, name: item.name })
218
+            const item = zone[i];
219
+            zones.push({ id: item.id, name: item.name });
211 220
           }
212 221
           // console.log('zones', zones)
213
-          this.zones = zones
222
+          this.zones = zones;
214 223
         }
215
-      })
224
+      });
216 225
     },
217 226
     selectSchedulType(scheduleType) {
218
-      this.schedulType = scheduleType
219
-      this.listQuery.zoneid = scheduleType
220
-      this.getAllMachineInfo()
227
+      this.schedulType = scheduleType;
228
+      this.listQuery.zoneid = scheduleType;
229
+      this.getAllMachineInfo();
221 230
     },
222 231
     selectSchedulTypeOne(scheduleType) {
223
-      this.schedulTypeone = scheduleType
224
-      this.listQuery.equipmentid = scheduleType
225
-      this.getAllMachineInfo()
232
+      this.schedulTypeone = scheduleType;
233
+      this.listQuery.equipmentid = scheduleType;
234
+      this.getAllMachineInfo();
226 235
     },
227 236
     selectSchedulTypeTwo(scheduleType) {
228
-      this.schedulTypetwo = scheduleType
229
-      this.listQuery.statusid = scheduleType
230
-      this.getAllMachineInfo()
237
+      this.schedulTypetwo = scheduleType;
238
+      this.listQuery.statusid = scheduleType;
239
+      this.getAllMachineInfo();
231 240
     },
232 241
     seahcerMacherInfo() {
233
-      this.getAllMachineInfo()
242
+      this.getAllMachineInfo();
234 243
     },
235 244
     AddManage() {
236
-      this.$refs.manageForm.open()
245
+      this.$refs.manageForm.open();
237 246
     },
238 247
     getAllMachineInfo() {
239 248
       getAllMachineInfo(
@@ -245,61 +254,69 @@ export default {
245 254
         this.listQuery.statusid
246 255
       ).then(response => {
247 256
         if (response.data.state === 1) {
248
-          var addmahcer = response.data.data.addmahcer
257
+          var addmahcer = response.data.data.addmahcer;
249 258
           for (let index = 0; index < addmahcer.length; index++) {
250 259
             if (addmahcer[index].device_type === 1) {
251
-              addmahcer[index].device_type = '透析机'
260
+              addmahcer[index].device_type = "透析机";
252 261
             }
253 262
             if (addmahcer[index].device_type === 2) {
254
-              addmahcer[index].device_type = '水处理机'
263
+              addmahcer[index].device_type = "水处理机";
255 264
             }
256 265
 
257 266
             if (addmahcer[index].device_type === 3) {
258
-              addmahcer[index].device_type = '其他'
267
+              addmahcer[index].device_type = "其他";
259 268
             }
260 269
 
261 270
             if (addmahcer[index].machine_status === 1) {
262
-              addmahcer[index].machine_status = '使用机'
271
+              addmahcer[index].machine_status = "使用机";
263 272
             }
264 273
             if (addmahcer[index].machine_status === 2) {
265
-              addmahcer[index].machine_status = '备用机'
274
+              addmahcer[index].machine_status = "备用机";
266 275
             }
267 276
             if (addmahcer[index].machine_status === 3) {
268
-              addmahcer[index].machine_status = '急诊机'
277
+              addmahcer[index].machine_status = "急诊机";
269 278
             }
270 279
             if (addmahcer[index].machine_status === 4) {
271
-              addmahcer[index].machine_status = '报废机'
280
+              addmahcer[index].machine_status = "报废机";
272 281
             }
273 282
           }
274
-          this.tableData = addmahcer
283
+          this.tableData = addmahcer;
275 284
           // console.log('addmacher', addmahcer)
276
-          var total = response.data.data.total
285
+          var total = response.data.data.total;
277 286
           // console.log('total', total)
278
-          this.total = total
287
+          this.total = total;
279 288
         }
280
-      })
289
+      });
281 290
     },
282 291
     handleSizeChange(limit) {
283
-      this.listQuery.limit = limit
284
-      this.getAllMachineInfo()
292
+      this.listQuery.limit = limit;
293
+      this.getAllMachineInfo();
285 294
     },
286 295
     handleCurrentChange(page) {
287
-      this.listQuery.page = page
288
-      this.getAllMachineInfo()
296
+      this.listQuery.page = page;
297
+      this.getAllMachineInfo();
289 298
     },
290 299
     handleClick(id, index, bedid) {
291 300
       this.$router.push({
292
-        path: '/device/home?index=' + index + '&' + 'bedid=' + bedid + '&' + 'id=' + id
293
-      })
301
+        path:
302
+          "/device/home?index=" +
303
+          index +
304
+          "&" +
305
+          "bedid=" +
306
+          bedid +
307
+          "&" +
308
+          "id=" +
309
+          id
310
+      });
294 311
       // this.$router.push({ path: '/device/home?index=' + index + '&' + 'id=' + id })
295 312
     }
296 313
   },
297 314
   created() {
298 315
     // 获取所有的分区
299
-    this.getAllSubregion()
300
-    this.getAllMachineInfo()
316
+    this.getAllSubregion();
317
+    this.getAllMachineInfo();
301 318
   }
302
-}
319
+};
303 320
 </script>
304 321
 
305 322
 <style scoped></style>

+ 34 - 34
src/xt_pages/user/components/PatientForm.vue ファイルの表示

@@ -752,10 +752,10 @@ const defaultForm = {
752 752
     {
753 753
       id: 0,
754 754
       item: "",
755
-      item_id: 104,
756
-      item_name: "甲型肝抗体测定(Anti-HAV:各种免疫方法)",
755
+      item_id: 60,
756
+      item_name: "丙型肝炎病毒核心抗体(AntiHCV)",
757 757
       project_id: 14,
758
-      project_name: "甲肝乙肝丙肝梅毒HIV",
758
+      project_name: "传染病检查",
759 759
       range_type: 2,
760 760
       select_options: ["阴性", "阳性", "弱阳性"],
761 761
       unit: "",
@@ -764,10 +764,10 @@ const defaultForm = {
764 764
     {
765 765
       id: 0,
766 766
       item: "",
767
-      item_id: 105,
768
-      item_name: "乙型肝炎表面抗原测定(HBsAg:酶标法)",
767
+      item_id: 62,
768
+      item_name: "乙型肝炎病毒表面抗原(HBsAg)",
769 769
       project_id: 14,
770
-      project_name: "甲肝乙肝丙肝梅毒HIV",
770
+      project_name: "传染病检查",
771 771
       range_type: 2,
772 772
       select_options: ["阴性", "阳性", "弱阳性"],
773 773
       unit: "",
@@ -776,10 +776,10 @@ const defaultForm = {
776 776
     {
777 777
       id: 0,
778 778
       item: "",
779
-      item_id: 106,
780
-      item_name: "乙型肝炎表面抗体测定(Anti-HBs:酶标法)",
779
+      item_id: 63,
780
+      item_name: "乙型肝炎病毒表面抗体(AntiHBs)",
781 781
       project_id: 14,
782
-      project_name: "甲肝乙肝丙肝梅毒HIV",
782
+      project_name: "传染病检查",
783 783
       range_type: 2,
784 784
       select_options: ["阴性", "阳性", "弱阳性"],
785 785
       unit: "",
@@ -788,10 +788,10 @@ const defaultForm = {
788 788
     {
789 789
       id: 0,
790 790
       item: "",
791
-      item_id: 107,
792
-      item_name: "乙型肝炎e抗原测定(HBeAg:酶标法)",
791
+      item_id: 64,
792
+      item_name: "乙型肝炎病毒E抗原(HBeAg)",
793 793
       project_id: 14,
794
-      project_name: "甲肝乙肝丙肝梅毒HIV",
794
+      project_name: "传染病检查",
795 795
       range_type: 2,
796 796
       select_options: ["阴性", "阳性", "弱阳性"],
797 797
       unit: "",
@@ -800,10 +800,10 @@ const defaultForm = {
800 800
     {
801 801
       id: 0,
802 802
       item: "",
803
-      item_id: 108,
804
-      item_name: "乙型肝炎e抗体测定(Anti-Hbe:酶标法)",
803
+      item_id: 65,
804
+      item_name: "乙型肝炎病毒E抗体(AntiHBe)",
805 805
       project_id: 14,
806
-      project_name: "甲肝乙肝丙肝梅毒HIV",
806
+      project_name: "传染病检查",
807 807
       range_type: 2,
808 808
       select_options: ["阴性", "阳性", "弱阳性"],
809 809
       unit: "",
@@ -812,10 +812,10 @@ const defaultForm = {
812 812
     {
813 813
       id: 0,
814 814
       item: "",
815
-      item_id: 109,
816
-      item_name: "乙型肝炎核心抗体测定(Anti-HBc)",
815
+      item_id: 66,
816
+      item_name: "乙型肝炎病毒核心抗体(AntiHBc)",
817 817
       project_id: 14,
818
-      project_name: "甲肝乙肝丙肝梅毒HIV",
818
+      project_name: "传染病检查",
819 819
       range_type: 2,
820 820
       select_options: ["阴性", "阳性", "弱阳性"],
821 821
       unit: "",
@@ -824,10 +824,10 @@ const defaultForm = {
824 824
     {
825 825
       id: 0,
826 826
       item: "",
827
-      item_id: 110,
828
-      item_name: "丙型肝炎抗体测定(Anti-HCV:定性)",
827
+      item_id: 111,
828
+      item_name: "HIV抗体",
829 829
       project_id: 14,
830
-      project_name: "甲肝乙肝丙肝梅毒HIV",
830
+      project_name: "传染病检查",
831 831
       range_type: 2,
832 832
       select_options: ["阴性", "阳性", "弱阳性"],
833 833
       unit: "",
@@ -836,10 +836,10 @@ const defaultForm = {
836 836
     {
837 837
       id: 0,
838 838
       item: "",
839
-      item_id: 111,
840
-      item_name: "人类免疫缺陷病毒抗体测定(Anti-HIV)",
839
+      item_id: 112,
840
+      item_name: "梅毒",
841 841
       project_id: 14,
842
-      project_name: "甲肝乙肝丙肝梅毒HIV",
842
+      project_name: "传染病检查",
843 843
       range_type: 2,
844 844
       select_options: ["阴性", "阳性", "弱阳性"],
845 845
       unit: "",
@@ -848,24 +848,24 @@ const defaultForm = {
848 848
     {
849 849
       id: 0,
850 850
       item: "",
851
-      item_id: 112,
852
-      item_name: "梅毒螺旋体特异抗体测定(凝集,印迹法)",
851
+      item_id: 178,
852
+      item_name: "乙型病毒DNA测定(HBVDNH)",
853 853
       project_id: 14,
854
-      project_name: "甲肝乙肝丙肝梅毒HIV",
855
-      range_type: 2,
856
-      select_options: ["阴性", "阳性", "弱阳性"],
854
+      project_name: "传染病检查",
855
+      range_type: 1,
856
+      select_options: 0,
857 857
       unit: "",
858 858
       value: ""
859 859
     },
860 860
     {
861 861
       id: 0,
862 862
       item: "",
863
-      item_id: 113,
864
-      item_name: "快速血浆反应素试验(RPR)",
863
+      item_id: 179,
864
+      item_name: "丙型病毒DNA测定(HCVDNH",
865 865
       project_id: 14,
866
-      project_name: "甲肝乙肝丙肝梅毒HIV",
867
-      range_type: 2,
868
-      select_options: ["阴性", "阳性", "弱阳性"],
866
+      project_name: "传染病检查",
867
+      range_type: 1,
868
+      select_options: 0,
869 869
       unit: "",
870 870
       value: ""
871 871
     }

+ 11 - 11
src/xt_pages/user/dialysisSolution.vue ファイルの表示

@@ -188,17 +188,17 @@
188 188
               <el-input v-model="addPlan.blood_flow_volume"></el-input>
189 189
             </el-form-item>
190 190
           </el-col>
191
-          <el-col :span="8" v-if="isShows('目标超滤量')&&this.$store.getters.xt_user.template_info.template_id == 6">
192
-            <el-form-item label="目标超滤量(ml) : ">
193
-              <el-input v-model="addPlan.target_ultrafiltration" type="number"></el-input>
194
-            </el-form-item>
195
-          </el-col>
196
-
197
-          <el-col :span="8" v-if="isShows('目标超滤量')&&this.$store.getters.xt_user.template_info.template_id != 6">
198
-            <el-form-item label="目标超滤量(L) : ">
199
-              <el-input v-model="addPlan.target_ultrafiltration" type="number"></el-input>
200
-            </el-form-item>
201
-          </el-col>
191
+          <!--<el-col :span="8" v-if="isShows('目标超滤量')&&this.$store.getters.xt_user.template_info.template_id == 6">-->
192
+            <!--<el-form-item label="目标超滤量(ml) : ">-->
193
+              <!--<el-input v-model="addPlan.target_ultrafiltration" type="number"></el-input>-->
194
+            <!--</el-form-item>-->
195
+          <!--</el-col>-->
196
+
197
+          <!--<el-col :span="8" v-if="isShows('目标超滤量')&&this.$store.getters.xt_user.template_info.template_id != 6">-->
198
+            <!--<el-form-item label="目标超滤量(L) : ">-->
199
+              <!--<el-input v-model="addPlan.target_ultrafiltration" type="number"></el-input>-->
200
+            <!--</el-form-item>-->
201
+          <!--</el-col>-->
202 202
 
203 203
 
204 204
           <el-col :span="8" v-if="isShows('透析液配方')">

+ 1 - 0
src/xt_pages/user/doctorAdvice.vue ファイルの表示

@@ -3198,6 +3198,7 @@ export default {
3198 3198
         this.cqtableData = selection;
3199 3199
       }
3200 3200
       if (this.adviceType != 3) {
3201
+
3201 3202
         this.lstableData = [];
3202 3203
       } else if (this.adviceType != 1) {
3203 3204
         this.cqtableData = [];

+ 19 - 19
src/xt_permission.js ファイルの表示

@@ -1,12 +1,12 @@
1
-import router from './router'
2
-import store from './store'
3
-import NProgress from 'nprogress' // progress bar
4
-import 'nprogress/nprogress.css'// progress bar style
1
+import router from "./router";
2
+import store from "./store";
3
+import NProgress from "nprogress"; // progress bar
4
+import "nprogress/nprogress.css"; // progress bar style
5 5
 
6
-NProgress.configure({ showSpinner: false })// NProgress Configuration
6
+NProgress.configure({ showSpinner: false }); // NProgress Configuration
7 7
 
8
-const loginWhiteList = ['/token/verify', '/401', '/404'] // 登录验证白名单
9
-const permissionWhiteList = loginWhiteList.concat(['/']) // 权限验证白名单
8
+const loginWhiteList = ["/token/verify", "/401", "/404"]; // 登录验证白名单
9
+const permissionWhiteList = loginWhiteList.concat(["/"]); // 权限验证白名单
10 10
 
11 11
 router.beforeEach((to, from, next) => {
12 12
   // 线上注释
@@ -25,44 +25,44 @@ router.beforeEach((to, from, next) => {
25 25
   // return
26 26
   // 线上注释
27 27
 
28
-  NProgress.start()
28
+  NProgress.start();
29 29
   // console.log(store.getters.current_role_urls.indexOf(to.path))
30 30
   // alert('path:' + to.path)
31 31
   // 如果 url 带有 lt (login_token)参数,则跳转到验证 token 时等待的页面
32 32
   if (to.query.lt != null && to.query.lt.length > 0) {
33 33
     // alert('will go to verify token: ' + to.query.lt)
34
-    next({ path: '/token/verify', query: { token: to.query.lt }})
34
+    next({ path: "/token/verify", query: { token: to.query.lt } });
35 35
 
36 36
     // 否则 如果没有 user 信息,则前往 sso 登录
37 37
   } else if (store.getters.xt_user.user.id === 0) {
38 38
     if (loginWhiteList.indexOf(to.path) !== -1) {
39 39
       // alert('登录白名单内,跳过登录')
40
-      next()
40
+      next();
41 41
     } else {
42 42
       // alert('前往登录')
43
-      window.location.href = process.env.BASE_API + '/login' // sso 地址
43
+      window.location.href = process.env.BASE_API + "/login"; // sso 地址
44 44
     }
45 45
 
46 46
     // 否则 如果当前 url 不需要验证访问权限,则通过
47 47
   } else if (permissionWhiteList.indexOf(to.path) !== -1) {
48 48
     // alert('权限验证白名单内,直接进入')
49
-    next()
49
+    next();
50 50
 
51 51
     // 否则 如果拥有当前 url 的权限,则通过
52
-  // } else if (store.getters.current_role_urls.indexOf(to.path) !== -1) {
53
-  //   // alert('权限验证通过')
54
-  //   next()
52
+    // } else if (store.getters.current_role_urls.indexOf(to.path) !== -1) {
53
+    //   // alert('权限验证通过')
54
+    //   next()
55 55
 
56 56
     // 否则 跳转401 (未经授权)
57 57
   } else {
58 58
     // console.log(store.getters.current_role_urls)
59 59
     // console.log(store.getters.current_role_urls.indexOf(to.path))
60 60
     // alert('401')
61
-    next()
61
+    next();
62 62
     // next({ path: '/404' })
63 63
   }
64
-})
64
+});
65 65
 
66 66
 router.afterEach(() => {
67
-  NProgress.done()
68
-})
67
+  NProgress.done();
68
+});