|
@@ -1,58 +1,44 @@
|
1
|
1
|
<template>
|
2
|
2
|
<el-dialog
|
3
|
|
- title="病历模板详情"
|
4
|
|
- width="1000px"
|
5
|
|
- :visible.sync="visible"
|
6
|
|
- :before-close="_close"
|
7
|
|
- class="recordDialog"
|
8
|
|
- append-to-body
|
|
3
|
+ title="病历模板详情"
|
|
4
|
+ width="1000px"
|
|
5
|
+ :visible.sync="visible"
|
|
6
|
+ :before-close="_close"
|
|
7
|
+ class="recordDialog"
|
|
8
|
+ append-to-body
|
9
|
9
|
>
|
10
|
10
|
<el-form class="recordForm" :model="form" ref="form" label-width="80px">
|
11
|
|
- <el-form-item label="模板名称: " prop="name" style="width:100%;">
|
12
|
|
- <el-input v-model="form.template_name" placeholder=""></el-input>
|
13
|
|
- </el-form-item>
|
14
|
|
- <el-form-item label="模板说明: " prop="name" style="width:100%;">
|
15
|
|
- <el-input v-model="form.template_remark" placeholder=""></el-input>
|
16
|
|
- </el-form-item>
|
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>
|
|
11
|
+ <el-form-item label="模板名称: " prop="name" style="width:100%;">
|
|
12
|
+ <el-input v-model="form.template_name" placeholder=""></el-input>
|
28
|
13
|
</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>
|
|
14
|
+ <el-form-item label="模板说明: " prop="name" style="width:100%;">
|
|
15
|
+ <el-input v-model="form.template_remark" placeholder=""></el-input>
|
|
16
|
+ </el-form-item>
|
|
17
|
+ <el-form-item label="主诉:" class="width50">
|
|
18
|
+ <el-select @change="changeMainTemplate" v-model="value" style="width:100%;margin-bottom:10px;">
|
|
19
|
+ <el-option
|
|
20
|
+ v-for="(item, index) in tabledata"
|
|
21
|
+ :label="item.title"
|
|
22
|
+ :value="item.content"
|
|
23
|
+ :key="index"
|
|
24
|
+ ></el-option>
|
|
25
|
+ </el-select>
|
|
26
|
+ <el-input
|
|
27
|
+ type="textarea"
|
|
28
|
+ :rows="2"
|
|
29
|
+ placeholder="请输入内容"
|
|
30
|
+ v-model="form.chief_conplaint">
|
|
31
|
+ </el-input>
|
52
|
32
|
</el-form-item>
|
53
|
|
- </el-col>
|
54
|
|
- <el-col :span="24">
|
55
|
|
- <el-form-item prop="name" style="width:100%;">
|
|
33
|
+ <el-form-item label="现病史:" class="width50">
|
|
34
|
+ <el-select @change="changeMainTemplateOne" v-model="valueOne" style="width:100%;margin-bottom:10px;">
|
|
35
|
+ <el-option
|
|
36
|
+ v-for="(item, index) in tabledataOne"
|
|
37
|
+ :label="item.title"
|
|
38
|
+ :value="item.content"
|
|
39
|
+ :key="index"
|
|
40
|
+ ></el-option>
|
|
41
|
+ </el-select>
|
56
|
42
|
<el-input
|
57
|
43
|
type="textarea"
|
58
|
44
|
:rows="2"
|
|
@@ -60,138 +46,95 @@
|
60
|
46
|
v-model="form.history_of_present_illness">
|
61
|
47
|
</el-input>
|
62
|
48
|
</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
|
81
|
|
- type="textarea"
|
82
|
|
- :rows="2"
|
83
|
|
- placeholder="请输入内容"
|
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%;">
|
|
49
|
+ <el-form-item label="既往史:" class="width50">
|
|
50
|
+ <el-select @change="changeMainTemplateTwo" v-model="valueTwo" style="width:100%;margin-bottom:10px;">
|
|
51
|
+ <el-option
|
|
52
|
+ v-for="(item, index) in tabledataTwo"
|
|
53
|
+ :label="item.title"
|
|
54
|
+ :value="item.content"
|
|
55
|
+ :key="index"
|
|
56
|
+ ></el-option>
|
|
57
|
+ </el-select>
|
104
|
58
|
<el-input
|
105
|
|
- type="textarea"
|
106
|
|
- :rows="2"
|
107
|
|
- placeholder="请输入内容"
|
108
|
|
- v-model="form.personal_history">
|
|
59
|
+ type="textarea"
|
|
60
|
+ :rows="2"
|
|
61
|
+ placeholder="请输入内容"
|
|
62
|
+ v-model="form.past_history">
|
109
|
63
|
</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>
|
124
|
|
- </el-form-item>
|
125
|
|
- </el-col>
|
126
|
|
- <el-col :span="20">
|
127
|
|
- <el-form-item prop="name" style="width:100%;">
|
128
|
|
- <el-input
|
129
|
|
- type="textarea"
|
130
|
|
- :rows="2"
|
131
|
|
- placeholder="请输入内容"
|
132
|
|
- v-model="form.family_history">
|
133
|
|
- </el-input>
|
134
|
|
- </el-form-item>
|
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%;">
|
|
64
|
+ </el-form-item>
|
|
65
|
+ <el-form-item label="个人史:" class="width50">
|
|
66
|
+ <el-select @change="changeMainTemplateThree" v-model="valueThree" style="width:100%;margin-bottom:10px;">
|
|
67
|
+ <el-option
|
|
68
|
+ v-for="(item, index) in tabledataThree"
|
|
69
|
+ :label="item.title"
|
|
70
|
+ :value="item.content"
|
|
71
|
+ :key="index"
|
|
72
|
+ ></el-option>
|
|
73
|
+ </el-select>
|
152
|
74
|
<el-input
|
153
|
|
- type="textarea"
|
154
|
|
- :rows="2"
|
155
|
|
- placeholder="请输入内容"
|
156
|
|
- v-model="form.diagnostic">
|
|
75
|
+ type="textarea"
|
|
76
|
+ :rows="2"
|
|
77
|
+ placeholder="请输入内容"
|
|
78
|
+ v-model="form.personal_history">
|
157
|
79
|
</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>
|
173
|
|
- </el-form-item>
|
174
|
|
- </el-col>
|
175
|
|
- <el-col :span="20">
|
176
|
|
- <el-form-item prop="doctor_advice" style="width:100%;">
|
|
80
|
+ </el-form-item>
|
|
81
|
+ <el-form-item label="家族史:" class="width50">
|
|
82
|
+ <el-select @change="changeMainTemplateFour" v-model="valueFour" style="width:100%;margin-bottom:10px;">
|
|
83
|
+ <el-option
|
|
84
|
+ v-for="(item, index) in tabledataFour"
|
|
85
|
+ :label="item.title"
|
|
86
|
+ :value="item.content"
|
|
87
|
+ :key="index"
|
|
88
|
+ ></el-option>
|
|
89
|
+ </el-select>
|
177
|
90
|
<el-input
|
178
|
|
- type="textarea"
|
179
|
|
- :rows="2"
|
180
|
|
- placeholder="请输入内容"
|
181
|
|
- v-model="form.doctor_advice">
|
|
91
|
+ type="textarea"
|
|
92
|
+ :rows="2"
|
|
93
|
+ placeholder="请输入内容"
|
|
94
|
+ v-model="form.family_history">
|
|
95
|
+ </el-input>
|
|
96
|
+ </el-form-item>
|
|
97
|
+ <el-form-item label="诊断信息:" class="width50">
|
|
98
|
+ <el-select @change="changeMainTemplateFive" v-model="valueFive" style="width:100%;margin-bottom:10px;">
|
|
99
|
+ <el-option
|
|
100
|
+ v-for="(item, index) in tabledataFive"
|
|
101
|
+ :label="item.title"
|
|
102
|
+ :value="item.content"
|
|
103
|
+ :key="index"
|
|
104
|
+ ></el-option>
|
|
105
|
+ </el-select>
|
|
106
|
+ <el-input
|
|
107
|
+ type="textarea"
|
|
108
|
+ :rows="2"
|
|
109
|
+ placeholder="请输入内容"
|
|
110
|
+ v-model="form.diagnostic">
|
182
|
111
|
</el-input>
|
183
|
|
- </el-form-item>
|
184
|
|
- </el-col>
|
185
|
|
- </el-row>
|
|
112
|
+ </el-form-item>
|
|
113
|
+ <el-form-item label="医嘱:" class="width50">
|
|
114
|
+ <el-select @change="changeMainTemplateSix" v-model="valueSix" style="width:100%;margin-bottom:10px;">
|
|
115
|
+ <el-option
|
|
116
|
+ v-for="(item, index) in tabledataSix"
|
|
117
|
+ :label="item.title"
|
|
118
|
+ :value="item.content"
|
|
119
|
+ :key="index"
|
|
120
|
+ ></el-option>
|
|
121
|
+ </el-select>
|
|
122
|
+ <el-input
|
|
123
|
+ type="textarea"
|
|
124
|
+ :rows="2"
|
|
125
|
+ placeholder="请输入内容"
|
|
126
|
+ v-model="form.doctor_advice">
|
|
127
|
+ </el-input>
|
|
128
|
+ </el-form-item>
|
186
|
129
|
|
187
|
|
- <el-form-item label ="备注" prop="name" style="width:100%;">
|
|
130
|
+ <el-form-item label ="备注" prop="name" class="width50">
|
188
|
131
|
<el-input
|
189
|
|
- type="textarea"
|
190
|
|
- :rows="2"
|
191
|
|
- placeholder="请输入内容"
|
192
|
|
- v-model="form.remark">
|
|
132
|
+ type="textarea"
|
|
133
|
+ :rows="2"
|
|
134
|
+ placeholder="请输入内容"
|
|
135
|
+ v-model="form.remark">
|
193
|
136
|
</el-input>
|
194
|
|
- </el-form-item>
|
|
137
|
+ </el-form-item>
|
195
|
138
|
</el-form>
|
196
|
139
|
<div slot="footer" class="dialog-footer">
|
197
|
140
|
<el-button @click="hide">取 消</el-button>
|
|
@@ -421,12 +364,15 @@ export default {
|
421
|
364
|
|
422
|
365
|
<style lang="scss" scoped>
|
423
|
366
|
.recordForm{
|
424
|
|
- display: flex;
|
425
|
|
- flex-wrap: wrap;
|
426
|
|
- .el-form-item{
|
427
|
|
- width:24%;
|
428
|
|
- margin-right: 1%;
|
429
|
|
- }
|
|
367
|
+ display: flex;
|
|
368
|
+ flex-wrap: wrap;
|
|
369
|
+ .el-form-item{
|
|
370
|
+ width:24%;
|
|
371
|
+ margin-right: 1%;
|
|
372
|
+ }
|
|
373
|
+ .width50{
|
|
374
|
+ width: 49%;
|
|
375
|
+ }
|
430
|
376
|
}
|
431
|
377
|
</style>
|
432
|
378
|
|