|
@@ -9,7 +9,7 @@
|
9
|
9
|
<div class="warnTxt" v-if="showTxt != ''">{{ showTxt }}</div>
|
10
|
10
|
<el-form :model="treatmentSummary">
|
11
|
11
|
<el-row :gutter="20">
|
12
|
|
- <el-col :span="24">
|
|
12
|
+ <el-col :span="24" v-if="isShow('宣教知识')">
|
13
|
13
|
<el-form-item label="宣教知识:">
|
14
|
14
|
<el-select @change="dialysisAfterTeachSelectChange" v-model="value">
|
15
|
15
|
<el-option
|
|
@@ -22,15 +22,19 @@
|
22
|
22
|
</el-form-item>
|
23
|
23
|
</el-col>
|
24
|
24
|
</el-row>
|
25
|
|
- <el-form-item>
|
26
|
|
- <el-input
|
27
|
|
- type="textarea"
|
28
|
|
- v-model="treatmentSummary.mission"
|
29
|
|
- :rows="4"
|
30
|
|
- ></el-input>
|
31
|
|
- </el-form-item>
|
32
|
25
|
<el-row :gutter="20">
|
33
|
|
- <el-col :span="24">
|
|
26
|
+ <el-col v-if="isShow('宣教知识')">
|
|
27
|
+ <el-form-item>
|
|
28
|
+ <el-input
|
|
29
|
+ type="textarea"
|
|
30
|
+ v-model="treatmentSummary.mission"
|
|
31
|
+ :rows="4"
|
|
32
|
+ ></el-input>
|
|
33
|
+ </el-form-item>
|
|
34
|
+ </el-col>
|
|
35
|
+ </el-row>
|
|
36
|
+ <el-row :gutter="20">
|
|
37
|
+ <el-col :span="24" v-if="isShow('透析小结')">
|
34
|
38
|
<el-form-item label="透析小结:">
|
35
|
39
|
<el-select @change="dialysisSummarySelectChange" v-model="value2">
|
36
|
40
|
<el-option
|
|
@@ -43,16 +47,37 @@
|
43
|
47
|
</el-form-item>
|
44
|
48
|
</el-col>
|
45
|
49
|
</el-row>
|
46
|
|
- <el-form-item>
|
47
|
|
- <el-input
|
48
|
|
- type="textarea"
|
49
|
|
- v-model="treatmentSummary.dialysis_summary"
|
50
|
|
- :rows="4"
|
51
|
|
- ></el-input>
|
52
|
|
- </el-form-item>
|
|
50
|
+ <el-row :gutter="20">
|
|
51
|
+ <el-col v-if="isShow('透析小结')">
|
|
52
|
+ <el-form-item>
|
|
53
|
+ <el-input
|
|
54
|
+ type="textarea"
|
|
55
|
+ v-model="treatmentSummary.dialysis_summary"
|
|
56
|
+ :rows="4"
|
|
57
|
+ ></el-input>
|
|
58
|
+ </el-form-item>
|
|
59
|
+ </el-col>
|
|
60
|
+ </el-row>
|
53
|
61
|
<el-row :gutter="20">
|
54
|
62
|
<el-col :span="24" v-if="isShow('透析护理记录')">
|
55
|
63
|
<el-form-item label="透析护理记录:">
|
|
64
|
+ <el-select
|
|
65
|
+ @change="dialysisNusingRecordSelectChange"
|
|
66
|
+ v-model="value3"
|
|
67
|
+ >
|
|
68
|
+ <el-option
|
|
69
|
+ v-for="(item, index) in nursingRecord"
|
|
70
|
+ :label="item.text"
|
|
71
|
+ :value="item.value"
|
|
72
|
+ :key="index"
|
|
73
|
+ ></el-option>
|
|
74
|
+ </el-select>
|
|
75
|
+ </el-form-item>
|
|
76
|
+ </el-col>
|
|
77
|
+ </el-row>
|
|
78
|
+ <el-row :gutter="20">
|
|
79
|
+ <el-col v-if="isShow('透析护理记录')">
|
|
80
|
+ <el-form-item>
|
56
|
81
|
<el-input
|
57
|
82
|
type="textarea"
|
58
|
83
|
v-model="treatmentSummary.nursing_record"
|
|
@@ -64,6 +89,23 @@
|
64
|
89
|
<el-row :gutter="20">
|
65
|
90
|
<el-col :span="24" v-if="isShow('特殊记录')">
|
66
|
91
|
<el-form-item label="特殊记录:">
|
|
92
|
+ <el-select
|
|
93
|
+ @change="dialysisSpecialRecordSelectChange"
|
|
94
|
+ v-model="value4"
|
|
95
|
+ >
|
|
96
|
+ <el-option
|
|
97
|
+ v-for="(item, index) in specialRecord"
|
|
98
|
+ :label="item.text"
|
|
99
|
+ :value="item.value"
|
|
100
|
+ :key="index"
|
|
101
|
+ ></el-option>
|
|
102
|
+ </el-select>
|
|
103
|
+ </el-form-item>
|
|
104
|
+ </el-col>
|
|
105
|
+ </el-row>
|
|
106
|
+ <el-row :gutter="20">
|
|
107
|
+ <el-col v-if="isShow('特殊记录')">
|
|
108
|
+ <el-form-item>
|
67
|
109
|
<el-input
|
68
|
110
|
type="textarea"
|
69
|
111
|
v-model="treatmentSummary.special_record"
|
|
@@ -114,11 +156,14 @@ export default {
|
114
|
156
|
hasPermission: true,
|
115
|
157
|
value: "",
|
116
|
158
|
value2: "",
|
117
|
|
-
|
|
159
|
+ value3: "",
|
|
160
|
+ value4: "",
|
118
|
161
|
isVisibility: false,
|
119
|
162
|
record_date: "",
|
120
|
163
|
education: [],
|
121
|
164
|
summary: [],
|
|
165
|
+ nursingRecord: [],
|
|
166
|
+ specialRecord: [],
|
122
|
167
|
treatmentSummary: {
|
123
|
168
|
mission: "",
|
124
|
169
|
dialysis_summary: "",
|
|
@@ -182,6 +227,48 @@ export default {
|
182
|
227
|
}
|
183
|
228
|
}
|
184
|
229
|
},
|
|
230
|
+ dialysisNusingRecordSelectChange: function(values) {
|
|
231
|
+ if (this.treatmentSummary.nursing_record == "") {
|
|
232
|
+ this.treatmentSummary.nursing_record = values;
|
|
233
|
+ } else {
|
|
234
|
+ if (this.treatmentSummary.nursing_record.indexOf(values) == -1) {
|
|
235
|
+ if (
|
|
236
|
+ this.treatmentSummary.nursing_record
|
|
237
|
+ .charAt(this.treatmentSummary.nursing_record.length - 1)
|
|
238
|
+ .indexOf("。") == -1
|
|
239
|
+ ) {
|
|
240
|
+ this.treatmentSummary.nursing_record =
|
|
241
|
+ this.treatmentSummary.nursing_record + "," + values;
|
|
242
|
+ } else {
|
|
243
|
+ this.treatmentSummary.nursing_record =
|
|
244
|
+ this.treatmentSummary.nursing_record + "," + values;
|
|
245
|
+ this.treatmentSummary.nursing_record =
|
|
246
|
+ this.treatmentSummary.nursing_record + values;
|
|
247
|
+ }
|
|
248
|
+ }
|
|
249
|
+ }
|
|
250
|
+ },
|
|
251
|
+ dialysisSpecialRecordSelectChange(values) {
|
|
252
|
+ if (this.treatmentSummary.special_record == "") {
|
|
253
|
+ this.treatmentSummary.special_record = values;
|
|
254
|
+ } else {
|
|
255
|
+ if (this.treatmentSummary.special_record.indexOf(values) == -1) {
|
|
256
|
+ if (
|
|
257
|
+ this.treatmentSummary.special_record
|
|
258
|
+ .charAt(this.treatmentSummary.special_record.length - 1)
|
|
259
|
+ .indexOf("。") == -1
|
|
260
|
+ ) {
|
|
261
|
+ this.treatmentSummary.special_record =
|
|
262
|
+ this.treatmentSummary.special_record + "," + values;
|
|
263
|
+ } else {
|
|
264
|
+ this.treatmentSummary.special_record =
|
|
265
|
+ this.treatmentSummary.special_record + "," + values;
|
|
266
|
+ this.treatmentSummary.special_record =
|
|
267
|
+ this.treatmentSummary.special_record + values;
|
|
268
|
+ }
|
|
269
|
+ }
|
|
270
|
+ }
|
|
271
|
+ },
|
185
|
272
|
handleCancle: function() {
|
186
|
273
|
this.isVisibility = false;
|
187
|
274
|
},
|
|
@@ -289,6 +376,10 @@ export default {
|
289
|
376
|
this.education = getDataConfig("education", "education");
|
290
|
377
|
this.summary = getDataConfig("summary", "summary");
|
291
|
378
|
|
|
379
|
+ this.nursingRecord = getDataConfig("nursing_record", "nursing_record");
|
|
380
|
+
|
|
381
|
+ this.specialRecord = getDataConfig("special_record", "special_record");
|
|
382
|
+
|
292
|
383
|
var date = this.$route.query && this.$route.query.date;
|
293
|
384
|
this.record_date = uParseTime(date, "{y}-{m}-{d}");
|
294
|
385
|
}
|