Browse Source

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

csx 3 years ago
parent
commit
4cc85e69fc
45 changed files with 3325 additions and 779 deletions
  1. 178 191
      src/api/advice.js
  2. 2 0
      src/api/patient.js
  3. 2 2
      src/xt_pages/dialysis/details/DialysisPrescription.vue
  4. 2 1
      src/xt_pages/dialysis/details/assessmentBefore.vue
  5. 28 57
      src/xt_pages/dialysis/details/dialog/assessmentBeforeDislysisDialog.vue
  6. 2 2
      src/xt_pages/dialysis/details/dialog/dialysisPrescriptionDialog.vue
  7. 46 6
      src/xt_pages/dialysis/dialysisDoctorAdvice.vue
  8. 24 0
      src/xt_pages/dialysis/dialysisPrintOrder.vue
  9. 51 29
      src/xt_pages/dialysis/template/DialysisPrintOrderEight.vue
  10. 61 27
      src/xt_pages/dialysis/template/DialysisPrintOrderEleven.vue
  11. 1 1
      src/xt_pages/dialysis/template/DialysisPrintOrderForty.vue
  12. 1971 0
      src/xt_pages/dialysis/template/DialysisPrintOrderFortyFive.vue
  13. 13 5
      src/xt_pages/dialysis/template/DialysisPrintOrderFourteen.vue
  14. 23 6
      src/xt_pages/dialysis/template/DialysisPrintOrderNine.vue
  15. 26 7
      src/xt_pages/dialysis/template/DialysisPrintOrderOne.vue
  16. 22 5
      src/xt_pages/dialysis/template/DialysisPrintOrderSeven.vue
  17. 54 30
      src/xt_pages/dialysis/template/DialysisPrintOrderSeventeen.vue
  18. 26 9
      src/xt_pages/dialysis/template/DialysisPrintOrderSix.vue
  19. 54 32
      src/xt_pages/dialysis/template/DialysisPrintOrderTen.vue
  20. 45 6
      src/xt_pages/dialysis/template/DialysisPrintOrderThirteen.vue
  21. 53 29
      src/xt_pages/dialysis/template/DialysisPrintOrderThirty.vue
  22. 58 34
      src/xt_pages/dialysis/template/DialysisPrintOrderTwenty.vue
  23. 43 1
      src/xt_pages/dialysis/template/DialysisPrintOrderTwentyEight.vue
  24. 40 18
      src/xt_pages/dialysis/template/DialysisPrintOrderTwentyFive.vue
  25. 58 2
      src/xt_pages/dialysis/template/DialysisPrintOrderTwentyFour.vue
  26. 54 30
      src/xt_pages/dialysis/template/DialysisPrintOrderTwentyNine.vue
  27. 50 21
      src/xt_pages/dialysis/template/DialysisPrintOrderTwentySeven.vue
  28. 39 17
      src/xt_pages/dialysis/template/DialysisPrintOrderTwentySix.vue
  29. 56 31
      src/xt_pages/dialysis/template/DialysisPrintOrderTwentyTwo.vue
  30. 45 30
      src/xt_pages/dialysis/template/dialysisPrintOrderTwelve.vue
  31. 53 30
      src/xt_pages/dialysis/template/dialysisPrintOrderTwo.vue
  32. 4 4
      src/xt_pages/outpatientDoctorStation/components/deskPrescription.vue
  33. 1 1
      src/xt_pages/stock/cancelStockOrderAdd.vue
  34. 4 2
      src/xt_pages/stock/drugs/cancelDrugStockOrderEdit.vue
  35. 1 2
      src/xt_pages/stock/drugs/drugDamaged.vue
  36. 2 3
      src/xt_pages/stock/drugs/drugStockOutOrderEdit.vue
  37. 1 0
      src/xt_pages/stock/drugs/inventory.vue
  38. 0 18
      src/xt_pages/stock/drugs/inventoryDetails.vue
  39. 36 36
      src/xt_pages/stock/drugs/query.vue
  40. 24 23
      src/xt_pages/stock/inventory.vue
  41. 8 2
      src/xt_pages/stock/inventoryDetails.vue
  42. 42 10
      src/xt_pages/stock/stockDamaged.vue
  43. 11 11
      src/xt_pages/stock/stockQuery.vue
  44. 9 8
      src/xt_pages/user/doctorAdvice.vue
  45. 2 0
      src/xt_pages/workforce/template.vue

+ 178 - 191
src/api/advice.js View File

@@ -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 - 0
src/api/patient.js View File

@@ -1,4 +1,5 @@
1 1
 import request from '@/utils/request'
2
+import { fromTextArea } from 'codemirror'
2 3
 
