|
@@ -2,12 +2,6 @@
|
2
|
2
|
<div class="longDialysis">
|
3
|
3
|
<div>
|
4
|
4
|
<div class="toolBox">
|
5
|
|
- <div class="toolOne" @click="typeShow = true">
|
6
|
|
- <div style="display: flex;align-items: center;">
|
7
|
|
- {{ type }}
|
8
|
|
- <van-icon name="arrow-down" />
|
9
|
|
- </div>
|
10
|
|
- </div>
|
11
|
5
|
<div class="toolOne" @click="startShow = true">
|
12
|
6
|
<div style="display: flex;align-items: center;">
|
13
|
7
|
{{ startTime }}
|
|
@@ -22,21 +16,98 @@
|
22
|
16
|
</div>
|
23
|
17
|
</div>
|
24
|
18
|
<div class="adviceBox">
|
25
|
|
- <van-list v-model="loading" :finished="finished" finished-text="没有更多了" @load="onLoad">
|
26
|
|
- <div class="adviceOne" v-for="item in 3" :key="index">
|
|
19
|
+ <van-list
|
|
20
|
+ v-model="loading"
|
|
21
|
+ :finished="finished"
|
|
22
|
+ finished-text="没有更多了"
|
|
23
|
+ @load="onLoad"
|
|
24
|
+ >
|
|
25
|
+ <div
|
|
26
|
+ class="adviceOne"
|
|
27
|
+ v-for="(item, index) in dialysisrecord"
|
|
28
|
+ :key="index"
|
|
29
|
+ >
|
27
|
30
|
<div class="adviceTitle">
|
28
|
|
- <p>2019.09.01</p>
|
29
|
|
- <van-icon class="ellipsis" name="ellipsis" @click="newShow = true" />
|
|
31
|
+ <p>{{ getTime(item.created_time) }}</p>
|
|
32
|
+ <van-icon
|
|
33
|
+ class="ellipsis"
|
|
34
|
+ name="ellipsis"
|
|
35
|
+ @click="newShow = true"
|
|
36
|
+ />
|
30
|
37
|
</div>
|
31
|
38
|
<div class="orderContent">
|
32
|
|
- <p>透析模式:HD</p>
|
33
|
|
- <p>透析时长(h/min):2h30min</p>
|
34
|
|
- <p>血流量(ml/min):12</p>
|
35
|
|
- <p>目标超滤量(ml):1200ml</p>
|
36
|
|
- <p>透析配方:1200ml</p>
|
37
|
|
- <p>抗凝剂:1200ml</p>
|
38
|
|
- <p>首剂(mg):1200ml</p>
|
39
|
|
- <p>维持(mg/h):1200ml</p>
|
|
39
|
+ <p>透析模式:{{ item.mode_id }}</p>
|
|
40
|
+ <p>
|
|
41
|
+ 透析时长:{{ item.dialysis_duration_hour }}h{{
|
|
42
|
+ item.dialysis_duration_minute
|
|
43
|
+ }}min
|
|
44
|
+ </p>
|
|
45
|
+ <p>血流量(ml/min):{{ item.blood_flow_volume }}</p>
|
|
46
|
+ <p>目标超滤量(ml):{{ item.target_ultrafiltration }}</p>
|
|
47
|
+ <p>透析液配方(mmol/L):{{ item.dialysate_formulation }}</p>
|
|
48
|
+ <p>
|
|
49
|
+ 抗凝剂:
|
|
50
|
+ <span v-if="item.anticoagulant == 1">无肝素</span>
|
|
51
|
+ <span v-if="item.anticoagulant == 2">普通肝素</span>
|
|
52
|
+ <span v-if="item.anticoagulant == 3">低分子肝素</span>
|
|
53
|
+ <span v-if="item.anticoagulant == 4">阿加曲班</span>
|
|
54
|
+ <span v-if="item.anticoagulant == 5">枸橼酸钠</span>
|
|
55
|
+ </p>
|
|
56
|
+ <p>
|
|
57
|
+ 首剂:
|
|
58
|
+ <span>{{ item.anticoagulant_shouji }}</span>
|
|
59
|
+ <span v-if="item.anticoagulant == 1">mg</span>
|
|
60
|
+ <span v-if="item.anticoagulant == 2">mg</span>
|
|
61
|
+ <span v-if="item.anticoagulant == 3">iu</span>
|
|
62
|
+ <span v-if="item.anticoagulant == 4">iu</span>
|
|
63
|
+ <span v-if="item.anticoagulant == 5">mg</span>
|
|
64
|
+ </p>
|
|
65
|
+ <p>
|
|
66
|
+ 维持:
|
|
67
|
+ <span>{{ item.anticoagulant_weichi }}</span>
|
|
68
|
+ <span v-if="item.anticoagulant == 1">ml</span>
|
|
69
|
+ <span v-if="item.anticoagulant == 2">iu</span>
|
|
70
|
+ <span v-if="item.anticoagulant == 3">iu</span>
|
|
71
|
+ <span v-if="item.anticoagulant == 4">mg</span>
|
|
72
|
+ <span v-if="item.anticoagulant == 5">ml</span>
|
|
73
|
+ </p>
|
|
74
|
+ <p>
|
|
75
|
+ 总量:
|
|
76
|
+ <span>{{ item.anticoagulant_zongliang }}</span>
|
|
77
|
+ <span v-if="item.anticoagulant == 1">mg</span>
|
|
78
|
+ <span v-if="item.anticoagulant == 2">iu</span>
|
|
79
|
+ <span v-if="item.anticoagulant == 3">iu</span>
|
|
80
|
+ <span v-if="item.anticoagulant == 4">mg</span>
|
|
81
|
+ <span v-if="item.anticoagulant == 5">mg</span>
|
|
82
|
+ </p>
|
|
83
|
+ <p>置换量(L):{{ item.replacement_total }}</p>
|
|
84
|
+ <p>钾(mmol/L):{{ item.kalium }}</p>
|
|
85
|
+ <p>钠(mmol/L):{{ item.sodium }}</p>
|
|
86
|
+ <p>钙(mmol/L):{{ item.calcium }}</p>
|
|
87
|
+ <p>透析器/灌流器:{{ item.dialyzer_perfusion_apparatus }}</p>
|
|
88
|
+ <p>碳酸氢盐(mmol/L):{{ item.bicarbonate }}</p>
|
|
89
|
+ <p>葡萄糖(mmol/L):{{ item.glucose }}</p>
|
|
90
|
+ <p>透析液流量(ml/min):{{ item.dialysate_flow }}</p>
|
|
91
|
+ <p>透析液温度(℃):{{ item.dialysate_temperature }}</p>
|
|
92
|
+ <p>
|
|
93
|
+ 体液过多症状:
|
|
94
|
+ <span v-if="item.body_fluid == 1">无</span>
|
|
95
|
+ <span v-if="item.body_fluid == 2">下肢水肿+</span>
|
|
96
|
+ <span v-if="item.body_fluid == 3">下肢水肿++</span>
|
|
97
|
+ <span v-if="item.body_fluid == 4">下肢水肿+++</span>
|
|
98
|
+ </p>
|
|
99
|
+ <p>体液过多其他症状:{{ item.body_fluid_other }}</p>
|
|
100
|
+ <p>
|
|
101
|
+ 透析前使用特殊药物:{{
|
|
102
|
+ getSpecialMedicine(item.special_medicine)
|
|
103
|
+ }}
|
|
104
|
+ </p>
|
|
105
|
+ <p>使用其他特殊药物:{{ item.special_medicine_other }}</p>
|
|
106
|
+ <p>置换液:{{ item.displace_liqui_part }}</p>
|
|
107
|
+ <p>置换液总量:{{ item.displace_liqui_value }}</p>
|
|
108
|
+ <p>血管通路:{{ getBloodAccessOption(item.blood_access) }}</p>
|
|
109
|
+ <p>实际超滤量:{{ item.ultrafiltration }}</p>
|
|
110
|
+ <div>备注:{{ item.remark }}</div>
|
40
|
111
|
</div>
|
41
|
112
|
<div class="all">全部</div>
|
42
|
113
|
</div>
|
|
@@ -51,10 +122,23 @@
|
51
|
122
|
|
52
|
123
|
<!-- 弹出层 -->
|
53
|
124
|
<div>
|
54
|
|
- <van-popup v-model="typeShow" position="bottom" :style="{ height: '40%' }">
|
55
|
|
- <van-picker show-toolbar :columns="columns" @cancel="onCancel" @confirm="onConfirm" />
|
|
125
|
+ <van-popup
|
|
126
|
+ v-model="typeShow"
|
|
127
|
+ position="bottom"
|
|
128
|
+ :style="{ height: '40%' }"
|
|
129
|
+ >
|
|
130
|
+ <van-picker
|
|
131
|
+ show-toolbar
|
|
132
|
+ :columns="columns"
|
|
133
|
+ @cancel="onCancel"
|
|
134
|
+ @confirm="onConfirm"
|
|
135
|
+ />
|
56
|
136
|
</van-popup>
|
57
|
|
- <van-popup v-model="startShow" position="bottom" :style="{ height: '40%' }">
|
|
137
|
+ <van-popup
|
|
138
|
+ v-model="startShow"
|
|
139
|
+ position="bottom"
|
|
140
|
+ :style="{ height: '40%' }"
|
|
141
|
+ >
|
58
|
142
|
<van-datetime-picker
|
59
|
143
|
v-model="currentDate"
|
60
|
144
|
type="date"
|
|
@@ -74,12 +158,22 @@
|
74
|
158
|
@cancel="endShow = false"
|
75
|
159
|
/>
|
76
|
160
|
</van-popup>
|
77
|
|
- <van-action-sheet v-model="newShow" :actions="actions" cancel-text="取消" @cancel="onCancel" />
|
|
161
|
+ <van-action-sheet
|
|
162
|
+ v-model="newShow"
|
|
163
|
+ :actions="actions"
|
|
164
|
+ cancel-text="取消"
|
|
165
|
+ @cancel="onCancel"
|
|
166
|
+ />
|
78
|
167
|
</div>
|
79
|
168
|
</div>
|
80
|
169
|
</template>
|
81
|
170
|
|
82
|
171
|
<script>
|
|
172
|
+import { GetLongDialysisRecord } from "@/api/patient/patient";
|
|
173
|
+import { uParseTime } from "@/utils/tools";
|
|
174
|
+import Vue from "vue";
|
|
175
|
+import { Dialog } from "vant";
|
|
176
|
+const moment = require("moment");
|
83
|
177
|
export default {
|
84
|
178
|
data() {
|
85
|
179
|
return {
|
|
@@ -100,12 +194,35 @@ export default {
|
100
|
194
|
"嘉兴",
|
101
|
195
|
"湖州"
|
102
|
196
|
],
|
103
|
|
- startTime: "请选择",
|
104
|
|
- endTime: "请选择",
|
|
197
|
+ startTime: moment()
|
|
198
|
+ .subtract(30, "days")
|
|
199
|
+ .format("YYYY-MM-DD"),
|
|
200
|
+ endTime: moment(new Date()).format("YYYY-MM-DD"),
|
|
201
|
+ endTimes: moment(new Date())
|
|
202
|
+ .add(1, "days")
|
|
203
|
+ .format("YYYY-MM-DD"),
|
105
|
204
|
minDate: new Date(1970, 0, 1),
|
106
|
205
|
maxDate: new Date(2025, 10, 1),
|
107
|
206
|
currentDate: new Date(),
|
108
|
|
- actions: [{ name: "编辑" }, { name: "删除" }]
|
|
207
|
+ actions: [{ name: "编辑" }, { name: "删除" }],
|
|
208
|
+ loading: false,
|
|
209
|
+ finished: false,
|
|
210
|
+ limit: 10,
|
|
211
|
+ page: 1,
|
|
212
|
+ total: 0,
|
|
213
|
+ anticoagulantsSet: {
|
|
214
|
+ type: 1
|
|
215
|
+ },
|
|
216
|
+ replacementWays: null,
|
|
217
|
+ anticoagulantsConfit: null,
|
|
218
|
+ dialysate_formulation: [],
|
|
219
|
+ body_fluid_option: [],
|
|
220
|
+ special_medicine_option: [],
|
|
221
|
+ displace_liqui_part_option: [],
|
|
222
|
+ blood_access_option: [],
|
|
223
|
+ dialysisrecord: [],
|
|
224
|
+ list: [],
|
|
225
|
+ patient_id: ""
|
109
|
226
|
};
|
110
|
227
|
},
|
111
|
228
|
methods: {
|
|
@@ -145,7 +262,158 @@ export default {
|
145
|
262
|
|
146
|
263
|
this.endTime = `${year}-${month}-${day}`;
|
147
|
264
|
this.endShow = false;
|
|
265
|
+ },
|
|
266
|
+ GetLongDialysisRecord(id) {
|
|
267
|
+ GetLongDialysisRecord(
|
|
268
|
+ id,
|
|
269
|
+ this.limit,
|
|
270
|
+ this.page,
|
|
271
|
+ this.startTime,
|
|
272
|
+ this.endTimes
|
|
273
|
+ ).then(response => {
|
|
274
|
+ if (response.data.state === 1) {
|
|
275
|
+ var dialysis = response.data.data.dialysisrecord;
|
|
276
|
+ for (let index = 0; index < dialysis.length; index++) {
|
|
277
|
+ if (dialysis[index].mode_id === 1) {
|
|
278
|
+ dialysis[index].mode_id = "HD";
|
|
279
|
+ }
|
|
280
|
+ if (dialysis[index].mode_id === 2) {
|
|
281
|
+ dialysis[index].mode_id = "HDF";
|
|
282
|
+ }
|
|
283
|
+ if (dialysis[index].mode_id === 3) {
|
|
284
|
+ dialysis[index].mode_id = "HD+HP";
|
|
285
|
+ }
|
|
286
|
+ if (dialysis[index].mode_id === 4) {
|
|
287
|
+ dialysis[index].mode_id = "HP";
|
|
288
|
+ }
|
|
289
|
+ if (dialysis[index].mode_id === 5) {
|
|
290
|
+ dialysis[index].mode_id = "HF";
|
|
291
|
+ }
|
|
292
|
+ if (dialysis[index].mode_id === 6) {
|
|
293
|
+ dialysis[index].mode_id = "SCUF";
|
|
294
|
+ }
|
|
295
|
+ if (dialysis[index].mode_id === 7) {
|
|
296
|
+ dialysis[index].mode_id = "IUF";
|
|
297
|
+ }
|
|
298
|
+ if (dialysis[index].mode_id === 8) {
|
|
299
|
+ dialysis[index].mode_id = "HFHD";
|
|
300
|
+ }
|
|
301
|
+ if (dialysis[index].mode_id === 9) {
|
|
302
|
+ dialysis[index].mode_id = "HFHD+HP";
|
|
303
|
+ }
|
|
304
|
+ if (dialysis[index].mode_id === 10) {
|
|
305
|
+ dialysis[index].mode_id = "PHF";
|
|
306
|
+ }
|
|
307
|
+ if (dialysis[index].mode_id === 11) {
|
|
308
|
+ dialysis[index].mode_id = "HFR";
|
|
309
|
+ }
|
|
310
|
+ if (dialysis[index].mode_id === 12) {
|
|
311
|
+ dialysis[index].mode_id = "HDF+HP";
|
|
312
|
+ }
|
|
313
|
+ if (dialysis[index].mode_id === 13) {
|
|
314
|
+ dialysis[index].mode_id = "CRRT";
|
|
315
|
+ }
|
|
316
|
+ if (dialysis[index].mode_id === 14) {
|
|
317
|
+ dialysis[index].mode_id = "腹水回输";
|
|
318
|
+ }
|
|
319
|
+ if (dialysis[index].mode_id === 15) {
|
|
320
|
+ dialysis[index].mode_id = "HD前置换";
|
|
321
|
+ }
|
|
322
|
+ if (dialysis[index].mode_id === 16) {
|
|
323
|
+ dialysis[index].mode_id = "HD后置换";
|
|
324
|
+ }
|
|
325
|
+ if (dialysis[index].mode_id === 16) {
|
|
326
|
+ dialysis[index].mode_id = "HDF前置换";
|
|
327
|
+ }
|
|
328
|
+ if (dialysis[index].mode_id === 16) {
|
|
329
|
+ dialysis[index].mode_id = "HDF后置换";
|
|
330
|
+ }
|
|
331
|
+
|
|
332
|
+ if (dialysis[index].dialysate_formulation === 1) {
|
|
333
|
+ dialysis[index].dialysate_formulation = "常规";
|
|
334
|
+ }
|
|
335
|
+ if (dialysis[index].dialysate_formulation === 2) {
|
|
336
|
+ dialysis[index].dialysate_formulation = "低钙";
|
|
337
|
+ }
|
|
338
|
+ if (dialysis[index].dialysate_formulation === 1) {
|
|
339
|
+ dialysis[index].dialysate_formulation = "高钙";
|
|
340
|
+ }
|
|
341
|
+ if (dialysis[index].dialysate_formulation === 1) {
|
|
342
|
+ dialysis[index].dialysate_formulation = "低钠";
|
|
343
|
+ }
|
|
344
|
+ if (dialysis[index].dialysate_formulation === 1) {
|
|
345
|
+ dialysis[index].dialysate_formulation = "高钠";
|
|
346
|
+ }
|
|
347
|
+ }
|
|
348
|
+ let arr = this.dialysisrecord;
|
|
349
|
+ arr.push(...dialysis);
|
|
350
|
+ this.dialysisrecord = arr;
|
|
351
|
+ console.log("长期透析处方", dialysis);
|
|
352
|
+ var total = response.data.data.total;
|
|
353
|
+ console.log("total", total);
|
|
354
|
+ }
|
|
355
|
+ });
|
|
356
|
+ },
|
|
357
|
+ onLoad() {
|
|
358
|
+ setTimeout(() => {
|
|
359
|
+ for (let i = 0; i < this.limit; i++) {
|
|
360
|
+ this.list.push(this.list.length + 1);
|
|
361
|
+ }
|
|
362
|
+ // 加载状态结束
|
|
363
|
+ this.loading = false;
|
|
364
|
+ console.log("长期处方", this.dialysisrecord.length);
|
|
365
|
+ if (this.dialysisrecord.length >= 10) {
|
|
366
|
+ this.page++;
|
|
367
|
+ }
|
|
368
|
+ console.log("页数", this.page);
|
|
369
|
+ this.GetLongDialysisRecord(
|
|
370
|
+ this.patient_id,
|
|
371
|
+ this.limit,
|
|
372
|
+ this.page,
|
|
373
|
+ this.startTime,
|
|
374
|
+ this.endTimes
|
|
375
|
+ );
|
|
376
|
+ // 数据全部加载完成
|
|
377
|
+ if (this.list.length >= this.total) {
|
|
378
|
+ this.finished = true;
|
|
379
|
+ }
|
|
380
|
+ }, 5000);
|
|
381
|
+ },
|
|
382
|
+ getTime(time) {
|
|
383
|
+ // return uParseTime(time, "{y}-{m}-{d} {h}:{i}:{s}");
|
|
384
|
+ return uParseTime(time, "{y}-{m}-{d}");
|
|
385
|
+ },
|
|
386
|
+ getBloodAccessOption(id) {
|
|
387
|
+ for (let i = 0; i < this.blood_access_option.length; i++) {
|
|
388
|
+ if ((this.blood_access_option[i].id = id)) {
|
|
389
|
+ return this.blood_access_option[i].name;
|
|
390
|
+ }
|
|
391
|
+ }
|
|
392
|
+ },
|
|
393
|
+ getSpecialMedicine(id) {
|
|
394
|
+ for (let i = 0; i < this.special_medicine_option.length; i++) {
|
|
395
|
+ if ((this.special_medicine_option[i].id = id)) {
|
|
396
|
+ return this.blood_access_option[i].name;
|
|
397
|
+ }
|
|
398
|
+ }
|
148
|
399
|
}
|
|
400
|
+ },
|
|
401
|
+ created() {
|
|
402
|
+ var patientid = this.$route.query.patientid;
|
|
403
|
+ this.patient_id = patientid;
|
|
404
|
+ console.log("长期透析处方", patientid);
|
|
405
|
+ this.GetLongDialysisRecord(patientid);
|
|
406
|
+ this.blood_access_option = this.$store.getters.blood_access;
|
|
407
|
+ console.log("血管通路", this.blood_access_option);
|
|
408
|
+ this.anticoagulantsSet = this.$store.getters.anticoagulants_set;
|
|
409
|
+ this.replacementWays = this.$store.getters.replacement_ways;
|
|
410
|
+ this.anticoagulantsConfit = this.$store.getters.anticoagulants_confit;
|
|
411
|
+ this.blood_filters = this.$store.getters.blood_filters;
|
|
412
|
+ this.dialysate_formulation = this.$store.getters.dialysate_formulation;
|
|
413
|
+ this.body_fluid_option = this.$store.getters.body_fluid;
|
|
414
|
+ this.special_medicine_option = this.$store.getters.special_medicine;
|
|
415
|
+ console.log("透析前使用其他药物", this.special_medicine_option);
|
|
416
|
+ this.displace_liqui_part_option = this.$store.getters.displace_liqui;
|
149
|
417
|
}
|
150
|
418
|
};
|
151
|
419
|
</script>
|