|
@@ -1,45 +1,48 @@
|
1
|
1
|
<template>
|
2
|
|
- <el-dialog title="接诊评估"
|
3
|
|
- class="newDialog"
|
4
|
|
- :modal-append-to-body="false"
|
5
|
|
- :visible.sync="isVisibility"
|
6
|
|
- width="854px">
|
|
2
|
+ <el-dialog
|
|
3
|
+ title="接诊评估"
|
|
4
|
+ class="newDialog"
|
|
5
|
+ :modal-append-to-body="false"
|
|
6
|
+ :visible.sync="isVisibility"
|
|
7
|
+ width="854px"
|
|
8
|
+ >
|
7
|
9
|
<div class="warnTxt" v-if="showTxt != ''">{{ showTxt }}</div>
|
8
|
10
|
<el-form :model="receiveTreatmentAsses" label-width="80px">
|
9
|
11
|
<el-form-item label="入室方式 : " v-if="isShow('入室方式')">
|
10
|
12
|
<!--<el-radio-group v-model="receiveTreatmentAsses.way">-->
|
11
|
|
- <el-radio v-for="(item,index) in way_arr" :key="index"
|
12
|
|
- :label="item.id" v-model="receiveTreatmentAsses.way">{{item.name}}
|
13
|
|
- </el-radio>
|
|
13
|
+ <el-radio
|
|
14
|
+ v-for="(item, index) in way_arr"
|
|
15
|
+ :key="index"
|
|
16
|
+ :label="item.id"
|
|
17
|
+ v-model="receiveTreatmentAsses.way"
|
|
18
|
+ >{{ item.name }}
|
|
19
|
+ </el-radio>
|
14
|
20
|
<!--</el-radio-group>-->
|
15
|
|
-
|
16
|
21
|
</el-form-item>
|
17
|
22
|
<el-form-item label="病人意识 : " v-if="isShow('病人意识')">
|
18
|
|
-
|
19
|
|
-
|
20
|
|
-
|
21
|
23
|
<!--<el-radio-group v-model="receiveTreatmentAsses.consciousness">-->
|
22
|
|
- <el-radio v-for="(item,index) in consciousness_arr" :key="index"
|
23
|
|
- :label="item.id" v-model="receiveTreatmentAsses.consciousness">{{item.name}}
|
24
|
|
- </el-radio>
|
|
24
|
+ <el-radio
|
|
25
|
+ v-for="(item, index) in consciousness_arr"
|
|
26
|
+ :key="index"
|
|
27
|
+ :label="item.id"
|
|
28
|
+ v-model="receiveTreatmentAsses.consciousness"
|
|
29
|
+ >{{ item.name }}
|
|
30
|
+ </el-radio>
|
25
|
31
|
<!--</el-radio-group>-->
|
26
|
32
|
|
27
|
|
-
|
28
|
|
-
|
29
|
33
|
<!--<el-radio v-model="receiveTreatmentAsses.consciousness" label="1">清醒</el-radio>-->
|
30
|
34
|
<!--<el-radio v-model="receiveTreatmentAsses.consciousness" label="2">嗜睡</el-radio>-->
|
31
|
35
|
<!--<el-radio v-model="receiveTreatmentAsses.consciousness" label="3">昏迷</el-radio>-->
|
32
|
36
|
<!--<el-radio v-model="receiveTreatmentAsses.consciousness" label="4">模糊</el-radio>-->
|
33
|
|
-
|
34
|
|
-
|
35
|
37
|
</el-form-item>
|
36
|
38
|
<el-form-item label="病人食欲 : " v-if="isShow('病人食欲')">
|
37
|
|
-
|
38
|
|
- <el-radio v-for="(item,index) in appetite_arr" :key="index"
|
39
|
|
- :label="item.id" v-model="receiveTreatmentAsses.appetite">{{item.name}}
|
40
|
|
- </el-radio>
|
41
|
|
-
|
42
|
|
-
|
|
39
|
+ <el-radio
|
|
40
|
+ v-for="(item, index) in appetite_arr"
|
|
41
|
+ :key="index"
|
|
42
|
+ :label="item.id"
|
|
43
|
+ v-model="receiveTreatmentAsses.appetite"
|
|
44
|
+ >{{ item.name }}
|
|
45
|
+ </el-radio>
|
43
|
46
|
|
44
|
47
|
<!--<el-radio v-model="receiveTreatmentAsses.appetite" label="1">正常</el-radio>-->
|
45
|
48
|
<!--<el-radio v-model="receiveTreatmentAsses.appetite" label="2">减退</el-radio>-->
|
|
@@ -48,23 +51,32 @@
|
48
|
51
|
<!--<el-radio v-model="receiveTreatmentAsses.appetite" label="5">腹泻</el-radio>-->
|
49
|
52
|
</el-form-item>
|
50
|
53
|
<el-form-item label="病人情况 : " v-if="isShow('病人情况')">
|
51
|
|
- <el-radio v-model="receiveTreatmentAsses.condition" label="1">住院</el-radio>
|
52
|
|
- <el-radio v-model="receiveTreatmentAsses.condition" label="2">门诊</el-radio>
|
53
|
|
- <el-radio v-model="receiveTreatmentAsses.condition" label="3">手术期</el-radio>
|
|
54
|
+ <el-radio v-model="receiveTreatmentAsses.condition" label="1"
|
|
55
|
+ >住院</el-radio
|
|
56
|
+ >
|
|
57
|
+ <el-radio v-model="receiveTreatmentAsses.condition" label="2"
|
|
58
|
+ >门诊</el-radio
|
|
59
|
+ >
|
|
60
|
+ <el-radio v-model="receiveTreatmentAsses.condition" label="3"
|
|
61
|
+ >手术期</el-radio
|
|
62
|
+ >
|
54
|
63
|
</el-form-item>
|
55
|
64
|
|
56
|
|
-
|
57
|
|
- <el-form-item label="住院号 : "
|
58
|
|
- v-if="this.receiveTreatmentAsses.condition == '1'">
|
|
65
|
+ <el-form-item
|
|
66
|
+ label="住院号 : "
|
|
67
|
+ v-if="this.receiveTreatmentAsses.condition == '1'"
|
|
68
|
+ >
|
59
|
69
|
<el-input v-model="receiveTreatmentAsses.admission_number"></el-input>
|
60
|
70
|
</el-form-item>
|
61
|
71
|
|
62
|
|
-
|
63
|
72
|
<el-form-item label="体位 : " v-if="isShow('体位')">
|
64
|
|
-
|
65
|
|
- <el-radio v-for="(item,index) in posture_arr" :key="index"
|
66
|
|
- :label="item.id" v-model="receiveTreatmentAsses.posture">{{item.name}}
|
67
|
|
- </el-radio>
|
|
73
|
+ <el-radio
|
|
74
|
+ v-for="(item, index) in posture_arr"
|
|
75
|
+ :key="index"
|
|
76
|
+ :label="item.id"
|
|
77
|
+ v-model="receiveTreatmentAsses.posture"
|
|
78
|
+ >{{ item.name }}
|
|
79
|
+ </el-radio>
|
68
|
80
|
<!--<el-radio v-model="receiveTreatmentAsses.posture" label="1">自动体位</el-radio>-->
|
69
|
81
|
<!--<el-radio v-model="receiveTreatmentAsses.posture" label="2">平卧位</el-radio>-->
|
70
|
82
|
<!--<el-radio v-model="receiveTreatmentAsses.posture" label="3">半卧位</el-radio>-->
|
|
@@ -73,291 +85,365 @@
|
73
|
85
|
</el-form-item>
|
74
|
86
|
|
75
|
87
|
<el-form-item label="病情: " v-if="isShow('病情')">
|
76
|
|
-
|
77
|
|
- <el-radio v-for="(item,index) in sick_condition_arr" :key="index"
|
78
|
|
- :label="item.id" v-model="receiveTreatmentAsses.sick_condition">{{item.name}}
|
79
|
|
- </el-radio>
|
|
88
|
+ <el-radio
|
|
89
|
+ v-for="(item, index) in sick_condition_arr"
|
|
90
|
+ :key="index"
|
|
91
|
+ :label="item.id"
|
|
92
|
+ v-model="receiveTreatmentAsses.sick_condition"
|
|
93
|
+ >{{ item.name }}
|
|
94
|
+ </el-radio>
|
80
|
95
|
<!--<el-radio v-model="receiveTreatmentAsses.sick_condition" label="1">一般</el-radio>-->
|
81
|
96
|
<!--<el-radio v-model="receiveTreatmentAsses.sick_condition" label="2">严重</el-radio>-->
|
82
|
97
|
<!--<el-radio v-model="receiveTreatmentAsses.sick_condition" label="3">危</el-radio>-->
|
83
|
|
-
|
84
|
98
|
</el-form-item>
|
85
|
99
|
|
86
|
|
- <el-form-item label-width="100px" label="其他病情 : "
|
87
|
|
- v-if="isShow('其他病情')">
|
88
|
|
- <el-input v-model="receiveTreatmentAsses.sick_condition_other"></el-input>
|
|
100
|
+ <el-form-item
|
|
101
|
+ label-width="100px"
|
|
102
|
+ label="其他病情 : "
|
|
103
|
+ v-if="isShow('其他病情')"
|
|
104
|
+ >
|
|
105
|
+ <el-input
|
|
106
|
+ v-model="receiveTreatmentAsses.sick_condition_other"
|
|
107
|
+ ></el-input>
|
89
|
108
|
</el-form-item>
|
90
|
109
|
|
91
|
|
- <el-form-item label-width="150px" label="跌倒风险评估评分 : "
|
92
|
|
- v-if="isShow('跌倒风险评估评分')">
|
93
|
|
- <el-input v-model="receiveTreatmentAsses.score" style="width: 100px"></el-input>
|
|
110
|
+ <el-form-item
|
|
111
|
+ label-width="150px"
|
|
112
|
+ label="跌倒风险评估评分 : "
|
|
113
|
+ v-if="isShow('跌倒风险评估评分')"
|
|
114
|
+ >
|
|
115
|
+ <el-input
|
|
116
|
+ v-model="receiveTreatmentAsses.score"
|
|
117
|
+ style="width: 100px"
|
|
118
|
+ ></el-input>
|
94
|
119
|
</el-form-item>
|
95
|
120
|
|
96
|
|
-
|
97
|
121
|
<el-form-item label="风险程度: " v-if="isShow('风险程度')">
|
98
|
|
- <el-radio v-model="receiveTreatmentAsses.danger_level" label="1">无</el-radio>
|
99
|
|
- <el-radio v-model="receiveTreatmentAsses.danger_level" label="2">低风险</el-radio>
|
100
|
|
- <el-radio v-model="receiveTreatmentAsses.danger_level" label="3">中度风险</el-radio>
|
101
|
|
- <el-radio v-model="receiveTreatmentAsses.danger_level" label="4">高风险</el-radio>
|
102
|
|
-
|
|
122
|
+ <el-radio v-model="receiveTreatmentAsses.danger_level" label="1"
|
|
123
|
+ >无</el-radio
|
|
124
|
+ >
|
|
125
|
+ <el-radio v-model="receiveTreatmentAsses.danger_level" label="2"
|
|
126
|
+ >低风险</el-radio
|
|
127
|
+ >
|
|
128
|
+ <el-radio v-model="receiveTreatmentAsses.danger_level" label="3"
|
|
129
|
+ >中度风险</el-radio
|
|
130
|
+ >
|
|
131
|
+ <el-radio v-model="receiveTreatmentAsses.danger_level" label="4"
|
|
132
|
+ >高风险</el-radio
|
|
133
|
+ >
|
103
|
134
|
</el-form-item>
|
104
|
135
|
|
105
|
|
-
|
106
|
|
- <el-form-item label-width="150px" label="跌倒风险预防措施: " v-if="isShow('跌倒风险预防措施')">
|
|
136
|
+ <el-form-item
|
|
137
|
+ label-width="150px"
|
|
138
|
+ label="跌倒风险预防措施: "
|
|
139
|
+ v-if="isShow('跌倒风险预防措施')"
|
|
140
|
+ >
|
107
|
141
|
<!--<el-radio v-model="receiveTreatmentAsses.precaution" label="1">镇定剂</el-radio>-->
|
108
|
142
|
<!--<el-radio v-model="receiveTreatmentAsses.precaution" label="2">约束带</el-radio>-->
|
109
|
143
|
<!--<el-radio v-model="receiveTreatmentAsses.precaution" label="3">床栏</el-radio>-->
|
110
|
144
|
<!--<el-radio v-model="receiveTreatmentAsses.precaution" label="4">加强宣教</el-radio>-->
|
111
|
145
|
|
112
|
|
-
|
113
|
|
- <el-radio v-for="(item,index) in precaution_arr" :key="index"
|
114
|
|
- :label="item.id" v-model="receiveTreatmentAsses.precaution">{{item.name}}
|
115
|
|
- </el-radio>
|
|
146
|
+ <el-radio
|
|
147
|
+ v-for="(item, index) in precaution_arr"
|
|
148
|
+ :key="index"
|
|
149
|
+ :label="item.id"
|
|
150
|
+ v-model="receiveTreatmentAsses.precaution"
|
|
151
|
+ >{{ item.name }}
|
|
152
|
+ </el-radio>
|
116
|
153
|
</el-form-item>
|
117
|
|
- <el-form-item label-width="200px" label="其他跌倒风险预防措施 : "
|
118
|
|
- v-if="isShow('其他跌倒风险预防措施')">
|
|
154
|
+ <el-form-item
|
|
155
|
+ label-width="200px"
|
|
156
|
+ label="其他跌倒风险预防措施 : "
|
|
157
|
+ v-if="isShow('其他跌倒风险预防措施')"
|
|
158
|
+ >
|
119
|
159
|
<el-input v-model="receiveTreatmentAsses.precaution_other"></el-input>
|
120
|
160
|
</el-form-item>
|
121
|
161
|
|
122
|
|
-
|
123
|
162
|
<el-form-item label="摄入量: " v-if="isShow('摄入量')">
|
124
|
163
|
<!--<el-radio v-model="receiveTreatmentAsses.intake" label="1">正常</el-radio>-->
|
125
|
164
|
<!--<el-radio v-model="receiveTreatmentAsses.intake" label="2">减少</el-radio>-->
|
126
|
165
|
|
127
|
|
- <el-radio v-for="(item,index) in intake_arr" :key="index"
|
128
|
|
- :label="item.id" v-model="receiveTreatmentAsses.intake">{{item.name}}
|
129
|
|
- </el-radio>
|
130
|
|
-
|
131
|
|
-
|
|
166
|
+ <el-radio
|
|
167
|
+ v-for="(item, index) in intake_arr"
|
|
168
|
+ :key="index"
|
|
169
|
+ :label="item.id"
|
|
170
|
+ v-model="receiveTreatmentAsses.intake"
|
|
171
|
+ >{{ item.name }}
|
|
172
|
+ </el-radio>
|
132
|
173
|
</el-form-item>
|
133
|
174
|
<el-form-item label="营养状况: " v-if="isShow('营养状况')">
|
134
|
175
|
<!--<el-radio v-model="receiveTreatmentAsses.nutrition" label="1">正常</el-radio>-->
|
135
|
176
|
<!--<el-radio v-model="receiveTreatmentAsses.nutrition" label="2">营养不良</el-radio>-->
|
136
|
177
|
|
137
|
|
- <el-radio v-for="(item,index) in nutrition_arr" :key="index"
|
138
|
|
- :label="item.id" v-model="receiveTreatmentAsses.nutrition">{{item.name}}
|
139
|
|
- </el-radio>
|
140
|
|
-
|
141
|
|
-
|
|
178
|
+ <el-radio
|
|
179
|
+ v-for="(item, index) in nutrition_arr"
|
|
180
|
+ :key="index"
|
|
181
|
+ :label="item.id"
|
|
182
|
+ v-model="receiveTreatmentAsses.nutrition"
|
|
183
|
+ >{{ item.name }}
|
|
184
|
+ </el-radio>
|
142
|
185
|
</el-form-item>
|
143
|
186
|
<el-form-item label="心理评估: " v-if="isShow('心理评估')">
|
144
|
|
- <el-radio v-model="receiveTreatmentAsses.psychological_assessment" label="1">正常</el-radio>
|
145
|
|
- <el-radio v-model="receiveTreatmentAsses.psychological_assessment" label="2">异常</el-radio>
|
|
187
|
+ <el-radio
|
|
188
|
+ v-model="receiveTreatmentAsses.psychological_assessment"
|
|
189
|
+ label="1"
|
|
190
|
+ >正常</el-radio
|
|
191
|
+ >
|
|
192
|
+ <el-radio
|
|
193
|
+ v-model="receiveTreatmentAsses.psychological_assessment"
|
|
194
|
+ label="2"
|
|
195
|
+ >异常</el-radio
|
|
196
|
+ >
|
146
|
197
|
</el-form-item>
|
147
|
|
- <el-form-item label-width="150px" label="心理评估异常情况 : "
|
148
|
|
- v-if="isShow('心理评估异常情况')&&receiveTreatmentAsses.psychological_assessment == 2">
|
149
|
|
- <el-input v-model="receiveTreatmentAsses.psychological_assessment_other"></el-input>
|
|
198
|
+ <el-form-item
|
|
199
|
+ label-width="150px"
|
|
200
|
+ label="心理评估异常情况 : "
|
|
201
|
+ v-if="
|
|
202
|
+ isShow('心理评估异常情况') &&
|
|
203
|
+ receiveTreatmentAsses.psychological_assessment == 2
|
|
204
|
+ "
|
|
205
|
+ >
|
|
206
|
+ <el-input
|
|
207
|
+ v-model="receiveTreatmentAsses.psychological_assessment_other"
|
|
208
|
+ ></el-input>
|
150
|
209
|
</el-form-item>
|
151
|
210
|
|
152
|
|
- <el-form-item label-width="150px" label="其他心理评估 : "
|
153
|
|
- v-if="isShow('其他心理评估')">
|
154
|
|
- <el-input v-model="receiveTreatmentAsses.psychological_other"></el-input>
|
|
211
|
+ <el-form-item
|
|
212
|
+ label-width="150px"
|
|
213
|
+ label="其他心理评估 : "
|
|
214
|
+ v-if="isShow('其他心理评估')"
|
|
215
|
+ >
|
|
216
|
+ <el-input
|
|
217
|
+ v-model="receiveTreatmentAsses.psychological_other"
|
|
218
|
+ ></el-input>
|
155
|
219
|
</el-form-item>
|
156
|
|
-
|
157
|
220
|
</el-form>
|
158
|
221
|
<div slot="footer" class="dialog-footer">
|
159
|
222
|
<el-button @click="handleCancle">取 消</el-button>
|
160
|
|
- <el-button type="primary" v-if="hasPermission" @click="handleComfirm">保 存</el-button>
|
|
223
|
+ <el-button type="primary" v-if="hasPermission" @click="handleComfirm"
|
|
224
|
+ >保 存</el-button
|
|
225
|
+ >
|
161
|
226
|
</div>
|
162
|
227
|
</el-dialog>
|
163
|
228
|
</template>
|
164
|
229
|
|
165
|
230
|
<script>
|
166
|
|
- import { postAccepts } from '@/api/dialysis'
|
167
|
|
- import { uParseTime } from '@/utils/tools'
|
168
|
|
- import store from '@/store'
|
169
|
|
- import { getDataConfig } from '@/utils/data'
|
170
|
|
-
|
171
|
|
- import request from '@/utils/request'
|
172
|
|
-
|
173
|
|
- export default {
|
174
|
|
- name: 'acceptsTreatmentDialog',
|
175
|
|
- data() {
|
176
|
|
- return {
|
177
|
|
- showTxt:'',
|
178
|
|
- hasPermission:true,
|
179
|
|
- isVisibility: false,
|
180
|
|
- record_date: '',
|
181
|
|
- way_arr: [],
|
182
|
|
- consciousness_arr: [],
|
183
|
|
- appetite_arr: [],
|
184
|
|
- posture_arr: [],
|
185
|
|
- sick_condition_arr: [],
|
186
|
|
- precaution_arr: [],
|
187
|
|
- intake_arr: [],
|
188
|
|
- nutrition_arr: [],
|
189
|
|
- receiveTreatmentAsses: {
|
190
|
|
- way: '1',
|
191
|
|
- consciousness: '1',
|
192
|
|
- appetite: '1',
|
193
|
|
- condition: '1',
|
194
|
|
- posture: '1',
|
195
|
|
- sick_condition: '1',
|
196
|
|
- danger_level: '1',
|
197
|
|
- intake: '1',
|
198
|
|
- nutrition: '1',
|
199
|
|
- psychological_assessment: '1',
|
200
|
|
- psychological_assessment_other: '',
|
201
|
|
- sick_condition_other: '',
|
202
|
|
- score: '',
|
203
|
|
- psychological_other: '',
|
204
|
|
- precaution: '1',
|
205
|
|
- precaution_other: '',
|
206
|
|
- admission_number:'',
|
207
|
|
-
|
208
|
|
-
|
209
|
|
-
|
|
231
|
+import { postAccepts } from "@/api/dialysis";
|
|
232
|
+import { uParseTime } from "@/utils/tools";
|
|
233
|
+import store from "@/store";
|
|
234
|
+import { getDataConfig } from "@/utils/data";
|
|
235
|
+
|
|
236
|
+import request from "@/utils/request";
|
|
237
|
+
|
|
238
|
+export default {
|
|
239
|
+ name: "acceptsTreatmentDialog",
|
|
240
|
+ data() {
|
|
241
|
+ return {
|
|
242
|
+ showTxt: "",
|
|
243
|
+ hasPermission: true,
|
|
244
|
+ isVisibility: false,
|
|
245
|
+ record_date: "",
|
|
246
|
+ way_arr: [],
|
|
247
|
+ consciousness_arr: [],
|
|
248
|
+ appetite_arr: [],
|
|
249
|
+ posture_arr: [],
|
|
250
|
+ sick_condition_arr: [],
|
|
251
|
+ precaution_arr: [],
|
|
252
|
+ intake_arr: [],
|
|
253
|
+ nutrition_arr: [],
|
|
254
|
+ receiveTreatmentAsses: {
|
|
255
|
+ way: "1",
|
|
256
|
+ consciousness: "1",
|
|
257
|
+ appetite: "1",
|
|
258
|
+ condition: "1",
|
|
259
|
+ posture: "1",
|
|
260
|
+ sick_condition: "1",
|
|
261
|
+ danger_level: "1",
|
|
262
|
+ intake: "1",
|
|
263
|
+ nutrition: "1",
|
|
264
|
+ psychological_assessment: "1",
|
|
265
|
+ psychological_assessment_other: "",
|
|
266
|
+ sick_condition_other: "",
|
|
267
|
+ score: "",
|
|
268
|
+ psychological_other: "",
|
|
269
|
+ precaution: "1",
|
|
270
|
+ precaution_other: "",
|
|
271
|
+ admission_number: ""
|
|
272
|
+ }
|
|
273
|
+ };
|
|
274
|
+ },
|
|
275
|
+ methods: {
|
|
276
|
+ isShow(name) {
|
|
277
|
+ var filedList = store.getters.xt_user.fileds;
|
|
278
|
+ for (let i = 0; i < filedList.length; i++) {
|
|
279
|
+ if (
|
|
280
|
+ filedList[i].module == 2 &&
|
|
281
|
+ filedList[i].filed_name_cn == name &&
|
|
282
|
+ filedList[i].is_show == 1
|
|
283
|
+ ) {
|
|
284
|
+ return true;
|
210
|
285
|
}
|
211
|
286
|
}
|
|
287
|
+ return false;
|
212
|
288
|
},
|
213
|
|
- methods: {
|
214
|
|
- isShow(name) {
|
215
|
|
- var filedList = store.getters.xt_user.fileds
|
216
|
|
- for (let i = 0; i < filedList.length; i++) {
|
217
|
|
- if (filedList[i].module == 2 && filedList[i].filed_name_cn == name && filedList[i].is_show == 1) {
|
218
|
|
- return true
|
219
|
|
- }
|
|
289
|
+ show(accepts) {
|
|
290
|
+ this.accepts = accepts;
|
|
291
|
+ console.log("accepts", accepts);
|
|
292
|
+ this.getPermission();
|
|
293
|
+ for (var index in this.receiveTreatmentAsses) {
|
|
294
|
+ if (
|
|
295
|
+ index == "condition" ||
|
|
296
|
+ index == "danger_level" ||
|
|
297
|
+ index == "psychological_assessment"
|
|
298
|
+ ) {
|
|
299
|
+ this.receiveTreatmentAsses[index] =
|
|
300
|
+ this.receiver_treatment_access[index] + "";
|
|
301
|
+ } else {
|
|
302
|
+ this.receiveTreatmentAsses[index] = this.receiver_treatment_access[
|
|
303
|
+ index
|
|
304
|
+ ];
|
220
|
305
|
}
|
221
|
|
- return false
|
222
|
|
- },
|
223
|
|
- show(accepts) {
|
224
|
|
- this.accepts = accepts
|
225
|
|
- console.log("accepts",accepts)
|
226
|
|
- this.getPermission()
|
227
|
|
- for (var index in this.receiveTreatmentAsses) {
|
228
|
|
- if (index == 'condition' || index == 'danger_level' || index == 'psychological_assessment') {
|
229
|
|
- this.receiveTreatmentAsses[index] = this.receiver_treatment_access[index] + ''
|
230
|
|
- } else {
|
231
|
|
- this.receiveTreatmentAsses[index] = this.receiver_treatment_access[index]
|
232
|
|
- }
|
|
306
|
+ }
|
|
307
|
+ this.isVisibility = true;
|
|
308
|
+ },
|
|
309
|
+ hide() {
|
|
310
|
+ this.isVisibility = false;
|
|
311
|
+ },
|
|
312
|
+ handleCancle: function() {
|
|
313
|
+ this.isVisibility = false;
|
|
314
|
+ },
|
|
315
|
+ handleComfirm: function() {
|
|
316
|
+ let ParamsQuery = this.receiveTreatmentAsses;
|
|
317
|
+ ParamsQuery["patient"] = this.patient.id;
|
|
318
|
+ ParamsQuery["record_date"] = this.record_date;
|
|
319
|
+ console.log(this.receiver_treatment_access);
|
|
320
|
+ ParamsQuery["mode"] = "1";
|
|
321
|
+ if (this.receiver_treatment_access.id > 0) {
|
|
322
|
+ ParamsQuery["mode"] = "2";
|
|
323
|
+ if (
|
|
324
|
+ this.$store.getters.xt_user.user.id !=
|
|
325
|
+ this.receiver_treatment_access.creater
|
|
326
|
+ ) {
|
|
327
|
+ ParamsQuery["mode"] = "3";
|
233
|
328
|
}
|
234
|
|
- this.isVisibility = true
|
235
|
|
- },
|
236
|
|
- hide() {
|
237
|
|
- this.isVisibility = false
|
238
|
|
- },
|
239
|
|
- handleCancle: function() {
|
240
|
|
- this.isVisibility = false
|
|
329
|
+ }
|
241
|
330
|
|
242
|
|
- },
|
243
|
|
- handleComfirm: function() {
|
244
|
|
- let ParamsQuery = this.receiveTreatmentAsses
|
245
|
|
- ParamsQuery['patient'] = this.patient.id
|
246
|
|
- ParamsQuery['record_date'] = this.record_date
|
247
|
|
- console.log(this.receiver_treatment_access)
|
248
|
|
- ParamsQuery['mode'] = "1"
|
249
|
|
- if(this.receiver_treatment_access.id > 0){
|
250
|
|
- ParamsQuery['mode'] = "2"
|
251
|
|
- if(this.$store.getters.xt_user.user.id != this.receiver_treatment_access.creater){
|
252
|
|
- ParamsQuery['mode'] = "3"
|
|
331
|
+ postAccepts(ParamsQuery).then(response => {
|
|
332
|
+ if (response.data.state == 0) {
|
|
333
|
+ this.$message.error(response.data.msg);
|
|
334
|
+ return false;
|
|
335
|
+ } else {
|
|
336
|
+ this.$notify({
|
|
337
|
+ title: "成功",
|
|
338
|
+ message: "提交成功",
|
|
339
|
+ type: "success",
|
|
340
|
+ duration: 2000
|
|
341
|
+ });
|
|
342
|
+
|
|
343
|
+ let receive_treatment_asses_resp =
|
|
344
|
+ response.data.data.receiveTreatmentAsses;
|
|
345
|
+ //prop
|
|
346
|
+ var receiver_treatment_access = this.receiver_treatment_access;
|
|
347
|
+ for (var index in receive_treatment_asses_resp) {
|
|
348
|
+ // receiver_treatment_access[index] = receive_treatment_asses_resp[index];
|
|
349
|
+ this.$set(
|
|
350
|
+ receiver_treatment_access,
|
|
351
|
+ index,
|
|
352
|
+ receive_treatment_asses_resp[index]
|
|
353
|
+ );
|
253
|
354
|
}
|
|
355
|
+ this.hide();
|
254
|
356
|
}
|
255
|
|
-
|
256
|
|
- postAccepts(ParamsQuery).then(response => {
|
257
|
|
- if (response.data.state == 0) {
|
258
|
|
- this.$message.error(response.data.msg)
|
259
|
|
- return false
|
260
|
|
- } else {
|
261
|
|
- this.$notify({
|
262
|
|
- title: '成功',
|
263
|
|
- message: '提交成功',
|
264
|
|
- type: 'success',
|
265
|
|
- duration: 2000
|
266
|
|
- })
|
267
|
|
-
|
268
|
|
- let receive_treatment_asses_resp = response.data.data.receiveTreatmentAsses
|
269
|
|
- //prop
|
270
|
|
- var receiver_treatment_access = this.receiver_treatment_access
|
271
|
|
- for (var index in receive_treatment_asses_resp) {
|
272
|
|
- // receiver_treatment_access[index] = receive_treatment_asses_resp[index];
|
273
|
|
- this.$set(receiver_treatment_access, index, receive_treatment_asses_resp[index])
|
274
|
|
- }
|
275
|
|
- this.hide()
|
|
357
|
+ });
|
|
358
|
+ },
|
|
359
|
+ getPermission() {
|
|
360
|
+ request
|
|
361
|
+ .get("/api/func_per/get", {
|
|
362
|
+ params: {
|
|
363
|
+ create_url: "/api/dialysis/accepts?mode=1",
|
|
364
|
+ modify_url: "/api/dialysis/accepts?mode=2",
|
|
365
|
+ modify_other_url: "/api/dialysis/accepts?mode=3",
|
|
366
|
+ module: 2
|
276
|
367
|
}
|
277
|
368
|
})
|
278
|
|
-
|
279
|
|
- },
|
280
|
|
- getPermission(){
|
281
|
|
- request.get("/api/func_per/get",{
|
282
|
|
- params:{
|
283
|
|
- create_url:"/api/dialysis/accepts?mode=1",
|
284
|
|
- modify_url:"/api/dialysis/accepts?mode=2",
|
285
|
|
- modify_other_url:"/api/dialysis/accepts?mode=3",
|
286
|
|
- module:2
|
287
|
|
- }
|
288
|
|
- }).then(res => {
|
289
|
|
- console.log(res)
|
290
|
|
- console.log("接诊",this.accepts)
|
291
|
|
- if(res.data.state == 0){
|
292
|
|
- this.hasPermission = false
|
293
|
|
- }else if(res.data.state == 1){
|
294
|
|
- if(this.accepts.id != "" && this.accepts.creater != 0){//有数据
|
295
|
|
- if(this.accepts.creater == this.$store.getters.xt_user.user.id){//创建人是自己
|
296
|
|
- if(res.data.data.is_has_modify == false){
|
297
|
|
- this.hasPermission = false
|
298
|
|
- this.showTxt = "你没有修改接诊评估权限"
|
|
369
|
+ .then(res => {
|
|
370
|
+ console.log(res);
|
|
371
|
+ console.log("接诊", this.accepts);
|
|
372
|
+ if (res.data.state == 0) {
|
|
373
|
+ this.hasPermission = false;
|
|
374
|
+ } else if (res.data.state == 1) {
|
|
375
|
+ if (this.accepts.id != "" && this.accepts.creater != 0) {
|
|
376
|
+ //有数据
|
|
377
|
+ if (this.accepts.creater == this.$store.getters.xt_user.user.id) {
|
|
378
|
+ //创建人是自己
|
|
379
|
+ if (res.data.data.is_has_modify == false) {
|
|
380
|
+ this.hasPermission = false;
|
|
381
|
+ this.showTxt = "你没有修改接诊评估权限";
|
|
382
|
+ }
|
|
383
|
+ } else {
|
|
384
|
+ //创建人不是自己
|
|
385
|
+ if (res.data.data.is_has_modify_other == false) {
|
|
386
|
+ this.hasPermission = false;
|
|
387
|
+ this.showTxt = "你没有修改他人接诊评估权限";
|
|
388
|
+ }
|
299
|
389
|
}
|
300
|
|
- }else{//创建人不是自己
|
301
|
|
- if(res.data.data.is_has_modify_other == false){
|
302
|
|
- this.hasPermission = false
|
303
|
|
- this.showTxt = "你没有修改他人接诊评估权限"
|
|
390
|
+ } else if (this.accepts.id == "" || this.accepts.creater == 0) {
|
|
391
|
+ if (res.data.data.is_has_create == false) {
|
|
392
|
+ this.hasPermission = false;
|
|
393
|
+ this.showTxt = "你没有新增接诊评估权限";
|
304
|
394
|
}
|
305
|
395
|
}
|
306
|
|
- }else if(this.accepts.id == "" || this.accepts.creater == 0){
|
307
|
|
- if(res.data.data.is_has_create == false){
|
308
|
|
- this.hasPermission = false
|
309
|
|
- this.showTxt = "你没有新增接诊评估权限"
|
310
|
|
- }
|
311
|
396
|
}
|
312
|
|
- }
|
313
|
|
- })
|
|
397
|
+ });
|
314
|
398
|
}
|
|
399
|
+ },
|
|
400
|
+ props: {
|
|
401
|
+ receiver_treatment_access: {
|
|
402
|
+ // 双人核对
|
|
403
|
+ type: Object,
|
|
404
|
+ default: () => {
|
|
405
|
+ return { id: 0 };
|
|
406
|
+ }
|
315
|
407
|
},
|
316
|
|
- props: {
|
317
|
|
- receiver_treatment_access: { // 双人核对
|
318
|
|
- type: Object,
|
319
|
|
- default: () => {
|
320
|
|
- return { id: 0 }
|
321
|
|
- }
|
322
|
|
- },
|
323
|
|
- patient: { // 患者信息
|
324
|
|
- type: Object,
|
325
|
|
- default: () => {
|
326
|
|
- return { id: 0 }
|
327
|
|
- }
|
|
408
|
+ patient: {
|
|
409
|
+ // 患者信息
|
|
410
|
+ type: Object,
|
|
411
|
+ default: () => {
|
|
412
|
+ return { id: 0 };
|
328
|
413
|
}
|
329
|
|
- }, watch: {
|
330
|
|
- isVisibility(val) {
|
331
|
|
-
|
332
|
|
- },
|
333
|
|
- 'receiver_treatment_access.id': function() {
|
334
|
|
- if (this.receiver_treatment_access.id > 0) {
|
335
|
|
- for (var index in this.receiveTreatmentAsses) {
|
336
|
|
- this.receiveTreatmentAsses[index] = this.receiver_treatment_access[index]
|
337
|
|
- }
|
|
414
|
+ }
|
|
415
|
+ },
|
|
416
|
+ watch: {
|
|
417
|
+ isVisibility(val) {},
|
|
418
|
+ "receiver_treatment_access.id": function() {
|
|
419
|
+ if (this.receiver_treatment_access.id > 0) {
|
|
420
|
+ for (var index in this.receiveTreatmentAsses) {
|
|
421
|
+ this.receiveTreatmentAsses[index] = this.receiver_treatment_access[
|
|
422
|
+ index
|
|
423
|
+ ];
|
338
|
424
|
}
|
339
|
425
|
}
|
340
|
|
- }, created() {
|
341
|
|
- console.log("接诊评估",this.receiver_treatment_access)
|
342
|
|
- var date = this.$route.query && this.$route.query.date
|
343
|
|
- this.record_date = uParseTime(date, '{y}-{m}-{d}')
|
344
|
|
-
|
345
|
|
- this.way_arr = getDataConfig('hemodialysis', 'way')
|
346
|
|
- this.consciousness_arr = getDataConfig('hemodialysis', 'consciousness')
|
347
|
|
- this.appetite_arr = getDataConfig('hemodialysis', 'appetite')
|
348
|
|
- this.posture_arr = getDataConfig('hemodialysis', 'posture')
|
349
|
|
- this.sick_condition_arr = getDataConfig('hemodialysis', 'sick_condition')
|
350
|
|
- this.precaution_arr = getDataConfig('hemodialysis', 'precaution')
|
351
|
|
- this.intake_arr = getDataConfig('hemodialysis', 'intake')
|
352
|
|
- this.nutrition_arr = getDataConfig('hemodialysis', 'nutrition')
|
353
|
|
-
|
354
|
426
|
}
|
355
|
|
-
|
|
427
|
+ },
|
|
428
|
+ created() {
|
|
429
|
+ console.log("接诊评估", this.receiver_treatment_access);
|
|
430
|
+ var date = this.$route.query && this.$route.query.date;
|
|
431
|
+ this.record_date = uParseTime(date, "{y}-{m}-{d}");
|
|
432
|
+
|
|
433
|
+ this.way_arr = getDataConfig("hemodialysis", "way");
|
|
434
|
+ this.consciousness_arr = getDataConfig("hemodialysis", "consciousness");
|
|
435
|
+ this.appetite_arr = getDataConfig("hemodialysis", "appetite");
|
|
436
|
+ this.posture_arr = getDataConfig("hemodialysis", "posture");
|
|
437
|
+ this.sick_condition_arr = getDataConfig("hemodialysis", "sick_condition");
|
|
438
|
+ this.precaution_arr = getDataConfig("hemodialysis", "precaution");
|
|
439
|
+ this.intake_arr = getDataConfig("hemodialysis", "intake");
|
|
440
|
+ this.nutrition_arr = getDataConfig("hemodialysis", "nutrition");
|
356
|
441
|
}
|
|
442
|
+};
|
357
|
443
|
</script>
|
358
|
444
|
|
359
|
445
|
<style scoped>
|
360
|
|
-.warnTxt{
|
|
446
|
+.warnTxt {
|
361
|
447
|
text-align: center;
|
362
|
448
|
margin: 0 auto;
|
363
|
449
|
background: #faa331;
|
|
@@ -365,12 +451,12 @@
|
365
|
451
|
padding: 10px 20px;
|
366
|
452
|
border-radius: 4px;
|
367
|
453
|
margin-bottom: 10px;
|
368
|
|
- color:#fff;
|
|
454
|
+ color: #fff;
|
369
|
455
|
}
|
370
|
456
|
</style>
|
371
|
457
|
<style lang="scss">
|
372
|
|
-.newDialog{
|
373
|
|
- .el-dialog__body{
|
|
458
|
+.newDialog {
|
|
459
|
+ .el-dialog__body {
|
374
|
460
|
padding: 10px 20px 30px;
|
375
|
461
|
}
|
376
|
462
|
}
|