Преглед изворни кода

更新龙岗二院需求问题

XMLWAN пре 5 година
родитељ
комит
0b6b9de915

+ 342 - 256
src/xt_pages/dialysis/details/dialog/acceptsTreatmentDialog.vue Прегледај датотеку

@@ -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
 }

+ 90 - 122
src/xt_pages/dialysis/template/DialysisPrintOrderEight.vue Прегледај датотеку

@@ -464,83 +464,27 @@
464 464
         <tr>
465 465
           <td colspan="8" style="text-align:left;">
466 466
             <span style="display:inline-block;margin-left:15px;">
467
-              血管通路:
468
-              <label-box
469
-                showValue="正常"
470
-                :isChecked="
471
-                  predialysis.blood_access_internal_fistula &&
472
-                  predialysis.blood_access_internal_fistula.indexOf('正常') > -1
473
-                    ? true
474
-                    : false
475
-                "
476
-              ></label-box>
477
-              <label-box
478
-                showValue="震颤"
479
-                :isChecked="
480
-                  predialysis.blood_access_internal_fistula &&
481
-                  predialysis.blood_access_internal_fistula.indexOf('震颤') > -1
482
-                    ? true
483
-                    : false
484
-                "
485
-              ></label-box>
486
-              <label-box
487
-                showValue="堵塞"
488
-                :isChecked="
489
-                  predialysis.blood_access_internal_fistula &&
490
-                  predialysis.blood_access_internal_fistula.indexOf('堵塞') > -1
491
-                    ? true
492
-                    : false
493
-                "
494
-              ></label-box>
495
-              <label-box
496
-                showValue="血肿"
497
-                :isChecked="
498
-                  predialysis.blood_access_internal_fistula &&
499
-                  predialysis.blood_access_internal_fistula.indexOf('血肿') > -1
500
-                    ? true
501
-                    : false
502
-                "
503
-              ></label-box>
504
-              <label-box
505
-                showValue="淤血"
506
-                :isChecked="
507
-                  predialysis.blood_access_internal_fistula &&
508
-                  predialysis.blood_access_internal_fistula.indexOf('淤血') > -1
509
-                    ? true
510
-                    : false
511
-                "
512
-              ></label-box>
513
-              <label-box
514
-                showValue="感染"
515
-                :isChecked="
516
-                  predialysis.blood_access_internal_fistula &&
517
-                  predialysis.blood_access_internal_fistula.indexOf('感染') > -1
518
-                    ? true
519
-                    : false
520
-                "
521
-              ></label-box>
522
-              <label-box
523
-                showValue="自体内瘘"
524
-                :isChecked="
525
-                  predialysis.blood_access_internal_fistula &&
526
-                  predialysis.blood_access_internal_fistula.indexOf(
527
-                    '自体内瘘'
528
-                  ) > -1
467
+              血管通路:内瘘波动及震颤: (&nbsp;<check-box
468
+                v-for="(item, index) in arr"
469
+                :key="index"
470
+                :text="item.name"
471
+                :checked="
472
+                  predialysis.blood_access_part_opera_id == item.id
529 473
                     ? true
530 474
                     : false
531 475
                 "
532
-              ></label-box>
533
-              <label-box
534
-                showValue="人工血管内瘘"
535
-                :isChecked="
536
-                  predialysis.blood_access_internal_fistula &&
537
-                  predialysis.blood_access_internal_fistula.indexOf(
538
-                    '人工血管内瘘'
539
-                  ) > -1
476
+              ></check-box
477
+              >)
478
+              <check-box
479
+                v-for="(item, index) in arrtwo"
480
+                :key="index"
481
+                :text="item.name"
482
+                :checked="
483
+                  predialysis.blood_access_part_opera_id == item.id
540 484
                     ? true
541 485
                     : false
542 486
                 "
543
-              ></label-box>
487
+              ></check-box>
544 488
             </span>
545 489
           </td>
546 490
         </tr>
@@ -549,75 +493,59 @@
549 493
             <span style="display:inline-block;margin-left:15px;"
550 494
               >中心静脉导管:</span
551 495
             >
496
+            (部位:{{ getPartName(predialysis.blood_access_part_id) }})
552 497
             <label-box
553
-              showValue="正常"
498
+              showValue="长期"
554 499
               :isChecked="
555
-                predialysis.ductus_arantii.indexOf('正常') > -1 ? true : false
500
+                predialysis.venous_catheterization == 1 ? true : false
556 501
               "
557 502
             ></label-box>
558 503
             <label-box
559
-              showValue="不畅"
504
+              showValue="临时"
560 505
               :isChecked="
561
-                predialysis.ductus_arantii.indexOf('不畅') > -1 ? true : false
506
+                predialysis.venous_catheterization == 2 ? true : false
562 507
               "
563 508
             ></label-box>
509
+            &nbsp;&nbsp; 感染:
564 510
             <label-box
