|
@@ -14,53 +14,183 @@
|
14
|
14
|
<el-form-item label="模板说明: " prop="name" style="width:100%;">
|
15
|
15
|
<el-input v-model="form.template_remark" placeholder=""></el-input>
|
16
|
16
|
</el-form-item>
|
17
|
|
- <el-form-item label="主诉:" prop="name" style="width:100%;">
|
18
|
|
- <el-input
|
|
17
|
+ <el-row :gutter = "20">
|
|
18
|
+ <el-col :span="24">
|
|
19
|
+ <el-form-item label="主诉:">
|
|
20
|
+ <el-select @change="changeMainTemplate" v-model="value" style="width:200px">
|
|
21
|
+ <el-option
|
|
22
|
+ v-for="(item, index) in tabledata"
|
|
23
|
+ :label="item.title"
|
|
24
|
+ :value="item.content"
|
|
25
|
+ :key="index"
|
|
26
|
+ ></el-option>
|
|
27
|
+ </el-select>
|
|
28
|
+ </el-form-item>
|
|
29
|
+ </el-col>
|
|
30
|
+ <el-col :span="24">
|
|
31
|
+ <el-form-item prop="name" style="width:100%;">
|
|
32
|
+ <el-input
|
|
33
|
+ type="textarea"
|
|
34
|
+ :rows="2"
|
|
35
|
+ placeholder="请输入内容"
|
|
36
|
+ v-model="form.chief_conplaint">
|
|
37
|
+ </el-input>
|
|
38
|
+ </el-form-item>
|
|
39
|
+ </el-col>
|
|
40
|
+ </el-row>
|
|
41
|
+ <el-row :gutter="20">
|
|
42
|
+ <el-col :span="24">
|
|
43
|
+ <el-form-item label="现病史:">
|
|
44
|
+ <el-select @change="changeMainTemplateOne" v-model="valueOne" style="width:200px">
|
|
45
|
+ <el-option
|
|
46
|
+ v-for="(item, index) in tabledataOne"
|
|
47
|
+ :label="item.title"
|
|
48
|
+ :value="item.content"
|
|
49
|
+ :key="index"
|
|
50
|
+ ></el-option>
|
|
51
|
+ </el-select>
|
|
52
|
+ </el-form-item>
|
|
53
|
+ </el-col>
|
|
54
|
+ <el-col :span="24">
|
|
55
|
+ <el-form-item prop="name" style="width:100%;">
|
|
56
|
+ <el-input
|
|
57
|
+ type="textarea"
|
|
58
|
+ :rows="2"
|
|
59
|
+ placeholder="请输入内容"
|
|
60
|
+ v-model="form.history_of_present_illness">
|
|
61
|
+ </el-input>
|
|
62
|
+ </el-form-item>
|
|
63
|
+ </el-col>
|
|
64
|
+ </el-row>
|
|
65
|
+ <el-row :gutter="20">
|
|
66
|
+ <el-col :span="24">
|
|
67
|
+ <el-form-item label="既往史:">
|
|
68
|
+ <el-select @change="changeMainTemplateTwo" v-model="valueTwo" style="width:200px">
|
|
69
|
+ <el-option
|
|
70
|
+ v-for="(item, index) in tabledataTwo"
|
|
71
|
+ :label="item.title"
|
|
72
|
+ :value="item.content"
|
|
73
|
+ :key="index"
|
|
74
|
+ ></el-option>
|
|
75
|
+ </el-select>
|
|
76
|
+ </el-form-item>
|
|
77
|
+ </el-col>
|
|
78
|
+ <el-col :span="24">
|
|
79
|
+ <el-form-item prop="name" style="width:100%;">
|
|
80
|
+ <el-input
|
19
|
81
|
type="textarea"
|
20
|
82
|
:rows="2"
|
21
|
83
|
placeholder="请输入内容"
|
22
|
|
- v-model="form.chief_conplaint">
|
23
|
|
- </el-input>
|
24
|
|
- </el-form-item>
|
25
|
|
- <el-form-item label="现病史:" prop="name" style="width:100%;">
|
26
|
|
- <el-input
|
|
84
|
+ v-model="form.past_history">
|
|
85
|
+ </el-input>
|
|
86
|
+ </el-form-item>
|
|
87
|
+ </el-col>
|
|
88
|
+ </el-row>
|
|
89
|
+ <el-row :gutter="24">
|
|
90
|
+ <el-col :span="20">
|
|
91
|
+ <el-form-item label="个人史:">
|
|
92
|
+ <el-select @change="changeMainTemplateThree" v-model="valueThree" style="width:200px">
|
|
93
|
+ <el-option
|
|
94
|
+ v-for="(item, index) in tabledataThree"
|
|
95
|
+ :label="item.title"
|
|
96
|
+ :value="item.content"
|
|
97
|
+ :key="index"
|
|
98
|
+ ></el-option>
|
|
99
|
+ </el-select>
|
|
100
|
+ </el-form-item>
|
|
101
|
+ </el-col>
|
|
102
|
+ <el-col :span="20">
|
|
103
|
+ <el-form-item prop="name" style="width:100%;">
|
|
104
|
+ <el-input
|
27
|
105
|
type="textarea"
|
28
|
106
|
:rows="2"
|
29
|
107
|
placeholder="请输入内容"
|
30
|
|
- v-model="form.history_of_present_illness">
|
31
|
|
- </el-input>
|
|
108
|
+ v-model="form.personal_history">
|
|
109
|
+ </el-input>
|
|
110
|
+ </el-form-item>
|
|
111
|
+ </el-col>
|
|
112
|
+ </el-row>
|
|
113
|
+ <el-row :gutter="24">
|
|
114
|
+ <el-col :span="20">
|
|
115
|
+ <el-form-item label="家族史:">
|
|
116
|
+ <el-select @change="changeMainTemplateFour" v-model="valueFour" style="width:200px">
|
|
117
|
+ <el-option
|
|
118
|
+ v-for="(item, index) in tabledataFour"
|
|
119
|
+ :label="item.title"
|
|
120
|
+ :value="item.content"
|
|
121
|
+ :key="index"
|
|
122
|
+ ></el-option>
|
|
123
|
+ </el-select>
|
32
|
124
|
</el-form-item>
|
33
|
|
- <el-form-item label="既往史:" prop="name" style="width:100%;">
|
|
125
|
+ </el-col>
|
|
126
|
+ <el-col :span="20">
|
|
127
|
+ <el-form-item prop="name" style="width:100%;">
|
34
|
128
|
<el-input
|
35
|
129
|
type="textarea"
|
36
|
130
|
:rows="2"
|
37
|
131
|
placeholder="请输入内容"
|
38
|
|
- v-model="form.past_history">
|
|
132
|
+ v-model="form.family_history">
|
39
|
133
|
</el-input>
|
40
|
134
|
</el-form-item>
|
41
|
|
- <el-form-item label="个人史:" prop="name" style="width:100%;">
|
42
|
|
- <el-input
|
|
135
|
+ </el-col>
|
|
136
|
+ </el-row>
|
|
137
|
+ <el-row :gutter="24">
|
|
138
|
+ <el-col :span="20">
|
|
139
|
+ <el-form-item label="诊断信息:">
|
|
140
|
+ <el-select @change="changeMainTemplateFive" v-model="valueFive" style="width:200px">
|
|
141
|
+ <el-option
|
|
142
|
+ v-for="(item, index) in tabledataFive"
|
|
143
|
+ :label="item.title"
|
|
144
|
+ :value="item.content"
|
|
145
|
+ :key="index"
|
|
146
|
+ ></el-option>
|
|
147
|
+ </el-select>
|
|
148
|
+ </el-form-item>
|
|
149
|
+ </el-col>
|
|
150
|
+ <el-col :span="20">
|
|
151
|
+ <el-form-item prop="name" style="width:100%;">
|
|
152
|
+ <el-input
|
43
|
153
|
type="textarea"
|
44
|
154
|
:rows="2"
|
45
|
155
|
placeholder="请输入内容"
|
46
|
|
- v-model="form.personal_history">
|
47
|
|
- </el-input>
|
|
156
|
+ v-model="form.diagnostic">
|
|
157
|
+ </el-input>
|
|
158
|
+ </el-form-item>
|
|
159
|
+ </el-col>
|
|
160
|
+ </el-row>
|
|
161
|
+
|
|
162
|
+ <el-row :gutter="24">
|
|
163
|
+ <el-col :span="20">
|
|
164
|
+ <el-form-item label="医嘱:">
|
|
165
|
+ <el-select @change="changeMainTemplateSix" v-model="valueSix" style="width:200px">
|
|
166
|
+ <el-option
|
|
167
|
+ v-for="(item, index) in tabledataSix"
|
|
168
|
+ :label="item.title"
|
|
169
|
+ :value="item.content"
|
|
170
|
+ :key="index"
|
|
171
|
+ ></el-option>
|
|
172
|
+ </el-select>
|
48
|
173
|
</el-form-item>
|
49
|
|
- <el-form-item label="家族史:" prop="name" style="width:100%;">
|
50
|
|
- <el-input
|
|
174
|
+ </el-col>
|
|
175
|
+ <el-col :span="20">
|
|
176
|
+ <el-form-item prop="doctor_advice" style="width:100%;">
|
|
177
|
+ <el-input
|
51
|
178
|
type="textarea"
|
52
|
179
|
:rows="2"
|
53
|
180
|
placeholder="请输入内容"
|
54
|
|
- v-model="form.family_history">
|
55
|
|
- </el-input>
|
|
181
|
+ v-model="form.doctor_advice">
|
|
182
|
+ </el-input>
|
56
|
183
|
</el-form-item>
|
57
|
|
- <el-form-item label="诊断信息:" prop="name" style="width:100%;">
|
58
|
|
- <el-input
|
|
184
|
+ </el-col>
|
|
185
|
+ </el-row>
|
|
186
|
+
|
|
187
|
+ <el-form-item label ="备注" prop="name" style="width:100%;">
|
|
188
|
+ <el-input
|
59
|
189
|
type="textarea"
|
60
|
190
|
:rows="2"
|
61
|
191
|
placeholder="请输入内容"
|
62
|
|
- v-model="form.diagnostic">
|
63
|
|
- </el-input>
|
|
192
|
+ v-model="form.remark">
|
|
193
|
+ </el-input>
|
64
|
194
|
</el-form-item>
|
65
|
195
|
</el-form>
|
66
|
196
|
<div slot="footer" class="dialog-footer">
|
|
@@ -71,7 +201,7 @@
|
71
|
201
|
</template>
|
72
|
202
|
|
73
|
203
|
<script>
|
74
|
|
-import { getTemplateDetail,updateRecordTemplate } from "@/api/project/project"
|
|
204
|
+import { getTemplateDetail,updateRecordTemplate,getMedicalTemplateList } from "@/api/project/project"
|
75
|
205
|
export default {
|
76
|
206
|
data(){
|
77
|
207
|
return{
|
|
@@ -85,10 +215,29 @@ export default {
|
85
|
215
|
past_history:"",
|
86
|
216
|
personal_history:"",
|
87
|
217
|
family_history:"",
|
88
|
|
- diagnostic:""
|
|
218
|
+ diagnostic:"",
|
|
219
|
+ remark:'',
|
|
220
|
+ doctor_advice:'',
|
|
221
|
+
|
89
|
222
|
},
|
90
|
223
|
textarea:"",
|
91
|
|
- templatedetail:{}
|
|
224
|
+ templatedetail:{},
|
|
225
|
+ tabledata:[],
|
|
226
|
+ tabledataOne:[],
|
|
227
|
+ tabledataTwo:[],
|
|
228
|
+ tabledataThree:[],
|
|
229
|
+ tabledataFour:[],
|
|
230
|
+ tabledataFive:[],
|
|
231
|
+ tabledataSix:[],
|
|
232
|
+ tabledataSeven:[],
|
|
233
|
+ value:'',
|
|
234
|
+ valueOne:'',
|
|
235
|
+ valueTwo:'',
|
|
236
|
+ valueThree:'',
|
|
237
|
+ valueFour:'',
|
|
238
|
+ valueFive:'',
|
|
239
|
+ valueSix:'',
|
|
240
|
+ valueSeven:''
|
92
|
241
|
}
|
93
|
242
|
},
|
94
|
243
|
methods:{
|
|
@@ -124,7 +273,8 @@ export default {
|
124
|
273
|
this.form.personal_history = templatedetail.personal_history
|
125
|
274
|
this.form.family_history = templatedetail.family_history
|
126
|
275
|
this.form.diagnostic = templatedetail.diagnostic
|
127
|
|
-
|
|
276
|
+ this.form.doctor_advice = templatedetail.doctor_advice
|
|
277
|
+ this.form.remark = templatedetail.remark
|
128
|
278
|
}
|
129
|
279
|
})
|
130
|
280
|
},
|
|
@@ -138,7 +288,9 @@ export default {
|
138
|
288
|
past_history:this.form.past_history,
|
139
|
289
|
personal_history:this.form.personal_history,
|
140
|
290
|
family_history:this.form.family_history,
|
141
|
|
- diagnostic:this.form.diagnostic
|
|
291
|
+ diagnostic:this.form.diagnostic,
|
|
292
|
+ doctor_advice:this.form.doctor_advice,
|
|
293
|
+ remark:this.form.remark
|
142
|
294
|
}
|
143
|
295
|
updateRecordTemplate(params).then(response=>{
|
144
|
296
|
if(response.data.state == 1){
|
|
@@ -148,7 +300,121 @@ export default {
|
148
|
300
|
// this.$parents.getlist()
|
149
|
301
|
}
|
150
|
302
|
})
|
|
303
|
+ },
|
|
304
|
+
|
|
305
|
+ getlist(){
|
|
306
|
+ getMedicalTemplateList().then(response=>{
|
|
307
|
+ if(response.data.state == 1){
|
|
308
|
+ var list = response.data.data.list
|
|
309
|
+ console.log("list",list)
|
|
310
|
+ this.tabledata = list
|
|
311
|
+ this.tabledataOne = response.data.data.listOne
|
|
312
|
+ this.tabledataTwo = response.data.data.listTwo
|
|
313
|
+ this.tabledataThree = response.data.data.listThree
|
|
314
|
+ this.tabledataFour = response.data.data.listFour
|
|
315
|
+ this.tabledataFive = response.data.data.listFive
|
|
316
|
+ this.tabledataSix = response.data.data.listSix
|
|
317
|
+ this.tabledataSeven = response.data.data.listSeven
|
|
318
|
+ }
|
|
319
|
+ })
|
|
320
|
+ },
|
|
321
|
+
|
|
322
|
+ changeMainTemplate(values){
|
|
323
|
+ if(this.case_history.chief_conplaint == ''){
|
|
324
|
+ this.case_history.chief_conplaint = values
|
|
325
|
+ } else {
|
|
326
|
+ if (this.case_history.chief_conplaint.indexOf(values) == -1) {
|
|
327
|
+ if (this.case_history.chief_conplaint.charAt(this.case_history.chief_conplaint.length - 1).indexOf('。') == -1) {
|
|
328
|
+ this.case_history.chief_conplaint = this.case_history.chief_conplaint + ',' + values
|
|
329
|
+ } else {
|
|
330
|
+ this.case_history.chief_conplaint = this.case_history.chief_conplaint + values
|
|
331
|
+ }
|
|
332
|
+ }
|
|
333
|
+ }
|
|
334
|
+ },
|
|
335
|
+ changeMainTemplateOne(values){
|
|
336
|
+ if(this.case_history.history_of_present_illness == ''){
|
|
337
|
+ this.case_history.history_of_present_illness = values
|
|
338
|
+ } else {
|
|
339
|
+ if (this.case_history.history_of_present_illness.indexOf(values) == -1) {
|
|
340
|
+ if (this.case_history.history_of_present_illness.charAt(this.case_history.history_of_present_illness.length - 1).indexOf('。') == -1) {
|
|
341
|
+ this.case_history.history_of_present_illness = this.case_history.history_of_present_illness + ',' + values
|
|
342
|
+ } else {
|
|
343
|
+ this.case_history.history_of_present_illness = this.case_history.history_of_present_illness + values
|
|
344
|
+ }
|
|
345
|
+ }
|
151
|
346
|
}
|
|
347
|
+ },
|
|
348
|
+ changeMainTemplateTwo(values){
|
|
349
|
+ if(this.case_history.past_history == ''){
|
|
350
|
+ this.case_history.past_history = values
|
|
351
|
+ } else {
|
|
352
|
+ if (this.case_history.past_history.indexOf(values) == -1) {
|
|
353
|
+ if (this.case_history.past_history.charAt(this.case_history.past_history.length - 1).indexOf('。') == -1) {
|
|
354
|
+ this.case_history.past_history = this.case_history.past_history + ',' + values
|
|
355
|
+ } else {
|
|
356
|
+ this.case_history.past_history = this.case_history.past_history + values
|
|
357
|
+ }
|
|
358
|
+ }
|
|
359
|
+ }
|
|
360
|
+ },
|
|
361
|
+ changeMainTemplateThree(values){
|
|
362
|
+ if(this.case_history.personal_history == ''){
|
|
363
|
+ this.case_history.personal_history = values
|
|
364
|
+ } else {
|
|
365
|
+ if (this.case_history.personal_history.indexOf(values) == -1) {
|
|
366
|
+ if (this.case_history.personal_history.charAt(this.case_history.personal_history.length - 1).indexOf('。') == -1) {
|
|
367
|
+ this.case_history.personal_history = this.case_history.personal_history + ',' + values
|
|
368
|
+ } else {
|
|
369
|
+ this.case_history.personal_history = this.case_history.personal_history + values
|
|
370
|
+ }
|
|
371
|
+ }
|
|
372
|
+ }
|
|
373
|
+ },
|
|
374
|
+ changeMainTemplateFour(values){
|
|
375
|
+ if(this.case_history.family_history == ''){
|
|
376
|
+ this.case_history.family_history = values
|
|
377
|
+ } else {
|
|
378
|
+ if (this.case_history.family_history.indexOf(values) == -1) {
|
|
379
|
+ if (this.case_history.family_history.charAt(this.case_history.family_history.length - 1).indexOf('。') == -1) {
|
|
380
|
+ this.case_history.family_history = this.case_history.family_history + ',' + values
|
|
381
|
+ } else {
|
|
382
|
+ this.case_history.family_history = this.case_history.family_history + values
|
|
383
|
+ }
|
|
384
|
+ }
|
|
385
|
+ }
|
|
386
|
+ },
|
|
387
|
+
|
|
388
|
+ changeMainTemplateFive(values){
|
|
389
|
+ if(this.case_history.diagnostic == ''){
|
|
390
|
+ this.case_history.diagnostic = values
|
|
391
|
+ } else {
|
|
392
|
+ if (this.case_history.diagnostic.indexOf(values) == -1) {
|
|
393
|
+ if (this.case_history.diagnostic.charAt(this.case_history.diagnostic.length - 1).indexOf('。') == -1) {
|
|
394
|
+ this.case_history.diagnostic = this.case_history.diagnostic + ',' + values
|
|
395
|
+ } else {
|
|
396
|
+ this.case_history.diagnostic = this.case_history.diagnostic + values
|
|
397
|
+ }
|
|
398
|
+ }
|
|
399
|
+ }
|
|
400
|
+ },
|
|
401
|
+ changeMainTemplateSix(values){
|
|
402
|
+ if(this.case_history.doctor_advice == ''){
|
|
403
|
+ this.case_history.doctor_advice = values
|
|
404
|
+ } else {
|
|
405
|
+ if (this.case_history.doctor_advice.indexOf(values) == -1) {
|
|
406
|
+ if (this.case_history.doctor_advice.charAt(this.case_history.doctor_advice.length - 1).indexOf('。') == -1) {
|
|
407
|
+ this.case_history.doctor_advice = this.case_history.doctor_advice + ',' + values
|
|
408
|
+ } else {
|
|
409
|
+ this.case_history.doctor_advice = this.case_history.doctor_advice + values
|
|
410
|
+ }
|
|
411
|
+ }
|
|
412
|
+ }
|
|
413
|
+ },
|
|
414
|
+ },
|
|
415
|
+
|
|
416
|
+ created(){
|
|
417
|
+ this.getlist()
|
152
|
418
|
}
|
153
|
419
|
}
|
154
|
420
|
</script>
|