Procházet zdrojové kódy

Merge branch 'master' of http://git.shengws.com/csx/Vue_New

csx před 5 roky
rodič
revize
2c64d1e4a7

+ 275 - 220
src/api/advice.js Zobrazit soubor

1
-import request from '@/utils/request'
1
+import request from "@/utils/request";
2
 
2
 
3
 export function getAdviceConfig(type) {
3
 export function getAdviceConfig(type) {
4
   return request({
4
   return request({
5
-    url: '/api/getadviceconfigs?type=' + type,
6
-    method: 'get'
7
-  })
5
+    url: "/api/getadviceconfigs?type=" + type,
6
+    method: "get"
7
+  });
8
 }
8
 }
9
 
9
 
10
 export function getAllAdviceConfig() {
10
 export function getAllAdviceConfig() {
11
   return request({
11
   return request({
12
-    url: '/api/getalladviceconfig',
13
-    method: 'get'
14
-  })
12
+    url: "/api/getalladviceconfig",
13
+    method: "get"
14
+  });
15
 }
15
 }
16
 
16
 
17
-export function CreateDoctorAdvice(id, advice,mode) {
17
+export function CreateDoctorAdvice(id, advice, mode) {
18
   return request({
18
   return request({
19
-    url: '/api/patients/advice/create?id=' + id+"&mode="+mode,
20
-    method: 'post',
19
+    url: "/api/patients/advice/create?id=" + id + "&mode=" + mode,
20
+    method: "post",
21
     data: advice,
21
     data: advice,
22
-    headers:{"Permission":3},
23
-
24
-  })
25
-}
26
-
27
-export function EditDoctorAdvice(patient, id, advice,mode) {
28
-  return request({
29
-    url: '/api/patients/advice/edit?id=' + id + '&patient=' + patient+"&mode="+mode,
30
-    method: 'Put',
22
+    headers: {
23
+      Permission: 3
24
+    }
25
+  });
26
+}
27
+
28
+export function EditDoctorAdvice(patient, id, advice, mode) {
29
+  return request({
30
+    url:
31
+      "/api/patients/advice/edit?id=" +
32
+      id +
33
+      "&patient=" +
34
+      patient +
35
+      "&mode=" +
36
+      mode,
37
+    method: "Put",
31
     data: advice,
38
     data: advice,
32
-    headers:{"Permission":2},
33
-
34
-  })
39
+    headers: {
40
+      Permission: 2
41
+    }
42
+  });
35
 }
43
 }
36
 
44
 
37
-export function ExecDoctorAdvice(patient, id, time,mode) {
45
+export function ExecDoctorAdvice(patient, id, time, mode) {
38
   var params = {
46
   var params = {
39
     id: id,
47
     id: id,
40
     patient: patient,
48
     patient: patient,
41
     execution_time: time,
49
     execution_time: time,
42
-    mode:mode
43
-  }
50
+    mode: mode
51
+  };
44
   return request({
52
   return request({
45
-    url: '/api/patients/advice/exec',
46
-    method: 'Post',
53
+    url: "/api/patients/advice/exec",
54
+    method: "Post",
47
     params: params,
55
     params: params,
48
-    headers:{"Permission":2},
49
-
50
-  })
56
+    headers: {
57
+      Permission: 2
58
+    }
59
+  });
51
 }
60
 }
52
-export function CheckDoctorAdvice(patient, id,mode) {
61
+export function CheckDoctorAdvice(patient, id, mode) {
53
   var params = {
62
   var params = {
54
     id: id,
63
     id: id,
55
     patient: patient,
64
     patient: patient,
56
-    mode:mode
65
+    mode: mode
57
     // execution_time: time,
66
     // execution_time: time,
58
-  }
67
+  };
59
   return request({
68
   return request({
60
-    url: '/api/patients/advice/check',
61
-    method: 'Post',
69
+    url: "/api/patients/advice/check",
70
+    method: "Post",
62
     params: params,
71
     params: params,
63
-    headers:{"Permission":2},
64
-
65
-  })
72
+    headers: {
73
+      Permission: 2
74
+    }
75
+  });
66
 }
76
 }
67
 
77
 
68
-
69
 export function getDoctorAdviceList(params) {
78
 export function getDoctorAdviceList(params) {
79
+  console.log("params", params);
70
   return request({
80
   return request({
71
-    url: '/api/patients/advices',
72
-    method: 'Get',
81
+    url: "/api/patients/advices",
82
+    method: "Get",
73
     params: params
83
     params: params
74
-  })
84
+  });
75
 }
85
 }
76
 
86
 
77
 // export function StopDoctorAdvice(id, reason,mode) {
87
 // export function StopDoctorAdvice(id, reason,mode) {
84
 //   })
94
 //   })
85
 // }
95
 // }
86
 
96
 
87
-export function StopGroupAdvice(groupno, reason,mode) {
97
+export function StopGroupAdvice(groupno, reason, mode) {
88
   return request({
98
   return request({
89
-    url: '/api/patients/advice/stopgroup?groupno=' + groupno+"&mode="+mode,
90
-    method: 'Post',
99
+    url: "/api/patients/advice/stopgroup?groupno=" + groupno + "&mode=" + mode,
100
+    method: "Post",
91
     data: reason,
101
     data: reason,
92
-    headers:{"Permission":3},
93
-
94
-  })
102
+    headers: {
103
+      Permission: 3
104
+    }
105
+  });
95
 }
106
 }
96
 
107
 
97
-
98
-
99
-export function DeleteDoctorAdvice(id,mode) {
108
+export function DeleteDoctorAdvice(id, mode) {
100
   return request({
109
   return request({
101
-    url: '/api/patients/advice/delete?id=' + id+"&mode="+mode,
102
-    method: 'Delete',
103
-    headers:{"Permission":2},
104
-
105
-  })
110
+    url: "/api/patients/advice/delete?id=" + id + "&mode=" + mode,
111
+    method: "Delete",
112
+    headers: {
113
+      Permission: 2
114
+    }
115
+  });
106
 }
116
 }
107
 
117
 
108
 export function CreateDrugDic(data) {
118
 export function CreateDrugDic(data) {
109
   return request({
119
   return request({
110
-    url: '/api/drugdic/create',
111
-    method: 'post',
120
+    url: "/api/drugdic/create",
121
+    method: "post",
112
     data: data
122
     data: data
113
-  })
123
+  });
114
 }
124
 }
115
 export function UpdateDrugDic(id, data) {
125
 export function UpdateDrugDic(id, data) {
116
   return request({
126
   return request({
117
-    url: '/api/drugdic/update?id=' + id,
118
-    method: 'put',
127
+    url: "/api/drugdic/update?id=" + id,
128
+    method: "put",
119
     data: data
129
     data: data
120
-  })
130
+  });
121
 }
131
 }
122
 export function DeleteDrugDic(id) {
132
 export function DeleteDrugDic(id) {
123
   return request({
133
   return request({
124
-    url: '/api/drugdic/delete?id=' + id,
125
-    method: 'delete'
126
-  })
134
+    url: "/api/drugdic/delete?id=" + id,
135
+    method: "delete"
136
+  });
127
 }
137
 }
128
 
138
 
129
 export function CreateDrugWay(data) {
139
 export function CreateDrugWay(data) {
130
   return request({
140
   return request({
131
-    url: '/api/drugway/create',
132
-    method: 'post',
141
+    url: "/api/drugway/create",
142
+    method: "post",
133
     data: data
143
     data: data
134
-  })
144
+  });
135
 }
145
 }
136
 
146
 
137
 export function UpdateDrugWay(id, data) {
147
 export function UpdateDrugWay(id, data) {
138
   return request({
148
   return request({
139
-    url: '/api/drugway/update?id=' + id,
140
-    method: 'put',
149
+    url: "/api/drugway/update?id=" + id,
150
+    method: "put",
141
     data: data
151
     data: data
142
-  })
152
+  });
143
 }
153
 }
144
 export function DeleteDrugWay(id) {
154
 export function DeleteDrugWay(id) {
145
   return request({
155
   return request({
146
-    url: '/api/drugway/delete?id=' + id,
147
-    method: 'delete'
148
-  })
156
+    url: "/api/drugway/delete?id=" + id,
157
+    method: "delete"
158
+  });
149
 }
159
 }
150
 
160
 
151
 export function CreateExecutionFrequency(data) {
161
 export function CreateExecutionFrequency(data) {
152
   return request({
162
   return request({
153
-    url: '/api/executionfrequency/create',
154
-    method: 'post',
163
+    url: "/api/executionfrequency/create",
164
+    method: "post",
155
     data: data
165
     data: data
156
-  })
166
+  });
157
 }
167
 }
158
 
168
 
159
 export function UpdateExecutionFrequency(id, data) {
169
 export function UpdateExecutionFrequency(id, data) {
160
   return request({
170
   return request({
161
-    url: '/api/executionfrequency/update?id=' + id,
162
-    method: 'put',
171
+    url: "/api/executionfrequency/update?id=" + id,
172
+    method: "put",
163
     data: data
173
     data: data
164
-  })
174
+  });
165
 }
175
 }
166
 export function DeleteExecutionFrequency(id) {
176
 export function DeleteExecutionFrequency(id) {
167
   return request({
177
   return request({
168
-    url: '/api/executionfrequency/delete?id=' + id,
169
-    method: 'delete'
170
-  })
178
+    url: "/api/executionfrequency/delete?id=" + id,
179
+    method: "delete"
180
+  });
171
 }
181
 }
172
 export function CreateAdviceTemplate(data) {
182
 export function CreateAdviceTemplate(data) {
173
   return request({
183
   return request({
174
-    url: '/api/advicetemplate/create',
175
-    method: 'post',
184
+    url: "/api/advicetemplate/create",
185
+    method: "post",
176
     data: data
186
     data: data
177
-  })
187
+  });
178
 }
188
 }
179
 
189
 
180
 export function UpdateAdviceTemplate(id, data) {
190
 export function UpdateAdviceTemplate(id, data) {
181
   return request({
191
   return request({
182
-    url: '/api/advicetemplate/update?id=' + id,
183
-    method: 'put',
192
+    url: "/api/advicetemplate/update?id=" + id,
193
+    method: "put",
184
     data: data
194
     data: data
185
-  })
195
+  });
186
 }
196
 }
187
 export function DeleteAdviceTemplate(id, template_id, parent_id) {
197
 export function DeleteAdviceTemplate(id, template_id, parent_id) {
188
   return request({
198
   return request({
189
-    url: '/api/advicetemplate/delete?id=' + id + '&template_id=' + template_id + '&parent_id=' + parent_id,
190
-    method: 'delete'
191
-  })
199
+    url:
200
+      "/api/advicetemplate/delete?id=" +
201
+      id +
202
+      "&template_id=" +
203
+      template_id +
204
+      "&parent_id=" +
205
+      parent_id,
206
+    method: "delete"
207
+  });
192
 }
208
 }
