|
@@ -4,7 +4,7 @@
|
4
|
4
|
<!-- <div class="txsj">
|
5
|
5
|
</div> -->
|
6
|
6
|
<div class="warnTxt" v-if="showTxt != ''">{{ showTxt }}</div>
|
7
|
|
- <el-form :model="form" label-width="80px">
|
|
7
|
+ <el-form :model="form" label-width="100px">
|
8
|
8
|
<el-form-item label="下机护士">
|
9
|
9
|
<el-select v-model="form.nurse_id" :disabled="!(dialysis_order.id != 0)">
|
10
|
10
|
<el-option v-for="(admin, index) in admins" :key="index" :value="admin.id" :label="admin.name"></el-option>
|
|
@@ -22,24 +22,52 @@
|
22
|
22
|
></el-date-picker>
|
23
|
23
|
</el-form-item>
|
24
|
24
|
|
|
25
|
+ <el-form-item label="穿刺处血肿:" v-if="isShowFiled('穿刺处血肿')" :label-width="150">
|
|
26
|
+ <el-radio-group v-model="form.puncture_point_haematoma">
|
|
27
|
+ <el-radio :label="1">有</el-radio>
|
|
28
|
+ <el-radio :label="2">无</el-radio>
|
|
29
|
+ </el-radio-group>
|
|
30
|
+ </el-form-item>
|
|
31
|
+
|
|
32
|
+ <el-form-item label="内瘘: " v-if="isShowFiled('内瘘')">
|
|
33
|
+ <el-input v-model="form.internal_fistula" readonly @focus="showInnerDialog('7')" style="width:200px"></el-input>
|
|
34
|
+ </el-form-item>
|
|
35
|
+
|
|
36
|
+
|
|
37
|
+ <el-form-item label="导管: " v-if="isShowFiled('导管')">
|
|
38
|
+ <el-input v-model="form.catheter" @focus="showInnerDialog('4')" style="width:200px"></el-input>
|
|
39
|
+ </el-form-item>
|
|
40
|
+
|
|
41
|
+ <el-form-item label="透析器凝血: ">
|
|
42
|
+ <el-input
|
|
43
|
+ style="width:200px"
|
|
44
|
+ v-model="form.cruor"
|
|
45
|
+ readonly
|
|
46
|
+ @focus="showInnerDialog('1')"
|
|
47
|
+ ></el-input>
|
|
48
|
+ </el-form-item>
|
|
49
|
+
|
25
|
50
|
<el-form-item>
|
26
|
51
|
<el-button v-if="(dialysis_order.id != 0 && dialysis_order.stage == 1)" @click="submit" :loading="loading"
|
27
|
52
|
type="primary">执行下机
|
28
|
53
|
</el-button>
|
29
|
|
- <!--<el-button v-else-if="(dialysis_order.id != 0 && dialysis_order.stage == 2)" :disabled="true" type="info">-->
|
30
|
|
- <!--已下机-->
|
31
|
|
- <!--</el-button>-->
|
32
|
|
- <!--<el-button v-else :disabled="true" type="info">未上机</el-button>-->
|
33
|
54
|
<el-button
|
34
|
55
|
v-if="dialysis_order.stage == 2 "
|
35
|
56
|
type="primary" @click="modifyFinish">修改下机
|
36
|
57
|
</el-button>
|
37
|
|
-
|
38
|
|
-
|
39
|
58
|
</el-form-item>
|
|
59
|
+
|
|
60
|
+
|
40
|
61
|
|
41
|
62
|
</el-form>
|
42
|
63
|
</el-dialog>
|
|
64
|
+
|
|
65
|
+ <multi-select-box
|
|
66
|
+ :propsForm="InnerDialogProps"
|
|
67
|
+ v-on:dialog-comfirm="innerDialogComfirm"
|
|
68
|
+ v-on:dialog-cancle="innerDialogCancle"
|
|
69
|
+ ></multi-select-box>
|
|
70
|
+
|
43
|
71
|
</div>
|
44
|
72
|
</template>
|
45
|
73
|
|
|
@@ -47,10 +75,14 @@
|
47
|
75
|
import axios from 'axios'
|
48
|
76
|
import { finishDialysis,PostModifyFinishDialysis } from '@/api/dialysis_record'
|
49
|
77
|
import { parseTime } from '@/utils'
|
50
|
|
-
|
|
78
|
+ import multiSelectBox from './MultiSelectBox'
|
51
|
79
|
import request from '@/utils/request'
|
52
|
|
-
|
|
80
|
+ import store from "@/store";
|
|
81
|
+ import { getDataConfig } from '@/utils/data'
|
53
|
82
|
export default {
|
|
83
|
+ components: {
|
|
84
|
+ multiSelectBox
|
|
85
|
+ },
|
54
|
86
|
name: 'FinishDialog',
|
55
|
87
|
data() {
|
56
|
88
|
return {
|
|
@@ -63,10 +95,25 @@
|
63
|
95
|
schedule_date: 0,
|
64
|
96
|
isPremission:false,
|
65
|
97
|
end_time: '',
|
66
|
|
-
|
|
98
|
+ isVisibility: false,
|
67
|
99
|
form: {
|
68
|
|
- nurse_id: 0
|
69
|
|
- }
|
|
100
|
+ nurse_id: 0,
|
|
101
|
+ puncture_point_haematoma:2,
|
|
102
|
+ internal_fistula:"",
|
|
103
|
+ catheter:"",
|
|
104
|
+ cruor:"",
|
|
105
|
+ },
|
|
106
|
+ internal_fistula: [],
|
|
107
|
+ InnerDialogProps: {
|
|
108
|
+ values: [],
|
|
109
|
+ visibility: false,
|
|
110
|
+ isShowTextArea: true,
|
|
111
|
+ customContent: '',
|
|
112
|
+ titles: '',
|
|
113
|
+ type: '' // 不同弹框类型,用来匹配数据
|
|
114
|
+ },
|
|
115
|
+ catheter: [],
|
|
116
|
+ cruorOptions: [],
|
70
|
117
|
}
|
71
|
118
|
},
|
72
|
119
|
props: {
|
|
@@ -89,7 +136,9 @@
|
89
|
136
|
}
|
90
|
137
|
},
|
91
|
138
|
created() {
|
92
|
|
-
|
|
139
|
+ this.internal_fistula = getDataConfig('hemodialysis', 'internal_fistula')
|
|
140
|
+ this.catheter = getDataConfig('hemodialysis', 'catheter')
|
|
141
|
+ this.cruorOptions = getDataConfig('hemodialysis', 'cruor')
|
93
|
142
|
},
|
94
|
143
|
watch: {
|
95
|
144
|
'dialysis_order.id': function() {
|
|
@@ -98,7 +147,12 @@
|
98
|
147
|
} else if (this.dialysis_order.stage == 1) {
|
99
|
148
|
this.form.nurse_id = this.$store.getters.xt_user.user.id
|
100
|
149
|
} else {
|
|
150
|
+ console.log("orde32332323232332",this.dialysis_order)
|
101
|
151
|
this.form.nurse_id = this.dialysis_order.finish_nurse
|
|
152
|
+ this.form.catheter = this.dialysis_order.catheter
|
|
153
|
+ this.form.cruor = this.dialysis_order.cruor
|
|
154
|
+ this.form.internal_fistula = this.dialysis_order.blood_access_internal_fistula
|
|
155
|
+ this.form.puncture_point_haematoma = this.dialysis_order.puncture_point_haematoma
|
102
|
156
|
}
|
103
|
157
|
},
|
104
|
158
|
patient:{
|
|
@@ -109,6 +163,16 @@
|
109
|
163
|
}
|
110
|
164
|
},
|
111
|
165
|
methods: {
|
|
166
|
+ isShowFiled(name) {
|
|
167
|
+ var filedList = store.getters.xt_user.fileds
|
|
168
|
+
|
|
169
|
+ for (let i = 0; i < filedList.length; i++) {
|
|
170
|
+ if (filedList[i].module == 9 && filedList[i].filed_name_cn == name && filedList[i].is_show == 1) {
|
|
171
|
+ return true
|
|
172
|
+ }
|
|
173
|
+ }
|
|
174
|
+ return false
|
|
175
|
+ },
|
112
|
176
|
show: function(record) {
|
113
|
177
|
this.record = record
|
114
|
178
|
console.log("下机",record)
|
|
@@ -185,12 +249,17 @@
|
185
|
249
|
},
|
186
|
250
|
hide: function() {
|
187
|
251
|
this.visible = false
|
188
|
|
- },modifyFinish:function(){
|
|
252
|
+ },
|
|
253
|
+ modifyFinish:function(){
|
189
|
254
|
let ParamsQuery = {};
|
190
|
255
|
ParamsQuery["id"] = this.dialysis_order.id;
|
191
|
256
|
ParamsQuery["nurse"] = this.form.nurse_id;
|
192
|
257
|
ParamsQuery["end_time"] = this.end_time;
|
193
|
258
|
ParamsQuery["mode"] = "2"
|
|
259
|
+ ParamsQuery["puncture_point_haematoma"] = this.form.puncture_point_haematoma
|
|
260
|
+ ParamsQuery["internal_fistula"] = this.form.internal_fistula
|
|
261
|
+ ParamsQuery["catheter"] = this.form.catheter
|
|
262
|
+ ParamsQuery["cruor"] = this.form.cruor
|
194
|
263
|
if(this.dialysis_order.finish_creator != this.$store.getters.xt_user.user.id){
|
195
|
264
|
ParamsQuery["mode"] = "3"
|
196
|
265
|
}
|
|
@@ -215,7 +284,7 @@
|
215
|
284
|
submit: function() {
|
216
|
285
|
this.loading = true
|
217
|
286
|
let mode = "1"
|
218
|
|
- finishDialysis(this.patient_id,this.schedule_date ? parseTime(this.schedule_date, '{y}-{m}-{d}') : parseTime(new Date(), '{y}-{m}-{d}'), this.end_time, this.form.nurse_id,mode).then(rs => {
|
|
287
|
+ finishDialysis(this.patient_id,this.schedule_date ? parseTime(this.schedule_date, '{y}-{m}-{d}') : parseTime(new Date(), '{y}-{m}-{d}'), this.end_time, this.form.nurse_id,mode,this.form.puncture_point_haematoma,this.form.internal_fistula,this.form.catheter,this.form.cruor).then(rs => {
|
219
|
288
|
this.loading = false
|
220
|
289
|
var resp = rs.data
|
221
|
290
|
if (resp.state == 1) {
|
|
@@ -225,10 +294,6 @@
|
225
|
294
|
this.$set(this_order, key, dialysis_order[key])
|
226
|
295
|
}
|
227
|
296
|
let orgId = parseInt(sessionStorage.getItem("org_id"));
|
228
|
|
- // axios.get('/api/index/downpatient?org_id='+ orgId + '&admin_user_id='+ this.form.nurse_id + '&patient_id=' + this.patient_id).then((res) => {
|
229
|
|
- // console.log('res',res.data)
|
230
|
|
-
|
231
|
|
- // })
|
232
|
297
|
this.hide()
|
233
|
298
|
this.$emit('assessmentAfterDislysis', resp.data.assessmentAfterDislysis)
|
234
|
299
|
|
|
@@ -251,9 +316,6 @@
|
251
|
316
|
module:6
|
252
|
317
|
}
|
253
|
318
|
}).then(res => {
|
254
|
|
- console.log(res)
|
255
|
|
- console.log("下机",this.record)
|
256
|
|
- // console.log("上机",this.record)
|
257
|
319
|
if(res.data.state == 0){
|
258
|
320
|
this.hasPermission = false
|
259
|
321
|
}else if(res.data.state == 1){
|
|
@@ -277,7 +339,51 @@
|
277
|
339
|
}
|
278
|
340
|
}
|
279
|
341
|
})
|
280
|
|
- }
|
|
342
|
+ },
|
|
343
|
+ showInnerDialog: function(val) {
|
|
344
|
+ this.InnerDialogProps.visibility = true
|
|
345
|
+ switch (val) {
|
|
346
|
+ case '7': // 内瘘
|
|
347
|
+ this.InnerDialogProps.values = this.internal_fistula
|
|
348
|
+ this.InnerDialogProps.titles = '内瘘'
|
|
349
|
+ this.InnerDialogProps.type = 'internal_fistula'
|
|
350
|
+ this.InnerDialogProps.selected = this.form.internal_fistula
|
|
351
|
+ this.InnerDialogProps.isShowTextArea = false
|
|
352
|
+ break
|
|
353
|
+ case '4': // 导管
|
|
354
|
+ this.InnerDialogProps.values = this.catheter
|
|
355
|
+ this.InnerDialogProps.titles = '导管'
|
|
356
|
+ this.InnerDialogProps.type = 'catheter'
|
|
357
|
+ this.InnerDialogProps.selected = this.form.catheter
|
|
358
|
+ this.InnerDialogProps.isShowTextArea = false
|
|
359
|
+ break
|
|
360
|
+ case '1':
|
|
361
|
+ this.InnerDialogProps.values = this.cruorOptions
|
|
362
|
+ this.InnerDialogProps.titles = '凝血'
|
|
363
|
+ this.InnerDialogProps.type = 'cruor'
|
|
364
|
+ this.InnerDialogProps.selected = this.form.cruor
|
|
365
|
+ this.InnerDialogProps.isShowTextArea = false
|
|
366
|
+ break
|
|
367
|
+
|
|
368
|
+ }
|
|
369
|
+ },
|
|
370
|
+ innerDialogComfirm: function(val) {
|
|
371
|
+ this.InnerDialogProps.visibility = false
|
|
372
|
+ switch (val.type) {
|
|
373
|
+ case 'internal_fistula':
|
|
374
|
+ this.form.internal_fistula = val.value.join(',')
|
|
375
|
+ break
|
|
376
|
+ case 'catheter':
|
|
377
|
+ this.form.catheter = val.value.join(',')
|
|
378
|
+ break
|
|
379
|
+ case 'cruor':
|
|
380
|
+ this.form.cruor = val.value.join(',')
|
|
381
|
+ break
|
|
382
|
+ }
|
|
383
|
+ },
|
|
384
|
+ innerDialogCancle: function() {
|
|
385
|
+ this.InnerDialogProps.visibility = false
|
|
386
|
+ },
|
281
|
387
|
}
|
282
|
388
|
}
|
283
|
389
|
</script>
|