Ver código fonte

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

see999 3 anos atrás
pai
commit
f9749106fe

+ 178 - 191
src/api/advice.js Ver arquivo

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

@@ -67,7 +67,8 @@
67 67
 
68 68
         <li v-if="isShow('体液过多症状')">
69 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 72
         </li>
72 73
 
73 74
         <li v-if="isShow('其他感染情况')">

+ 28 - 57
src/xt_pages/dialysis/details/dialog/assessmentBeforeDislysisDialog.vue Ver arquivo

@@ -67,8 +67,6 @@
67 67
           </el-col>
68 68
 
69 69
 
70
-
71
-
72 70
           <el-col :span="8">
73 71
             <el-form-item label="体温(℃):" v-if="isShow('体温')">
74 72
               <el-input type="number" v-model="assessmentBeforeDislysis.temperature"></el-input>
@@ -97,7 +95,7 @@
97 95
               <el-input type="number" v-model="assessmentBeforeDislysis.pulse_frequency"></el-input>
98 96
             </el-form-item>
99 97
           </el-col>
100
-
98
+<!-- 
101 99
           <el-col :span="8">
102 100
             <el-form-item label="体液过多症状: " v-if="isShow('体液过多症状')">
103 101
               <el-select v-model="assessmentBeforeDislysis.humor_excessive_symptom">
@@ -106,6 +104,13 @@
106 104
                            :key="item.id"></el-option>
107 105
               </el-select>
108 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 114
           </el-col>
110 115
 
111 116
           <el-col :span="8">
@@ -402,34 +407,6 @@
402 407
             </el-form-item>
403 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 410
           <el-col :span="8">
434 411
 
435 412
             <el-form-item label="位置: " v-if="isShow('位置')">
@@ -443,18 +420,6 @@
443 420
             </el-form-item>
444 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 423
           <el-col :span="8" v-if="isShow('其他中心静脉导管')">
459 424
             <el-form-item label="其他中心静脉导管:">
460 425
               <div>
@@ -462,13 +427,7 @@
462 427
               </div>
463 428
             </el-form-item>
464 429
           </el-col>
465
-          <!-- </el-row>
466
-
467
-
468
-          <el-row :gutter="20"> -->
469
-
470
-
471
-
430
+         
472 431
           <el-col :span="8">
473 432
             <el-form-item label="感染: " v-if="isShow('感染')">
474 433
               <el-select v-model="assessmentBeforeDislysis.is_infect">
@@ -1089,6 +1048,16 @@
1089 1048
             this.InnerDialogProps.isShowTextArea = false
1090 1049
 
1091 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,11 +1122,15 @@
1153 1122
           case 'catheter_maintenance':
1154 1123
            this.assessmentBeforeDislysis.catheter_maintenance = val.value.join(',')
1155 1124
            break
1125
+          case 'humor_excessive_symptom':
1126
+           this.assessmentBeforeDislysis.humor_excessive_symptom = val.value.join(',')
1127
+           break  
1156 1128
         }
1157 1129
       },
1158 1130
       innerDialogCancle: function() {
1159 1131
         this.InnerDialogProps.visibility = false
1160
-      }, handleComfirm: function() {
1132
+      }, 
1133
+      handleComfirm: function() {
1161 1134
 
1162 1135
         var arr = this.assessmentBeforeDislysis
1163 1136
         for (let i = 0; i < this.machineType.length; i++) {
@@ -1165,15 +1138,11 @@
1165 1138
             arr.machine_type = this.machineType[i].name
1166 1139
           }
1167 1140
         }
1168
-        // console.log('arr', arr)
1169 1141
         const ParamsQuery = arr
1170
-        // console.log('paramsquery', ParamsQuery)
1171 1142
         ParamsQuery['patient'] = this.patient.id
1172 1143
         ParamsQuery['record_date'] = this.record_date
1173 1144
         ParamsQuery['mode'] = '1'
1174 1145
 
1175
-        // console.log(this.predialysis_evaluation)
1176
-
1177 1146
         if (this.predialysis_evaluation.id == 0) {
1178 1147
           ParamsQuery['mode'] = '1'
1179 1148
         } else {
@@ -1226,7 +1195,8 @@
1226 1195
         }
1227 1196
         this.dialogFormVisible = true
1228 1197
         this.isVisibility = false
1229
-      }, submitDryWeight() {
1198
+      },
1199
+     submitDryWeight() {
1230 1200
         const params = {
1231 1201
           id: this.patient.id,
1232 1202
           dry_weight: this.weight_adjust.weight,
@@ -1245,7 +1215,8 @@
1245 1215
             this.isVisibility = true
1246 1216
           }
1247 1217
         })