193
 
209
 
194
 export function postAdviceTemplate(params, name, advice_type) {
210
 export function postAdviceTemplate(params, name, advice_type) {
195
   return request({
211
   return request({
196
-    url: '/api/advicetemplate/create?template_name=' + name + '&advice_type=' + advice_type,
197
-    method: 'post',
212
+    url:
213
+      "/api/advicetemplate/create?template_name=" +
214
+      name +
215
+      "&advice_type=" +
216
+      advice_type,
217
+    method: "post",
198
     data: params
218
     data: params
199
-  })
219
+  });
200
 }
220
 }
201
 
221
 
202
-export function CreateGroupAdvice(id, groupno, advices,mode) {
222
+export function CreateGroupAdvice(id, groupno, advices, mode) {
203
   if (advices.remind > 0) {
223
   if (advices.remind > 0) {
204
     return request({
224
     return request({
205
-      url: '/api/patients/advice/creategroup?id=' + id + '&groupno=' + groupno+"&mode="+mode,
206
-      method: 'post',
225
+      url:
226
+        "/api/patients/advice/creategroup?id=" +
227
+        id +
228
+        "&groupno=" +
229
+        groupno +
230
+        "&mode=" +
231
+        mode,
232
+      method: "post",
207
       data: advices,
233
       data: advices,
208
-      headers:{"Permission":2},
209
-
210
-    })
234
+      headers: {
235
+        Permission: 2
236
+      }
237
+    });
211
   } else {
238
   } else {
212
     return request({
239
     return request({
213
-      url: '/api/patients/advice/creategroup?id=' + id + '&groupno=' + groupno+"&mode="+mode,
214
-      method: 'post',
240
+      url:
241
+        "/api/patients/advice/creategroup?id=" +
242
+        id +
243
+        "&groupno=" +
244
+        groupno +
245
+        "&mode=" +
246
+        mode,
247
+      method: "post",
215
       data: advices,
248
       data: advices,
216
-      headers:{"Permission":2},
217
-
218
-    })
249
+      headers: {
250
+        Permission: 2
251
+      }
252
+    });
219
   }
253
   }
220
 }
254
 }
221
-export function DeleteGroupAdvice(groupno,mode) {
255
+export function DeleteGroupAdvice(groupno, mode) {
222
   return request({
256
   return request({
223
-    url: '/api/patients/advice/deletegroup?groupno=' + groupno+"&mode="+mode,
224
-    method: 'delete',
225
-    headers:{"Permission":3},
226
-
227
-  })
257
+    url:
258
+      "/api/patients/advice/deletegroup?groupno=" + groupno + "&mode=" + mode,
259
+    method: "delete",
260
+    headers: {
261
+      Permission: 3
262
+    }
263
+  });
228
 }
264
 }
229
 
265
 
230
 export function getAllAdviceTemplate() {
266
 export function getAllAdviceTemplate() {
231
   return request({
267
   return request({
232
-    url: '/api/advicetemplate/list',
233
-    method: 'get'
234
-  })
268
+    url: "/api/advicetemplate/list",
269
+    method: "get"
270
+  });
235
 }
271
 }
236
 
272
 
237
 export function CreateSingleAdviceTemplate(advices) {
273
 export function CreateSingleAdviceTemplate(advices) {
238
   return request({
274
   return request({
239
-    url: '/api/advicetemplate/add',
240
-    method: 'post',
275
+    url: "/api/advicetemplate/add",
276
+    method: "post",
241
     params: advices
277
     params: advices
242
-
243
-  })
278
+  });
244
 }
279
 }
245
 export function DeleteParentAdviceTemplate(id) {
280
 export function DeleteParentAdviceTemplate(id) {
246
   return request({
281
   return request({
247
-    url: '/api/adviceparenttemplate/delete?template_id=' + id,
248
-    method: 'delete'
249
-
250
-  })
282
+    url: "/api/adviceparenttemplate/delete?template_id=" + id,
283
+    method: "delete"
284
+  });
251
 }
285
 }
252
 
286
 
253
 export function CreateSubAdvice(params) {
287
 export function CreateSubAdvice(params) {
254
   return request({
288
   return request({
255
-    url: '/api/subadvice/create',
256
-    method: 'post',
289
+    url: "/api/subadvice/create",
290
+    method: "post",
257
     params: params
291
     params: params
258
-  })
292
+  });
259
 }
293
 }
260
 
294
 
261
 export function updateTemplateName(params) {
295
 export function updateTemplateName(params) {
262
   return request({
296
   return request({
263
-    url: '/api/template/modify',
264
-    method: 'post',
297
+    url: "/api/template/modify",
298
+    method: "post",
265
     params: params
299
     params: params
266
-  })
300
+  });
267
 }
301
 }
268
 
302
 
269
 export function getDoctorAdviceConfig() {
303
 export function getDoctorAdviceConfig() {
270
   return request({
304
   return request({
271
-    url: '/api/adviceconfig/get',
272
-    method: 'get'
273
-  })
305
+    url: "/api/adviceconfig/get",
306
+    method: "get"
307
+  });
274
 }
308
 }
275
 
309
 
276
 export function postDoctorAdviceConfig(params) {
310
 export function postDoctorAdviceConfig(params) {
277
   return request({
311
   return request({
278
-    url: '/api/adviceconfig/isopen',
279
-    method: 'post',
312
+    url: "/api/adviceconfig/isopen",
313
+    method: "post",
280
     params: params
314
     params: params
281
-  })
315
+  });
282
 }
316
 }
283
 
317
 
284
 export function getDoctorInitConfig() {
318
 export function getDoctorInitConfig() {
285
   return request({
319
   return request({
286
-    url: '/api/advicetemplate/init/get',
287
-    method: 'get'
288
-  })
320
+    url: "/api/advicetemplate/init/get",
321
+    method: "get"
322
+  });
289
 }
323
 }
290
 
324
 
291
 export function PostInitAdviceTemplate(params) {
325
 export function PostInitAdviceTemplate(params) {
292
   return request({
326
   return request({
293
-    url: '/api/advicetemplate/init/commit',
294
-    method: 'post',
327
+    url: "/api/advicetemplate/init/commit",
328
+    method: "post",
295
     params: params
329
     params: params
296
-
297
-  })
330
+  });
298
 }
331
 }
299
 
332
 
300
 export function getPrintInfo(data) {
333
 export function getPrintInfo(data) {
301
   return request({
334
   return request({
302
-    url: '/api/advicetemplate/getprintinfo',
303
-    method: 'post',
335
+    url: "/api/advicetemplate/getprintinfo",
336
+    method: "post",
304
     data: data
337
     data: data
305
-  })
338
+  });
306
 }
339
 }
307
 
340
 
308
-
309
-
310
-
311
-
312
-export function EditNewDoctorAdvice(patient, id, advice,mode) {
341
+export function EditNewDoctorAdvice(patient, id, advice, mode) {
313
   return request({
342
   return request({
314
-    url: '/api/patients/advice/edit?id=' + id + '&patient=' + patient+"&mode="+mode,
315
-    method: 'Put',
343
+    url:
344
+      "/api/patients/advice/edit?id=" +
345
+      id +
346
+      "&patient=" +
347
+      patient +
348
+      "&mode=" +
349
+      mode,
350
+    method: "Put",
316
     data: advice,
351
     data: advice,
317
-    headers:{"Permission":2},
318
-
319
-  })
352
+    headers: {
353
+      Permission: 2
354
+    }
355
+  });
320
 }
356
 }
321
 
357
 
322
-
323
-
324
-
325
-
326
-export function CreateNewDoctorAdvice(id, advice,mode) {
358
+export function CreateNewDoctorAdvice(id, advice, mode) {
327
   return request({
359
   return request({
328
-    url: '/api/patients/advice/create?id=' + id+"&mode="+mode,
329
-    method: 'post',
360
+    url: "/api/patients/advice/create?id=" + id + "&mode=" + mode,
361
+    method: "post",
330
     data: advice,
362
     data: advice,
331
-    headers:{"Permission":2},
332
-
333
-  })
363
+    headers: {
364
+      Permission: 2
365
+    }
366
+  });
334
 }
367
 }
335
 
368
 
336
-
337
-
338
-export function CreateNewGroupAdvice(id, groupno, advices,mode) {
369
+export function CreateNewGroupAdvice(id, groupno, advices, mode) {
339
   if (advices.remind > 0) {
370
   if (advices.remind > 0) {
340
     return request({
371
     return request({
341
-      url: '/api/patients/advice/creategroup?id=' + id + '&groupno=' + groupno+"&mode="+mode,
342
-      method: 'post',
372
+      url:
373
+        "/api/patients/advice/creategroup?id=" +
374
+        id +
375
+        "&groupno=" +
376
+        groupno +
377
+        "&mode=" +
378
+        mode,
379
+      method: "post",
343
       data: advices,
380
       data: advices,
344
-      headers:{"Permission":3},
345
-
346
-    })
381
+      headers: {
382
+        Permission: 3
383
+      }
384
+    });
347
   } else {
385
   } else {
348
     return request({
386
     return request({
349
-      url: '/api/patients/advice/creategroup?id=' + id + '&groupno=' + groupno+"&mode="+mode,
350
-      method: 'post',
387
+      url:
388
+        "/api/patients/advice/creategroup?id=" +
389
+        id +
390
+        "&groupno=" +
391
+        groupno +
392
+        "&mode=" +
393
+        mode,
394
+      method: "post",
351
       data: advices,
395
       data: advices,
352
-      headers:{"Permission":3},
353
-
354
-    })
396
+      headers: {
397
+        Permission: 3
398
+      }
399
+    });
355
   }
400
   }
356
 }
401
 }
357
 
402
 
358
-
359
-
360
-export function DeleteNewDoctorAdvice(id,mode) {
403
+export function DeleteNewDoctorAdvice(id, mode) {
361
   return request({
404
   return request({
362
-    url: '/api/patients/advice/delete?id=' + id+"&mode="+mode,
363
-    method: 'Delete',
364
-    headers:{"Permission":2},
365
-
366
-  })
405
+    url: "/api/patients/advice/delete?id=" + id + "&mode=" + mode,
406
+    method: "Delete",
407
+    headers: {
408
+      Permission: 2
409
+    }
410
+  });
367
 }
411
 }
368
 
412
 
