Przeglądaj źródła

Merge branch '20201109_pc_vue_new_branch' of http://git.shengws.com/csx/Vue_New into 20201109_pc_vue_new_branch

see999 3 lat temu
rodzic
commit
f9749106fe

+ 178 - 191
src/api/advice.js Wyświetl plik

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

+ 2 - 1
src/xt_pages/dialysis/details/assessmentBefore.vue Wyświetl plik

67
 
67
 
68
         <li v-if="isShow('体液过多症状')">
68
         <li v-if="isShow('体液过多症状')">
69
           <label>体液过多症状 : </label>
69
           <label>体液过多症状 : </label>
70
-          <span class="content">{{ getHumorExcessiveSymptom(this.record.humor_excessive_symptom) }}</span>
70
+          <!-- <span class="content">{{ getHumorExcessiveSymptom(this.record.humor_excessive_symptom) }}</span> -->
71
+          <span>{{this.record.humor_excessive_symptom}}</span>
71
         </li>
72
         </li>
72
 
73
 
73
         <li v-if="isShow('其他感染情况')">
74
         <li v-if="isShow('其他感染情况')">

+ 28 - 57
src/xt_pages/dialysis/details/dialog/assessmentBeforeDislysisDialog.vue Wyświetl plik

67
           </el-col>
67
           </el-col>
68
 
68
 
69
 
69
 
70
-
71
-
72
           <el-col :span="8">
70
           <el-col :span="8">
73
             <el-form-item label="体温(℃):" v-if="isShow('体温')">
71
             <el-form-item label="体温(℃):" v-if="isShow('体温')">
74
               <el-input type="number" v-model="assessmentBeforeDislysis.temperature"></el-input>
72
               <el-input type="number" v-model="assessmentBeforeDislysis.temperature"></el-input>
97
               <el-input type="number" v-model="assessmentBeforeDislysis.pulse_frequency"></el-input>
95
               <el-input type="number" v-model="assessmentBeforeDislysis.pulse_frequency"></el-input>
98
             </el-form-item>
96
             </el-form-item>
99
           </el-col>
97
           </el-col>
100
-
98
+<!-- 
101
           <el-col :span="8">
99
           <el-col :span="8">
102
             <el-form-item label="体液过多症状: " v-if="isShow('体液过多症状')">
100
             <el-form-item label="体液过多症状: " v-if="isShow('体液过多症状')">
103
               <el-select v-model="assessmentBeforeDislysis.humor_excessive_symptom">
101
               <el-select v-model="assessmentBeforeDislysis.humor_excessive_symptom">
106
                            :key="item.id"></el-option>
104
                            :key="item.id"></el-option>
107
               </el-select>
105
               </el-select>
108
             </el-form-item>
106
             </el-form-item>
107
+          </el-col> -->
108
+
109
+          <el-col :span="8">
110
+            <el-form-item label="体液过多症状:" v-if="isShow('体液过多症状')">
111
+              <el-input v-model="assessmentBeforeDislysis.humor_excessive_symptom" readonly
112
+                        @focus="showInnerDialog('19')"></el-input>
113
+            </el-form-item>
109
           </el-col>
114
           </el-col>
110
 
115
 
111
           <el-col :span="8">
116
           <el-col :span="8">
402
             </el-form-item>
407
             </el-form-item>
403
           </el-col>
408
           </el-col>
404
 
409
 
405
-
406
-
407
-
408
-
409
-
410
-
411
-
412
-
413
-          <!--          <el-col :span="8" v-if="isShow('血管通路(内瘘)')">-->
414
-          <!--            <el-form-item label="血管通路(内瘘):">-->
415
-          <!--              <div>-->
416
-          <!--                <el-input v-model="assessmentBeforeDislysis.blood_access_internal_fistula"-->
417
-          <!--                          @focus="showInnerDialog('9')"></el-input>-->
418
-          <!--              </div>-->
419
-          <!--            </el-form-item>-->
420
-          <!--          </el-col>-->
421
-
422
-
423
-
424
-
425
-
426
-
427
-
428
-
429
-
430
-
431
-
432
-
433
           <el-col :span="8">
410
           <el-col :span="8">
434
 
411
 
435
             <el-form-item label="位置: " v-if="isShow('位置')">
412
             <el-form-item label="位置: " v-if="isShow('位置')">
443
             </el-form-item>
420
             </el-form-item>
444
           </el-col>
421
           </el-col>
445
 
422
 
446
-
447
-
448
-
449
-          <!--          <el-col :span="8" v-if="isShow('导管')">-->
450
-          <!--            <el-form-item label="导管:">-->
451
-          <!--              <div>-->
452
-          <!--                <el-input v-model="assessmentBeforeDislysis.ductus_arantii" @focus="showInnerDialog('10')"></el-input>-->
453
-          <!--              </div>-->
454
-          <!--            </el-form-item>-->
455
-          <!--          </el-col>-->
456
-
457
-
458
           <el-col :span="8" v-if="isShow('其他中心静脉导管')">
423
           <el-col :span="8" v-if="isShow('其他中心静脉导管')">
459
             <el-form-item label="其他中心静脉导管:">
424
             <el-form-item label="其他中心静脉导管:">
460
               <div>
425
               <div>
462
               </div>
427
               </div>
463
             </el-form-item>
428
             </el-form-item>
464
           </el-col>
429
           </el-col>
465
-          <!-- </el-row>
466
-
467
-
468
-          <el-row :gutter="20"> -->
469
-
470
-
471
-
430
+         
472
           <el-col :span="8">
431
           <el-col :span="8">
473
             <el-form-item label="感染: " v-if="isShow('感染')">
432
             <el-form-item label="感染: " v-if="isShow('感染')">
474
               <el-select v-model="assessmentBeforeDislysis.is_infect">
433
               <el-select v-model="assessmentBeforeDislysis.is_infect">
1089
             this.InnerDialogProps.isShowTextArea = false
1048
             this.InnerDialogProps.isShowTextArea = false
1090
 
1049
 
1091
             break
1050
             break
1051
+
1052
+           case '19': // 内瘘
1053
+
1054
+            this.InnerDialogProps.values = this.humor_excessive_symptom_array
1055
+            this.InnerDialogProps.titles = '体液过多症状'
1056
+            this.InnerDialogProps.type = 'humor_excessive_symptom'
1057
+            this.InnerDialogProps.selected = this.assessmentBeforeDislysis.humor_excessive_symptom
1058
+            this.InnerDialogProps.isShowTextArea = false
1059
+
1060
+            break
1092
          
1061
          
1093
         }
1062
         }
1094
       },
1063
       },
1153
           case 'catheter_maintenance':
1122
           case 'catheter_maintenance':
1154
            this.assessmentBeforeDislysis.catheter_maintenance = val.value.join(',')
1123
            this.assessmentBeforeDislysis.catheter_maintenance = val.value.join(',')
1155
            break
1124
            break
1125
+          case 'humor_excessive_symptom':
1126
+           this.assessmentBeforeDislysis.humor_excessive_symptom = val.value.join(',')
1127
+           break  
1156
         }
1128
         }
1157
       },
1129
       },
1158
       innerDialogCancle: function() {
1130
       innerDialogCancle: function() {
1159
         this.InnerDialogProps.visibility = false
1131
         this.InnerDialogProps.visibility = false
1160
-      }, handleComfirm: function() {
1132
+      }, 
1133
+      handleComfirm: function() {
1161
 
1134
 
1162
         var arr = this.assessmentBeforeDislysis
1135
         var arr = this.assessmentBeforeDislysis
1163
         for (let i = 0; i < this.machineType.length; i++) {
1136
         for (let i = 0; i < this.machineType.length; i++) {
1165
             arr.machine_type = this.machineType[i].name
1138
             arr.machine_type = this.machineType[i].name
1166
           }
1139
           }
1167
         }
1140
         }
1168
-        // console.log('arr', arr)
1169
         const ParamsQuery = arr
1141
         const ParamsQuery = arr
1170
-        // console.log('paramsquery', ParamsQuery)
1171
         ParamsQuery['patient'] = this.patient.id
1142
         ParamsQuery['patient'] = this.patient.id
1172
         ParamsQuery['record_date'] = this.record_date
1143
         ParamsQuery['record_date'] = this.record_date
1173
         ParamsQuery['mode'] = '1'
1144
         ParamsQuery['mode'] = '1'
