Browse Source

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

csx 4 years ago
parent
commit
d7010f9e28

+ 239 - 243
src/api/manage.js View File

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

+ 6 - 6
src/xt_pages/dialysis/schedualPatient.vue View File

@@ -6,7 +6,7 @@
6 6
   <div class="app-container">
7 7
     <div class="cell clearfix">
8 8
       <!-- <label class="title"><span class="name">病人查询</span> : </label> -->
9
-      <el-input size="small" style="width: 280px;" v-model="search_input" class="filter-item"/>
9
+      <el-input size="small" style="width: 280px;" v-model.trim="search_input" class="filter-item"/>
10 10
       <el-button size="small" class="filter-item" type="primary" icon="el-icon-search" @click="searchAction">搜索</el-button>
11 11
     </div>
12 12
     <div class="cell clearfix">
@@ -61,7 +61,7 @@ import { getDialysisRecordInitData, getDialysisSchedules } from '@/api/dialysis_
61 61
       return {
62 62
         crumbs: [
63 63
           { path: false, name: '透析管理' },
64
-          { path: 'dialysis/dialysisrecord', name: '透析记录' },
64
+          { path: 'dialysis/dialysisrecord', name: '透析记录' }
65 65
         ],
66 66
         selected_date: new Date(), // this.$store.getters.app.dialysis_area.schedule_date,
67 67
         schedule_type_selected: 0, // this.$store.getters.app.dialysis_area.schedule_type_select_index,
@@ -187,10 +187,10 @@ import { getDialysisRecordInitData, getDialysisSchedules } from '@/api/dialysis_
187 187
     created() {
188 188
       var schedule_type_selected = this.$store.getters.schedule_type_selected
189 189
       var zone_selected = this.$store.getters.zone_selected
190
-      if(schedule_type_selected){
190
+      if (schedule_type_selected) {
191 191
         this.schedule_type_selected = schedule_type_selected.schedule_type_selected
192 192
       }
193
-      if(zone_selected){
193
+      if (zone_selected) {
194 194
         this.zone_selected = zone_selected.zone_selected
195 195
       }
196 196
       this.getInitData()
@@ -198,7 +198,7 @@ import { getDialysisRecordInitData, getDialysisSchedules } from '@/api/dialysis_
198 198
     methods: {
199 199
       handletimeType: function(index) {
200 200
         this.schedule_type_selected = index
201
-        this.$store.dispatch("SetScheduleTypeSelected",{schedule_type_selected:index})
201
+        this.$store.dispatch('SetScheduleTypeSelected', { schedule_type_selected: index })
202 202
         this.search_keyword = this.search_input = ''
203 203
         // this.$store.dispatch("SaveDialysisAreaSelectIndexs", {
204 204
         //   zone: this.zone_selected,
@@ -208,7 +208,7 @@ import { getDialysisRecordInitData, getDialysisSchedules } from '@/api/dialysis_
208 208
       },
209 209
       handleZoneChange: function(index) {
210 210
         this.zone_selected = index
211
-        this.$store.dispatch("SetZoneSelected",{zone_selected:index})
211
+        this.$store.dispatch('SetZoneSelected', { zone_selected: index })
212 212
         this.search_keyword = this.search_input = ''
213 213
         // this.$store.dispatch("SaveDialysisAreaSelectIndexs", {
214 214
         //   zone: this.zone_selected,

File diff suppressed because it is too large
+ 2459 - 1563
src/xt_pages/dialysis/template/DialysisPrintOrderSeven.vue


+ 9 - 9
src/xt_pages/management/home.vue View File

@@ -2651,7 +2651,7 @@ export default {
2651 2651
         this.getMachineDetailById(val.id)
2652 2652
         this.equimentid = val.id
2653 2653
         this.userdata = val.id
2654
-        this.getAllPlanDetail(val.unit_type, val.bed_id)
2654
+        this.getAllPlanDetail(val.unit_type)
2655 2655
         this.getPatientInfo(val.id)
2656 2656
         // 获取基本信息
2657 2657
         this.getUserRegister(val.id)
@@ -3070,8 +3070,8 @@ export default {
3070 3070
           this.form.rubbish_reason = ''
3071 3071
         }
3072 3072
       },
3073
-      getAllPlan(bedid) {
3074
-        getAllPlan(bedid).then(response => {
3073
+      getAllPlan() {
3074
+        getAllPlan().then(response => {
3075 3075
           if (response.data.state === 1) {
3076 3076
             var plan = response.data.data.plan
3077 3077
 
@@ -3204,8 +3204,8 @@ export default {
3204 3204
           }
3205 3205
         })
3206 3206
       },
3207
-      getAllPlanDetail(unit_type, bedid) {
3208
-        getAllPlanDetail(unit_type, bedid).then(response => {
3207
+      getAllPlanDetail(unit_type) {
3208
+        getAllPlanDetail(unit_type).then(response => {
3209 3209
           if (response.data.state === 1) {
3210 3210
             var plandetail = response.data.data.plandetail
3211 3211
             console.log('plandetail', plandetail)
@@ -3393,8 +3393,8 @@ export default {
3393 3393
             var plan = response.data.data.plan
3394 3394
             this.dialogVisible = false
3395 3395
             this.$message.success('修改成功')
3396
-            this.getAllPlanDetail(this.unitType, this.$route.query.bedid)
3397
-            this.getAllPlan(this.$route.query.bedid)
3396
+            this.getAllPlanDetail(this.unitType)
3397
+            this.getAllPlan()
3398 3398
           }
3399 3399
         })
3400 3400
       },
@@ -4235,7 +4235,7 @@ export default {
4235 4235
       // 通过自组建传值改变表格数据
4236 4236
       getPlanData(data) {
4237 4237
         if (data === 1) {
4238
-          this.getAllPlanDetail(this.unitType, this.$route.query.bedid)
4238
+          this.getAllPlanDetail(this.unitType)
4239 4239
         }
4240 4240
       },
4241 4241
       getAllMode() {
@@ -4253,7 +4253,7 @@ export default {
4253 4253
       // var id = this.$route.query.id
4254 4254
       // this.equimentid = id
4255 4255
       this.bedid = bedid
4256
-      this.getAllPlan(bedid)
4256
+      this.getAllPlan()
4257 4257
       this.getAllEquimentName()
4258 4258
       this.getAllOrganization()
4259 4259
       this.getOrgName()

+ 1 - 1
src/xt_pages/management/index.vue View File

@@ -16,7 +16,7 @@
16 16
       <div class="cell clearfix">
17 17
         <el-input
18 18
           style="width: 400px;"
19
-          v-model="listQuery.searchKey"
19
+          v-model.trim="listQuery.searchKey"
20 20
           class="filter-item"
21 21
           placeholder="输入序列号/设备名/型号搜索"
22 22
           size="small"

+ 1 - 1
src/xt_pages/qcd/patientAnalysis/total.vue View File

@@ -10,7 +10,7 @@
10 10
         <el-form :inline="true" :model="listQuery">
11 11
           <el-form-item label="">
12 12
             <el-input
13
-              v-model="listQuery.search"
13
+              v-model.trim="listQuery.search"
14 14
               placeholder="姓名/透析号"
15 15
               style="width: 377px;"
16 16
             ></el-input>

+ 1 - 1
src/xt_pages/sign/index.vue View File

@@ -9,7 +9,7 @@
9 9
             <el-col :span="8">
10 10
                 <div class="dataTitle">患者列表</div>
11 11
                 <div style="margin-bottom: 10px;">
12
-                    <el-input v-model="queryParams.keywords" placeholder="姓名/透析号" style="width: 150px;" @change="changeSearch"></el-input>&nbsp;
12
+                    <el-input v-model.trim="queryParams.keywords" placeholder="姓名/透析号" style="width: 150px;" @change="changeSearch"></el-input>&nbsp;
13 13
                     <el-button type="primary" @change="changeSearch" icon="el-icon-search">搜索</el-button>&nbsp;&nbsp;&nbsp;&nbsp;
14 14
                     <el-select v-model="queryParams.schedule_type" style="width: 100px;" @change="changeSearch">
15 15
                     <el-option v-for="item in shiftOptions" :label="item.label" :value="item.value" :key="item.value"></el-option>

+ 1 - 1
src/xt_pages/stock/cancelStockOrder.vue View File

@@ -19,7 +19,7 @@
19 19
           size="small"
20 20
           style="width: 400px;"
21 21
           class="filter-item"
22
-          v-model="searchKey"
22
+          v-model.trim="searchKey"
23 23
           placeholder="单据编码/制单人/厂商"
24 24
         />
25 25
         <el-button

+ 1 - 1
src/xt_pages/stock/detail/cancelStockDetail.vue View File

@@ -13,7 +13,7 @@
13 13
         size="small"
14 14
         style="width: 400px;"
15 15
         class="filter-item"
16
-        v-model="searchKey"
16
+        v-model.trim="searchKey"
17 17
         placeholder="单据编码/制单人/规格名称"
18 18
       />
19 19
       <el-button

+ 1 - 1
src/xt_pages/stock/detail/stockInDetail.vue View File

@@ -14,7 +14,7 @@
14 14
         size="small"
15 15
         style="width: 400px;"
16 16
         class="filter-item"
17
-        v-model="searchKey"
17
+        v-model.trim="searchKey"
18 18
         placeholder="单据编码/制单人/规格名称"
19 19
       />
20 20
       <el-button

+ 1 - 1
src/xt_pages/stock/detail/stockOutDetail.vue View File

@@ -13,7 +13,7 @@
13 13
         size="small"
14 14
         style="width: 400px;"
15 15
         class="filter-item"
16
-        v-model="searchKey"
16
+        v-model.trim="searchKey"
17 17
         placeholder="单据编码/制单人/规格名称"
18 18
       />
19 19
       <el-button

+ 1 - 1
src/xt_pages/stock/otherCancelStockOrder.vue View File

@@ -19,7 +19,7 @@
19 19
           size="small"
20 20
           style="width: 400px;"
21 21
           class="filter-item"
22
-          v-model="searchKey"
22
+          v-model.trim="searchKey"
23 23
           placeholder="单据编码/制单人/厂商"
24 24
         />
25 25
         <el-button

+ 1 - 1
src/xt_pages/stock/otherSalesReturnOrder.vue View File

@@ -19,7 +19,7 @@
19 19
           size="small"
20 20
           style="width: 400px;"
21 21
           class="filter-item"
22
-          v-model="searchKey"
22
+          v-model.trim="searchKey"
23 23
           placeholder="单据编码/制单人/厂商"
24 24
         />
25 25
         <el-button

+ 1 - 1
src/xt_pages/stock/otherStockInOrder.vue View File

@@ -20,7 +20,7 @@
20 20
           size="small"
21 21
           style="width: 400px;"
22 22
           class="filter-item"
23
-          v-model="searchKey"
23
+          v-model.trim="searchKey"
24 24
           placeholder="单据编码/制单人/厂商"
25 25
         />
26 26
         <el-button

+ 1 - 1
src/xt_pages/stock/otherStockOutOrder.vue View File

@@ -18,7 +18,7 @@
18 18
           size="small"
19 19
           style="width: 400px;"
20 20
           class="filter-item"
21
-          v-model="searchKey"
21
+          v-model.trim="searchKey"
22 22
           placeholder="单据编码/制单人/厂商"
23 23
         />
24 24
         <el-button

+ 1 - 1
src/xt_pages/stock/salesReturnOrder.vue View File

@@ -18,7 +18,7 @@
18 18
         <el-input
19 19
           style="width: 400px;"
20 20
           class="filter-item"
21
-          v-model="searchKey"
21
+          v-model.trim="searchKey"
22 22
           placeholder="单据编码/制单人/厂商"
23 23
         />
24 24
         <el-button

+ 1 - 1
src/xt_pages/stock/stockDetail.vue View File

@@ -12,7 +12,7 @@
12 12
 
13 13
 
14 14
       <div class="cell clearfix" >
15
-        <el-input size="small" style="width: 400px;" class="filter-item" v-model="searchKey" placeholder="单据编码/制单人/厂商"/>
15
+        <el-input size="small" style="width: 400px;" class="filter-item" v-model.trim="searchKey" placeholder="单据编码/制单人/厂商"/>
16 16
         <el-button size="small" class="filter-item" type="primary" icon="el-icon-search" @click="search">搜索</el-button>
17 17
       </div>
18 18
 

+ 1 - 1
src/xt_pages/stock/stockInOrder.vue View File

@@ -19,7 +19,7 @@
19 19
         <el-input
20 20
           size="small"
21 21
           style="width: 400px;"
22
-          v-model="searchKey"
22
+          v-model.trim="searchKey"
23 23
           class="filter-item"
24 24
           placeholder="单据编码/制单人/厂商"
25 25
         />

+ 122 - 122
src/xt_pages/stock/stockOutOrder.vue View File

@@ -18,7 +18,7 @@
18 18
           size="small"
19 19
           style="width: 400px;"
20 20
           class="filter-item"
21
-          v-model="searchKey"
21
+          v-model.trim="searchKey"
22 22
           placeholder="单据编码/制单人/厂商"
23 23
         />
24 24
         <el-button
@@ -168,50 +168,50 @@
168 168
 </template>
169 169
 
170 170
 <script>
171
-import { uParseTime } from '@/utils/tools'
172
-import { fetchAllAdminUsers, fetchAllDoctorAndNurse } from '@/api/doctor'
171
+import { uParseTime } from "@/utils/tools";
172
+import { fetchAllAdminUsers, fetchAllDoctorAndNurse } from "@/api/doctor";
173 173
 
174 174
 import {
175 175
   deleteWarehouseOut,
176 176
   GetAllConfig,
177 177
   getWarehouseOutList
178
-} from '@/api/stock'
179
-import BreadCrumb from '../components/bread-crumb'
178
+} from "@/api/stock";
179
+import BreadCrumb from "../components/bread-crumb";
180 180
 
181 181
 export default {
182
-  name: 'salesReturnOrder',
182
+  name: "salesReturnOrder",
183 183
   components: { BreadCrumb },
184 184
   created() {
185
-    var nowDate = new Date()
186
-    var nowYear = nowDate.getFullYear()
187
-    var nowMonth = nowDate.getMonth() + 1
188
-    var nowDay = nowDate.getDate()
185
+    var nowDate = new Date();
186
+    var nowYear = nowDate.getFullYear();
187
+    var nowMonth = nowDate.getMonth() + 1;
188
+    var nowDay = nowDate.getDate();
189 189
     this.end_time =
190 190
       nowYear +
191
-      '-' +
192
-      (nowMonth < 10 ? '0' + nowMonth : nowMonth) +
193
-      '-' +
194
-      (nowDay < 10 ? '0' + nowDay : nowDay)
195
-    nowDate.setMonth(nowDate.getMonth() - 1)
196
-    nowYear = nowDate.getFullYear()
197
-    nowMonth = nowDate.getMonth() + 1
198
-    nowDay = nowDate.getDate()
191
+      "-" +
192
+      (nowMonth < 10 ? "0" + nowMonth : nowMonth) +
193
+      "-" +
194
+      (nowDay < 10 ? "0" + nowDay : nowDay);
195
+    nowDate.setMonth(nowDate.getMonth() - 1);
196
+    nowYear = nowDate.getFullYear();
197
+    nowMonth = nowDate.getMonth() + 1;
198
+    nowDay = nowDate.getDate();
199 199
     this.start_time =
200 200
       nowYear +
201
-      '-' +
202
-      (nowMonth < 10 ? '0' + nowMonth : nowMonth) +
203
-      '-' +
204
-      (nowDay < 10 ? '0' + nowDay : nowDay)
205
-    this.GetWarehouseOut()
206
-    this.GetConfigInfo()
207
-    this.fetchAllAdminUsers()
201
+      "-" +
202
+      (nowMonth < 10 ? "0" + nowMonth : nowMonth) +
203
+      "-" +
204
+      (nowDay < 10 ? "0" + nowDay : nowDay);
205
+    this.GetWarehouseOut();
206
+    this.GetConfigInfo();
207
+    this.fetchAllAdminUsers();
208 208
   },
209 209
   data() {
210 210
     return {
211
-      searchKey: '',
211
+      searchKey: "",
212 212
       crumbs: [
213
-        { path: false, name: '库存管理' },
214
-        { path: false, name: '出库单' }
213
+        { path: false, name: "库存管理" },
214
+        { path: false, name: "出库单" }
215 215
       ],
216 216
       page: 1,
217 217
       limit: 10,
@@ -221,17 +221,17 @@ export default {
221 221
       pageSelect: 0,
222 222
       adminUserOptions: [],
223 223
       multipleSelection: [],
224
-      signAndWeighBoxPatients: 'sign-and-weigh-box-patients',
225
-      start_time: '',
224
+      signAndWeighBoxPatients: "sign-and-weigh-box-patients",
225
+      start_time: "",
226 226
       warehouseOutDate: [],
227
-      end_time: '',
227
+      end_time: "",
228 228
       goodType: [],
229 229
       goodInfo: [],
230 230
       manufacturer: [],
231 231
       selectedTableData: [],
232 232
       dealer: [],
233 233
       type: 1
234
-    }
234
+    };
235 235
   },
236 236
   methods: {
237 237
     search: function() {
@@ -242,25 +242,25 @@ export default {
242 242
         end_time: this.end_time,
243 243
         type: this.type,
244 244
         keywords: this.searchKey
245
-      }
246
-      this.warehouseOutDate = []
245
+      };
246
+      this.warehouseOutDate = [];
247 247
       getWarehouseOutList(Params).then(response => {
248 248
         if (response.data.state == 0) {
249
-          this.$message.error(response.data.msg)
250
-          return false
249
+          this.$message.error(response.data.msg);
250
+          return false;
251 251
         } else {
252
-          this.total = response.data.data.total
252
+          this.total = response.data.data.total;
253 253
           for (let i = 0; i < response.data.data.list.length; i++) {
254
-            this.warehouseOutDate.push(response.data.data.list[i])
254
+            this.warehouseOutDate.push(response.data.data.list[i]);
255 255
           }
256 256
         }
257
-      })
257
+      });
258 258
     },
259 259
     AddNewOrder: function() {
260 260
       this.$router.push({
261
-        name: 'stockOutOrderAdd',
261
+        name: "stockOutOrderAdd",
262 262
         query: { type: this.type }
263
-      })
263
+      });
264 264
     },
265 265
     GetWarehouseOut: function() {
266 266
       const Params = {
@@ -269,211 +269,211 @@ export default {
269 269
         start_time: this.start_time,
270 270
         end_time: this.end_time,
271 271
         type: this.type
272
-      }
273
-      this.warehouseOutDate = []
272
+      };
273
+      this.warehouseOutDate = [];
274 274
       getWarehouseOutList(Params).then(response => {
275 275
         if (response.data.state == 0) {
276
-          this.$message.error(response.data.msg)
277
-          return false
276
+          this.$message.error(response.data.msg);
277
+          return false;
278 278
         } else {
279
-          this.total = response.data.data.total
279
+          this.total = response.data.data.total;
280 280
           for (let i = 0; i < response.data.data.list.length; i++) {
281
-            this.warehouseOutDate.push(response.data.data.list[i])
281
+            this.warehouseOutDate.push(response.data.data.list[i]);
282 282
           }
283 283
         }
284
-      })
284
+      });
285 285
     },
286 286
     getXuserName(id) {
287 287
       if (id <= 0) {
288
-        return ''
288
+        return "";
289 289
       }
290
-      var name = ''
290
+      var name = "";
291 291
       if (
292 292
         this.adminUserOptions == null ||
293
-        typeof this.adminUserOptions.length === 'undefined'
293
+        typeof this.adminUserOptions.length === "undefined"
294 294
       ) {
295
-        return name
295
+        return name;
296 296
       }
297
-      var leng = this.adminUserOptions.length
297
+      var leng = this.adminUserOptions.length;
298 298
       if (leng == 0) {
299
-        return name
299
+        return name;
300 300
       }
301 301
       for (let index = 0; index < leng; index++) {
302 302
         if (this.adminUserOptions[index].id == id) {
303
-          name = this.adminUserOptions[index].name
304
-          break
303
+          name = this.adminUserOptions[index].name;
304
+          break;
305 305
         }
306 306
       }
307
-      return name
307
+      return name;
308 308
     },
309 309
     fetchAllAdminUsers() {
310 310
       fetchAllAdminUsers().then(response => {
311
-        console.log(response)
311
+        console.log(response);
312 312
         if (response.data.state == 1) {
313
-          this.adminUserOptions = response.data.data.users
314
-          var alen = this.adminUserOptions.length
313
+          this.adminUserOptions = response.data.data.users;
314
+          var alen = this.adminUserOptions.length;
315 315
           for (let index = 0; index < alen; index++) {
316 316
             if (this.adminUserOptions[index].user_type == 2) {
317 317
               // this.doctorOptions.push(this.adminUserOptions[index]);
318 318
             }
319 319
           }
320 320
         }
321
-      })
321
+      });
322 322
     },
323 323
     handleSelectionChange: function(val) {
324
-      this.multipleSelection = val
324
+      this.multipleSelection = val;
325 325
     },
326 326
     handleSizeChange(val) {
327
-      this.limit = val
328
-      this.GetWarehouseOut()
327
+      this.limit = val;
328
+      this.GetWarehouseOut();
329 329
     },
330 330
     handleCurrentChange(val) {
331
-      this.page = val
332
-      this.GetWarehouseOut()
331
+      this.page = val;
332
+      this.GetWarehouseOut();
333 333
     },
334 334
     startTimeChange(val) {
335
-      this.GetWarehouseOut()
335
+      this.GetWarehouseOut();
336 336
     },
337 337
     endTimeChange(val) {
338
-      var time = this.getTimestamp(val) - this.getTimestamp(this.start_time)
338
+      var time = this.getTimestamp(val) - this.getTimestamp(this.start_time);
339 339
       if (time < 0) {
340
-        this.$message.error('结束时间不能小于开始时间')
341
-        this.end_time = ''
340
+        this.$message.error("结束时间不能小于开始时间");
341
+        this.end_time = "";
342 342
       } else {
343
-        this.GetWarehouseOut()
343
+        this.GetWarehouseOut();
344 344
       }
345 345
     },
346 346
     getTimestamp(time) {
347 347
       // 把时间日期转成时间戳
348
-      return new Date(time).getTime() / 1000
348
+      return new Date(time).getTime() / 1000;
349 349
     },
350 350
     calculate: function(val) {
351
-      return Math.round(parseFloat(val) * 100) / 100
351
+      return Math.round(parseFloat(val) * 100) / 100;
352 352
     },
353 353
     GetConfigInfo: function() {
354 354
       GetAllConfig().then(response => {
355 355
         if (response.data.state == 0) {
356
-          this.$message.error(response.data.msg)
357
-          return false
356
+          this.$message.error(response.data.msg);
357
+          return false;
358 358
         } else {
359
-          this.manufacturer = response.data.data.manufacturer
360
-          this.dealer = response.data.data.dealer
359
+          this.manufacturer = response.data.data.manufacturer;
360
+          this.dealer = response.data.data.dealer;
361 361
         }
362
-      })
362
+      });
363 363
     },
364 364
     getManufactuerName: function(manufacturer_id) {
365 365
       for (let i = 0; i < this.manufacturer.length; i++) {
366 366
         if (this.manufacturer[i].id == manufacturer_id) {
367
-          return this.manufacturer[i].manufacturer_name
367
+          return this.manufacturer[i].manufacturer_name;
368 368
         }
369 369
       }
370 370
     },
371 371
     getDealerName: function(dealer_id) {
372 372
       for (let i = 0; i < this.dealer.length; i++) {
373 373
         if (this.dealer[i].id == dealer_id) {
374
-          return this.dealer[i].dealer_name
374
+          return this.dealer[i].dealer_name;
375 375
         }
376 376
       }
377 377
     },
378 378
     handleEdit: function(index, row) {
379 379
       this.$router.push({
380
-        name: 'stockOutDetail',
380
+        name: "stockOutDetail",
381 381
         query: { id: row.id, type: this.type }
382
-      })
382
+      });
383 383
     },
384 384
     handleDelete: function(index, row) {
385
-      const ids = []
386
-      ids.push(row.id)
387
-      const idStr = ids.join(',')
385
+      const ids = [];
386
+      ids.push(row.id);
387
+      const idStr = ids.join(",");
388 388
 
389 389
       const params = {
390 390
         ids: idStr
391
-      }
391
+      };
392 392
 
393
-      this.$confirm('确认删除出库单记录?', '删除出库单记录', {
394
-        confirmButtonText: '确定',
395
-        cancelButtonText: '取消',
396
-        type: 'warning'
393
+      this.$confirm("确认删除出库单记录?", "删除出库单记录", {
394
+        confirmButtonText: "确定",
395
+        cancelButtonText: "取消",
396
+        type: "warning"
397 397
       })
398 398
         .then(() => {
399 399
           deleteWarehouseOut(params).then(response => {
400 400
             if (response.data.state == 0) {
401
-              this.$message.error(response.data.msg)
402
-              return false
401
+              this.$message.error(response.data.msg);
402
+              return false;
403 403
             } else {
404 404
               this.$notify({
405
-                title: '成功',
406
-                message: '删除成功',
407
-                type: 'success',
405
+                title: "成功",
406
+                message: "删除成功",
407
+                type: "success",
408 408
                 duration: 2000
409
-              })
409
+              });
410 410
               for (let i = 0; i < ids.length; i++) {
411 411
                 for (let y = 0; y < this.warehouseOutDate.length; y++) {
412 412
                   if (ids[i] == this.warehouseOutDate[y].id) {
413
-                    this.warehouseOutDate.splice(y, 1)
413
+                    this.warehouseOutDate.splice(y, 1);
414 414
                   }
415 415
                 }
416 416
               }
417 417
             }
418
-          })
418
+          });
419 419
         })
420
-        .catch(() => {})
420
+        .catch(() => {});
421 421
     },
422 422
     changeAllSelected: function(val) {
423 423
       if (val) {
424
-        this.$refs.multipleTable.toggleAllSelection()
424
+        this.$refs.multipleTable.toggleAllSelection();
425 425
       } else {
426
-        this.$refs.multipleTable.clearSelection()
426
+        this.$refs.multipleTable.clearSelection();
427 427
       }
428 428
     },
429 429
     select(selection) {
430
-      this.selectedTableData = selection
430
+      this.selectedTableData = selection;
431 431
     },
432 432
     batchDelete() {
433 433
       if (this.selectedTableData.length <= 0) {
434
-        this.$message.error('请选择要删除的记录')
435
-        return
434
+        this.$message.error("请选择要删除的记录");
435
+        return;
436 436
       }
437
-      const ids = []
437
+      const ids = [];
438 438
       for (let i = 0; i < this.selectedTableData.length; i++) {
439
-        ids.push(this.selectedTableData[i].id)
439
+        ids.push(this.selectedTableData[i].id);
440 440
       }
441
-      const idStr = ids.join(',')
441
+      const idStr = ids.join(",");
442 442
       const params = {
443 443
         ids: idStr
444
-      }
445
-      this.$confirm('确认删除退货单记录?', '删除退货单记录', {
446
-        confirmButtonText: '确定',
447
-        cancelButtonText: '取消',
448
-        type: 'warning'
444
+      };
445
+      this.$confirm("确认删除退货单记录?", "删除退货单记录", {
446
+        confirmButtonText: "确定",
447
+        cancelButtonText: "取消",
448
+        type: "warning"
449 449
       })
450 450
         .then(() => {
451 451
           deleteWarehouseOut(params).then(response => {
452 452
             if (response.data.state == 0) {
453
-              this.$message.error(response.data.msg)
454
-              return false
453
+              this.$message.error(response.data.msg);
454
+              return false;
455 455
             } else {
456 456
               this.$notify({
457
-                title: '成功',
458
-                message: '删除成功',
459
-                type: 'success',
457
+                title: "成功",
458
+                message: "删除成功",
459
+                type: "success",
460 460
                 duration: 2000
461
-              })
461
+              });
462 462
 
463 463
               for (let i = 0; i < ids.length; i++) {
464 464
                 for (let y = 0; y < this.warehouseOutDate.length; y++) {
465 465
                   if (ids[i] == this.warehouseOutDate[y].id) {
466
-                    this.warehouseOutDate.splice(y, 1)
466
+                    this.warehouseOutDate.splice(y, 1);
467 467
                   }
468 468
                 }
469 469
               }
470 470
             }
471
-          })
471
+          });
472 472
         })