369
-
370
-
371
-export function DeleteNewGroupAdvice(groupno,mode) {
413
+export function DeleteNewGroupAdvice(groupno, mode) {
372
   return request({
414
   return request({
373
-    url: '/api/patients/advice/deletegroup?groupno=' + groupno+"&mode="+mode,
374
-    method: 'delete',
375
-    headers:{"Permission":3},
376
-
377
-  })
415
+    url:
416
+      "/api/patients/advice/deletegroup?groupno=" + groupno + "&mode=" + mode,
417
+    method: "delete",
418
+    headers: {
419
+      Permission: 3
420
+    }
421
+  });
378
 }
422
 }
379
 
423
 
380
-
381
-
382
-export function StopDoctorAdvice(id, reason,mode) {
424
+export function StopDoctorAdvice(id, reason, mode) {
383
   return request({
425
   return request({
384
-    url: '/api/patients/advice/stop?id=' + id+"&mode="+mode,
385
-    method: 'Post',
426
+    url: "/api/patients/advice/stop?id=" + id + "&mode=" + mode,
427
+    method: "Post",
386
     data: reason,
428
     data: reason,
387
-    headers:{"Permission":2},
388
-
389
-  })
429
+    headers: {
430
+      Permission: 2
431
+    }
432
+  });
390
 }
433
 }
391
 
434
 
392
-
393
-
394
-
395
-export function ExecGroupAdvice(groupno, time,mode) {
435
+export function ExecGroupAdvice(groupno, time, mode) {
396
   return request({
436
   return request({
397
-    url: '/api/patients/advice/execgroup?groupno=' + groupno + '&execution_time=' + time+"&mode="+mode,
398
-    method: 'Post',
399
-    headers:{"Permission":2},
400
-
401
-  })
437
+    url:
438
+      "/api/patients/advice/execgroup?groupno=" +
439
+      groupno +
440
+      "&execution_time=" +
441
+      time +
442
+      "&mode=" +
443
+      mode,
444
+    method: "Post",
445
+    headers: {
446
+      Permission: 2
447
+    }
448
+  });
402
 }
449
 }
403
 
450
 
404
-
405
-export function CheckGroupAdvice(groupno,mode) {
451
+export function CheckGroupAdvice(groupno, mode) {
406
   var params = {
452
   var params = {
407
     groupno: groupno,
453
     groupno: groupno,
408
-    mode: mode,
409
-  }
454
+    mode: mode
455
+  };
410
   return request({
456
   return request({
411
-    url: '/api/patients/advice/checkgroup',
412
-    method: 'Post',
457
+    url: "/api/patients/advice/checkgroup",
458
+    method: "Post",
413
     params: params,
459
     params: params,
414
-    headers:{"Permission":2},
415
-
416
-  })
460
+    headers: {
461
+      Permission: 2
462
+    }
463
+  });
417
 }
464
 }
418
 
465
 
466
+export function getPatientSchedules(id, params) {
467
+  console.log("id----", id);
468
+  return request({
469
+    url: "/api/patients/advices/getpatientschedules?id=" + id,
470
+    method: "get",
471
+    params: params
472
+  });
473
+}

+ 4 - 0
src/store/modules/xt_user.js Zobrazit soubor

363
         resolve()
363
         resolve()
364
       })
364
       })
365
     }, updateAllFiledConfigList({ commit }, object) {
365
     }, updateAllFiledConfigList({ commit }, object) {
366
+      console.log(object)
366
       var oldFiledList = getFiledConfigList()
367
       var oldFiledList = getFiledConfigList()
367
       var infoJSON = JSON.parse(oldFiledList)
368
       var infoJSON = JSON.parse(oldFiledList)
368
 
369
 
369
       return new Promise((resolve, reject) => {
370
       return new Promise((resolve, reject) => {
370
         infoJSON = object
371
         infoJSON = object
372
+        console.log(infoJSON)
373
+
371
         setFiledConfigList(JSON.stringify(infoJSON))
374
         setFiledConfigList(JSON.stringify(infoJSON))
375
+
372
         commit('SET_FILEDS_LIST', infoJSON)
376
         commit('SET_FILEDS_LIST', infoJSON)
373
         resolve()
377
         resolve()
374
       })
378
       })

+ 2 - 2
src/xt_pages/device/zone_main.vue Zobrazit soubor

219
                 this.zones.push(newZone);
219
                 this.zones.push(newZone);
220
                 this.cancelModifyZone();
220
                 this.cancelModifyZone();
221
               } else {
221
               } else {
222
-                this.$message.error(resp.msg);
222
+                this.$message.error("分区名称已存在!");
223
               }
223
               }
224
             });
224
             });
225
           } else {
225
           } else {
240
                 }
240
                 }
241
                 this.cancelModifyZone();
241
                 this.cancelModifyZone();
242
               } else {
242
               } else {
243
-                this.$message.error(resp.msg);
243
+                this.$message.error("分区名称已存在!");
244
               }
244
               }
245
             });
245
             });
246
           }
246
           }

+ 170 - 100
src/xt_pages/dialysis/Dialog/StatOrderDialog/index.vue Zobrazit soubor

1
 <template>
1
 <template>
2
-    <div>
3
-        <el-dialog title="临时医嘱" :visible.sync="statOrder" width="500px">
4
-            <el-form :model="form">
5
-                <el-form-item label="医嘱类型 : " :label-width="formLabelWidth">
6
-                    <!-- <el-input v-model="form.name" auto-complete="off"></el-input> -->
7
-                    <span>临时</span>
8
-                </el-form-item>
9
-                <el-form-item label="医嘱时间 : " :label-width="formLabelWidth">
10
-                    <span>2018-09-08</span>
11
-                </el-form-item>
12
-                <el-form-item label="开始时间 : " :label-width="formLabelWidth">
13
-                  <el-col :span="11">
14
-                    <el-date-picker type="date" placeholder="选择日期" v-model="form.startDate" style="width: 100%;"></el-date-picker>
15
-                  </el-col>
16
-                </el-form-item>
17
-                <el-form-item label="提醒日期 : " :label-width="formLabelWidth">
18
-                  <el-col :span="11">
19
-                    <el-date-picker type="date" placeholder="选择日期" v-model="form.remindDate" style="width: 100%;"></el-date-picker>
20
-                  </el-col>
21
-                </el-form-item>
22
-                <el-form-item label="开嘱医生 : " :label-width="formLabelWidth">
23
-                  <el-select v-model="form.doctor" >
24
-                    <el-option v-for="item in doctorList" :label="item.label" :value="item.value" :key="item.value"></el-option>
25
-                  </el-select>
26
-                </el-form-item>
27
-                <el-form-item label="医嘱名称 : " :label-width="formLabelWidth">
28
-                  <el-select v-model="form.name" >
29
-                      <el-option v-for="(item, index) in nameList" :label="item.label" :value="item.value" :key="index"></el-option>
30
-                  </el-select>  
31
-                </el-form-item>
32
-                <el-form-item label="医嘱内容 : " :label-width="formLabelWidth">
33
-                    <span>1g*8# 片剂</span>
34
-                </el-form-item>
35
-                <el-form-item label="单次用量 : " :label-width="formLabelWidth">
36
-                    <el-input-number v-model="form.single" controls-position="right" @change="handleChange" ></el-input-number>
37
-                    <span>g</span>
38
-                </el-form-item> 
39
-                <el-form-item label="开药数量 : " :label-width="formLabelWidth">
40
-                    <el-input-number v-model="form.number" controls-position="right" @change="handleChange" ></el-input-number>
41
-                    <span>瓶</span>
42
-                </el-form-item> 
43
-                <el-form-item label="给药途径 : " :label-width="formLabelWidth">
44
-                  <el-select v-model="form.way" style="width:100%;" >
45
-                      <el-option v-for="(item, index) in wayList" :label="item.label" :value="item.value" :key="index"></el-option>                      
46
-                  </el-select>  
47
-                </el-form-item>
48
-                <el-form-item label="执行频率 : " :label-width="formLabelWidth">
49
-                  <el-select v-model="form.frequency" style="width:100%;">
50
-                      <el-option v-for="(item, index) in frequencyList" :label="item.label" :value="item.value" :key="index"></el-option>                                           
51
-                  </el-select>  
52
-                </el-form-item>
53
-                <el-form-item label="子药数量 : " :label-width="formLabelWidth">
54
-                  <el-input-number v-model="form.child" @change="handleChangeChild" label="0"></el-input-number>
55
-                </el-form-item>
2
+  <div>
3
+    <el-dialog title="临时医嘱" :visible.sync="statOrder" width="500px">
4
+      <el-form :model="form">
5
+        <el-form-item label="医嘱类型 : " :label-width="formLabelWidth">
6
+          <!-- <el-input v-model="form.name" auto-complete="off"></el-input> -->
7
+          <span>临时</span>
8
+        </el-form-item>
9
+        <el-form-item label="医嘱时间 : " :label-width="formLabelWidth">
10
+          <span>2018-09-08</span>
11
+        </el-form-item>
12
+        <el-form-item label="开始时间 : " :label-width="formLabelWidth">
13
+          <el-col :span="11">
14
+            <el-date-picker
15
+              type="date"
16
+              placeholder="选择日期"
17
+              v-model="form.startDate"
18
+              style="width: 100%;"
19
+            ></el-date-picker>
20
+          </el-col>
21
+        </el-form-item>
22
+        <el-form-item label="提醒日期 : " :label-width="formLabelWidth">
23
+          <el-col :span="11">
24
+            <el-date-picker
25
+              type="date"
26
+              placeholder="选择日期"
27
+              v-model="form.remindDate"
28
+              style="width: 100%;"
29
+            ></el-date-picker>
30
+          </el-col>
31
+        </el-form-item>
32
+        <el-form-item label="开嘱医生 : " :label-width="formLabelWidth">
33
+          <el-select v-model="form.doctor">
34
+            <el-option
35
+              v-for="item in doctorList"
36
+              :label="item.label"
37
+              :value="item.value"
38
+              :key="item.value"
39
+            ></el-option>
40
+          </el-select>
41
+        </el-form-item>
42
+        <el-form-item label="医嘱名称 : " :label-width="formLabelWidth">
43
+          <el-select v-model="form.name">
44
+            <el-option
45
+              v-for="(item, index) in nameList"
46
+              :label="item.label"
47
+              :value="item.value"
48
+              :key="index"
49
+            ></el-option>
50
+          </el-select>
51
+        </el-form-item>
52
+        <el-form-item label="医嘱内容 : " :label-width="formLabelWidth">
53
+          <span>1g*8# 片剂</span>
54
+        </el-form-item>
55
+        <el-form-item label="单次用量 : " :label-width="formLabelWidth">
56
+          <el-input-number
57
+            v-model="form.single"
58
+            controls-position="right"
59
+            @change="handleChange"
60
+          ></el-input-number>
61
+          <span>g</span>
62
+        </el-form-item>
63
+        <el-form-item label="开药数量 : " :label-width="formLabelWidth">
64
+          <el-input-number
65
+            v-model="form.number"
66
+            controls-position="right"
67
+            @change="handleChange"
68
+          ></el-input-number>
69
+          <span>瓶</span>
70
+        </el-form-item>
71
+        <el-form-item label="给药途径 : " :label-width="formLabelWidth">
72
+          <el-select v-model="form.way" style="width:100%;">
73
+            <el-option
74
+              v-for="(item, index) in wayList"
75
+              :label="item.label"
76
+              :value="item.value"
77
+              :key="index"
78
+            ></el-option>
79
+          </el-select>
80
+        </el-form-item>
81
+        <el-form-item label="执行频率 : " :label-width="formLabelWidth">
82
+          <el-select v-model="form.frequency" style="width:100%;">
83
+            <el-option
84
+              v-for="(item, index) in frequencyList"
85
+              :label="item.label"
86
+              :value="item.value"
87
+              :key="index"
88
+            ></el-option>
89
+          </el-select>
90
+        </el-form-item>
91
+        <el-form-item label="子药数量 : " :label-width="formLabelWidth">
92
+          <el-input-number
93
+            v-model="form.child"
94
+            @change="handleChangeChild"
95
+            label="0"
96
+          ></el-input-number>
97
+        </el-form-item>
56
 