1174
 
1145
 
1175
-        // console.log(this.predialysis_evaluation)
1176
-
1177
         if (this.predialysis_evaluation.id == 0) {
1146
         if (this.predialysis_evaluation.id == 0) {
1178
           ParamsQuery['mode'] = '1'
1147
           ParamsQuery['mode'] = '1'
1179
         } else {
1148
         } else {
1226
         }
1195
         }
1227
         this.dialogFormVisible = true
1196
         this.dialogFormVisible = true
1228
         this.isVisibility = false
1197
         this.isVisibility = false
1229
-      }, submitDryWeight() {
1198
+      },
1199
+     submitDryWeight() {
1230
         const params = {
1200
         const params = {
1231
           id: this.patient.id,
1201
           id: this.patient.id,
1232
           dry_weight: this.weight_adjust.weight,
1202
           dry_weight: this.weight_adjust.weight,
1245
             this.isVisibility = true
1215
             this.isVisibility = true
1246
           }
1216
           }
1247
         })
1217
         })
1248
-      }, cancleDryWeight() {
1218
+      },
1219
+     cancleDryWeight() {
1249
         this.dialogFormVisible = false
1220
         this.dialogFormVisible = false
1250
         this.isVisibility = true
1221
         this.isVisibility = true
1251
       },
1222
       },

+ 46 - 7
src/xt_pages/dialysis/dialysisDoctorAdvice.vue Wyświetl plik

23
     </div>
23
     </div>
24
     </div>
24
     </div>
25
     <div class="app-container">
25
     <div class="app-container">
26
-      <!-- <div class="filter-container">
27
-        <el-input style="width: 400px;" v-model="searchKey" class="filter-item"/>
28
-        <el-button class="filter-item" type="primary" icon="el-icon-search" @click="search">搜索</el-button>
29
-      </div>-->
26
+      <div class="filter-container">
27
+       <el-autocomplete
28
+            style="margin:16px 5px"
29
+            popper-class="my-autocomplete"
30
+            v-model.trim="listQuery.keyword"
31
+            :fetch-suggestions="querySearchAsync"
32
+            :trigger-on-focus="false"
33
+            placeholder="病人名字或者透析号"
34
+            @select="handleSelect"
35
+    >
36
+        <i class="el-icon-search el-input__icon" slot="suffix"> </i>
37
+        <template slot-scope="{ item }">
38
+            <div class="name">{{ item.name }}</div>
39
+        </template>
40
+     </el-autocomplete>
41
+       
42
+      </div>
30
       <div class="cell clearfix">
43
       <div class="cell clearfix">
31
         <label class="title">
44
         <label class="title">
32
           <span class="name">日期查询:</span>
45
           <span class="name">日期查询:</span>
46
 
59
 
47
         <!-- <el-button type="primary" :disabled="selecting_schs.length == 0" @click="batchPrintAction">打印</el-button> -->
60
         <!-- <el-button type="primary" :disabled="selecting_schs.length == 0" @click="batchPrintAction">打印</el-button> -->
48
       </div>
61
       </div>
62
+     
49
       <div class="cell clearfix">
63
       <div class="cell clearfix">
50
         <label class="title"> <span class="name">排班班次</span> : </label>
64
         <label class="title"> <span class="name">排班班次</span> : </label>
51
         <div class="time">
65
         <div class="time">
359
 import BreadCrumb from "@/xt_pages/components/bread-crumb";
373
 import BreadCrumb from "@/xt_pages/components/bread-crumb";
360
 import { getPrintTemplate } from "@/api/data";
374
 import { getPrintTemplate } from "@/api/data";
361
 import { getSchedualDoctors } from '@/api/advice'
375
 import { getSchedualDoctors } from '@/api/advice'
362
-
376
+import {  getHisPatient } from '@/api/project/project'
363
 export default {
377
 export default {
364
   name: "Patient",
378
   name: "Patient",
365
   data() {
379
   data() {
404
       showOne:false,
418
       showOne:false,
405
       deliveryWay:[],
419
       deliveryWay:[],
406
       delivery_way:0,
420
       delivery_way:0,
421
+      patient_id:0,
407
     };
422
     };
408
   },
423
   },