565
-              showValue="血流不足"
566
-              :isChecked="
567
-                predialysis.ductus_arantii.indexOf('血流不足') > -1
568
-                  ? true
569
-                  : false
570
-              "
571
-            ></label-box
572
-            >(
573
-            <label-box
574
-              showValue="正接"
575
-              :isChecked="
576
-                predialysis.ductus_arantii.indexOf('正接') > -1 ? true : false
577
-              "
578
-            ></label-box
579
-            >/
580
-            <label-box
581
-              showValue="反接"
511
+              showValue="有"
582 512
               :isChecked="
583
-                predialysis.ductus_arantii.indexOf('反接') > -1 ? true : false
513
+                predialysis.catheter.indexOf('感染-有') > -1 ? true : false
584 514
               "
585
-            ></label-box
586
-            >)
515
+            ></label-box>
587 516
             <label-box
588
-              showValue="血栓"
517
+              showValue="无"
589 518
               :isChecked="
590
-                predialysis.ductus_arantii.indexOf('血栓') > -1 ? true : false
519
+                predialysis.catheter.indexOf('感染-无') > -1 ? true : false
591 520
               "
592 521
             ></label-box>
522
+            &nbsp;&nbsp;流畅度:
593 523
             <label-box
594
-              showValue="缝线脱落"
524
+              showValue="好"
595 525
               :isChecked="
596
-                predialysis.ductus_arantii.indexOf('缝线脱落') > -1
597
-                  ? true
598
-                  : false
526
+                predialysis.catheter.indexOf('通畅度-好') > -1 ? true : false
599 527
               "
600 528
             ></label-box>
601 529
             <label-box
602
-              showValue="导管脱落"
530
+              showValue=""
603 531
               :isChecked="
604
-                predialysis.ductus_arantii.indexOf('导管脱落') > -1
605
-                  ? true
606
-                  : false
532
+                predialysis.catheter.indexOf('通畅度-差') > -1 ? true : false
607 533
               "
608 534
             ></label-box>
535
+            &nbsp;&nbsp;溶栓:
609 536
             <label-box
610
-              showValue="感染"
537
+              showValue=""
611 538
               :isChecked="
612
-                predialysis.ductus_arantii.indexOf('感染') > -1 ? true : false
539
+                predialysis.catheter.indexOf('溶栓-有') > -1 ? true : false
613 540
               "
614 541
             ></label-box>
615 542
             <label-box
616
-              showValue="破损"
543
+              showValue=""
617 544
               :isChecked="
618
-                predialysis.ductus_arantii.indexOf('破损') > -1 ? true : false
545
+                predialysis.catheter.indexOf('溶栓-无') > -1 ? true : false
619 546
               "
620 547
             ></label-box>
548
+            &nbsp;&nbsp;外露:{{ predialysis.exposed }}cm
621 549
           </td>
622 550
         </tr>
623 551
         <tr>
@@ -1391,7 +1319,10 @@ export default {
1391 1319
       PunctureNurse: {
1392 1320
         user_name: "",
1393 1321
         url: ""
1394
-      }
1322
+      },
1323
+      arr: [],
1324
+      arrtwo: [],
1325
+      bloodAccess: []
1395 1326
     };
1396 1327
   },
