Browse Source

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

csx 4 years ago
parent
commit
70d9bf4027

+ 279 - 246
src/api/manage.js View File

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

+ 4 - 4
src/xt_pages/dialysis/batch_print/batch_print_order_other.vue View File

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

+ 2 - 2
src/xt_pages/dialysis/batch_print/batch_print_order_other_one.vue View File

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

+ 2 - 2
src/xt_pages/dialysis/batch_print/batch_print_order_other_two.vue View File

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

+ 127 - 41
src/xt_pages/dialysis/batch_print/batch_print_order_seven.vue View File

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

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


+ 2 - 8
src/xt_pages/dialysis/template/DialysisPrintOrderSix.vue View File

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

+ 5 - 5
src/xt_pages/dialysis/template/dialysisPrintOrderTwo.vue View File

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

+ 70 - 70
src/xt_pages/management/components/MultipleForm.vue View File

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

+ 55 - 24
src/xt_pages/management/components/PlanForm.vue View File

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

+ 1 - 1
src/xt_pages/management/components/QualityForm.vue View File

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

+ 94 - 50
src/xt_pages/management/components/RepairForm.vue View File

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

+ 4 - 4
src/xt_pages/management/components/UserForm.vue View File

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

+ 251 - 100
src/xt_pages/management/home.vue View File

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

+ 288 - 103
src/xt_pages/user/components/PatientForm.vue View File

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