473
-        .catch(() => {})
473
+        .catch(() => {});
474 474
     }
475 475
   }
476
-}
476
+};
477 477
 </script>
478 478
 
479 479
 <style rel="stylesheet/scss" lang="scss">

+ 2 - 2
src/xt_pages/stock/stockQuery.vue View File

@@ -9,7 +9,7 @@
9 9
           size="small"
10 10
           style="width: 400px;"
11 11
           class="filter-item"
12
-          v-model="keywords"
12
+          v-model.trim="keywords"
13 13
           placeholder="商品编码/商品名称/规格名称"
14 14
         />
15 15
         <el-button
@@ -166,7 +166,7 @@ export default {
166 166
   methods: {
167 167
     GetAllStockQuery: function() {
168 168
       console.log(this.keywords);
169
-      let Params = {
169
+      const Params = {
170 170
         page: this.page,
171 171
         limit: this.limit,
172 172
         keyword: this.keywords

+ 8 - 7
src/xt_pages/upload/data/DataCity.vue View File

@@ -63,13 +63,9 @@
63 63
     </div>
64 64
     <div v-else>
65 65
       <div class="cell clearfix">
66
-        <el-row :gutter="20">
67
-          <el-col :span="24" :offset="6">
68
-            <div>
69
-              质控平台上报配置未完成!请在"质控上报>质控上报配置"中完成集成配置内容,再重新打开此功能。
70
-            </div>
71
-          </el-col>
72
-        </el-row>
66
+        <div class="cellTitle">
67
+          质控平台上报配置未完成!请在"质控上报>质控上报配置"中完成集成配置内容,再重新打开此功能。
68
+        </div>
73 69
       </div>
74 70
     </div>
75 71
   </div>
@@ -134,6 +130,11 @@ export default {
134 130
 .marginBottom2 {
135 131
   margin-bottom: 20px !important;
136 132
 }
133
+.cellTitle {
134
+  width: 100%;
135
+  text-align: center;
136
+  margin-top: 50px;
137
+}
137 138
 </style>
138 139
 
139 140
 <style>

+ 8 - 7
src/xt_pages/upload/data/DataCountry.vue View File

@@ -63,13 +63,9 @@
63 63
     </div>
64 64
     <div v-else>
65 65
       <div class="cell clearfix">
66
-        <el-row :gutter="20">
67
-          <el-col :span="24" :offset="6">
68
-            <div>
69
-              质控平台上报配置未完成!请在"质控上报>质控上报配置"中完成集成配置内容,再重新打开此功能。
70
-            </div>
71
-          </el-col>
72
-        </el-row>
66
+        <div class="cellTitle">
67
+          质控平台上报配置未完成!请在"质控上报>质控上报配置"中完成集成配置内容,再重新打开此功能。
68
+        </div>
73 69
       </div>
74 70
     </div>
75 71
   </div>
@@ -134,6 +130,11 @@ export default {
134 130
 .marginBottom2 {
135 131
   margin-bottom: 20px !important;
136 132
 }
133
+.cellTitle {
134
+  width: 100%;
135
+  text-align: center;
136
+  margin-top: 50px;
137
+}
137 138
 </style>
138 139
 
139 140
 <style>

+ 8 - 7
src/xt_pages/upload/data/DataProvince.vue View File

@@ -64,13 +64,9 @@
64 64
     </div>
65 65
     <div v-else>
66 66
       <div class="cell clearfix">
67
-        <el-row :gutter="20">
68
-          <el-col :span="24" :offset="6">
69
-            <div>
70
-              质控平台上报配置未完成!请在"质控上报>质控上报配置"中完成集成配置内容,再重新打开此功能。
71
-            </div>
72
-          </el-col>
73
-        </el-row>
67
+        <div class="cellTitle">
68
+          质控平台上报配置未完成!请在"质控上报>质控上报配置"中完成集成配置内容,再重新打开此功能。
69
+        </div>
74 70
       </div>
75 71
     </div>
76 72
   </div>
@@ -135,6 +131,11 @@ export default {
135 131
 .marginBottom2 {
136 132
   margin-bottom: 20px !important;
137 133
 }
134
+.cellTitle {
135
+  width: 100%;
136
+  text-align: center;
137
+  margin-top: 50px;
138
+}
138 139
 </style>
139 140
 
140 141
 <style>

+ 1 - 1
src/xt_pages/upload/fast/FastInspectionSidebar.vue View File

@@ -4,7 +4,7 @@
4 4
     <el-autocomplete
5 5
       style="margin:16px 5px"
6 6
       popper-class="my-autocomplete"
7
-      v-model="value"
7
+      v-model.trim="value"
8 8
       :fetch-suggestions="querySearchAsync"
9 9
       :trigger-on-focus="false"
10 10
       placeholder="病人名字或者透析号"

+ 1 - 1
src/xt_pages/upload/fast/FastPatientsSidebar.vue View File

@@ -4,7 +4,7 @@
4 4
     <el-autocomplete
5 5
       style="margin:16px 5px"
6 6
       popper-class="my-autocomplete"
7
-      v-model="value"
7
+      v-model.trim="value"
8 8
       :fetch-suggestions="querySearchAsync"
9 9
       :trigger-on-focus="false"
10 10
       placeholder="病人名字或者透析号"

+ 1 - 1
src/xt_pages/user/components/PatientSidebar.1.vue View File

@@ -4,7 +4,7 @@
4 4
       <el-autocomplete
5 5
         style="margin:16px 5px"
6 6
         popper-class="my-autocomplete"
7
-        v-model="value"
7
+        v-model.trim="value"
8 8
         :fetch-suggestions="querySearchAsync"
9 9
         :trigger-on-focus="false"
10 10
         placeholder="病人名字或者透析号"

+ 112 - 102
src/xt_pages/user/components/PatientSidebar.vue View File

@@ -4,23 +4,29 @@
4 4
       <el-autocomplete
5 5
         style="margin:16px 5px"
6 6
         popper-class="my-autocomplete"
7
-        v-model="value"
7
+        v-model.trim="value"
8 8
         :fetch-suggestions="querySearchAsync"
9 9
         :trigger-on-focus="false"
10 10
         placeholder="病人名字或者透析号"
11 11
         @select="handleSelect"
12
-       >
13
-        <i class="el-icon-search el-input__icon" slot="suffix" > </i>
12
+      >
13
+        <i class="el-icon-search el-input__icon" slot="suffix"> </i>
14 14
         <template slot-scope="{ item }">
15 15
           <div class="name">{{ item.name }}</div>
16 16
         </template>
17 17
       </el-autocomplete>
18
-      <el-select v-model="selectID" style="margin:0 5px 0px 5px;text-align: center;" @change="changePatient" placeholder="请选择">
18
+      <el-select
19
+        v-model="selectID"
20
+        style="margin:0 5px 0px 5px;text-align: center;"
21
+        @change="changePatient"
22
+        placeholder="请选择"
23
+      >
19 24
         <el-option
20 25
           v-for="item in patientsList"
21 26
           :key="item.id"
22 27
           :label="item.name"
23
-          :value="item.id">
28
+          :value="item.id"
29
+        >
24 30
         </el-option>
25 31
       </el-select>
26 32
 
@@ -32,28 +38,33 @@
32 38
         :current-node-key="treeKey"
33 39
         :default-expanded-keys="[defaultActive]"
34 40
         @node-click="handleNodeClick"
35
-        >
41
+      >
36 42
       </el-tree>
37 43
     </div>
38 44
     <div class="patient-app-container ">
39
-      <span class="patient-name">姓名:{{currentPatient.name}} &nbsp;&nbsp; 性别:{{tranSex(currentPatient.gender)}} &nbsp;&nbsp; 年龄:{{tranAge(currentPatient.birthday)}} &nbsp;&nbsp; 透析号:{{currentPatient.dialysis_no}} </span>
45
+      <span class="patient-name"
46
+        >姓名:{{ currentPatient.name }} &nbsp;&nbsp; 性别:{{
47
+          tranSex(currentPatient.gender)
48
+        }}
49
+        &nbsp;&nbsp; 年龄:{{ tranAge(currentPatient.birthday) }} &nbsp;&nbsp;
50
+        透析号:{{ currentPatient.dialysis_no }}
51
+      </span>
40 52
     </div>
41 53
   </div>
42
-
43 54
 </template>
44 55
 <script>
45
-import { fetchAllList, PostSearch } from '@/api/patient'
46
-import { jsGetAge, uParseTime } from '@/utils/tools'
56
+import { fetchAllList, PostSearch } from "@/api/patient";
57
+import { jsGetAge, uParseTime } from "@/utils/tools";
47 58
 
48 59
 export default {
49
-  name: 'patientSidebar',
50
-  value: '',
60
+  name: "patientSidebar",
61
+  value: "",
51 62
   searchArray: [],
52 63
   props: {
53 64
     id: 0,
54 65
     defaultActive: {
55 66
       type: String,
56
-      default: '1-1'
67
+      default: "1-1"
57 68
     }
58 69
   },
59 70
   data() {
@@ -62,169 +73,168 @@ export default {
62 73
       patientsList: null,
63 74
       currentPatient: {},
64 75
       selectID: 0,
65
-      keyword: '',
66
-      value: '',
67
-      treeKey: '',
76
+      keyword: "",
77
+      value: "",
78
+      treeKey: "",
68 79
       treeData: [
69 80
         {
70
-          name: '1',
71
-          label: '电子病历',
81
+          name: "1",
82
+          label: "电子病历",
72 83
           children: [
73 84
             {
74
-              name: '1-1',
75
-              label: '基本信息'
85
+              name: "1-1",
86
+              label: "基本信息"
76 87
             },
77 88
             {
78
-              name: '1-4',
79
-              label: '医嘱管理'
89
+              name: "1-4",
90
+              label: "医嘱管理"
80 91
             },
81 92
             {
82
-              name: '1-6',
83
-              label: '干体重'
93
+              name: "1-6",
94
+              label: "干体重"
84 95
             },
85 96
             {
86
-              name: '1-2',
87
-              label: '病程管理'
97
+              name: "1-2",
98
+              label: "病程管理"
88 99
             },
89 100
             {
90
-              name: '1-3',
91
-              label: '检验检查'
101
+              name: "1-3",
102
+              label: "检验检查"
92 103
             },
93 104
             {
94
-              name: '1-5',
95
-              label: '抢救记录'
105
+              name: "1-5",
106
+              label: "抢救记录"
96 107
             }
97
-
98 108
           ]
99 109
         },
100 110
         {
101
-          name: '2',
102
-          label: '透析管理',
111
+          name: "2",
112
+          label: "透析管理",
103 113
           children: [
104 114
             {
105
-              name: '2-1',
106
-              label: '长期透析处方'
115
+              name: "2-1",
116
+              label: "长期透析处方"
107 117
             },
108 118
             {
109
-              name: '2-2',
110
-              label: '透析记录'
119
+              name: "2-2",
120
+              label: "透析记录"
111 121
             },
112 122
             {
113
-              name: '2-4',
114
-              label: '排班信息'
123
+              name: "2-4",
124
+              label: "排班信息"
115 125
             },
116 126
             {
117
-              name: '2-5',
118
-              label: '宣教信息'
127
+              name: "2-5",
128
+              label: "宣教信息"
119 129
             }
120 130
           ]
121 131
         }
122 132
       ]
123
-    }
133
+    };
124 134
   },
125 135
   methods: {
126 136
     handleNodeClick(data) {
127
-      var name = data.name
128
-      if (name == '1-1') {
129
-        this.$router.push({ path: '/patients/patient/' + this.id })
130
-      } else if (name == '1-2') {
131
-        this.$router.push({ path: '/patients/course?id=' + this.id })
132
-      } else if (name == '1-3') {
133
-        this.$router.push({ path: '/patients/inspection?id=' + this.id })
134
-      } else if (name == '1-4') {
137
+      var name = data.name;
138
+      if (name == "1-1") {
139
+        this.$router.push({ path: "/patients/patient/" + this.id });
140
+      } else if (name == "1-2") {
141
+        this.$router.push({ path: "/patients/course?id=" + this.id });
142
+      } else if (name == "1-3") {
143
+        this.$router.push({ path: "/patients/inspection?id=" + this.id });
144
+      } else if (name == "1-4") {
135 145
         this.$router.push({
136
-          path: '/patients/patient/' + this.id + '/doctorAdvice'
137
-        })
138
-      } else if (name == '1-6') {
146
+          path: "/patients/patient/" + this.id + "/doctorAdvice"
147
+        });
148
+      } else if (name == "1-6") {
139 149
         this.$router.push({
140
-          path: '/patients/patient/' + this.id + '/dryWeight'
141
-        })
142
-      } else if (name == '1-5') {
143
-        this.$router.push({ path: '/patients/rescue?id=' + this.id })
144
-      } else if (name == '2-1') {
150
+          path: "/patients/patient/" + this.id + "/dryWeight"
151
+        });
152
+      } else if (name == "1-5") {
153
+        this.$router.push({ path: "/patients/rescue?id=" + this.id });
154
+      } else if (name == "2-1") {
145 155
         this.$router.push({
146
-          path: '/patients/patient/' + this.id + '/dialysisSolution'
147
-        })
148
-      } else if (name == '2-2') {
156
+          path: "/patients/patient/" + this.id + "/dialysisSolution"
157
+        });
158
+      } else if (name == "2-2") {
149 159
         this.$router.push({
150
-          path: '/patients/patient/' + this.id + '/dialysisRecord'
151
-        })
152
-      } else if (name == '2-4') {
160
+          path: "/patients/patient/" + this.id + "/dialysisRecord"
161
+        });
162
+      } else if (name == "2-4") {
153 163
         this.$router.push({
154
-          path: '/patients/patient/' + this.id + '/scheduling'
155
-        })
156
-      } else if (name == '2-5') {
164
+          path: "/patients/patient/" + this.id + "/scheduling"
165
+        });
166
+      } else if (name == "2-5") {
157 167
         this.$router.push({
158
-          path: '/patients/patient/' + this.id + '/proeducation'
159
-        })
168
+          path: "/patients/patient/" + this.id + "/proeducation"
169
+        });
160 170
       }