1248
-      }, cancleDryWeight() {
1218
+      },
1219
+     cancleDryWeight() {
1249 1220
         this.dialogFormVisible = false
1250 1221
         this.isVisibility = true
1251 1222
       },

+ 46 - 7
src/xt_pages/dialysis/dialysisDoctorAdvice.vue Ver arquivo

@@ -23,10 +23,23 @@
23 23
     </div>
24 24
     </div>
25 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 43
       <div class="cell clearfix">
31 44
         <label class="title">
32 45
           <span class="name">日期查询:</span>
@@ -46,6 +59,7 @@
46 59
 
47 60
         <!-- <el-button type="primary" :disabled="selecting_schs.length == 0" @click="batchPrintAction">打印</el-button> -->
48 61
       </div>
62
+     
49 63
       <div class="cell clearfix">
50 64
         <label class="title"> <span class="name">排班班次</span> : </label>
51 65
         <div class="time">
@@ -359,7 +373,7 @@ import { parseTime } from "@/utils";
359 373
 import BreadCrumb from "@/xt_pages/components/bread-crumb";
360 374
 import { getPrintTemplate } from "@/api/data";
361 375
 import { getSchedualDoctors } from '@/api/advice'
362
-
376
+import {  getHisPatient } from '@/api/project/project'
363 377
 export default {
364 378
   name: "Patient",
365 379
   data() {
@@ -404,6 +418,7 @@ export default {
404 418
       showOne:false,
405 419
       deliveryWay:[],
406 420
       delivery_way:0,
421
+      patient_id:0,
407 422
     };
408 423
   },
409 424
   created() {
@@ -506,7 +521,7 @@ export default {
506 521
          var partition_type = this.listQuery.partition_type
507 522
         
508 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 525
         var resp = rs.data
511 526
         if (resp.state == 1) {
512 527
             this.admin_users = resp.data.adminUser
@@ -972,7 +987,31 @@ export default {
972 987
         // console.log('val',val)
973 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 1016
   components: {
978 1017
     BreadCrumb

+ 13 - 5
src/xt_pages/dialysis/template/DialysisPrintOrderFourteen.vue Ver arquivo

@@ -174,7 +174,13 @@
174 174
                 <tbody>
175 175
                   <tr>
176 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 184
                       <div>
179 185
                         <label-box :isChecked="predialysis.humor_excessive_symptom ? getHumorExcessiveSymptom(predialysis.humor_excessive_symptom).indexOf('无') > -1 : false" showValue="无"></label-box>
180 186
                       </div>
@@ -186,17 +192,19 @@
186 192
                         <label-box :isChecked="predialysis.humor_excessive_symptom ? getHumorExcessiveSymptom(predialysis.humor_excessive_symptom).indexOf('颜面浮肿') >-1 : false" showValue="颜面浮肿"></label-box>
187 193
                         &nbsp;
188 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 199
                       <div class="under-line">
194 200
                         &nbsp;
195 201
                         <span v-if="predialysis.humor_excessive_symptom && ['无','下肢水肿','颜面浮肿'].indexOf(getHumorExcessiveSymptom(predialysis.humor_excessive_symptom)) == -1">
196 202
                           {{ getHumorExcessiveSymptom(predialysis.humor_excessive_symptom) }}
197 203
                         </span>
198 204
                       </div>
199
-                    </td>
205
+                    </td> -->
206
+                    <td></td>
207
+                    <td></td>
200 208
                     <td></td>
201 209
                   </tr>
202 210
                 </tbody>

+ 11 - 4
src/xt_pages/dialysis/template/DialysisPrintOrderTwentySeven.vue Ver arquivo

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

+ 6 - 1
src/xt_pages/hospitalStation/components/deskPrescription.vue Ver arquivo

@@ -2413,7 +2413,12 @@
2413 2413
         this.tabIndex = this.prescriptions.length
2414 2414
 
2415 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 2422
         ++this.tabIndex
2418 2423
         let newTabName = '处方' + this.tabIndex
2419 2424
         var nowDate = new Date()

+ 11 - 3
src/xt_pages/hospitalStation/doctorDesk.vue Ver arquivo

@@ -451,9 +451,17 @@
451 451
             this.admin_info = response.data.data.info
452 452
 
453 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 Ver arquivo

@@ -286,12 +286,12 @@
286 286
                                         </el-table-column>
287 287
                                         <el-table-column label="库存" width="60">
288 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 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 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 295
                                             </template>
296 296
                                         </el-table-column>
297 297
                                         <el-table-column label="单价" width="40">
@@ -383,7 +383,7 @@
383 383
                                         </el-table-column>
384 384
                                         <el-table-column label="库存" width="40">
385 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 387
                                                    {{scope.row.stock_count}}
388 388
                                               </span>
389 389
                                               <span v-else> {{ scope.row.total }}</span>
@@ -2419,7 +2419,13 @@
2419 2419
         this.tabIndex = this.prescriptions.length
2420 2420
 
2421 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 2429
         ++this.tabIndex
2424 2430
         let newTabName = '处方' + this.tabIndex
2425 2431
         var nowDate = new Date()
@@ -2652,7 +2658,7 @@
2652 2658
       selectDrugs(selection, row) {
2653 2659
         console.log('selection', selection)
2654 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 2662
             if (row.count <= 0) {
2657 2663
               if (selection) {
2658 2664
                 selection.forEach(row => {
@@ -2681,7 +2687,7 @@
2681 2687
               return
2682 2688
             }
2683 2689
         }
2684
-       
2690
+
2685 2691
         this.curDrugs = selection
2686 2692
       },
2687 2693
 
@@ -2927,7 +2933,7 @@
2927 2933
       },
2928 2934
       selectChange(selection, row) {
2929 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 2937
            if (row.stock_count <= 0) {
2932 2938
             if (row.type == 3) {
2933 2939
               if (selection) {
@@ -2961,7 +2967,7 @@
2961 2967
           }
2962 2968
 
2963 2969
         }
2964
-       
2970
+
2965 2971
         this.teamList.push(row)
2966 2972
       },
2967 2973
       getlist() {
@@ -2994,8 +3000,8 @@
2994 3000
             }
2995 3001
 
2996 3002
             var good_info = response.data.data.good_info
2997
-          
2998
- 
3003
+
3004
+
2999 3005
             for (let i = 0; i < good_info.length; i++) {
3000 3006
                good_info[i].stock_count = 0
3001 3007
               if(good_info[i].good_stock_in.length >0 ){

+ 38 - 5
src/xt_pages/qcd/treatmentControlAnalysis/components/TimePersonal.vue Ver arquivo

@@ -3,8 +3,7 @@
3 3
     <div class="cell clearfix">
4 4
       <el-form :inline="true" :model="listQuery">
5 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 7
            <el-autocomplete
9 8
              class="checkSearch"
10 9
              popper-class="my-autocomplete"
@@ -70,6 +69,7 @@
70 69
       </div>
71 70
       <div style="padding-left:10px;flex:1">
72 71
         <div class="tableTitle">统计表</div>
72
+        <div><el-button type="primary" @click="exportList">导出</el-button></div>
73 73
         <el-table :data="DialysisData" style="width: 100%" border :row-style="{ color: '#303133' }" 
74 74
         :header-cell-style="{backgroundColor: 'rgb(245, 247, 250)',color: '#606266'}"
75 75
         >
@@ -100,7 +100,7 @@
100 100
           @size-change="handleSizeChange"
101 101
           @current-change="handleCurrentChange"
102 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 104
           :page-size="10"
105 105
           background
106 106
           style="margin-top:20px;"
@@ -280,7 +280,7 @@ export default {
280 280
             }
281 281
           })
282 282
           let list = Object.values(dataInfo)
283
-          // console.log("arr",list)    
283
+             
284 284
           list.map(item => {
285 285
             for (let i = 0; i < prescriptionList.length; i++) {
286 286
               if (item.patient_id === prescriptionList[i].patient_id) {
@@ -462,7 +462,40 @@ export default {
462 462
         var strs = str.substring(0, str.length - 1)
463 463
        
464 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 500
   created(){
468 501
     var nowDate = new Date();

+ 2 - 2
src/xt_pages/stock/detail/cancelStockDetail.vue Ver arquivo

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

+ 7 - 2
src/xt_pages/stock/drugs/drugDamaged.vue Ver arquivo

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

+ 1 - 1
src/xt_pages/stock/drugs/drugStockInOrder.vue Ver arquivo

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

+ 8 - 3
src/xt_pages/stock/drugs/inventory.vue Ver arquivo

@@ -64,8 +64,8 @@
64 64
               </el-table-column>
65 65
               <el-table-column prop="name" label="盘点前数量" width="180"  align="center">
66 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 69
                   </template> 
70 70
               </el-table-column>
71 71
 
@@ -230,7 +230,11 @@ export default {
230 230
             if (keyword != undefined) {
231 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 238
             if (response.data.state == 1) {
235 239
             
236 240
                 var list = response.data.data.list
@@ -325,6 +329,7 @@ export default {
325 329
                       }
326 330
                    }
327 331
                  }
332
+                console.log("newlist23233223323222323232332",newList)
328 333
                 this.tableData = newList
329 334
                 this.showSearch = false
330 335
                 this.showTable = true

+ 2 - 0
src/xt_pages/stock/drugs/inventoryDetails.vue Ver arquivo

@@ -81,6 +81,7 @@
81 81
                 <template slot-scope="scope">
82 82
                   <span v-if="scope.row.stock_max_number>0">{{scope.row.stock_max_number}}{{scope.row.warehousing_unit}} </span>  
83 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 85
                 </template> 
85 86
             </el-table-column>
86 87
 
@@ -88,6 +89,7 @@
88 89
                 <template slot-scope="scope">
89 90
                    <span v-if="scope.row.last_stock_max_number > 0">{{scope.row.last_stock_max_number}}{{scope.row.warehousing_unit}}</span>  
90 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 93
                 </template> 
92 94
             </el-table-column>
93 95
             <el-table-column prop="name" label="盘点类型" width="120"  align="center">

+ 3 - 3
src/xt_pages/stock/drugs/query.vue Ver arquivo

@@ -112,7 +112,7 @@
112 112
         </el-table-column>
113 113
         <el-table-column prop="drug_name" label="出库数量" align="center">
114 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 116
                 <span> 
117 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 118
                 </span> 
@@ -123,8 +123,8 @@
123 123
         <el-table-column prop="drug_name" label="剩余库存量" align="center">
124 124
            <template slot-scope="scope">
125 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 128
                </span>
129 129
                
130 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 Ver arquivo

@@ -26,7 +26,7 @@
26 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 27
         </template>
28 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 30
                 <template slot-scope="scope">
31 31
                   {{scope.row.good_name}}
32 32
                 </template>
@@ -64,7 +64,7 @@
64 64
               </el-table-column>
65 65
               <el-table-column prop="name" label="盘点前数量" width="100"  align="center">
66 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 68
                   </template> 
69 69
               </el-table-column>
70 70
 
@@ -202,7 +202,10 @@ export default {
202 202
             if (keyword != undefined) {
203 203
                 key = keyword
204 204
             }
205
-            postSearchGoodWarehouseList(key).then(response => {
205
+            var params = {
206
+              keyword:key
207
+            }
208
+            postSearchGoodWarehouseList(params).then(response => {
206 209
             if (response.data.state == 1) {
207 210
             
208 211
                 var list = response.data.data.list
@@ -417,6 +420,7 @@ export default {
417 420
          if(response.data.state == 1){
418 421
            var list = response.data.data.list
419 422
            for(let i=0;i<list.length;i++){
423
+              list[i].type = 0
420 424
               list[i].good_name = list[i].GoodInfo.good_name
421 425
               list[i].specification_name = list[i].GoodInfo.specification_name
422 426
               for(let j=0;j<this.manufacturerList.length;j++){

+ 2 - 2
src/xt_pages/stock/inventoryDetails.vue Ver arquivo

@@ -42,12 +42,12 @@
42 42
            
43 43
             <el-table-column prop="name" label="盘点前数量" width="100" align="center">
44 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 46
                 </template>
47 47
             </el-table-column>
48 48
             <el-table-column prop="name" label="盘点后数量" width="100" align="center">
49 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 51
              </template>
52 52
             </el-table-column>
53 53
            

+ 1 - 1
src/xt_pages/stock/stockInOrder.vue Ver arquivo

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

+ 1 - 1
src/xt_pages/stock/stockInventory.vue Ver arquivo

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

+ 2 - 2
src/xt_pages/stock/stockQuery.vue Ver arquivo

@@ -108,7 +108,7 @@
108 108
        </el-table-column>
109 109
        <el-table-column label="出库数量" align="center">
110 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 112
             <span>
113 113
               {{getWareInfo(scope.row.xt_warehouse_info) - getOverFlushInfo(scope.row.xt_warehouse_info) + getCancelSotckInfo(scope.row.cancel_stock_info) }}
114 114
             </span>
@@ -119,7 +119,7 @@
119 119
 
120 120
        <el-table-column label="剩余库存量" align="center">
121 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 123
           <span v-else>{{getWareInfo(scope.row.xt_warehouse_info) - getAutoCount(scope.row.id) - getOutCount(scope.row.id) + getCancelCount(scope.row.id) }}</span> 
124 124
          </template>
125 125
        </el-table-column>

+ 1 - 1
src/xt_pages/user/dialysisSolution.vue Ver arquivo

@@ -438,7 +438,7 @@
438 438
             </el-form-item>
439 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 442
              <el-form-item label="灌流器:">
443 443
                <el-input v-model="dialysis_irrigation" @focus="showInnerDialog('7')"></el-input>
444 444
              </el-form-item>

+ 17 - 44
src/xt_pages/user/doctorAdvice.vue Ver arquivo

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