98
 
57
-                <el-form style="border-top: 1px solid #409eff;border-bottom: 1px solid #409eff;padding:22px 0 0 0;">
58
-                  <el-form-item label="子药名称1 : " :label-width="formLabelWidth">
59
-                     <el-select v-model="form.name" >
60
-                        <el-option v-for="(item, index) in nameList" :label="item.label" :value="item.value" :key="index"></el-option>
61
-                     </el-select>  
62
-                  </el-form-item>
63
-                  <el-form-item label="子药描述1 : " :label-width="formLabelWidth">
64
-                    <span>1g*8# 片剂</span>
65
-                  </el-form-item>
66
-                  <el-form-item label="单次用量1 : " :label-width="formLabelWidth">
67
-                    <el-input-number v-model="form.single" controls-position="right" @change="handleChange" ></el-input-number>
68
-                    <span>g</span>
69
-                </el-form-item> 
70
-                <el-form-item label="开药数量1 : " :label-width="formLabelWidth">
71
-                    <el-input-number v-model="form.number" controls-position="right" @change="handleChange" ></el-input-number>
72
-                    <span>瓶</span>
73
-                </el-form-item> 
74
-              </el-form>
99
+        <el-form
100
+          style="border-top: 1px solid #409eff;border-bottom: 1px solid #409eff;padding:22px 0 0 0;"
101
+        >
102
+          <el-form-item label="子药名称1 : " :label-width="formLabelWidth">
103
+            <el-select v-model="form.name">
104
+              <el-option
105
+                v-for="(item, index) in nameList"
106
+                :label="item.label"
107
+                :value="item.value"
108
+                :key="index"
109
+              ></el-option>
110
+            </el-select>
111
+          </el-form-item>
112
+          <el-form-item label="子药描述1 : " :label-width="formLabelWidth">
113
+            <span>1g*8# 片剂</span>
114
+          </el-form-item>
115
+          <el-form-item label="单次用量1 : " :label-width="formLabelWidth">
116
+            <el-input-number
117
+              v-model="form.single"
118
+              controls-position="right"
119
+              @change="handleChange"
120
+            ></el-input-number>
121
+            <span>g</span>
122
+          </el-form-item>
123
+          <el-form-item label="开药数量1 : " :label-width="formLabelWidth">
124
+            <el-input-number
125
+              v-model="form.number"
126
+              controls-position="right"
127
+              @change="handleChange"
128
+            ></el-input-number>
129
+            <span>瓶</span>
130
+          </el-form-item>
131
+        </el-form>
75
 
132
 
76
-              <el-form style="border-top: 1px solid #409eff;border-bottom: 1px solid #409eff;padding:22px 0 0 0;">
77
-                  <el-form-item label="子药名称2 : " :label-width="formLabelWidth">
78
-                     <el-select v-model="form.name" >
79
-                        <el-option v-for="(item, index) in nameList" :label="item.label" :value="item.value" :key="index"></el-option>
80
-                     </el-select>  
81
-                  </el-form-item>
82
-                  <el-form-item label="子药描述2 : " :label-width="formLabelWidth">
83
-                    <span>1g*8# 片剂</span>
84
-                  </el-form-item>
85
-                  <el-form-item label="单次用量2 : " :label-width="formLabelWidth">
86
-                    <el-input-number v-model="form.single" controls-position="right" @change="handleChange" ></el-input-number>
87
-                    <span>g</span>
88
-                </el-form-item> 
89
-                <el-form-item label="开药数量2 : " :label-width="formLabelWidth">
90
-                    <el-input-number v-model="form.number" controls-position="right" @change="handleChange" ></el-input-number>
91
-                    <span>瓶</span>
92
-                </el-form-item> 
93
-              </el-form>
94
-                
95
-            </el-form>
96
-            <div slot="footer" class="dialog-footer">
97
-                <el-button @click="statOrder = false">取 消</el-button>                                
98
-                <el-button type="primary" @click="statOrder = false">保 存</el-button>
99
-            </div>
100
-        </el-dialog>
101
-    </div>
133
+        <el-form
134
+          style="border-top: 1px solid #409eff;border-bottom: 1px solid #409eff;padding:22px 0 0 0;"
135
+        >
136
+          <el-form-item label="子药名称2 : " :label-width="formLabelWidth">
137
+            <el-select v-model="form.name">
138
+              <el-option
139
+                v-for="(item, index) in nameList"
140
+                :label="item.label"
141
+                :value="item.value"
142
+                :key="index"
143
+              ></el-option>
144
+            </el-select>
145
+          </el-form-item>
146
+          <el-form-item label="子药描述2 : " :label-width="formLabelWidth">
147
+            <span>1g*8# 片剂</span>
148
+          </el-form-item>
149
+          <el-form-item label="单次用量2 : " :label-width="formLabelWidth">
150
+            <el-input-number
151
+              v-model="form.single"
152
+              controls-position="right"
153
+              @change="handleChange"
154
+            ></el-input-number>
155
+            <span>g</span>
156
+          </el-form-item>
157
+          <el-form-item label="开药数量2 : " :label-width="formLabelWidth">
158
+            <el-input-number
159
+              v-model="form.number"
160
+              controls-position="right"
161
+              @change="handleChange"
162
+            ></el-input-number>
163
+            <span>瓶</span>
164
+          </el-form-item>
165
+        </el-form>
166
+      </el-form>
167
+      <div slot="footer" class="dialog-footer">
168
+        <el-button @click="statOrder = false">取 消</el-button>
169
+        <el-button type="primary" @click="statOrder = false">保 存</el-button>
170
+      </div>
171
+    </el-dialog>
172
+  </div>
102
 </template>
173
 </template>
103
 <script>
174
 <script>
