|
@@ -2,6 +2,13 @@
|
2
|
2
|
<div>
|
3
|
3
|
<el-dialog title="透析上机" class="newDialog" :visible.sync="visible" width="854px" :modal-append-to-body="false">
|
4
|
4
|
<div class="warnTxt" v-if="showTxt != ''">{{ showTxt }}</div>
|
|
5
|
+
|
|
6
|
+ <multi-select-box
|
|
7
|
+ :propsForm="InnerDialogProps"
|
|
8
|
+ v-on:dialog-comfirm="innerDialogComfirm"
|
|
9
|
+ v-on:dialog-cancle="innerDialogCancle"
|
|
10
|
+ ></multi-select-box>
|
|
11
|
+
|
5
|
12
|
<el-form :model="form" label-width="100px">
|
6
|
13
|
|
7
|
14
|
<el-form-item label="班次" v-if="isShowFiled('班次')">
|
|
@@ -66,12 +73,49 @@
|
66
|
73
|
</el-form-item>
|
67
|
74
|
|
68
|
75
|
|
69
|
|
- <!-- <el-col :span="8" v-if="isShows('穿刺针')">
|
70
|
|
- <el-form-item label="穿刺针">
|
71
|
|
- <el-input v-model="form.puncture_needle"
|
72
|
|
- @focus="showInnerDialog('11')"></el-input>
|
73
|
|
- </el-form-item>
|
74
|
|
- </el-col> -->
|
|
76
|
+
|
|
77
|
+ <el-form-item label="穿刺针" v-if="isShowFiled('穿刺针')">
|
|
78
|
+ <el-input v-model="form.puncture_needle"
|
|
79
|
+ @focus="showInnerDialog('11')" style="width:200px;"></el-input>
|
|
80
|
+ </el-form-item>
|
|
81
|
+
|
|
82
|
+
|
|
83
|
+ <el-form-item label="穿刺方式: " v-if="isShowFiled('穿刺方式')">
|
|
84
|
+ <el-input v-model="form.puncture_way" readonly
|
|
85
|
+ style="width:200px;"
|
|
86
|
+ @focus="showInnerDialog('13')">
|
|
87
|
+ </el-input>
|
|
88
|
+ </el-form-item>
|
|
89
|
+
|
|
90
|
+
|
|
91
|
+
|
|
92
|
+ <el-form-item label="透析器:" v-if="isShowFiled('透析器')">
|
|
93
|
+ <el-input v-model="form.dialysis_dialyszers"
|
|
94
|
+ style="width:200px;"
|
|
95
|
+ @focus="showInnerDialog('7')"></el-input>
|
|
96
|
+ </el-form-item>
|
|
97
|
+
|
|
98
|
+ <el-form-item label="灌流器:" v-if="isShowFiled('灌流器')">
|
|
99
|
+ <el-input v-model="form.dialysis_irrigation"
|
|
100
|
+ style="width:200px;"
|
|
101
|
+ @focus="showInnerDialog('8')"></el-input>
|
|
102
|
+ </el-form-item>
|
|
103
|
+
|
|
104
|
+ <el-form-item label="血管通路:" v-if="isShowFiled('血管通路')">
|
|
105
|
+ <el-select
|
|
106
|
+ v-model="form.blood_access_id"
|
|
107
|
+ placeholder="请选择"
|
|
108
|
+ >
|
|
109
|
+ <el-option :key="0" label="请选择" :value="0"></el-option>
|
|
110
|
+
|
|
111
|
+ <el-option
|
|
112
|
+ v-for="(option, index) in blood_access_option"
|
|
113
|
+ :key="index + 'i'"
|
|
114
|
+ :label="option.name"
|
|
115
|
+ :value="option.id"
|
|
116
|
+ ></el-option>
|
|
117
|
+ </el-select>
|
|
118
|
+ </el-form-item>
|
75
|
119
|
|
76
|
120
|
<el-form-item label="上机时间 :" style="width:300px" v-if="isShowFiled('上机时间')">
|
77
|
121
|
<el-date-picker
|
|
@@ -105,11 +149,14 @@
|
105
|
149
|
import { getDataConfig } from '@/utils/data'
|
106
|
150
|
import { parseTime } from '@/utils'
|
107
|
151
|
import store from '@/store'
|
108
|
|
-
|
|
152
|
+ import multiSelectBox from './MultiSelectBox'
|
109
|
153
|
import request from '@/utils/request'
|
110
|
154
|
|
111
|
155
|
export default {
|
112
|
156
|
name: 'ComputerDialog',
|
|
157
|
+ components: {
|
|
158
|
+ multiSelectBox
|
|
159
|
+ },
|
113
|
160
|
data() {
|
114
|
161
|
return {
|
115
|
162
|
showTxt:'',
|
|
@@ -134,7 +181,12 @@
|
134
|
181
|
new_fistula_nurse:"",
|
135
|
182
|
quality_nurse_id:"",
|
136
|
183
|
puncture_needle:"",
|
|
184
|
+ puncture_way:"",
|
|
185
|
+ dialysis_dialyszers:"",
|
|
186
|
+ dialysis_irrigation:"",
|
|
187
|
+ blood_access_id:"",
|
137
|
188
|
},
|
|
189
|
+ blood_access_option:[],
|
138
|
190
|
schedual_type: 0,
|
139
|
191
|
schedules_type: [
|
140
|
192
|
{ id: 1, name: '上午' },
|
|
@@ -144,7 +196,18 @@
|
144
|
196
|
isPremission: false,
|
145
|
197
|
adminRoles:[{id:0,name:"请选择"}],
|
146
|
198
|
org_id:0,
|
147
|
|
- punctureNeedleOptions:[]
|
|
199
|
+ punctureNeedleOptions:[],
|
|
200
|
+ puncture_ways:[],
|
|
201
|
+ InnerDialogProps: {
|
|
202
|
+ values: [],
|
|
203
|
+ visibility: false,
|
|
204
|
+ isShowTextArea: true,
|
|
205
|
+ customContent: '',
|
|
206
|
+ titles: '',
|
|
207
|
+ type: '' // 不同弹框类型,用来匹配数据
|
|
208
|
+ },
|
|
209
|
+ dialyzers:[],
|
|
210
|
+ irrigations:[],
|
148
|
211
|
}
|
149
|
212
|
},
|
150
|
213
|
props: {
|
|
@@ -165,7 +228,13 @@
|
165
|
228
|
},
|
166
|
229
|
patient:{
|
167
|
230
|
type: Object
|
168
|
|
- }
|
|
231
|
+ },
|
|
232
|
+ stockType: {
|
|
233
|
+ type: Array,
|
|
234
|
+ default: () => {
|
|
235
|
+ return []
|
|
236
|
+ }
|
|
237
|
+ },
|
169
|
238
|
}, mounted() {
|
170
|
239
|
|
171
|
240
|
},
|
|
@@ -198,7 +267,18 @@
|
198
|
267
|
if(this.form.new_fistula_nurse == 0){
|
199
|
268
|
this.form.new_fistula_nurse = this.$store.getters.xt_user.user.id
|
200
|
269
|
}
|
|
270
|
+ console.log("dialysis_order9999999999wo",this.dialysis_order)
|
|
271
|
+ this.form.puncture_needle = this.dialysis_order.puncture_needle
|
|
272
|
+ this.form.puncture_way = this.dialysis_order.puncture_way
|
|
273
|
+ this.form.dialysis_dialyszers = this.dialysis_order.dialysis_dialyszers
|
|
274
|
+ this.form.dialysis_irrigation = this.dialysis_order.dialysis_irrigation
|
|
275
|
+ this.form.blood_access_id = this.dialysis_order.blood_access_id
|
201
|
276
|
this.punctureNeedleOptions = getDataConfig('hemodialysis', 'puncture_needle')
|
|
277
|
+ this.puncture_ways = getDataConfig('hemodialysis', 'puncture_method')
|
|
278
|
+ this.blood_access_option = getDataConfig(
|
|
279
|
+ 'hemodialysis',
|
|
280
|
+ 'vascular_access_desc'
|
|
281
|
+ )
|
202
|
282
|
},
|
203
|
283
|
watch: {
|
204
|
284
|
patient:{
|
|
@@ -218,6 +298,11 @@
|
218
|
298
|
this.form.difficult_puncture_nurse = this.dialysis_order.id == 0 ? this.$store.getters.xt_user.user.id:this.dialysis_order.difficult_puncture_nurse
|
219
|
299
|
this.form.new_fistula_nurse = this.dialysis_order.id ==0?this.$store.getters.xt_user.user.id:this.dialysis_order.new_fistula_nurse
|
220
|
300
|
this.form.quality_nurse_id = this.dialysis_order.id == 0?this.$store.getters.xt_user.user.id:this.dialysis_order.quality_nurse_id
|
|
301
|
+ this.form.puncture_needle = this.dialysis_order.puncture_needle
|
|
302
|
+ this.form.puncture_way = this.dialysis_order.puncture_way
|
|
303
|
+ this.form.dialysis_dialyszers = this.dialysis_order.dialysis_dialyszers
|
|
304
|
+ this.form.dialysis_irrigation = this.dialysis_order.dialysis_irrigation
|
|
305
|
+ this.form.blood_access_id = this.dialysis_order.blood_access_id
|
221
|
306
|
var nowDate = new Date()
|
222
|
307
|
var nowYear = nowDate.getFullYear()
|
223
|
308
|
var nowMonth = nowDate.getMonth() + 1
|
|
@@ -242,7 +327,36 @@
|
242
|
327
|
}
|
243
|
328
|
}
|
244
|
329
|
console.log("人员",this.adminRoles)
|
245
|
|
- }
|
|
330
|
+ },
|
|
331
|
+ stockType: function() {
|
|
332
|
+ console.log('stockType', this.stockType)
|
|
333
|
+ var arr = []
|
|
334
|
+ var arrTwo = []
|
|
335
|
+ for (let i = 0; i < this.stockType.length; i++) {
|
|
336
|
+ if (this.stockType[i].stock_attribute == 2) {
|
|
337
|
+ arr.push(this.stockType[i])
|
|
338
|
+ }
|
|
339
|
+ if (this.stockType[i].stock_attribute == 3) {
|
|
340
|
+ arrTwo.push(this.stockType[i])
|
|
341
|
+ }
|
|
342
|
+ }
|
|
343
|
+ var dialyzator = []
|
|
344
|
+ var irrigation = []
|
|
345
|
+ for (let i = 0; i < arr.length; i++) {
|
|
346
|
+ for (let j = 0; j < arr[i].GoodInfo.length; j++) {
|
|
347
|
+ dialyzator.push(arr[i].GoodInfo[j])
|
|
348
|
+ }
|
|
349
|
+ }
|
|
350
|
+ this.dialyzers = dialyzator
|
|
351
|
+
|
|
352
|
+ for (let i = 0; i < arrTwo.length; i++) {
|
|
353
|
+ for (let j = 0; j < arrTwo[i].GoodInfo.length; j++) {
|
|
354
|
+ irrigation.push(arrTwo[i].GoodInfo[j])
|
|
355
|
+ }
|
|
356
|
+ }
|
|
357
|
+ this.irrigations = irrigation
|
|
358
|
+
|
|
359
|
+ },
|
246
|
360
|
},
|
247
|
361
|
computed: {},
|
248
|
362
|
methods: {
|
|
@@ -395,7 +509,7 @@
|
395
|
509
|
let mode = '1'
|
396
|
510
|
var blood_drawing = this.form.blood_drawing.toString()
|
397
|
511
|
console.log("质控护士",this.form.quality_nurse_id)
|
398
|
|
- startDialysis(this.patient_id, this.schedule_date ? parseTime(this.schedule_date, '{y}-{m}-{d}') : parseTime(new Date(), '{y}-{m}-{d}'), this.form.nurse_id, this.form.bed_id, this.form.lood_drawing, this.form.puncture_nurse_id, this.form.start_time, this.schedual_type, mode,this.form.washpipe_nurse,this.form.change_nurse,this.form.difficult_puncture_nurse,this.form.new_fistula_nurse,blood_drawing,this.form.quality_nurse_id).then(rs => {
|
|
512
|
+ startDialysis(this.patient_id, this.schedule_date ? parseTime(this.schedule_date, '{y}-{m}-{d}') : parseTime(new Date(), '{y}-{m}-{d}'), this.form.nurse_id, this.form.bed_id, this.form.lood_drawing, this.form.puncture_nurse_id, this.form.start_time, this.schedual_type, mode,this.form.washpipe_nurse,this.form.change_nurse,this.form.difficult_puncture_nurse,this.form.new_fistula_nurse,blood_drawing,this.form.quality_nurse_id,this.form.puncture_needle,this.form.puncture_way,this.form.dialysis_dialyszers,this.form.dialysis_irrigation,this.form.blood_access_id).then(rs => {
|
399
|
513
|
this.loading = false
|
400
|
514
|
var resp = rs.data
|
401
|
515
|
if (resp.state == 1) {
|
|
@@ -431,6 +545,11 @@
|
431
|
545
|
ParamsQuery['new_fistula_nurse'] = this.form.new_fistula_nurse
|
432
|
546
|
ParamsQuery["blood_drawing"] = this.form.blood_drawing
|
433
|
547
|
ParamsQuery["quality_nurse"] = this.form.quality_nurse_id
|
|
548
|
+ ParamsQuery["puncture_needle"] = this.form.puncture_needle
|
|
549
|
+ ParamsQuery["puncture_way"] = this.form.puncture_way
|
|
550
|
+ ParamsQuery["dialysis_dialyszers"] = this.form.dialysis_dialyszers
|
|
551
|
+ ParamsQuery["dialysis_irrigation"] = this.form.dialysis_irrigation
|
|
552
|
+ ParamsQuery["blood_access_id"] = this.form.blood_access_id
|
434
|
553
|
ParamsQuery['mode'] = "2"
|
435
|
554
|
if (this.dialysis_order.creator != this.$store.getters.xt_user.user.id) {
|
436
|
555
|
ParamsQuery['mode'] = "3"
|
|
@@ -489,8 +608,30 @@
|
489
|
608
|
})
|
490
|
609
|
},
|
491
|
610
|
showInnerDialog: function(val) {
|
|
611
|
+ console.log("val32323223232323wi",val)
|
492
|
612
|
this.InnerDialogProps.visibility = true
|
493
|
613
|
switch (val) {
|
|
614
|
+ case '7': // 透析器
|
|
615
|
+
|
|
616
|
+ for (let i = 0; i < this.dialyzers.length; i++) {
|
|
617
|
+ this.dialyzers[i].name = this.dialyzers[i].specification_name
|
|
618
|
+ }
|
|
619
|
+ this.InnerDialogProps.values = this.dialyzers
|
|
620
|
+ this.InnerDialogProps.titles = '透析器'
|
|
621
|
+ this.InnerDialogProps.type = 'dialyzers'
|
|
622
|
+ this.InnerDialogProps.selected = this.form.dialysis_dialyszers
|
|
623
|
+ this.InnerDialogProps.isShowTextArea = false
|
|
624
|
+ break
|
|
625
|
+ case '8':
|
|
626
|
+ for (let i = 0; i < this.irrigations.length; i++) {
|
|
627
|
+ this.irrigations[i].name = this.irrigations[i].specification_name
|
|
628
|
+ }
|
|
629
|
+ this.InnerDialogProps.values = this.irrigations
|
|
630
|
+ this.InnerDialogProps.titles = '灌流器'
|
|
631
|
+ this.InnerDialogProps.type = 'irrigations'
|
|
632
|
+ this.InnerDialogProps.selected = this.form.dialysis_irrigation
|
|
633
|
+ this.InnerDialogProps.isShowTextArea = false
|
|
634
|
+ break
|
494
|
635
|
case '11': //穿刺针
|
495
|
636
|
|
496
|
637
|
this.InnerDialogProps.values = this.punctureNeedleOptions
|
|
@@ -499,6 +640,31 @@
|
499
|
640
|
this.InnerDialogProps.selected = this.form.puncture_needle
|
500
|
641
|
this.InnerDialogProps.isShowTextArea = false
|
501
|
642
|
break
|
|
643
|
+ case '13': // 穿刺方式
|
|
644
|
+ this.InnerDialogProps.values = this.puncture_ways
|
|
645
|
+ this.InnerDialogProps.titles = '穿刺方式'
|
|
646
|
+ this.InnerDialogProps.type = 'puncture_way'
|
|
647
|
+ this.InnerDialogProps.selected = this.form.puncture_way
|
|
648
|
+ this.InnerDialogProps.isShowTextArea = false
|
|
649
|
+
|
|
650
|
+ break
|
|
651
|
+ }
|
|
652
|
+ },
|
|
653
|
+ innerDialogComfirm: function(val) {
|
|
654
|
+ this.InnerDialogProps.visibility = false
|
|
655
|
+ switch (val.type) {
|
|
656
|
+ case 'puncture_needle':
|
|
657
|
+ this.form.puncture_needle = val.value.join(',')
|
|
658
|
+ break
|
|
659
|
+ case 'puncture_way':
|
|
660
|
+ this.form.puncture_way = val.value.join(',')
|
|
661
|
+ break
|
|
662
|
+ case 'dialyzers':
|
|
663
|
+ this.form.dialysis_dialyszers = val.value.join(',')
|
|
664
|
+ break
|
|
665
|
+ case 'irrigations':
|
|
666
|
+ this.form.dialysis_irrigation = val.value.join(',')
|
|
667
|
+ break
|
502
|
668
|
}
|
503
|
669
|
},
|
504
|
670
|
innerDialogCancle: function() {
|