161 171
     },
162 172
     changePatient(value) {
163
-      console.log(value)
164
-      this.$router.push('/patients/patient/' + value)
173
+      console.log(value);
174
+      this.$router.push("/patients/patient/" + value);
165 175
     },
166 176
     getList() {
167 177
       fetchAllList().then(response => {
168 178
         if (response.data.state == 1) {
169
-          this.patientsList = response.data.data.patients
170
-          var len = this.patientsList.length
179
+          this.patientsList = response.data.data.patients;
180
+          var len = this.patientsList.length;
171 181
           if (len > 0) {
172 182
             for (let index = 0; index < len; index++) {
173 183
               if (this.patientsList[index].id == this.id) {
174
-                this.currentPatient = this.patientsList[index]
184
+                this.currentPatient = this.patientsList[index];
175 185
 
176
-                this.selectID = this.patientsList[index].id
177
-                this.$emit('tran-patient', this.currentPatient)
178
-                break
186
+                this.selectID = this.patientsList[index].id;
187
+                this.$emit("tran-patient", this.currentPatient);
188
+                break;
179 189
               }
180 190
             }
181 191
           }
182 192
         }
183
-      })
193
+      });
184 194
     },
185 195
     tranAge(birthday) {
186
-      var birth = uParseTime(birthday, '{y}-{m}-{d}')
187
-      return jsGetAge(birth, '-')
196
+      var birth = uParseTime(birthday, "{y}-{m}-{d}");
197
+      return jsGetAge(birth, "-");
188 198
     },