104
 export default {
175
 export default {
165
 </script>
236
 </script>
166
 
237
 
167
 <style rel="stylesheet/css" lang="scss" scoped>
238
 <style rel="stylesheet/css" lang="scss" scoped>
168
-.child{
239
+.child {
169
   border-top: 1px solid #dcdfe6;
240
   border-top: 1px solid #dcdfe6;
170
   border-bottom: 1px solid #dcdfe6;
241
   border-bottom: 1px solid #dcdfe6;
171
 }
242
 }
172
 </style>
243
 </style>
173
-

+ 94 - 74
src/xt_pages/dialysis/details/BasicInfor.vue Zobrazit soubor

1
 <template>
1
 <template>
2
   <div>
2
   <div>
3
-    <h2 class="DetailsTit"><span>{{ title }}</span></h2>
4
-      <div class="ui-step clearfix">
5
-        <ul class="ui-step-ul">
6
-          <li v-for="(step, index) in steps" :key="index" class="ui-step-done" :class="step.finish ? 'ui-step-done' : 'unfinished'">
7
-            <div class="ui-step-number"><i /></div>
8
-            <div class="ui-step-title">{{ step.title }}</div>
9
-          </li>
10
-        </ul>
11
-      </div>
12
-      <ul class="info clearfix">
13
-        <li>
14
-          <label>姓名 : </label>
15
-          <span>{{ patient.id == 0 ? "" : patient.name }}</span>
16
-        </li>
17
-        <li>
18
-          <label>性别 : </label>
19
-          <span>{{ patient.id == 0 ? "" : (patient.gender == 1 ? "男" : "女") }}</span>
20
-        </li>
21
-        <li>
22
-          <label>年龄:</label>
23
-          <span>{{ getAge(patient) }}</span>
24
-        </li>
25
-        <li>
26
-          <label>透析号 : </label>
27
-          <span>{{ patient.dialysis_no }}</span>
28
-        </li>
29
-        <li>
30
-          <label>床位号 : </label>
31
-          <span>{{ device_number }}</span>
32
-        </li>
33
-        <li>
34
-          <label>来源 : </label>
35
-          <span>{{ source }}</span>
36
-        </li>
37
-        <li>
38
-          <label>住院号 : </label>
39
-          <span>{{ patient.admission_number }}</span>
40
-        </li>
41
-        <li>
42
-          <label>透析日期:</label>
43
-          <span>{{dialysis_time}}</span>
3
+    <h2 class="DetailsTit">
4
+      <span>{{ title }}</span>
5
+    </h2>
6
+    <div class="ui-step clearfix">
7
+      <ul class="ui-step-ul">
8
+        <li
9
+          v-for="(step, index) in steps"
10
+          :key="index"
11
+          class="ui-step-done"
12
+          :class="step.finish ? 'ui-step-done' : 'unfinished'"
13
+        >
14
+          <div class="ui-step-number"><i /></div>
15
+          <div class="ui-step-title">{{ step.title }}</div>
44
         </li>
16
         </li>
17
+      </ul>
18
+    </div>
19
+    <ul class="info clearfix">
20
+      <li>
21
+        <label>姓名 : </label>
22
+        <span>{{ patient.id == 0 ? "" : patient.name }}</span>
23
+      </li>
24
+      <li>
25
+        <label>性别 : </label>
26
+        <span>{{
27
+          patient.id == 0 ? "" : patient.gender == 1 ? "男" : "女"
28
+        }}</span>
29
+      </li>
30
+      <li>
31
+        <label>年龄:</label>
32
+        <span>{{ getAge(patient) }}</span>
33
+      </li>
34
+      <li>
35
+        <label>透析号 : </label>
36
+        <span>{{ patient.dialysis_no }}</span>
37
+      </li>
38
+      <li>
39
+        <label>床位号 : </label>
40
+        <span>{{ device_number }}</span>
41
+      </li>
42
+      <li>
43
+        <label>来源 : </label>
44
+        <span>{{ source }}</span>
45
+      </li>
46
+      <li>
47
+        <label>住院号 : </label>
48
+        <span>{{ patient.admission_number }}</span>
49
+      </li>
50
+      <li>
51
+        <label>透析日期:</label>
52
+        <span>{{ dialysis_time }}</span>
53
+      </li>
45
     </ul>
54
     </ul>
46
     <div class="middleLine"></div>
55
     <div class="middleLine"></div>
47
   </div>
56
   </div>
48
 </template>
57
 </template>
49
 
58
 
50
 <script>
59
 <script>
51
-const moment = require('moment')
52
-import { parseTime } from '@/utils'
53
-import { jsGetAge, uParseTime } from '@/utils/tools'
60
+const moment = require("moment");
61
+import { parseTime } from "@/utils";
62
+import { jsGetAge, uParseTime } from "@/utils/tools";
54
 
63
 
55
 export default {
64
 export default {
56
-  name: 'BasicInfor',
65
+  name: "BasicInfor",
57
   data() {
66
   data() {
58
     return {
67
     return {
59
-      title: '基本信息',
60
-      dialysis_time:0,
68
+      title: "基本信息",
69
+      dialysis_time: 0
61
       // steps: [
70
       // steps: [
62
       //   { title: "透析处方" },
71
       //   { title: "透析处方" },
63
       //   { title: "接诊评估" },
72
       //   { title: "接诊评估" },
70
       //   { title: "透后评估" },
79
       //   { title: "透后评估" },
71
       //   { title: "治疗小结" }
80
       //   { title: "治疗小结" }
72
       // ]
81
       // ]
73
-    }
82
+    };
74
   },
83
   },
75
   props: {
84
   props: {
76
     patient: {
85
     patient: {
77
       type: Object,
86
       type: Object,
78
       default: function() {
87
       default: function() {
79
-        return { id: 0 }
88
+        return { id: 0 };
80
       }
89
       }
81
     },
90
     },
82
     device_number: {
91
     device_number: {
85
     steps: {
94
     steps: {
86
       type: Array,
95
       type: Array,
87
       default: function() {
96
       default: function() {
88
-        return []
97
+        return [];
89
       }
98
       }
90
     }
99
     }
91
   },
100
   },
92
   computed: {
101
   computed: {
93
     created_time: function() {
102
     created_time: function() {
94
       if (this.patient.id == 0) {
103
       if (this.patient.id == 0) {
95
-        return ''
104
+        return "";
96
       } else {
105
       } else {
97
-        return parseTime(this.patient.created_time, '{y}-{m}-{d}')
106
+        return parseTime(this.patient.created_time, "{y}-{m}-{d}");
98
       }
107
       }
99
     },
108
     },
100
     source: function() {
109
     source: function() {
101
-      return this.patient.source == 1 ? '门诊' : '住院'
110
+      return this.patient.source == 1 ? "门诊" : "住院";
102
     }
111
     }
103
   },
112
   },
104
   methods: {
113
   methods: {
105
     getAge: function(val) {
114
     getAge: function(val) {
106
-        if (val.birthday == 0) {
107
-          return ''
108
-        }
109
-        return jsGetAge(uParseTime(val.birthday, '{y}-{m}-{d}'), '-')
115
+      var thisLen = val.id_card_no.length;
116
+      var birth = "";
117
+      if (thisLen == 15) {
118
+        birth = "19" + val.id_card_no.substr(6, 6);
119
+      } else {
120
+        birth = val.id_card_no.substr(6, 8);
121
+      }
122
+      var birthtwo =
123
+        birth.substr(0, 4) +
124
+        "-" +
125
+        birth.substr(4, 2) +
126
+        "-" +
127
+        birth.substr(6, 2);
128
+
129
+      var age = jsGetAge(birthtwo, "-");
130
+      return age;
110
     },
131
     },
132
+
111
     stepState: function() {
133
     stepState: function() {
112
-      return parseInt((Math.random() * 1000) + '') % 2 == 1
134
+      return parseInt(Math.random() * 1000 + "") % 2 == 1;
113
     }
135
     }
114
   },
136
   },
115
   created() {
137
   created() {
116
-    this.dialysis_time = parseTime(this.$route.query.date, '{y}-{m}-{d}')
117
-
138
+    this.dialysis_time = parseTime(this.$route.query.date, "{y}-{m}-{d}");
118
   }
139
   }
119
-}
140
+};
120
 </script>
141
 </script>
121
 
142
 
122
 <style style="stylesheet/scss" lang="scss" scoped>
143
 <style style="stylesheet/scss" lang="scss" scoped>
214
   }
235
   }
215
 }
236
 }
216
 .info {
237
 .info {
217
-    padding:20px 40px;
218
-    li {
219
-      float: left;
220
-      width: 28%;
221
-      // margin: 0 1rem 0 0;
222
-      font-size: 15px;
223
-      height: 35px;
224
-      line-height: 35px;
225
-      color: #34495e;
226
-      margin-left: 60px;
227
-    }
228
-    // border: solid red 1px;
238
+  padding: 20px 40px;
239
+  li {
240
+    float: left;
241
+    width: 28%;
242
+    // margin: 0 1rem 0 0;
243
+    font-size: 15px;
244
+    height: 35px;
245
+    line-height: 35px;
246
+    color: #34495e;
247
+    margin-left: 60px;
229
   }
248
   }
249
+  // border: solid red 1px;
250
+}
230
 </style>
251
 </style>
231
-

Diff nebyl zobrazen, protože je příliš veliký
+ 1446 - 1121
src/xt_pages/dialysis/details/dialog/DoctorAdviceDialog.vue


+ 50 - 48
src/xt_pages/dialysis/details/dialog/adviceDialog/AddGroupAdvice.vue Zobrazit soubor

674
             adviceNames.unshift(this.groupForm.adviceNames[index]);
674
             adviceNames.unshift(this.groupForm.adviceNames[index]);
675
           }
675
           }
676
           submitForm.adviceNames = adviceNames;
676
           submitForm.adviceNames = adviceNames;
677
-          let mode = "1"
677
+          let mode = "1";
678
 
678
 
679
-          CreateGroupAdvice(this.patientID, 0, submitForm,mode).then(response => {
680
-            if (response.data.state == 0) {
681
-              this.$message.error(response.data.msg);
682
-              return false;
683
-            } else {
684
-              this.$notify({
685
-                title: "成功",
686
-                message: "新增成功",
687
-                type: "success",
688
-                duration: 2000
689
-              });
679
+          CreateGroupAdvice(this.patientID, 0, submitForm, mode).then(
680
+            response => {
681
+              if (response.data.state == 0) {
682
+                this.$message.error(response.data.msg);
683
+                return false;
684
+              } else {
685
+                this.$notify({
686
+                  title: "成功",
687
+                  message: "新增成功",
688
+                  type: "success",
689
+                  duration: 2000
690
+                });
690
 
691
 
691
-              var childMap = {};
692
-              for (const index in response.data.data.advices) {
693
-                if (response.data.data.advices[index].parent_id == 0) {
694
-                  continue;
695
-                }
696
-                if (
697
-                  response.data.data.advices[index].parent_id in childMap ===
698
-                  false
699
-                ) {
700
-                  childMap[response.data.data.advices[index].parent_id] = [];
692
+                var childMap = {};
693
+                for (const index in response.data.data.advices) {
694
+                  if (response.data.data.advices[index].parent_id == 0) {
695
+                    continue;
696
+                  }
697
+                  if (
698
+                    response.data.data.advices[index].parent_id in childMap ===
699
+                    false
700
+                  ) {
701
+                    childMap[response.data.data.advices[index].parent_id] = [];
702
+                  }
703
+                  childMap[response.data.data.advices[index].parent_id].unshift(
704
+                    response.data.data.advices[index]
705
+                  );
701
                 }
706
                 }
702
-                childMap[response.data.data.advices[index].parent_id].unshift(
703
-                  response.data.data.advices[index]
704
-                );
705
-              }
706
-              var parentArr = [];
707
-              for (const index in response.data.data.advices) {
708
-                if (response.data.data.advices[index].parent_id > 0) {
709
-                  continue;
707
+                var parentArr = [];
708
+                for (const index in response.data.data.advices) {
709
+                  if (response.data.data.advices[index].parent_id > 0) {
710
+                    continue;
711
+                  }
712
+                  parentArr.push(response.data.data.advices[index]);
710
                 }
713
                 }
711
-                parentArr.push(response.data.data.advices[index]);
712
-              }
713
 
714
 
714
-              for (const index in parentArr) {
715
-                if (parentArr[index].id in childMap) {
716
-                  for (const j in childMap[parentArr[index].id]) {
717
-                    this.adviceTableData.unshift(
718
-                      childMap[parentArr[index].id][j]
719
-                    );
715
+                for (const index in parentArr) {
716
+                  if (parentArr[index].id in childMap) {
717
+                    for (const j in childMap[parentArr[index].id]) {
718
+                      this.adviceTableData.unshift(
719
+                        childMap[parentArr[index].id][j]
720
+                      );
721
+                    }
720
                   }
722
                   }
723
+                  this.adviceTableData.unshift(parentArr[index]);
721
                 }
724
                 }
722
-                this.adviceTableData.unshift(parentArr[index]);
723
-              }
724
 
725
 
725
-              // var alen = response.data.data.advices.length
726
-              // for (let index = alen-1; index >=0; index--) {
727
-              //   this.adviceTableData.unshift(response.data.data.advices[index]);
728
-              // }
726
+                // var alen = response.data.data.advices.length
727
+                // for (let index = alen-1; index >=0; index--) {
728
+                //   this.adviceTableData.unshift(response.data.data.advices[index]);
729
+                // }
729
 
730
 
730
-              this.resetForm(formName);
731
-              this.groupAddFormVisible = false;
732
-              return false;
731
+                this.resetForm(formName);
732
+                this.groupAddFormVisible = false;
733
+                return false;
734
+              }
733
             }
735
             }
734
-          });
736
+          );
735
         }
737
         }
736
       });
738
       });
737
     },
739
     },

+ 45 - 9
src/xt_pages/dialysis/dialysisPrintOrder.vue Zobrazit soubor

96
       <template
96
       <template
97
         v-if="
97
         v-if="
98
           org_template_info.template_id == 6 ||