409
   created() {
424
   created() {
506
          var partition_type = this.listQuery.partition_type
521
          var partition_type = this.listQuery.partition_type
507
         
522
         
508
         console.log("班次",schedule_type,"分区",partition_type)
523
         console.log("班次",schedule_type,"分区",partition_type)
509
-        getSchedualDoctors({date: newTime,patient_type: 0,advice_type: 2,delivery_way:name,schedule_type:schedule_type,partition_type:partition_type}).then(rs => {
524
+        getSchedualDoctors({date: newTime,patient_type: 0,advice_type: 2,delivery_way:name,schedule_type:schedule_type,partition_type:partition_type,patient_id:this.patient_id}).then(rs => {
510
         var resp = rs.data
525
         var resp = rs.data
511
         if (resp.state == 1) {
526
         if (resp.state == 1) {
512
             this.admin_users = resp.data.adminUser
527
             this.admin_users = resp.data.adminUser
972
         // console.log('val',val)
987
         // console.log('val',val)
973
         this.selecting_schs = val;
988
         this.selecting_schs = val;
974
     },
989
     },
975
-    
990
+    querySearchAsync(keyword, cb) {
991
+        let key = '';
992
+        if (keyword != undefined) {
993
+          key = keyword
994
+        }
995
+        let searchArray = []
996
+
997
+        var params = {
998
+          keyword: key
999
+        }
1000
+        console.log('params', params)
1001
+        getHisPatient(params).then(response => {
1002
+          if (response.data.state == 1) {
1003
+            searchArray = response.data.data.patient
1004
+            console.log('searcharrya', searchArray)
1005
+            cb(searchArray)
1006
+          }
1007
+        })
1008
+        return searchArray
1009
+      },
1010
+     handleSelect(val) {
1011
+     
1012
+        this.patient_id = val.patient_id
1013
+       this.requestSchedualDoctors(this.time)
1014
+      },
976
   },
1015
   },
977
   components: {
1016
   components: {
978
     BreadCrumb
1017
     BreadCrumb

+ 13 - 5
src/xt_pages/dialysis/template/DialysisPrintOrderFourteen.vue Wyświetl plik

174
                 <tbody>
174
                 <tbody>
175
                   <tr>
175
                   <tr>
176
                     <td width="100">体液过多症状:</td>
176
                     <td width="100">体液过多症状:</td>
177
-                    <td width="50">
177
+                    <td width="400">
178
+                       <div class="under-line">
179
+                          &nbsp;
180
+                          <span>{{ predialysis.humor_excessive_symptom ? predialysis.humor_excessive_symptom : '' }}</span>
181
+                        </div>
182
+                    </td>
183
+                    <!-- <td width="50">
178
                       <div>
184
                       <div>
179
                         <label-box :isChecked="predialysis.humor_excessive_symptom ? getHumorExcessiveSymptom(predialysis.humor_excessive_symptom).indexOf('无') > -1 : false" showValue="无"></label-box>
185
                         <label-box :isChecked="predialysis.humor_excessive_symptom ? getHumorExcessiveSymptom(predialysis.humor_excessive_symptom).indexOf('无') > -1 : false" showValue="无"></label-box>
180
                       </div>
186
                       </div>
186
                         <label-box :isChecked="predialysis.humor_excessive_symptom ? getHumorExcessiveSymptom(predialysis.humor_excessive_symptom).indexOf('颜面浮肿') >-1 : false" showValue="颜面浮肿"></label-box>
192
                         <label-box :isChecked="predialysis.humor_excessive_symptom ? getHumorExcessiveSymptom(predialysis.humor_excessive_symptom).indexOf('颜面浮肿') >-1 : false" showValue="颜面浮肿"></label-box>
187
                         &nbsp;
193
                         &nbsp;
188
                       </div>
194
                       </div>
189
-                    </td>
195
+                    </td> -->
190
 
196
 
191
-                    <td width="50"><label-box :isChecked="predialysis.humor_excessive_symptom ? ['无','下肢水肿','颜面浮肿'].indexOf(getHumorExcessiveSymptom(predialysis.humor_excessive_symptom)) == -1 : false" showValue="其它"></label-box></td>
192
-                    <td width="140">
197
+                    <!-- <td width="50"><label-box :isChecked="predialysis.humor_excessive_symptom ? ['无','下肢水肿','颜面浮肿'].indexOf(getHumorExcessiveSymptom(predialysis.humor_excessive_symptom)) == -1 : false" showValue="其它"></label-box></td> -->
198
+                    <!-- <td width="140">
193
                       <div class="under-line">
199
                       <div class="under-line">
194
                         &nbsp;
200
                         &nbsp;
195
                         <span v-if="predialysis.humor_excessive_symptom && ['无','下肢水肿','颜面浮肿'].indexOf(getHumorExcessiveSymptom(predialysis.humor_excessive_symptom)) == -1">
201
                         <span v-if="predialysis.humor_excessive_symptom && ['无','下肢水肿','颜面浮肿'].indexOf(getHumorExcessiveSymptom(predialysis.humor_excessive_symptom)) == -1">
196
                           {{ getHumorExcessiveSymptom(predialysis.humor_excessive_symptom) }}
202
                           {{ getHumorExcessiveSymptom(predialysis.humor_excessive_symptom) }}
197
                         </span>
203
                         </span>
198
                       </div>
204
                       </div>
199
-                    </td>
205
+                    </td> -->
206
+                    <td></td>
207
+                    <td></td>
200
                     <td></td>
208
                     <td></td>
201
                   </tr>
209
                   </tr>
202
                 </tbody>
210
                 </tbody>

+ 11 - 4
src/xt_pages/dialysis/template/DialysisPrintOrderTwentySeven.vue Wyświetl plik

182
                           <!-- <label-box :isChecked="predialysis.humor_excessive_symptom ? getHumorExcessiveSymptom(predialysis.humor_excessive_symptom).indexOf('无') > -1 : false" showValue="无"></label-box> -->
182
                           <!-- <label-box :isChecked="predialysis.humor_excessive_symptom ? getHumorExcessiveSymptom(predialysis.humor_excessive_symptom).indexOf('无') > -1 : false" showValue="无"></label-box> -->
183
                         </div>
183
                         </div>
184
                       </td>
184
                       </td>
185
-                      <td width="180">
186
-                        <div>
185
+                      <td width="400">
186
+                        <!-- <div>
187
                           <label-box :isChecked="predialysis.humor_excessive_symptom ? getHumorExcessiveSymptom(predialysis.humor_excessive_symptom) == '下肢水肿' : false" showValue="下肢水肿"></label-box>
187
                           <label-box :isChecked="predialysis.humor_excessive_symptom ? getHumorExcessiveSymptom(predialysis.humor_excessive_symptom) == '下肢水肿' : false" showValue="下肢水肿"></label-box>
188
                           &nbsp;
188
                           &nbsp;
189
                           <label-box :isChecked="predialysis.humor_excessive_symptom ? getHumorExcessiveSymptom(predialysis.humor_excessive_symptom).indexOf('颜面浮肿') >-1 : false" showValue="颜面浮肿"></label-box>
189
                           <label-box :isChecked="predialysis.humor_excessive_symptom ? getHumorExcessiveSymptom(predialysis.humor_excessive_symptom).indexOf('颜面浮肿') >-1 : false" showValue="颜面浮肿"></label-box>
190
                           &nbsp;
190
                           &nbsp;
191
+                        </div> -->
192
+                         <div class="under-line">
193
+                          &nbsp;
194
+                          <span>{{ predialysis.humor_excessive_symptom ? predialysis.humor_excessive_symptom : '' }}</span>
191
                         </div>
195
                         </div>
196
+
192
                       </td>
197
                       </td>
193
 
198
 
194
-                      <td width="50"><label-box :isChecked="predialysis.humor_excessive_symptom ? ['无','下肢水肿','颜面浮肿'].indexOf(getHumorExcessiveSymptom(predialysis.humor_excessive_symptom)) == -1 : false" showValue="其它"></label-box></td>
199
+                      <!-- <td width="50"><label-box :isChecked="predialysis.humor_excessive_symptom ? ['无','下肢水肿','颜面浮肿'].indexOf(getHumorExcessiveSymptom(predialysis.humor_excessive_symptom)) == -1 : false" showValue="其它"></label-box></td>
195
                       <td width="140">
200
                       <td width="140">
196
                         <div class="under-line">
201
                         <div class="under-line">
197
                           &nbsp;
202
                           &nbsp;
199
                             {{ getHumorExcessiveSymptom(predialysis.humor_excessive_symptom) }}
204
                             {{ getHumorExcessiveSymptom(predialysis.humor_excessive_symptom) }}
200
                           </span>
205
                           </span>
201
                         </div>
206
                         </div>
202
-                      </td>
207
+                      </td> -->
208
+                      <td></td>
209
+                      <td></td>
203
                       <td></td>
210
                       <td></td>
204
                     </tr>
211
                     </tr>
205
                   </tbody>
212
                   </tbody>

+ 6 - 1
src/xt_pages/hospitalStation/components/deskPrescription.vue Wyświetl plik

2413
         this.tabIndex = this.prescriptions.length
2413
         this.tabIndex = this.prescriptions.length
2414
 
2414
 
2415
         var str = this.prescriptions[this.prescriptions.length - 1].name
2415
         var str = this.prescriptions[this.prescriptions.length - 1].name
2416
-        this.tabIndex = parseInt(str.charAt(str.length - 1))
2416
+
2417
+        var reg =/[\u4e00-\u9fa5]/g;
2418
+        // var str= " 阿达 adas 123132  一二三 ";
2419
+        // str= str.replace(/[ ]/g, "");//去空格
2420
+        str= str.replace(reg, "");//去除中文
2421
+        this.tabIndex = parseInt(str.replace(reg, ""))
2417
         ++this.tabIndex
2422
         ++this.tabIndex
2418
         let newTabName = '处方' + this.tabIndex
2423
         let newTabName = '处方' + this.tabIndex
2419
         var nowDate = new Date()
2424
         var nowDate = new Date()

+ 11 - 3
src/xt_pages/hospitalStation/doctorDesk.vue Wyświetl plik

451
             this.admin_info = response.data.data.info
451
             this.admin_info = response.data.data.info
452
 
452
 
453
             if (this.patientTableData.length > 0) {
453
             if (this.patientTableData.length > 0) {
454
-              this.$refs.tab.setCurrentRow(this.patientTableData[0])
455
-              this.oldCurrentRow = this.patientTableData[0]
456
-              this.getPatientInfo(this.patientTableData[0])
454
+              for(let i = 0; i < this.patientTableData.length; i++){
455
+                if(this.patientTableData[i].id == patient_id){
456
+                  this.$refs.tab.setCurrentRow(this.patientTableData[i])
457
+                  this.oldCurrentRow = this.patientTableData[i]
458
+                  this.getPatientInfo(this.patientTableData[i])
459
+
460
+
461
+                }
462
+
463
+              }
464
+
457
             }
465
             }
458
           }
466
           }
459
 
467
 

+ 18 - 12
src/xt_pages/outpatientDoctorStation/components/deskPrescription.vue Wyświetl plik

286
                                         </el-table-column>
286
                                         </el-table-column>
287
                                         <el-table-column label="库存" width="60">
287
                                         <el-table-column label="库存" width="60">
288
                                             <template slot-scope="scope">
288
                                             <template slot-scope="scope">
289
-                                              <span v-if="org_id == 9671 || org_id == 9675 || org_id == 4 || org_id == 10138 || org_id == 3877 || org_id == 10028">
290
-                                               <span v-if="scope.row.count/scope.row.min_number>0">{{Math.floor(scope.row.count/scope.row.min_number)}}{{scope.row.max_unit}}</span> 
289
+                                              <span v-if="org_id == 9671 || org_id == 9675 || org_id == 4 || org_id == 10138 || org_id == 3877 || org_id == 10028 || org_id == 10243 || org_id == 10088">
290
+                                               <span v-if="scope.row.count/scope.row.min_number>0">{{Math.floor(scope.row.count/scope.row.min_number)}}{{scope.row.max_unit}}</span>
291
                                                <span v-if="scope.row.count%scope.row.min_number>0"> {{scope.row.count%scope.row.min_number}}{{scope.row.min_unit}}</span>
291
                                                <span v-if="scope.row.count%scope.row.min_number>0"> {{scope.row.count%scope.row.min_number}}{{scope.row.min_unit}}</span>
292
                                               </span>
292
                                               </span>
293
-                                              <span v-else> {{scope.row.total}}{{scope.row.total?scope.row.min_unit:''}}</span> 
294
-                                             
293
+                                              <span v-else> {{scope.row.total}}{{scope.row.total?scope.row.min_unit:''}}</span>
294
+
295
                                             </template>
295
                                             </template>
296
                                         </el-table-column>
296
                                         </el-table-column>
297
                                         <el-table-column label="单价" width="40">
297
                                         <el-table-column label="单价" width="40">
383
                                         </el-table-column>
383
                                         </el-table-column>
384
                                         <el-table-column label="库存" width="40">
384
                                         <el-table-column label="库存" width="40">
385
                                             <template slot-scope="scope">
385
                                             <template slot-scope="scope">
386
-                                              <span v-if="org_id == 9671 || org_id == 9675 || org_id == 4 || org_id == 10138 || org_id == 3877 || org_id == 10028">
386
+                                              <span v-if="org_id == 9671 || org_id == 9675 || org_id == 4 || org_id == 10138 || org_id == 3877 || org_id == 10028 || org_id == 10243 || org_id == 10088">
387
                                                    {{scope.row.stock_count}}
387
                                                    {{scope.row.stock_count}}
388
                                               </span>
388
                                               </span>
389
                                               <span v-else> {{ scope.row.total }}</span>
389
                                               <span v-else> {{ scope.row.total }}</span>
2419
         this.tabIndex = this.prescriptions.length
2419
         this.tabIndex = this.prescriptions.length
2420
 
2420
 
2421
         var str = this.prescriptions[this.prescriptions.length - 1].name
2421
         var str = this.prescriptions[this.prescriptions.length - 1].name
2422
-        this.tabIndex = parseInt(str.charAt(str.length - 1))
2422
+
2423
+        var reg =/[\u4e00-\u9fa5]/g;
2424
+        // var str= " 阿达 adas 123132  一二三 ";
2425
+        // str= str.replace(/[ ]/g, "");//去空格
2426
+        // str= ;//去除中文
2427
+        this.tabIndex = parseInt(str.replace(reg, ""))
2428
+
2423
         ++this.tabIndex
2429
         ++this.tabIndex
2424
         let newTabName = '处方' + this.tabIndex
2430
         let newTabName = '处方' + this.tabIndex
2425
         var nowDate = new Date()
2431
         var nowDate = new Date()
2652
       selectDrugs(selection, row) {
2658
       selectDrugs(selection, row) {
2653
         console.log('selection', selection)
2659
         console.log('selection', selection)
2654
         console.log('row', row)
2660
         console.log('row', row)
2655
-        if(this.org_id == 10138 || this.org_id == 9671 || this.org_id == 9675 || this.org_id == 4 || this.org_id == 3877 || this.org_id == 10028 ){
2661
+        if(this.org_id == 10138 || this.org_id == 9671 || this.org_id == 9675 || this.org_id == 4 || this.org_id == 3877 || this.org_id == 10028 || this.org_id == 10243 || this.org_id == 10088 ){
2656
             if (row.count <= 0) {
2662
             if (row.count <= 0) {
2657
               if (selection) {
2663
               if (selection) {
2658
                 selection.forEach(row => {
2664
                 selection.forEach(row => {
2681
               return
2687
               return
2682
             }
2688
             }
2683
         }
2689
         }
2684
-       
2690
+
2685
         this.curDrugs = selection
2691
         this.curDrugs = selection
2686
       },
2692
       },
2687
 
2693
 
2927
       },
2933
       },
2928
       selectChange(selection, row) {
2934
       selectChange(selection, row) {
2929
         console.log('row', row)
2935
         console.log('row', row)
2930
-        if(this.org_id == 10138 || this.org_id == 9671 || this.org_id == 9675 || this.org_id == 4 || this.org_id ==3877 || this.org_id == 10028 ){
2936
+        if(this.org_id == 10138 || this.org_id == 9671 || this.org_id == 9675 || this.org_id == 4 || this.org_id ==3877 || this.org_id == 10028 || this.org_id == 10243 || this.org_id == 10088){
2931
            if (row.stock_count <= 0) {
2937
            if (row.stock_count <= 0) {
2932
             if (row.type == 3) {
2938
             if (row.type == 3) {
2933
               if (selection) {
2939
               if (selection) {
2961
           }
2967
           }
2962
 
2968
 
2963
         }
2969
         }
2964
-       
2970
+
2965
         this.teamList.push(row)
2971
         this.teamList.push(row)
2966
       },
2972
       },
2967
       getlist() {
2973
       getlist() {
2994
             }
3000
             }
2995
 
3001
 
2996
             var good_info = response.data.data.good_info
3002
             var good_info = response.data.data.good_info
2997
-          
2998
- 
3003
+
3004
+
2999
             for (let i = 0; i < good_info.length; i++) {
3005
             for (let i = 0; i < good_info.length; i++) {
3000
                good_info[i].stock_count = 0
3006
                good_info[i].stock_count = 0
3001
               if(good_info[i].good_stock_in.length >0 ){
3007
               if(good_info[i].good_stock_in.length >0 ){

+ 38 - 5
src/xt_pages/qcd/treatmentControlAnalysis/components/TimePersonal.vue Wyświetl plik

3
     <div class="cell clearfix">
3
     <div class="cell clearfix">
4
       <el-form :inline="true" :model="listQuery">
4
       <el-form :inline="true" :model="listQuery">
5
         <el-form-item label>
5
         <el-form-item label>
6
-          <!-- <el-input v-model.trim="listQuery.search" placeholder="姓名/透析号" style="width:150px"></el-input>
7
-          <el-button type="primary" @click="onSearch" icon="el-icon-search">搜索</el-button> -->
6
+         
8
            <el-autocomplete
7
            <el-autocomplete
9
              class="checkSearch"
8
              class="checkSearch"
10
              popper-class="my-autocomplete"
9
              popper-class="my-autocomplete"
70
       </div>
69
       </div>
71
       <div style="padding-left:10px;flex:1">
70
       <div style="padding-left:10px;flex:1">
72
         <div class="tableTitle">统计表</div>
71
         <div class="tableTitle">统计表</div>
72
+        <div><el-button type="primary" @click="exportList">导出</el-button></div>
73
         <el-table :data="DialysisData" style="width: 100%" border :row-style="{ color: '#303133' }" 
73
         <el-table :data="DialysisData" style="width: 100%" border :row-style="{ color: '#303133' }" 
74
         :header-cell-style="{backgroundColor: 'rgb(245, 247, 250)',color: '#606266'}"
74
         :header-cell-style="{backgroundColor: 'rgb(245, 247, 250)',color: '#606266'}"
75
         >
75
         >
100
           @size-change="handleSizeChange"
100
           @size-change="handleSizeChange"
101
           @current-change="handleCurrentChange"
101
           @current-change="handleCurrentChange"
102
           :current-page="listQuery.page"
102
           :current-page="listQuery.page"
103
-          :page-sizes="[20, 40, 60, 80, 100]"
103
+          :page-sizes="[20, 40, 60, 80, 100,200,300,500,1000]"
104
           :page-size="10"
104
           :page-size="10"
105
           background
105
           background
106
           style="margin-top:20px;"
106
           style="margin-top:20px;"
280
             }
280
             }
281
           })
281
           })
282
           let list = Object.values(dataInfo)
282
           let list = Object.values(dataInfo)
283
-          // console.log("arr",list)    
283
+             
284
           list.map(item => {
284
           list.map(item => {
285
             for (let i = 0; i < prescriptionList.length; i++) {
285
             for (let i = 0; i < prescriptionList.length; i++) {
286
               if (item.patient_id === prescriptionList[i].patient_id) {
286
               if (item.patient_id === prescriptionList[i].patient_id) {
462
         var strs = str.substring(0, str.length - 1)
462
         var strs = str.substring(0, str.length - 1)
463
        
463
        
464
         return strs
464
         return strs
465
-      }
465
+      },
466
+      exportList(){
467
+        console.log("DialysisData",this.DialysisData)
468
+       for(let i=0;i<this.DialysisData.length;i++){
469
+         this.DialysisData[i].index = i+1
470
+         this.DialysisData[i].dialysis_mode = this.getModeIdCount(this.DialysisData[i].patient_id)
471
+         this.DialysisData[i].age = this.getAge(this.DialysisData[i].id_card_no)
472
+       }
473
+       import('@/vendor/Export2Excel').then(excel => {
474
+        const tHeader = ['序号','姓名', '年龄', '透析号','透析模式','透析总次数']
475
+        const filterVal = ['index','name', 'age', 'dialysis_no','dialysis_mode','total_dialysis']
476
+        
477
+        const data = this.formatJson(filterVal, this.DialysisData)
478
+       
479
+        excel.export_json_to_excel({
480
+           header: tHeader,
481
+           data,
482
+           filename: '透析详情'
483
+         })
484
+          this.downloadLoading = false
485
+        })
486
+      },
487
+      formatJson(filterVal, jsonData) {
488
+        return jsonData.map(v =>
489
+          filterVal.map(j => {
490
+            if (j === "timestamp") {
491
+              return parseTime(v[j]);
492
+            } else {
493
+              return v[j];
494
+            }
495
+          })
496
+       );
497
+     }
498
+
466
   },
499
   },
467
   created(){
500
   created(){
468
     var nowDate = new Date();
501
     var nowDate = new Date();

+ 2 - 2
src/xt_pages/stock/detail/cancelStockDetail.vue Wyświetl plik

45
           v-model="start_time"
45
           v-model="start_time"
46
           prefix-icon="el-icon-date"
46
           prefix-icon="el-icon-date"
47
           :editable="false"
47
           :editable="false"
48
-          style="width: 196px;"
48
+          style="width: 150px;"
49
           type="date"
49
           type="date"
50
           placeholder="选择日期时间"
50
           placeholder="选择日期时间"
51
           align="right"
51
           align="right"
59
           v-model="end_time"
59
           v-model="end_time"
60
           prefix-icon="el-icon-date"
60
           prefix-icon="el-icon-date"
61
           :editable="false"
61
           :editable="false"
62
-          style="width: 196px;"
62
+          style="width: 150px;"
63
           type="date"
63
           type="date"
64
           placeholder="选择日期时间"
64
           placeholder="选择日期时间"
65
           align="right"
65
           align="right"

+ 7 - 2
src/xt_pages/stock/drugs/drugDamaged.vue Wyświetl plik

293
           end_time:this.end_time,
293
           end_time:this.end_time,
294
           keyword:this.searchKey,
294
           keyword:this.searchKey,
295
         }
295
         }
296
+        console.log("博阿孙param232332232323",params)
296
         getDrugDamageList(params).then(response=>{
297
         getDrugDamageList(params).then(response=>{
297
            if(response.data.state == 1){
298
            if(response.data.state == 1){
298
              this.tableList = response.data.data.list
299
              this.tableList = response.data.data.list
314
         return user_name
315
         return user_name
315
      },
316
      },
316
      changeStartTime(){
317
      changeStartTime(){
317
-
318
+       this.start_time = this.getTime(this.start_time)
319
+       this.getlist()
318
      },
320
      },
319
      changeEndTime(){
321
      changeEndTime(){
320
-
322
+       this.end_time = this.getTime(this.end_time)
323
+       this.getlist()
321
      },
324
      },
322
      getTotalCount(drugid,max_unit,min_unit,min_number){
325
      getTotalCount(drugid,max_unit,min_unit,min_number){
323
         
326
         
423
      getDrugDamageRadio(count){
426
      getDrugDamageRadio(count){
424
 
427
 
425
        var total_count =  this.getDamagedCountOne(this.total_count)
428
        var total_count =  this.getDamagedCountOne(this.total_count)
429
+       console.log("count888888888888",count)
430
+       console.log("hh23232数据列表23322323",total_count)
426
        var all_count = 0
431
        var all_count = 0
427
        all_count =  total_count * this.min_number
432
        all_count =  total_count * this.min_number
428
       
433
       

+ 1 - 1
src/xt_pages/stock/drugs/drugStockInOrder.vue Wyświetl plik

212
         </el-table-column>
212
         </el-table-column>
213
         <el-table-column label="生产厂家" align="center">
213
         <el-table-column label="生产厂家" align="center">
214
           <template slot-scope="scope">
214
           <template slot-scope="scope">
215
-            {{getManufacturer(scope.row.drug.manufacturer)}}
215
+            {{getManufacturer(scope.row.manufacturer)}}
216
           </template>
216
           </template>
217
         </el-table-column>
217
         </el-table-column>
218
        <el-table-column label="生产日期" align="center">
218
        <el-table-column label="生产日期" align="center">

+ 8 - 3
src/xt_pages/stock/drugs/inventory.vue Wyświetl plik

64
               </el-table-column>
64
               </el-table-column>
65
               <el-table-column prop="name" label="盘点前数量" width="180"  align="center">
65
               <el-table-column prop="name" label="盘点前数量" width="180"  align="center">
66
                 <template slot-scope="scope">
66
                 <template slot-scope="scope">
67
-                    <span v-if="scope.row.stock_max_number > 0"><el-input style="width:50px" v-model="scope.row.stock_max_number" :disabled="true"></el-input>{{scope.row.max_unit}}</span> 
68
-                    <span v-if="scope.row.stock_min_number > 0"><el-input style="width:50px" v-model="scope.row.stock_min_number" :disabled="true"></el-input>{{scope.row.min_unit}}</span> 
67
+                    <span><el-input style="width:50px" v-model="scope.row.stock_max_number" :disabled="true"></el-input>{{scope.row.max_unit}}</span> 
68
+                    <span><el-input style="width:50px" v-model="scope.row.stock_min_number" :disabled="true"></el-input>{{scope.row.min_unit}}</span> 
69
                   </template> 
69
                   </template> 
70
               </el-table-column>
70
               </el-table-column>
71
 
71
 
230
             if (keyword != undefined) {
230
             if (keyword != undefined) {
231
                 key = keyword
231
                 key = keyword
232
             }
232
             }
233
-            postSearchDrugWarehouseList(key).then(response => {
233
+            console.log("keyword23323232323223",keyword)
234
+             var params = {
235
+                keyword:key,
236
+             }
237
+            postSearchDrugWarehouseList(params).then(response => {
234
             if (response.data.state == 1) {
238
             if (response.data.state == 1) {
235
             
239
             
236
                 var list = response.data.data.list
240
                 var list = response.data.data.list
325
                       }
329
                       }
326
                    }
330
                    }
327
                  }
331
                  }
332
+                console.log("newlist23233223323222323232332",newList)
328
                 this.tableData = newList
333
                 this.tableData = newList
329
                 this.showSearch = false
334
                 this.showSearch = false
330
                 this.showTable = true
335
                 this.showTable = true

+ 2 - 0
src/xt_pages/stock/drugs/inventoryDetails.vue Wyświetl plik

81
                 <template slot-scope="scope">
81
                 <template slot-scope="scope">
82
                   <span v-if="scope.row.stock_max_number>0">{{scope.row.stock_max_number}}{{scope.row.warehousing_unit}} </span>  
82
                   <span v-if="scope.row.stock_max_number>0">{{scope.row.stock_max_number}}{{scope.row.warehousing_unit}} </span>  
83
                   <span v-if="scope.row.stock_min_number>0">{{scope.row.stock_min_number}}{{scope.row.min_unit}}</span>
83
                   <span v-if="scope.row.stock_min_number>0">{{scope.row.stock_min_number}}{{scope.row.min_unit}}</span>
84
+                  <span v-if="scope.row.stock_max_number == 0 && scope.row.stock_min_number == 0">0</span>
84
                 </template> 
85
                 </template> 
85
             </el-table-column>
86
             </el-table-column>
86
 
87
 
88
                 <template slot-scope="scope">
89
                 <template slot-scope="scope">
89
                    <span v-if="scope.row.last_stock_max_number > 0">{{scope.row.last_stock_max_number}}{{scope.row.warehousing_unit}}</span>  
90
                    <span v-if="scope.row.last_stock_max_number > 0">{{scope.row.last_stock_max_number}}{{scope.row.warehousing_unit}}</span>  
90
                    <span v-if="scope.row.last_stock_min_number>0">{{scope.row.last_stock_min_number}}{{scope.row.min_unit}}</span>
91
                    <span v-if="scope.row.last_stock_min_number>0">{{scope.row.last_stock_min_number}}{{scope.row.min_unit}}</span>
92
+                   <span v-if="scope.row.last_stock_max_number == 0 && scope.row.last_stock_min_number == 0">0</span>
91
                 </template> 
93
                 </template> 
92
             </el-table-column>
94
             </el-table-column>
93
             <el-table-column prop="name" label="盘点类型" width="120"  align="center">
95
             <el-table-column prop="name" label="盘点类型" width="120"  align="center">

+ 3 - 3
src/xt_pages/stock/drugs/query.vue Wyświetl plik

112
         </el-table-column>
112
         </el-table-column>
113
         <el-table-column prop="drug_name" label="出库数量" align="center">
113
         <el-table-column prop="drug_name" label="出库数量" align="center">
114
            <template slot-scope="scope">
114
            <template slot-scope="scope">
115
-             <span v-if="org_id == 9671 || org_id == 9675 || org_id == 4 || org_id == 3877">
115
+             <span v-if="org_id == 9671 || org_id == 9675 || org_id == 4 || org_id == 3877 || org_id == 10138 || org_id ==10028 || org_id == 10243 || org_id == 10088">
116
                 <span> 
116
                 <span> 
117
                  {{getOutFlush(scope.row.drug_warehouse_info,scope.row.max_unit,scope.row.min_unit,scope.row.min_number,scope.row.drug_cancel_stock_info)}}
117
                  {{getOutFlush(scope.row.drug_warehouse_info,scope.row.max_unit,scope.row.min_unit,scope.row.min_number,scope.row.drug_cancel_stock_info)}}
118
                 </span> 
118
                 </span> 
123
         <el-table-column prop="drug_name" label="剩余库存量" align="center">
123
         <el-table-column prop="drug_name" label="剩余库存量" align="center">
124
            <template slot-scope="scope">
124
            <template slot-scope="scope">
125
             <div v-if="getWarehoseInfo(scope.row.drug_warehouse_info)!=0">
125
             <div v-if="getWarehoseInfo(scope.row.drug_warehouse_info)!=0">
126
-               <span v-if="org_id == 9671 || org_id == 9675 || org_id == 4 || org_id == 3877">
127
-                {{ getOverFlushInfo(scope.row.drug_warehouse_info,scope.row.max_unit,scope.row.min_unit,scope.row.min_number)}}
126
+               <span v-if="org_id == 9671 || org_id == 9675 || org_id == 4 || org_id == 3877 || org_id == 10138 || org_id == 10028 || org_id == 10243 || org_id == 10088">
127
+                {{ getOverFlushInfo(scope.row.drug_warehouse_info,scope.row.max_unit,scope.row.min_unit,scope.row.min_number)?getOverFlushInfo(scope.row.drug_warehouse_info,scope.row.max_unit,scope.row.min_unit,scope.row.min_number):0}}
128
                </span>
128
                </span>
129
                
129
                
130
                <span v-else>{{getWarehoseInfo(scope.row.drug_warehouse_info) - getOutCount(scope.row.id) - getAutoCount(scope.row.id)}}{{scope.row.max_unit}} </span>
130
                <span v-else>{{getWarehoseInfo(scope.row.drug_warehouse_info) - getOutCount(scope.row.id) - getAutoCount(scope.row.id)}}{{scope.row.max_unit}} </span>

+ 7 - 3
src/xt_pages/stock/inventory.vue Wyświetl plik

26
           <div style="font-size:16px">{{item.good_name}}</div> &nbsp;&nbsp;{{item.specification_name}} <el-button type="warning" icon="el-icon-remove" style="margin-left:20px;" @click="toMove(item,index)">移除</el-button>
26
           <div style="font-size:16px">{{item.good_name}}</div> &nbsp;&nbsp;{{item.specification_name}} <el-button type="warning" icon="el-icon-remove" style="margin-left:20px;" @click="toMove(item,index)">移除</el-button>
27
         </template>
27
         </template>
28
         <el-table :data="item.child" border :header-cell-style="{ backgroundColor: 'rgb(245, 247, 250)' }" style="width:100%">
28
         <el-table :data="item.child" border :header-cell-style="{ backgroundColor: 'rgb(245, 247, 250)' }" style="width:100%">
29
-              <el-table-column prop="date" label="药品名称" width="150" align="center">
29
+              <el-table-column prop="date" label="耗材名称" width="150" align="center">
30
                 <template slot-scope="scope">
30
                 <template slot-scope="scope">
31
                   {{scope.row.good_name}}
31
                   {{scope.row.good_name}}
32
                 </template>
32
                 </template>
64
               </el-table-column>
64
               </el-table-column>
65
               <el-table-column prop="name" label="盘点前数量" width="100"  align="center">
65
               <el-table-column prop="name" label="盘点前数量" width="100"  align="center">
66
                 <template slot-scope="scope">
66
                 <template slot-scope="scope">
67
-                    <span v-if="scope.row.stock_count > 0"><el-input style="width:80px" v-model="scope.row.stock_count" :disabled="true"></el-input>{{scope.row.max_unit}}</span> 
67
+                    <span><el-input style="width:80px" v-model="scope.row.stock_count" :disabled="true"></el-input>{{scope.row.max_unit}}</span> 
68
                   </template> 
68
                   </template> 
69
               </el-table-column>
69
               </el-table-column>
70
 
70
 
202
             if (keyword != undefined) {
202
             if (keyword != undefined) {
203
                 key = keyword
203
                 key = keyword
204
             }
204
             }
205
-            postSearchGoodWarehouseList(key).then(response => {
205
+            var params = {
206
+              keyword:key
207
+            }
208
+            postSearchGoodWarehouseList(params).then(response => {
206
             if (response.data.state == 1) {
209
             if (response.data.state == 1) {
207
             
210
             
208
                 var list = response.data.data.list
211
                 var list = response.data.data.list
417
          if(response.data.state == 1){
420
          if(response.data.state == 1){
418
            var list = response.data.data.list
421
            var list = response.data.data.list
419
            for(let i=0;i<list.length;i++){
422
            for(let i=0;i<list.length;i++){
423
+              list[i].type = 0
420
               list[i].good_name = list[i].GoodInfo.good_name
424
               list[i].good_name = list[i].GoodInfo.good_name
421
               list[i].specification_name = list[i].GoodInfo.specification_name
425
               list[i].specification_name = list[i].GoodInfo.specification_name
422
               for(let j=0;j<this.manufacturerList.length;j++){
426
               for(let j=0;j<this.manufacturerList.length;j++){

+ 2 - 2
src/xt_pages/stock/inventoryDetails.vue Wyświetl plik

42
            
42
            
43
             <el-table-column prop="name" label="盘点前数量" width="100" align="center">
43
             <el-table-column prop="name" label="盘点前数量" width="100" align="center">
44
               <template slot-scope="scope">
44
               <template slot-scope="scope">
45
-                 <span v-if="scope.row.stock_count >0 ">{{scope.row.stock_count}}</span>
45
+                 <span>{{scope.row.stock_count?scope.row.stock_count:0}}</span>
46
                 </template>
46
                 </template>
47
             </el-table-column>
47
             </el-table-column>
48
             <el-table-column prop="name" label="盘点后数量" width="100" align="center">
48
             <el-table-column prop="name" label="盘点后数量" width="100" align="center">
49
               <template slot-scope="scope">
49
               <template slot-scope="scope">
50
-                <span v-if="scope.row.last_stock_count>0">{{scope.row.last_stock_count}}</span> 
50
+                <span>{{scope.row.last_stock_count?scope.row.last_stock_count:0}}</span> 
51
              </template>
51
              </template>
52
             </el-table-column>
52
             </el-table-column>
53
            
53
            

+ 1 - 1
src/xt_pages/stock/stockInOrder.vue Wyświetl plik

215
         </el-table-column>
215
         </el-table-column>
216
         <el-table-column label="生产厂家" align="center">
216
         <el-table-column label="生产厂家" align="center">
217
           <template slot-scope="scope">
217
           <template slot-scope="scope">
218
-            {{ getManufactuerName(scope.row.GoodInfo.manufacturer)}}
218
+            {{ getManufactuerName(scope.row.manufacturer)}}
219
           </template>
219
           </template>
220
         </el-table-column>
220
         </el-table-column>
221
         <el-table-column label="生产日期" align="center">
221
         <el-table-column label="生产日期" align="center">

+ 1 - 1
src/xt_pages/stock/stockInventory.vue Wyświetl plik

40
             crumbs: [
40
             crumbs: [
41
                 { path: false, name: "库存管理" },
41
                 { path: false, name: "库存管理" },
42
                 { path: false, name: "耗材管理" },
42
                 { path: false, name: "耗材管理" },
43
-                { path: false, name: "耗材报损" }
43
+                { path: false, name: "耗材盘点" }
44
             ],
44
             ],
45
             activeName:'first'
45
             activeName:'first'
46
         }
46
         }

+ 2 - 2
src/xt_pages/stock/stockQuery.vue Wyświetl plik

108
        </el-table-column>
108
        </el-table-column>
109
        <el-table-column label="出库数量" align="center">
109
        <el-table-column label="出库数量" align="center">
110
          <template slot-scope="scope">
110
          <template slot-scope="scope">
111
-          <span v-if="org_id == 9671 || org_id == 10138 || org_id == 10028 || org_id == 9675 || org_id == 4 || org_id == 3877">
111
+          <span v-if="org_id == 9671 || org_id == 10138 || org_id == 10028 || org_id == 9675 || org_id == 4 || org_id == 3877 || org_id == 10243 || org_id == 10088">
112
             <span>
112
             <span>
113
               {{getWareInfo(scope.row.xt_warehouse_info) - getOverFlushInfo(scope.row.xt_warehouse_info) + getCancelSotckInfo(scope.row.cancel_stock_info) }}
113
               {{getWareInfo(scope.row.xt_warehouse_info) - getOverFlushInfo(scope.row.xt_warehouse_info) + getCancelSotckInfo(scope.row.cancel_stock_info) }}
114
             </span>
114
             </span>
119
 
119
 
120
        <el-table-column label="剩余库存量" align="center">
120
        <el-table-column label="剩余库存量" align="center">
121
          <template slot-scope="scope">
121
          <template slot-scope="scope">
122
-          <span v-if="org_id == 9671 || org_id == 10138 || org_id == 10028 || org_id == 9675 || org_id == 4 || org_id == 3877">{{getOverFlushInfo(scope.row.xt_warehouse_info)}}</span>
122
+          <span v-if="org_id == 9671 || org_id == 10138 || org_id == 10028 || org_id == 9675 || org_id == 4 || org_id == 3877 || org_id == 10243 || org_id == 10088">{{getOverFlushInfo(scope.row.xt_warehouse_info)}}</span>
123
           <span v-else>{{getWareInfo(scope.row.xt_warehouse_info) - getAutoCount(scope.row.id) - getOutCount(scope.row.id) + getCancelCount(scope.row.id) }}</span> 
123
           <span v-else>{{getWareInfo(scope.row.xt_warehouse_info) - getAutoCount(scope.row.id) - getOutCount(scope.row.id) + getCancelCount(scope.row.id) }}</span> 
124
          </template>
124
          </template>
125
        </el-table-column>
125
        </el-table-column>

+ 1 - 1
src/xt_pages/user/dialysisSolution.vue Wyświetl plik

438
             </el-form-item>
438
             </el-form-item>
439
           </el-col>
439
           </el-col>
440
 
440
 
441
-          <el-col :span="8" v-if="isShows('灌流器') && (addPlan.mode_id == 2 || addPlan.mode_id == 12 || addPlan.mode_id == 5)">
441
+          <el-col :span="8" v-if="isShows('灌流器') && (addPlan.mode_id == 2 || addPlan.mode_id == 3 || addPlan.mode_id == 12 || addPlan.mode_id == 5)">
442
              <el-form-item label="灌流器:">
442
              <el-form-item label="灌流器:">
443
                <el-input v-model="dialysis_irrigation" @focus="showInnerDialog('7')"></el-input>
443
                <el-input v-model="dialysis_irrigation" @focus="showInnerDialog('7')"></el-input>
444
              </el-form-item>
444
              </el-form-item>

+ 17 - 44
src/xt_pages/user/doctorAdvice.vue Wyświetl plik

1491
           <ul>
1491
           <ul>
1492
             <li>
1492
             <li>
1493
               <span class="name">姓名:</span>
1493
               <span class="name">姓名:</span>
1494
-              <!-- <input type="text" class="InputBox" v-model="currentPatient.name"> -->
1495
               <span class="InputBox">&nbsp;{{ currentPatient.name }}</span>
1494
               <span class="InputBox">&nbsp;{{ currentPatient.name }}</span>
1496
             </li>
1495
             </li>
1497
             <li>
1496
             <li>
1498
               <span class="name">性别:</span>
1497
               <span class="name">性别:</span>
1499
-              <!-- <input type="text" class="InputBox"> -->
1500
               <span class="InputBox"
1498
               <span class="InputBox"
1501
                 >&nbsp;{{ tranSex(currentPatient.gender) }}</span
1499
                 >&nbsp;{{ tranSex(currentPatient.gender) }}</span
1502
               >
1500
               >
1503
             </li>
1501
             </li>
1504
             <li>
1502
             <li>
1505
               <span class="name">年龄:</span>
1503
               <span class="name">年龄:</span>
1506
-              <!-- <input type="text" class="InputBox"> -->
1507
               <span class="InputBox"
1504
               <span class="InputBox"
1508
                 >&nbsp;{{ tranAge(currentPatient.birthday) }}岁</span
1505
                 >&nbsp;{{ tranAge(currentPatient.birthday) }}岁</span
1509
               >
1506
               >
1510
             </li>
1507
             </li>
1511
-            <li>
1508
+            <li v-if="currentPatient.user_org_id!=10090">
1512
               <span class="name">科别:</span>
1509
               <span class="name">科别:</span>
1513
-              <!-- <input type="text" class="InputBox"> -->
1510
+             
1514
               <span class="InputBox">&nbsp;&nbsp;&nbsp;&nbsp;</span>
1511
               <span class="InputBox">&nbsp;&nbsp;&nbsp;&nbsp;</span>
1515
             </li>
1512
             </li>
1516
             <li>
1513
             <li>
1517
               <span class="name">透析号:</span>
1514
               <span class="name">透析号:</span>
1518
-              <!-- <input type="text" class="InputBox"> -->
1519
               <span class="InputBox"
1515
               <span class="InputBox"
1520
                 >&nbsp;&nbsp;&nbsp;{{
1516
                 >&nbsp;&nbsp;&nbsp;{{
1521
                   currentPatient.dialysis_no
1517
                   currentPatient.dialysis_no
1570
                 <span v-if="advice.advice_desc"
1566
                 <span v-if="advice.advice_desc"
1571
                   >{{ advice.advice_desc }}{{ advice.drug_spec_unit }}</span
1567
                   >{{ advice.advice_desc }}{{ advice.drug_spec_unit }}</span
1572
                 >
1568
                 >
1573
-                <!-- <span v-if="advice.drug_spec">{{advice.drug_spec}}{{advice.drug_spec_unit}}</span> -->
1574
                 <span v-if="advice.prescribing_number"
1569
                 <span v-if="advice.prescribing_number"
1575
                   >*{{ advice.prescribing_number
1570
                   >*{{ advice.prescribing_number
1576
                   }}{{ advice.prescribing_number_unit }}</span
1571
                   }}{{ advice.prescribing_number_unit }}</span
1585
 
1580
 
1586
               <td>
1581
               <td>
1587
                 <div>
1582
                 <div>
1588
-                  <span v-if="setAdminUserES(advice.advice_doctor) == ''">{{
1589
-                    getXuserName(advice.advice_doctor)
1590
-                  }}</span>
1583
+                  <span v-if="setAdminUserES(advice.advice_doctor) == ''">{{getXuserName(advice.advice_doctor)}}</span>
1591
                   <img
1584
                   <img
1592
                     class="es-img"
1585
                     class="es-img"
1593
                     :src="setAdminUserES(advice.advice_doctor)"
1586
                     :src="setAdminUserES(advice.advice_doctor)"
1600
 
1593
 
1601
               <td></td>
1594
               <td></td>
1602
               <td>
1595
               <td>
1603
-                <span
1604
-                  v-if="
1605
-                    advice.stop_state == 1 && isShowCQStartTime(index, advice)
1606
-                  "
1607
-                  >{{ advice.stop_time | parseTime("{y}-{m}-{d}") }}</span
1608
-                >
1596
+                <span v-if="advice.stop_state == 1">{{ advice.stop_time | parseTime("{y}-{m}-{d}") }}</span>
1609
               </td>
1597
               </td>
1610
               <td>
1598
               <td>
1611
-                <span
1612
-                  v-if="
1613
-                    advice.stop_state == 1 && isShowCQStartTime(index, advice)
1614
-                  "
1615
-                  >{{ advice.stop_time | parseTime("{h}:{i}") }}</span
1616
-                >
1599
+                <span v-if="advice.stop_state == 1">{{ advice.stop_time | parseTime("{h}:{i}") }}</span>
1617
               </td>
1600
               </td>
1618
               <td>
1601
               <td>
1619
-                <div v-if="isShowCQStartTime(index, advice)">
1620
-                  <span v-if="setAdminUserES(advice.stop_doctor) == ''">{{
1621
-                    getXuserName(advice.stop_doctor)
1622
-                  }}</span>
1602
+                <div><span v-if="setAdminUserES(advice.stop_doctor) == ''">{{getXuserName(advice.stop_doctor)}}</span>
1623
                   <img
1603
                   <img
1624
                     class="es-img"
1604
                     class="es-img"
1625
                     :src="setAdminUserES(advice.stop_doctor)"
1605
                     :src="setAdminUserES(advice.stop_doctor)"
1643
           <ul>
1623
           <ul>
1644
             <li>
1624
             <li>
1645
               <span class="name" style="width:50px;">姓名:</span>
1625
               <span class="name" style="width:50px;">姓名:</span>
1646
-              <!-- <input type="text" class="InputBox" v-model="currentPatient.name"> -->
1647
               <span class="InputBox">&nbsp;{{ currentPatient.name }}</span>
1626
               <span class="InputBox">&nbsp;{{ currentPatient.name }}</span>
1648
             </li>
1627
             </li>
1649
             <li>
1628
             <li>
1650
               <span class="name" style="width:50px;">性别:</span>
1629
               <span class="name" style="width:50px;">性别:</span>
1651
-              <!-- <input type="text" class="InputBox"> -->
1652
               <span class="InputBox"
1630
               <span class="InputBox"
1653
                 >&nbsp;{{ tranSex(currentPatient.gender) }}</span
1631
                 >&nbsp;{{ tranSex(currentPatient.gender) }}</span
1654
               >
1632
               >
1655
             </li>
1633
             </li>
1656
             <li>
1634
             <li>
1657
               <span class="name" style="width:50px;">年龄:</span>
1635
               <span class="name" style="width:50px;">年龄:</span>
1658
-              <!-- <input type="text" class="InputBox"> -->
1659
               <span class="InputBox"
1636
               <span class="InputBox"
1660
                 >&nbsp;{{ tranAge(currentPatient.birthday) }}岁</span
1637
                 >&nbsp;{{ tranAge(currentPatient.birthday) }}岁</span
1661
               >
1638
               >
1662
             </li>
1639
             </li>
1663
-            <li>
1640
+            <li v-if="currentPatient.user_org_id!=10090">
1664
               <span class="name" style="width:30px;">科:</span>
1641
               <span class="name" style="width:30px;">科:</span>
1665
-              <!-- <input type="text" class="InputBox"> -->
1642
+             
1666
               <span class="InputBox">&nbsp;&nbsp;&nbsp;&nbsp;</span>
1643
               <span class="InputBox">&nbsp;&nbsp;&nbsp;&nbsp;</span>
1667
             </li>
1644
             </li>
1668
-            <li>
1645
+            <li v-if="currentPatient.user_org_id!=10090">
1669
               <span class="name" style="width:30px;">区:</span>
1646
               <span class="name" style="width:30px;">区:</span>
1670
-              <!-- <input type="text" class="InputBox"> -->
1647
+             
1671
               <span class="InputBox">&nbsp;&nbsp;&nbsp;&nbsp;</span>
1648
               <span class="InputBox">&nbsp;&nbsp;&nbsp;&nbsp;</span>
1672
             </li>
1649
             </li>
1673
-            <li>
1650
+            <li v-if="currentPatient.user_org_id!=10090">
1674
               <span class="name" style="width:30px;">房:</span>
1651
               <span class="name" style="width:30px;">房:</span>
1675
-              <!-- <input type="text" class="InputBox"> -->
1652
+              
1676
               <span class="InputBox">&nbsp;&nbsp;&nbsp;&nbsp;</span>
1653
               <span class="InputBox">&nbsp;&nbsp;&nbsp;&nbsp;</span>
1677
             </li>
1654
             </li>
1678
-            <li>
1655
+            <li v-if="currentPatient.user_org_id!=10090">
1679
               <span class="name" style="width:30px;">床:</span>
1656
               <span class="name" style="width:30px;">床:</span>
1680
-              <!-- <input type="text" class="InputBox"> -->
1681
               <span class="InputBox">&nbsp;&nbsp;&nbsp;&nbsp;</span>
1657
               <span class="InputBox">&nbsp;&nbsp;&nbsp;&nbsp;</span>
1682
             </li>
1658
             </li>
1683
             <li>
1659
             <li>
1685
               <span class="InputBox"
1661
               <span class="InputBox"
1686
                 >&nbsp;{{ currentPatient.dialysis_no }}&nbsp;&nbsp;&nbsp;</span
1662
                 >&nbsp;{{ currentPatient.dialysis_no }}&nbsp;&nbsp;&nbsp;</span
1687
               >
1663
               >
1688
-
1689
-              <!-- <input type="text" class="InputBox"> -->
1690
             </li>
1664
             </li>
1691
           </ul>
1665
           </ul>
1692
         </div>
1666
         </div>
1848
               </td>
1822
               </td>
1849
 
1823
 
1850
               <td>
1824
               <td>
1851
-                <span v-if="advice.stop_state == 1 && advice.parent_id == 0">{{
1825
+                <span v-if="advice.parent_id == 0">{{
1852
                   advice.stop_time | parseTime("{y}-{m}-{d} {h}:{i}")
1826
                   advice.stop_time | parseTime("{y}-{m}-{d} {h}:{i}")
1853
                 }}</span>
1827
                 }}</span>
1854
                 <span v-else></span>
1828
                 <span v-else></span>
1855
               </td>
1829
               </td>
1856
 
1830
 
1857
               <td>
1831
               <td>
1858
-                <span v-if="advice.stop_state == 1 && advice.parent_id == 0">{{
1832
+                <span v-if="advice.parent_id == 0">{{
1859
                   getXuserName(advice.stop_doctor)
1833
                   getXuserName(advice.stop_doctor)
1860
                 }}</span>
1834
                 }}</span>
1861
                 <span v-else></span>
1835
                 <span v-else></span>
2194
       // console.log("column", column);
2168
       // console.log("column", column);
2195
     },
2169
     },
2196
     onTranPatient: function(tranPatient) {
2170
     onTranPatient: function(tranPatient) {
2171
+      console.log("患者信息",tranPatient)
2197
       this.currentPatient = tranPatient;
2172
       this.currentPatient = tranPatient;
2198
     },
2173
     },
2199
     adviceNameShow({ row, column, rowIndex, columnIndex }) {
2174
     adviceNameShow({ row, column, rowIndex, columnIndex }) {
3389
       getDoctorAdviceList(this.listQuery).then(response => {
3364
       getDoctorAdviceList(this.listQuery).then(response => {
3390
         if (response.data.state == 1) {
3365
         if (response.data.state == 1) {
3391
           this.adviceTableData = response.data.data.advices;
3366
           this.adviceTableData = response.data.data.advices;
3392
-          //console.log("数据是什么", this.adviceTableData);
3367
+          console.log("数据是什么", this.adviceTableData);
3393
           var advice = response.data.data.advices;
3368
           var advice = response.data.data.advices;
3394
           var one = response.data.data.advicetwo;
3369
           var one = response.data.data.advicetwo;
3395
           let dataInfo = {};
3370
           let dataInfo = {};
4710
     this.unitsOption = getDataConfig("hemodialysis", "units");
4685
     this.unitsOption = getDataConfig("hemodialysis", "units");
4711
     //查询该病人是否有排班记录
4686
     //查询该病人是否有排班记录
4712
     this.getPatientSchedules(id);
4687
     this.getPatientSchedules(id);
4713
-
4714
-
4715
     this.getSelfMedicalList(id)
4688
     this.getSelfMedicalList(id)
4716
   }
4689
   }
4717
 };
4690
 };