Преглед на файлове

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

csx преди 3 години
родител
ревизия
4cc85e69fc
променени са 45 файла, в които са добавени 3325 реда и са изтрити 779 реда
  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 Целия файл

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

+ 2 - 0
src/api/patient.js Целия файл

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

+ 2 - 2
src/xt_pages/dialysis/details/DialysisPrescription.vue Целия файл

112
           <span class="content">{{
112
           <span class="content">{{
113
             target_ultrafiltration != "0" ? target_ultrafiltration : ""
113
             target_ultrafiltration != "0" ? target_ultrafiltration : ""
114
           }}</span>
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
         </li>
117
         </li>
118
         <li v-if="isShow('葡萄糖')">
118
         <li v-if="isShow('葡萄糖')">
119
           <label>葡萄糖 : </label>
119
           <label>葡萄糖 : </label>

+ 2 - 1
src/xt_pages/dialysis/details/assessmentBefore.vue Целия файл

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

+ 28 - 57
src/xt_pages/dialysis/details/dialog/assessmentBeforeDislysisDialog.vue Целия файл

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

+ 2 - 2
src/xt_pages/dialysis/details/dialog/dialysisPrescriptionDialog.vue Целия файл

87
                     </el-col>
87
                     </el-col>
88
 
88
 
89
                     <el-col :span="8"
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
                         <el-form-item label="目标超滤量(ml):">
91
                         <el-form-item label="目标超滤量(ml):">
92
                             <el-input
92
                             <el-input
93
                                     type="number"
93
                                     type="number"
98
 
98
 
99
 
99
 
100
                     <el-col :span="8"
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
                         <el-form-item label="目标超滤量(L):">
102
                         <el-form-item label="目标超滤量(L):">
103
                             <el-input
103
                             <el-input
104
                                     type="number"
104
                                     type="number"

+ 46 - 6
src/xt_pages/dialysis/dialysisDoctorAdvice.vue Целия файл

23
     </div>
23
     </div>
24
     </div>
24
     </div>
25
     <div class="app-container">
25
     <div class="app-container">
26
-      <!-- <div class="filter-container">
27
-        <el-input style="width: 400px;" v-model="searchKey" class="filter-item"/>
28
-        <el-button class="filter-item" type="primary" icon="el-icon-search" @click="search">搜索</el-button>
29
-      </div>-->
26
+      <div class="filter-container">
27
+      <el-autocomplete
28
+          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
       <div class="cell clearfix">
43
       <div class="cell clearfix">
31
         <label class="title">
44
         <label class="title">
32
           <span class="name">日期查询:</span>
45
           <span class="name">日期查询:</span>
46
 
59
 
47
         <!-- <el-button type="primary" :disabled="selecting_schs.length == 0" @click="batchPrintAction">打印</el-button> -->
60
         <!-- <el-button type="primary" :disabled="selecting_schs.length == 0" @click="batchPrintAction">打印</el-button> -->
48
       </div>
61
       </div>
62
+
49
       <div class="cell clearfix">
63
       <div class="cell clearfix">
50
         <label class="title"> <span class="name">排班班次</span> : </label>
64
         <label class="title"> <span class="name">排班班次</span> : </label>
51
         <div class="time">
65
         <div class="time">
359
 import BreadCrumb from "@/xt_pages/components/bread-crumb";
373
 import BreadCrumb from "@/xt_pages/components/bread-crumb";
360
 import { getPrintTemplate } from "@/api/data";
374
 import { getPrintTemplate } from "@/api/data";
361
 import { getSchedualDoctors } from '@/api/advice'
375
 import { getSchedualDoctors } from '@/api/advice'
362
-
376
+import { PostSearch } from '@/api/patient'
363
 export default {
377
 export default {
364
   name: "Patient",
378
   name: "Patient",
365
   data() {
379
   data() {
404
       showOne:false,
418
       showOne:false,
405
       deliveryWay:[],
419
       deliveryWay:[],
406
       delivery_way:0,
420
       delivery_way:0,
421
+      patient_id:0,
422
+      org_id:0,
407
     };
423
     };
408
   },
424
   },
409
   created() {
425
   created() {
425
     this.getTemplateInfo();
441
     this.getTemplateInfo();
426
     this.requestSchedualDoctors(this.time)
442
     this.requestSchedualDoctors(this.time)
427
     // this.template_id = this.$store.getters.xt_user.template_info.template_id;
443
     // this.template_id = this.$store.getters.xt_user.template_info.template_id;
444
+
428
   },
445
   },
429
   methods: {
446
   methods: {
430
     getTemplateInfo() {
447
     getTemplateInfo() {
506
          var partition_type = this.listQuery.partition_type
523
          var partition_type = this.listQuery.partition_type
507
 
524
 
508
         console.log("班次",schedule_type,"分区",partition_type)
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
         var resp = rs.data
527
         var resp = rs.data
511
         if (resp.state == 1) {
528
         if (resp.state == 1) {
512
             this.admin_users = resp.data.adminUser
529
             this.admin_users = resp.data.adminUser
973
         this.selecting_schs = val;
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
   components: {
1017
   components: {
978
     BreadCrumb
1018
     BreadCrumb

+ 24 - 0
src/xt_pages/dialysis/dialysisPrintOrder.vue Целия файл

603
           >打印</el-button
603
           >打印</el-button
604
         >
604
         >
605
       </template>
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
     </div>
616
     </div>
607
     <div class="app-container" style="min-height:0;">
617
     <div class="app-container" style="min-height:0;">
608
       <!--<div class="order-print-btn"-->
618
       <!--<div class="order-print-btn"-->
903
             v-if="org_template_info.template_id == 44"
913
             v-if="org_template_info.template_id == 44"
904
           >
914
           >
905
           </DialysisPrintOrderFortyFour>
915
           </DialysisPrintOrderFortyFour>
916
+          <DialysisPrintOrderFortyFive
917
+            v-bind:childResponse="childResponse"
918
+            v-if="org_template_info.template_id == 45"
919
+          >
920
+          </DialysisPrintOrderFortyFive>
906
         </div>
921
         </div>
907
       </el-container>
922
       </el-container>
908
     </div>
923
     </div>
966
 import DialysisPrintOrderFortyTwo from "./template/DialysisPrintOrderFortyTwo";
981
 import DialysisPrintOrderFortyTwo from "./template/DialysisPrintOrderFortyTwo";
967
 import DialysisPrintOrderFortyThree from "./template/DialysisPrintOrderFortyThree";
982
 import DialysisPrintOrderFortyThree from "./template/DialysisPrintOrderFortyThree";
968
 import DialysisPrintOrderFortyFour from "./template/DialysisPrintOrderFortyFour";
983
 import DialysisPrintOrderFortyFour from "./template/DialysisPrintOrderFortyFour";
984
+import DialysisPrintOrderFortyFive from "./template/DialysisPrintOrderFortyFive";
969
 export default {
985
 export default {
970
   name: "dialysisPrintOrder",
986
   name: "dialysisPrintOrder",
971
   components: {
987
   components: {
988
+    DialysisPrintOrderFortyFive,
972
     DialysisPrintOrderFortyFour,
989
     DialysisPrintOrderFortyFour,
973
     DialysisPrintOrderFortyThree,
990
     DialysisPrintOrderFortyThree,
974
     DialysisPrintOrderFortyTwo,
991
     DialysisPrintOrderFortyTwo,
1489
           style: style9,
1506
           style: style9,
1490
           scanStyles: false
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
     printThisOnePage() {
1518
     printThisOnePage() {

+ 51 - 29
src/xt_pages/dialysis/template/DialysisPrintOrderEight.vue Целия файл

1360
         this.$message.error('下机护士未填')
1360
         this.$message.error('下机护士未填')
1361
       }else if(this.special_record == ""){
1361
       }else if(this.special_record == ""){
1362
         this.$message.error('特殊记录未填')
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
       }else{
1417
       }else{
1396
         this.$message.success('核对完成')
1418
         this.$message.success('核对完成')
1397
       }
1419
       }

+ 61 - 27
src/xt_pages/dialysis/template/DialysisPrintOrderEleven.vue Целия файл

1155
   },
1155
   },
1156
   methods: {
1156
   methods: {
1157
     checkData(){
1157
     checkData(){
1158
-      if(this.receiverTreatmentAccess.condition == 0){
1158
+      if(this.patientInfo.source == 0){
1159
         this.$message.error('门诊或住院未填')
1159
         this.$message.error('门诊或住院未填')
1160
       }else if(this.receiverTreatmentAccess.way == 0){
1160
       }else if(this.receiverTreatmentAccess.way == 0){
1161
         this.$message.error('入科方式未填')
1161
         this.$message.error('入科方式未填')
1167
         this.$message.error('透前脉搏未填')
1167
         this.$message.error('透前脉搏未填')
1168
       }else if(this.predialysis.breathing_rate == ""){
1168
       }else if(this.predialysis.breathing_rate == ""){
1169
         this.$message.error('透前呼吸频率未填')
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
         this.$message.error('透前血压未填完整')
1171
         this.$message.error('透前血压未填完整')
1172
       }else if(this.predialysis.puncture_way == ''){
1172
       }else if(this.predialysis.puncture_way == ''){
1173
         this.$message.error('穿刺方式未填')
1173
         this.$message.error('穿刺方式未填')
1181
         this.$message.error('透前导管未填')
1181
         this.$message.error('透前导管未填')
1182
       }else if(this.prescription.mode_id == ""){
1182
       }else if(this.prescription.mode_id == ""){
1183
         this.$message.error('透析方式未填')
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
         this.$message.error('置换方式未填')
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
         this.$message.error('置换量未填')
1187
         this.$message.error('置换量未填')
1188
       }else if(this.prescription.blood_flow_volume == 0){
1188
       }else if(this.prescription.blood_flow_volume == 0){
1189
         this.$message.error('血流量未填')
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
       }else if(this.predialysis.dry_weight == 0){
1192
       }else if(this.predialysis.dry_weight == 0){
1195
         this.$message.error('干体重未填')
1193
         this.$message.error('干体重未填')
1196
       }else if(this.prescription.dialysis_duration_hour == 0 && this.prescription.dialysis_duration_minute == 0){
1194
       }else if(this.prescription.dialysis_duration_hour == 0 && this.prescription.dialysis_duration_minute == 0){
1197
         this.$message.error('透析时间未填')
1195
         this.$message.error('透析时间未填')
1198
-      }else if(this.last_afterdialysis.weight_after == 0){
1196
+      }else if(this.predialysis.weight_after_last_transparency == 0){
1199
         this.$message.error('上次透后未填')
1197
         this.$message.error('上次透后未填')
1200
       }else if(this.predialysis.weight_before == 0){
1198
       }else if(this.predialysis.weight_before == 0){
1201
         this.$message.error('透前体重未填')
1199
         this.$message.error('透前体重未填')
1223
         this.$message.error('透后脉搏未填')
1221
         this.$message.error('透后脉搏未填')
1224
       }else if(this.afterdialysis.breathing_rate == 0){
1222
       }else if(this.afterdialysis.breathing_rate == 0){
1225
         this.$message.error('透后呼吸频率未填')
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
         this.$message.error('透后血压未填完整')
1225
         this.$message.error('透后血压未填完整')
1228
       }else if(this.afterdialysis.actual_treatment_hour == 0 && this.afterdialysis.actual_treatment_minute == 0){
1226
       }else if(this.afterdialysis.actual_treatment_hour == 0 && this.afterdialysis.actual_treatment_minute == 0){
1229
         this.$message.error('实际治疗时间未填')
1227
         this.$message.error('实际治疗时间未填')
1259
         this.$message.error('下机护士未填')
1257
         this.$message.error('下机护士未填')
1260
       }else if(this.prescription.creater == 0){
1258
       }else if(this.prescription.creater == 0){
1261
         this.$message.error('治疗医生未填')
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
     getDisplaceLiquiPart: function(val) {
1318
     getDisplaceLiquiPart: function(val) {

+ 1 - 1
src/xt_pages/dialysis/template/DialysisPrintOrderForty.vue Целия файл

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

Файловите разлики са ограничени, защото са твърде много
+ 1971 - 0
src/xt_pages/dialysis/template/DialysisPrintOrderFortyFive.vue


+ 13 - 5
src/xt_pages/dialysis/template/DialysisPrintOrderFourteen.vue Целия файл

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

+ 23 - 6
src/xt_pages/dialysis/template/DialysisPrintOrderNine.vue Целия файл

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

+ 26 - 7
src/xt_pages/dialysis/template/DialysisPrintOrderOne.vue Целия файл

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

+ 22 - 5
src/xt_pages/dialysis/template/DialysisPrintOrderSeven.vue Целия файл

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

+ 54 - 30
src/xt_pages/dialysis/template/DialysisPrintOrderSeventeen.vue Целия файл

1346
         this.$message.error('透前体温未填')
1346
         this.$message.error('透前体温未填')
1347
       }else if(this.receiverTreatmentAccess.posture == 0){
1347
       }else if(this.receiverTreatmentAccess.posture == 0){
1348
         this.$message.error('体位未填')
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
         this.$message.error('内瘘波动及震颤未填')
1350
         this.$message.error('内瘘波动及震颤未填')
1351
       }else if(this.predialysis.blood_access_part_id == 0){
1351
       }else if(this.predialysis.blood_access_part_id == 0){
1352
         this.$message.error('中心静脉导管部位未填')
1352
         this.$message.error('中心静脉导管部位未填')
1388
         this.$message.error('下机护士未填')
1388
         this.$message.error('下机护士未填')
1389
       }else if(this.special_record == ""){
1389
       }else if(this.special_record == ""){
1390
         this.$message.error('特殊记录未填')
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
     getAdminUser(id) {
1449
     getAdminUser(id) {

+ 26 - 9
src/xt_pages/dialysis/template/DialysisPrintOrderSix.vue Целия файл

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

+ 54 - 32
src/xt_pages/dialysis/template/DialysisPrintOrderTen.vue Целия файл

503
                         <td width="50">电导度<br />(ms/cm)</td>
503
                         <td width="50">电导度<br />(ms/cm)</td>
504
                         <td width="50">超滤量<br />(ml)</td>
504
                         <td width="50">超滤量<br />(ml)</td>
505
                         <td v-if="prescription.mode_id == 2 || prescription.mode_id == 5" width="50">
505
                         <td v-if="prescription.mode_id == 2 || prescription.mode_id == 5" width="50">
506
-                          置换量<br />(ml)
506
+                          置换量<br />(L)
507
                         </td>
507
                         </td>
508
                         <td width="200">病情变化及处理</td>
508
                         <td width="200">病情变化及处理</td>
509
                         <td width="100">护士签名</td>
509
                         <td width="100">护士签名</td>
1198
         this.$message.error('透前导管未填')
1198
         this.$message.error('透前导管未填')
1199
       }else if(this.prescription.mode_id == ""){
1199
       }else if(this.prescription.mode_id == ""){
1200
         this.$message.error('透析方式未填')
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
         this.$message.error('置换方式未填')
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
         this.$message.error('置换量未填')
1204
         this.$message.error('置换量未填')
1205
       }else if(this.prescription.blood_flow_volume == 0){
1205
       }else if(this.prescription.blood_flow_volume == 0){
1206
         this.$message.error('血流量未填')
1206
         this.$message.error('血流量未填')
1276
         this.$message.error('下机护士未填')
1276
         this.$message.error('下机护士未填')
1277
       }else if(this.prescription.prescription_doctor == 0){
1277
       }else if(this.prescription.prescription_doctor == 0){
1278
         this.$message.error('治疗医生未填')
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
       }else{
1333
       }else{
1312
         this.$message.success('核对完成')
1334
         this.$message.success('核对完成')
1313
       }
1335
       }

+ 45 - 6
src/xt_pages/dialysis/template/DialysisPrintOrderThirteen.vue Целия файл

785
         this.$message.error('跌倒风险预防措施未填')
785
         this.$message.error('跌倒风险预防措施未填')
786
       }else if(this.prescription.prescription_doctor == 0){
786
       }else if(this.prescription.prescription_doctor == 0){
787
         this.$message.error('上机医生未填')
787
         this.$message.error('上机医生未填')
788
-      }else if(this.dialysisOrder.washpipe_nurse == 0){
788
+      }else if(this.dialysisOrder == null || this.dialysisOrder.washpipe_nurse <= 0){
789
         this.$message.error('冲管护士未填')
789
         this.$message.error('冲管护士未填')
790
-      }else if(this.dialysisOrder.puncture_nurse == 0){
790
+      }else if(this.dialysisOrder == null || this.dialysisOrder.puncture_nurse <= 0){
791
         this.$message.error('穿刺者未填')
791
         this.$message.error('穿刺者未填')
792
-      }else if(this.dialysisOrder.start_nurse == 0){
792
+      }else if(this.dialysisOrder == null || this.dialysisOrder.start_nurse == 0){
793
         this.$message.error('上机护士未填')
793
         this.$message.error('上机护士未填')
794
-      }else if(this.dialysisOrder.finish_nurse == 0){
794
+      }else if(this.dialysisOrder == null || this.dialysisOrder.finish_nurse == 0){
795
         this.$message.error('下机护士未填')
795
         this.$message.error('下机护士未填')
796
       }else if(this.afterdialysis.temperature == 0){
796
       }else if(this.afterdialysis.temperature == 0){
797
         this.$message.error('透后体温未填')
797
         this.$message.error('透后体温未填')
815
         this.$message.error('透析小结未填')
815
         this.$message.error('透析小结未填')
816
       }else if(this.orderForm.start_nurse == ""){
816
       }else if(this.orderForm.start_nurse == ""){
817
         this.$message.error('记录者未填')
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
         this.$message.error('二核护士未填')
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
         this.$message.error('二核护士未填')
821
         this.$message.error('二核护士未填')
822
       }else if(this.summary.modifier == 0 && this.summary.creater == 0){
822
       }else if(this.summary.modifier == 0 && this.summary.creater == 0){
823
         this.$message.error('医生签名未填')
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
     getNewAge(UUserCard) {
865
     getNewAge(UUserCard) {

+ 53 - 29
src/xt_pages/dialysis/template/DialysisPrintOrderThirty.vue Целия файл

732
         this.$message.error('上机护士未填')
732
         this.$message.error('上机护士未填')
733
       }else if(this.prescription.prescription_doctor == 0){
733
       }else if(this.prescription.prescription_doctor == 0){
734
         this.$message.error('医师签名未填')
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
     getHemorrhage(hemorrhage){
793
     getHemorrhage(hemorrhage){

+ 58 - 34
src/xt_pages/dialysis/template/DialysisPrintOrderTwenty.vue Целия файл

1120
         this.$message.error('内瘘震颤皮肤未填')
1120
         this.$message.error('内瘘震颤皮肤未填')
1121
       }else if(this.predialysis.puncture_needle == ''){
1121
       }else if(this.predialysis.puncture_needle == ''){
1122
         this.$message.error('针型未填')
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
         this.$message.error('置管未填')
1124
         this.$message.error('置管未填')
1125
       }else if(this.predialysis.blood_access_part_id == ''){
1125
       }else if(this.predialysis.blood_access_part_id == ''){
1126
         this.$message.error('血管通路部位未填')
1126
         this.$message.error('血管通路部位未填')
1127
       }else if(this.predialysis.catheter_bend == 0){
1127
       }else if(this.predialysis.catheter_bend == 0){
1128
         this.$message.error('导管打折未填')
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
         this.$message.error('穿刺口未填')
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
         this.$message.error('导管吸壁未填')
1132
         this.$message.error('导管吸壁未填')
1133
       }else if(this.afterdialysis.cvc_a == 0){
1133
       }else if(this.afterdialysis.cvc_a == 0){
1134
         this.$message.error('容量A未填')
1134
         this.$message.error('容量A未填')
1158
         this.$message.error('医生签名未填')
1158
         this.$message.error('医生签名未填')
1159
       }else if(this.dialysisOrder.puncture_nurse == 0){
1159
       }else if(this.dialysisOrder.puncture_nurse == 0){
1160
         this.$message.error('上机护士未填')
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
         this.$message.error('核对护士未填')
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
         this.$message.error('核对护士未填')
1164
         this.$message.error('核对护士未填')
1165
       }else if(this.afterdialysis.actual_treatment_hour == 0 && this.afterdialysis.actual_treatment_minute == 0){
1165
       }else if(this.afterdialysis.actual_treatment_hour == 0 && this.afterdialysis.actual_treatment_minute == 0){
1166
         this.$message.error('实际治疗时间未填')
1166
         this.$message.error('实际治疗时间未填')
1188
         this.$message.error('当班责任护士未填')
1188
         this.$message.error('当班责任护士未填')
1189
       }else if(this.dialysisOrder.finish_nurse == 0){
1189
       }else if(this.dialysisOrder.finish_nurse == 0){
1190
         this.$message.error('下机护士和护士签名未填')
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
     getNewAge(UUserCard) {
1249
     getNewAge(UUserCard) {

+ 43 - 1
src/xt_pages/dialysis/template/DialysisPrintOrderTwentyEight.vue Целия файл

1805
           this.$message.error('医生未填')
1805
           this.$message.error('医生未填')
1806
         }else if(this.dialysisOrder.start_nurse == 0){
1806
         }else if(this.dialysisOrder.start_nurse == 0){
1807
           this.$message.error('责任护士未填')
1807
           this.$message.error('责任护士未填')
1808
-        }else if(this.dialysisOrder.puncture_nurse == 0){
1808
+        }else if(this.dialysisOrder == null || this.dialysisOrder.puncture_nurse == 0){
1809
           this.$message.error('穿刺护士未填')
1809
           this.$message.error('穿刺护士未填')
1810
         }else if(this.dialysisOrder != null && this.dialysisOrder.start_nurse == this.check.modifier && this.check.creater == 0){
1810
         }else if(this.dialysisOrder != null && this.dialysisOrder.start_nurse == this.check.modifier && this.check.creater == 0){
1811
           this.$message.error('核对护士未填')
1811
           this.$message.error('核对护士未填')
1812
         }else if(this.dialysisOrder != null && this.dialysisOrder.start_nurse == this.check.creater && this.check.modifier == 0){
1812
         }else if(this.dialysisOrder != null && this.dialysisOrder.start_nurse == this.check.creater && this.check.modifier == 0){
1813
           this.$message.error('核对护士未填')
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
       getComplication(complication){
1858
       getComplication(complication){

+ 40 - 18
src/xt_pages/dialysis/template/DialysisPrintOrderTwentyFive.vue Целия файл

1212
           this.$message.error('透析小结未填')
1212
           this.$message.error('透析小结未填')
1213
         }else if(this.prescription.creater == 0){
1213
         }else if(this.prescription.creater == 0){
1214
           this.$message.error('医生签名未填')
1214
           this.$message.error('医生签名未填')
1215
-        }else if(this.dialysisOrder.puncture_nurse == 0){
1215
+        }else if(this.dialysisOrder == null || this.dialysisOrder.puncture_nurse <= 0){
1216
           this.$message.error('穿刺护士未填')
1216
           this.$message.error('穿刺护士未填')
1217
         }else if(this.dialysisOrder != null && this.dialysisOrder.start_nurse == this.check.modifier && this.check.creater == 0){
1217
         }else if(this.dialysisOrder != null && this.dialysisOrder.start_nurse == this.check.modifier && this.check.creater == 0){
1218
           this.$message.error('核对护士未填')
1218
           this.$message.error('核对护士未填')
1223
         }else if(this.dialysisOrder.finish_nurse == 0){
1223
         }else if(this.dialysisOrder.finish_nurse == 0){
1224
           this.$message.error('下机护士未填')
1224
           this.$message.error('下机护士未填')
1225
         }else if(this.tableAdvice.length > 0){
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
       getComplication(complication){
1269
       getComplication(complication){

+ 58 - 2
src/xt_pages/dialysis/template/DialysisPrintOrderTwentyFour.vue Целия файл

1746
         this.$message.error('导管特殊情况未填')
1746
         this.$message.error('导管特殊情况未填')
1747
       }else if(this.afterdialysis.complication == ""){
1747
       }else if(this.afterdialysis.complication == ""){
1748
         this.$message.error('透后并发症未填')
1748
         this.$message.error('透后并发症未填')
1749
-      }else if(this.dialysisOrder.washpipe_nurse == 0){
1749
+      }else if(this.dialysisOrder == null || this.dialysisOrder.washpipe_nurse <= 0){
1750
         this.$message.error('冲管护士未填')
1750
         this.$message.error('冲管护士未填')
1751
-      }else if(this.dialysisOrder.puncture_nurse == 0){
1751
+      }else if(this.dialysisOrder == null || this.dialysisOrder.puncture_nurse <= 0){
1752
         this.$message.error('穿刺护士未填')
1752
         this.$message.error('穿刺护士未填')
1753
       }else if(this.dialysisOrder.start_nurse == 0){
1753
       }else if(this.dialysisOrder.start_nurse == 0){
1754
         this.$message.error('责任护士未填')
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
     otherSealingFluidDispose(sealing_fluid_dispose){
1813
     otherSealingFluidDispose(sealing_fluid_dispose){

+ 54 - 30
src/xt_pages/dialysis/template/DialysisPrintOrderTwentyNine.vue Целия файл

776
         this.$message.error('透析宣教未填')
776
         this.$message.error('透析宣教未填')
777
       }else if(this.summary.dialysis_summary == ""){
777
       }else if(this.summary.dialysis_summary == ""){
778
         this.$message.error('透析小结未填')
778
         this.$message.error('透析小结未填')
779
-      }else if(this.dialysisOrder.puncture_nurse == 0){
779
+      }else if(this.dialysisOrder == null || this.dialysisOrder.puncture_nurse <= 0){
780
         this.$message.error('穿刺护士未填')
780
         this.$message.error('穿刺护士未填')
781
       }else if(this.dialysisOrder.start_nurse == 0){
781
       }else if(this.dialysisOrder.start_nurse == 0){
782
         this.$message.error('治疗护士未填')
782
         this.$message.error('治疗护士未填')
783
       }else if(this.prescription.prescription_doctor == 0){
783
       }else if(this.prescription.prescription_doctor == 0){
784
         this.$message.error('医生未填')
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
     getHemorrhage(hemorrhage){
843
     getHemorrhage(hemorrhage){

+ 50 - 21
src/xt_pages/dialysis/template/DialysisPrintOrderTwentySeven.vue Целия файл

182
                           <!-- <label-box :isChecked="predialysis.humor_excessive_symptom ? getHumorExcessiveSymptom(predialysis.humor_excessive_symptom).indexOf('无') > -1 : false" showValue="无"></label-box> -->
182
                           <!-- <label-box :isChecked="predialysis.humor_excessive_symptom ? getHumorExcessiveSymptom(predialysis.humor_excessive_symptom).indexOf('无') > -1 : false" showValue="无"></label-box> -->
183
                         </div>
183
                         </div>
184
                       </td>
184
                       </td>
185
-                      <td width="180">
186
-                        <div>
185
+                      <td width="400">
186
+                        <!-- <div>
187
                           <label-box :isChecked="predialysis.humor_excessive_symptom ? getHumorExcessiveSymptom(predialysis.humor_excessive_symptom) == '下肢水肿' : false" showValue="下肢水肿"></label-box>
187
                           <label-box :isChecked="predialysis.humor_excessive_symptom ? getHumorExcessiveSymptom(predialysis.humor_excessive_symptom) == '下肢水肿' : false" showValue="下肢水肿"></label-box>
188
                           &nbsp;
188
                           &nbsp;
189
                           <label-box :isChecked="predialysis.humor_excessive_symptom ? getHumorExcessiveSymptom(predialysis.humor_excessive_symptom).indexOf('颜面浮肿') >-1 : false" showValue="颜面浮肿"></label-box>
189
                           <label-box :isChecked="predialysis.humor_excessive_symptom ? getHumorExcessiveSymptom(predialysis.humor_excessive_symptom).indexOf('颜面浮肿') >-1 : false" showValue="颜面浮肿"></label-box>
190
                           &nbsp;
190
                           &nbsp;
191
+                        </div> -->
192
+                         <div class="under-line">
193
+                          &nbsp;
194
+                          <span>{{ predialysis.humor_excessive_symptom ? predialysis.humor_excessive_symptom : '' }}</span>
191
                         </div>
195
                         </div>
196
+
192
                       </td>
197
                       </td>
193
 
198
 
194
-                      <td width="50"><label-box :isChecked="predialysis.humor_excessive_symptom ? ['无','下肢水肿','颜面浮肿'].indexOf(getHumorExcessiveSymptom(predialysis.humor_excessive_symptom)) == -1 : false" showValue="其它"></label-box></td>
199
+                      <!-- <td width="50"><label-box :isChecked="predialysis.humor_excessive_symptom ? ['无','下肢水肿','颜面浮肿'].indexOf(getHumorExcessiveSymptom(predialysis.humor_excessive_symptom)) == -1 : false" showValue="其它"></label-box></td>
195
                       <td width="140">
200
                       <td width="140">
196
                         <div class="under-line">
201
                         <div class="under-line">
197
                           &nbsp;
202
                           &nbsp;
199
                             {{ getHumorExcessiveSymptom(predialysis.humor_excessive_symptom) }}
204
                             {{ getHumorExcessiveSymptom(predialysis.humor_excessive_symptom) }}
200
                           </span>
205
                           </span>
201
                         </div>
206
                         </div>
202
-                      </td>
207
+                      </td> -->
208
+                      <td></td>
209
+                      <td></td>
203
                       <td></td>
210
                       <td></td>
204
                     </tr>
211
                     </tr>
205
                   </tbody>
212
                   </tbody>
1422
       }else if(this.dialysisOrder.finish_nurse == 0){
1429
       }else if(this.dialysisOrder.finish_nurse == 0){
1423
         this.$message.error('下机护士未填')
1430
         this.$message.error('下机护士未填')
1424
       }else if(this.tableAdvice.length > 0){
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
     getComplication(complication){
1475
     getComplication(complication){

+ 39 - 17
src/xt_pages/dialysis/template/DialysisPrintOrderTwentySix.vue Целия файл

1320
       }else if(this.dialysisOrder != null && this.dialysisOrder.start_nurse == this.check.creater && this.check.modifier == 0){
1320
       }else if(this.dialysisOrder != null && this.dialysisOrder.start_nurse == this.check.creater && this.check.modifier == 0){
1321
         this.$message.error('核对护士未填')
1321
         this.$message.error('核对护士未填')
1322
       }else if(this.tableAdvice.length > 0){
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
     getNewAge(UUserCard) {
1366
     getNewAge(UUserCard) {

+ 56 - 31
src/xt_pages/dialysis/template/DialysisPrintOrderTwentyTwo.vue Целия файл

1386
         this.$message.error('患者去向未填')
1386
         this.$message.error('患者去向未填')
1387
       }else if(this.dialysisOrder.start_nurse == 0){
1387
       }else if(this.dialysisOrder.start_nurse == 0){
1388
         this.$message.error('责任护士未填')
1388
         this.$message.error('责任护士未填')
1389
-      }else if(this.dialysisOrder.puncture_nurse == 0){
1389
+      }else if(this.dialysisOrder == null || this.dialysisOrder.puncture_nurse == 0){
1390
         this.$message.error('穿刺者未填')
1390
         this.$message.error('穿刺者未填')
1391
       }else if(this.dialysisOrder == null && this.check.creater == 0){
1391
       }else if(this.dialysisOrder == null && this.check.creater == 0){
1392
         this.$message.error('核对人未填')
1392
         this.$message.error('核对人未填')
1404
         this.$message.error('治疗方式未填')
1404
         this.$message.error('治疗方式未填')
1405
       }else if(this.prescription.dialysis_duration_hour == 0 && this.prescription.dialysis_duration_minute == 0){
1405
       }else if(this.prescription.dialysis_duration_hour == 0 && this.prescription.dialysis_duration_minute == 0){
1406
         this.$message.error('透析时间未填')
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
         this.$message.error('体液过多症状未填')
1408
         this.$message.error('体液过多症状未填')
1409
       }else if(this.prescription.dialyzer_perfusion_apparatus == ""){
1409
       }else if(this.prescription.dialyzer_perfusion_apparatus == ""){
1410
         this.$message.error('透析器型号未填')
1410
         this.$message.error('透析器型号未填')
1432
         this.$message.error('实际超滤量未填')
1432
         this.$message.error('实际超滤量未填')
1433
       }else if(this.afterdialysis.weight_after == 0){
1433
       }else if(this.afterdialysis.weight_after == 0){
1434
         this.$message.error('透后体重未填')
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
     getPartName(id) {
1493
     getPartName(id) {
1733
         }
1757
         }
1734
 
1758
 
1735
         this.advices = response.data.data.advices;
1759
         this.advices = response.data.data.advices;
1760
+        this.tableAdvice = response.data.data.advices;
1736
         this.monitors = response.data.data.monitors;
1761
         this.monitors = response.data.data.monitors;
1737
         this.summary = response.data.data.summary;
1762
         this.summary = response.data.data.summary;
1738
         this.org_template_info = response.data.data.org_template_info;
1763
         this.org_template_info = response.data.data.org_template_info;

+ 45 - 30
src/xt_pages/dialysis/template/dialysisPrintOrderTwelve.vue Целия файл

1276
         this.$message.error('碳酸氢根未填')
1276
         this.$message.error('碳酸氢根未填')
1277
       }else if(this.predialysis.blood_access_part_opera_name == ''){
1277
       }else if(this.predialysis.blood_access_part_opera_name == ''){
1278
         this.$message.error('血管通路未填')
1278
         this.$message.error('血管通路未填')
1279
-      }else if(this.dialysisOrder.puncture_nurse == 0){
1279
+      }else if(this.dialysisOrder == null || this.dialysisOrder.puncture_nurse <= 0){
1280
         this.$message.error('穿刺者未填')
1280
         this.$message.error('穿刺者未填')
1281
       }else if(this.predialysis.weight_before == 0){
1281
       }else if(this.predialysis.weight_before == 0){
1282
         this.$message.error('透前体重未填')
1282
         this.$message.error('透前体重未填')
1302
         this.$message.error('核对护士未填')
1302
         this.$message.error('核对护士未填')
1303
       }else if(this.doctor_advices.length > 0 && this.doctor_advices[0].execution_staff == 0){
1303
       }else if(this.doctor_advices.length > 0 && this.doctor_advices[0].execution_staff == 0){
1304
         this.$message.error('护士签名未填')
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
     getDisplaceLiquiPart: function(val) {
1354
     getDisplaceLiquiPart: function(val) {

+ 53 - 30
src/xt_pages/dialysis/template/dialysisPrintOrderTwo.vue Целия файл

1370
         this.$message.error('心理评估未填')
1370
         this.$message.error('心理评估未填')
1371
       }else if(this.afterdialysis.dialysis_process == 0){
1371
       }else if(this.afterdialysis.dialysis_process == 0){
1372
         this.$message.error('透析过程未填')
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
         this.$message.error('透析过程原因未填')
1374
         this.$message.error('透析过程原因未填')
1375
       }else if(this.afterdialysis.hemostasis_minute == 0){
1375
       }else if(this.afterdialysis.hemostasis_minute == 0){
1376
         this.$message.error('内瘘管拔针后压迫止血时间未填')
1376
         this.$message.error('内瘘管拔针后压迫止血时间未填')
1436
         this.$message.error('实际超滤量未填')
1436
         this.$message.error('实际超滤量未填')
1437
       }else if(this.afterdialysis.weight_after == 0){
1437
       }else if(this.afterdialysis.weight_after == 0){
1438
         this.$message.error('透后体重未填')
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
       }else{
1493
       }else{
1472
         this.$message.success('核对完成')
1494
         this.$message.success('核对完成')
1473
       }
1495
       }
1730
         }
1752
         }
1731
 
1753
 
1732
         this.advices = response.data.data.advices;
1754
         this.advices = response.data.data.advices;
1755
+        this.tableAdvice = response.data.data.advices;
1733
         this.monitors = response.data.data.monitors;
1756
         this.monitors = response.data.data.monitors;
1734
         this.summary = response.data.data.summary;
1757
         this.summary = response.data.data.summary;
1735
         this.org_template_info = response.data.data.org_template_info;
1758
         this.org_template_info = response.data.data.org_template_info;

+ 4 - 4
src/xt_pages/outpatientDoctorStation/components/deskPrescription.vue Целия файл

286
                                         </el-table-column>
286
                                         </el-table-column>
287
                                         <el-table-column label="库存" width="60">
287
                                         <el-table-column label="库存" width="60">
288
                                             <template slot-scope="scope">
288
                                             <template slot-scope="scope">
289
-                                              <span v-if="org_id == 9671 || org_id == 9675 || org_id == 4 || org_id == 10138 || org_id == 3877 || org_id == 10028 || 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
                                                <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>
290
                                                <span v-if="scope.row.count/scope.row.min_number>0">{{Math.floor(scope.row.count/scope.row.min_number)}}{{scope.row.max_unit}}</span>
291
                                                <span v-if="scope.row.count%scope.row.min_number>0"> {{scope.row.count%scope.row.min_number}}{{scope.row.min_unit}}</span>
291
                                                <span v-if="scope.row.count%scope.row.min_number>0"> {{scope.row.count%scope.row.min_number}}{{scope.row.min_unit}}</span>
292
                                               </span>
292
                                               </span>
383
                                         </el-table-column>
383
                                         </el-table-column>
384
                                         <el-table-column label="库存" width="40">
384
                                         <el-table-column label="库存" width="40">
385
                                             <template slot-scope="scope">
385
                                             <template slot-scope="scope">
386
-                                              <span v-if="org_id == 9671 || org_id == 9675 || org_id == 4 || org_id == 10138 || org_id == 3877 || org_id == 10028 || 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
                                                    {{scope.row.stock_count}}
387
                                                    {{scope.row.stock_count}}
388
                                               </span>
388
                                               </span>
389
                                               <span v-else> {{ scope.row.total }}</span>
389
                                               <span v-else> {{ scope.row.total }}</span>
2658
       selectDrugs(selection, row) {
2658
       selectDrugs(selection, row) {
2659
         console.log('selection', selection)
2659
         console.log('selection', selection)
2660
         console.log('row', row)
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
             if (row.count <= 0) {
2662
             if (row.count <= 0) {
2663
               if (selection) {
2663
               if (selection) {
2664
                 selection.forEach(row => {
2664
                 selection.forEach(row => {
2933
       },
2933
       },
2934
       selectChange(selection, row) {
2934
       selectChange(selection, row) {
2935
         console.log('row', row)
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
            if (row.stock_count <= 0) {
2937
            if (row.stock_count <= 0) {
2938
             if (row.type == 3) {
2938
             if (row.type == 3) {
2939
               if (selection) {
2939
               if (selection) {

+ 1 - 1
src/xt_pages/stock/cancelStockOrderAdd.vue Целия файл

283
 
283
 
284
 <script>
284
 <script>
285
 import { uParseTime } from "@/utils/tools";
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
 import BreadCrumb from "../components/bread-crumb";
287
 import BreadCrumb from "../components/bread-crumb";
288
 import StockInDialog from './Dialog/stockInDialog'
288
 import StockInDialog from './Dialog/stockInDialog'
289
 
289
 

+ 4 - 2
src/xt_pages/stock/drugs/cancelDrugStockOrderEdit.vue Целия файл

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

+ 1 - 2
src/xt_pages/stock/drugs/drugDamaged.vue Целия файл

130
               </el-table-column>
130
               </el-table-column>
131
               <el-table-column prop="address" label="损耗数量" align="center">
131
               <el-table-column prop="address" label="损耗数量" align="center">
132
                 <template slot-scope="scope">
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
                 </template>
134
                 </template>
136
               </el-table-column>
135
               </el-table-column>
137
               <el-table-column prop="address" label="药损比" align="center">
136
               <el-table-column prop="address" label="药损比" align="center">

+ 2 - 3
src/xt_pages/stock/drugs/drugStockOutOrderEdit.vue Целия файл

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

+ 1 - 0
src/xt_pages/stock/drugs/inventory.vue Целия файл

317
                         batch_number:item.batch_number,
317
                         batch_number:item.batch_number,
318
                         expiry_date:item.expiry_date,
318
                         expiry_date:item.expiry_date,
319
                         type:0,
319
                         type:0,
320
+                        
320
                       }
321
                       }
321
                     }
322
                     }
322
                   })
323
                   })

+ 0 - 18
src/xt_pages/stock/drugs/inventoryDetails.vue Целия файл

2
     <div>
2
     <div>
3
         <div style="display: flex;align-items: center;justify-content: space-between;margin-bottom:10px;">
3
         <div style="display: flex;align-items: center;justify-content: space-between;margin-bottom:10px;">
4
             <div>
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
                 <el-input
5
                 <el-input
24
                 size="small"
6
                 size="small"
25
                 style="width: 200px;margin-left:10px;"
7
                 style="width: 200px;margin-left:10px;"

+ 36 - 36
src/xt_pages/stock/drugs/query.vue Целия файл

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

+ 24 - 23
src/xt_pages/stock/inventory.vue Целия файл

62
                     {{scope.row.manufacturer_name}}
62
                     {{scope.row.manufacturer_name}}
63
                   </template> 
63
                   </template> 
64
               </el-table-column>
64
               </el-table-column>
65
-              <el-table-column prop="name" label="盘点前数量" width="100"  align="center">
65
+              <el-table-column prop="name" label="盘点前数量" width="120"  align="center">
66
                 <template slot-scope="scope">
66
                 <template slot-scope="scope">
67
                     <span><el-input style="width:80px" v-model="scope.row.stock_count" :disabled="true"></el-input>{{scope.row.max_unit}}</span> 
67
                     <span><el-input style="width:80px" v-model="scope.row.stock_count" :disabled="true"></el-input>{{scope.row.max_unit}}</span> 
68
                   </template> 
68
                   </template> 
69
               </el-table-column>
69
               </el-table-column>
70
 
70
 
71
-             <el-table-column prop="name" label="盘点后数量" width="100"  align="center">
71
+             <el-table-column prop="name" label="盘点后数量" width="120"  align="center">
72
                 <template slot-scope="scope">
72
                 <template slot-scope="scope">
73
                   <el-input style="width:80px" v-model="scope.row.last_stock_count"></el-input>
73
                   <el-input style="width:80px" v-model="scope.row.last_stock_count"></el-input>
74
                  </template> 
74
                  </template> 
272
           this.page = val
272
           this.page = val
273
           this.getlist()
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
      getChecker(id){
296
      getChecker(id){
297
        var name = ""
297
        var name = ""
298
        for(let i=0;i<this.doctorList.length;i++){
298
        for(let i=0;i<this.doctorList.length;i++){
452
           
452
           
453
             for(let i=0;i<this.WarehouseList.length;i++){
453
             for(let i=0;i<this.WarehouseList.length;i++){
454
               for(let j=0;j<newList.length;j++){
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
                     newList[j].child.push(this.WarehouseList[i])
456
                     newList[j].child.push(this.WarehouseList[i])
457
                 }
457
                 }
458
               }
458
               }
459
             }
459
             }
460
           console.log("newList2333232323232",newList)
460
           console.log("newList2333232323232",newList)
461
+          
461
           this.tableData = newList
462
           this.tableData = newList
462
           this.showSearch = false
463
           this.showSearch = false
463
           this.showTable = true
464
           this.showTable = true

+ 8 - 2
src/xt_pages/stock/inventoryDetails.vue Целия файл

117
            }
117
            }
118
           this.$router.push({path:'/stock/inventoryDetailPrint?ids='+this.ids})
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
         getlist(){
128
         getlist(){
123
          var params = {
129
          var params = {
124
             keyword:this.searchKey,
130
             keyword:this.searchKey,

+ 42 - 10
src/xt_pages/stock/stockDamaged.vue Целия файл

14
         type="primary"
14
         type="primary"
15
         icon="el-icon-search"
15
         icon="el-icon-search"
16
         @click="search">搜索</el-button>
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
     </div>
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
         <el-table-column type="selection" width="55" align="center"> </el-table-column>
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
         <el-table-column prop="date" label="耗材名称"  align="center">
43
         <el-table-column prop="date" label="耗材名称"  align="center">
22
           <template  slot-scope="scope">
44
           <template  slot-scope="scope">
23
             {{scope.row.good_name}}
45
             {{scope.row.good_name}}
276
             </el-col>
298
             </el-col>
277
             <el-col :span="8">
299
             <el-col :span="8">
278
               <el-form-item label="原因:">
300
               <el-form-item label="原因:">
279
-                  <el-select v-model="form.type" placeholder="请选择">
301
+                  <el-select v-model="form.type" placeholder="请选择" @change="changeReason">
280
                       <el-option
302
                       <el-option
281
                         v-for="item in reasonList"
303
                         v-for="item in reasonList"
282
                         :key="item.id"
304
                         :key="item.id"
730
           }
752
           }
731
         }
753
         }
732
         return count
754
         return count
755
+      },
756
+      changeReason(){
757
+
733
       },
758
       },
734
       toDamagedDetail(good_id){
759
       toDamagedDetail(good_id){
735
           var params = {
760
           var params = {
737
             warehousing_order:this.form.warehousing_order,
762
             warehousing_order:this.form.warehousing_order,
738
             type:this.form.type,
763
             type:this.form.type,
739
           }
764
           }
765
+          console.log("para2233232",params)
740
          getDamageDetailByGoodId(params).then(response=>{
766
          getDamageDetailByGoodId(params).then(response=>{
741
             if(response.data.state == 1){
767
             if(response.data.state == 1){
742
               var list = response.data.data.list
768
               var list = response.data.data.list
743
               console.log("list233232",list)
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 Целия файл

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

+ 9 - 8
src/xt_pages/user/doctorAdvice.vue Целия файл

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

+ 2 - 0
src/xt_pages/workforce/template.vue Целия файл

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