98
           org_template_info.template_id == 6 ||
99
-            org_template_info.template_id == 10 ||  org_template_info.template_id == 11
99
+            org_template_info.template_id == 10 ||
100
+            org_template_info.template_id == 11
100
         "
101
         "
101
       >
102
       >
102
         <el-button
103
         <el-button
139
           >打印</el-button
140
           >打印</el-button
140
         >
141
         >
141
       </template>
142
       </template>
143
+      <template v-if="org_template_info.template_id == 12">
144
+        <el-button
145
+          :loading="loading"
146
+          size="small"
147
+          icon="el-icon-printer"
148
+          @click="printThisPage"
149
+          type="primary"
150
+          >打印</el-button
151
+        >
152
+      </template>
142
     </div>
153
     </div>
143
     <div class="app-container ">
154
     <div class="app-container ">
144
       <!--<div class="order-print-btn"-->
155
       <!--<div class="order-print-btn"-->
207
         v-if="org_template_info.template_id == 10"
218
         v-if="org_template_info.template_id == 10"
208
       ></DialysisPrintOrderTen>
219
       ></DialysisPrintOrderTen>
209
 
220
 
210
-    <DialysisPrintOrderNine
221
+      <DialysisPrintOrderNine
211
         v-bind:childResponse="childResponse"
222
         v-bind:childResponse="childResponse"
212
         v-if="org_template_info.template_id == 9"
223
         v-if="org_template_info.template_id == 9"
213
       ></DialysisPrintOrderNine>
224
       ></DialysisPrintOrderNine>
214
 
225
 
215
-    <DialysisPrintOrderEleven
216
-      v-bind:childResponse="childResponse"
217
-      v-if="org_template_info.template_id == 11"
218
-    ></DialysisPrintOrderEleven>
226
+      <DialysisPrintOrderEleven
227
+        v-bind:childResponse="childResponse"
228
+        v-if="org_template_info.template_id == 11"
229
+      ></DialysisPrintOrderEleven>
230
+      <DialysisPrintOrderTwelve
231
+        v-bind:childResponse="childResponse"
232
+        v-if="org_template_info.template_id == 12"
233
+      ></DialysisPrintOrderTwelve>
219
     </div>
234
     </div>
220
   </div>
235
   </div>
221
 </template>
236
 </template>
237
 import DialysisPrintOrderNine from "./template/DialysisPrintOrderNine";
252
 import DialysisPrintOrderNine from "./template/DialysisPrintOrderNine";
238
 import print from "print-js";
253
 import print from "print-js";
239
 import DialysisPrintOrderTen from "./template/DialysisPrintOrderTen";
254
 import DialysisPrintOrderTen from "./template/DialysisPrintOrderTen";
240
-import DialysisPrintOrderEleven from './template/DialysisPrintOrderEleven'
255
+import DialysisPrintOrderEleven from "./template/DialysisPrintOrderEleven";
256
+import DialysisPrintOrderTwelve from "./template/DialysisPrintOrderTwelve";
241
 
257
 
