|
@@ -0,0 +1,262 @@
|
|
1
|
+<template>
|
|
2
|
+ <el-dialog width="854px" :title="titles" :visible.sync="visibility" :close-on-click-modal="isClose"
|
|
3
|
+ :close-on-press-escape="isClose">
|
|
4
|
+
|
|
5
|
+ <el-form class="basicForm" :model="form" :rules="rules" ref="form" label-width="100px">
|
|
6
|
+ <el-form-item label="患者姓名:" prop="name" :validate-event="is_Name">
|
|
7
|
+ <el-input v-model="form.name"></el-input>
|
|
8
|
+ </el-form-item>
|
|
9
|
+
|
|
10
|
+ <el-form-item label="性别:" prop="sex" :validate-event="is_Name">
|
|
11
|
+ <el-select v-model="form.sex" placeholder="请选择">
|
|
12
|
+ <el-option
|
|
13
|
+ v-for="item in sex"
|
|
14
|
+ :key="item.value"
|
|
15
|
+ :label="item.label"
|
|
16
|
+ :value="item.value">
|
|
17
|
+ </el-option>
|
|
18
|
+ </el-select>
|
|
19
|
+ </el-form-item>
|
|
20
|
+
|
|
21
|
+ <el-form-item label="年龄:" prop="age" :validate-event="is_Name">
|
|
22
|
+ <el-input v-model="form.age"></el-input>
|
|
23
|
+ </el-form-item>
|
|
24
|
+
|
|
25
|
+
|
|
26
|
+ <el-form-item label="出生日期:" prop="birthday" :validate-event="is_Name">
|
|
27
|
+ <el-date-picker v-model="form.birthday" type="date" @change="getBirthday" placeholder="选择日期"></el-date-picker>
|
|
28
|
+ </el-form-item>
|
|
29
|
+
|
|
30
|
+ <el-form-item label="手机号码:" prop="phone">
|
|
31
|
+ <el-input v-model="form.phone"></el-input>
|
|
32
|
+ </el-form-item>
|
|
33
|
+
|
|
34
|
+
|
|
35
|
+ <el-form-item label="医疗类别:">
|
|
36
|
+ <el-select v-model="form.medicalCare" placeholder="请选择">
|
|
37
|
+ <!-- <el-option
|
|
38
|
+ v-for="item in medicalCare"
|
|
39
|
+ :key="item.value"
|
|
40
|
+ :label="item.label"
|
|
41
|
+ :value="item.value">
|
|
42
|
+ </el-option> -->
|
|
43
|
+ <el-option
|
|
44
|
+ v-for="(item,index) in getDictionaryDataConfig('system','social_type')"
|
|
45
|
+ :key="index"
|
|
46
|
+ :label="item.name"
|
|
47
|
+ :value="item.id">
|
|
48
|
+ </el-option>
|
|
49
|
+ </el-select>
|
|
50
|
+ </el-form-item>
|
|
51
|
+
|
|
52
|
+
|
|
53
|
+ <el-form-item label="证件类型:">
|
|
54
|
+ <el-select v-model="form.certificates" placeholder="请选择">
|
|
55
|
+ <el-option
|
|
56
|
+ v-for="item in certificates"
|
|
57
|
+ :key="item.value"
|
|
58
|
+ :label="item.label"
|
|
59
|
+ :value="item.value">
|
|
60
|
+ </el-option>
|
|
61
|
+ </el-select>
|
|
62
|
+ </el-form-item>
|
|
63
|
+
|
|
64
|
+ <el-form-item label="证件号码:" prop="idCard" :validate-event="is_Name">
|
|
65
|
+ <el-input v-model="form.idCard"></el-input>
|
|
66
|
+ </el-form-item>
|
|
67
|
+
|
|
68
|
+
|
|
69
|
+ <el-form-item label="结算类型:">
|
|
70
|
+ <el-select v-model="form.settlementValue" placeholder="请选择">
|
|
71
|
+ <el-option
|
|
72
|
+ v-for="item in settlement"
|
|
73
|
+ :key="item.value"
|
|
74
|
+ :label="item.label"
|
|
75
|
+ :value="item.value">
|
|
76
|
+ </el-option>
|
|
77
|
+ </el-select>
|
|
78
|
+ </el-form-item>
|
|
79
|
+
|
|
80
|
+
|
|
81
|
+ <el-form-item label="社保类型:">
|
|
82
|
+ <el-select v-model="form.social_type" placeholder="请选择">
|
|
83
|
+ <!-- <el-option
|
|
84
|
+ v-for="(item,index) in getDictionaryDataConfig('system','social_type')"
|
|
85
|
+ :key="index"
|
|
86
|
+ :label="item.name"
|
|
87
|
+ :value="item.id">
|
|
88
|
+ </el-option> -->
|
|
89
|
+ <el-option
|
|
90
|
+ v-for="item in medicalCare"
|
|
91
|
+ :key="item.value"
|
|
92
|
+ :label="item.label"
|
|
93
|
+ :value="item.value">
|
|
94
|
+ </el-option>
|
|
95
|
+ </el-select>
|
|
96
|
+ </el-form-item>
|
|
97
|
+ <el-form-item class="specialFormItem" label="医保卡号:">
|
|
98
|
+ <div style="display:flex;">
|
|
99
|
+ <el-input v-model="form.medicalInsuranceCard"></el-input>
|
|
100
|
+ <!-- <el-button style="margin-left:10px;" type="primary" @click="reading">读卡</el-button> -->
|
|
101
|
+ </div>
|
|
102
|
+ </el-form-item>
|
|
103
|
+
|
|
104
|
+ </el-form>
|
|
105
|
+
|
|
106
|
+ <!--<el-form :model="formValue" :rules="rules" ref="formValue" class="demo-form-inline"-->
|
|
107
|
+ <!--:label-position="labelPosition"-->
|
|
108
|
+ <!--label-width="100px">-->
|
|
109
|
+
|
|
110
|
+ <!--<el-row>-->
|
|
111
|
+ <!--<el-col :span="8">-->
|
|
112
|
+ <!--<el-form-item label="诊断名称" prop="class_name">-->
|
|
113
|
+ <!--<el-input v-model="formValue.class_name"></el-input>-->
|
|
114
|
+ <!--</el-form-item>-->
|
|
115
|
+ <!--</el-col>-->
|
|
116
|
+
|
|
117
|
+ <!--<el-col :span="8">-->
|
|
118
|
+ <!--<el-form-item label="拼音" prop="pinyin">-->
|
|
119
|
+ <!--<el-input v-model="formValue.pinyin"></el-input>-->
|
|
120
|
+ <!--</el-form-item>-->
|
|
121
|
+ <!--</el-col>-->
|
|
122
|
+ <!--<el-col :span="8">-->
|
|
123
|
+ <!--<el-form-item label="五笔" prop="wubi">-->
|
|
124
|
+ <!--<el-input v-model="formValue.wubi"></el-input>-->
|
|
125
|
+ <!--</el-form-item>-->
|
|
126
|
+ <!--</el-col>-->
|
|
127
|
+
|
|
128
|
+ <!--<el-col :span="8">-->
|
|
129
|
+ <!--<el-form-item label="目录代码" prop="content_code">-->
|
|
130
|
+ <!--<el-input v-model="formValue.content_code"></el-input>-->
|
|
131
|
+ <!--</el-form-item>-->
|
|
132
|
+ <!--</el-col>-->
|
|
133
|
+
|
|
134
|
+ <!--<el-col :span="8">-->
|
|
135
|
+ <!--<el-form-item label="国家编码" prop="country_code">-->
|
|
136
|
+ <!--<el-input v-model="formValue.country_code"></el-input>-->
|
|
137
|
+ <!--</el-form-item>-->
|
|
138
|
+ <!--</el-col>-->
|
|
139
|
+
|
|
140
|
+ <!--<el-col :span="8">-->
|
|
141
|
+ <!--<el-form-item label="国家目录名称" prop="country_content_name">-->
|
|
142
|
+ <!--<el-input v-model="formValue.country_content_name"></el-input>-->
|
|
143
|
+ <!--</el-form-item>-->
|
|
144
|
+ <!--</el-col>-->
|
|
145
|
+ <!--</el-row>-->
|
|
146
|
+
|
|
147
|
+ <!--<el-col>-->
|
|
148
|
+ <!--<el-form-item label="备注">-->
|
|
149
|
+ <!--<el-input type="textarea" :row="5" v-model="formValue.remark"-->
|
|
150
|
+ <!--placeholder="请输入内容">-->
|
|
151
|
+ <!--</el-input>-->
|
|
152
|
+ <!--</el-form-item>-->
|
|
153
|
+ <!--</el-col>-->
|
|
154
|
+ <!--</el-form>-->
|
|
155
|
+
|
|
156
|
+ <span slot="footer" class="dialog-footer">
|
|
157
|
+ <el-button v-if="isCreated == 3" @click="cancle('formValue')">取 消</el-button>
|
|
158
|
+ <el-button v-if="isCreated != 3 " @click="cancle('formValue')">取 消</el-button>
|
|
159
|
+ <el-button v-if="isCreated != 3" type="primary" @click="comfirm('formValue')">保 存</el-button>
|
|
160
|
+ </span>
|
|
161
|
+ </el-dialog>
|
|
162
|
+
|
|
163
|
+</template>
|
|
164
|
+
|
|
165
|
+<script>
|
|
166
|
+ export default {
|
|
167
|
+ name: 'diagnoseOtherDialog',
|
|
168
|
+
|
|
169
|
+ data() {
|
|
170
|
+
|
|
171
|
+ return {
|
|
172
|
+ visibility: false,
|
|
173
|
+ labelPosition: 'right',
|
|
174
|
+ isClose: false,
|
|
175
|
+ form: {
|
|
176
|
+ class_name: '',
|
|
177
|
+ content_code: '',
|
|
178
|
+ country_code: '',
|
|
179
|
+ country_content_name: '',
|
|
180
|
+ remark: '',
|
|
181
|
+ pinyin: '',
|
|
182
|
+ wubi: ''
|
|
183
|
+
|
|
184
|
+ },
|
|
185
|
+ resetForm: {
|
|
186
|
+ class_name: '',
|
|
187
|
+ content_code: '',
|
|
188
|
+ country_code: '',
|
|
189
|
+ country_content_name: '',
|
|
190
|
+ remark: '',
|
|
191
|
+ pinyin: '',
|
|
192
|
+ wubi: ''
|
|
193
|
+ },
|
|
194
|
+ rules: {
|
|
195
|
+ class_name: [
|
|
196
|
+ { required: true, message: '请输入大类名称', trigger: 'blur' }
|
|
197
|
+ ],
|
|
198
|
+ content_code: [
|
|
199
|
+ { required: true, message: '请输入目录代码', trigger: 'blur' }
|
|
200
|
+ ]
|
|
201
|
+
|
|
202
|
+ }
|
|
203
|
+ }
|
|
204
|
+ },
|
|
205
|
+ props: {
|
|
206
|
+
|
|
207
|
+ titles: {
|
|
208
|
+ type: String,
|
|
209
|
+ default: ''
|
|
210
|
+ },
|
|
211
|
+ formValue: {
|
|
212
|
+ type: Object
|
|
213
|
+ },
|
|
214
|
+ type: {
|
|
215
|
+ type: Number,
|
|
216
|
+ default: 1
|
|
217
|
+
|
|
218
|
+ },
|
|
219
|
+ isCreated: {
|
|
220
|
+ type: Number,
|
|
221
|
+ default: 1
|
|
222
|
+
|
|
223
|
+ }
|
|
224
|
+ },
|
|
225
|
+ methods: {
|
|
226
|
+ show: function() {
|
|
227
|
+ this.visibility = true
|
|
228
|
+
|
|
229
|
+ }, hide: function() {
|
|
230
|
+ this.visibility = false
|
|
231
|
+ },
|
|
232
|
+ cancle: function(formName) {
|
|
233
|
+ this.$emit('dialog-cancle', this.getValue())
|
|
234
|
+ this.$refs['formValue'].resetFields()
|
|
235
|
+ },
|
|
236
|
+ comfirm: function(formName) {
|
|
237
|
+ this.$refs['formValue'].validate((valid) => {
|
|
238
|
+ if (valid) {
|
|
239
|
+ let value = {}
|
|
240
|
+ value = this.getValue()
|
|
241
|
+ this.$emit('dialog-comfirm', value)
|
|
242
|
+ this.form = Object.assign({}, this.resetForm)
|
|
243
|
+
|
|
244
|
+ }
|
|
245
|
+ })
|
|
246
|
+ },
|
|
247
|
+ getValue: function() {
|
|
248
|
+ let form = {}
|
|
249
|
+ form = this.formValue
|
|
250
|
+ form['title'] = this.titles
|
|
251
|
+ form['type'] = this.type
|
|
252
|
+ form['isCreated'] = this.isCreated
|
|
253
|
+ return form
|
|
254
|
+ }
|
|
255
|
+ }
|
|
256
|
+
|
|
257
|
+ }
|
|
258
|
+</script>
|
|
259
|
+
|
|
260
|
+<style scoped>
|
|
261
|
+
|
|
262
|
+</style>
|