189 199
     tranSex(gender) {
190
-      var sex = '未知'
200
+      var sex = "未知";
191 201
       switch (gender) {
192 202
         case 1:
193
-          sex = '男'
194
-          break
203
+          sex = "男";
204
+          break;
195 205
         case 2:
196
-          sex = '女'
197
-          break
206
+          sex = "女";
207
+          break;
198 208
         default:
199
-          break
209
+          break;
200 210
       }
201
-      return sex
211
+      return sex;
202 212
     },
203 213
     querySearchAsync(keyword, cb) {
204
-      let key = ''
214
+      let key = "";
205 215
       if (keyword != undefined) {
206
-        key = keyword
216
+        key = keyword;
207 217
       }
208
-      let searchArray = []
218
+      let searchArray = [];
209 219
       PostSearch(key).then(response => {
210 220
         if (response.data.state == 1) {
211
-          searchArray = response.data.data.patient
212
-          cb(searchArray)
221
+          searchArray = response.data.data.patient;
222
+          cb(searchArray);
213 223
         } else {
214
-          this.$message.error(response.data.msg)
215
-          cb([])
224
+          this.$message.error(response.data.msg);
225
+          cb([]);
216 226
         }
217
-      })
227
+      });
218 228
     },
219 229
     handleSelect(val) {
220
-      this.$router.push('/patients/patient/' + val.id)
230
+      this.$router.push("/patients/patient/" + val.id);
221 231
     }