242
 export default {
258
 export default {
243
   name: "dialysisPrintOrder",
259
   name: "dialysisPrintOrder",
244
   components: {
260
   components: {
261
+    DialysisPrintOrderTwelve,
245
     DialysisPrintOrderEleven,
262
     DialysisPrintOrderEleven,
246
     DialysisPrintOrderTen,
263
     DialysisPrintOrderTen,
247
     DialysisPrintOrderOne,
264
     DialysisPrintOrderOne,
381
       const style =
398
       const style =
382
         '@media print {.dialysis-print-order{width:960px;margin:0 auto}.dialysis-print-order .order-yy-name{margin:auto;text-align:center;font-size:20px;letter-spacing:5px}.dialysis-print-order .order-title{margin:auto;font-weight:600;text-align:center;font-size:22px;padding:10px 20px 20px 20px}.dialysis-print-order .table-box{width:100%;line-height:23px;font-size:14px}.dialysis-print-order .print-table{width:100%;text-align:center;border-collapse:collapse;line-height:25px;font-size:14px}.dialysis-print-order .print-table-no{width:100%;text-align:center;border-collapse:collapse;font-size:14px}.dialysis-print-order .under-line{border-bottom:1px solid #999;width:95%;text-align:center;margin-left:2px}.dialysis-print-order .title-box{text-align:center;font-size:16px;border:1px solid #666}.dialysis-print-order .radio-lebel-box{font-weight:400;cursor:pointer}.dialysis-print-order .radio-no{opacity:0;outline:0;position:absolute;margin:0;width:0;height:0;z-index:-1}.dialysis-print-order .radio-inner{white-space:nowrap;cursor:pointer;outline:0;display:inline-block;line-height:1;position:relative;vertical-align:middle}.dialysis-print-order .radio-fang{display:inline-block;position:relative;border:1px solid #000;box-sizing:border-box;width:14px;height:14px;background-color:#fff;z-index:1;transition:border-color .25s cubic-bezier(.71,-.46,.29,1.46),background-color .25s cubic-bezier(.71,-.46,.29,1.46)}.dialysis-print-order .is-checked-radio::after{content:"√";font-size:15px}}.dialysis-print-order .print-table-no tr td { padding: 8px 5px; line-height: 25px; }.es-img{height: 20px; }.advice-name{text-align: left;}.advice-children{display:flex;} .dialysis-print-order .print-table tr td{padding: 0px 0px;} .print-template-two tr {line-height: 30px;}   .title-box-pro{border: 0 #fff;line-height: 40px;height: 40px;text-align: left;padding-left: 10px !important;}  .text-align-left{text-align: left !important;padding-left:10px !important;font-size: 14px !important;line-height: 25px;}';
399
         '@media print {.dialysis-print-order{width:960px;margin:0 auto}.dialysis-print-order .order-yy-name{margin:auto;text-align:center;font-size:20px;letter-spacing:5px}.dialysis-print-order .order-title{margin:auto;font-weight:600;text-align:center;font-size:22px;padding:10px 20px 20px 20px}.dialysis-print-order .table-box{width:100%;line-height:23px;font-size:14px}.dialysis-print-order .print-table{width:100%;text-align:center;border-collapse:collapse;line-height:25px;font-size:14px}.dialysis-print-order .print-table-no{width:100%;text-align:center;border-collapse:collapse;font-size:14px}.dialysis-print-order .under-line{border-bottom:1px solid #999;width:95%;text-align:center;margin-left:2px}.dialysis-print-order .title-box{text-align:center;font-size:16px;border:1px solid #666}.dialysis-print-order .radio-lebel-box{font-weight:400;cursor:pointer}.dialysis-print-order .radio-no{opacity:0;outline:0;position:absolute;margin:0;width:0;height:0;z-index:-1}.dialysis-print-order .radio-inner{white-space:nowrap;cursor:pointer;outline:0;display:inline-block;line-height:1;position:relative;vertical-align:middle}.dialysis-print-order .radio-fang{display:inline-block;position:relative;border:1px solid #000;box-sizing:border-box;width:14px;height:14px;background-color:#fff;z-index:1;transition:border-color .25s cubic-bezier(.71,-.46,.29,1.46),background-color .25s cubic-bezier(.71,-.46,.29,1.46)}.dialysis-print-order .is-checked-radio::after{content:"√";font-size:15px}}.dialysis-print-order .print-table-no tr td { padding: 8px 5px; line-height: 25px; }.es-img{height: 20px; }.advice-name{text-align: left;}.advice-children{display:flex;} .dialysis-print-order .print-table tr td{padding: 0px 0px;} .print-template-two tr {line-height: 30px;}   .title-box-pro{border: 0 #fff;line-height: 40px;height: 40px;text-align: left;padding-left: 10px !important;}  .text-align-left{text-align: left !important;padding-left:10px !important;font-size: 14px !important;line-height: 25px;}';
383
       const style2 =
400
       const style2 =
384
-        '@media print {.option_panel { margin: 0 5px 0 0; } .option_panel .check_box_panel { white-space: nowrap; outline: none; display: inline-block; line-height: 1; position: relative; vertical-align: middle; } .dialysis-print-order .order-title{margin:auto;font-weight:600;text-align:center;font-size:22px;padding:10px}.option_panel .check_box_panel .check_box { display: inline-block; position: relative; border: 1px solid #000; box-sizing: border-box; width: 14px; height: 12px; background-color: #fff; } .check_box_panel .did_checked::after { content: "√"; font-size: 15px; } .print_page_main_content {background-color: white;width: 960px;margin: 0 auto 50px;padding: 0 0 0 0; page-break-after: always;}.print_page_main_content .order-yy-name {margin: auto;text-align: center;font-size: 20px;letter-spacing: 5px;}.print_page_main_content .order_title {text-align: center;font-size: 23px; line-height: 50px;font-weight: 500;} .row {font-size: 14px;line-height: 20px;padding: 5px 0;}.inline_block { display: inline-block;}.under_line_two {display: inline-block;border-bottom: 1px solid #999;text-align: left;white-space: nowrap;width: 50%;}.under_line {display: inline-block;border-bottom: 1px solid #999;text-align: center;white-space: nowrap; width: 50%;}.flex {display: -webkit-box;display: -moz-box; display: -ms-flexbox; display: -webkit-flex;display: flex;align-items: center;-webkit-align-items: center;box-align: center;-moz-box-align: center;-webkit-box-align: center;text-align: center;-webkit-justify-content: space-between;justify-content: space-between;-moz-box-pack: space-between;-webkit--moz-box-pack: space-between;box-pack: space-between;}.print_page_main_content .proj_table {width: 100%;border: 1px solid;border-collapse: collapse;padding: 2px;}.print_page_main_content .proj_table tbody tr td {border: 1px solid;font-size: 16px;padding: 3px 8px;line-height: 30px;}.print_page_main_content .proj_table .inside_table {width: 100%;border: hidden; border-collapse: collapse;}.print_page_main_content .proj_table .inside_table tr td {border: 1px solid; text-align: center;font-size: 14px;padding: 6px 5px;line-height: 16px;}.print-table-no {width: 100%;text-align: center;border-collapse: collapse;font-size: 14px;}.es-img {height: 30px;}.advice-name {text-align: left !important;line-height: 16px !important;}.advice-children {display: flex;}}.margin-bottom-50{margin-bottom:50px;}.margin-bottom-300 {margin-bottom:450px;}.margin-bottom-600 {margin-bottom:600px;}.margin-bottom-900 {margin-bottom:900px;}.print-yema{ position: absolute;top: 920px;left: 50%;} .print-yema2{ position: absolute;top: 400px;left: 50%;}.print-yema3{position: absolute;top: 1230px;left: 50%;}.print-yema4{position: absolute;top: 1050px;left: 50%;}.check_box{width:15px !important;height:15px !important;}.did_checke::after {font-size: 8px;margin-left: 2px;margin-top: 12px !important;position: absolute;}';
401
+        '@media print {.option_panel { margin: 0 5px 0 0; } .option_panel .check_box_panel { white-space: nowrap; outline: none; display: inline-block; line-height: 1; position: relative; vertical-align: middle; } .dialysis-print-order .order-title{margin:auto;font-weight:600;text-align:center;font-size:22px;padding:10px}.option_panel .check_box_panel .check_box { display: inline-block; position: relative; border: 1px solid #000; box-sizing: border-box; width: 14px; height: 12px; background-color: #fff; } .check_box_panel .did_checked::after { content: "√"; font-size: 15px; } .print_page_main_content {background-color: white;width: 960px;margin: 0 auto 50px;padding: 0 0 0 0; page-break-after: always;}.print_page_main_content .order-yy-name {margin: auto;text-align: center;font-size: 20px;letter-spacing: 5px;}.print_page_main_content .order_title {text-align: center;font-size: 23px; line-height: 50px;font-weight: 500;} .row {font-size: 14px;line-height: 20px;padding: 5px 0;}.inline_block { display: inline-block;}.under_line_two {display: inline-block;border-bottom: 1px solid #999;text-align: left;white-space: nowrap;width: 50%;}.under_line {display: inline-block;border-bottom: 1px solid #999;text-align: center;white-space: nowrap; width: 50%;}.flex {display: -webkit-box;display: -moz-box; display: -ms-flexbox; display: -webkit-flex;display: flex;align-items: center;-webkit-align-items: center;box-align: center;-moz-box-align: center;-webkit-box-align: center;text-align: center;-webkit-justify-content: space-between;justify-content: space-between;-moz-box-pack: space-between;-webkit--moz-box-pack: space-between;box-pack: space-between;}.print_page_main_content .proj_table {width: 100%;border: 1px solid;border-collapse: collapse;padding: 2px;}.print_page_main_content .proj_table tbody tr td {border: 1px solid;font-size: 16px;padding: 3px 8px;line-height: 30px;}.print_page_main_content .proj_table .inside_table {width: 100%;border: hidden; border-collapse: collapse;}.print_page_main_content .proj_table .inside_table tr td {border: 1px solid; text-align: center;font-size: 14px;padding: 6px 5px;line-height: 16px;}.print-table-no {width: 100%;text-align: center;border-collapse: collapse;font-size: 14px;}.es-img {height: 30px;}.advice-name {text-align: left !important;line-height: 16px !important;}.advice-children {display: flex;}}.margin-bottom-50{margin-bottom:50px;}.margin-bottom-300 {margin-bottom:450px;}.margin-bottom-600 {margin-bottom:600px;}.margin-bottom-900 {margin-bottom:900px;}.print-yema{ position: absolute;top: 920px;left: 50%;} .print-yema2{ position: absolute;top: 400px;left: 50%;}.print-yema3{position: absolute;top: 1230px;left: 50%;}.print-yema4{position: absolute;top: 1050px;left: 50%;}.check_box{width:15px !important;height:15px !important;}.did_checke::after {font-size: 8px;margin-left: 2px;margin-top: 12px !important;position: absolute;}.table-box1 {border: 1px solid #000;width: 100%;line-height: 30px;font-size: 14px;border-collapse: collapse;}.table-box1 tr {border-bottom: 1px solid #000;}';
385
 
402
 
386
       // const style3 =
403
       // const style3 =
387
       //   '@media print {.option_panel { margin: 0 5px 0 0; } .option_panel .check_box_panel { white-space: nowrap; outline: none; display: inline-block; line-height: 1; position: relative; vertical-align: middle; } .dialysis-print-order .order-title{margin:auto;font-weight:600;text-align:center;font-size:22px;padding:10px}.option_panel .check_box_panel .check_box { display: inline-block; position: relative; border: 1px solid #000; box-sizing: border-box; width: 14px; height: 12px; background-color: #fff; } .check_box_panel .did_checked::after { content: "√"; font-size: 15px; } .print_page_main_content {background-color: white;width: 960px;margin: 0 auto 50px;padding: 0 0 0 0; page-break-after: always;}.print_page_main_content .order-yy-name {margin: auto;text-align: center;font-size: 20px;letter-spacing: 5px;}.print_page_main_content .order_title {text-align: center;font-size: 23px; line-height: 50px;font-weight: 500;} .row {font-size: 16px;line-height: 20px;padding: 5px 0;}.inline_block { display: inline-block;}.under_line_two {display: inline-block;border-bottom: 1px solid #999;text-align: left;white-space: nowrap;width: 50%;}.under_line {display: inline-block;border-bottom: 1px solid #999;text-align: center;white-space: nowrap; width: 50%;}.flex {display: -webkit-box;display: -moz-box; display: -ms-flexbox; display: -webkit-flex;display: flex;align-items: center;-webkit-align-items: center;box-align: center;-moz-box-align: center;-webkit-box-align: center;text-align: center;-webkit-justify-content: space-between;justify-content: space-between;-moz-box-pack: space-between;-webkit--moz-box-pack: space-between;box-pack: space-between;}.print_page_main_content .proj_table {width: 100%;border: 1px solid;border-collapse: collapse;padding: 2px;}.print_page_main_content .proj_table tbody tr td {border: 1px solid;font-size: 16px;padding: 5px 8px;line-height: 30px;}.print_page_main_content .proj_table .inside_table {width: 100%;border: hidden; border-collapse: collapse;}.print_page_main_content .proj_table .inside_table tr td {border: 1px solid; text-align: center;font-size: 16px;padding: 5px 5px;line-height: 18px;}.print-table-no {width: 100%;text-align: center;border-collapse: collapse;font-size: 14px;}.es-img {height: 30px;}.advice-name {text-align: left !important;line-height: 16px !important;}.advice-children {display: flex;}}.margin-bottom-300 {margin-bottom:450px;}.margin-bottom-600 {margin-bottom:600px;}.margin-bottom-900 {margin-bottom:950px;}.print-yema{ position: absolute;top: 920px;left: 50%;} .print-yema2{ position: absolute;top: 400px;left: 50%;}.print-yema3{position: absolute;top: 1230px;left: 50%;}.print-yema4{position: absolute;top:1050px;left: 50%;}.print-yema5{position: absolute;top:1370px;left: 50%;}.check_box{width:15px !important;height:15px !important;}.did_checke::after {font-size: 8px;margin-left: 2px;margin-top: 12px !important;position: absolute;}';
404
       //   '@media print {.option_panel { margin: 0 5px 0 0; } .option_panel .check_box_panel { white-space: nowrap; outline: none; display: inline-block; line-height: 1; position: relative; vertical-align: middle; } .dialysis-print-order .order-title{margin:auto;font-weight:600;text-align:center;font-size:22px;padding:10px}.option_panel .check_box_panel .check_box { display: inline-block; position: relative; border: 1px solid #000; box-sizing: border-box; width: 14px; height: 12px; background-color: #fff; } .check_box_panel .did_checked::after { content: "√"; font-size: 15px; } .print_page_main_content {background-color: white;width: 960px;margin: 0 auto 50px;padding: 0 0 0 0; page-break-after: always;}.print_page_main_content .order-yy-name {margin: auto;text-align: center;font-size: 20px;letter-spacing: 5px;}.print_page_main_content .order_title {text-align: center;font-size: 23px; line-height: 50px;font-weight: 500;} .row {font-size: 16px;line-height: 20px;padding: 5px 0;}.inline_block { display: inline-block;}.under_line_two {display: inline-block;border-bottom: 1px solid #999;text-align: left;white-space: nowrap;width: 50%;}.under_line {display: inline-block;border-bottom: 1px solid #999;text-align: center;white-space: nowrap; width: 50%;}.flex {display: -webkit-box;display: -moz-box; display: -ms-flexbox; display: -webkit-flex;display: flex;align-items: center;-webkit-align-items: center;box-align: center;-moz-box-align: center;-webkit-box-align: center;text-align: center;-webkit-justify-content: space-between;justify-content: space-between;-moz-box-pack: space-between;-webkit--moz-box-pack: space-between;box-pack: space-between;}.print_page_main_content .proj_table {width: 100%;border: 1px solid;border-collapse: collapse;padding: 2px;}.print_page_main_content .proj_table tbody tr td {border: 1px solid;font-size: 16px;padding: 5px 8px;line-height: 30px;}.print_page_main_content .proj_table .inside_table {width: 100%;border: hidden; border-collapse: collapse;}.print_page_main_content .proj_table .inside_table tr td {border: 1px solid; text-align: center;font-size: 16px;padding: 5px 5px;line-height: 18px;}.print-table-no {width: 100%;text-align: center;border-collapse: collapse;font-size: 14px;}.es-img {height: 30px;}.advice-name {text-align: left !important;line-height: 16px !important;}.advice-children {display: flex;}}.margin-bottom-300 {margin-bottom:450px;}.margin-bottom-600 {margin-bottom:600px;}.margin-bottom-900 {margin-bottom:950px;}.print-yema{ position: absolute;top: 920px;left: 50%;} .print-yema2{ position: absolute;top: 400px;left: 50%;}.print-yema3{position: absolute;top: 1230px;left: 50%;}.print-yema4{position: absolute;top:1050px;left: 50%;}.print-yema5{position: absolute;top:1370px;left: 50%;}.check_box{width:15px !important;height:15px !important;}.did_checke::after {font-size: 8px;margin-left: 2px;margin-top: 12px !important;position: absolute;}';
430
         });
447
         });
431
       } else if (
448
       } else if (
432
         this.org_template_info.template_id == 6 ||
449
         this.org_template_info.template_id == 6 ||
433
-        this.org_template_info.template_id == 10 ||  this.org_template_info.template_id == 11
450
+        this.org_template_info.template_id == 10 ||
451
+        this.org_template_info.template_id == 11
434
       ) {
452
       ) {
435
         printJS({
453
         printJS({
436
           printable: "dialysis-print-box-1",
454
           printable: "dialysis-print-box-1",
459
           style: style5,
477
           style: style5,
460
           scanStyles: false
478
           scanStyles: false
461
         });
479
         });
480
+      } else if (this.org_template_info.template_id == 12) {
481
+        printJS({
482
+          printable: "dialysis-print-box",
483
+          type: "html",
484
+          style: style,
485
+          scanStyles: false
486
+        });
462
       }
487
       }
463
     },
488
     },
