|
@@ -12,27 +12,35 @@
|
12
|
12
|
</div>
|
13
|
13
|
|
14
|
14
|
<div class="DialogContent choose" id="dialogTop">
|
|
15
|
+
|
15
|
16
|
<el-form :model="dialysisSummary" label-width="120px">
|
16
|
|
- <el-form-item label="透后宣教 : ">
|
17
|
|
- <!-- <el-select @change="dialysisAfterTeachSelectChange" v-model="dialysisSummary.text1" placeholder="请选择">
|
18
|
|
- <el-option v-for="(s, index) in teach" :label="s.text" :value="s.value" :key="index"></el-option>
|
19
|
|
- </el-select>-->
|
20
|
|
- <el-input
|
21
|
|
- class="treatmentInput"
|
22
|
|
- readonly
|
23
|
|
- v-model="dialysisSummary.propagandaAndEducationContentSelect"
|
24
|
|
- placeholder="请选择"
|
25
|
|
- @focus="showSubMenu('education')"
|
26
|
|
- ></el-input>
|
27
|
|
- </el-form-item>
|
28
|
|
- <el-form-item label-width="0">
|
29
|
|
- <el-input
|
30
|
|
- class="newTextarea treatmentInput"
|
31
|
|
- type="textarea"
|
32
|
|
- v-model="dialysisSummary.propagandaAndEducationContent"
|
33
|
|
- :rows="5"
|
34
|
|
- ></el-input>
|
35
|
|
- </el-form-item>
|
|
17
|
+ <el-row>
|
|
18
|
+ <el-col v-if="isShow('宣教知识')">
|
|
19
|
+ <el-form-item label="宣教知识 : ">
|
|
20
|
+ <el-input
|
|
21
|
+ class="treatmentInput"
|
|
22
|
+ readonly
|
|
23
|
+ v-model="dialysisSummary.propagandaAndEducationContentSelect"
|
|
24
|
+ placeholder="请选择"
|
|
25
|
+ @focus="showSubMenu('education')"
|
|
26
|
+ ></el-input>
|
|
27
|
+ </el-form-item>
|
|
28
|
+ </el-col>
|
|
29
|
+ </el-row>
|
|
30
|
+ <el-row>
|
|
31
|
+ <el-col v-if="isShow('宣教知识')">
|
|
32
|
+ <el-form-item label-width="0">
|
|
33
|
+ <el-input
|
|
34
|
+ class="newTextarea treatmentInput"
|
|
35
|
+ type="textarea"
|
|
36
|
+ v-model="dialysisSummary.propagandaAndEducationContent"
|
|
37
|
+ :rows="5"
|
|
38
|
+ ></el-input>
|
|
39
|
+ </el-form-item>
|
|
40
|
+ </el-col>
|
|
41
|
+ </el-row>
|
|
42
|
+ <el-row>
|
|
43
|
+ <el-col v-if="isShow('透析小结')">
|
36
|
44
|
<el-form-item label="透析小结 : ">
|
37
|
45
|
<el-input
|
38
|
46
|
readonly
|
|
@@ -42,45 +50,73 @@
|
42
|
50
|
@focus="showSubMenu('summary')"
|
43
|
51
|
></el-input>
|
44
|
52
|
</el-form-item>
|
45
|
|
-
|
46
|
|
- <el-form-item label-width="0">
|
47
|
|
- <el-input
|
48
|
|
- class="newTextarea treatmentInput"
|
49
|
|
- @focus="lastInputFocus"
|
50
|
|
- @blur="lastInputBlur"
|
51
|
|
- type="textarea"
|
52
|
|
- v-model="dialysisSummary.summaryContent"
|
53
|
|
- :rows="5"
|
54
|
|
- ></el-input>
|
55
|
|
- </el-form-item>
|
56
|
|
- <div v-if="isShow('透析护理记录')">
|
57
|
|
- <el-form-item label="透析护理记录:">
|
|
53
|
+ </el-col>
|
|
54
|
+ </el-row>
|
|
55
|
+ <el-row>
|
|
56
|
+ <el-col v-if="isShow('透析小结')">
|
|
57
|
+ <el-form-item label-width="0">
|
58
|
58
|
<el-input
|
59
|
59
|
class="newTextarea treatmentInput"
|
60
|
60
|
@focus="lastInputFocus"
|
61
|
61
|
@blur="lastInputBlur"
|
62
|
62
|
type="textarea"
|
63
|
|
- v-model="dialysisSummary.nursing_record"
|
|
63
|
+ v-model="dialysisSummary.summaryContent"
|
64
|
64
|
:rows="5"
|
65
|
65
|
></el-input>
|
66
|
66
|
</el-form-item>
|
67
|
|
- </div>
|
68
|
|
- <div v-if="isShow('特殊记录')">
|
69
|
|
- <el-form-item label="特殊记录:">
|
|
67
|
+ </el-col>
|
|
68
|
+ </el-row>
|
|
69
|
+ <el-row>
|
|
70
|
+ <el-col v-if="isShow('透析护理记录')">
|
|
71
|
+ <el-form-item label="透析护理记录:">
|
|
72
|
+ <el-input
|
|
73
|
+ class="treatmentInput"
|
|
74
|
+ readonly
|
|
75
|
+ v-model="dialysisSummary.nursingRecordSelect"
|
|
76
|
+ placeholder="请选择"
|
|
77
|
+ @focus="showSubMenu('nursing_record')"
|
|
78
|
+ ></el-input>
|
|
79
|
+ </el-form-item>
|
|
80
|
+ </el-col>
|
|
81
|
+ </el-row>
|
|
82
|
+ <el-row>
|
|
83
|
+ <el-col v-if="isShow('透析护理记录')">
|
|
84
|
+ <el-form-item label-width="0">
|
70
|
85
|
<el-input
|
71
|
86
|
class="newTextarea treatmentInput"
|
72
|
|
- @focus="lastInputFocus"
|
73
|
|
- @blur="lastInputBlur"
|
74
|
87
|
type="textarea"
|
75
|
|
- v-model="dialysisSummary.special_record"
|
|
88
|
+ v-model="dialysisSummary.nursing_record"
|
76
|
89
|
:rows="5"
|
77
|
90
|
></el-input>
|
78
|
|
- </el-form-item>
|
79
|
|
- </div>
|
|
91
|
+ </el-form-item>
|
|
92
|
+ </el-col>
|
|
93
|
+ </el-row>
|
|
94
|
+ <el-row>
|
|
95
|
+ <el-col v-if="isShow('特殊记录')">
|
|
96
|
+ <el-form-item label="特殊记录:">
|
|
97
|
+ <el-input
|
|
98
|
+ class="treatmentInput"
|
|
99
|
+ readonly
|
|
100
|
+ v-model="dialysisSummary.specialRecordSelect"
|
|
101
|
+ placeholder="请选择"
|
|
102
|
+ @focus="showSubMenu('special_record')"
|
|
103
|
+ ></el-input>
|
|
104
|
+ </el-form-item>
|
|
105
|
+ </el-col>
|
|
106
|
+ </el-row>
|
|
107
|
+ <el-row>
|
|
108
|
+ <el-col v-if="isShow('特殊记录')">
|
|
109
|
+ <el-form-item label-width="0">
|
|
110
|
+ <el-input
|
|
111
|
+ class="newTextarea treatmentInput"
|
|
112
|
+ type="textarea"
|
|
113
|
+ v-model="dialysisSummary.special_record"
|
|
114
|
+ :rows="5"
|
|
115
|
+ ></el-input>
|
|
116
|
+ </el-form-item>
|
|
117
|
+ </el-col>
|
|
118
|
+ </el-row>
|
80
|
119
|
</el-form>
|
81
|
|
- <!-- <div class="button">
|
82
|
|
- <button @click="commitInfo" class="submitButton">提交</button>
|
83
|
|
- </div>-->
|
84
|
120
|
</div>
|
85
|
121
|
</div>
|
86
|
122
|
|
|
@@ -133,7 +169,9 @@ export default {
|
133
|
169
|
deboardNurse: "",
|
134
|
170
|
treatDoctor: "",
|
135
|
171
|
nursing_record: "",
|
136
|
|
- special_record: ""
|
|
172
|
+ special_record: "",
|
|
173
|
+ nursingRecordSelect: "",
|
|
174
|
+ specialRecordSelect: ""
|
137
|
175
|
},
|
138
|
176
|
summary: [],
|
139
|
177
|
summaryObj: {},
|
|
@@ -143,7 +181,9 @@ export default {
|
143
|
181
|
record_date: "",
|
144
|
182
|
patient: {
|
145
|
183
|
id: 0
|
146
|
|
- }
|
|
184
|
+ },
|
|
185
|
+ nursingRecord: [],
|
|
186
|
+ specialRecord: []
|
147
|
187
|
};
|
148
|
188
|
},
|
149
|
189
|
props: {
|
|
@@ -158,10 +198,14 @@ export default {
|
158
|
198
|
this.getPermission();
|
159
|
199
|
// this.summary = this.$store.getters.summary;
|
160
|
200
|
this.summary = getDataConfig("summary", "summary");
|
|
201
|
+ console.log("透后选叫", getDataConfig("summary", "summary"));
|
161
|
202
|
// console.log("this.summary",this.summary)
|
162
|
203
|
// this.teach = this.$store.getters.teach;
|
163
|
204
|
this.teach = getDataConfig("education", "education");
|
164
|
|
-
|
|
205
|
+ console.log("this", this.teach);
|
|
206
|
+ this.nursingRecord = getDataConfig("nursing_record", "nursing_record");
|
|
207
|
+ console.log("透析护理记录", this.nursingRecord);
|
|
208
|
+ this.specialRecord = getDataConfig("special_record", "special_record");
|
165
|
209
|
if (this.teach.length > 0) {
|
166
|
210
|
var tlen = this.teach.length;
|
167
|
211
|
for (let index = 0; index < tlen; index++) {
|
|
@@ -176,6 +220,24 @@ export default {
|
176
|
220
|
this.summaryObj[this.summary[index].id] = this.summary[index];
|
177
|
221
|
}
|
178
|
222
|
}
|
|
223
|
+ if (this.nursingRecord.length > 0) {
|
|
224
|
+ var tlen = this.nursingRecord.length;
|
|
225
|
+ for (let index = 0; index < tlen; index++) {
|
|
226
|
+ this.nursingRecord[index].name = this.nursingRecord[index].text;
|
|
227
|
+ this.summaryObj[this.nursingRecord[index].id] = this.nursingRecord[
|
|
228
|
+ index
|
|
229
|
+ ];
|
|
230
|
+ }
|
|
231
|
+ }
|
|
232
|
+ if (this.specialRecord.length > 0) {
|
|
233
|
+ var tlen = this.specialRecord.length;
|
|
234
|
+ for (let index = 0; index < tlen; index++) {
|
|
235
|
+ this.specialRecord[index].name = this.specialRecord[index].text;
|
|
236
|
+ this.summaryObj[this.specialRecord[index].id] = this.specialRecord[
|
|
237
|
+ index
|
|
238
|
+ ];
|
|
239
|
+ }
|
|
240
|
+ }
|
179
|
241
|
|
180
|
242
|
var date = this.$route.query && this.$route.query.date;
|
181
|
243
|
date *= 1000;
|
|
@@ -239,9 +301,30 @@ export default {
|
239
|
301
|
this.visibility = true;
|
240
|
302
|
this.propForm.list = [];
|
241
|
303
|
this.propForm.optionList = this.summary;
|
|
304
|
+ console.log("summary", this.summary);
|
242
|
305
|
this.propForm.isMultiple = 1;
|
243
|
306
|
this.propForm.selectId = this.dialysisSummary.xxjid;
|
244
|
307
|
break;
|
|
308
|
+ case "nursing_record":
|
|
309
|
+ this.propForm.type = 3;
|
|
310
|
+ this.isShowDialog = false;
|
|
311
|
+ this.propForm.title = "透析护理记录";
|
|
312
|
+ this.visibility = true;
|
|
313
|
+ this.propForm.list = [];
|
|
314
|
+ this.propForm.optionList = this.nursingRecord;
|
|
315
|
+ this.propForm.isMultiple = 1;
|
|
316
|
+ this.propForm.selectId = this.dialysisSummary.xxxjid;
|
|
317
|
+ break;
|
|
318
|
+ case "special_record":
|
|
319
|
+ this.propForm.type = 4;
|
|
320
|
+ this.isShowDialog = false;
|
|
321
|
+ this.propForm.title = "特殊记录";
|
|
322
|
+ this.visibility = true;
|
|
323
|
+ this.propForm.list = [];
|
|
324
|
+ this.propForm.optionList = this.specialRecord;
|
|
325
|
+ this.propForm.isMultiple = 1;
|
|
326
|
+ this.propForm.selectId = this.dialysisSummary.xxxxjid;
|
|
327
|
+ break;
|
245
|
328
|
}
|
246
|
329
|
},
|
247
|
330
|
menuCancle: function() {
|
|
@@ -272,6 +355,26 @@ export default {
|
272
|
355
|
].name;
|
273
|
356
|
}
|
274
|
357
|
break;
|
|
358
|
+ case 3:
|
|
359
|
+ if (val.selectId in this.summaryObj) {
|
|
360
|
+ var theValue = this.summaryObj[val.selectId].value;
|
|
361
|
+ this.dialysisSummaryNuserocoderChange(theValue);
|
|
362
|
+ this.dialysisSummary.xxxjid = val.selectId;
|
|
363
|
+ this.dialysisSummary.nursingRecordSelect = this.summaryObj[
|
|
364
|
+ val.selectId
|
|
365
|
+ ].name;
|
|
366
|
+ }
|
|
367
|
+ break;
|
|
368
|
+ case 4:
|
|
369
|
+ if (val.selectId in this.summaryObj) {
|
|
370
|
+ var theValue = this.summaryObj[val.selectId].value;
|
|
371
|
+ this.dialysisSummarySpecialcoderChange(theValue);
|
|
372
|
+ this.dialysisSummary.xxxxjid = val.selectId;
|
|
373
|
+ this.dialysisSummary.specialRecordSelect = this.summaryObj[
|
|
374
|
+ val.selectId
|
|
375
|
+ ].name;
|
|
376
|
+ }
|
|
377
|
+ break;
|
275
|
378
|
}
|
276
|
379
|
},
|
277
|
380
|
|
|
@@ -325,6 +428,50 @@ export default {
|
325
|
428
|
}
|
326
|
429
|
}
|
327
|
430
|
},
|
|
431
|
+ dialysisSummaryNuserocoderChange: function(values) {
|
|
432
|
+ if (this.dialysisSummary.nursing_record == null) {
|
|
433
|
+ this.dialysisSummary.nursing_record == "";
|
|
434
|
+ }
|
|
435
|
+ if (this.dialysisSummary.nursing_record == "") {
|
|
436
|
+ this.dialysisSummary.nursing_record = values;
|
|
437
|
+ } else {
|
|
438
|
+ if (this.dialysisSummary.nursing_record.indexOf(values) == -1) {
|
|
439
|
+ if (
|
|
440
|
+ this.dialysisSummary.nursing_record
|
|
441
|
+ .charAt(this.dialysisSummary.nursing_record.length - 1)
|
|
442
|
+ .indexOf("。") == -1
|
|
443
|
+ ) {
|
|
444
|
+ this.dialysisSummary.nursing_record =
|
|
445
|
+ this.dialysisSummary.nursing_record + "," + values;
|
|
446
|
+ } else {
|
|
447
|
+ this.dialysisSummary.nursing_record =
|
|
448
|
+ this.dialysisSummary.nursing_record + values;
|
|
449
|
+ }
|
|
450
|
+ }
|
|
451
|
+ }
|
|
452
|
+ },
|
|
453
|
+ dialysisSummarySpecialcoderChange: function(values) {
|
|
454
|
+ if (this.dialysisSummary.special_record == null) {
|
|
455
|
+ this.dialysisSummary.special_record == "";
|
|
456
|
+ }
|
|
457
|
+ if (this.dialysisSummary.special_record == "") {
|
|
458
|
+ this.dialysisSummary.special_record = values;
|
|
459
|
+ } else {
|
|
460
|
+ if (this.dialysisSummary.special_record.indexOf(values) == -1) {
|
|
461
|
+ if (
|
|
462
|
+ this.dialysisSummary.special_record
|
|
463
|
+ .charAt(this.dialysisSummary.special_record.length - 1)
|
|
464
|
+ .indexOf("。") == -1
|
|
465
|
+ ) {
|
|
466
|
+ this.dialysisSummary.special_record =
|
|
467
|
+ this.dialysisSummary.special_record + "," + values;
|
|
468
|
+ } else {
|
|
469
|
+ this.dialysisSummary.special_record =
|
|
470
|
+ this.dialysisSummary.special_record + values;
|
|
471
|
+ }
|
|
472
|
+ }
|
|
473
|
+ }
|
|
474
|
+ },
|
328
|
475
|
commitInfo: function() {
|
329
|
476
|
Toast.loading({ forbidClick: true, duration: 0 });
|
330
|
477
|
let ParamsQuery = this.dialysisSummary;
|