1397 1328
   methods: {
@@ -1489,7 +1420,6 @@ export default {
1489 1420
       return name;
1490 1421
     },
1491 1422
     setAdminUserES(id) {
1492
-      console.log(id);
1493 1423
       if (id === 0) {
1494 1424
         return "";
1495 1425
       }
@@ -1513,7 +1443,6 @@ export default {
1513 1443
           this.adminUser = response.data.data.users;
1514 1444
           this.users = response.data.data.users;
1515 1445
           var patientInfo = response.data.data.patientInfo;
1516
-          console.log("patientInfo", patientInfo);
1517 1446
           if (patientInfo.gender === 1) {
1518 1447
             patientInfo.gender = "男";
1519 1448
           }
@@ -1521,7 +1450,7 @@ export default {
1521 1450
             patientInfo.gender = "女";
1522 1451
           }
1523 1452
           this.patientInfo = response.data.data.patientInfo;
1524
-          console.log("透析记录", this.patientInfo);
1453
+          // console.log("透析记录", this.patientInfo);
1525 1454
 
1526 1455
           this.patientInfo.birth = uParseTime(
1527 1456
             this.patientInfo.birthday,
@@ -1538,6 +1467,7 @@ export default {
1538 1467
           }
1539 1468
           this.check = response.data.data.check;
1540 1469
           var predialysis = response.data.data.PredialysisEvaluation;
1470
+          console.log("透前评估", predialysis);
1541 1471
           var predialysName = response.data.data.predialysName;
1542 1472
           this.blood_access_part_opera_id = predialysName.name;
1543 1473
           // console.log('血管', predialysName)
@@ -1551,11 +1481,9 @@ export default {
1551 1481
           // console.log('血管通路', this.blood_access_part_opera_id)
1552 1482
           var arry = [];
1553 1483
           arry = getDataConfig("hemodialysis", "vascular_access_desc");
1554
-          console.log("arry", arry);
1555 1484
           // eslint-disable-next-line no-empty
1556 1485
           var id = 0;
1557 1486
           for (let i = 0; i < arry.length; i++) {
1558
-            console.log(arry[i].id);
1559 1487
             if (arry[i].id === predialysis.blood_access_part_opera_id) {
1560 1488
               id = predialysis.blood_access_part_opera_id;
1561 1489
             }
@@ -2014,7 +1942,6 @@ export default {
2014 1942
               this.advice_groups.push(group);
2015 1943
             }
2016 1944
           }
2017
-          console.log(this.advice_groups);
2018 1945
         } else {
2019 1946
           this.loading = false;
2020 1947
           this.$message.error("请求数据失败");
@@ -2054,6 +1981,13 @@ export default {
2054 1981
           // checker: 0,
2055 1982
         }
2056 1983
       );
1984
+    },
1985
+    getPartName(id) {
1986
+      for (let i = 0; i < this.bloodAccess.length; i++) {
1987
+        if ((this.bloodAccess[i].id = id)) {
1988
+          return this.bloodAccess[i].name;
1989
+        }
1990
+      }
2057 1991
     }
2058 1992
   },
2059 1993
   watch: {
@@ -2091,16 +2025,48 @@ export default {
2091 2025
     this.perfusionApparatus = this.$store.getters.perfusion_apparatus;
2092 2026
     this.anticoagulantsConfit = this.$store.getters.anticoagulants_confit;
2093 2027
     this.consciousness_arr = getDataConfig("hemodialysis", "consciousness");
2094
-    // this.bloodAccessParOpera = getDataConfig('hemodialysis', 'vascular_access_desc')
2095
-
2096 2028
     var bloodAccessParOpera = getDataConfig(
2097 2029
       "hemodialysis",
2098 2030
       "vascular_access_desc"
2099 2031
     );
2100
-    for (var key in bloodAccessParOpera) {
2101
-      this.bloodAccessParOpera[bloodAccessParOpera[key].id] =
2102
-        bloodAccessParOpera[key];
2032
+    var arr = [];
2033
+    var arrtwo = [];
2034
+    for (let i = 0; i < bloodAccessParOpera.length; i++) {
2035
+      if (bloodAccessParOpera[i].name == "内瘘波动及震颤-存在") {
2036
+        bloodAccessParOpera[i].name = "存在";
2037
+        arr.push(bloodAccessParOpera[i]);
2038
+      }
2039
+      if (bloodAccessParOpera[i].name == "内瘘波动及震颤-减弱") {
2040
+        bloodAccessParOpera[i].name = "减弱";
2041
+        arr.push(bloodAccessParOpera[i]);
2042
+      }
2043
+      if (bloodAccessParOpera[i].name == "内瘘波动及震颤-消失") {
2044
+        bloodAccessParOpera[i].name = "消失";
2045
+        arr.push(bloodAccessParOpera[i]);
2046
+      }
2047
+      if (bloodAccessParOpera[i].name == "直穿") {
2048
+        arrtwo.push(bloodAccessParOpera[i]);
2049
+      }
2050
+      if (bloodAccessParOpera[i].name == "人造血管") {
2051
+        arrtwo.push(bloodAccessParOpera[i]);
2052
+      }
2053
+      if (bloodAccessParOpera[i].name == "移植血管") {
2054
+        arrtwo.push(bloodAccessParOpera[i]);
2055
+      }
2056
+      this.arr = arr;
2057
+      this.arrtwo = arrtwo;
2103 2058
     }
2059
+    console.log("arr", arr);
2060
+    console.log("arrtwo", arrtwo);
2061
+
2062
+    // var bloodAccessParOpera = getDataConfig(
2063
+    //   "hemodialysis",
2064
+    //   "vascular_access_desc"
2065
+    // );
2066
+    // for (var key in bloodAccessParOpera) {
2067
+    //   this.bloodAccessParOpera[bloodAccessParOpera[key].id] =
2068
+    //     bloodAccessParOpera[key];
2069
+    // }
2104 2070
 
2105 2071
     var dialysateFormulationOptions = getDataConfig(
2106 2072
       "hemodialysis",
@@ -2135,7 +2101,9 @@ export default {
2135 2101
     this.precautions = getDataConfig("hemodialysis", "precaution");
2136 2102
     this.intake = getDataConfig("hemodialysis", "intake");
2137 2103
     this.nutrition = getDataConfig("hemodialysis", "nutrition");
2138
-    console.log("nutrition", this.nutrition);
2104
+    var bloodAccess = getDataConfig("hemodialysis", "vascular_access");
2105
+    this.bloodAccess = bloodAccess;
2106
+    console.log("血管通路部位", bloodAccess);
2139 2107
   }
2140 2108
 };
2141 2109
 </script>