|
@@ -0,0 +1,489 @@
|
|
1
|
+<template>
|
|
2
|
+ <el-dialog width="854px" class="registerDialog" :title="titles" :visible.sync="visibility"
|
|
3
|
+ :close-on-click-modal="isClose"
|
|
4
|
+ :close-on-press-escape="isClose">
|
|
5
|
+
|
|
6
|
+ <el-form :model="form" :rules="rules" ref="formValue" label-width="100px">
|
|
7
|
+ <el-form-item label="患者姓名:" prop="name" :validate-event="is_Name">
|
|
8
|
+ <el-autocomplete
|
|
9
|
+ class="checkSearch"
|
|
10
|
+ popper-class="my-autocomplete"
|
|
11
|
+ v-model="form.name"
|
|
12
|
+ :fetch-suggestions="querySearchAsync"
|
|
13
|
+ :trigger-on-focus="false"
|
|
14
|
+ placeholder="请输入病人名字"
|
|
15
|
+ @select="handleSelect"
|
|
16
|
+ style="width:160px;"
|
|
17
|
+ >
|
|
18
|
+ <i class="el-icon-search el-input__icon" slot="suffix"></i>
|
|
19
|
+ <template slot-scope="{ item }">
|
|
20
|
+ <div class="name">{{ item.name }}</div>
|
|
21
|
+ </template>
|
|
22
|
+ </el-autocomplete>
|
|
23
|
+ </el-form-item>
|
|
24
|
+
|
|
25
|
+ <el-form-item label="性别:" prop="gender" :validate-event="is_Name">
|
|
26
|
+ <el-select v-model="form.gender" placeholder="请选择" style="width:100%;">
|
|
27
|
+ <el-option
|
|
28
|
+ v-for="item in sex"
|
|
29
|
+ :key="item.value"
|
|
30
|
+ :label="item.label"
|
|
31
|
+ :value="item.value">
|
|
32
|
+ </el-option>
|
|
33
|
+ </el-select>
|
|
34
|
+
|
|
35
|
+
|
|
36
|
+ </el-form-item>
|
|
37
|
+
|
|
38
|
+ <el-form-item label="年龄:" prop="age" :validate-event="is_Name">
|
|
39
|
+ <el-input v-model="form.age"></el-input>
|
|
40
|
+ </el-form-item>
|
|
41
|
+
|
|
42
|
+
|
|
43
|
+ <el-form-item label="出生日期:" prop="birthday" :validate-event="is_Name">
|
|
44
|
+ <el-date-picker v-model="form.birthday" type="date" format="yyyy-MM-dd"
|
|
45
|
+ value-format="yyyy-MM-dd" placeholder="选择日期" style="width:100%;"></el-date-picker>
|
|
46
|
+ </el-form-item>
|
|
47
|
+
|
|
48
|
+ <el-form-item label="手机号码:" prop="phone">
|
|
49
|
+ <el-input v-model="form.phone"></el-input>
|
|
50
|
+ </el-form-item>
|
|
51
|
+
|
|
52
|
+
|
|
53
|
+ <el-form-item label="医疗类别:">
|
|
54
|
+ <el-select v-model="form.medical_care" placeholder="请选择" style="width:100%;">
|
|
55
|
+ <el-option
|
|
56
|
+ v-for="(item,index) in medical_care"
|
|
57
|
+ :key="index"
|
|
58
|
+ :label="item.label"
|
|
59
|
+ :value="item.value">
|
|
60
|
+ </el-option>
|
|
61
|
+ </el-select>
|
|
62
|
+ </el-form-item>
|
|
63
|
+
|
|
64
|
+
|
|
65
|
+ <el-form-item label="证件类型:" prop="certificates" :validate-event="is_Name">
|
|
66
|
+ <el-select v-model="form.certificates" placeholder="请选择" style="width:100%;">
|
|
67
|
+ <el-option
|
|
68
|
+ v-for="item in certificates"
|
|
69
|
+ :key="item.value"
|
|
70
|
+ :label="item.label"
|
|
71
|
+ :value="item.value">
|
|
72
|
+ </el-option>
|
|
73
|
+ </el-select>
|
|
74
|
+ </el-form-item>
|
|
75
|
+
|
|
76
|
+ <el-form-item label="证件号码:" prop="id_card" :validate-event="is_Name">
|
|
77
|
+ <el-input v-model="form.id_card"></el-input>
|
|
78
|
+ </el-form-item>
|
|
79
|
+
|
|
80
|
+
|
|
81
|
+
|
|
82
|
+
|
|
83
|
+ <el-form-item label="结算类型:">
|
|
84
|
+ <el-select v-model="form.settlement_value" placeholder="请选择" style="width:100%;">
|
|
85
|
+ <el-option
|
|
86
|
+ v-for="item in settlement"
|
|
87
|
+ :key="item.value"
|
|
88
|
+ :label="item.label"
|
|
89
|
+ :value="item.value">
|
|
90
|
+ </el-option>
|
|
91
|
+ </el-select>
|
|
92
|
+ </el-form-item>
|
|
93
|
+
|
|
94
|
+
|
|
95
|
+ <el-form-item label="社保类型:">
|
|
96
|
+ <el-select v-model="form.social_type" placeholder="请选择" style="width:100%;">
|
|
97
|
+ <el-option
|
|
98
|
+ v-for="item in medicalCare"
|
|
99
|
+ :key="item.value"
|
|
100
|
+ :label="item.label"
|
|
101
|
+ :value="item.value">
|
|
102
|
+ </el-option>
|
|
103
|
+ </el-select>
|
|
104
|
+ </el-form-item>
|
|
105
|
+
|
|
106
|
+
|
|
107
|
+ <el-form-item label="读卡类型:" prop="id_card_type" :validate-event="is_Name">
|
|
108
|
+ <el-select v-model="form.id_card_type" placeholder="请选择">
|
|
109
|
+ <el-option
|
|
110
|
+ v-for="item in IDCardTypes"
|
|
111
|
+ :key="item.value"
|
|
112
|
+ :label="item.label"
|
|
113
|
+ :value="item.value">
|
|
114
|
+ </el-option>
|
|
115
|
+ </el-select>
|
|
116
|
+ </el-form-item>
|
|
117
|
+
|
|
118
|
+
|
|
119
|
+ <el-form-item class="specialFormItem" label="医保卡号:">
|
|
120
|
+ <div style="display:flex;">
|
|
121
|
+ <el-input v-model="form.medical_insurance_card"></el-input>
|
|
122
|
+ <el-button style="margin-left:10px;" type="primary" @click="reading">读卡</el-button>
|
|
123
|
+
|
|
124
|
+ </div>
|
|
125
|
+ </el-form-item>
|
|
126
|
+
|
|
127
|
+ <el-form-item label="挂号类型:" prop="register" :validate-event="is_Name">
|
|
128
|
+ <el-select v-model="form.register" placeholder="请选择" style="width:100%;" @change="changeRegister">
|
|
129
|
+ <el-option
|
|
130
|
+ v-for="item in register"
|
|
131
|
+ :key="item.value"
|
|
132
|
+ :label="item.label"
|
|
133
|
+ :value="item.value">
|
|
134
|
+ </el-option>
|
|
135
|
+ </el-select>
|
|
136
|
+ </el-form-item>
|
|
137
|
+ <el-form-item label="挂号费:">
|
|
138
|
+ <el-input readonly v-model="form.registration_fee"></el-input>
|
|
139
|
+ </el-form-item>
|
|
140
|
+ <el-form-item label="诊疗费:">
|
|
141
|
+ <el-input readonly v-model="form.medical_expenses"></el-input>
|
|
142
|
+ </el-form-item>
|
|
143
|
+ </el-form>
|
|
144
|
+
|
|
145
|
+ <span slot="footer" class="dialog-footer">
|
|
146
|
+ <el-button @click="cancel('formValue')">取 消</el-button>
|
|
147
|
+ <el-button type="primary" @click="confirm('formValue')">挂 号</el-button>
|
|
148
|
+ </span>
|
|
149
|
+ </el-dialog>
|
|
150
|
+
|
|
151
|
+</template>
|
|
152
|
+
|
|
153
|
+<script>
|
|
154
|
+ import {uParseTime} from "@/utils/tools";
|
|
155
|
+ import axios from 'axios'
|
|
156
|
+ import {PostSearch} from '@/api/patient'
|
|
157
|
+ import {getDictionaryDataConfig} from '@/utils/data'
|
|
158
|
+ export default {
|
|
159
|
+ name: 'registerDialog9504',
|
|
160
|
+
|
|
161
|
+ data() {
|
|
162
|
+
|
|
163
|
+ return {
|
|
164
|
+ registers: [
|
|
165
|
+ {value: 11, label: "普通门诊"},
|
|
166
|
+ {value: 12, label: '门诊挂号'},
|
|
167
|
+ {value: 13, label: "急诊"},
|
|
168
|
+ {value: 14, label: "门诊特殊病"},
|
|
169
|
+ {value: 15, label: "门诊统筹"},
|
|
170
|
+ {value: 16, label: "门诊慢性病"},
|
|
171
|
+ {value: 21, label: "普通住院"},
|
|
172
|
+ ],
|
|
173
|
+ medical_care:[
|
|
174
|
+ {value: 11, label: "普通门诊"},
|
|
175
|
+ {value: 12, label: '家庭通道'},
|
|
176
|
+ {value: 13, label: "门诊大病"},
|
|
177
|
+ {value: 14, label: "重疾特药"},
|
|
178
|
+ {value: 15, label: "门诊慢病"},
|
|
179
|
+ {value: 16, label: "门诊特检"},
|
|
180
|
+ {value: 17, label: "健康体检"},
|
|
181
|
+ {value: 18, label: "预防接种"},
|
|
182
|
+ {value: 19, label: "门诊输血"},
|
|
183
|
+ {value: 91, label: "新冠肺炎门诊"},
|
|
184
|
+ ],
|
|
185
|
+
|
|
186
|
+
|
|
187
|
+
|
|
188
|
+
|
|
189
|
+ form: {
|
|
190
|
+ id: '',
|
|
191
|
+ settlement_value: '',
|
|
192
|
+ medical_insurance_card: '',
|
|
193
|
+ name: '',
|
|
194
|
+ gender: '',
|
|
195
|
+ certificates: 1,
|
|
196
|
+ p_type:'',
|
|
197
|
+ sick_type:'',
|
|
198
|
+ diagnosis:'',
|
|
199
|
+ medical_care: '',
|
|
200
|
+ birthday: '',
|
|
201
|
+ age: '',
|
|
202
|
+ id_card: '',
|
|
203
|
+ register: '',
|
|
204
|
+ doctor: '',
|
|
205
|
+ id_card_type: 1,
|
|
206
|
+ department: '',
|
|
207
|
+ registration_fee: '',
|
|
208
|
+ medical_expenses: '',
|
|
209
|
+ cost: '',
|
|
210
|
+ phone: '',
|
|
211
|
+ social_type: '',
|
|
212
|
+ }, IDCardTypes: [{
|
|
213
|
+ value: 1,
|
|
214
|
+ label: '社保卡'
|
|
215
|
+ }],
|
|
216
|
+ settlement: [
|
|
217
|
+ {value: 1, label: '医保'},
|
|
218
|
+ {value: 2, label: '自费'},
|
|
219
|
+ {value: 3, label: '公费'},
|
|
220
|
+ {value: 4, label: '农保'},
|
|
221
|
+ {value: 5, label: '会员'},
|
|
222
|
+ {value: 6, label: '职工'},
|
|
223
|
+ {value: 7, label: '合同'}
|
|
224
|
+ ],
|
|
225
|
+ sex: [{
|
|
226
|
+ value: 1,
|
|
227
|
+ label: '男'
|
|
228
|
+ }, {
|
|
229
|
+ value: 2,
|
|
230
|
+ label: '女'
|
|
231
|
+ }],
|
|
232
|
+ certificates: [{
|
|
233
|
+ value: 1,
|
|
234
|
+ label: '内地身份证'
|
|
235
|
+ }, {
|
|
236
|
+ value: 2,
|
|
237
|
+ label: "社保卡"
|
|
238
|
+ }, {
|
|
239
|
+ value: 3,
|
|
240
|
+ label: "护照"
|
|
241
|
+ }, {
|
|
242
|
+ value: 4,
|
|
243
|
+ label: "军官证"
|
|
244
|
+ }, {
|
|
245
|
+ value: 5,
|
|
246
|
+ label: "台胞证"
|
|
247
|
+ }, {
|
|
248
|
+ value: 6,
|
|
249
|
+ label: "港澳地区身份证"
|
|
250
|
+ }],
|
|
251
|
+ medicalCare: [{
|
|
252
|
+ value: 1,
|
|
253
|
+ label: '职工基本医疗保险'
|
|
254
|
+ }, {
|
|
255
|
+ value: 2,
|
|
256
|
+ label: "公务员医疗补助"
|
|
257
|
+ }, {
|
|
258
|
+ value: 3,
|
|
259
|
+ label: "大额医疗费用补助"
|
|
260
|
+ }, {
|
|
261
|
+ value: 4,
|
|
262
|
+ label: "离休人员医疗"
|
|
263
|
+ }, {
|
|
264
|
+ value: 5,
|
|
265
|
+ label: "城乡居民基本医疗保险"
|
|
266
|
+ }, {
|
|
267
|
+ value: 6,
|
|
268
|
+ label: "城乡居民大病医疗保险"
|
|
269
|
+ }, {
|
|
270
|
+ value: 7,
|
|
271
|
+ label: "生育保险"
|
|
272
|
+ }],
|
|
273
|
+ register: [{
|
|
274
|
+ value: 1,
|
|
275
|
+ label: '普通'
|
|
276
|
+ }, {
|
|
277
|
+ value: 2,
|
|
278
|
+ label: "主治"
|
|
279
|
+ }, {
|
|
280
|
+ value: 3,
|
|
281
|
+ label: "主任"
|
|
282
|
+ }, {
|
|
283
|
+ value: 4,
|
|
284
|
+ label: "免收诊金"
|
|
285
|
+ }, {
|
|
286
|
+ value: 5,
|
|
287
|
+ label: "专家"
|
|
288
|
+ }],
|
|
289
|
+ rules: {
|
|
290
|
+ name: [{required: true, message: "患者姓名不能为空", trigger: 'blur'}],
|
|
291
|
+ gender: [{required: true, message: "患者性别不能为空", trigger: 'blur'}],
|
|
292
|
+ id_card: [{required: true, message: '证件号码不能为空', trigger: 'blur'}],
|
|
293
|
+ register: [{required: true, message: '请选择挂号类型', trigger: 'blur'}],
|
|
294
|
+ doctor: [{required: true, message: '请选择医生', trigger: 'blur'}],
|
|
295
|
+ department: [{required: true, message: '请填写科室', trigger: 'blur'}],
|
|
296
|
+ age: [{required: true, message: "患者年龄不能为空", trigger: 'blur'}],
|
|
297
|
+ birthday: [{required: true, message: "患者出生日期不能为空", trigger: 'blur'}],
|
|
298
|
+ certificates: [{required: true, message: "证件类型不能为空", trigger: 'change'}],
|
|
299
|
+ id_card_type: [{required: true, message: "读卡类型不能为空", trigger: 'change'}],
|
|
300
|
+ medical_care: [{required: true, message: "医疗类别不能为空", trigger: 'change'}],
|
|
301
|
+
|
|
302
|
+ },
|
|
303
|
+ visibility: false,
|
|
304
|
+ labelPosition: 'right',
|
|
305
|
+ isClose: false,
|
|
306
|
+ resetForm: {
|
|
307
|
+ settlement_value: '',
|
|
308
|
+ medical_insurance_card: '',
|
|
309
|
+ name: '',
|
|
310
|
+ gender: '',
|
|
311
|
+ certificates: '',
|
|
312
|
+ id_card_type: '',
|
|
313
|
+ medical_care: '',
|
|
314
|
+ birthday: '',
|
|
315
|
+ age: '',
|
|
316
|
+ id_card: '',
|
|
317
|
+ register: '',
|
|
318
|
+ doctor: '',
|
|
319
|
+ department: '',
|
|
320
|
+ registration_fee: '',
|
|
321
|
+ medical_expenses: '',
|
|
322
|
+ cost: '',
|
|
323
|
+ phone: '',
|
|
324
|
+ social_type: '',
|
|
325
|
+ },
|
|
326
|
+
|
|
327
|
+ }
|
|
328
|
+ },
|
|
329
|
+ props: {
|
|
330
|
+
|
|
331
|
+ titles: {
|
|
332
|
+ type: String,
|
|
333
|
+ default: ''
|
|
334
|
+ },
|
|
335
|
+ formValue: {
|
|
336
|
+ type: Object
|
|
337
|
+ },
|
|
338
|
+ type: {
|
|
339
|
+ type: Number,
|
|
340
|
+ default: 1
|
|
341
|
+
|
|
342
|
+ },
|
|
343
|
+ isCreated: {
|
|
344
|
+ type: Number,
|
|
345
|
+ default: 1
|
|
346
|
+
|
|
347
|
+ },
|
|
348
|
+ sick: Array,
|
|
349
|
+ diagnoses: Array,
|
|
350
|
+ },
|
|
351
|
+ methods: {
|
|
352
|
+ changeRegister(value){
|
|
353
|
+ if (value != 4){
|
|
354
|
+ this.form.registration_fee = 10
|
|
355
|
+ this.form.medical_expenses = 0
|
|
356
|
+ }
|
|
357
|
+ },
|
|
358
|
+ handleSelect(val) {
|
|
359
|
+ this.form.id = val.id
|
|
360
|
+ this.form.name = val.name
|
|
361
|
+ this.form.gender = val.gender
|
|
362
|
+ this.form.age = val.age
|
|
363
|
+ this.form.birthday = uParseTime(val.birthday, '{y}-{m}-{d}')
|
|
364
|
+ this.form.phone = val.phone
|
|
365
|
+ this.form.id_card = val.id_card_no
|
|
366
|
+ },
|
|
367
|
+ querySearchAsync(keyword, cb) {
|
|
368
|
+ let key = ''
|
|
369
|
+ if (keyword != undefined) {
|
|
370
|
+ key = keyword
|
|
371
|
+ }
|
|
372
|
+ let searchArray = []
|
|
373
|
+ PostSearch(key).then(response => {
|
|
374
|
+ if (response.data.state == 1) {
|
|
375
|
+ searchArray = response.data.data.patient
|
|
376
|
+ cb(searchArray)
|
|
377
|
+ } else {
|
|
378
|
+ cb([])
|
|
379
|
+ }
|
|
380
|
+ })
|
|
381
|
+ },
|
|
382
|
+ reading() {
|
|
383
|
+ var that = this
|
|
384
|
+ if (this.form.id_card_type.length == 0 || this.form.id_card_type == 0) {
|
|
385
|
+ this.$message.error("请先选择读卡类型")
|
|
386
|
+ return
|
|
387
|
+ }
|
|
388
|
+ let params = {
|
|
389
|
+ 'id_card_type': this.form.id_card_type,
|
|
390
|
+ 'admin_user_id':this.$store.getters.xt_user.user.id,
|
|
391
|
+
|
|
392
|
+ }
|
|
393
|
+ axios.get('http://127.0.0.1:9532/sz/api/readcard', {
|
|
394
|
+ params: params
|
|
395
|
+ })
|
|
396
|
+ .then(function (response) {
|
|
397
|
+ if (response.data.state == 0) {
|
|
398
|
+ that.$message.error(response.data.msg)
|
|
399
|
+ return false
|
|
400
|
+ } else {
|
|
401
|
+ var patient = response.data.data.patient
|
|
402
|
+ if (that.form.id_card_type == 1) {
|
|
403
|
+ that.form.id = patient.id
|
|
404
|
+ that.form.name = patient.name
|
|
405
|
+ that.form.sex = patient.gender
|
|
406
|
+ that.form.age = patient.age
|
|
407
|
+ that.form.birthday = uParseTime(patient.birthday, '{y}-{m}-{d}')
|
|
408
|
+ that.form.phone = patient.phone
|
|
409
|
+ that.form.id_card = patient.id_card_no
|
|
410
|
+ that.form.medical_insurance_card = response.data.data.health_card_no
|
|
411
|
+ } else if (that.form.id_card_type == 2) {
|
|
412
|
+ this.form.id = patient.id
|
|
413
|
+ that.form.name = patient.name
|
|
414
|
+ that.form.sex = patient.gender
|
|
415
|
+ that.form.age = patient.age
|
|
416
|
+ that.form.birthday = uParseTime(patient.birthday, '{y}-{m}-{d}')
|
|
417
|
+ that.form.phone = patient.phone
|
|
418
|
+ that.form.id_card = patient.id_card_no
|
|
419
|
+ }
|
|
420
|
+ that.$message({message: '读卡成功', type: 'success'})
|
|
421
|
+
|
|
422
|
+ }
|
|
423
|
+ })
|
|
424
|
+ .catch(function (error) {
|
|
425
|
+
|
|
426
|
+ });
|
|
427
|
+
|
|
428
|
+
|
|
429
|
+ },
|
|
430
|
+ getDictionaryDataConfig(module, filed_name) {
|
|
431
|
+ return getDictionaryDataConfig(module, filed_name)
|
|
432
|
+ },
|
|
433
|
+ show: function () {
|
|
434
|
+ this.form = Object.assign({}, this.resetForm)
|
|
435
|
+ // this.form.name = patientInfo.name
|
|
436
|
+ // this.form.gender = patientInfo.gender
|
|
437
|
+ // this.form.age = patientInfo.age
|
|
438
|
+ // this.form.birthday = patientInfo.birthday
|
|
439
|
+ // this.form.phone = patientInfo.phone
|
|
440
|
+ // this.form.birthday = patientInfo.birthday
|
|
441
|
+ // this.form.id_card = patientInfo.id_card_no
|
|
442
|
+ // this.form.social_type = patientInfo.health_care_type
|
|
443
|
+ // this.form.id_card_type = 1
|
|
444
|
+ // if( this.form.social_type == 0){
|
|
445
|
+ // this.form.social_type = ""
|
|
446
|
+ //
|
|
447
|
+ // }
|
|
448
|
+ this.visibility = true
|
|
449
|
+
|
|
450
|
+ }, hide: function () {
|
|
451
|
+ this.visibility = false
|
|
452
|
+ this.$refs['formValue'].resetFields()
|
|
453
|
+ }, cancel: function (formName) {
|
|
454
|
+ this.$emit('cancel', this.getValue())
|
|
455
|
+ this.$refs['formValue'].resetFields()
|
|
456
|
+ },
|
|
457
|
+ confirm: function (formName) {
|
|
458
|
+ this.$refs['formValue'].validate((valid) => {
|
|
459
|
+ if (valid) {
|
|
460
|
+ let value = {}
|
|
461
|
+ value = this.getValue()
|
|
462
|
+ this.$emit('confirm', value)
|
|
463
|
+ }
|
|
464
|
+ })
|
|
465
|
+ },
|
|
466
|
+ getValue: function () {
|
|
467
|
+ let form = {}
|
|
468
|
+ form = this.form
|
|
469
|
+ return form
|
|
470
|
+ }
|
|
471
|
+ }
|
|
472
|
+
|
|
473
|
+ }
|
|
474
|
+</script>
|
|
475
|
+
|
|
476
|
+<style lang="scss" scoped>
|
|
477
|
+ .registerDialog {
|
|
478
|
+
|
|
479
|
+ .el-form {
|
|
480
|
+ display: flex;
|
|
481
|
+ flex-wrap: wrap;
|
|
482
|
+ }
|
|
483
|
+
|
|
484
|
+ .el-form-item {
|
|
485
|
+ width: 50%;
|
|
486
|
+ }
|
|
487
|
+
|
|
488
|
+ }
|
|
489
|
+</style>
|