464
     printThisOnePage() {
489
     printThisOnePage() {
1079
 .print-template-two tr {
1104
 .print-template-two tr {
1080
   line-height: 30px;
1105
   line-height: 30px;
1081
 }
1106
 }
1107
+
1108
+.table-box1 {
1109
+  border: 1px solid #000;
1110
+  width: 100%;
1111
+  line-height: 30px;
1112
+  font-size: 14px;
1113
+  border-collapse: collapse;
1114
+}
1115
+.table-box1 tr {
1116
+  border-bottom: 1px solid #000;
1117
+}
1082
 </style>
1118
 </style>

src/xt_pages/dialysis/template/dialysisPrintOrderNine.vue → src/xt_pages/dialysis/template/DialysisPrintOrderNine.vue Zobrazit soubor


Diff nebyl zobrazen, protože je příliš veliký
+ 2338 - 0
src/xt_pages/dialysis/template/dialysisPrintOrderTwelve.vue


+ 14 - 1
src/xt_pages/management/components/QualityForm.vue Zobrazit soubor

1049
         { id: 1, name: "透析液入口" },
1049
         { id: 1, name: "透析液入口" },
1050
         { id: 2, name: "透析液取样口" },
1050
         { id: 2, name: "透析液取样口" },
1051
         { id: 3, name: "置换液出口" },
1051
         { id: 3, name: "置换液出口" },
1052
-        { id: 4, name: "透析机反渗水入口" }
1052
+        { id: 4, name: "透析机反渗水入口" },
1053
+        { id: 5, name: "反渗水末端取样口" }
1053
       ],
1054
       ],
1054
       rules: {
1055
       rules: {
1055
         detection_unit: [{ required: true, message: "请填写检测单位" }],
1056
         detection_unit: [{ required: true, message: "请填写检测单位" }],
1162
             if (cultures[index].sampling_locationa === 4) {
1163
             if (cultures[index].sampling_locationa === 4) {
1163
               cultures[index].sampling_locationa = "透析机反渗水入口";
1164
               cultures[index].sampling_locationa = "透析机反渗水入口";
1164
             }
1165
             }
1166
+            if (cultures[index].sampling_locationa === 5) {
1167
+              cultures[index].sampling_locationa = "反渗水末端取样口";
1168
+            }
1165
           }
1169
           }
1166
           this.tableData = cultures;
1170
           this.tableData = cultures;
1167
           var dialyste = response.data.data.dialysate;
1171
           var dialyste = response.data.data.dialysate;
1202
             if (dialyste[index].sampling_locationb === 4) {
1206
             if (dialyste[index].sampling_locationb === 4) {
1203
               dialyste[index].sampling_locationb = "透析机反渗水入口";
1207
               dialyste[index].sampling_locationb = "透析机反渗水入口";
1204
             }
1208
             }
1209
+            if (dialyste[index].sampling_locationb === 5) {
1210
+              dialyste[index].sampling_locationb = "反渗水末端取样口";
1211
+            }
1205
           }
1212
           }
1206
           this.table = dialyste;
1213
           this.table = dialyste;
1207
           var ions = response.data.data.ions;
1214
           var ions = response.data.data.ions;
1688
             if (cultures[index].sampling_locationa === 4) {
1695
             if (cultures[index].sampling_locationa === 4) {
1689
               cultures[index].sampling_locationa = "透析机反渗水入口";
1696
               cultures[index].sampling_locationa = "透析机反渗水入口";
1690
             }
1697
             }
1698
+            if (cultures[index].sampling_locationa === 5) {
1699
+              cultures[index].sampling_locationa = "反渗水末端取样口";
1700
+            }
1691
           }
1701
           }
1692
           this.tableData = cultures;
1702
           this.tableData = cultures;
1693
           var dialysate = response.data.data.dialysate;
1703
           var dialysate = response.data.data.dialysate;
1727
             if (dialyste[index].sampling_locationb === 4) {
1737
             if (dialyste[index].sampling_locationb === 4) {
1728
               dialyste[index].sampling_locationb = "透析机反渗水入口";
1738
               dialyste[index].sampling_locationb = "透析机反渗水入口";
1729
             }
1739
             }
1740
+            if (dialyste[index].sampling_locationb === 5) {
1741
+              dialyste[index].sampling_locationb = "反渗水末端取样口";
1742
+            }
1730
           }
1743
           }
1731
           this.table = dialysate;
1744
           this.table = dialysate;
1732
           var ions = response.data.data.ions;
1745
           var ions = response.data.data.ions;

+ 11 - 5
src/xt_pages/management/components/UserForm.vue Zobrazit soubor

1
 <template>
1
 <template>
2
   <div id="user-form">
2
   <div id="user-form">
3
     <el-row class="c">
3
     <el-row class="c">
4
-      <el-col :span="11">
4
+      <el-col :span="12">
5
         <span class="machineClass">日期查询:</span>
5
         <span class="machineClass">日期查询:</span>
6
         <el-date-picker
6
         <el-date-picker
7
           v-model="form.start_time"
7
           v-model="form.start_time"
10
           placeholder="请选择"
10
           placeholder="请选择"
11
           format="yyyy-MM-dd"
11
           format="yyyy-MM-dd"
12
           value-format="yyyy-MM-dd"
12
           value-format="yyyy-MM-dd"
13
-          style="width:145px"
13
+          style="width:130px"
14
         ></el-date-picker
14
         ></el-date-picker
15
         >-
15
         >-
16
         <el-date-picker
16
         <el-date-picker
20
           placeholder="请选择"
20
           placeholder="请选择"
21
           format="yyyy-MM-dd"
21
           format="yyyy-MM-dd"
22
           value-format="yyyy-MM-dd"
22
           value-format="yyyy-MM-dd"
23
-          style="width:145px"
23
+          style="width:130px"
24
         ></el-date-picker>
24
         ></el-date-picker>
25
       </el-col>
25
       </el-col>
26
       <el-col :span="5">
26
       <el-col :span="5">
34
           ></el-option>
34
           ></el-option>
35
         </el-select>
35
         </el-select>
36
       </el-col>
36
       </el-col>
37
-      <el-col :span="6">
37
+      <el-col :span="5">
38
         <span class="machineClass">机位号:</span>
38
         <span class="machineClass">机位号:</span>
39
-        <el-select style="width:145px" v-model="form.bed">
39
+        <el-select style="width:110px" v-model="form.bed">
40
           <el-option
40
           <el-option
41
             v-for="item in this.bedNumberTwo"
41
             v-for="item in this.bedNumberTwo"
42
             :key="item.id"
42
             :key="item.id"
2395
   .el-dialog__footer {
2395
   .el-dialog__footer {
2396
     text-align: right;
2396
     text-align: right;
2397
   }
2397
   }
2398
+  .el-input--prefix .el-input__inner {
2399
+    padding-left: 15px;
2400
+  }
2401
+  .el-input--prefix .el-input__inner {
2402
+    padding-right: 15px;
2403
+  }
2398
 }
2404
 }
2399
 </style>
2405
 </style>

+ 2 - 1
src/xt_pages/management/home.vue Zobrazit soubor

2503
           { id: 1, name: '透析液入口' },
2503
           { id: 1, name: '透析液入口' },
2504
           { id: 2, name: '透析液取样口' },
2504
           { id: 2, name: '透析液取样口' },
2505
           { id: 3, name: '置换液出口' },
2505
           { id: 3, name: '置换液出口' },
2506
-          { id: 4, name: '透析机反渗水入口' }
2506
+          { id: 4, name: '透析机反渗水入口' },
2507
+          { id: 5, name:'反渗水末端取样口'}
2507
         ],
2508
         ],
2508
         breakDown: [
2509
         breakDown: [
2509
           { id: 1, name: '是' },
2510
           { id: 1, name: '是' },

+ 3 - 16
src/xt_pages/role/components/EditRole.vue Zobrazit soubor

1
 <template>
1
 <template>
2
   <el-dialog
2
   <el-dialog
3
     title="新增员工"
3
     title="新增员工"
4
-    width="750px"
4
+    width="660px"
5
     :visible.sync="visible"
5
     :visible.sync="visible"
6
     :before-close="_close"
6
     :before-close="_close"
7
   >
7
   >
78
 
78
 
79
           <el-input  v-model="ruleForm.phone"  maxlength="11"></el-input>
79
           <el-input  v-model="ruleForm.phone"  maxlength="11"></el-input>
80
         </el-form-item>
80
         </el-form-item>
81
-        <el-form-item label="角色" prop="role" label-width="70px">
82
-
83
-           <el-checkbox-group v-model="ruleForm.role">
84
-            <el-checkbox label="子管理员" name="type"></el-checkbox>
85
-            <el-checkbox label="医生" name="type"></el-checkbox>
86
-            <el-checkbox label="护士" name="type"></el-checkbox>
87
-            <el-checkbox label="技师" name="type"></el-checkbox>
88
-            <el-checkbox label="运营" name="type"></el-checkbox>
89
-            <el-checkbox label="库存" name="type"></el-checkbox>
90
-            <el-checkbox label="院长" name="type"></el-checkbox>
91
-          </el-checkbox-group>
92
-        </el-form-item>
93
 
81
 
94
         <el-form-item label="职称 : " label-width="50px">
82
         <el-form-item label="职称 : " label-width="50px">
95
           <el-select v-model="ruleForm.user_type" placeholder="用户类型">
83
           <el-select v-model="ruleForm.user_type" placeholder="用户类型">
172
         rules: {
160
         rules: {
173
           phone: [{ required: true, validator: checkMobile, trigger: 'blur' }],
161
           phone: [{ required: true, validator: checkMobile, trigger: 'blur' }],
174
           name: [{ required: true, validator: checkName, trigger: 'blur' }],
162
           name: [{ required: true, validator: checkName, trigger: 'blur' }],
175
-          intro: [{ required: true, message: '请输入角色说明', trigger: 'blur' }],
163
+          intro: [{ required: true, message: '请输入角色说明', trigger: 'blur' }]
176
         },
164
         },
177
         admin_user: [],
165
         admin_user: [],
178
         is_check_admin_user: [],
166
         is_check_admin_user: [],
214
           name: [
202
           name: [
215
             { required: true, message: '请输入用户名字', trigger: 'blur' },
203
             { required: true, message: '请输入用户名字', trigger: 'blur' },
216
             { max: 10, message: '10个字以内', trigger: 'blur' }
204
             { max: 10, message: '10个字以内', trigger: 'blur' }
217
-          ],
218
-          role: [{ required: true, message: '请选择角色', trigger: 'blur' }]
205
+          ]
219
         }
206
         }
220
       }
207
       }
221
     },
208
     },

Diff nebyl zobrazen, protože je příliš veliký
+ 2643 - 2560
src/xt_pages/user/doctorAdvice.vue