222 232
   },
223 233
   created() {
224
-    this.treeKey = this.defaultActive
225
-    this.getList()
234
+    this.treeKey = this.defaultActive;
235
+    this.getList();
226 236
   }
227
-}
237
+};
228 238
 </script>
229 239
 
230 240
 <style>
@@ -234,13 +244,13 @@ export default {
234 244
   font-weight: 400;
235 245
 }
236 246
 .patient-menu .el-tree-node__label:hover {
237
-  color:#409eff;
247
+  color: #409eff;
238 248
 }
239 249
 .patient-menu .el-tree-node:focus > .el-tree-node__content {
240
-  color:#409eff;
250
+  color: #409eff;
241 251
 }
242 252
 .patient-menu .el-tree-node .el-tree-node.is-current > .el-tree-node__content {
243
-  color:#409eff;
253
+  color: #409eff;
244 254
 }
245 255
 .patient-menu .el-tree {
246 256
   background: #f6f8f9;

+ 4 - 5
src/xt_pages/user/patients.vue View File

@@ -7,7 +7,7 @@
7 7
   <div class="app-container">
8 8
     <div class="cell clearfix">
9 9
       <!-- <label class="title"><span class="name">病人搜索</span> : </label> -->
10
-      <el-input   style="width: 400px;" v-model="searchKey" class="filter-item" placeholder="病人姓名/透析号" size="small"/>
10
+      <el-input   style="width: 400px;" v-model.trim="searchKey" class="filter-item" placeholder="病人姓名/透析号" size="small"/>
11 11
       <el-button  class="filter-item" type="primary" icon="el-icon-search" @click="search" size="small" >搜索</el-button>
12 12
     </div>
13 13
 
@@ -368,7 +368,7 @@ export default {
368 368
         idcardno: '',
369 369
         phone: '',
370 370
         healthcareno: '',
371
-        startTime:'',
371
+        startTime: ''
372 372
       }
373 373
     },
374 374
     created() {
@@ -382,8 +382,7 @@ export default {
382 382
         this.searchKey = keyword
383 383
       }
384 384
     },
385
-    
386
-
385
+  
387 386
     methods: {
388 387
       EditLapseto() {
389 388
         if (this.lapsetoForm.lapseto_time == '') {
@@ -612,7 +611,7 @@ export default {
612 611
     // var ehealthcareno = this.Base64.encode(healthcareno)
613 612
     // var edialysisno = this.Base64.encode(dialysis_no)
614 613
     var eid = id
615
-    var ename =name
614
+    var ename = name
616 615
     var egender = gender
617 616
     var eidcardno = idcardno
618 617
     var ephone = phone

+ 1 - 1
src/xt_pages/workforce/components/tableData.vue View File

@@ -5,7 +5,7 @@
5 5
         size="small"
6 6
         style="width: 400px;"
7 7
         class="filter-item"
8
-        v-model="keywords"
8
+        v-model.trim="keywords"
9 9
         placeholder="病人名称/透析号"
10 10
       />
11 11
       <el-button