3 4
 export function fetchList(params) {
4 5
   return request({
@@ -247,6 +248,7 @@ export function EditLapseto(patient_id, data) {
247 248
 }
248 249
 
249 250
 export function PostSearch(keyword) {
251
+  console.log('keyword2222222', keyword)
250 252
   return request({
251 253
     url: '/api/patients/search?keyword=' + keyword,
252 254
     method: 'post'

+ 2 - 2
src/xt_pages/dialysis/details/DialysisPrescription.vue View File

@@ -112,8 +112,8 @@
112 112
           <span class="content">{{
113 113
             target_ultrafiltration != "0" ? target_ultrafiltration : ""
114 114
           }}</span>
115
-          <span v-if="this.$store.getters.xt_user.template_info.template_id != 17 && this.$store.getters.xt_user.template_info.template_id != 9 && this.$store.getters.xt_user.template_info.template_id != 20 && this.$store.getters.xt_user.template_info.template_id != 21 && this.$store.getters.xt_user.template_info.template_id != 22 && this.$store.getters.xt_user.template_info.template_id != 23 && this.$store.getters.xt_user.template_info.template_id != 24 && this.$store.getters.xt_user.template_info.template_id != 26 && this.$store.getters.xt_user.template_info.template_id != 28 && this.$store.getters.xt_user.template_info.template_id != 27 && this.$store.getters.xt_user.template_info.template_id != 29 && this.$store.getters.xt_user.template_info.template_id != 30 && this.$store.getters.xt_user.template_info.template_id != 31 && this.$store.getters.xt_user.template_info.template_id != 32 && this.$store.getters.xt_user.template_info.template_id != 34 && this.$store.getters.xt_user.template_info.template_id != 36 && this.$store.getters.xt_user.template_info.template_id != 38 && this.$store.getters.xt_user.template_info.template_id != 40 && this.$store.getters.xt_user.template_info.template_id != 43 && this.$store.getters.xt_user.template_info.org_id != 9555" class="unit">{{ target_ultrafiltration != "0" ? "L" : "" }}</span>
116
-          <span v-if="this.$store.getters.xt_user.template_info.template_id == 17 || this.$store.getters.xt_user.template_info.template_id == 9 || this.$store.getters.xt_user.template_info.template_id == 20 || this.$store.getters.xt_user.template_info.template_id == 21 || this.$store.getters.xt_user.template_info.template_id == 22 || this.$store.getters.xt_user.template_info.template_id == 23 || this.$store.getters.xt_user.template_info.template_id == 24 || this.$store.getters.xt_user.template_info.template_id == 26 || this.$store.getters.xt_user.template_info.template_id == 28 || this.$store.getters.xt_user.template_info.template_id == 27 || this.$store.getters.xt_user.template_info.template_id == 29 || this.$store.getters.xt_user.template_info.template_id == 30 || this.$store.getters.xt_user.template_info.template_id == 31 || this.$store.getters.xt_user.template_info.template_id == 32 || this.$store.getters.xt_user.template_info.template_id == 34 || this.$store.getters.xt_user.template_info.template_id == 36 || this.$store.getters.xt_user.template_info.template_id == 38 || this.$store.getters.xt_user.template_info.template_id != 40 || this.$store.getters.xt_user.template_info.template_id != 43 || this.$store.getters.xt_user.template_info.org_id == 9555" class="unit">{{ target_ultrafiltration != "0" ? "ml" : "" }}</span>
115
+          <span v-if="this.$store.getters.xt_user.template_info.template_id != 17 && this.$store.getters.xt_user.template_info.template_id != 9 && this.$store.getters.xt_user.template_info.template_id != 20 && this.$store.getters.xt_user.template_info.template_id != 21 && this.$store.getters.xt_user.template_info.template_id != 22 && this.$store.getters.xt_user.template_info.template_id != 23 && this.$store.getters.xt_user.template_info.template_id != 24 && this.$store.getters.xt_user.template_info.template_id != 26 && this.$store.getters.xt_user.template_info.template_id != 28 && this.$store.getters.xt_user.template_info.template_id != 27 && this.$store.getters.xt_user.template_info.template_id != 29 && this.$store.getters.xt_user.template_info.template_id != 30 && this.$store.getters.xt_user.template_info.template_id != 31 && this.$store.getters.xt_user.template_info.template_id != 32 && this.$store.getters.xt_user.template_info.template_id != 34 && this.$store.getters.xt_user.template_info.template_id != 36 && this.$store.getters.xt_user.template_info.template_id != 38 && this.$store.getters.xt_user.template_info.template_id != 40 && this.$store.getters.xt_user.template_info.template_id != 43 && this.$store.getters.xt_user.template_info.template_id != 45 && this.$store.getters.xt_user.template_info.org_id != 9555" class="unit">{{ target_ultrafiltration != "0" ? "L" : "" }}</span>
116
+          <span v-if="this.$store.getters.xt_user.template_info.template_id == 17 || this.$store.getters.xt_user.template_info.template_id == 9 || this.$store.getters.xt_user.template_info.template_id == 20 || this.$store.getters.xt_user.template_info.template_id == 21 || this.$store.getters.xt_user.template_info.template_id == 22 || this.$store.getters.xt_user.template_info.template_id == 23 || this.$store.getters.xt_user.template_info.template_id == 24 || this.$store.getters.xt_user.template_info.template_id == 26 || this.$store.getters.xt_user.template_info.template_id == 28 || this.$store.getters.xt_user.template_info.template_id == 27 || this.$store.getters.xt_user.template_info.template_id == 29 || this.$store.getters.xt_user.template_info.template_id == 30 || this.$store.getters.xt_user.template_info.template_id == 31 || this.$store.getters.xt_user.template_info.template_id == 32 || this.$store.getters.xt_user.template_info.template_id == 34 || this.$store.getters.xt_user.template_info.template_id == 36 || this.$store.getters.xt_user.template_info.template_id == 38 || this.$store.getters.xt_user.template_info.template_id != 40 || this.$store.getters.xt_user.template_info.template_id != 43 || this.$store.getters.xt_user.template_info.template_id != 45 || this.$store.getters.xt_user.template_info.org_id == 9555" class="unit">{{ target_ultrafiltration != "0" ? "ml" : "" }}</span>
117 117
         </li>
118 118
         <li v-if="isShow('葡萄糖')">
119 119
           <label>葡萄糖 : </label>

+ 2 - 1
src/xt_pages/dialysis/details/assessmentBefore.vue View File

@@ -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 View File

@@ -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
       },

+ 2 - 2
src/xt_pages/dialysis/details/dialog/dialysisPrescriptionDialog.vue View File

@@ -87,7 +87,7 @@
87 87
                     </el-col>
88 88
 
89 89
                     <el-col :span="8"
90
-                            v-if="isShows('目标超滤量') && (this.$store.getters.xt_user.template_info.template_id == 17 || this.$store.getters.xt_user.template_info.template_id == 9 || this.$store.getters.xt_user.template_info.template_id == 20 || this.$store.getters.xt_user.template_info.template_id == 21 || this.$store.getters.xt_user.template_info.template_id == 22  || this.$store.getters.xt_user.template_info.template_id == 23 || this.$store.getters.xt_user.template_info.template_id == 24 || this.$store.getters.xt_user.template_info.template_id == 26 || this.$store.getters.xt_user.template_info.template_id == 28  || this.$store.getters.xt_user.template_info.template_id == 27 || this.$store.getters.xt_user.template_info.template_id == 29 || this.$store.getters.xt_user.template_info.template_id == 30 || this.$store.getters.xt_user.template_info.template_id == 31 || this.$store.getters.xt_user.template_info.template_id == 32 || this.$store.getters.xt_user.template_info.template_id == 34 || this.$store.getters.xt_user.template_info.template_id == 36 || this.$store.getters.xt_user.template_info.template_id == 38 ||  this.$store.getters.xt_user.template_info.template_id == 40 ||  this.$store.getters.xt_user.template_info.template_id == 43 || this.$store.getters.xt_user.template_info.org_id == 9555 )">
90
+                            v-if="isShows('目标超滤量') && (this.$store.getters.xt_user.template_info.template_id == 17 || this.$store.getters.xt_user.template_info.template_id == 9 || this.$store.getters.xt_user.template_info.template_id == 20 || this.$store.getters.xt_user.template_info.template_id == 21 || this.$store.getters.xt_user.template_info.template_id == 22  || this.$store.getters.xt_user.template_info.template_id == 23 || this.$store.getters.xt_user.template_info.template_id == 24 || this.$store.getters.xt_user.template_info.template_id == 26 || this.$store.getters.xt_user.template_info.template_id == 28  || this.$store.getters.xt_user.template_info.template_id == 27 || this.$store.getters.xt_user.template_info.template_id == 29 || this.$store.getters.xt_user.template_info.template_id == 30 || this.$store.getters.xt_user.template_info.template_id == 31 || this.$store.getters.xt_user.template_info.template_id == 32 || this.$store.getters.xt_user.template_info.template_id == 34 || this.$store.getters.xt_user.template_info.template_id == 36 || this.$store.getters.xt_user.template_info.template_id == 38 ||  this.$store.getters.xt_user.template_info.template_id == 40 ||  this.$store.getters.xt_user.template_info.template_id == 43 ||  this.$store.getters.xt_user.template_info.template_id == 45 || this.$store.getters.xt_user.template_info.org_id == 9555 )">
91 91
                         <el-form-item label="目标超滤量(ml):">
92 92
                             <el-input
93 93
                                     type="number"
@@ -98,7 +98,7 @@
98 98
 
99 99
 
100 100
                     <el-col :span="8"
101
-                            v-if="isShows('目标超滤量')  && this.$store.getters.xt_user.template_info.template_id != 17 && this.$store.getters.xt_user.template_info.template_id != 9 && this.$store.getters.xt_user.template_info.template_id != 20 && this.$store.getters.xt_user.template_info.template_id != 21 && this.$store.getters.xt_user.template_info.template_id != 22 && this.$store.getters.xt_user.template_info.template_id != 23 && this.$store.getters.xt_user.template_info.template_id != 24 && this.$store.getters.xt_user.template_info.template_id != 26 && this.$store.getters.xt_user.template_info.template_id != 28 && this.$store.getters.xt_user.template_info.template_id != 27 && this.$store.getters.xt_user.template_info.template_id != 29 && this.$store.getters.xt_user.template_info.template_id != 30 && this.$store.getters.xt_user.template_info.template_id != 31 && this.$store.getters.xt_user.template_info.template_id != 32 && this.$store.getters.xt_user.template_info.template_id != 34 && this.$store.getters.xt_user.template_info.template_id != 36 && this.$store.getters.xt_user.template_info.template_id != 38 &&  this.$store.getters.xt_user.template_info.template_id != 40 &&  this.$store.getters.xt_user.template_info.template_id != 43 && this.$store.getters.xt_user.template_info.org_id != 9555 ">
101
+                            v-if="isShows('目标超滤量')  && this.$store.getters.xt_user.template_info.template_id != 17 && this.$store.getters.xt_user.template_info.template_id != 9 && this.$store.getters.xt_user.template_info.template_id != 20 && this.$store.getters.xt_user.template_info.template_id != 21 && this.$store.getters.xt_user.template_info.template_id != 22 && this.$store.getters.xt_user.template_info.template_id != 23 && this.$store.getters.xt_user.template_info.template_id != 24 && this.$store.getters.xt_user.template_info.template_id != 26 && this.$store.getters.xt_user.template_info.template_id != 28 && this.$store.getters.xt_user.template_info.template_id != 27 && this.$store.getters.xt_user.template_info.template_id != 29 && this.$store.getters.xt_user.template_info.template_id != 30 && this.$store.getters.xt_user.template_info.template_id != 31 && this.$store.getters.xt_user.template_info.template_id != 32 && this.$store.getters.xt_user.template_info.template_id != 34 && this.$store.getters.xt_user.template_info.template_id != 36 && this.$store.getters.xt_user.template_info.template_id != 38 &&  this.$store.getters.xt_user.template_info.template_id != 40 &&  this.$store.getters.xt_user.template_info.template_id != 43 &&  this.$store.getters.xt_user.template_info.template_id != 45 && this.$store.getters.xt_user.template_info.org_id != 9555 ">
102 102
                         <el-form-item label="目标超滤量(L):">
103 103
                             <el-input
104 104
                                     type="number"

+ 46 - 6
src/xt_pages/dialysis/dialysisDoctorAdvice.vue View File

@@ -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
+          class="checkSearch"
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
+       <el-button type="primary" @click="toSeach">搜索</el-button>
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 { PostSearch } from '@/api/patient'
363 377
 export default {
364 378
   name: "Patient",
365 379
   data() {
@@ -404,6 +418,8 @@ export default {
404 418
       showOne:false,
405 419
       deliveryWay:[],
406 420
       delivery_way:0,
421
+      patient_id:0,
422
+      org_id:0,
407 423
     };
408 424
   },
409 425
   created() {
@@ -425,6 +441,7 @@ export default {
425 441
     this.getTemplateInfo();
426 442
     this.requestSchedualDoctors(this.time)
427 443
     // this.template_id = this.$store.getters.xt_user.template_info.template_id;
444
+
428 445
   },
429 446
   methods: {
430 447
     getTemplateInfo() {
@@ -506,7 +523,7 @@ export default {
506 523
          var partition_type = this.listQuery.partition_type
507 524
 
508 525
         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 => {
526
+        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 527
         var resp = rs.data
511 528
         if (resp.state == 1) {
512 529
             this.admin_users = resp.data.adminUser
@@ -973,6 +990,29 @@ export default {
973 990
         this.selecting_schs = val;
974 991
     },
975 992
 
993
+    querySearchAsync(keyword, cb) {
994
+        let key = '';
995
+        if (keyword != undefined) {
996
+          key = keyword
997
+        }
998
+        let searchArray = []
999
+        PostSearch(key).then(response => {
1000
+          if (response.data.state == 1) {
1001
+            searchArray = response.data.data.patient
1002
+            console.log('searcharrya', searchArray)
1003
+            cb(searchArray)
1004
+          }
1005
+        })
1006
+        return searchArray
1007
+      },
1008
+     handleSelect(val) {
1009
+       this.patient_id = val.id
1010
+       this.requestSchedualDoctors(this.time)
1011
+      },
1012
+     toSeach(){
1013
+       this.patient_id = 0
1014
+       this.requestSchedualDoctors(this.time)
1015
+     }
976 1016
   },
977 1017
   components: {
978 1018
     BreadCrumb

+ 24 - 0
src/xt_pages/dialysis/dialysisPrintOrder.vue View File

@@ -603,6 +603,16 @@
603 603
           >打印</el-button
604 604
         >
605 605
       </template>
606
+      <template v-if="org_template_info.template_id == 45">
607
+        <el-button
608
+          :loading="loading"
609
+          size="small"
610
+          icon="el-icon-printer"
611
+          @click="printThisPage"
612
+          type="primary"
613
+          >打印</el-button
614
+        >
615
+      </template>
606 616
     </div>
607 617
     <div class="app-container" style="min-height:0;">
608 618
       <!--<div class="order-print-btn"-->
@@ -903,6 +913,11 @@
903 913
             v-if="org_template_info.template_id == 44"
904 914
           >
905 915
           </DialysisPrintOrderFortyFour>
916
+          <DialysisPrintOrderFortyFive
917
+            v-bind:childResponse="childResponse"
918
+            v-if="org_template_info.template_id == 45"
919
+          >
920
+          </DialysisPrintOrderFortyFive>
906 921
         </div>
907 922
       </el-container>
908 923
     </div>
@@ -966,9 +981,11 @@ import DialysisPrintOrderFortyOne from "./template/DialysisPrintOrderFortyOne";
966 981
 import DialysisPrintOrderFortyTwo from "./template/DialysisPrintOrderFortyTwo";
967 982
 import DialysisPrintOrderFortyThree from "./template/DialysisPrintOrderFortyThree";
968 983
 import DialysisPrintOrderFortyFour from "./template/DialysisPrintOrderFortyFour";
984
+import DialysisPrintOrderFortyFive from "./template/DialysisPrintOrderFortyFive";
969 985
 export default {
970 986
   name: "dialysisPrintOrder",
971 987
   components: {
988
+    DialysisPrintOrderFortyFive,
972 989
     DialysisPrintOrderFortyFour,
973 990
     DialysisPrintOrderFortyThree,
974 991
     DialysisPrintOrderFortyTwo,
@@ -1489,6 +1506,13 @@ export default {
1489 1506
           style: style9,
1490 1507
           scanStyles: false
1491 1508
         });
1509
+      } else if (this.org_template_info.template_id == 45) {
1510
+        printJS({
1511
+          printable: "dialysis-print-box",
1512
+          type: "html",
1513
+          style: style,
1514
+          scanStyles: false
1515
+        });
1492 1516
       }
1493 1517
     },
1494 1518
     printThisOnePage() {

+ 51 - 29
src/xt_pages/dialysis/template/DialysisPrintOrderEight.vue View File

@@ -1360,38 +1360,60 @@ export default {
1360 1360
         this.$message.error('下机护士未填')
1361 1361
       }else if(this.special_record == ""){
1362 1362
         this.$message.error('特殊记录未填')
1363
-      }else if(this.monitors.length > 0){
1364
-        this.monitors.map(item => {
1365
-          if(item.id > 0 && item.operate_time){
1366
-            this.users.map(it => {
1367
-              if(it.id == item.monitoring_nurse){
1368
-                if(it.type != 3){
1369
-                  this.$message.error('存在不是护士保存的监测')
1370
-                }
1371
-              }
1372
-            })
1373
-          }
1374
-        })
1375
-      }else if(this.tableAdvice.length > 0){
1376
-        this.tableAdvice.map(item => {
1377
-          if(item.id > 0 && item.created_time){
1378
-            this.users.map(it => {
1379
-              if(it.id == item.advice_doctor){
1380
-                if(it.type != 2){
1381
-                  this.$message.error('存在不是医生保存的医嘱')
1382
-                }
1383
-              }else if(it.id == item.execution_staff && item.execution_staff > 0){
1384
-                if(it.type != 3){
1385
-                  this.$message.error('存在不是护士执行的医嘱')
1363
+      }else if(this.tableAdvice.length > 0 || this.monitors.length > 0){
1364
+        let num = 0
1365
+        if(this.monitors.length > 0){
1366
+          this.monitors.map(item => {
1367
+            if(item.id > 0 && item.operate_time){
1368
+              this.users.map(it => {
1369
+                if(it.id == item.monitoring_nurse){
1370
+                  if(it.user_type == 2){
1371
+                    num++
1372
+                    this.$message.error('存在不是护士保存的监测')
1373
+                  }
1386 1374
                 }
1387
-              }else if(it.id == item.checker && item.checker > 0){
1388
-                if(it.type != 3){
1389
-                  this.$message.error('存在不是护士核对的医嘱')
1375
+              })
1376
+            }
1377
+          })
1378
+        }
1379
+        if(this.tableAdvice.length > 0){
1380
+          this.tableAdvice.map(item => {
1381
+            if(item.id > 0 && (item.created_time || item.start_time)){
1382
+              this.users.map(it => {
1383
+                if(it.id == item.advice_doctor){
1384
+                  if(it.user_type == 3){
1385
+                    num++
1386
+                    this.$message.error('存在不是医生保存的医嘱')
1387
+                  }else if(it.id == item.execution_staff && item.execution_staff > 0){
1388
+                    if(it.user_type == 2){
1389
+                      num++
1390
+                      this.$message.error('存在不是护士执行的医嘱')
1391
+                    }
1392
+                  }else if(it.id == item.checker && item.checker > 0){
1393
+                    if(it.user_type == 2){
1394
+                      num++
1395
+                      this.$message.error('存在不是护士核对的医嘱')
1396
+                    }
1397
+                  }
1398
+                }else if(it.id == item.execution_staff && item.execution_staff > 0){
1399
+                  if(it.user_type == 2){
1400
+                    num++
1401
+                    this.$message.error('存在不是护士执行的医嘱')
1402
+                  }
1403
+                }else if(it.id == item.checker && item.checker > 0){
1404
+                  if(it.user_type == 2){
1405
+                    num++
1406
+                    this.$message.error('存在不是护士核对的医嘱')
1407
+                  }
1390 1408
                 }
1391
-              }
1392
-            })
1393
-          }
1409
+              })
1410
+            }
1394 1411
         })
1412
+        }
1413
+        
1414
+        if(num == 0){
1415
+          this.$message.success('核对完成')
1416
+        }
1395 1417
       }else{
1396 1418
         this.$message.success('核对完成')
1397 1419
       }

+ 61 - 27
src/xt_pages/dialysis/template/DialysisPrintOrderEleven.vue View File

@@ -1155,7 +1155,7 @@ export default {
1155 1155
   },
1156 1156
   methods: {
1157 1157
     checkData(){
1158
-      if(this.receiverTreatmentAccess.condition == 0){
1158
+      if(this.patientInfo.source == 0){
1159 1159
         this.$message.error('门诊或住院未填')
1160 1160
       }else if(this.receiverTreatmentAccess.way == 0){
1161 1161
         this.$message.error('入科方式未填')
@@ -1167,7 +1167,7 @@ export default {
1167 1167
         this.$message.error('透前脉搏未填')
1168 1168
       }else if(this.predialysis.breathing_rate == ""){
1169 1169
         this.$message.error('透前呼吸频率未填')
1170
-      }else if((this.predialysis.systolic_blood_pressure == 0 || this.predialysis.diastolic_blood_pressure == 0) && this.org_id == 9987){
1170
+      }else if(this.predialysis.systolic_blood_pressure == 0 || this.predialysis.diastolic_blood_pressure == 0){
1171 1171
         this.$message.error('透前血压未填完整')
1172 1172
       }else if(this.predialysis.puncture_way == ''){
1173 1173
         this.$message.error('穿刺方式未填')
@@ -1181,21 +1181,19 @@ export default {
1181 1181
         this.$message.error('透前导管未填')
1182 1182
       }else if(this.prescription.mode_id == ""){
1183 1183
         this.$message.error('透析方式未填')
1184
-      }else if(this.prescription.displace_liqui_part == 0){
1184
+      }else if(this.prescription.displace_liqui_part == 0 && this.prescription.mode_id == 2){
1185 1185
         this.$message.error('置换方式未填')
1186
-      }else if(this.prescription.displace_liqui_value == 0){
1186
+      }else if(this.prescription.displace_liqui_value == 0 && this.prescription.mode_id == 2){
1187 1187
         this.$message.error('置换量未填')
1188 1188
       }else if(this.prescription.blood_flow_volume == 0){
1189 1189
         this.$message.error('血流量未填')
1190
-      }else if(this.prescription.dialysis_dialyszers == ""){
1191
-        this.$message.error('透析器未填')
1192
-      }else if(this.prescription.dialysis_irrigation == ""){
1193
-        this.$message.error('灌流器未填')
1190
+      }else if(this.prescription.dialyzer_perfusion_apparatus == ""){
1191
+        this.$message.error('透析(滤)器未填')
1194 1192
       }else if(this.predialysis.dry_weight == 0){
1195 1193
         this.$message.error('干体重未填')
1196 1194
       }else if(this.prescription.dialysis_duration_hour == 0 && this.prescription.dialysis_duration_minute == 0){
1197 1195
         this.$message.error('透析时间未填')
1198
-      }else if(this.last_afterdialysis.weight_after == 0){
1196
+      }else if(this.predialysis.weight_after_last_transparency == 0){
1199 1197
         this.$message.error('上次透后未填')
1200 1198
       }else if(this.predialysis.weight_before == 0){
1201 1199
         this.$message.error('透前体重未填')
@@ -1223,7 +1221,7 @@ export default {
1223 1221
         this.$message.error('透后脉搏未填')
1224 1222
       }else if(this.afterdialysis.breathing_rate == 0){
1225 1223
         this.$message.error('透后呼吸频率未填')
1226
-      }else if((this.afterdialysis.systolic_blood_pressure == 0 || this.afterdialysis.diastolic_blood_pressure == 0) && this.org_id == 9987){
1224
+      }else if(this.afterdialysis.systolic_blood_pressure == 0 || this.afterdialysis.diastolic_blood_pressure == 0){
1227 1225
         this.$message.error('透后血压未填完整')
1228 1226
       }else if(this.afterdialysis.actual_treatment_hour == 0 && this.afterdialysis.actual_treatment_minute == 0){
1229 1227
         this.$message.error('实际治疗时间未填')
@@ -1259,26 +1257,62 @@ export default {
1259 1257
         this.$message.error('下机护士未填')
1260 1258
       }else if(this.prescription.creater == 0){
1261 1259
         this.$message.error('治疗医生未填')
1262
-      }else if(this.tableAdvice.length > 0){
1263
-        this.tableAdvice.map(item => {
1264
-          if(item.id > 0 && item.created_time){
1265
-            this.users.map(it => {
1266
-              if(it.id == item.advice_doctor){
1267
-                if(it.type != 2){
1268
-                  this.$message.error('存在不是医生保存的医嘱')
1260
+      }else if(this.tableAdvice.length > 0 || this.monitors.length > 0){
1261
+        let num = 0
1262
+        if(this.monitors.length > 0){
1263
+          this.monitors.map(item => {
1264
+            if(item.id > 0 && item.operate_time){
1265
+              this.users.map(it => {
1266
+                if(it.id == item.monitoring_nurse){
1267
+                  if(it.user_type == 2){
1268
+                    num++
1269
+                    this.$message.error('存在不是护士保存的监测')
1270
+                  }
1269 1271
                 }
1270
-              }else if(it.id == item.execution_staff && item.execution_staff > 0){
1271
-                if(it.type != 3){
1272
-                  this.$message.error('存在不是护士执行的医嘱')
1273
-                }
1274
-              }else if(it.id == item.checker && item.checker > 0){
1275
-                if(it.type != 3){
1276
-                  this.$message.error('存在不是护士核对的医嘱')
1272
+              })
1273
+            }
1274
+          })
1275
+        }
1276
+        if(this.tableAdvice.length > 0){
1277
+          this.tableAdvice.map(item => {
1278
+            if(item.id > 0 && (item.created_time || item.start_time)){
1279
+              this.users.map(it => {
1280
+                if(it.id == item.advice_doctor){
1281
+                  if(it.user_type == 3){
1282
+                    num++
1283
+                    this.$message.error('存在不是医生保存的医嘱')
1284
+                  }else if(it.id == item.execution_staff && item.execution_staff > 0){
1285
+                    if(it.user_type == 2){
1286
+                      num++
1287
+                      this.$message.error('存在不是护士执行的医嘱')
1288
+                    }
1289
+                  }else if(it.id == item.checker && item.checker > 0){
1290
+                    if(it.user_type == 2){
1291
+                      num++
1292
+                      this.$message.error('存在不是护士核对的医嘱')
1293
+                    }
1294
+                  }
1295
+                }else if(it.id == item.execution_staff && item.execution_staff > 0){
1296
+                  if(it.user_type == 2){
1297
+                    num++
1298
+                    this.$message.error('存在不是护士执行的医嘱')
1299
+                  }
1300
+                }else if(it.id == item.checker && item.checker > 0){
1301
+                  if(it.user_type == 2){
1302
+                    num++
1303
+                    this.$message.error('存在不是护士核对的医嘱')
1304
+                  }
1277 1305
                 }
1278
-              }
1279
-            })
1280
-          }
1306
+              })
1307
+            }
1281 1308
         })
1309
+        }
1310
+        
1311
+        if(num == 0){
1312
+          this.$message.success('核对完成')
1313
+        }
1314
+      }else{
1315
+        this.$message.success('核对完成')
1282 1316
       }
1283 1317
     },
1284 1318
     getDisplaceLiquiPart: function(val) {

+ 1 - 1
src/xt_pages/dialysis/template/DialysisPrintOrderForty.vue View File

@@ -1091,7 +1091,7 @@
1091 1091
                       <td width="50">
1092 1092
                           <div class="under-line">&nbsp;{{ afterdialysis.actual_displacement ? afterdialysis.actual_displacement : "" }}</div>
1093 1093
                       </td>
1094
-                      <td width="20">ml</td>
1094
+                      <td width="20">L</td>
1095 1095
                       <td></td>
1096 1096
                   </tr>
1097 1097
                   </tbody>

File diff suppressed because it is too large
+ 1971 - 0
src/xt_pages/dialysis/template/DialysisPrintOrderFortyFive.vue


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

@@ -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>

+ 23 - 6
src/xt_pages/dialysis/template/DialysisPrintOrderNine.vue View File

@@ -1808,7 +1808,7 @@ export default {
1808 1808
           this.$message.error('计划超滤总量未填')
1809 1809
         }else if(this.prescription.dialysis_duration_hour == 0 && this.prescription.dialysis_duration_minute == 0){
1810 1810
           this.$message.error('透析时间未填')
1811
-        }else if(this.prescription.replacement_total == 0){
1811
+        }else if(this.prescription.replacement_total == 0 && this.prescription.mode_id == 2){
1812 1812
           this.$message.error('置换量未填')
1813 1813
         }else if(this.prescription.mode_id == ""){
1814 1814
           this.$message.error('透析方式未填')
@@ -1850,32 +1850,49 @@ export default {
1850 1850
           this.$message.error('患者去向未填')
1851 1851
         }else if(this.prescription.creater == 0){
1852 1852
           this.$message.error('医生未填')
1853
-        }else if(this.doctor_advices.length > 0 && this.doctor_advices[0].execution_staff == 0){
1853
+        }else if(this.doctor_advices.length = 0 || (this.doctor_advices.length > 0 && this.doctor_advices[0].execution_staff == 0)){
1854 1854
           this.$message.error('治疗护士未填')
1855 1855
         }else if(this.doctor_advices.length > 0 && (this.doctor_advices[0].execution_staff != this.check.modifier) && this.check.modifier == 0 ){
1856 1856
           this.$message.error('核对护士未填')
1857 1857
         }else if(this.doctor_advices.length > 0 && (this.doctor_advices[0].execution_staff != this.check.creater) && this.check.creater == 0 ){
1858 1858
           this.$message.error('核对护士未填')
1859 1859
         }else if(this.tableAdvice.length > 0){
1860
+          let num = 0
1860 1861
           this.tableAdvice.map(item => {
1861
-            if(item.id > 0 && item.created_time){
1862
+            if(item.id > 0 && (item.created_time || item.start_time)){
1862 1863
               this.users.map(it => {
1863 1864
                 if(it.id == item.advice_doctor){
1864
-                  if(it.type != 2){
1865
+                  if(it.user_type == 3){
1866
+                    num++
1865 1867
                     this.$message.error('存在不是医生保存的医嘱')
1868
+                  }else if(it.id == item.execution_staff && item.execution_staff > 0){
1869
+                    if(it.user_type == 2){
1870
+                      num++
1871
+                      this.$message.error('存在不是护士执行的医嘱')
1872
+                    }
1873
+                  }else if(it.id == item.checker && item.checker > 0){
1874
+                    if(it.user_type == 2){
1875
+                      num++
1876
+                      this.$message.error('存在不是护士核对的医嘱')
1877
+                    }
1866 1878
                   }
1867 1879
                 }else if(it.id == item.execution_staff && item.execution_staff > 0){
1868
-                  if(it.type != 3){
1880
+                  if(it.user_type == 2){
1881
+                    num++
1869 1882
                     this.$message.error('存在不是护士执行的医嘱')
1870 1883
                   }
1871 1884
                 }else if(it.id == item.checker && item.checker > 0){
1872
-                  if(it.type != 3){
1885
+                  if(it.user_type == 2){
1886
+                    num++
1873 1887
                     this.$message.error('存在不是护士核对的医嘱')
1874 1888
                   }
1875 1889
                 }
1876 1890
               })
1877 1891
             }
1878 1892
           })
1893
+          if(num == 0){
1894
+            this.$message.success('核对完成')
1895
+          }
1879 1896
         }else{
1880 1897
           this.$message.success('核对完成')
1881 1898
         }

+ 26 - 7
src/xt_pages/dialysis/template/DialysisPrintOrderOne.vue View File

@@ -1149,7 +1149,7 @@ export default {
1149 1149
   methods: {
1150 1150
     checkData(){
1151 1151
       if(this.receiverTreatmentAccess.way == 0){
1152
-        this.$message.error('院方式未填')
1152
+        this.$message.error('院方式未填')
1153 1153
       }else if(this.receiverTreatmentAccess.consciousness == 0){
1154 1154
         this.$message.error('意识未填')
1155 1155
       }else if(this.predialysis.temperature == 0){
@@ -1186,7 +1186,7 @@ export default {
1186 1186
         this.$message.error('抗凝剂未填')
1187 1187
       }else if(this.prescription.dialysate_formulation_name == ""){
1188 1188
         this.$message.error('透析液配方未填')
1189
-      }else if(this.prescription.replacement_total == ""){
1189
+      }else if(this.prescription.replacement_total == "" && this.prescription.mode_id == 2){
1190 1190
         this.$message.error('置换量未填')
1191 1191
       }else if(this.prescription.mode_id == ""){
1192 1192
         this.$message.error('透析模式未填')
@@ -1196,7 +1196,7 @@ export default {
1196 1196
         this.$message.error('透析器未填')
1197 1197
       }else if((this.prescription.prescription_doctor == 0 && this.prescription.creater == 0) && this.org_id == 9987){
1198 1198
         this.$message.error('医生签名未填')
1199
-      }else if(this.advices[0][0].advice_doctor == 0 && this.org_id != 9987){
1199
+      }else if(this.advices[0].length > 0 && this.advices[0][0].advice_doctor == 0 && this.org_id != 9987){
1200 1200
         this.$message.error('医生签名未填')
1201 1201
       }else if(this.afterdialysis.actual_treatment_hour == 0 && this.afterdialysis.actual_treatment_minute == 0){
1202 1202
         this.$message.error('实际治疗时间未填')
@@ -1218,30 +1218,49 @@ export default {
1218 1218
         this.$message.error('透析小结未填')
1219 1219
       }else if(this.afterdialysis.patient_gose == 0){
1220 1220
         this.$message.error('患者去向未填')
1221
+      }else if(this.afterdialysis.patient_gose == 3 && this.afterdialysis.observation_content == ""){
1222
+        this.$message.error('交待病房护士/患者/陪人观察内容未填')
1221 1223
       }else if(this.afterdialysis.creater == 0){
1222 1224
         this.$message.error('当班责任(核对)护士未填')
1223 1225
       }else if(this.dialysisOrder == null || this.dialysisOrder.finish_nurse == 0){
1224 1226
         this.$message.error('下机护士未填')
1225 1227
       }else if(this.tableAdvice.length > 0){
1228
+        let num = 0
1226 1229
         this.tableAdvice.map(item => {
1227
-          if(item.id > 0 && item.created_time){
1230
+          if(item.id > 0 && (item.created_time || item.start_time)){
1228 1231
             this.users.map(it => {
1229 1232
               if(it.id == item.advice_doctor){
1230
-                if(it.type != 2){
1233
+                if(it.user_type == 3){
1234
+                  num++
1231 1235
                   this.$message.error('存在不是医生保存的医嘱')
1236
+                }else if(it.id == item.execution_staff && item.execution_staff > 0){
1237
+                  if(it.user_type == 2){
1238
+                    num++
1239
+                    this.$message.error('存在不是护士执行的医嘱')
1240
+                  }
1241
+                }else if(it.id == item.checker && item.checker > 0){
1242
+                  if(it.user_type == 2){
1243
+                    num++
1244
+                    this.$message.error('存在不是护士核对的医嘱')
1245
+                  }
1232 1246
                 }
1233 1247
               }else if(it.id == item.execution_staff && item.execution_staff > 0){
1234
-                if(it.type != 3){
1248
+                if(it.user_type == 2){
1249
+                  num++
1235 1250
                   this.$message.error('存在不是护士执行的医嘱')
1236 1251
                 }
1237 1252
               }else if(it.id == item.checker && item.checker > 0){
1238
-                if(it.type != 3){
1253
+                if(it.user_type == 2){
1254
+                  num++
1239 1255
                   this.$message.error('存在不是护士核对的医嘱')
1240 1256
                 }
1241 1257
               }
1242 1258
             })
1243 1259
           }
1244 1260
         })
1261
+        if(num == 0){
1262
+          this.$message.success('核对完成')
1263
+        }
1245 1264
       }else{
1246 1265
         this.$message.success('核对完成')
1247 1266
       }

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

@@ -722,7 +722,7 @@ export default {
722 722
         this.$message.error('核对护士未填')
723 723
       }else if(this.finshForm.finish_nurse == ""){
724 724
         this.$message.error('下机护士未填')
725
-      }else if((this.afterdialysis.systolic_blood_pressure == 0 || this.afterdialysis.diastolic_blood_pressure == 0) && this.org_id == 9987){
725
+      }else if(this.afterdialysis.systolic_blood_pressure == 0 || this.afterdialysis.diastolic_blood_pressure == 0){
726 726
         this.$message.error('透后血压未填完整')
727 727
       }else if(this.afterdialysis.actual_treatment_hour == 0 && this.afterdialysis.actual_treatment_minute == 0){
728 728
         this.$message.error('实际治疗时间未填')
@@ -741,25 +741,42 @@ export default {
741 741
       }else if(this.summary.dialysis_summary == ""){
742 742
         this.$message.error('透析小结未填')
743 743
       }else if(this.tableAdvice.length > 0){
744
+        let num = 0
744 745
         this.tableAdvice.map(item => {
745
-          if(item.id > 0 && item.created_time){
746
+          if(item.id > 0 && (item.created_time || item.start_time)){
746 747
             this.users.map(it => {
747 748
               if(it.id == item.advice_doctor){
748
-                if(it.type != 2){
749
+                if(it.user_type == 3){
750
+                  num++
749 751
                   this.$message.error('存在不是医生保存的医嘱')
752
+                }else if(it.id == item.execution_staff && item.execution_staff > 0){
753
+                  if(it.user_type == 2){
754
+                    num++
755
+                    this.$message.error('存在不是护士执行的医嘱')
756
+                  }
757
+                }else if(it.id == item.checker && item.checker > 0){
758
+                  if(it.user_type == 2){
759
+                    num++
760
+                    this.$message.error('存在不是护士核对的医嘱')
761
+                  }
750 762
                 }
751 763
               }else if(it.id == item.execution_staff && item.execution_staff > 0){
752
-                if(it.type != 3){
764
+                if(it.user_type == 2){
765
+                  num++
753 766
                   this.$message.error('存在不是护士执行的医嘱')
754 767
                 }
755 768
               }else if(it.id == item.checker && item.checker > 0){
756
-                if(it.type != 3){
769
+                if(it.user_type == 2){
770
+                  num++
757 771
                   this.$message.error('存在不是护士核对的医嘱')
758 772
                 }
759 773
               }
760 774
             })
761 775
           }
762 776
         })
777
+        if(num == 0){
778
+          this.$message.success('核对完成')
779
+        }
763 780
       }else{
764 781
         this.$message.success('核对完成')
765 782
       }

+ 54 - 30
src/xt_pages/dialysis/template/DialysisPrintOrderSeventeen.vue View File

@@ -1346,7 +1346,7 @@ export default {
1346 1346
         this.$message.error('透前体温未填')
1347 1347
       }else if(this.receiverTreatmentAccess.posture == 0){
1348 1348
         this.$message.error('体位未填')
1349
-      }else if(this.predialysis.blood_access_part_opera_name == ''){
1349
+      }else if(this.predialysis.blood_access_part_opera_id == 0){
1350 1350
         this.$message.error('内瘘波动及震颤未填')
1351 1351
       }else if(this.predialysis.blood_access_part_id == 0){
1352 1352
         this.$message.error('中心静脉导管部位未填')
@@ -1388,38 +1388,62 @@ export default {
1388 1388
         this.$message.error('下机护士未填')
1389 1389
       }else if(this.special_record == ""){
1390 1390
         this.$message.error('特殊记录未填')
1391
-      }else if(this.monitors.length > 0){
1392
-        this.monitors.map(item => {
1393
-          if(item.id > 0 && item.operate_time){
1394
-            this.users.map(it => {
1395
-              if(it.id == item.monitoring_nurse){
1396
-                if(it.type != 3){
1397
-                  this.$message.error('存在不是护士保存的监测')
1398
-                }
1399
-              }
1400
-            })
1401
-          }
1402
-        })
1403
-      }else if(this.tableAdvice.length > 0){
1404
-        this.tableAdvice.map(item => {
1405
-          if(item.id > 0 && item.created_time){
1406
-            this.users.map(it => {
1407
-              if(it.id == item.advice_doctor){
1408
-                if(it.type != 2){
1409
-                  this.$message.error('存在不是医生保存的医嘱')
1410
-                }
1411
-              }else if(it.id == item.execution_staff && item.execution_staff > 0){
1412
-                if(it.type != 3){
1413
-                  this.$message.error('存在不是护士执行的医嘱')
1391
+      }else if(this.tableAdvice.length > 0 || this.monitors.length > 0){
1392
+        let num = 0
1393
+        if(this.monitors.length > 0){
1394
+          this.monitors.map(item => {
1395
+            if(item.id > 0 && item.operate_time){
1396
+              this.users.map(it => {
1397
+                if(it.id == item.monitoring_nurse){
1398
+                  if(it.user_type == 2){
1399
+                    num++
1400
+                    this.$message.error('存在不是护士保存的监测')
1401
+                  }
1414 1402
                 }
1415
-              }else if(it.id == item.checker && item.checker > 0){
1416
-                if(it.type != 3){
1417
-                  this.$message.error('存在不是护士核对的医嘱')
1403
+              })
1404
+            }
1405
+          })
1406
+        }
1407
+        if(this.tableAdvice.length > 0){
1408
+          this.tableAdvice.map(item => {
1409
+            if(item.id > 0 && (item.created_time || item.start_time)){
1410
+              this.users.map(it => {
1411
+                if(it.id == item.advice_doctor){
1412
+                  if(it.user_type == 3){
1413
+                    num++
1414
+                    this.$message.error('存在不是医生保存的医嘱')
1415
+                  }else if(it.id == item.execution_staff && item.execution_staff > 0){
1416
+                    if(it.user_type == 2){
1417
+                      num++
1418
+                      this.$message.error('存在不是护士执行的医嘱')
1419
+                    }
1420
+                  }else if(it.id == item.checker && item.checker > 0){
1421
+                    if(it.user_type == 2){
1422
+                      num++
1423
+                      this.$message.error('存在不是护士核对的医嘱')
1424
+                    }
1425
+                  }
1426
+                }else if(it.id == item.execution_staff && item.execution_staff > 0){
1427
+                  if(it.user_type == 2){
1428
+                    num++
1429
+                    this.$message.error('存在不是护士执行的医嘱')
1430
+                  }
1431
+                }else if(it.id == item.checker && item.checker > 0){
1432
+                  if(it.user_type == 2){
1433
+                    num++
1434
+                    this.$message.error('存在不是护士核对的医嘱')
1435
+                  }
1418 1436
                 }
1419
-              }
1420
-            })
1421
-          }
1437
+              })
1438
+            }
1422 1439
         })
1440
+        }
1441
+        
1442
+        if(num == 0){
1443
+          this.$message.success('核对完成')
1444
+        }
1445
+      }else{
1446
+        this.$message.success('核对完成')
1423 1447
       }
1424 1448
     },
1425 1449
     getAdminUser(id) {

+ 26 - 9
src/xt_pages/dialysis/template/DialysisPrintOrderSix.vue View File

@@ -1,6 +1,6 @@
1 1
 <template>
2 2
   <div>
3
-    <el-button type="primary" @click="checkData">一键核对</el-button>
3
+    <!-- <el-button type="primary" @click="checkData">一键核对</el-button> -->
4 4
     <div id="dialysis-print-box-1">
5 5
       <div
6 6
         id="dialysis-print-box-1-1"
@@ -1295,9 +1295,9 @@ export default {
1295 1295
         this.$message.error('透前导管未填')
1296 1296
       } else if (this.prescription.mode_id == '') {
1297 1297
         this.$message.error('透析方式未填')
1298
-      } else if (this.prescription.displace_liqui_part == 0) {
1298
+      } else if (this.prescription.displace_liqui_part == 0 && this.prescription.mode_id == 2) {
1299 1299
         this.$message.error('置换方式未填')
1300
-      } else if (this.prescription.displace_liqui_value == 0) {
1300
+      } else if (this.prescription.displace_liqui_value == 0 && this.prescription.mode_id == 2) {
1301 1301
         this.$message.error('置换量未填')
1302 1302
       } else if (this.prescription.blood_flow_volume == 0) {
1303 1303
         this.$message.error('血流量未填')
@@ -1307,9 +1307,9 @@ export default {
1307 1307
         this.$message.error('透析器未填')
1308 1308
       } else if (this.prescription.dialysis_irrigation == '') {
1309 1309
         this.$message.error('灌流器未填')
1310
-      } else if (this.prescription.plasma_separator == '') {
1310
+      } else if (this.prescription.plasma_separator == '' && this.org_id == 9538) {
1311 1311
         this.$message.error('血浆分离器未填')
1312
-      } else if (this.prescription.bilirubin_adsorption_column == '') {
1312
+      } else if (this.prescription.bilirubin_adsorption_column == '' && this.org_id == 9538) {
1313 1313
         this.$message.error('胆红素吸附柱未填')
1314 1314
       } else if (this.predialysis.weight_before == 0) {
1315 1315
         this.$message.error('透前体重未填')
@@ -1376,25 +1376,42 @@ export default {
1376 1376
       } else if (this.prescription.creater == 0) {
1377 1377
         this.$message.error('医生签名未填')
1378 1378
       }else if(this.tableAdvice.length > 0){
1379
+        let num = 0
1379 1380
         this.tableAdvice.map(item => {
1380
-          if(item.id > 0 && item.created_time){
1381
+          if(item.id > 0 && (item.created_time || item.start_time)){
1381 1382
             this.users.map(it => {
1382 1383
               if(it.id == item.advice_doctor){
1383
-                if(it.type != 2){
1384
+                if(it.user_type == 3){
1385
+                  num++
1384 1386
                   this.$message.error('存在不是医生保存的医嘱')
1387
+                }else if(it.id == item.execution_staff && item.execution_staff > 0){
1388
+                  if(it.user_type == 2){
1389
+                    num++
1390
+                    this.$message.error('存在不是护士执行的医嘱')
1391
+                  }
1392
+                }else if(it.id == item.checker && item.checker > 0){
1393
+                  if(it.user_type == 2){
1394
+                    num++
1395
+                    this.$message.error('存在不是护士核对的医嘱')
1396
+                  }
1385 1397
                 }
1386 1398
               }else if(it.id == item.execution_staff && item.execution_staff > 0){
1387
-                if(it.type != 3){
1399
+                if(it.user_type == 2){
1400
+                  num++
1388 1401
                   this.$message.error('存在不是护士执行的医嘱')
1389 1402
                 }
1390 1403
               }else if(it.id == item.checker && item.checker > 0){
1391
-                if(it.type != 3){
1404
+                if(it.user_type == 2){
1405
+                  num++
1392 1406
                   this.$message.error('存在不是护士核对的医嘱')
1393 1407
                 }
1394 1408
               }
1395 1409
             })
1396 1410
           }
1397 1411
         })
1412
+        if(num == 0){
1413
+          this.$message.success('核对完成')
1414
+        }
1398 1415
       }else{
1399 1416
         this.$message.success('核对完成')
1400 1417
       }

+ 54 - 32
src/xt_pages/dialysis/template/DialysisPrintOrderTen.vue View File

@@ -503,7 +503,7 @@
503 503
                         <td width="50">电导度<br />(ms/cm)</td>
504 504
                         <td width="50">超滤量<br />(ml)</td>
505 505
                         <td v-if="prescription.mode_id == 2 || prescription.mode_id == 5" width="50">
506
-                          置换量<br />(ml)
506
+                          置换量<br />(L)
507 507
                         </td>
508 508
                         <td width="200">病情变化及处理</td>
509 509
                         <td width="100">护士签名</td>
@@ -1198,9 +1198,9 @@ export default {
1198 1198
         this.$message.error('透前导管未填')
1199 1199
       }else if(this.prescription.mode_id == ""){
1200 1200
         this.$message.error('透析方式未填')
1201
-      }else if(this.prescription.displace_liqui_part == 0){
1201
+      }else if(this.prescription.displace_liqui_part == 0 && this.prescription.mode_id == 2){
1202 1202
         this.$message.error('置换方式未填')
1203
-      }else if(this.prescription.displace_liqui_value == 0){
1203
+      }else if(this.prescription.displace_liqui_value == 0 && this.prescription.mode_id == 2){
1204 1204
         this.$message.error('置换量未填')
1205 1205
       }else if(this.prescription.blood_flow_volume == 0){
1206 1206
         this.$message.error('血流量未填')
@@ -1276,38 +1276,60 @@ export default {
1276 1276
         this.$message.error('下机护士未填')
1277 1277
       }else if(this.prescription.prescription_doctor == 0){
1278 1278
         this.$message.error('治疗医生未填')
1279
-      }else if(this.monitors.length > 0){
1280
-        this.monitors.map(item => {
1281
-          if(item.id > 0 && item.operate_time){
1282
-            this.users.map(it => {
1283
-              if(it.id == item.monitoring_nurse){
1284
-                if(it.type != 3){
1285
-                  this.$message.error('存在不是护士保存的监测')
1279
+      }else if(this.tableAdvice.length > 0 || this.monitors.length > 0){
1280
+        let num = 0
1281
+        if(this.monitors.length > 0){
1282
+          this.monitors.map(item => {
1283
+            if(item.id > 0 && item.operate_time){
1284
+              this.users.map(it => {
1285
+                if(it.id == item.monitoring_nurse){
1286
+                  if(it.user_type == 2){
1287
+                    num++
1288
+                    this.$message.error('存在不是护士保存的监测')
1289
+                  }
1286 1290
                 }
1287
-              }
1288
-            })
1289
-          }
1290
-        })
1291
-      }else if(this.tableAdvice.length > 0){
1292
-        this.tableAdvice.map(item => {
1293
-          if(item.id > 0 && item.created_time){
1294
-            this.users.map(it => {
1295
-              if(it.id == item.advice_doctor){
1296
-                if(it.type != 2){
1297
-                  this.$message.error('存在不是医生保存的医嘱')
1298
-                }
1299
-              }else if(it.id == item.execution_staff && item.execution_staff > 0){
1300
-                if(it.type != 3){
1301
-                  this.$message.error('存在不是护士执行的医嘱')
1302
-                }
1303
-              }else if(it.id == item.checker && item.checker > 0){
1304
-                if(it.type != 3){
1305
-                  this.$message.error('存在不是护士核对的医嘱')
1291
+              })
1292
+            }
1293
+          })
1294
+        }
1295
+        if(this.tableAdvice.length > 0){
1296
+          this.tableAdvice.map(item => {
1297
+            if(item.id > 0 && (item.created_time || item.start_time)){
1298
+              this.users.map(it => {
1299
+                if(it.id == item.advice_doctor){
1300
+                  if(it.user_type == 3){
1301
+                    num++
1302
+                    this.$message.error('存在不是医生保存的医嘱')
1303
+                  }else if(it.id == item.execution_staff && item.execution_staff > 0){
1304
+                    if(it.user_type == 2){
1305
+                      num++
1306
+                      this.$message.error('存在不是护士执行的医嘱')
1307
+                    }
1308
+                  }else if(it.id == item.checker && item.checker > 0){
1309
+                    if(it.user_type == 2){
1310
+                      num++
1311
+                      this.$message.error('存在不是护士核对的医嘱')
1312
+                    }
1313
+                  }
1314
+                }else if(it.id == item.execution_staff && item.execution_staff > 0){
1315
+                  if(it.user_type == 2){
1316
+                    num++
1317
+                    this.$message.error('存在不是护士执行的医嘱')
1318
+                  }
1319
+                }else if(it.id == item.checker && item.checker > 0){
1320
+                  if(it.user_type == 2){
1321
+                    num++
1322
+                    this.$message.error('存在不是护士核对的医嘱')
1323
+                  }
1306 1324
                 }
1307
-              }
1308
-            })
1309
-          }
1325
+              })
1326
+            }
1310 1327
         })
1328
+        }
1329
+        
1330
+        if(num == 0){
1331
+          this.$message.success('核对完成')
1332
+        }
1311 1333
       }else{
1312 1334
         this.$message.success('核对完成')
1313 1335
       }

+ 45 - 6
src/xt_pages/dialysis/template/DialysisPrintOrderThirteen.vue View File

@@ -785,13 +785,13 @@ export default {
785 785
         this.$message.error('跌倒风险预防措施未填')
786 786
       }else if(this.prescription.prescription_doctor == 0){
787 787
         this.$message.error('上机医生未填')
788
-      }else if(this.dialysisOrder.washpipe_nurse == 0){
788
+      }else if(this.dialysisOrder == null || this.dialysisOrder.washpipe_nurse <= 0){
789 789
         this.$message.error('冲管护士未填')
790
-      }else if(this.dialysisOrder.puncture_nurse == 0){
790
+      }else if(this.dialysisOrder == null || this.dialysisOrder.puncture_nurse <= 0){
791 791
         this.$message.error('穿刺者未填')
792
-      }else if(this.dialysisOrder.start_nurse == 0){
792
+      }else if(this.dialysisOrder == null || this.dialysisOrder.start_nurse == 0){
793 793
         this.$message.error('上机护士未填')
794
-      }else if(this.dialysisOrder.finish_nurse == 0){
794
+      }else if(this.dialysisOrder == null || this.dialysisOrder.finish_nurse == 0){
795 795
         this.$message.error('下机护士未填')
796 796
       }else if(this.afterdialysis.temperature == 0){
797 797
         this.$message.error('透后体温未填')
@@ -815,12 +815,51 @@ export default {
815 815
         this.$message.error('透析小结未填')
816 816
       }else if(this.orderForm.start_nurse == ""){
817 817
         this.$message.error('记录者未填')
818
-      }else if(this.dialysisOrder != null && this.dialysisOrder.start_nurse == this.check.modifier && this.check.creater == 0){
818
+      }else if(this.dialysisOrder != null && ((this.dialysisOrder.start_nurse == this.check.modifier && this.check.creater == 0) || (this.check.creater == 0 && this.check.modifier == 0))){
819 819
         this.$message.error('二核护士未填')
820
-      }else if(this.dialysisOrder != null && this.dialysisOrder.start_nurse == this.check.creater && this.check.modifier == 0){
820
+      }else if(this.dialysisOrder != null && ((this.dialysisOrder.start_nurse == this.check.creater && this.check.modifier == 0) || (this.check.creater == 0 && this.check.modifier == 0))){
821 821
         this.$message.error('二核护士未填')
822 822
       }else if(this.summary.modifier == 0 && this.summary.creater == 0){
823 823
         this.$message.error('医生签名未填')
824
+      }else if(this.tableAdvice.length > 0){
825
+        let num = 0
826
+        this.tableAdvice.map(item => {
827
+          if(item.id > 0 && (item.created_time || item.start_time)){
828
+            this.users.map(it => {
829
+              if(it.id == item.advice_doctor){
830
+                if(it.user_type == 3){
831
+                  num++
832
+                  this.$message.error('存在不是医生保存的医嘱')
833
+                }else if(it.id == item.execution_staff && item.execution_staff > 0){
834
+                  if(it.user_type == 2){
835
+                    num++
836
+                    this.$message.error('存在不是护士执行的医嘱')
837
+                  }
838
+                }else if(it.id == item.checker && item.checker > 0){
839
+                  if(it.user_type == 2){
840
+                    num++
841
+                    this.$message.error('存在不是护士核对的医嘱')
842
+                  }
843
+                }
844
+              }else if(it.id == item.execution_staff && item.execution_staff > 0){
845
+                if(it.user_type == 2){
846
+                  num++
847
+                  this.$message.error('存在不是护士执行的医嘱')
848
+                }
849
+              }else if(it.id == item.checker && item.checker > 0){
850
+                if(it.user_type == 2){
851
+                  num++
852
+                  this.$message.error('存在不是护士核对的医嘱')
853
+                }
854
+              }
855
+            })
856
+          }
857
+        })
858
+        if(num == 0){
859
+          this.$message.success('核对完成')
860
+        }
861
+      }else{
862
+        this.$message.success('核对完成')
824 863
       }
825 864
     },
826 865
     getNewAge(UUserCard) {

+ 53 - 29
src/xt_pages/dialysis/template/DialysisPrintOrderThirty.vue View File

@@ -732,38 +732,62 @@ export default {
732 732
         this.$message.error('上机护士未填')
733 733
       }else if(this.prescription.prescription_doctor == 0){
734 734
         this.$message.error('医师签名未填')
735
-      }else if(this.monitors.length > 0){
736
-        this.monitors.map(item => {
737
-          if(item.id > 0 && item.operate_time){
738
-            this.users.map(it => {
739
-              if(it.id == item.monitoring_nurse){
740
-                if(it.type != 3){
741
-                  this.$message.error('存在不是护士保存的监测')
742
-                }
743
-              }
744
-            })
745
-          }
746
-        })
747
-      }else if(this.tableAdvice.length > 0){
748
-        this.tableAdvice.map(item => {
749
-          if(item.id > 0 && item.created_time){
750
-            this.users.map(it => {
751
-              if(it.id == item.advice_doctor){
752
-                if(it.type != 2){
753
-                  this.$message.error('存在不是医生保存的医嘱')
754
-                }
755
-              }else if(it.id == item.execution_staff && item.execution_staff > 0){
756
-                if(it.type != 3){
757
-                  this.$message.error('存在不是护士执行的医嘱')
735
+      }else if(this.tableAdvice.length > 0 || this.monitors.length > 0){
736
+        let num = 0
737
+        if(this.monitors.length > 0){
738
+          this.monitors.map(item => {
739
+            if(item.id > 0 && item.operate_time){
740
+              this.users.map(it => {
741
+                if(it.id == item.monitoring_nurse){
742
+                  if(it.user_type == 2){
743
+                    num++
744
+                    this.$message.error('存在不是护士保存的监测')
745
+                  }
758 746
                 }
759
-              }else if(it.id == item.checker && item.checker > 0){
760
-                if(it.type != 3){
761
-                  this.$message.error('存在不是护士核对的医嘱')
747
+              })
748
+            }
749
+          })
750
+        }
751
+        if(this.tableAdvice.length > 0){
752
+          this.tableAdvice.map(item => {
753
+            if(item.id > 0 && (item.created_time || item.start_time)){
754
+              this.users.map(it => {
755
+                if(it.id == item.advice_doctor){
756
+                  if(it.user_type == 3){
757
+                    num++
758
+                    this.$message.error('存在不是医生保存的医嘱')
759
+                  }else if(it.id == item.execution_staff && item.execution_staff > 0){
760
+                    if(it.user_type == 2){
761
+                      num++
762
+                      this.$message.error('存在不是护士执行的医嘱')
763
+                    }
764
+                  }else if(it.id == item.checker && item.checker > 0){
765
+                    if(it.user_type == 2){
766
+                      num++
767
+                      this.$message.error('存在不是护士核对的医嘱')
768
+                    }
769
+                  }
770
+                }else if(it.id == item.execution_staff && item.execution_staff > 0){
771
+                  if(it.user_type == 2){
772
+                    num++
773
+                    this.$message.error('存在不是护士执行的医嘱')
774
+                  }
775
+                }else if(it.id == item.checker && item.checker > 0){
776
+                  if(it.user_type == 2){
777
+                    num++
778
+                    this.$message.error('存在不是护士核对的医嘱')
779
+                  }
762 780
                 }
763
-              }
764
-            })
765
-          }
781
+              })
782
+            }
766 783
         })
784
+        }
785
+        
786
+        if(num == 0){
787
+          this.$message.success('核对完成')
788
+        }
789
+      }else{
790
+        this.$message.success('核对完成')
767 791
       }
768 792
     },
769 793
     getHemorrhage(hemorrhage){

+ 58 - 34
src/xt_pages/dialysis/template/DialysisPrintOrderTwenty.vue View File

@@ -1120,15 +1120,15 @@ export default {
1120 1120
         this.$message.error('内瘘震颤皮肤未填')
1121 1121
       }else if(this.predialysis.puncture_needle == ''){
1122 1122
         this.$message.error('针型未填')
1123
-      }else if(this.predialysis.catheter == '' || (this.predialysis.catheter ? this.predialysis.catheter.indexOf('置管') > -1 : false)){
1123
+      }else if(this.predialysis.catheter == '' || (this.predialysis.catheter ? this.predialysis.catheter.indexOf('置管') == -1 : false)){
1124 1124
         this.$message.error('置管未填')
1125 1125
       }else if(this.predialysis.blood_access_part_id == ''){
1126 1126
         this.$message.error('血管通路部位未填')
1127 1127
       }else if(this.predialysis.catheter_bend == 0){
1128 1128
         this.$message.error('导管打折未填')
1129
-      }else if(this.predialysis.catheter == '' || (this.predialysis.catheter ? this.predialysis.catheter.indexOf('穿刺口') > -1 : false)){
1129
+      }else if(this.predialysis.catheter == '' || (this.predialysis.catheter ? this.predialysis.catheter.indexOf('穿刺口') == -1 : false)){
1130 1130
         this.$message.error('穿刺口未填')
1131
-      }else if(this.predialysis.catheter == '' || (this.predialysis.catheter ? this.predialysis.catheter.indexOf('导管吸壁') > -1 : false)){
1131
+      }else if(this.predialysis.catheter == '' || (this.predialysis.catheter ? this.predialysis.catheter.indexOf('导管吸壁') == -1 : false)){
1132 1132
         this.$message.error('导管吸壁未填')
1133 1133
       }else if(this.afterdialysis.cvc_a == 0){
1134 1134
         this.$message.error('容量A未填')
@@ -1158,9 +1158,9 @@ export default {
1158 1158
         this.$message.error('医生签名未填')
1159 1159
       }else if(this.dialysisOrder.puncture_nurse == 0){
1160 1160
         this.$message.error('上机护士未填')
1161
-      }else if(this.dialysisOrder != null && this.dialysisOrder.puncture_nurse == this.check.modifier && this.check.creater == 0){
1161
+      }else if(this.dialysisOrder != null && ((this.dialysisOrder.puncture_nurse == this.check.modifier && this.check.creater == 0) || (this.check.modifier == 0 && this.check.creater == 0))){
1162 1162
         this.$message.error('核对护士未填')
1163
-      }else if(this.dialysisOrder != null && this.dialysisOrder.puncture_nurse == this.check.creater && this.check.modifier == 0){
1163
+      }else if(this.dialysisOrder != null && ((this.dialysisOrder.puncture_nurse == this.check.creater && this.check.modifier == 0) || (this.check.modifier == 0 && this.check.creater == 0))){
1164 1164
         this.$message.error('核对护士未填')
1165 1165
       }else if(this.afterdialysis.actual_treatment_hour == 0 && this.afterdialysis.actual_treatment_minute == 0){
1166 1166
         this.$message.error('实际治疗时间未填')
@@ -1188,38 +1188,62 @@ export default {
1188 1188
         this.$message.error('当班责任护士未填')
1189 1189
       }else if(this.dialysisOrder.finish_nurse == 0){
1190 1190
         this.$message.error('下机护士和护士签名未填')
1191
-      }else if(this.monitors.length > 0){
1192
-        this.monitors.map(item => {
1193
-          if(item.id > 0 && item.operate_time){
1194
-            this.users.map(it => {
1195
-              if(it.id == item.monitoring_nurse){
1196
-                if(it.type != 3){
1197
-                  this.$message.error('存在不是护士保存的监测')
1198
-                }
1199
-              }
1200
-            })
1201
-          }
1202
-        })
1203
-      }else if(this.tableAdvice.length > 0){
1204
-        this.tableAdvice.map(item => {
1205
-          if(item.id > 0 && item.created_time){
1206
-            this.users.map(it => {
1207
-              if(it.id == item.advice_doctor){
1208
-                if(it.type != 2){
1209
-                  this.$message.error('存在不是医生保存的医嘱')
1210
-                }
1211
-              }else if(it.id == item.execution_staff && item.execution_staff > 0){
1212
-                if(it.type != 3){
1213
-                  this.$message.error('存在不是护士执行的医嘱')
1191
+      }else if(this.tableAdvice.length > 0 || this.monitors.length > 0){
1192
+        let num = 0
1193
+        if(this.monitors.length > 0){
1194
+          this.monitors.map(item => {
1195
+            if(item.id > 0 && item.operate_time){
1196
+              this.users.map(it => {
1197
+                if(it.id == item.monitoring_nurse){
1198
+                  if(it.user_type == 2){
1199
+                    num++
1200
+                    this.$message.error('存在不是护士保存的监测')
1201
+                  }
1214 1202
                 }
1215
-              }else if(it.id == item.checker && item.checker > 0){
1216
-                if(it.type != 3){
1217
-                  this.$message.error('存在不是护士核对的医嘱')
1203
+              })
1204
+            }
1205
+          })
1206
+        }
1207
+        if(this.tableAdvice.length > 0){
1208
+          this.tableAdvice.map(item => {
1209
+            if(item.id > 0 && (item.created_time || item.start_time)){
1210
+              this.users.map(it => {
1211
+                if(it.id == item.advice_doctor){
1212
+                  if(it.user_type == 3){
1213
+                    num++
1214
+                    this.$message.error('存在不是医生保存的医嘱')
1215
+                  }else if(it.id == item.execution_staff && item.execution_staff > 0){
1216
+                    if(it.user_type == 2){
1217
+                      num++
1218
+                      this.$message.error('存在不是护士执行的医嘱')
1219
+                    }
1220
+                  }else if(it.id == item.checker && item.checker > 0){
1221
+                    if(it.user_type == 2){
1222
+                      num++
1223
+                      this.$message.error('存在不是护士核对的医嘱')
1224
+                    }
1225
+                  }
1226
+                }else if(it.id == item.execution_staff && item.execution_staff > 0){
1227
+                  if(it.user_type == 2){
1228
+                    num++
1229
+                    this.$message.error('存在不是护士执行的医嘱')
1230
+                  }
1231
+                }else if(it.id == item.checker && item.checker > 0){
1232
+                  if(it.user_type == 2){
1233
+                    num++
1234
+                    this.$message.error('存在不是护士核对的医嘱')
1235
+                  }
1218 1236
                 }
1219
-              }
1220
-            })
1221
-          }
1237
+              })
1238
+            }
1222 1239
         })
1240
+        }
1241
+        
1242
+        if(num == 0){
1243
+          this.$message.success('核对完成')
1244
+        }
1245
+      }else{
1246
+        this.$message.success('核对完成')
1223 1247
       }
1224 1248
     },
1225 1249
     getNewAge(UUserCard) {

+ 43 - 1
src/xt_pages/dialysis/template/DialysisPrintOrderTwentyEight.vue View File

@@ -1805,12 +1805,54 @@ export default {
1805 1805
           this.$message.error('医生未填')
1806 1806
         }else if(this.dialysisOrder.start_nurse == 0){
1807 1807
           this.$message.error('责任护士未填')
1808
-        }else if(this.dialysisOrder.puncture_nurse == 0){
1808
+        }else if(this.dialysisOrder == null || this.dialysisOrder.puncture_nurse == 0){
1809 1809
           this.$message.error('穿刺护士未填')
1810 1810
         }else if(this.dialysisOrder != null && this.dialysisOrder.start_nurse == this.check.modifier && this.check.creater == 0){
1811 1811
           this.$message.error('核对护士未填')
1812 1812
         }else if(this.dialysisOrder != null && this.dialysisOrder.start_nurse == this.check.creater && this.check.modifier == 0){
1813 1813
           this.$message.error('核对护士未填')
1814
+        }else if(this.tableAdvice.length > 0){
1815
+          let num = 0
1816
+          if(this.tableAdvice.length > 0){
1817
+            this.tableAdvice.map(item => {
1818
+              if(item.id > 0 && (item.created_time || item.start_time)){
1819
+                this.users.map(it => {
1820
+                  if(it.id == item.advice_doctor){
1821
+                    if(it.user_type == 3){
1822
+                      num++
1823
+                      this.$message.error('存在不是医生保存的医嘱')
1824
+                    }else if(it.id == item.execution_staff && item.execution_staff > 0){
1825
+                      if(it.user_type == 2){
1826
+                        num++
1827
+                        this.$message.error('存在不是护士执行的医嘱')
1828
+                      }
1829
+                    }else if(it.id == item.checker && item.checker > 0){
1830
+                      if(it.user_type == 2){
1831
+                        num++
1832
+                        this.$message.error('存在不是护士核对的医嘱')
1833
+                      }
1834
+                    }
1835
+                  }else if(it.id == item.execution_staff && item.execution_staff > 0){
1836
+                    if(it.user_type == 2){
1837
+                      num++
1838
+                      this.$message.error('存在不是护士执行的医嘱')
1839
+                    }
1840
+                  }else if(it.id == item.checker && item.checker > 0){
1841
+                    if(it.user_type == 2){
1842
+                      num++
1843
+                      this.$message.error('存在不是护士核对的医嘱')
1844
+                    }
1845
+                  }
1846
+                })
1847
+              }
1848
+          })
1849
+          }
1850
+          
1851
+          if(num == 0){
1852
+            this.$message.success('核对完成')
1853
+          }
1854
+        }else{
1855
+          this.$message.success('核对完成')
1814 1856
         }
1815 1857
       },
1816 1858
       getComplication(complication){

+ 40 - 18
src/xt_pages/dialysis/template/DialysisPrintOrderTwentyFive.vue View File

@@ -1212,7 +1212,7 @@ export default {
1212 1212
           this.$message.error('透析小结未填')
1213 1213
         }else if(this.prescription.creater == 0){
1214 1214
           this.$message.error('医生签名未填')
1215
-        }else if(this.dialysisOrder.puncture_nurse == 0){
1215
+        }else if(this.dialysisOrder == null || this.dialysisOrder.puncture_nurse <= 0){
1216 1216
           this.$message.error('穿刺护士未填')
1217 1217
         }else if(this.dialysisOrder != null && this.dialysisOrder.start_nurse == this.check.modifier && this.check.creater == 0){
1218 1218
           this.$message.error('核对护士未填')
@@ -1223,25 +1223,47 @@ export default {
1223 1223
         }else if(this.dialysisOrder.finish_nurse == 0){
1224 1224
           this.$message.error('下机护士未填')
1225 1225
         }else if(this.tableAdvice.length > 0){
1226
-          this.tableAdvice.map(item => {
1227
-            if(item.id > 0 && item.created_time){
1228
-              this.users.map(it => {
1229
-                if(it.id == item.advice_doctor){
1230
-                  if(it.type != 2){
1231
-                    this.$message.error('存在不是医生保存的医嘱')
1232
-                  }
1233
-                }else if(it.id == item.execution_staff && item.execution_staff > 0){
1234
-                  if(it.type != 3){
1235
-                    this.$message.error('存在不是护士执行的医嘱')
1236
-                  }
1237
-                }else if(it.id == item.checker && item.checker > 0){
1238
-                  if(it.type != 3){
1239
-                    this.$message.error('存在不是护士核对的医嘱')
1226
+          let num = 0
1227
+          if(this.tableAdvice.length > 0){
1228
+            this.tableAdvice.map(item => {
1229
+              if(item.id > 0 && (item.created_time || item.start_time)){
1230
+                this.users.map(it => {
1231
+                  if(it.id == item.advice_doctor){
1232
+                    if(it.user_type == 3){
1233
+                      num++
1234
+                      this.$message.error('存在不是医生保存的医嘱')
1235
+                    }else if(it.id == item.execution_staff && item.execution_staff > 0){
1236
+                      if(it.user_type == 2){
1237
+                        num++
1238
+                        this.$message.error('存在不是护士执行的医嘱')
1239
+                      }
1240
+                    }else if(it.id == item.checker && item.checker > 0){
1241
+                      if(it.user_type == 2){
1242
+                        num++
1243
+                        this.$message.error('存在不是护士核对的医嘱')
1244
+                      }
1245
+                    }
1246
+                  }else if(it.id == item.execution_staff && item.execution_staff > 0){
1247
+                    if(it.user_type == 2){
1248
+                      num++
1249
+                      this.$message.error('存在不是护士执行的医嘱')
1250
+                    }
1251
+                  }else if(it.id == item.checker && item.checker > 0){
1252
+                    if(it.user_type == 2){
1253
+                      num++
1254
+                      this.$message.error('存在不是护士核对的医嘱')
1255
+                    }
1240 1256
                   }
1241
-                }
1242
-              })
1243
-            }
1257
+                })
1258
+              }
1244 1259
           })
1260
+          }
1261
+          
1262
+          if(num == 0){
1263
+            this.$message.success('核对完成')
1264
+          }
1265
+        }else{
1266
+          this.$message.success('核对完成')
1245 1267
         }
1246 1268
       },
1247 1269
       getComplication(complication){

+ 58 - 2
src/xt_pages/dialysis/template/DialysisPrintOrderTwentyFour.vue View File

@@ -1746,12 +1746,68 @@ export default {
1746 1746
         this.$message.error('导管特殊情况未填')
1747 1747
       }else if(this.afterdialysis.complication == ""){
1748 1748
         this.$message.error('透后并发症未填')
1749
-      }else if(this.dialysisOrder.washpipe_nurse == 0){
1749
+      }else if(this.dialysisOrder == null || this.dialysisOrder.washpipe_nurse <= 0){
1750 1750
         this.$message.error('冲管护士未填')
1751
-      }else if(this.dialysisOrder.puncture_nurse == 0){
1751
+      }else if(this.dialysisOrder == null || this.dialysisOrder.puncture_nurse <= 0){
1752 1752
         this.$message.error('穿刺护士未填')
1753 1753
       }else if(this.dialysisOrder.start_nurse == 0){
1754 1754
         this.$message.error('责任护士未填')
1755
+      }else if(this.tableAdvice.length > 0 || this.monitors.length > 0){
1756
+        let num = 0
1757
+        if(this.monitors.length > 0){
1758
+          this.monitors.map(item => {
1759
+            if(item.id > 0 && item.operate_time){
1760
+              this.users.map(it => {
1761
+                if(it.id == item.monitoring_nurse){
1762
+                  if(it.user_type == 2){
1763
+                    num++
1764
+                    this.$message.error('存在不是护士保存的监测')
1765
+                  }
1766
+                }
1767
+              })
1768
+            }
1769
+          })
1770
+        }
1771
+        if(this.tableAdvice.length > 0){
1772
+          this.tableAdvice.map(item => {
1773
+            if(item.id > 0 && (item.created_time || item.start_time)){
1774
+              this.users.map(it => {
1775
+                if(it.id == item.advice_doctor){
1776
+                  if(it.user_type == 3){
1777
+                    num++
1778
+                    this.$message.error('存在不是医生保存的医嘱')
1779
+                  }else if(it.id == item.execution_staff && item.execution_staff > 0){
1780
+                    if(it.user_type == 2){
1781
+                      num++
1782
+                      this.$message.error('存在不是护士执行的医嘱')
1783
+                    }
1784
+                  }else if(it.id == item.checker && item.checker > 0){
1785
+                    if(it.user_type == 2){
1786
+                      num++
1787
+                      this.$message.error('存在不是护士核对的医嘱')
1788
+                    }
1789
+                  }
1790
+                }else if(it.id == item.execution_staff && item.execution_staff > 0){
1791
+                  if(it.user_type == 2){
1792
+                    num++
1793
+                    this.$message.error('存在不是护士执行的医嘱')
1794
+                  }
1795
+                }else if(it.id == item.checker && item.checker > 0){
1796
+                  if(it.user_type == 2){
1797
+                    num++
1798
+                    this.$message.error('存在不是护士核对的医嘱')
1799
+                  }
1800
+                }
1801
+              })
1802
+            }
1803
+        })
1804
+        }
1805
+        
1806
+        if(num == 0){
1807
+          this.$message.success('核对完成')
1808
+        }
1809
+      }else{
1810
+        this.$message.success('核对完成')
1755 1811
       }
1756 1812
     },
1757 1813
     otherSealingFluidDispose(sealing_fluid_dispose){

+ 54 - 30
src/xt_pages/dialysis/template/DialysisPrintOrderTwentyNine.vue View File

@@ -776,44 +776,68 @@ export default {
776 776
         this.$message.error('透析宣教未填')
777 777
       }else if(this.summary.dialysis_summary == ""){
778 778
         this.$message.error('透析小结未填')
779
-      }else if(this.dialysisOrder.puncture_nurse == 0){
779
+      }else if(this.dialysisOrder == null || this.dialysisOrder.puncture_nurse <= 0){
780 780
         this.$message.error('穿刺护士未填')
781 781
       }else if(this.dialysisOrder.start_nurse == 0){
782 782
         this.$message.error('治疗护士未填')
783 783
       }else if(this.prescription.prescription_doctor == 0){
784 784
         this.$message.error('医生未填')
785
-      }else if(this.monitors.length > 0){
786
-        this.monitors.map(item => {
787
-          if(item.id > 0 && item.operate_time){
788
-            this.users.map(it => {
789
-              if(it.id == item.monitoring_nurse){
790
-                if(it.type != 3){
791
-                  this.$message.error('存在不是护士保存的监测')
792
-                }
793
-              }
794
-            })
795
-          }
796
-        })
797
-      }else if(this.tableAdvice.length > 0){
798
-        this.tableAdvice.map(item => {
799
-          if(item.id > 0 && item.created_time){
800
-            this.users.map(it => {
801
-              if(it.id == item.advice_doctor){
802
-                if(it.type != 2){
803
-                  this.$message.error('存在不是医生保存的医嘱')
804
-                }
805
-              }else if(it.id == item.execution_staff && item.execution_staff > 0){
806
-                if(it.type != 3){
807
-                  this.$message.error('存在不是护士执行的医嘱')
785
+      }else if(this.tableAdvice.length > 0 || this.monitors.length > 0){
786
+        let num = 0
787
+        if(this.monitors.length > 0){
788
+          this.monitors.map(item => {
789
+            if(item.id > 0 && item.operate_time){
790
+              this.users.map(it => {
791
+                if(it.id == item.monitoring_nurse){
792
+                  if(it.user_type == 2){
793
+                    num++
794
+                    this.$message.error('存在不是护士保存的监测')
795
+                  }
808 796
                 }
809
-              }else if(it.id == item.checker && item.checker > 0){
810
-                if(it.type != 3){
811
-                  this.$message.error('存在不是护士核对的医嘱')
797
+              })
798
+            }
799
+          })
800
+        }
801
+        if(this.tableAdvice.length > 0){
802
+          this.tableAdvice.map(item => {
803
+            if(item.id > 0 && (item.created_time || item.start_time)){
804
+              this.users.map(it => {
805
+                if(it.id == item.advice_doctor){
806
+                  if(it.user_type == 3){
807
+                    num++
808
+                    this.$message.error('存在不是医生保存的医嘱')
809
+                  }else if(it.id == item.execution_staff && item.execution_staff > 0){
810
+                    if(it.user_type == 2){
811
+                      num++
812
+                      this.$message.error('存在不是护士执行的医嘱')
813
+                    }
814
+                  }else if(it.id == item.checker && item.checker > 0){
815
+                    if(it.user_type == 2){
816
+                      num++
817
+                      this.$message.error('存在不是护士核对的医嘱')
818
+                    }
819
+                  }
820
+                }else if(it.id == item.execution_staff && item.execution_staff > 0){
821
+                  if(it.user_type == 2){
822
+                    num++
823
+                    this.$message.error('存在不是护士执行的医嘱')
824
+                  }
825
+                }else if(it.id == item.checker && item.checker > 0){
826
+                  if(it.user_type == 2){
827
+                    num++
828
+                    this.$message.error('存在不是护士核对的医嘱')
829
+                  }
812 830
                 }
813
-              }
814
-            })
815
-          }
831
+              })
832
+            }
816 833
         })
834
+        }
835
+        
836
+        if(num == 0){
837
+          this.$message.success('核对完成')
838
+        }
839
+      }else{
840
+        this.$message.success('核对完成')
817 841
       }
818 842
     },
819 843
     getHemorrhage(hemorrhage){

+ 50 - 21
src/xt_pages/dialysis/template/DialysisPrintOrderTwentySeven.vue View File

@@ -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>
@@ -1422,25 +1429,47 @@ export default {
1422 1429
       }else if(this.dialysisOrder.finish_nurse == 0){
1423 1430
         this.$message.error('下机护士未填')
1424 1431
       }else if(this.tableAdvice.length > 0){
1425
-        this.tableAdvice.map(item => {
1426
-          if(item.id > 0 && item.created_time){
1427
-            this.users.map(it => {
1428
-              if(it.id == item.advice_doctor){
1429
-                if(it.type != 2){
1430
-                  this.$message.error('存在不是医生保存的医嘱')
1431
-                }
1432
-              }else if(it.id == item.execution_staff && item.execution_staff > 0){
1433
-                if(it.type != 3){
1434
-                  this.$message.error('存在不是护士执行的医嘱')
1435
-                }
1436
-              }else if(it.id == item.checker && item.checker > 0){
1437
-                if(it.type != 3){
1438
-                  this.$message.error('存在不是护士核对的医嘱')
1432
+        let num = 0
1433
+        if(this.tableAdvice.length > 0){
1434
+          this.tableAdvice.map(item => {
1435
+            if(item.id > 0 && (item.created_time || item.start_time)){
1436
+              this.users.map(it => {
1437
+                if(it.id == item.advice_doctor){
1438
+                  if(it.user_type == 3){
1439
+                    num++
1440
+                    this.$message.error('存在不是医生保存的医嘱')
1441
+                  }else if(it.id == item.execution_staff && item.execution_staff > 0){
1442
+                    if(it.user_type == 2){
1443
+                      num++
1444
+                      this.$message.error('存在不是护士执行的医嘱')
1445
+                    }
1446
+                  }else if(it.id == item.checker && item.checker > 0){
1447
+                    if(it.user_type == 2){
1448
+                      num++
1449
+                      this.$message.error('存在不是护士核对的医嘱')
1450
+                    }
1451
+                  }
1452
+                }else if(it.id == item.execution_staff && item.execution_staff > 0){
1453
+                  if(it.user_type == 2){
1454
+                    num++
1455
+                    this.$message.error('存在不是护士执行的医嘱')
1456
+                  }
1457
+                }else if(it.id == item.checker && item.checker > 0){
1458
+                  if(it.user_type == 2){
1459
+                    num++
1460
+                    this.$message.error('存在不是护士核对的医嘱')
1461
+                  }
1439 1462
                 }
1440
-              }
1441
-            })
1442
-          }
1463
+              })
1464
+            }
1443 1465
         })
1466
+        }
1467
+        
1468
+        if(num == 0){
1469
+          this.$message.success('核对完成')
1470
+        }
1471
+      }else{
1472
+        this.$message.success('核对完成')
1444 1473
       }
1445 1474
     },
1446 1475
     getComplication(complication){

+ 39 - 17
src/xt_pages/dialysis/template/DialysisPrintOrderTwentySix.vue View File

@@ -1320,25 +1320,47 @@ export default {
1320 1320
       }else if(this.dialysisOrder != null && this.dialysisOrder.start_nurse == this.check.creater && this.check.modifier == 0){
1321 1321
         this.$message.error('核对护士未填')
1322 1322
       }else if(this.tableAdvice.length > 0){
1323
-        this.tableAdvice.map(item => {
1324
-          if(item.id > 0 && item.created_time){
1325
-            this.users.map(it => {
1326
-              if(it.id == item.advice_doctor){
1327
-                if(it.type != 2){
1328
-                  this.$message.error('存在不是医生保存的医嘱')
1329
-                }
1330
-              }else if(it.id == item.execution_staff && item.execution_staff > 0){
1331
-                if(it.type != 3){
1332
-                  this.$message.error('存在不是护士执行的医嘱')
1333
-                }
1334
-              }else if(it.id == item.checker && item.checker > 0){
1335
-                if(it.type != 3){
1336
-                  this.$message.error('存在不是护士核对的医嘱')
1323
+        let num = 0
1324
+        if(this.tableAdvice.length > 0){
1325
+          this.tableAdvice.map(item => {
1326
+            if(item.id > 0 && (item.created_time || item.start_time)){
1327
+              this.users.map(it => {
1328
+                if(it.id == item.advice_doctor){
1329
+                  if(it.user_type == 3){
1330
+                    num++
1331
+                    this.$message.error('存在不是医生保存的医嘱')
1332
+                  }else if(it.id == item.execution_staff && item.execution_staff > 0){
1333
+                    if(it.user_type == 2){
1334
+                      num++
1335
+                      this.$message.error('存在不是护士执行的医嘱')
1336
+                    }
1337
+                  }else if(it.id == item.checker && item.checker > 0){
1338
+                    if(it.user_type == 2){
1339
+                      num++
1340
+                      this.$message.error('存在不是护士核对的医嘱')
1341
+                    }
1342
+                  }
1343
+                }else if(it.id == item.execution_staff && item.execution_staff > 0){
1344
+                  if(it.user_type == 2){
1345
+                    num++
1346
+                    this.$message.error('存在不是护士执行的医嘱')
1347
+                  }
1348
+                }else if(it.id == item.checker && item.checker > 0){
1349
+                  if(it.user_type == 2){
1350
+                    num++
1351
+                    this.$message.error('存在不是护士核对的医嘱')
1352
+                  }
1337 1353
                 }
1338
-              }
1339
-            })
1340
-          }
1354
+              })
1355
+            }
1341 1356
         })
1357
+        }
1358
+        
1359
+        if(num == 0){
1360
+          this.$message.success('核对完成')
1361
+        }
1362
+      }else{
1363
+        this.$message.success('核对完成')
1342 1364
       }
1343 1365
     },
1344 1366
     getNewAge(UUserCard) {

+ 56 - 31
src/xt_pages/dialysis/template/DialysisPrintOrderTwentyTwo.vue View File

@@ -1386,7 +1386,7 @@ export default {
1386 1386
         this.$message.error('患者去向未填')
1387 1387
       }else if(this.dialysisOrder.start_nurse == 0){
1388 1388
         this.$message.error('责任护士未填')
1389
-      }else if(this.dialysisOrder.puncture_nurse == 0){
1389
+      }else if(this.dialysisOrder == null || this.dialysisOrder.puncture_nurse == 0){
1390 1390
         this.$message.error('穿刺者未填')
1391 1391
       }else if(this.dialysisOrder == null && this.check.creater == 0){
1392 1392
         this.$message.error('核对人未填')
@@ -1404,7 +1404,7 @@ export default {
1404 1404
         this.$message.error('治疗方式未填')
1405 1405
       }else if(this.prescription.dialysis_duration_hour == 0 && this.prescription.dialysis_duration_minute == 0){
1406 1406
         this.$message.error('透析时间未填')
1407
-      }else if(this.prescription.body_fluid == 0){
1407
+      }else if(this.prescription.body_fluid == 0 && this.prescription.body_fluid_other == ""){
1408 1408
         this.$message.error('体液过多症状未填')
1409 1409
       }else if(this.prescription.dialyzer_perfusion_apparatus == ""){
1410 1410
         this.$message.error('透析器型号未填')
@@ -1432,38 +1432,62 @@ export default {
1432 1432
         this.$message.error('实际超滤量未填')
1433 1433
       }else if(this.afterdialysis.weight_after == 0){
1434 1434
         this.$message.error('透后体重未填')
1435
-      }else if(this.monitors.length > 0){
1436
-        this.monitors.map(item => {
1437
-          if(item.id > 0 && item.operate_time){
1438
-            this.users.map(it => {
1439
-              if(it.id == item.monitoring_nurse){
1440
-                if(it.type != 3){
1441
-                  this.$message.error('存在不是护士保存的监测')
1442
-                }
1443
-              }
1444
-            })
1445
-          }
1446
-        })
1447
-      }else if(this.advices.length > 0){
1448
-        this.advices.map(item => {
1449
-          if(item.id > 0 && item.created_time){
1450
-            this.users.map(it => {
1451
-              if(it.id == item.advice_doctor){
1452
-                if(it.type != 2){
1453
-                  this.$message.error('存在不是医生保存的医嘱')
1454
-                }
1455
-              }else if(it.id == item.execution_staff && item.execution_staff > 0){
1456
-                if(it.type != 3){
1457
-                  this.$message.error('存在不是护士执行的医嘱')
1435
+      }else if(this.tableAdvice.length > 0 || this.monitors.length > 0){
1436
+        let num = 0
1437
+        if(this.monitors.length > 0){
1438
+          this.monitors.map(item => {
1439
+            if(item.id > 0 && item.operate_time){
1440
+              this.users.map(it => {
1441
+                if(it.id == item.monitoring_nurse){
1442
+                  if(it.user_type == 2){
1443
+                    num++
1444
+                    this.$message.error('存在不是护士保存的监测')
1445
+                  }
1458 1446
                 }
1459
-              }else if(it.id == item.checker && item.checker > 0){
1460
-                if(it.type != 3){
1461
-                  this.$message.error('存在不是护士核对的医嘱')
1447
+              })
1448
+            }
1449
+          })
1450
+        }
1451
+        if(this.tableAdvice.length > 0){
1452
+          this.tableAdvice.map(item => {
1453
+            if(item.id > 0 && (item.created_time || item.start_time)){
1454
+              this.users.map(it => {
1455
+                if(it.id == item.advice_doctor){
1456
+                  if(it.user_type == 3){
1457
+                    num++
1458
+                    this.$message.error('存在不是医生保存的医嘱')
1459
+                  }else if(it.id == item.execution_staff && item.execution_staff > 0){
1460
+                    if(it.user_type == 2){
1461
+                      num++
1462
+                      this.$message.error('存在不是护士执行的医嘱')
1463
+                    }
1464
+                  }else if(it.id == item.checker && item.checker > 0){
1465
+                    if(it.user_type == 2){
1466
+                      num++
1467
+                      this.$message.error('存在不是护士核对的医嘱')
1468
+                    }
1469
+                  }
1470
+                }else if(it.id == item.execution_staff && item.execution_staff > 0){
1471
+                  if(it.user_type == 2){
1472
+                    num++
1473
+                    this.$message.error('存在不是护士执行的医嘱')
1474
+                  }
1475
+                }else if(it.id == item.checker && item.checker > 0){
1476
+                  if(it.user_type == 2){
1477
+                    num++
1478
+                    this.$message.error('存在不是护士核对的医嘱')
1479
+                  }
1462 1480
                 }
1463
-              }
1464
-            })
1465
-          }
1481
+              })
1482
+            }
1466 1483
         })
1484
+        }
1485
+        
1486
+        if(num == 0){
1487
+          this.$message.success('核对完成')
1488
+        }
1489
+      }else{
1490
+        this.$message.success('核对完成')
1467 1491
       }
1468 1492
     },
1469 1493
     getPartName(id) {
@@ -1733,6 +1757,7 @@ export default {
1733 1757
         }
1734 1758
 
1735 1759
         this.advices = response.data.data.advices;
1760
+        this.tableAdvice = response.data.data.advices;
1736 1761
         this.monitors = response.data.data.monitors;
1737 1762
         this.summary = response.data.data.summary;
1738 1763
         this.org_template_info = response.data.data.org_template_info;

+ 45 - 30
src/xt_pages/dialysis/template/dialysisPrintOrderTwelve.vue View File

@@ -1276,7 +1276,7 @@ export default {
1276 1276
         this.$message.error('碳酸氢根未填')
1277 1277
       }else if(this.predialysis.blood_access_part_opera_name == ''){
1278 1278
         this.$message.error('血管通路未填')
1279
-      }else if(this.dialysisOrder.puncture_nurse == 0){
1279
+      }else if(this.dialysisOrder == null || this.dialysisOrder.puncture_nurse <= 0){
1280 1280
         this.$message.error('穿刺者未填')
1281 1281
       }else if(this.predialysis.weight_before == 0){
1282 1282
         this.$message.error('透前体重未填')
@@ -1302,38 +1302,53 @@ export default {
1302 1302
         this.$message.error('核对护士未填')
1303 1303
       }else if(this.doctor_advices.length > 0 && this.doctor_advices[0].execution_staff == 0){
1304 1304
         this.$message.error('护士签名未填')
1305
-      }else if(this.monitors.length > 0){
1306
-        this.monitors.map(item => {
1307
-          if(item.id > 0 && item.operate_time){
1308
-            this.users.map(it => {
1309
-              if(it.id == item.monitoring_nurse){
1310
-                if(it.type != 3){
1311
-                  this.$message.error('存在不是护士保存的监测')
1312
-                }
1313
-              }
1314
-            })
1315
-          }
1316
-        })
1317
-      }else if(this.tableAdvice.length > 0){
1318
-        this.tableAdvice.map(item => {
1319
-          if(item.id > 0 && item.created_time){
1320
-            this.users.map(it => {
1321
-              if(it.id == item.advice_doctor){
1322
-                if(it.type != 2){
1323
-                  this.$message.error('存在不是医生保存的医嘱')
1324
-                }
1325
-              }else if(it.id == item.execution_staff && item.execution_staff > 0){
1326
-                if(it.type != 3){
1327
-                  this.$message.error('存在不是护士执行的医嘱')
1305
+      }else if(this.tableAdvice.length > 0 || this.monitors.length > 0){
1306
+        let num = 0
1307
+        if(this.monitors.length > 0){
1308
+          this.monitors.map(item => {
1309
+            if(item.id > 0 && item.operate_time){
1310
+              this.users.map(it => {
1311
+                if(it.id == item.monitoring_nurse){
1312
+                  if(it.user_type == 2){
1313
+                    num++
1314
+                    this.$message.error('存在不是护士保存的监测')
1315
+                  }
1328 1316
                 }
1329
-              }else if(it.id == item.checker && item.checker > 0){
1330
-                if(it.type != 3){
1331
-                  this.$message.error('存在不是护士核对的医嘱')
1317
+              })
1318
+            }
1319
+          })
1320
+        }
1321
+        if(this.tableAdvice.length > 0){
1322
+          this.tableAdvice.map(item => {
1323
+            if(item.id > 0 && (item.created_time || item.start_time)){
1324
+              this.users.map(it => {
1325
+                if(it.id == item.advice_doctor){
1326
+                  if(it.user_type == 3){
1327
+                    num++
1328
+                    this.$message.error('存在不是医生保存的医嘱')
1329
+                  }
1330
+                  else if(it.id == item.execution_staff && item.execution_staff > 0){
1331
+                    if(it.user_type == 2){
1332
+                      num++
1333
+                      this.$message.error('存在不是护士执行的医嘱')
1334
+                    }
1335
+                  }
1336
+                }else if(it.id == item.execution_staff && item.execution_staff > 0){
1337
+                  if(it.user_type == 2){
1338
+                    num++
1339
+                    this.$message.error('存在不是护士执行的医嘱')
1340
+                  }
1332 1341
                 }
1333
-              }
1334
-            })
1335
-          }
1342
+              })
1343
+            }
1336 1344
         })
1345
+        }
1346
+        
1347
+        if(num == 0){
1348
+          this.$message.success('核对完成')
1349
+        }
1350
+      }else{
1351
+        this.$message.success('核对完成')
1337 1352
       }
1338 1353
     },
1339 1354
     getDisplaceLiquiPart: function(val) {

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

@@ -1370,7 +1370,7 @@ export default {
1370 1370
         this.$message.error('心理评估未填')
1371 1371
       }else if(this.afterdialysis.dialysis_process == 0){
1372 1372
         this.$message.error('透析过程未填')
1373
-      }else if(this.afterdialysis.in_advance_reason == ""){
1373
+      }else if(this.afterdialysis.dialysis_process == 2 && this.afterdialysis.in_advance_reason == ""){
1374 1374
         this.$message.error('透析过程原因未填')
1375 1375
       }else if(this.afterdialysis.hemostasis_minute == 0){
1376 1376
         this.$message.error('内瘘管拔针后压迫止血时间未填')
@@ -1436,38 +1436,60 @@ export default {
1436 1436
         this.$message.error('实际超滤量未填')
1437 1437
       }else if(this.afterdialysis.weight_after == 0){
1438 1438
         this.$message.error('透后体重未填')
1439
-      }else if(this.monitors.length > 0){
1440
-        this.monitors.map(item => {
1441
-          if(item.id > 0 && item.operate_time){
1442
-            this.users.map(it => {
1443
-              if(it.id == item.monitoring_nurse){
1444
-                if(it.type != 3){
1445
-                  this.$message.error('存在不是护士保存的监测')
1446
-                }
1447
-              }
1448
-            })
1449
-          }
1450
-        })
1451
-      }else if(this.advices.length > 0){
1452
-        this.advices.map(item => {
1453
-          if(item.id > 0 && item.created_time){
1454
-            this.users.map(it => {
1455
-              if(it.id == item.advice_doctor){
1456
-                if(it.type != 2){
1457
-                  this.$message.error('存在不是医生保存的医嘱')
1458
-                }
1459
-              }else if(it.id == item.execution_staff && item.execution_staff > 0){
1460
-                if(it.type != 3){
1461
-                  this.$message.error('存在不是护士执行的医嘱')
1439
+      }else if(this.tableAdvice.length > 0 || this.monitors.length > 0){
1440
+        let num = 0
1441
+        if(this.monitors.length > 0){
1442
+          this.monitors.map(item => {
1443
+            if(item.id > 0 && item.operate_time){
1444
+              this.users.map(it => {
1445
+                if(it.id == item.monitoring_nurse){
1446
+                  if(it.user_type == 2){
1447
+                    num++
1448
+                    this.$message.error('存在不是护士保存的监测')
1449
+                  }
1462 1450
                 }
1463
-              }else if(it.id == item.checker && item.checker > 0){
1464
-                if(it.type != 3){
1465
-                  this.$message.error('存在不是护士核对的医嘱')
1451
+              })
1452
+            }
1453
+          })
1454
+        }
1455
+        if(this.tableAdvice.length > 0){
1456
+          this.tableAdvice.map(item => {
1457
+            if(item.id > 0 && (item.created_time || item.start_time)){
1458
+              this.users.map(it => {
1459
+                if(it.id == item.advice_doctor){
1460
+                  if(it.user_type == 3){
1461
+                    num++
1462
+                    this.$message.error('存在不是医生保存的医嘱')
1463
+                  }else if(it.id == item.execution_staff && item.execution_staff > 0){
1464
+                    if(it.user_type == 2){
1465
+                      num++
1466
+                      this.$message.error('存在不是护士执行的医嘱')
1467
+                    }
1468
+                  }else if(it.id == item.checker && item.checker > 0){
1469
+                    if(it.user_type == 2){
1470
+                      num++
1471
+                      this.$message.error('存在不是护士核对的医嘱')
1472
+                    }
1473
+                  }
1474
+                }else if(it.id == item.execution_staff && item.execution_staff > 0){
1475
+                  if(it.user_type == 2){
1476
+                    num++
1477
+                    this.$message.error('存在不是护士执行的医嘱')
1478
+                  }
1479
+                }else if(it.id == item.checker && item.checker > 0){
1480
+                  if(it.user_type == 2){
1481
+                    num++
1482
+                    this.$message.error('存在不是护士核对的医嘱')
1483
+                  }
1466 1484
                 }
1467
-              }
1468
-            })
1469
-          }
1485
+              })
1486
+            }
1470 1487
         })
1488
+        }
1489
+        
1490
+        if(num == 0){
1491
+          this.$message.success('核对完成')
1492
+        }
1471 1493
       }else{
1472 1494
         this.$message.success('核对完成')
1473 1495
       }
@@ -1730,6 +1752,7 @@ export default {
1730 1752
         }
1731 1753
 
1732 1754
         this.advices = response.data.data.advices;
1755
+        this.tableAdvice = response.data.data.advices;
1733 1756
         this.monitors = response.data.data.monitors;
1734 1757
         this.summary = response.data.data.summary;
1735 1758
         this.org_template_info = response.data.data.org_template_info;

+ 4 - 4
src/xt_pages/outpatientDoctorStation/components/deskPrescription.vue View File

@@ -286,7 +286,7 @@
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 || org_id == 10243">
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 || org_id == 10245">
290 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>
@@ -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 || org_id == 10243">
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 || org_id == 10245">
387 387
                                                    {{scope.row.stock_count}}
388 388
                                               </span>
389 389
                                               <span v-else> {{ scope.row.total }}</span>
@@ -2658,7 +2658,7 @@
2658 2658
       selectDrugs(selection, row) {
2659 2659
         console.log('selection', selection)
2660 2660
         console.log('row', row)
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 ){
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 || this.org_id == 10245){
2662 2662
             if (row.count <= 0) {
2663 2663
               if (selection) {
2664 2664
                 selection.forEach(row => {
@@ -2933,7 +2933,7 @@
2933 2933
       },
2934 2934
       selectChange(selection, row) {
2935 2935
         console.log('row', row)
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 ){
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 || this.org_id ==10245 ){
2937 2937
            if (row.stock_count <= 0) {
2938 2938
             if (row.type == 3) {
2939 2939
               if (selection) {

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

@@ -283,7 +283,7 @@
283 283
 
284 284
 <script>
285 285
 import { uParseTime } from "@/utils/tools";
286
-import { getCancelStockConfig, postCancelStock,GetAllConfig,GetAllGoodInfoByID,postSearchGoodList,getStockBatchNumber } from "@/api/stock";
286
+import { postCancelStock,GetAllConfig,GetAllGoodInfoByID,postSearchGoodList,getStockBatchNumber } from "@/api/stock";
287 287
 import BreadCrumb from "../components/bread-crumb";
288 288
 import StockInDialog from './Dialog/stockInDialog'
289 289
 

+ 4 - 2
src/xt_pages/stock/drugs/cancelDrugStockOrderEdit.vue View File

@@ -427,7 +427,8 @@
427 427
           }
428 428
         }
429 429
         return name;
430
-      }, handleEdit: function(index, row) {
430
+      }, 
431
+      handleEdit: function(index, row) {
431 432
         this.canCelShow = false
432 433
         const tempObj = {}
433 434
         tempObj['id'] = 0
@@ -676,6 +677,7 @@
676 677
             return
677 678
          }
678 679
          this.getDrugBatchNumber(val.id)
680
+         console.log("val2323232323223",val)
679 681
          for(let i=0;i<this.recordInfo.recordData.length;i++){
680 682
            if(i == this.currentIndex){
681 683
              this.recordInfo.recordData[i].drug_id  = val.id
@@ -683,7 +685,7 @@
683 685
              this.recordInfo.recordData[i].drug_type = val.drug_type
684 686
              this.recordInfo.recordData[i].name  = val.dose +val.dose_unit+"*"+val.min_number+ val.min_unit+"/"+val.max_unit
685 687
              this.recordInfo.recordData[i].last_price = val.last_price
686
-             this.recordInfo.recordData[i].price = val.price
688
+             this.recordInfo.recordData[i].price = val.last_price
687 689
              this.recordInfo.recordData[i].manufacturer =  val.manufacturer
688 690
              this.recordInfo.recordData[i].number =  val.number
689 691
              this.recordInfo.recordData[i].max_unit = val.max_unit

+ 1 - 2
src/xt_pages/stock/drugs/drugDamaged.vue View File

@@ -130,8 +130,7 @@
130 130
               </el-table-column>
131 131
               <el-table-column prop="address" label="损耗数量" align="center">
132 132
                 <template slot-scope="scope">
133
-                  <span v-if="scope.row.last_stock_max_number>0">{{scope.row.last_stock_max_number}}{{scope.row.warehousing_unit}}</span>
134
-                   <span v-if="scope.row.last_stock_min_number>0">{{scope.row.last_stock_min_number}}{{scope.row.min_unit}}</span>
133
+                  <span v-if="scope.row.count>0">{{scope.row.count}}{{scope.row.min_unit}}</span>
135 134
                 </template>
136 135
               </el-table-column>
137 136
               <el-table-column prop="address" label="药损比" align="center">

+ 2 - 3
src/xt_pages/stock/drugs/drugStockOutOrderEdit.vue View File

@@ -557,6 +557,7 @@
557 557
               }
558 558
             }
559 559
             for(let i=0;i<this.recordInfo.recordData.length;i++){
560
+              this.recordInfo.recordData[i].price = this.recordInfo.recordData[i].price.toString()
560 561
               if(this.recordInfo.recordData[i].dealer == ""){
561 562
                 this.recordInfo.recordData[i].dealer = 0
562 563
               }
@@ -585,7 +586,7 @@
585 586
             const params = {
586 587
               'stockOut': this.recordInfo.recordData
587 588
             }
588
-          
589
+            console.log("param23322323233222323",params)
589 590
           
590 591
             editDrugWarehouseoutInfo(params, this.warehouse_out_time, this.$route.query.id, this.$route.query.type, this.form.manufacturer, this.form.dealer).then(response => {
591 592
               if (response.data.state == 0) {
@@ -645,7 +646,6 @@
645 646
                 response.data.data.list[i].manufacturer = response.data.data.list[i].drug.manufacturer
646 647
               }
647 648
               
648
-             
649 649
               response.data.data.list[i].price = response.data.data.list[i].price.toString()
650 650
               response.data.data.list[i].retail_price = response.data.data.list[i].price.toString()
651 651
               response.data.data.list[i].count = response.data.data.list[i].count.toString()
@@ -657,7 +657,6 @@
657 657
              
658 658
               response.data.data.list[i].product_date = this.getTime(response.data.data.list[i].product_date,"{y}-{h}-{d}")
659 659
               response.data.data.list[i].expiry_date = this.getTime(response.data.data.list[i].expiry_date,"{y}-{h}-{d}")
660
-              
661 660
               this.recordInfo.recordData.push(response.data.data.list[i])
662 661
             }
663 662
              for(let j=0;j<this.recordInfo.recordData.length;j++){

+ 1 - 0
src/xt_pages/stock/drugs/inventory.vue View File

@@ -317,6 +317,7 @@ export default {
317 317
                         batch_number:item.batch_number,
318 318
                         expiry_date:item.expiry_date,
319 319
                         type:0,
320
+                        
320 321
                       }
321 322
                     }
322 323
                   })

+ 0 - 18
src/xt_pages/stock/drugs/inventoryDetails.vue View File

@@ -2,24 +2,6 @@
2 2
     <div>
3 3
         <div style="display: flex;align-items: center;justify-content: space-between;margin-bottom:10px;">
4 4
             <div>
5
-                <!-- 耗材类别:
6
-                <el-select v-model="value" size="small" placeholder="请选择">
7
-                    <el-option
8
-                    v-for="item in options"
9
-                    :key="item.value"
10
-                    :label="item.label"
11
-                    :value="item.value">
12
-                    </el-option>
13
-                </el-select>
14
-                停用状态:
15
-                <el-select v-model="value" size="small" placeholder="请选择">
16
-                    <el-option
17
-                    v-for="item in options"
18
-                    :key="item.value"
19
-                    :label="item.label"
20
-                    :value="item.value">
21
-                    </el-option>
22
-                </el-select> -->
23 5
                 <el-input
24 6
                 size="small"
25 7
                 style="width: 200px;margin-left:10px;"

+ 36 - 36
src/xt_pages/stock/drugs/query.vue View File

@@ -77,9 +77,9 @@
77 77
           >搜索
78 78
           </el-button>
79 79
       </div>
80
-      
80
+
81 81
        <el-table :data="tableList" border style="width: 100%">
82
-      
82
+
83 83
         <el-table-column prop="drug_type" label="药品类型" width="180" align="center">
84 84
            <template slot-scope="scope">
85 85
              {{getDrugType(scope.row.drug_type)}}
@@ -107,15 +107,15 @@
107 107
         </el-table-column>
108 108
         <el-table-column prop="drug_name" label="入库数量" align="center">
109 109
            <template slot-scope="scope">
110
-            <span v-if="getWarehoseInfo(scope.row.drug_warehouse_info)!=0">{{getWarehoseInfo(scope.row.drug_warehouse_info)}}{{scope.row.max_unit}}</span> 
110
+            <span v-if="getWarehoseInfo(scope.row.drug_warehouse_info)!=0">{{getWarehoseInfo(scope.row.drug_warehouse_info)}}{{scope.row.max_unit}}</span>
111 111
            </template>
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 || org_id == 10138 || org_id ==10028 || org_id == 10243">
116
-                <span> 
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 || org_id == 10245">
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
-                </span> 
118
+                </span>
119 119
              </span>
120 120
              <span v-else>{{getOutCount(scope.row.id)+getAutoCount(scope.row.id)}}{{scope.row.max_unit}}</span>
121 121
            </template>
@@ -123,10 +123,10 @@
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 || org_id == 10138 || org_id == 10028 || org_id == 10243">
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 || org_id == 10245">
127 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>
131 131
             </div>
132 132
            </template>
@@ -148,7 +148,7 @@
148 148
           </template>
149 149
         </el-table-column>
150 150
        </el-table>
151
-       
151
+
152 152
     <el-pagination
153 153
         @size-change="handleSizeChange"
154 154
         @current-change="handleCurrentChange"
@@ -194,13 +194,13 @@ import { min } from 'moment'
194 194
       this.getlist()
195 195
       var drugCategory = getDictionaryDataConfig('system','drug_category')
196 196
       this.drugCategory.push(...drugCategory)
197
-      var drugTypeList = getDictionaryDataConfig('system','drug_type') 
197
+      var drugTypeList = getDictionaryDataConfig('system','drug_type')
198 198
       this.drugTypeList.push(...drugTypeList)
199 199
       this.org_id =  this.$store.getters.xt_user.org.id
200 200
       console.log("机构ID",this.org_id)
201 201
       this.getDrugCountList()
202
-     
203
-      
202
+
203
+
204 204
     },
205 205
     components: {
206 206
       SettingDialog,
@@ -213,7 +213,7 @@ import { min } from 'moment'
213 213
           { path: '/stock/drugs/stock/query', name: '药品库存查询' }
214 214
         ],
215 215
         keywords: '',
216
-       
216
+
217 217
         multipleSelection: [],
218 218
         signAndWeighBoxPatients: 'sign-and-weigh-box-patients',
219 219
         start_time: '',
@@ -279,7 +279,7 @@ import { min } from 'moment'
279 279
                for(let z=0;z<list[i].drug_cancel_stock_info.length;z++){
280 280
                  if(list[i].drug_cancel_stock_info[z].max_unit == list[i].max_unit){
281 281
                    list[i].drug_cancel_stock_info[z].count = list[i].drug_cancel_stock_info[z].count * list[i].min_number
282
-                 } 
282
+                 }
283 283
                }
284 284
              }
285 285
              console.log("列表list232323323232323223",list)
@@ -287,7 +287,7 @@ import { min } from 'moment'
287 287
              var total = response.data.data.total
288 288
              this.total = total
289 289
              this.manufacturerList = response.data.data.manufacturerList
290
-           
290
+
291 291
            }
292 292
         })
293 293
       },
@@ -337,7 +337,7 @@ import { min } from 'moment'
337 337
           }
338 338
         }
339 339
       },
340
-    
340
+
341 341
       getSpecificationName: function(id) {
342 342
         let name = ''
343 343
         for (let i = 0; i < this.goodInfo.length; i++) {
@@ -373,7 +373,7 @@ import { min } from 'moment'
373 373
       calculate: function(val) {
374 374
         return Math.round(parseFloat(val) * 100) / 100
375 375
       },
376
-  
376
+
377 377
     startTimeChange: function(val) {
378 378
       window.sessionStorage.removeItem('start_time')
379 379
       var time = this.getTimestamp(val) - this.getTimestamp(this.end_time);
@@ -381,7 +381,7 @@ import { min } from 'moment'
381 381
         this.$message.error("开始时间不能大于结束时间");
382 382
         this.start_time = "";
383 383
       } else {
384
-     
384
+
385 385
         this.getlist()
386 386
       }
387 387
     },
@@ -392,10 +392,10 @@ import { min } from 'moment'
392 392
         this.$message.error("结束时间不能小于开始时间");
393 393
         this.end_time = "";
394 394
       } else {
395
-       
395
+
396 396
         this.getlist()
397 397
       }
398
-     
398
+
399 399
     },
400 400
       stockInCount: function(row) {
401 401
         let total = 0
@@ -430,7 +430,7 @@ import { min } from 'moment'
430 430
       search: function() {
431 431
         this.getlist()
432 432
         this.getDrugCountList()
433
-      }, 
433
+      },
434 434
       setting: function() {
435 435
         this.$refs.dialog.show()
436 436
       },
@@ -446,13 +446,13 @@ import { min } from 'moment'
446 446
           this.tableList[i].outCount = this.getWarehouseOutInfo(this.tableList[i].drug_warehouse_out,this.tableList[i].max_unit,this.tableList[i].min_unit,this.tableList[i].min_number)
447 447
           this.tableList[i].overplusCount =  this.getOverFlushInfo(this.tableList[i].drug_warehouse_info,this.tableList[i].max_unit,this.tableList[i].min_unit,this.tableList[i].min_number)
448 448
          }
449
-       
449
+
450 450
          console.log("hhhhhhhadhfadf 列表",this.tableList)
451 451
          import('@/vendor/Export2Excel').then(excel => {
452 452
          const tHeader = ['序号', '药品类型', '药品名称','规格型号&单位','进货单价','厂家','入库数量','出库数量','剩余库存量']
453 453
          const filterVal = ['index', 'drug_type_name', 'drug_name','unit','last_price','manufacturer_name','inCount','outCount','overplusCount']
454
-       
455
-        
454
+
455
+
456 456
          const data = this.formatJson(filterVal, this.tableList)
457 457
          excel.export_json_to_excel({
458 458
            header: tHeader,
@@ -483,7 +483,7 @@ import { min } from 'moment'
483 483
         });
484 484
       },
485 485
       getDrugType(id){
486
-       
486
+
487 487
         var name = ""
488 488
         for(let i=0;i<this.drugTypeList.length;i++){
489 489
            if(this.drugTypeList[i].id == id){
@@ -491,7 +491,7 @@ import { min } from 'moment'
491 491
              name = this.drugTypeList[i].name
492 492
            }
493 493
         }
494
-     
494
+
495 495
         return name
496 496
       },
497 497
       getManufacturerList(id){
@@ -630,10 +630,10 @@ import { min } from 'moment'
630 630
             min_str =  total%min_number + min_unit
631 631
           }
632 632
         }
633
-    
633
+
634 634
         return str + min_str
635 635
       },
636
-  
636
+
637 637
       getCountOne(drug_id){
638 638
         var count= 0
639 639
         for(let i=0;i<this.drugOutList.length;i++){
@@ -644,7 +644,7 @@ import { min } from 'moment'
644 644
         return count
645 645
       },
646 646
      getCountTwo(drug_id,min_number,max_unit,min_unit){
647
-      
647
+
648 648
        var total_count = 0
649 649
        var out_count = 0
650 650
        var count = 0
@@ -658,7 +658,7 @@ import { min } from 'moment'
658 658
        if(parseInt(count/min_number)!=0){
659 659
          str = parseInt(count/min_number) + max_unit
660 660
        }
661
-     
661
+
662 662
        if((count%min_number)!=0){
663 663
          str_min = count%min_number + min_unit
664 664
        }
@@ -683,11 +683,11 @@ import { min } from 'moment'
683 683
         if(total == 0){
684 684
            total = ""
685 685
         }
686
-       
686
+
687 687
         return total
688 688
       },
689 689
       getOverFlushInfo(arr,max_unit,min_unit,min_number){
690
-       
690
+
691 691
          var max_str=  ""
692 692
          var min_str = ""
693 693
          var total = 0
@@ -711,7 +711,7 @@ import { min } from 'moment'
711 711
            if(total%min_number!=0){
712 712
               min_str = total%min_number + min_unit
713 713
            }
714
-         
714
+
715 715
          }
716 716
         return max_str + min_str
717 717
       },
@@ -724,7 +724,7 @@ import { min } from 'moment'
724 724
             total += parseInt(arr[i].count)
725 725
           }
726 726
         }
727
-      
727
+
728 728
         if (total < min_number){
729 729
            min_str = total + min_unit
730 730
          }
@@ -739,7 +739,7 @@ import { min } from 'moment'
739 739
            if(total%min_number!=0){
740 740
               min_str = total%min_number + min_unit
741 741
            }
742
-         
742
+
743 743
          }
744 744
         return max_str + min_str
745 745
 
@@ -793,7 +793,7 @@ import { min } from 'moment'
793 793
          return str + str_min
794 794
       },
795 795
       getOutFlush(info,max_unit,min_unit,min_number,cancel_info){
796
-        
796
+
797 797
         var str = ""
798 798
         var str_min = ""
799 799
         //总库存

+ 24 - 23
src/xt_pages/stock/inventory.vue View File

@@ -62,13 +62,13 @@
62 62
                     {{scope.row.manufacturer_name}}
63 63
                   </template> 
64 64
               </el-table-column>
65
-              <el-table-column prop="name" label="盘点前数量" width="100"  align="center">
65
+              <el-table-column prop="name" label="盘点前数量" width="120"  align="center">
66 66
                 <template slot-scope="scope">
67 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
 
71
-             <el-table-column prop="name" label="盘点后数量" width="100"  align="center">
71
+             <el-table-column prop="name" label="盘点后数量" width="120"  align="center">
72 72
                 <template slot-scope="scope">
73 73
                   <el-input style="width:80px" v-model="scope.row.last_stock_count"></el-input>
74 74
                  </template> 
@@ -272,27 +272,27 @@ export default {
272 272
           this.page = val
273 273
           this.getlist()
274 274
         },
275
-   getlist(){
276
-    var params = {
277
-          keyword:this.searchKey,
278
-          start_time:this.start_time,
279
-          end_time:this.end_time,
280
-          inventory_status:this.inventory_status, 
281
-          page:this.page,
282
-          limit:this.limit,
283
-         }
284
-        console.log("我爱你中国parasm",params)
285
-       getInventoryList(params).then(response=>{
286
-          if(response.data.state ==1 ){
287
-           var list =  response.data.data.list
288
-           console.log("列表23232323232",list)
289
-           this.tableList = list
290
-           var total = response.data.data.total
291
-           this.total = total
292
-           this.doctorList =  response.data.data.doctorlist
275
+    getlist(){
276
+      var params = {
277
+            keyword:this.searchKey,
278
+            start_time:this.start_time,
279
+            end_time:this.end_time,
280
+            inventory_status:this.inventory_status, 
281
+            page:this.page,
282
+            limit:this.limit,
293 283
           }
294
-       })
295
-     },
284
+          console.log("我爱你中国parasm",params)
285
+        getInventoryList(params).then(response=>{
286
+            if(response.data.state ==1 ){
287
+            var list =  response.data.data.list
288
+            console.log("列表23232323232",list)
289
+            this.tableList = list
290
+            var total = response.data.data.total
291
+            this.total = total
292
+            this.doctorList =  response.data.data.doctorlist
293
+            }
294
+        })
295
+      },
296 296
      getChecker(id){
297 297
        var name = ""
298 298
        for(let i=0;i<this.doctorList.length;i++){
@@ -452,12 +452,13 @@ export default {
452 452
           
453 453
             for(let i=0;i<this.WarehouseList.length;i++){
454 454
               for(let j=0;j<newList.length;j++){
455
-                if(this.WarehouseList[i].drug_id == newList[j].drug_id){
455
+                if(this.WarehouseList[i].good_id == newList[j].good_id){
456 456
                     newList[j].child.push(this.WarehouseList[i])
457 457
                 }
458 458
               }
459 459
             }
460 460
           console.log("newList2333232323232",newList)
461
+          
461 462
           this.tableData = newList
462 463
           this.showSearch = false
463 464
           this.showTable = true

+ 8 - 2
src/xt_pages/stock/inventoryDetails.vue View File

@@ -117,8 +117,14 @@ export default {
117 117
            }
118 118
           this.$router.push({path:'/stock/inventoryDetailPrint?ids='+this.ids})
119 119
         },
120
-        handleSizeChange(){},
121
-        handleCurrentChange(){},
120
+        handleSizeChange(val){
121
+          this.limit = val
122
+          this.getlist()
123
+        },
124
+        handleCurrentChange(val){
125
+          this.page = val
126
+          this.getlist()
127
+        },
122 128
         getlist(){
123 129
          var params = {
124 130
             keyword:this.searchKey,

+ 42 - 10
src/xt_pages/stock/stockDamaged.vue View File

@@ -14,10 +14,32 @@
14 14
         type="primary"
15 15
         icon="el-icon-search"
16 16
         @click="search">搜索</el-button>
17
+
18
+         <el-date-picker
19
+          size="small"
20
+          v-model="start_time"
21
+          type="date"
22
+          style="margin-left:5px;width:140px;"
23
+          placeholder="选择日期"
24
+          @change="changeStartTime">
25
+          </el-date-picker>
26
+          <el-date-picker
27
+          size="small"
28
+          v-model="end_time"
29
+          type="date"
30
+          style="margin-left:5px;width:140px;"
31
+          placeholder="选择日期"
32
+          @change="changeEndTime">
33
+      </el-date-picker>
17 34
     </div>
18 35
   
19
-    <el-table :data="tableList" border :header-cell-style="{ backgroundColor: 'rgb(245, 247, 250)' }" @selection-change="changePrice">
36
+    <el-table :data="tableList" border :header-cell-style="{ backgroundColor: 'rgb(245, 247, 250)' }">
20 37
         <el-table-column type="selection" width="55" align="center"> </el-table-column>
38
+        <el-table-column  prop="date" label="报损日期" align="center">
39
+            <template slot-scope="scope">
40
+              {{getTime(scope.row.ctime)}}
41
+            </template>
42
+        </el-table-column>
21 43
         <el-table-column prop="date" label="耗材名称"  align="center">
22 44
           <template  slot-scope="scope">
23 45
             {{scope.row.good_name}}
@@ -276,7 +298,7 @@
276 298
             </el-col>
277 299
             <el-col :span="8">
278 300
               <el-form-item label="原因:">
279
-                  <el-select v-model="form.type" placeholder="请选择">
301
+                  <el-select v-model="form.type" placeholder="请选择" @change="changeReason">
280 302
                       <el-option
281 303
                         v-for="item in reasonList"
282 304
                         :key="item.id"
@@ -730,6 +752,9 @@ export default {
730 752
           }
731 753
         }
732 754
         return count
755
+      },
756
+      changeReason(){
757
+
733 758
       },
734 759
       toDamagedDetail(good_id){
735 760
           var params = {
@@ -737,18 +762,25 @@ export default {
737 762
             warehousing_order:this.form.warehousing_order,
738 763
             type:this.form.type,
739 764
           }
765
+          console.log("para2233232",params)
740 766
          getDamageDetailByGoodId(params).then(response=>{
741 767
             if(response.data.state == 1){
742 768
               var list = response.data.data.list
743 769
               console.log("list233232",list)
744
-              this.modifyDialogVisible = true
745
-              this.good_name = list[0].good_name
746
-              this.price = list[0].buy_price
747
-              this.good_id = list[0].good_id
748
-              this.goodList = []
749
-              this.goodList = list
750
-              this.damageList = []
751
-              this.damageList = response.data.data.damageList
770
+              if (list.length>0){
771
+                this.modifyDialogVisible = true
772
+                this.good_name = list[0].good_name
773
+                this.price = list[0].buy_price
774
+                this.good_id = list[0].good_id
775
+                this.goodList = []
776
+                this.goodList = list
777
+                this.damageList = []
778
+                this.damageList = response.data.data.damageList
779
+              }else{
780
+                this.damageList = []
781
+                this.goodList = []
782
+              }
783
+            
752 784
             }
753 785
          })
754 786
       },

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

@@ -108,19 +108,19 @@
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 || org_id == 10243">
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 || org_id== 10245">
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>
115 115
           </span>
116
-          <span v-else>{{getAutoCount(scope.row.id) + getOutCount(scope.row.id)}} </span> 
116
+          <span v-else>{{getAutoCount(scope.row.id) + getOutCount(scope.row.id)}} </span>
117 117
          </template>
118 118
        </el-table-column>
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 || org_id == 10243">{{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> 
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 || org_id == 10245">{{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>
124 124
          </template>
125 125
        </el-table-column>
126 126
        <el-table-column label="操作" align="center" width="260px">
@@ -171,7 +171,7 @@ export default {
171 171
 
172 172
     var start_time =  window.sessionStorage.getItem('start_time')
173 173
     var end_time =  window.sessionStorage.getItem('end_time')
174
-   
174
+
175 175
     if(start_time !=null){
176 176
       this.start_time = start_time
177 177
     }
@@ -221,7 +221,7 @@ export default {
221 221
     };
222 222
   },
223 223
   methods: {
224
-  
224
+
225 225
     GetAllGoodType: function() {
226 226
       GetAllGoodType().then(response => {
227 227
         if (response.data.state == 0) {
@@ -259,7 +259,7 @@ export default {
259 259
       this.limit = val;
260 260
       this.getlist()
261 261
       this.getStockDrugCount()
262
-      
262
+
263 263
     },
264 264
     handleCurrentChange(val) {
265 265
       this.page = val;
@@ -335,7 +335,7 @@ export default {
335 335
          const tHeader = ['耗材类型', '耗材名称', '规格&单位','进货单价','生产商','入库数量','出库数量','库存剩余量']
336 336
          const filterVal = ['type_name', 'good_name', 'unit','buy_price','prodect_name','inCount','outCount','overplus']
337 337
 
338
-       
338
+
339 339
          for(let i=0;i<this.tableList.length;i++){
340 340
            this.tableList[i].type_name = this.getGoodType(this.tableList[i].good_type_id)
341 341
            this.tableList[i].unit = this.tableList[i].specification_name + "/" + this.tableList[i].packing_unit
@@ -347,7 +347,7 @@ export default {
347 347
           }else{
348 348
              this.tableList[i].overplus = 0
349 349
           }
350
-          
350
+
351 351
          }
352 352
          const data = this.formatJson(filterVal, this.tableList)
353 353
          excel.export_json_to_excel({
@@ -429,7 +429,7 @@ export default {
429 429
        var specification_name = ""
430 430
        for(let i=0;i<this.manufacturerList.length;i++){
431 431
           if(val.manufacturer == this.manufacturerList[i].id){
432
-            manufacturer_name = this.manufacturerList[i].manufacturer_name  
432
+            manufacturer_name = this.manufacturerList[i].manufacturer_name
433 433
           }
434 434
        }
435 435
       specification_name = val.specification_name + "/" + val.packing_unit
@@ -443,7 +443,7 @@ export default {
443 443
        var specification_name = ""
444 444
        for(let i=0;i<this.manufacturerList.length;i++){
445 445
           if(val.manufacturer == this.manufacturerList[i].id){
446
-            manufacturer_name = this.manufacturerList[i].manufacturer_name  
446
+            manufacturer_name = this.manufacturerList[i].manufacturer_name
447 447
           }
448 448
        }
449 449
       specification_name = val.specification_name + "/" + val.packing_unit

+ 9 - 8
src/xt_pages/user/doctorAdvice.vue View File

@@ -159,19 +159,19 @@
159 159
           </template>
160 160
         </el-table-column>
161 161
 
162
+     、
163
+        
162 164
         <el-table-column
163
-          label="开始时间"
165
+          label="开时间"
164 166
           width="180"
165
-          property="start_time"
167
+          property="created_time"
166 168
           align="center"
167 169
         >
168 170
           <template slot-scope="scope">
169
-            <span>{{
170
-              scope.row.start_time | parseTime("{y}-{m}-{d} {h}:{i}")
171
-            }}</span>
171
+            <span v-if="org_id == 10215">{{ scope.row.created_time | parseTime("{y}-{m}-{d} {h}:{i}") }} </span> 
172
+            <span v-else>{{ scope.row.start_time | parseTime("{y}-{m}-{d} {h}:{i}") }} </span> 
172 173
           </template>
173 174
         </el-table-column>
174
-
175 175
         <el-table-column
176 176
           label="医嘱内容"
177 177
           property="advice_name"
@@ -2159,7 +2159,8 @@ export default {
2159 2159
       current_drug_name:"",
2160 2160
       current_drug_spec: "",
2161 2161
       drug_id: 0,
2162
-      src_type:""
2162
+      src_type:"",
2163
+      org_id:0,
2163 2164
     };
2164 2165
   },
2165 2166
   methods: {
@@ -4644,7 +4645,7 @@ export default {
4644 4645
       this.$router.push("/patients/patients");
4645 4646
     }
4646 4647
     this.listQuery.id = this.patientID;
4647
-
4648
+    this.org_id = this.$store.getters.xt_user.template_info.org_id
4648 4649
     // var nowDate = new Date()
4649 4650
     // var nowYear = nowDate.getFullYear()
4650 4651
     // var nowMonth = nowDate.getMonth() + 1

+ 2 - 0
src/xt_pages/workforce/template.vue View File

@@ -370,6 +370,8 @@
370 370
         for (let key in results[0]) {
371 371
           headers.push(key)
372 372
         }
373
+        console.log("hhh2332323232",this.template_mode.mode)
374
+        console.log("result233232233223232323",results)
373 375
         if (this.template_mode.mode == 1) {
374 376
           if(results.length > 0) {
375 377