瀏覽代碼

Merge branch 'superman' of http://git.shengws.com/zhangbj/xt_vue into superman

csx 5 年之前
父節點
當前提交
e7dc849cb3

+ 23 - 15
src/api/signandweigh.js 查看文件

1
 import request from '@/utils/request'
1
 import request from '@/utils/request'
2
 
2
 
3
 export function fetchSignPatients(params) {
3
 export function fetchSignPatients(params) {
4
-  console.log("bbbbbbbbbbbbbbb号码")
4
+  console.log('bbbbbbbbbbbbbbb号码')
5
   console.log(params)
5
   console.log(params)
6
   return request({
6
   return request({
7
     url: '/api/sign/patients',
7
     url: '/api/sign/patients',
63
   })
63
   })
64
 }
64
 }
65
 
65
 
66
-export function sighdata(params){
67
-  console.log("好还哦")
66
+export function sighdata(params) {
67
+  console.log('好还哦')
68
   console.log(params)
68
   console.log(params)
69
-   return request({
70
-     url: '/api/sigh/sighdata',
71
-     params: params,   
72
-     method: 'Post'
73
-   })
69
+  return request({
70
+    url: '/api/sigh/sighdata',
71
+    params: params,
72
+    method: 'Post'
73
+  })
74
 }
74
 }
75
 
75
 
76
-export function updateSignweight(params){
77
- 
78
-  console.log(params)
76
+export function updateSignweight(params) {
77
+  console.log('params是什么', params)
79
   return request({
78
   return request({
80
-     url:'/api/sign/updateSignweight',
81
-     params:params,
82
-     method:'Post'
79
+    url: '/api/sign/updateSignweight',
80
+    params: params,
81
+    method: 'Post'
83
   })
82
   })
84
-}
83
+}
84
+
85
+export function getForenoonData(params) {
86
+  console.log('呵呵呵呵呵')
87
+  return request({
88
+    url: '/api/sign/getforenoondata',
89
+    params: params,
90
+    method: 'Get'
91
+  })
92
+}

+ 1 - 0
src/styles/index.scss 查看文件

265
       }
265
       }
266
     }
266
     }
267
   }
267
   }
268
+  //  border: solid 1px red;
268
 }
269
 }
269
 
270
 
270
 .note {
271
 .note {

+ 27 - 16
src/xt_pages/dialysis/details/BasicInfor.vue 查看文件

19
           <span>{{ patient.id == 0 ? "" : (patient.gender == 1 ? "男" : "女") }}</span>
19
           <span>{{ patient.id == 0 ? "" : (patient.gender == 1 ? "男" : "女") }}</span>
20
         </li>
20
         </li>
21
         <li>
21
         <li>
22
-          <label>出生 : </label>
23
-          <span>{{ birthday }}</span>
22
+          <label>年龄:</label>
23
+          <span>{{ patient.age }}</span>
24
         </li>
24
         </li>
25
         <li>
25
         <li>
26
           <label>透析号 : </label>
26
           <label>透析号 : </label>
38
           <label>住院号 : </label>
38
           <label>住院号 : </label>
39
           <span>{{ patient.admission_number }}</span>
39
           <span>{{ patient.admission_number }}</span>
40
         </li>
40
         </li>
41
+        <li>
42
+          <label>透析日期:</label>
43
+          <span>{{dialysis_time}}</span>
44
+        </li>
41
     </ul>
45
     </ul>
42
     <div class="middleLine"></div>
46
     <div class="middleLine"></div>
43
   </div>
47
   </div>
44
 </template>
48
 </template>
45
 
49
 
46
 <script>
50
 <script>
47
-import { parseTime } from "@/utils"
51
+const moment = require('moment')
52
+import { parseTime } from '@/utils'
48
 
53
 
49
 export default {
54
 export default {
50
-  name: "BasicInfor",
55
+  name: 'BasicInfor',
51
   data() {
56
   data() {
52
     return {
57
     return {
53
-      title:'基本信息',
58
+      title: '基本信息',
59
+      dialysis_time: moment(new Date()).format('YYYY-MM-DD')
54
       // steps: [
60
       // steps: [
55
       //   { title: "透析处方" },
61
       //   { title: "透析处方" },
56
       //   { title: "接诊评估" },
62
       //   { title: "接诊评估" },
63
       //   { title: "透后评估" },
69
       //   { title: "透后评估" },
64
       //   { title: "治疗小结" }
70
       //   { title: "治疗小结" }
65
       // ]
71
       // ]
66
-    };
72
+    }
67
   },
73
   },
68
   props: {
74
   props: {
69
     patient: {
75
     patient: {
73
       }
79
       }
74
     },
80
     },
75
     device_number: {
81
     device_number: {
76
-      type: String,
82
+      type: String
77
     },
83
     },
78
     steps: {
84
     steps: {
79
       type: Array,
85
       type: Array,
83
     }
89
     }
84
   },
90
   },
85
   computed: {
91
   computed: {
86
-    birthday: function() {
92
+    created_time: function() {
87
       if (this.patient.id == 0) {
93
       if (this.patient.id == 0) {
88
-        return ""
94
+        return ''
89
       } else {
95
       } else {
90
-        return parseTime(this.patient.birthday, "{y}-{m}-{d}")
96
+        return parseTime(this.patient.created_time, '{y}-{m}-{d}')
91
       }
97
       }
92
     },
98
     },
93
     source: function() {
99
     source: function() {
94
-      return this.patient.source == 1 ? "门诊" : "住院"
95
-    },
100
+      return this.patient.source == 1 ? '门诊' : '住院'
101
+    }
96
   },
102
   },
97
   methods: {
103
   methods: {
98
     stepState: function() {
104
     stepState: function() {
99
-      return parseInt((Math.random() * 1000) + "") % 2 == 1;
100
-    },
105
+      return parseInt((Math.random() * 1000) + '') % 2 == 1
106
+    }
107
+  },
108
+  created() {
109
+    console.log('patinents是什么ha ', this.patient)
101
   }
110
   }
102
-};
111
+}
103
 </script>
112
 </script>
104
 
113
 
105
 <style style="stylesheet/scss" lang="scss" scoped>
114
 <style style="stylesheet/scss" lang="scss" scoped>
200
     padding:20px 40px;  
209
     padding:20px 40px;  
201
     li {
210
     li {
202
       float: left;
211
       float: left;
203
-      width: 25%;
212
+      width: 28%;
204
       // margin: 0 1rem 0 0;
213
       // margin: 0 1rem 0 0;
205
       font-size: 15px;
214
       font-size: 15px;
206
       height: 35px;
215
       height: 35px;
207
       line-height: 35px;
216
       line-height: 35px;
208
       color: #34495e;
217
       color: #34495e;
218
+      margin-left: 60px;
209
     }
219
     }
220
+    // border: solid red 1px;
210
   }
221
   }
211
 </style>
222
 </style>
212
 
223
 

+ 134 - 136
src/xt_pages/dialysis/details/DialysisPrescription.vue 查看文件

4
     <div class="plate">
4
     <div class="plate">
5
       <ul>
5
       <ul>
6
         <li v-if="isShow('透析模式')">
6
         <li v-if="isShow('透析模式')">
7
-          <label>透析模式 : </label>
7
+          <label>透析模式: </label>
8
           <span class="content">{{dialysis_mode}}</span>
8
           <span class="content">{{dialysis_mode}}</span>
9
         </li>
9
         </li>
10
         <li v-if="isShow('目标超滤量')">
10
         <li v-if="isShow('目标超滤量')">
115
           <span class="content">{{body_fluid}}</span>
115
           <span class="content">{{body_fluid}}</span>
116
           <span class="unit"></span>
116
           <span class="unit"></span>
117
         </li>
117
         </li>
118
-        <li v-if="isShow('体液过多其他症状')">
118
+        <!-- <li v-if="isShow('体液过多其他症状')">
119
           <label>体液过多其他症状 : </label>
119
           <label>体液过多其他症状 : </label>
120
           <span class="content">{{body_fluid_other}}</span>
120
           <span class="content">{{body_fluid_other}}</span>
121
           <span class="unit"></span>
121
           <span class="unit"></span>
122
-        </li>
122
+        </li> -->
123
         <li v-if="isShow('透析前使用特殊药物')">
123
         <li v-if="isShow('透析前使用特殊药物')">
124
           <label>透析前使用特殊药物: </label>
124
           <label>透析前使用特殊药物: </label>
125
           <span class="content">{{special_medicine}}</span>
125
           <span class="content">{{special_medicine}}</span>
135
           <span class="content">{{displace_liqui}}</span>
135
           <span class="content">{{displace_liqui}}</span>
136
           <span class="unit"></span>
136
           <span class="unit"></span>
137
         </li>
137
         </li>
138
-        <li v-if="isShow('血管通路(内瘘)')">
139
-          <label>血管通路(内瘘): </label>
138
+        <li v-if="isShow('血管通路')">
139
+          <label>血管通路: </label>
140
           <span class="content">{{blood_access}}</span>
140
           <span class="content">{{blood_access}}</span>
141
           <span class="unit"></span>
141
           <span class="unit"></span>
142
         </li>
142
         </li>
159
 </template>
159
 </template>
160
 
160
 
161
 <script>
161
 <script>
162
-  import {getDataConfig} from '@/utils/data';
163
-  import store from "@/store";
162
+  import { getDataConfig } from '@/utils/data'
163
+import store from '@/store'
164
 
164
 
165
-  export default {
166
-    name: "DialysisPrescription",
165
+export default {
166
+    name: 'DialysisPrescription',
167
     data() {
167
     data() {
168
       return {
168
       return {
169
-        title: "透析处方",
169
+        title: '透析处方',
170
         perfusion_apparatus_map: {},
170
         perfusion_apparatus_map: {},
171
-        dialysateFormulationMap:{},
172
-      };
173
-    },
171
+        dialysateFormulationMap: {}
172
+      }
173
+  },
174
     props: {
174
     props: {
175
       prescription: {
175
       prescription: {
176
-        type: Object,
176
+        type: Object
177
       },
177
       },
178
       solution: {
178
       solution: {
179
-        type: Object,
179
+        type: Object
180
       },
180
       },
181
       device_number_map: {
181
       device_number_map: {
182
-        type: Object,
182
+        type: Object
183
       }
183
       }
184
     },
184
     },
185
     computed: {
185
     computed: {
186
-      target_ultrafiltration:function(){
187
-        var v = this.getValueStr("target_ultrafiltration", "target_ultrafiltration")
188
-        return v.length == 0 ? "0" : v
186
+      target_ultrafiltration: function() {
187
+        var v = this.getValueStr('target_ultrafiltration', 'target_ultrafiltration')
188
+        return v.length == 0 ? '0' : v
189
       },
189
       },
190
       dialysis_mode: function() {
190
       dialysis_mode: function() {
191
-        var mode = this.getValueStr("mode_id", "mode_id")
191
+        var mode = this.getValueStr('mode_id', 'mode_id')
192
         if (mode.length == 0) {
192
         if (mode.length == 0) {
193
-          return ""
193
+          return ''
194
         }
194
         }
195
         if (this.$store.getters.treatment_mode[mode] != undefined) {
195
         if (this.$store.getters.treatment_mode[mode] != undefined) {
196
           return this.$store.getters.treatment_mode[mode].name
196
           return this.$store.getters.treatment_mode[mode].name
197
         }
197
         }
198
-        return ""
198
+        return ''
199
       },
199
       },
200
       perfusion_apparatus: function() {
200
       perfusion_apparatus: function() {
201
-        var v = this.getValueStr("perfusion_apparatus", "perfusion_apparatus")
201
+        var v = this.getValueStr('perfusion_apparatus', 'perfusion_apparatus')
202
         if (v.length == 0) {
202
         if (v.length == 0) {
203
-          return ""
203
+          return ''
204
         }
204
         }
205
         if (this.perfusion_apparatus_map[v] != undefined) {
205
         if (this.perfusion_apparatus_map[v] != undefined) {
206
           return this.perfusion_apparatus_map[v].name
206
           return this.perfusion_apparatus_map[v].name
207
         }
207
         }
208
-        return ""
208
+        return ''
209
       },
209
       },
210
       displace_liqui: function() {
210
       displace_liqui: function() {
211
-        var v = this.getValueStr("displace_liqui", "displace_liqui")
212
-        return v.length == 0 ? "0" : v
211
+        var v = this.getValueStr('displace_liqui', 'displace_liqui')
212
+        return v.length == 0 ? '0' : v
213
       },
213
       },
214
       anticoagulant_shouji: function() {
214
       anticoagulant_shouji: function() {
215
-        var v = this.getValueStr("anticoagulant_shouji", "anticoagulant_shouji")
216
-        return v.length == 0 ? "0" : v
215
+        var v = this.getValueStr('anticoagulant_shouji', 'anticoagulant_shouji')
216
+        return v.length == 0 ? '0' : v
217
       },
217
       },
218
       kalium: function() {
218
       kalium: function() {
219
-        var v = this.getValueStr("kalium", "kalium")
220
-        return v.length == 0 ? "0" : v
219
+        var v = this.getValueStr('kalium', 'kalium')
220
+        return v.length == 0 ? '0' : v
221
       },
221
       },
222
-      replacement_total:function(){
223
-        var v = this.getValueStr("replacement_total", "replacement_total")
224
-        return v.length == 0 ? "0" : v
222
+      replacement_total: function() {
223
+        var v = this.getValueStr('replacement_total', 'replacement_total')
224
+        return v.length == 0 ? '0' : v
225
       },
225
       },
226
       bicarbonate: function() {
226
       bicarbonate: function() {
227
-        var v = this.getValueStr("bicarbonate", "bicarbonate")
228
-        return v.length == 0 ? "0" : v
227
+        var v = this.getValueStr('bicarbonate', 'bicarbonate')
228
+        return v.length == 0 ? '0' : v
229
       },
229
       },
230
       dialysate_flow: function() {
230
       dialysate_flow: function() {
231
-        var v = this.getValueStr("dialysate_flow", "dialysate_flow")
232
-        return v.length == 0 ? "0" : v
231
+        var v = this.getValueStr('dialysate_flow', 'dialysate_flow')
232
+        return v.length == 0 ? '0' : v
233
       },
233
       },
234
       dialysis_duration: function() {
234
       dialysis_duration: function() {
235
-        var dialysis_duration_hour = (this.getValueStr("dialysis_duration_hour", "dialysis_duration_hour"))
236
-        var dialysis_duration_minute = (this.getValueStr("dialysis_duration_minute", "dialysis_duration_minute"))
237
-        if(dialysis_duration_hour.length == 0 && dialysis_duration_minute.length == 0){
238
-          return  "0"
239
-        }else{
240
-          var time = dialysis_duration_hour+"h"+dialysis_duration_minute+"min"
241
-          return time.length == 0 ? "0" : time
235
+        var dialysis_duration_hour = (this.getValueStr('dialysis_duration_hour', 'dialysis_duration_hour'))
236
+        var dialysis_duration_minute = (this.getValueStr('dialysis_duration_minute', 'dialysis_duration_minute'))
237
+        if (dialysis_duration_hour.length == 0 && dialysis_duration_minute.length == 0) {
238
+          return '0'
239
+        } else {
240
+          var time = dialysis_duration_hour + 'h' + dialysis_duration_minute + 'min'
241
+          return time.length == 0 ? '0' : time
242
         }
242
         }
243
-
244
       },
243
       },
245
       blood_flow_volume: function() {
244
       blood_flow_volume: function() {
246
-        var v = this.getValueStr("blood_flow_volume", "blood_flow_volume")
247
-        return v.length == 0 ? "0" : v
245
+        var v = this.getValueStr('blood_flow_volume', 'blood_flow_volume')
246
+        return v.length == 0 ? '0' : v
248
       },
247
       },
249
       replacement_way: function() {
248
       replacement_way: function() {
250
-        return this.getValueStr("replacement_way", "replacement_way")
249
+        return this.getValueStr('replacement_way', 'replacement_way')
251
       },
250
       },
252
       anticoagulant_weichi: function() {
251
       anticoagulant_weichi: function() {
253
-        var v = this.getValueStr("anticoagulant_weichi", "anticoagulant_weichi")
254
-        return v.length == 0 ? "0" : v
252
+        var v = this.getValueStr('anticoagulant_weichi', 'anticoagulant_weichi')
253
+        return v.length == 0 ? '0' : v
255
       },
254
       },
256
       sodium: function() {
255
       sodium: function() {
257
-        var v = this.getValueStr("sodium", "sodium")
258
-        return v.length == 0 ? "0" : v
256
+        var v = this.getValueStr('sodium', 'sodium')
257
+        return v.length == 0 ? '0' : v
259
       },
258
       },
260
       glucose: function() {
259
       glucose: function() {
261
-        var v = this.getValueStr("glucose", "glucose")
262
-        return v.length == 0 ? "0" : v
260
+        var v = this.getValueStr('glucose', 'glucose')
261
+        return v.length == 0 ? '0' : v
263
       },
262
       },
264
       dialysate_temperature: function() {
263
       dialysate_temperature: function() {
265
-        var v = this.getValueStr("dialysate_temperature", "dialysate_temperature")
266
-        return v.length == 0 ? "0" : v
264
+        var v = this.getValueStr('dialysate_temperature', 'dialysate_temperature')
265
+        return v.length == 0 ? '0' : v
267
       },
266
       },
268
       dialyzer: function() {
267
       dialyzer: function() {
269
-        var v = this.getValueStr("dialyzer", "hemodialysis_machine")
268
+        var v = this.getValueStr('dialyzer', 'hemodialysis_machine')
270
         if (v.length == 0) {
269
         if (v.length == 0) {
271
-          return ""
270
+          return ''
272
         }
271
         }
273
         if (this.device_number_map[v] != undefined) {
272
         if (this.device_number_map[v] != undefined) {
274
           return this.device_number_map[v].name
273
           return this.device_number_map[v].name
275
         }
274
         }
276
-        return ""
275
+        return ''
277
       },
276
       },
278
-      dialysate_formulation: function(){
279
-        var v = this.getValueStr("dialysate_formulation", "dialysate_formulation")
277
+      dialysate_formulation: function() {
278
+        var v = this.getValueStr('dialysate_formulation', 'dialysate_formulation')
280
         if (v.length == 0) {
279
         if (v.length == 0) {
281
-          return ""
280
+          return ''
282
         }
281
         }
283
-        if(v in this.dialysateFormulationMap) {
284
-          return  this.dialysateFormulationMap[v].name;
282
+        if (v in this.dialysateFormulationMap) {
283
+          return this.dialysateFormulationMap[v].name
285
         }
284
         }
286
-        return ""
285
+        return ''
287
       },
286
       },
288
       prescription_dewatering: function() {
287
       prescription_dewatering: function() {
289
-        var v = this.getValueStr("prescription_dewatering", "dewater")
290
-        return v.length == 0 ? "0" : v
288
+        var v = this.getValueStr('prescription_dewatering', 'dewater')
289
+        return v.length == 0 ? '0' : v
291
       },
290
       },
292
       anticoagulant: function() {
291
       anticoagulant: function() {
293
-        var v = this.getValueStr("anticoagulant", "anticoagulant")
292
+        var v = this.getValueStr('anticoagulant', 'anticoagulant')
294
         if (v.length == 0) {
293
         if (v.length == 0) {
295
-          return ""
294
+          return ''
296
         }
295
         }
297
         if (this.$store.getters.anticoagulants_confit[v] != undefined) {
296
         if (this.$store.getters.anticoagulants_confit[v] != undefined) {
298
           return this.$store.getters.anticoagulants_confit[v].name
297
           return this.$store.getters.anticoagulants_confit[v].name
299
         }
298
         }
300
-        return ""
299
+        return ''
301
       },
300
       },
302
       anticoagulant_zongliang: function() {
301
       anticoagulant_zongliang: function() {
303
-        var v = this.getValueStr("anticoagulant_zongliang", "anticoagulant_zongliang")
304
-        return v.length == 0 ? "0" : v
302
+        var v = this.getValueStr('anticoagulant_zongliang', 'anticoagulant_zongliang')
303
+        return v.length == 0 ? '0' : v
305
       },
304
       },
306
       calcium: function() {
305
       calcium: function() {
307
-        var v = this.getValueStr("calcium", "calcium")
308
-        return v.length == 0 ? "0" : v
306
+        var v = this.getValueStr('calcium', 'calcium')
307
+        return v.length == 0 ? '0' : v
309
       },
308
       },
310
 
309
 
311
       conductivity: function() {
310
       conductivity: function() {
312
-        var v = this.getValueStr("conductivity", "conductivity")
313
-        return v.length == 0 ? "0" : v
311
+        var v = this.getValueStr('conductivity', 'conductivity')
312
+        return v.length == 0 ? '0' : v
314
       },
313
       },
315
       dialyzer_perfusion_apparatus: function() {
314
       dialyzer_perfusion_apparatus: function() {
316
-        return this.getValueStr("dialyzer_perfusion_apparatus", "dialyzer_perfusion_apparatus")
315
+        return this.getValueStr('dialyzer_perfusion_apparatus', 'dialyzer_perfusion_apparatus')
317
       },
316
       },
318
       note: function() {
317
       note: function() {
319
-        return this.getValueStr("remark", "remark")
320
-      },body_fluid:function () {
321
-        var id =  this.getValueStr("body_fluid", "body_fluid")
322
-        if(id == 0){
323
-          return ""
318
+        return this.getValueStr('remark', 'remark')
319
+      }, body_fluid: function() {
320
+        var id = this.getValueStr('body_fluid', 'body_fluid')
321
+        if (id == 0) {
322
+          return ''
324
         }
323
         }
325
-        var bodyFluidOptions = this.$store.getters.body_fluid;
326
-        for (let i = 0; i <bodyFluidOptions.length; i++){
327
-          if(bodyFluidOptions[i].id == id){
324
+        var bodyFluidOptions = this.$store.getters.body_fluid
325
+        for (let i = 0; i < bodyFluidOptions.length; i++) {
326
+          if (bodyFluidOptions[i].id == id) {
328
             return bodyFluidOptions[i].name
327
             return bodyFluidOptions[i].name
329
           }
328
           }
330
         }
329
         }
331
-      },special_medicine:function () {
332
-        var id =  this.getValueStr("special_medicine", "special_medicine")
333
-        if(id == 0){
334
-          return ""
330
+      }, special_medicine: function() {
331
+        var id = this.getValueStr('special_medicine', 'special_medicine')
332
+        if (id == 0) {
333
+          return ''
335
         }
334
         }
336
-        var special_medicine = this.$store.getters.special_medicine;
337
-        for (let i = 0; i <special_medicine.length; i++){
338
-          if(special_medicine[i].id == id){
335
+        var special_medicine = this.$store.getters.special_medicine
336
+        for (let i = 0; i < special_medicine.length; i++) {
337
+          if (special_medicine[i].id == id) {
339
             return special_medicine[i].name
338
             return special_medicine[i].name
340
           }
339
           }
341
         }
340
         }
342
-      },special_medicine_other:function () {
343
-        return this.getValueStr("special_medicine_other", "special_medicine_other")
344
-      },blood_access:function () {
345
-        var id =  this.getValueStr("blood_access", "blood_access")
346
-        if(id == 0){
347
-          return ""
341
+      }, special_medicine_other: function() {
342
+        return this.getValueStr('special_medicine_other', 'special_medicine_other')
343
+      }, blood_access: function() {
344
+        var id = this.getValueStr('blood_access', 'blood_access')
345
+        if (id == 0) {
346
+          return ''
348
         }
347
         }
349
-        var blood_access = this.$store.getters.blood_access_internal_fistula;
350
-        for (let i = 0; i <blood_access.length; i++){
351
-          if(blood_access[i].id == id){
348
+        var blood_access = this.$store.getters.blood_access_internal_fistula
349
+        for (let i = 0; i < blood_access.length; i++) {
350
+          if (blood_access[i].id == id) {
352
             return blood_access[i].name
351
             return blood_access[i].name
353
           }
352
           }
354
         }
353
         }
355
-      },displace_liqui:function () {
356
-        var id =  this.getValueStr("displace_liqui_part", "displace_liqui_part")
357
-        var displace_liqui_value =  this.getValueStr("displace_liqui_value", "displace_liqui_value")
358
-        var displace_liqui_part = ""
359
-        var displace_liqui = this.$store.getters.displace_liqui;
360
-        for (let i = 0; i <displace_liqui.length; i++){
361
-          if(displace_liqui[i].id == id){
354
+      }, displace_liqui: function() {
355
+        var id = this.getValueStr('displace_liqui_part', 'displace_liqui_part')
356
+        var displace_liqui_value = this.getValueStr('displace_liqui_value', 'displace_liqui_value')
357
+        var displace_liqui_part = ''
358
+        var displace_liqui = this.$store.getters.displace_liqui
359
+        for (let i = 0; i < displace_liqui.length; i++) {
360
+          if (displace_liqui[i].id == id) {
362
             displace_liqui_part = displace_liqui[i].name
361
             displace_liqui_part = displace_liqui[i].name
363
           }
362
           }
364
         }
363
         }
365
-        return displace_liqui_part + displace_liqui_value+"L"
366
-
367
-      },ultrafiltration:function () {
368
-        var v = this.getValueStr("ultrafiltration", "ultrafiltration")
369
-        return v.length == 0 ? "0" : v
370
-      },body_fluid_other:function() {
371
-        return this.getValueStr("body_fluid_other", "body_fluid_others")
372
-
373
-      },target_ktv:function () {
374
-        var v = this.getValueStr("target_ktv", "target_ktv")
375
-        return v.length == 0 ? "0" : v
364
+        return displace_liqui_part + displace_liqui_value + 'L'
365
+      }, ultrafiltration: function() {
366
+        var v = this.getValueStr('ultrafiltration', 'ultrafiltration')
367
+        return v.length == 0 ? '0' : v
368
+      }, body_fluid_other: function() {
369
+        return this.getValueStr('body_fluid_other', 'body_fluid_others')
370
+      }, target_ktv: function() {
371
+        var v = this.getValueStr('target_ktv', 'target_ktv')
372
+        return v.length == 0 ? '0' : v
376
       }
373
       }
377
     },
374
     },
378
     created() {
375
     created() {
379
       var perfusion_apparatus = this.$store.getters.perfusion_apparatus
376
       var perfusion_apparatus = this.$store.getters.perfusion_apparatus
380
       var map = {}
377
       var map = {}
381
       for (let index = 0; index < perfusion_apparatus.length; index++) {
378
       for (let index = 0; index < perfusion_apparatus.length; index++) {
382
-        const p = perfusion_apparatus[index];
379
+        const p = perfusion_apparatus[index]
383
         map[p.id] = p
380
         map[p.id] = p
384
       }
381
       }
385
       this.perfusion_apparatus_map = map
382
       this.perfusion_apparatus_map = map
386
 
383
 
387
-      var dialysateFormulationOptions = getDataConfig('hemodialysis','dialysate_formulation');
388
-      for(var index in dialysateFormulationOptions){
389
-        this.dialysateFormulationMap[dialysateFormulationOptions[index].id] = dialysateFormulationOptions[index];
384
+      var dialysateFormulationOptions = getDataConfig('hemodialysis', 'dialysate_formulation')
385
+      for (var index in dialysateFormulationOptions) {
386
+        this.dialysateFormulationMap[dialysateFormulationOptions[index].id] = dialysateFormulationOptions[index]
390
       }
387
       }
388
+      console.log('透析处方', this.prescription)
391
     },
389
     },
392
     methods: {
390
     methods: {
393
       getValueStr(pkey, skey) {
391
       getValueStr(pkey, skey) {
394
-        if ((this.prescription == null || this.prescription.id == "") && (this.solution == null || this.solution.id == "")) {
395
-          return ""
396
-        } else if (this.prescription != null && this.prescription.id != "") {
392
+        if ((this.prescription == null || this.prescription.id == '') && (this.solution == null || this.solution.id == '')) {
393
+          return ''
394
+        } else if (this.prescription != null && this.prescription.id != '') {
397
           if (this.prescription[pkey] == null || this.prescription[pkey] == undefined) {
395
           if (this.prescription[pkey] == null || this.prescription[pkey] == undefined) {
398
-            return ""
396
+            return ''
399
           }
397
           }
400
-          return this.prescription[pkey] + ""
398
+          return this.prescription[pkey] + ''
401
         } else {
399
         } else {
402
           if (this.solution[skey] == null || this.solution[skey] == undefined) {
400
           if (this.solution[skey] == null || this.solution[skey] == undefined) {
403
-            return ""
401
+            return ''
404
           }
402
           }
405
-          return this.solution[skey] + ""
403
+          return this.solution[skey] + ''
406
         }
404
         }
407
-      },isShow(name){
405
+      }, isShow(name) {
408
         var filedList = store.getters.xt_user.fileds
406
         var filedList = store.getters.xt_user.fileds
409
-        for (let i = 0; i < filedList.length; i++){
410
-          if(filedList[i].module == 1 && filedList[i].filed_name_cn == name&&filedList[i].is_show == 1){
407
+        for (let i = 0; i < filedList.length; i++) {
408
+          if (filedList[i].module == 1 && filedList[i].filed_name_cn == name && filedList[i].is_show == 1) {
411
             return true
409
             return true
412
           }
410
           }
413
         }
411
         }
414
         return false
412
         return false
415
-      },
413
+      }
416
     }
414
     }
417
-  };
415
+  }
418
 </script>
416
 </script>
419
 
417
 
420
 <style rel="stylesheet/scss" lang="scss" scoped>
418
 <style rel="stylesheet/scss" lang="scss" scoped>

+ 245 - 252
src/xt_pages/dialysis/details/NavIgation.vue 查看文件

87
 import AssessmentAfterDislysis from './dialog/AssessmentAfterDislysis'
87
 import AssessmentAfterDislysis from './dialog/AssessmentAfterDislysis'
88
 import acceptsTreatmentDialog from './dialog/acceptsTreatmentDialog'
88
 import acceptsTreatmentDialog from './dialog/acceptsTreatmentDialog'
89
 import assessmentBeforeDislysisDialog from './dialog/assessmentBeforeDislysisDialog'
89
 import assessmentBeforeDislysisDialog from './dialog/assessmentBeforeDislysisDialog'
90
-import MonitorDialog from "./dialog/monitor_dialog"
91
-import DoctorAdviceDialog from "./dialog/DoctorAdviceDialog"
92
-import treatmentSummaryDialog from "./dialog/treatmentSummaryDialog"
93
-import ComputerDialog from "./dialog/computer_dialog"
94
-import FinishDialog from "./dialog/finish_dialog"
90
+import MonitorDialog from './dialog/monitor_dialog'
91
+import DoctorAdviceDialog from './dialog/DoctorAdviceDialog'
92
+import treatmentSummaryDialog from './dialog/treatmentSummaryDialog'
93
+import ComputerDialog from './dialog/computer_dialog'
94
+import FinishDialog from './dialog/finish_dialog'
95
 
95
 
96
 export default {
96
 export default {
97
-    name: 'NavIgation',
98
-    components: {
99
-        dialysisPrescriptionDialog,
100
-        doubleCheckDialog,
101
-        AssessmentAfterDislysis,
102
-        acceptsTreatmentDialog,
103
-        assessmentBeforeDislysisDialog,
104
-        treatmentSummaryDialog,
105
-        MonitorDialog,
106
-        DoctorAdviceDialog,
107
-        ComputerDialog,
108
-        FinishDialog
109
-    },
110
-    data() {
111
-      return {
97
+  name: 'NavIgation',
98
+  components: {
99
+    dialysisPrescriptionDialog,
100
+    doubleCheckDialog,
101
+    AssessmentAfterDislysis,
102
+    acceptsTreatmentDialog,
103
+    assessmentBeforeDislysisDialog,
104
+    treatmentSummaryDialog,
105
+    MonitorDialog,
106
+    DoctorAdviceDialog,
107
+    ComputerDialog,
108
+    FinishDialog
109
+  },
110
+  data() {
111
+    return {
112
 
112
 
113
+    }
114
+  },
115
+  props: {
116
+    patient: { // 患者信息
117
+      type: Object,
118
+      default: () => {
119
+        return { id: 0 }
120
+      }
121
+    },
122
+    schedual: { // 患者排班信息
123
+      type: Object,
124
+      default: () => {
125
+        return { id: 0 }
126
+      }
127
+    },
128
+    prescription: { // 透析处方
129
+      type: Object,
130
+      default: () => {
131
+        return { id: 0 }
132
+      }
133
+    },
134
+    solution: { // 透析方案
135
+      type: Object,
136
+      default: () => {
137
+        return { id: 0 }
138
+      }
139
+    },
140
+    receiver_treatment_access: { // 接诊评估
141
+      type: Object,
142
+      default: () => {
143
+        return { id: 0 }
144
+      }
145
+    },
146
+    predialysis_evaluation: { // 透前评估
147
+      type: Object,
148
+      default: () => {
149
+        return { id: 0 }
150
+      }
151
+    },
152
+    doctor_advices: { // 临时医嘱
153
+      type: Array,
154
+      default: () => {
155
+        return []
156
+      }
157
+    },
158
+    double_check: { // 双人核对
159
+      type: Object,
160
+      default: () => {
161
+        return { id: 0 }
162
+      }
163
+    },
164
+    assessment_after_dislysis: { // 透后评估
165
+      type: Object,
166
+      default: () => {
167
+        return { id: 0 }
168
+      }
169
+    },
170
+    treatment_summary: { // 治疗小结
171
+      type: Object,
172
+      default: () => {
173
+        return { id: 0 }
174
+      }
175
+    },
176
+    monitor_records: { // 透析监测
177
+      type: Array,
178
+      default: () => {
179
+        return []
180
+      }
181
+    },
182
+    dialysis_order: { // 透析记录
183
+      type: Object,
184
+      default: () => {
185
+        return { id: 0 }
186
+      }
187
+    },
188
+    admin_users: { // 系统用户列表
189
+      type: Array,
190
+      default: () => {
191
+        return []
192
+      }
193
+    },
194
+    devices: { // 设备
195
+      type: Array,
196
+      default: () => {
197
+        return []
198
+      }
199
+    },
200
+    device_numbers: { // 床位
201
+      type: Array,
202
+      default: () => {
203
+        return []
113
       }
204
       }
114
     },
205
     },
115
-    props: {
116
-      patient: { // 患者信息
117
-        type: Object,
118
-        default: () => {
119
-          return {id: 0}
120
-        }
121
-      },
122
-      schedual: { // 患者排班信息
123
-        type: Object,
124
-        default: () => {
125
-          return {id: 0}
126
-        }
127
-      },
128
-      prescription: { // 透析处方
129
-        type: Object,
130
-        default: () => {
131
-          return {id: 0}
132
-        }
133
-      },
134
-      solution: { // 透析方案
135
-        type: Object,
136
-        default: () => {
137
-          return {id: 0}
138
-        }
139
-      },
140
-      receiver_treatment_access: { // 接诊评估
141
-        type: Object,
142
-        default: () => {
143
-          return {id: 0}
144
-        }
145
-      },
146
-      predialysis_evaluation: { // 透前评估
147
-        type: Object,
148
-        default: () => {
149
-          return {id: 0}
150
-        }
151
-      },
152
-      doctor_advices: { // 临时医嘱
153
-        type: Array,
154
-        default: () => {
155
-          return []
156
-        }
157
-      },
158
-      double_check: { // 双人核对
159
-        type: Object,
160
-        default: () => {
161
-          return {id: 0}
162
-        }
163
-      },
164
-      assessment_after_dislysis: { // 透后评估
165
-        type: Object,
166
-        default: () => {
167
-          return {id: 0}
168
-        }
169
-      },
170
-      treatment_summary: { // 治疗小结
171
-        type: Object,
172
-        default: () => {
173
-          return {id: 0}
174
-        }
175
-      },
176
-      monitor_records: { // 透析监测
177
-        type: Array,
178
-        default: () => {
179
-          return []
180
-        }
181
-      },
182
-      dialysis_order: { // 透析记录
183
-        type: Object,
184
-        default: () => {
185
-          return {id: 0}
186
-        }
187
-      },
188
-      admin_users: { //系统用户列表
189
-        type: Array,
190
-        default: () => {
191
-          return []
192
-        }
193
-      },
194
-      devices: { // 设备
195
-        type: Array,
196
-        default: () => {
197
-          return []
198
-        }
199
-      },
200
-      device_numbers: { // 床位
201
-        type: Array,
202
-        default: () => {
203
-          return []
204
-        }
205
-      },
206
-
207
-
208
-      niprocart_info: {
209
-        type: Array,
210
-        default: () => {
211
-          return []
212
-        }
213
-      },
214
-
215
-      jms_info: {
216
-        type: Array,
217
-        default: () => {
218
-          return []
219
-        }
220
-      },
221
-
222
-
223
-      fistula_needle_set_info: {
224
-        type: Array,
225
-        default: () => {
226
-          return []
227
-        }
228
-      },
229
-
230
-
231
-      fistula_needle_set_16_info: {
232
-        type: Array,
233
-        default: () => {
234
-          return []
235
-        }
236
-      },
237
 
206
 
207
+    niprocart_info: {
208
+      type: Array,
209
+      default: () => {
210
+        return []
211
+      }
212
+    },
238
 
213
 
239
-      hemoperfusion_info: {
240
-        type: Array,
241
-        default: () => {
242
-          return []
243
-        }
244
-      },
214
+    jms_info: {
215
+      type: Array,
216
+      default: () => {
217
+        return []
218
+      }
219
+    },
245
 
220
 
246
-      dialyser_sterilised_info: {
247
-        type: Array,
248
-        default: () => {
249
-          return []
250
-        }
251
-      },
221
+    fistula_needle_set_info: {
222
+      type: Array,
223
+      default: () => {
224
+        return []
225
+      }
226
+    },
252
 
227
 
253
-      filtryzer_info: {
254
-        type: Array,
255
-        default: () => {
256
-          return []
257
-        }
258
-      },
228
+    fistula_needle_set_16_info: {
229
+      type: Array,
230
+      default: () => {
231
+        return []
232
+      }
233
+    },
259
 
234
 
260
-      dialyzers_info: {
261
-        type: Array,
262
-        default: () => {
263
-          return []
264
-        }
265
-      },
266
-      injector_info: {
267
-        type: Array,
268
-        default: () => {
269
-          return []
270
-        }
271
-      },
272
-      bloodlines_info: {
273
-        type: Array,
274
-        default: () => {
275
-          return []
276
-        }
277
-      },
278
-      tubingHemodialysis_info: {
279
-        type: Array,
280
-        default: () => {
281
-          return []
282
-        }
283
-      },
284
-      safe_package_info: {
285
-        type: Array,
286
-        default: () => {
287
-          return []
288
-        }
289
-      },
290
-      aliquid_info: {
291
-        type: Array,
292
-        default: () => {
293
-          return []
294
-        }
295
-      },
296
-      config: {
297
-        type: Object,
298
-        default: () => {
299
-          return {id: 0}
300
-        }
301
-      },
235
+    hemoperfusion_info: {
236
+      type: Array,
237
+      default: () => {
238
+        return []
239
+      }
240
+    },
302
 
241
 
242
+    dialyser_sterilised_info: {
243
+      type: Array,
244
+      default: () => {
245
+        return []
246
+      }
247
+    },
303
 
248
 
249
+    filtryzer_info: {
250
+      type: Array,
251
+      default: () => {
252
+        return []
253
+      }
254
+    },
304
 
255
 
256
+    dialyzers_info: {
257
+      type: Array,
258
+      default: () => {
259
+        return []
260
+      }
261
+    },
262
+    injector_info: {
263
+      type: Array,
264
+      default: () => {
265
+        return []
266
+      }
267
+    },
268
+    bloodlines_info: {
269
+      type: Array,
270
+      default: () => {
271
+        return []
272
+      }
273
+    },
274
+    tubingHemodialysis_info: {
275
+      type: Array,
276
+      default: () => {
277
+        return []
278
+      }
279
+    },
280
+    safe_package_info: {
281
+      type: Array,
282
+      default: () => {
283
+        return []
284
+      }
285
+    },
286
+    aliquid_info: {
287
+      type: Array,
288
+      default: () => {
289
+        return []
290
+      }
291
+    },
292
+    config: {
293
+      type: Object,
294
+      default: () => {
295
+        return { id: 0 }
296
+      }
297
+    },
305
 
298
 
306
-      admin_user_map: { // {user_id: admin_user object}
307
-        type: Object,
308
-        default: () => {
309
-          return {}
310
-        }
311
-      },
312
-      device_map: { // {device_id: device object}
313
-        type: Object,
314
-        default: () => {
315
-          return {}
316
-        }
317
-      },
318
-      device_number_map: { // {device_number_id: device_number object}
319
-        type: Object,
320
-        default: () => {
321
-          return {}
322
-        }
323
-      },
324
-    },
325
-    methods:{
326
-        showMonitorDialog: function() {
327
-            this.$refs.monitor_dialog.show()
328
-        },
329
-        showAssessmentAfterDialog:function(){
330
-            this.$refs.assessment_after_dislysis.show()
331
-        },
332
-        showDoctorAdviceDialog:function(){
333
-            this.$refs.doctor_advice.show();
334
-        },
335
-        showComputerDialog: function() {
336
-            this.$refs.computer_dialog.show()
337
-        },
338
-        showFinishDialog: function() {
339
-            this.$refs.finish_dialog.show()
340
-        },
341
-        showPrescription: function () {
342
-            this.$refs.prescription.show();
343
-        },
344
-        showAccepts:function () {
345
-            this.$refs.accepts.show();
346
-        },
347
-        showAssessmentBefore:function () {
348
-            this.$refs.assessmentBefore.show();
349
-        },
350
-        showDoubleCheck:function () {
351
-            this.$refs.doubleCheck.show();
352
-        },
353
-        showrTeatmentSummary:function () {
354
-            this.$refs.treatmentSummary.show();
355
-        }
299
+    admin_user_map: { // {user_id: admin_user object}
300
+      type: Object,
301
+      default: () => {
302
+        return {}
303
+      }
304
+    },
305
+    device_map: { // {device_id: device object}
306
+      type: Object,
307
+      default: () => {
308
+        return {}
309
+      }
310
+    },
311
+    device_number_map: { // {device_number_id: device_number object}
312
+      type: Object,
313
+      default: () => {
314
+        return {}
315
+      }
316
+    }
317
+  },
318
+  methods: {
319
+    showMonitorDialog: function() {
320
+      this.$refs.monitor_dialog.show()
321
+    },
322
+    showAssessmentAfterDialog: function() {
323
+      this.$refs.assessment_after_dislysis.show()
324
+    },
325
+    showDoctorAdviceDialog: function() {
326
+      this.$refs.doctor_advice.show()
327
+    },
328
+    showComputerDialog: function() {
329
+      this.$refs.computer_dialog.show()
330
+    },
331
+    showFinishDialog: function() {
332
+      this.$refs.finish_dialog.show()
333
+    },
334
+    showPrescription: function() {
335
+      this.$refs.prescription.show()
336
+    },
337
+    showAccepts: function() {
338
+      this.$refs.accepts.show()
339
+    },
340
+    showAssessmentBefore: function() {
341
+      this.$refs.assessmentBefore.show()
342
+    },
343
+    showDoubleCheck: function() {
344
+      this.$refs.doubleCheck.show()
345
+    },
346
+    showrTeatmentSummary: function() {
347
+      this.$refs.treatmentSummary.show()
356
     }
348
     }
349
+  }
357
 }
350
 }
358
 </script>
351
 </script>
359
 <style style="stylesheet/scss" lang="scss" scoped>
352
 <style style="stylesheet/scss" lang="scss" scoped>

+ 278 - 214
src/xt_pages/dialysis/details/assessmentAfter.vue 查看文件

19
           <span class="unit" v-if="actual_ultrafiltration!='0'">ml</span>
19
           <span class="unit" v-if="actual_ultrafiltration!='0'">ml</span>
20
         </li>
20
         </li>
21
         <li v-if="isShow('凝血')">
21
         <li v-if="isShow('凝血')">
22
-          <label>凝血 : </label>
22
+          <label>透析器凝血 : </label>
23
           <span class="content">{{ cruor }}</span>
23
           <span class="content">{{ cruor }}</span>
24
         </li>
24
         </li>
25
         <li v-if="isShow('内瘘')">
25
         <li v-if="isShow('内瘘')">
187
 </template>
187
 </template>
188
 
188
 
189
 <script>
189
 <script>
190
-  import store from "@/store";
190
+  import store from '@/store'
191
 
191
 
192
-  export default {
192
+export default {
193
   name: 'DialysisPrescription',
193
   name: 'DialysisPrescription',
194
   data() {
194
   data() {
195
-    return {
196
-      title: '透后评估 '
197
-    }
195
+      return {
196
+        title: '透后评估 '
197
+      }
198
   },
198
   },
199
   props: {
199
   props: {
200
-    record: {
201
-      type: Object
202
-    }
200
+      record: {
201
+        type: Object
202
+      }
203
   },
203
   },
204
   computed: {
204
   computed: {
205
-    weight_after: function() {
206
-      if (this.record.id == 0) {
207
-        return '-'
208
-      }
209
-      return this.record.weight_after
210
-    },
211
-    systolic_blood_pressure: function() {
212
-      if (this.record.id == 0) {
213
-        return '-'
205
+      weight_after: function() {
206
+        if (this.record.id == 0) {
207
+          return '-'
208
+        }
209
+        return this.record.weight_after
210
+      },
211
+      systolic_blood_pressure: function() {
212
+        if (this.record.id == 0) {
213
+          return '-'
214
+        }
215
+        return this.record.systolic_blood_pressure
216
+      },
217
+      actual_ultrafiltration: function() {
218
+        if (this.record.id == 0) {
219
+          return '-'
220
+        }
221
+        return this.record.actual_ultrafiltration
222
+      },
223
+      cruor: function() {
224
+        if (this.record.id == 0) {
225
+          return '-'
226
+        }
227
+        return this.record.cruor
228
+      },
229
+      internal_fistula: function() {
230
+        if (this.record == null || this.record.id == '') {
231
+          return '-'
232
+        }
233
+        return this.record.internal_fistula
234
+      },
235
+      weight_loss: function() {
236
+        if (this.record.id == 0) {
237
+          return '-'
238
+        }
239
+        return this.record.weight_loss
240
+      },
241
+      inpatient_department: function() {
242
+        if (this.record.id == 0) {
243
+          return '-'
244
+        }
245
+        return this.record.inpatient_department
246
+      },
247
+      patient_gose: function() {
248
+        if (this.record.id == 0) {
249
+          return 0
250
+        }
251
+        return this.record.patient_gose
252
+      },
253
+      diastolic_blood_pressure: function() {
254
+        if (this.record.id == 0) {
255
+          return '-'
256
+        }
257
+        return this.record.diastolic_blood_pressure
258
+      },
259
+      actual_displacement: function() {
260
+        if (this.record.id == 0) {
261
+          return '-'
262
+        }
263
+        return this.record.actual_displacement
264
+      },
265
+      symptom_after_dialysis: function() {
266
+        if (this.record.id == 0) {
267
+          return '-'
268
+        }
269
+        return this.record.symptom_after_dialysis
270
+      },
271
+      blood_access_part: function() {
272
+        if (this.record.id == 0) {
273
+          return '-'
274
+        }
275
+        const vascular_access = this.$store.getters.vascular_access
276
+        const valen = vascular_access.length
277
+        let name = '-'
278
+
279
+        for (var index in vascular_access) {
280
+          if (vascular_access[index].id == this.record.blood_access_part_id) {
281
+            name = vascular_access[index].name
282
+            break
283
+          }
284
+        }
285
+        return name
286
+      },
287
+      puncture_point_oozing_blood_name: function() {
288
+        if (this.record.id == 0) {
289
+          return '-'
290
+        }
291
+        switch (this.record.puncture_point_oozing_blood) {
292
+          case 1:
293
+            return '有'
294
+            break
295
+          case 2:
296
+            return '无'
297
+            break
298
+
299
+          default:
300
+            return '-'
301
+            break
302
+        }
303
+      }, eat_name: function() {
304
+        if (this.record == null || this.record.id == '') {
305
+          return '-'
306
+        }
307
+        switch (this.record.is_eat) {
308
+          case 1:
309
+            return '有'
310
+            break
311
+          case 2:
312
+            return '无'
313
+            break
314
+
315
+          default:
316
+            return '-'
317
+            break
318
+        }
319
+      },
320
+      patient_gose_name: function() {
321
+        if (this.record.id == 0) {
322
+          return '-'
323
+        }
324
+        switch (this.record.patient_gose) {
325
+          case 1:
326
+            return '离院'
327
+            break
328
+          case 2:
329
+            return '留观'
330
+            break
331
+          case 3:
332
+            return '住院'
333
+            break
334
+
335
+          default:
336
+            return '-'
337
+            break
338
+        }
339
+      },
340
+      blood_access_opera: function() {
341
+        if (this.record.id == 0) {
342
+          return '-'
343
+        }
344
+        const vascular_access = this.$store.getters.vascular_access_desc
345
+        let name = '-'
346
+        for (var index in vascular_access) {
347
+          if (vascular_access[index].id == this.record.blood_access_part_opera_id) {
348
+            name = vascular_access[index].name
349
+            break
350
+          }
351
+        }
352
+        return name
353
+      },
354
+      catheter: function() {
355
+        if (this.record.id == 0) {
356
+          return '-'
357
+        }
358
+        return this.record.catheter
359
+      },
360
+      puncture_point_haematoma_name: function() {
361
+        if (this.record.id == 0)
362
+          {return}
214
       }
363
       }
215
-      return this.record.systolic_blood_pressure
216
-    },
217
-    actual_ultrafiltration: function() {
364
+    }, breathing_rate: function() {
218
       if (this.record.id == 0) {
365
       if (this.record.id == 0) {
219
         return '-'
366
         return '-'
220
       }
367
       }
221
-      return this.record.actual_ultrafiltration
368
+      return this.record.breathing_rate
222
     },
369
     },
223
-    cruor: function() {
370
+    temperature: function() {
224
       if (this.record.id == 0) {
371
       if (this.record.id == 0) {
225
         return '-'
372
         return '-'
226
       }
373
       }
227
-      return this.record.cruor
228
-    },
229
-    internal_fistula: function() {
230
-      if (this.record == null || this.record.id == '') {
231
-        return '-'
232
-      }
233
-      return this.record.internal_fistula
374
+      return this.record.temperature
234
     },
375
     },
235
-    weight_loss: function() {
376
+    pulse_frequency: function() {
236
       if (this.record.id == 0) {
377
       if (this.record.id == 0) {
237
         return '-'
378
         return '-'
238
       }
379
       }
239
-      return this.record.weight_loss
380
+      return this.record.pulse_frequency
240
     },
381
     },
241
-    inpatient_department: function() {
382
+    actual_treatment_hour: function() {
242
       if (this.record.id == 0) {
383
       if (this.record.id == 0) {
243
         return '-'
384
         return '-'
244
       }
385
       }
245
-      return this.record.inpatient_department
246
-    },
247
-    patient_gose: function() {
248
-      if (this.record.id == 0) {
249
-        return 0
250
-      }
251
-      return this.record.patient_gose
386
+      return this.record.actual_treatment_hour
252
     },
387
     },
253
-    diastolic_blood_pressure: function() {
388
+    actual_treatment_minute: function() {
254
       if (this.record.id == 0) {
389
       if (this.record.id == 0) {
255
         return '-'
390
         return '-'
256
       }
391
       }
257
-      return this.record.diastolic_blood_pressure
392
+      return this.record.actual_treatment_minute
258
     },
393
     },
259
-    actual_displacement: function() {
394
+    dialysis_intakes_feed: function() {
260
       if (this.record.id == 0) {
395
       if (this.record.id == 0) {
261
         return '-'
396
         return '-'
262
       }
397
       }
263
-      return this.record.actual_displacement
398
+      return this.record.dialysis_intakes
264
     },
399
     },
265
-    symptom_after_dialysis: function() {
400
+    observation_content_other: function() {
266
       if (this.record.id == 0) {
401
       if (this.record.id == 0) {
267
         return '-'
402
         return '-'
268
       }
403
       }
269
-      return this.record.symptom_after_dialysis
404
+      return this.record.observation_content_other
270
     },
405
     },
271
-    blood_access_part: function() {
406
+    observation_content: function() {
272
       if (this.record.id == 0) {
407
       if (this.record.id == 0) {
273
         return '-'
408
         return '-'
274
       }
409
       }
275
-      const vascular_access = this.$store.getters.vascular_access
276
-      const valen = vascular_access.length
277
-      let name = '-'
278
-
279
-      for (var index in vascular_access) {
280
-        if (vascular_access[index].id == this.record.blood_access_part_id) {
281
-          name = vascular_access[index].name
282
-          break
283
-        }
284
-      }
285
-      return name
410
+      return this.record.observation_content
286
     },
411
     },
287
-    puncture_point_oozing_blood_name: function() {
412
+    complication: function() {
288
       if (this.record.id == 0) {
413
       if (this.record.id == 0) {
289
         return '-'
414
         return '-'
290
       }
415
       }
291
-      switch (this.record.puncture_point_oozing_blood) {
292
-        case 1:
293
-          return '有'
294
-          break
295
-        case 2:
296
-          return '无'
297
-          break
298
-
299
-        default:
300
-          return '-'
301
-          break
302
-      }
303
-    },eat_name:function(){
304
-      if (this.record == null || this.record.id == "") {
305
-        return "-"
306
-      }
307
-      switch (this.record.is_eat) {
308
-        case 1:
309
-          return '有'
310
-          break;
311
-        case 2:
312
-          return '无'
313
-          break
314
-
315
-        default:
316
-          return '-'
317
-          break;
318
-      }
416
+      return this.record.complication
319
     },
417
     },
320
-    patient_gose_name: function() {
418
+    internal_fistula_tremor_ac_name: function() {
321
       if (this.record.id == 0) {
419
       if (this.record.id == 0) {
322
         return '-'
420
         return '-'
323
       }
421
       }
324
-      switch (this.record.patient_gose) {
422
+      switch (this.record.internal_fistula_tremor_ac) {
325
         case 1:
423
         case 1:
326
-          return '离院'
424
+          return '存在'
327
           break
425
           break
328
         case 2:
426
         case 2:
329
-          return '留观'
427
+          return '减弱'
330
           break
428
           break
331
         case 3:
429
         case 3:
332
-          return '住院'
430
+          return '无'
333
           break
431
           break
334
-
335
         default:
432
         default:
336
           return '-'
433
           return '-'
337
-          break
338
-      }
339
-    },
340
-    blood_access_opera: function() {
341
-      if (this.record.id == 0) {
342
-        return '-'
343
-      }
344
-      const vascular_access = this.$store.getters.vascular_access_desc
345
-      let name = '-'
346
-      for (var index in vascular_access) {
347
-        if (vascular_access[index].id == this.record.blood_access_part_opera_id) {
348
-          name = vascular_access[index].name
349
-          break
350
-        }
351
-      }
352
-      return name
353
-    },
354
-    catheter: function() {
355
-      if (this.record.id == 0) {
356
-        return '-'
357
-      }
358
-      return this.record.catheter
359
-    },
360
-    puncture_point_haematoma_name: function() {
361
-      if (this.record.id == 0) {
362
-        return '-'
363
       }
434
       }
364
       switch (this.record.puncture_point_haematoma) {
435
       switch (this.record.puncture_point_haematoma) {
365
         case 1:
436
         case 1:
372
           return '-'
443
           return '-'
373
           break
444
           break
374
       }
445
       }
375
-    },breathing_rate:function(){
376
-      if (this.record.id == 0) {
377
-        return '-'
378
-      }
379
-      return this.record.breathing_rate
380
-
381
     },
446
     },
382
     temperature: function() {
447
     temperature: function() {
383
       if (this.record.id == 0) {
448
       if (this.record.id == 0) {
452
         return ''
517
         return ''
453
       }
518
       }
454
       return this.record.remark
519
       return this.record.remark
455
-    },in_advance_minute:function () {
456
-    if (this.record == null || this.record.id == "") {
457
-      return ""
458
-    }
459
-    return this.record.in_advance_minute
460
-  },in_advance_reason:function () {
461
-    if (this.record == null || this.record.id == "") {
462
-      return ""
463
-    }
464
-    return this.record.in_advance_reason + ","+this.record.in_advance_reason_other
465
-  },hemostasis_minute:function () {
466
-    if (this.record == null || this.record.id == "") {
467
-      return ""
468
-    }
520
+    },
521
+    in_advance_minute: function() {
522
+      if (this.record == null || this.record.id == '') {
523
+        return ''
524
+      }
525
+      return this.record.in_advance_minute
526
+    },
527
+    in_advance_reason: function() {
528
+      if (this.record == null || this.record.id == '') {
529
+        return ''
530
+      }
531
+      return this.record.in_advance_reason + ',' + this.record.in_advance_reason_other
532
+    },
533
+    hemostasis_minute: function() {
534
+      if (this.record == null || this.record.id == '') {
535
+        return ''
536
+      }
469
 
537
 
470
-    return this.record.hemostasis_minute
471
-  },in_advance_reason_other:function () {
472
-    if (this.record == null || this.record.id == "") {
473
-      return ""
474
-    }
475
-    return this.record.in_advance_reason_other
476
-  }
477
-  },
538
+      return this.record.hemostasis_minute
539
+    },
540
+    in_advance_reason_other: function() {
541
+      if (this.record == null || this.record.id == '') {
542
+        return ''
543
+      }
544
+      return this.record.in_advance_reason_other
545
+    },
478
   methods: {
546
   methods: {
479
-    getOpera:function (id) {
480
-      var hemostasis_opera = this.$store.getters.hemostasis_opera;
481
-      var hemostasisOperaName = "";
482
-      for (let i = 0; i < hemostasis_opera.length; i++){
483
-        if(hemostasis_opera[i].id == id){
484
-          hemostasisOperaName =    hemostasis_opera[i].name
547
+      getOpera: function(id) {
548
+        var hemostasis_opera = this.$store.getters.hemostasis_opera
549
+        var hemostasisOperaName = ''
550
+        for (let i = 0; i < hemostasis_opera.length; i++) {
551
+          if (hemostasis_opera[i].id == id) {
552
+            hemostasisOperaName = hemostasis_opera[i].name
553
+          }
485
         }
554
         }
486
-      }
487
-      return hemostasisOperaName
488
-
489
-    },getTremorNoise:function (id) {
490
-      var tremor_noise = this.$store.getters.tremor_noise;
491
-      var tremorNoiseName = "";
492
-      for (let i = 0; i < tremor_noise.length; i++){
493
-        if(tremor_noise[i].id == id){
494
-          tremorNoiseName =    tremor_noise[i].name
555
+        return hemostasisOperaName
556
+      }, getTremorNoise: function(id) {
557
+        var tremor_noise = this.$store.getters.tremor_noise
558
+        var tremorNoiseName = ''
559
+        for (let i = 0; i < tremor_noise.length; i++) {
560
+          if (tremor_noise[i].id == id) {
561
+            tremorNoiseName = tremor_noise[i].name
562
+          }
495
         }
563
         }
496
-      }
497
-      return tremorNoiseName
498
-    },getDisequilibriumSyndrome:function (id) {
499
-      var disequilibrium_syndrome = this.$store.getters.disequilibrium_syndrome;
500
-      var disequilibriumSyndromeName = "";
501
-      for (let i = 0; i < disequilibrium_syndrome.length; i++){
502
-        if(disequilibrium_syndrome[i].id == id){
503
-          disequilibriumSyndromeName =    disequilibrium_syndrome[i].name
564
+        return tremorNoiseName
565
+      }, getDisequilibriumSyndrome: function(id) {
566
+        var disequilibrium_syndrome = this.$store.getters.disequilibrium_syndrome
567
+        var disequilibriumSyndromeName = ''
568
+        for (let i = 0; i < disequilibrium_syndrome.length; i++) {
569
+          if (disequilibrium_syndrome[i].id == id) {
570
+            disequilibriumSyndromeName = disequilibrium_syndrome[i].name
571
+          }
504
         }
572
         }
505
-      }
506
-      return disequilibriumSyndromeName
507
-
508
-    },getDisequilibriumSyndromeOptionName:function (id) {
509
-      var disequilibrium_syndrome_option = this.$store.getters.disequilibrium_syndrome_option;
510
-      var disequilibriumSyndromeOptionName = "";
511
-      for (let i = 0; i < disequilibrium_syndrome_option.length; i++) {
512
-        if (disequilibrium_syndrome_option[i].id == id) {
513
-          disequilibriumSyndromeOptionName = disequilibrium_syndrome_option[i].name
573
+        return disequilibriumSyndromeName
574
+      }, getDisequilibriumSyndromeOptionName: function(id) {
575
+        var disequilibrium_syndrome_option = this.$store.getters.disequilibrium_syndrome_option
576
+        var disequilibriumSyndromeOptionName = ''
577
+        for (let i = 0; i < disequilibrium_syndrome_option.length; i++) {
578
+          if (disequilibrium_syndrome_option[i].id == id) {
579
+            disequilibriumSyndromeOptionName = disequilibrium_syndrome_option[i].name
580
+          }
514
         }
581
         }
515
-      }
516
-      return disequilibriumSyndromeOptionName
517
-    },getArterialTubeName:function (id) {
518
-      var arterial_tube = this.$store.getters.arterial_tube;
519
-      var arterialTubeName = "";
520
-      for (let i = 0; i < arterial_tube.length; i++) {
521
-        if (arterial_tube[i].id == id) {
522
-          arterialTubeName = arterial_tube[i].name
582
+        return disequilibriumSyndromeOptionName
583
+      }, getArterialTubeName: function(id) {
584
+        var arterial_tube = this.$store.getters.arterial_tube
585
+        var arterialTubeName = ''
586
+        for (let i = 0; i < arterial_tube.length; i++) {
587
+          if (arterial_tube[i].id == id) {
588
+            arterialTubeName = arterial_tube[i].name
589
+          }
523
         }
590
         }
524
-      }
525
-      return arterialTubeName
526
-
527
-    },getIntravenousTubeName:function (id) {
528
-      var intravenous_tube = this.$store.getters.intravenous_tube;
529
-      var intravenousTubeName = "";
530
-      for (let i = 0; i < intravenous_tube.length; i++) {
531
-        if (intravenous_tube[i].id == id) {
532
-          intravenousTubeName = intravenous_tube[i].name
591
+        return arterialTubeName
592
+      }, getIntravenousTubeName: function(id) {
593
+        var intravenous_tube = this.$store.getters.intravenous_tube
594
+        var intravenousTubeName = ''
595
+        for (let i = 0; i < intravenous_tube.length; i++) {
596
+          if (intravenous_tube[i].id == id) {
597
+            intravenousTubeName = intravenous_tube[i].name
598
+          }
533
         }
599
         }
534
-      }
535
-      return intravenousTubeName
536
-
537
-    },getDialyzer:function (id) {
538
-      var dialyzer = this.$store.getters.dialyzer;
539
-      var dialyzerName = "";
540
-      for (let i = 0; i < dialyzer.length; i++) {
541
-        if (dialyzer[i].id == id) {
542
-          dialyzerName = dialyzer[i].name
600
+        return intravenousTubeName
601
+      }, getDialyzer: function(id) {
602
+        var dialyzer = this.$store.getters.dialyzer
603
+        var dialyzerName = ''
604
+        for (let i = 0; i < dialyzer.length; i++) {
605
+          if (dialyzer[i].id == id) {
606
+            dialyzerName = dialyzer[i].name
607
+          }
543
         }
608
         }
544
-      }
545
-      return dialyzerName
546
-    },isShow(name){
547
-      var filedList = store.getters.xt_user.fileds
548
-      for (let i = 0; i < filedList.length; i++){
549
-        if(filedList[i].module == 5 && filedList[i].filed_name_cn == name&&filedList[i].is_show == 1){
550
-          return true
609
+        return dialyzerName
610
+      }, isShow(name) {
611
+        var filedList = store.getters.xt_user.fileds
612
+        for (let i = 0; i < filedList.length; i++) {
613
+          if (filedList[i].module == 5 && filedList[i].filed_name_cn == name && filedList[i].is_show == 1) {
614
+            return true
615
+          }
551
         }
616
         }
617
+        return false
552
       }
618
       }
553
-      return false
554
-    },
555
   }
619
   }
556
 }
620
 }
557
 </script>
621
 </script>

+ 10 - 16
src/xt_pages/dialysis/details/dialog/AssessmentAfterDislysis.vue 查看文件

382
   import MultiSelectBox from './MultiSelectBox'
382
   import MultiSelectBox from './MultiSelectBox'
383
   import { postAssessmentAfterDislysis } from '@/api/dialysis'
383
   import { postAssessmentAfterDislysis } from '@/api/dialysis'
384
   import { uParseTime } from '@/utils/tools'
384
   import { uParseTime } from '@/utils/tools'
385
-  import store from "@/store";
385
+  import store from '@/store'
386
 
386
 
387
-  export default {
387
+export default {
388
     name: 'AssessmentAfterDislysis',
388
     name: 'AssessmentAfterDislysis',
389
     props: {
389
     props: {
390
       assessment_after_dislysis: { // 透后评估
390
       assessment_after_dislysis: { // 透后评估
464
           observation_content_other: '',
464
           observation_content_other: '',
465
           remark: '',
465
           remark: '',
466
           dialysis_order_id: 0,
466
           dialysis_order_id: 0,
467
-          is_eat:2,
467
+          is_eat: 2,
468
           dialysis_process: '',
468
           dialysis_process: '',
469
           in_advance_minute: '',
469
           in_advance_minute: '',
470
           in_advance_reason: '',
470
           in_advance_reason: '',
477
           arterial_tube: '',
477
           arterial_tube: '',
478
           intravenous_tube: '',
478
           intravenous_tube: '',
479
           dialyzer: '',
479
           dialyzer: '',
480
-          breathing_rate:'',
480
+          breathing_rate: ''
481
 
481
 
482
         }
482
         }
483
       }
483
       }
592
         data['observation_content_other'] = this.form.observation_content_other
592
         data['observation_content_other'] = this.form.observation_content_other
593
         data['remark'] = this.form.remark
593
         data['remark'] = this.form.remark
594
         data['dialysis_order_id'] = this.form.dialysis_order_id ? parseFloat(this.form.dialysis_order_id) : 0
594
         data['dialysis_order_id'] = this.form.dialysis_order_id ? parseFloat(this.form.dialysis_order_id) : 0
595
-
596
-        data['breathing_rate'] = this.form.breathing_rate ? parseFloat(this.form.breathing_rate) : 0
597
-
598
-
599
         data['dialysis_process'] = this.form.dialysis_process ? parseFloat(this.form.dialysis_process) : 0
595
         data['dialysis_process'] = this.form.dialysis_process ? parseFloat(this.form.dialysis_process) : 0
600
         data['in_advance_minute'] = this.form.in_advance_minute ? parseFloat(this.form.in_advance_minute) : 0
596
         data['in_advance_minute'] = this.form.in_advance_minute ? parseFloat(this.form.in_advance_minute) : 0
601
         data['in_advance_reason_other'] = this.form.in_advance_reason_other
597
         data['in_advance_reason_other'] = this.form.in_advance_reason_other
611
 
607
 
612
         data['is_eat'] = this.form.is_eat ? parseFloat(this.form.is_eat) : 0
608
         data['is_eat'] = this.form.is_eat ? parseFloat(this.form.is_eat) : 0
613
 
609
 
614
-
615
         postAssessmentAfterDislysis(ParamsQuery, data).then(response => {
610
         postAssessmentAfterDislysis(ParamsQuery, data).then(response => {
616
           this.loading = false
611
           this.loading = false
617
           if (response.data.state == 0) {
612
           if (response.data.state == 0) {
747
 
742
 
748
       hide() {
743
       hide() {
749
         this.isVisibility = false
744
         this.isVisibility = false
750
-      }, isShow(name){
745
+      }, isShow(name) {
751
         var filedList = store.getters.xt_user.fileds
746
         var filedList = store.getters.xt_user.fileds
752
 
747
 
753
-
754
-        for (let i = 0; i < filedList.length; i++){
755
-
756
-          if(filedList[i].module == 5 && filedList[i].filed_name_cn == name&&filedList[i].is_show == 1){
748
+        for (let i = 0; i < filedList.length; i++) {
749
+          if (filedList[i].module == 5 && filedList[i].filed_name_cn == name && filedList[i].is_show == 1) {
757
             return true
750
             return true
758
           }
751
           }
759
         }
752
         }
760
         return false
753
         return false
761
-      },
754
+      }
762
     },
755
     },
763
     created() {
756
     created() {
757
+      console.log('this.form', this.form)
764
       this.cruorOptions = getDataConfig('hemodialysis', 'cruor')
758
       this.cruorOptions = getDataConfig('hemodialysis', 'cruor')
765
       this.symptomsOptions = getDataConfig('hemodialysis', 'symptoms')
759
       this.symptomsOptions = getDataConfig('hemodialysis', 'symptoms')
766
       this.internalFistulaOptions = getDataConfig('hemodialysis', 'internal_fistula')
760
       this.internalFistulaOptions = getDataConfig('hemodialysis', 'internal_fistula')
771
       this.internalFistulaTremorAcOptions = this.$store.getters.internal_fistula_tremor_ac
765
       this.internalFistulaTremorAcOptions = this.$store.getters.internal_fistula_tremor_ac
772
       this.patientGoseOptions = this.$store.getters.patient_gose
766
       this.patientGoseOptions = this.$store.getters.patient_gose
773
       this.observationContentOptions = this.$store.getters.observation_content
767
       this.observationContentOptions = this.$store.getters.observation_content
774
-
768
+  
775
       console.log(this.patient)
769
       console.log(this.patient)
776
 
770
 
777
       var date = this.$route.query && this.$route.query.date
771
       var date = this.$route.query && this.$route.query.date

+ 22 - 29
src/xt_pages/dialysis/details/dialog/assessmentBeforeDislysisDialog.vue 查看文件

408
   import multiSelectBox from './MultiSelectBox'
408
   import multiSelectBox from './MultiSelectBox'
409
   import { getDataConfig } from '@/utils/data'
409
   import { getDataConfig } from '@/utils/data'
410
   import { postAssessmentBeforeDislysis } from '@/api/dialysis'
410
   import { postAssessmentBeforeDislysis } from '@/api/dialysis'
411
-  import store from "@/store";
411
+  import store from '@/store'
412
 
412
 
413
-  import { uParseTime } from '@/utils/tools'
413
+import { uParseTime } from '@/utils/tools'
414
 
414
 
415
 export default {
415
 export default {
416
     components: {
416
     components: {
426
         last_dialysis_after: [],
426
         last_dialysis_after: [],
427
         dialysis_interphase: [],
427
         dialysis_interphase: [],
428
         symptom_before_dialysis: [],
428
         symptom_before_dialysis: [],
429
-        blood_access_noise:[],
429
+        blood_access_noise: [],
430
         catheter: [],
430
         catheter: [],
431
         complication: [],
431
         complication: [],
432
         hemorrhage: [],
432
         hemorrhage: [],
434
         blood_access_part_opera: [],
434
         blood_access_part_opera: [],
435
         internal_fistula: [],
435
         internal_fistula: [],
436
         internal_fistula_skin: [],
436
         internal_fistula_skin: [],
437
-        puncture_method:[],
437
+        puncture_method: [],
438
         isVisibiltyForCruorDialog: false,
438
         isVisibiltyForCruorDialog: false,
439
         assessmentBeforeDislysis: {
439
         assessmentBeforeDislysis: {
440
-          puncture_needle:'',
440
+          puncture_needle: '',
441
           catheter_bend: '',
441
           catheter_bend: '',
442
           internal_fistula_skin: '',
442
           internal_fistula_skin: '',
443
           weight_before: '',
443
           weight_before: '',
459
           is_hemorrhage: '',
459
           is_hemorrhage: '',
460
           hemorrhage: '',
460
           hemorrhage: '',
461
           hemorrhage_other: '',
461
           hemorrhage_other: '',
462
-          puncture_method:'',
463
-          breathing_rate:'',
462
+          puncture_method: '',
463
+          breathing_rate: '',
464
           dialysis_count: '',
464
           dialysis_count: '',
465
           emergency_treatment: '',
465
           emergency_treatment: '',
466
           emergency_treatment_other: '',
466
           emergency_treatment_other: '',
467
-          ductus_arantii_other:'',
467
+          ductus_arantii_other: '',
468
           ductus_arantii: '',
468
           ductus_arantii: '',
469
           venous_catheterization_part_other: '',
469
           venous_catheterization_part_other: '',
470
           venous_catheterization_part: '',
470
           venous_catheterization_part: '',
473
           blood_access_noise: '',
473
           blood_access_noise: '',
474
           internal_fistula_other: '',
474
           internal_fistula_other: '',
475
           blood_access_internal_fistula: '',
475
           blood_access_internal_fistula: '',
476
-          is_infect:'',
477
-          exposed:'',
478
-          skin:'',
479
-          skin_other:'',
480
-          infect_other:'',
476
+          is_infect: '',
477
+          exposed: '',
478
+          skin: '',
479
+          skin_other: '',
480
+          infect_other: ''
481
         },
481
         },
482
         // InnerDialogProps: {
482
         // InnerDialogProps: {
483
         //   checkedCities: [],
483
         //   checkedCities: [],
516
       }
516
       }
517
     },
517
     },
518
     methods: {
518
     methods: {
519
-      isShow(name){
519
+      isShow(name) {
520
         var filedList = store.getters.xt_user.fileds
520
         var filedList = store.getters.xt_user.fileds
521
-        for (let i = 0; i < filedList.length; i++){
522
-          if(filedList[i].module == 3 &&filedList[i].filed_name_cn == name && filedList[i].is_show == 1){
523
-              return true
521
+        for (let i = 0; i < filedList.length; i++) {
522
+          if (filedList[i].module == 3 && filedList[i].filed_name_cn == name && filedList[i].is_show == 1) {
523
+            return true
524
           }
524
           }
525
         }
525
         }
526
         return false
526
         return false
618
 
618
 
619
             break
619
             break
620
           case '10': //
620
           case '10': //
621
-            this.InnerDialogProps.values =  this.$store.getters.ductus_arantii
621
+            this.InnerDialogProps.values = this.$store.getters.ductus_arantii
622
             this.InnerDialogProps.titles = '中心静脉导管'
622
             this.InnerDialogProps.titles = '中心静脉导管'
623
             this.InnerDialogProps.type = 'ductus_arantii'
623
             this.InnerDialogProps.type = 'ductus_arantii'
624
             this.InnerDialogProps.selected = this.assessmentBeforeDislysis.ductus_arantii
624
             this.InnerDialogProps.selected = this.assessmentBeforeDislysis.ductus_arantii
626
 
626
 
627
             break
627
             break
628
           case '11': //
628
           case '11': //
629
-            this.InnerDialogProps.values =  this.$store.getters.puncture_needle
629
+            this.InnerDialogProps.values = this.$store.getters.puncture_needle
630
             this.InnerDialogProps.titles = '穿刺针'
630
             this.InnerDialogProps.titles = '穿刺针'
631
             this.InnerDialogProps.type = 'puncture_needle'
631
             this.InnerDialogProps.type = 'puncture_needle'
632
             this.InnerDialogProps.selected = this.assessmentBeforeDislysis.puncture_needle
632
             this.InnerDialogProps.selected = this.assessmentBeforeDislysis.puncture_needle
674
           case 'puncture_needle':
674
           case 'puncture_needle':
675
             this.assessmentBeforeDislysis.puncture_needle = val.value.join(',')
675
             this.assessmentBeforeDislysis.puncture_needle = val.value.join(',')
676
             break
676
             break
677
-
678
-
679
-
680
         }
677
         }
681
       }, innerDialogCancle: function() {
678
       }, innerDialogCancle: function() {
682
         this.InnerDialogProps.visibility = false
679
         this.InnerDialogProps.visibility = false
683
       }, handleComfirm: function() {
680
       }, handleComfirm: function() {
684
         const ParamsQuery = this.assessmentBeforeDislysis
681
         const ParamsQuery = this.assessmentBeforeDislysis
682
+        console.log('paramsquery是什么', ParamsQuery)
685
         ParamsQuery['patient'] = this.patient.id
683
         ParamsQuery['patient'] = this.patient.id
686
         ParamsQuery['record_date'] = this.record_date
684
         ParamsQuery['record_date'] = this.record_date
687
         postAssessmentBeforeDislysis(ParamsQuery).then(response => {
685
         postAssessmentBeforeDislysis(ParamsQuery).then(response => {
697
             })
695
             })
698
 
696
 
699
             const assessment_before_dislysis_resp = response.data.data.assessmentBeforeDislysis
697
             const assessment_before_dislysis_resp = response.data.data.assessmentBeforeDislysis
698
+
700
             // prop
699
             // prop
701
             var predialysis_evaluation = this.predialysis_evaluation
700
             var predialysis_evaluation = this.predialysis_evaluation
701
+            console.log('predialysis_evalution是什么', predialysis_evaluation)
702
             for (var index in assessment_before_dislysis_resp) {
702
             for (var index in assessment_before_dislysis_resp) {
703
               // predialysis_evaluation[index] = assessment_before_dislysis_resp[index];
703
               // predialysis_evaluation[index] = assessment_before_dislysis_resp[index];
704
               this.$set(predialysis_evaluation, index, assessment_before_dislysis_resp[index])
704
               this.$set(predialysis_evaluation, index, assessment_before_dislysis_resp[index])
726
       this.blood_access_noise = this.$store.getters.blood_access_noise
726
       this.blood_access_noise = this.$store.getters.blood_access_noise
727
       var date = this.$route.query && this.$route.query.date
727
       var date = this.$route.query && this.$route.query.date
728
       this.record_date = uParseTime(date, '{y}-{m}-{d}')
728
       this.record_date = uParseTime(date, '{y}-{m}-{d}')
729
-
730
-
731
-
732
-
733
     }, watch: {
729
     }, watch: {
734
       isVisibility(val) {
730
       isVisibility(val) {
735
 
731
 
753
             this.assessmentBeforeDislysis['is_hemorrhage'] = this.predialysis_evaluation['is_hemorrhage'] + ''
749
             this.assessmentBeforeDislysis['is_hemorrhage'] = this.predialysis_evaluation['is_hemorrhage'] + ''
754
           }
750
           }
755
 
751
 
756
-
757
-
758
           if (this.predialysis_evaluation['is_infect'] == 0) {
752
           if (this.predialysis_evaluation['is_infect'] == 0) {
759
             this.assessmentBeforeDislysis['is_infect'] = ''
753
             this.assessmentBeforeDislysis['is_infect'] = ''
760
           } else {
754
           } else {
790
           //   this.assessmentBeforeDislysis['emergency_treatment'] = this.predialysis_evaluation['emergency_treatment'] + ''
784
           //   this.assessmentBeforeDislysis['emergency_treatment'] = this.predialysis_evaluation['emergency_treatment'] + ''
791
           // }
785
           // }
792
 
786
 
793
-
794
           if (this.predialysis_evaluation['blood_access_part_id'] == 0) {
787
           if (this.predialysis_evaluation['blood_access_part_id'] == 0) {
795
             this.assessmentBeforeDislysis['blood_access_part_id'] = ''
788
             this.assessmentBeforeDislysis['blood_access_part_id'] = ''
796
           }
789
           }

+ 17 - 21
src/xt_pages/dialysis/details/dialog/dialysisPrescriptionDialog.vue 查看文件

245
         </el-col>
245
         </el-col>
246
 
246
 
247
 
247
 
248
-        <el-col :span="8" v-if="isShows('血管通路(内瘘)')">
249
-          <el-form-item label="血管通路(内瘘):">
248
+        <el-col :span="8" v-if="isShows('血管通路')">
249
+          <el-form-item label="血管通路:">
250
             <el-select v-model="dialysisPrescription.blood_access" placeholder="请选择">
250
             <el-select v-model="dialysisPrescription.blood_access" placeholder="请选择">
251
               <el-option :key="0" label="请选择" :value="0"></el-option>
251
               <el-option :key="0" label="请选择" :value="0"></el-option>
252
 
252
 
480
         }
480
         }
481
       },
481
       },
482
 
482
 
483
-
484
       fistula_needle_set_info: {
483
       fistula_needle_set_info: {
485
         type: Array,
484
         type: Array,
486
         default: () => {
485
         default: () => {
488
         }
487
         }
489
       },
488
       },
490
 
489
 
491
-
492
       fistula_needle_set_16_info: {
490
       fistula_needle_set_16_info: {
493
         type: Array,
491
         type: Array,
494
         default: () => {
492
         default: () => {
496
         }
494
         }
497
       },
495
       },
498
 
496
 
499
-
500
       hemoperfusion_info: {
497
       hemoperfusion_info: {
501
         type: Array,
498
         type: Array,
502
         default: () => {
499
         default: () => {
557
       config: {
554
       config: {
558
         type: Object,
555
         type: Object,
559
         default: () => {
556
         default: () => {
560
-          return {id: 0}
557
+          return { id: 0 }
561
         }
558
         }
562
       },
559
       },
563
 
560
 
658
           ultrafiltration: '',
655
           ultrafiltration: '',
659
           blood_access: '',
656
           blood_access: '',
660
 
657
 
661
-          niprocart:'',
662
-          jms:'',
663
-          fistula_needle_set:'',
664
-          fistula_needle_set_16:'',
665
-          hemoperfusion:'',
666
-          dialyser_sterilised:'',
667
-          filtryzer:'',
668
-          target_ktv:'',
669
-          dialyzers:'',
670
-          injector:'',
671
-          bloodlines:'',
672
-          tubing_hemodialysis:'',
673
-          package:'',
674
-          a_liquid:'',
658
+          niprocart: '',
659
+          jms: '',
660
+          fistula_needle_set: '',
661
+          fistula_needle_set_16: '',
662
+          hemoperfusion: '',
663
+          dialyser_sterilised: '',
664
+          filtryzer: '',
665
+          target_ktv: '',
666
+          dialyzers: '',
667
+          injector: '',
668
+          bloodlines: '',
669
+          tubing_hemodialysis: '',
670
+          package: '',
671
+          a_liquid: ''
675
         },
672
         },
676
 
673
 
677
         anticoagulant: {
674
         anticoagulant: {
969
             if (this.prescription['target_ktv'] == 0) {
966
             if (this.prescription['target_ktv'] == 0) {
970
               this.dialysisPrescription['target_ktv'] = ''
967
               this.dialysisPrescription['target_ktv'] = ''
971
             }
968
             }
972
-
973
           } else if (this.solution != null && typeof this.solution.id !== 'undefined' && this.solution.id) {
969
           } else if (this.solution != null && typeof this.solution.id !== 'undefined' && this.solution.id) {
974
             for (const key in this.solution) {
970
             for (const key in this.solution) {
975
               this.dialysisPrescription[key] = this.solution[key]
971
               this.dialysisPrescription[key] = this.solution[key]

+ 8 - 8
src/xt_pages/dialysis/details/dialog/monitor_dialog.vue 查看文件

304
   import { parseTime } from '@/utils'
304
   import { parseTime } from '@/utils'
305
   import { getDataConfig } from '@/utils/data'
305
   import { getDataConfig } from '@/utils/data'
306
   import { editMonitor, postDelMonitorInfo } from '@/api/dialysis_record'
306
   import { editMonitor, postDelMonitorInfo } from '@/api/dialysis_record'
307
-  import store from "@/store";
307
+  import store from '@/store'
308
 
308
 
309
-  export default {
309
+export default {
310
     name: 'MonitorDialog',
310
     name: 'MonitorDialog',
311
     data() {
311
     data() {
312
       return {
312
       return {
340
           dialysate_temperature: '', // 透析液温度
340
           dialysate_temperature: '', // 透析液温度
341
           replacement_rate: '', // 置换率
341
           replacement_rate: '', // 置换率
342
           displacement_quantity: '', // 置换量
342
           displacement_quantity: '', // 置换量
343
-          conductivity:'', //电导度
344
-          displacement_flow_quantity:'',//置换液流量
343
+          conductivity: '', // 电导度
344
+          displacement_flow_quantity: '', // 置换液流量
345
           ktv: '', // KT/V
345
           ktv: '', // KT/V
346
           symptom: '', // 病情变化
346
           symptom: '', // 病情变化
347
           dispose: '', // 处理
347
           dispose: '', // 处理
379
       this.form.operate_time = (new Date()).getTime()
379
       this.form.operate_time = (new Date()).getTime()
380
     },
380
     },
381
     methods: {
381
     methods: {
382
-      isShow(name){
382
+      isShow(name) {
383
         var filedList = store.getters.xt_user.fileds
383
         var filedList = store.getters.xt_user.fileds
384
-        for (let i = 0; i < filedList.length; i++){
385
-          if(filedList[i].module == 4 && filedList[i].filed_name_cn == name && filedList[i].is_show == 1){
384
+        for (let i = 0; i < filedList.length; i++) {
385
+          if (filedList[i].module == 4 && filedList[i].filed_name_cn == name && filedList[i].is_show == 1) {
386
             return true
386
             return true
387
           }
387
           }
388
         }
388
         }
447
           this.form.displacement_quantity = ''
447
           this.form.displacement_quantity = ''
448
           this.form.conductivity = ''
448
           this.form.conductivity = ''
449
           this.form.displacement_flow_quantity = ''
449
           this.form.displacement_flow_quantity = ''
450
-            this.form.ktv = ''
450
+          this.form.ktv = ''
451
           this.form.symptom = ''
451
           this.form.symptom = ''
452
           this.form.dispose = ''
452
           this.form.dispose = ''
453
           this.form.result = ''
453
           this.form.result = ''

+ 63 - 75
src/xt_pages/dialysis/details/dialog/treatmentSummaryDialog.vue 查看文件

39
 </template>
39
 </template>
40
 
40
 
41
 <script>
41
 <script>
42
-  import {getDataConfig} from "@/utils/data";
43
-  import {postTreatmentsummary} from "@/api/dialysis";
44
-  import {uParseTime} from "@/utils/tools";
42
+  import { getDataConfig } from '@/utils/data'
43
+import { postTreatmentsummary } from '@/api/dialysis'
44
+import { uParseTime } from '@/utils/tools'
45
 
45
 
46
-
47
-
48
-  export default {
49
-    name: "treatmentSummaryDialog",
46
+export default {
47
+    name: 'treatmentSummaryDialog',
50
 
48
 
51
     props: {
49
     props: {
52
-      treatment_summary : { // 治疗小结
50
+      treatment_summary: { // 治疗小结
53
         type: Object,
51
         type: Object,
54
         default: () => {
52
         default: () => {
55
-          return {id: 0}
53
+          return { id: 0 }
56
         }
54
         }
57
       }, patient: { // 患者信息
55
       }, patient: { // 患者信息
58
         type: Object,
56
         type: Object,
59
         default: () => {
57
         default: () => {
60
-          return {id: 0}
58
+          return { id: 0 }
61
         }
59
         }
62
-      },
60
+      }
63
 
61
 
64
     },
62
     },
65
     data() {
63
     data() {
66
       return {
64
       return {
67
-        value:'',
68
-        value2:'',
69
-
70
-        isVisibility:false,
71
-        record_date:'',
72
-        education:[],
73
-        summary:[],
74
-        treatmentSummary:{
75
-          mission: "",
76
-          dialysis_summary: "",
77
-          sj_nurse: "",
78
-          zl_nurse: "",
79
-          hd_nurse: "",
80
-          xj_nurse: "",
81
-          zl_doctor: ""
82
-        },
83
-      };
84
-    },
85
-    methods:{
65
+        value: '',
66
+        value2: '',
67
+
68
+        isVisibility: false,
69
+        record_date: '',
70
+        education: [],
71
+        summary: [],
72
+        treatmentSummary: {
73
+          mission: '',
74
+          dialysis_summary: '',
75
+          sj_nurse: '',
76
+          zl_nurse: '',
77
+          hd_nurse: '',
78
+          xj_nurse: '',
79
+          zl_doctor: ''
80
+        }
81
+      }
82
+  },
83
+    methods: {
86
       show() {
84
       show() {
87
-        this.isVisibility = true;
85
+        this.isVisibility = true
88
       },
86
       },
89
       hide() {
87
       hide() {
90
-        this.isVisibility = false;
88
+        this.isVisibility = false
91
       },
89
       },
92
-      dialysisAfterTeachSelectChange: function (values) {
93
-
94
-        if (this.treatmentSummary.mission == "") {
90
+      dialysisAfterTeachSelectChange: function(values) {
91
+        if (this.treatmentSummary.mission == '') {
95
           this.treatmentSummary.mission = values
92
           this.treatmentSummary.mission = values
96
         } else {
93
         } else {
97
           if (this.treatmentSummary.mission.indexOf(values) == -1) {
94
           if (this.treatmentSummary.mission.indexOf(values) == -1) {
98
             if (this.treatmentSummary.mission.charAt(this.treatmentSummary.mission.length - 1).indexOf('。') == -1) {
95
             if (this.treatmentSummary.mission.charAt(this.treatmentSummary.mission.length - 1).indexOf('。') == -1) {
99
-              this.treatmentSummary.mission = this.treatmentSummary.mission + "," + values
100
-
96
+              this.treatmentSummary.mission = this.treatmentSummary.mission + ',' + values
101
             } else {
97
             } else {
102
               this.treatmentSummary.mission = this.treatmentSummary.mission + values
98
               this.treatmentSummary.mission = this.treatmentSummary.mission + values
103
-
104
             }
99
             }
105
           }
100
           }
106
         }
101
         }
107
-      },  dialysisSummarySelectChange: function (values) {
108
-        if (this.treatmentSummary.dialysis_summary == "") {
102
+      }, dialysisSummarySelectChange: function(values) {
103
+        if (this.treatmentSummary.dialysis_summary == '') {
109
           this.treatmentSummary.dialysis_summary = values
104
           this.treatmentSummary.dialysis_summary = values
110
         } else {
105
         } else {
111
           if (this.treatmentSummary.dialysis_summary.indexOf(values) == -1) {
106
           if (this.treatmentSummary.dialysis_summary.indexOf(values) == -1) {
112
             if (this.treatmentSummary.dialysis_summary.charAt(this.treatmentSummary.dialysis_summary.length - 1).indexOf('。') == -1) {
107
             if (this.treatmentSummary.dialysis_summary.charAt(this.treatmentSummary.dialysis_summary.length - 1).indexOf('。') == -1) {
113
-              this.treatmentSummary.dialysis_summary = this.treatmentSummary.dialysis_summary + "," + values
114
-
108
+              this.treatmentSummary.dialysis_summary = this.treatmentSummary.dialysis_summary + ',' + values
115
             } else {
109
             } else {
116
-              this.treatmentSummary.dialysis_summary = this.treatmentSummary.dialysis_summary + "," + values
110
+              this.treatmentSummary.dialysis_summary = this.treatmentSummary.dialysis_summary + ',' + values
117
               this.treatmentSummary.dialysis_summary = this.treatmentSummary.dialysis_summary + values
111
               this.treatmentSummary.dialysis_summary = this.treatmentSummary.dialysis_summary + values
118
-
119
             }
112
             }
120
           }
113
           }
121
         }
114
         }
122
-
123
-      },handleCancle:function () {
124
-        this.isVisibility = false;
125
-
126
-      },handleComfirm:function () {
127
-        let ParamsQuery = this.treatmentSummary;
128
-        ParamsQuery["patient"] = this.patient.id;
129
-        ParamsQuery["record_date"] = this.record_date;
115
+      }, handleCancle: function() {
116
+        this.isVisibility = false
117
+      }, handleComfirm: function() {
118
+        const ParamsQuery = this.treatmentSummary
119
+        ParamsQuery['patient'] = this.patient.id
120
+        ParamsQuery['record_date'] = this.record_date
130
         postTreatmentsummary(ParamsQuery).then(response => {
121
         postTreatmentsummary(ParamsQuery).then(response => {
131
           if (response.data.state == 0) {
122
           if (response.data.state == 0) {
132
-            this.$message.error(response.data.msg);
133
-            return false;
123
+            this.$message.error(response.data.msg)
124
+            return false
134
           } else {
125
           } else {
135
             this.$notify({
126
             this.$notify({
136
-              title: "成功",
137
-              message: "提交成功",
138
-              type: "success",
127
+              title: '成功',
128
+              message: '提交成功',
129
+              type: 'success',
139
               duration: 2000
130
               duration: 2000
140
-            });
131
+            })
141
 
132
 
142
-            let summary_resp = response.data.data.summary;
143
-            //prop
144
-            var treatment_summary = this.treatment_summary;
145
-            for( var index in summary_resp) {
133
+            const summary_resp = response.data.data.summary
134
+            // prop
135
+            var treatment_summary = this.treatment_summary
136
+            for (var index in summary_resp) {
146
               // treatment_summary[index] = summary_resp[index];
137
               // treatment_summary[index] = summary_resp[index];
147
               this.$set(treatment_summary, index, summary_resp[index])
138
               this.$set(treatment_summary, index, summary_resp[index])
148
             }
139
             }
149
 
140
 
150
             this.hide()
141
             this.hide()
151
           }
142
           }
152
-        });
153
-
154
-
143
+        })
155
       }
144
       }
156
-    },watch: {
145
+    }, watch: {
157
       isVisibility(val) {
146
       isVisibility(val) {
158
 
147
 
159
       },
148
       },
160
-      "treatment_summary.id": function () {
149
+      'treatment_summary.id': function() {
161
         if (this.treatment_summary.id > 0) {
150
         if (this.treatment_summary.id > 0) {
162
           for (var index in this.treatmentSummary) {
151
           for (var index in this.treatmentSummary) {
163
-            this.treatmentSummary[index] = this.treatment_summary[index];
152
+            this.treatmentSummary[index] = this.treatment_summary[index]
164
           }
153
           }
165
         }
154
         }
166
-      },
155
+      }
167
     }, created() {
156
     }, created() {
168
-      this.education  = getDataConfig('education','education')
169
-      this.summary  = getDataConfig('summary','summary')
170
-
157
+      this.education = getDataConfig('education', 'education')
158
+      this.summary = getDataConfig('summary', 'summary')
171
 
159
 
172
-      var date = this.$route.query && this.$route.query.date;
173
-      this.record_date = uParseTime(date, '{y}-{m}-{d}');
174
-    },
160
+      var date = this.$route.query && this.$route.query.date
161
+      this.record_date = uParseTime(date, '{y}-{m}-{d}')
162
+  }
175
   }
163
   }
176
 </script>
164
 </script>
177
 
165
 

+ 17 - 17
src/xt_pages/dialysis/details/dialysisMonitoring.vue 查看文件

50
 </template>
50
 </template>
51
 
51
 
52
 <script>
52
 <script>
53
-  import store from "@/store";
53
+  import store from '@/store'
54
 
54
 
55
-  import { parseTime } from '@/utils'
55
+import { parseTime } from '@/utils'
56
 
56
 
57
 export default {
57
 export default {
58
   name: 'statOrder',
58
   name: 'statOrder',
59
   data() {
59
   data() {
60
-    return {
61
-      title: '透析监测 '
62
-    }
60
+      return {
61
+        title: '透析监测 '
62
+      }
63
   },
63
   },
64
   props: {
64
   props: {
65
-    monitores: {
66
-      type: Array
67
-    }
65
+      monitores: {
66
+        type: Array
67
+      }
68
   },
68
   },
69
   methods: {
69
   methods: {
70
-    parseTime(time, layout) {
71
-      return parseTime(time, layout)
72
-    },isShow(name){
73
-      var filedList = store.getters.xt_user.fileds
74
-      for (let i = 0; i < filedList.length; i++){
75
-        if(filedList[i].module == 4 && filedList[i].filed_name_cn == name&&filedList[i].is_show == 1){
76
-          return true
70
+      parseTime(time, layout) {
71
+        return parseTime(time, layout)
72
+      }, isShow(name) {
73
+        var filedList = store.getters.xt_user.fileds
74
+        for (let i = 0; i < filedList.length; i++) {
75
+          if (filedList[i].module == 4 && filedList[i].filed_name_cn == name && filedList[i].is_show == 1) {
76
+            return true
77
+          }
77
         }
78
         }
79
+        return false
78
       }
80
       }
79
-      return false
80
-    },
81
   }
81
   }
82
 }
82
 }
83
 </script>
83
 </script>

+ 17 - 21
src/xt_pages/dialysis/details/index.vue 查看文件

305
         device_map: {}, // {device_id: device}
305
         device_map: {}, // {device_id: device}
306
         device_number_map: {}, // {device_number_id: device_number}
306
         device_number_map: {}, // {device_number_id: device_number}
307
 
307
 
308
-        niprocart_info:[],
309
-        jms_info:[],
310
-        fistula_needle_set_info:[],
311
-        fistula_needle_set_16_info:[],
312
-        hemoperfusion_info:[],
313
-        dialyser_sterilised_info:[],
314
-        filtryzer_info:[],
315
-        dialyzers_info:[],
316
-        injector_info:[],
317
-        bloodlines_info:[],
318
-        tubingHemodialysis_info:[],
319
-        safe_package_info:[],
320
-        aliquid_info:[],
321
-        config:{},
308
+        niprocart_info: [],
309
+        jms_info: [],
310
+        fistula_needle_set_info: [],
311
+        fistula_needle_set_16_info: [],
312
+        hemoperfusion_info: [],
313
+        dialyser_sterilised_info: [],
314
+        filtryzer_info: [],
315
+        dialyzers_info: [],
316
+        injector_info: [],
317
+        bloodlines_info: [],
318
+        tubingHemodialysis_info: [],
319
+        safe_package_info: [],
320
+        aliquid_info: [],
321
+        config: {}
322
       }
322
       }
323
     },
323
     },
324
     created() {
324
     created() {
364
         var mrl = this.monitor_records.length
364
         var mrl = this.monitor_records.length
365
         for (let index = 0; index < mrl; index++) {
365
         for (let index = 0; index < mrl; index++) {
366
           if (this.monitor_records[index].id == record_id) {
366
           if (this.monitor_records[index].id == record_id) {
367
-
368
             this.monitor_records.splice(index, 1)
367
             this.monitor_records.splice(index, 1)
369
             break
368
             break
370
           }
369
           }
377
           var resp = rs.data
376
           var resp = rs.data
378
           if (resp.state == 1) {
377
           if (resp.state == 1) {
379
             var patient = resp.data.patient // 患者信息
378
             var patient = resp.data.patient // 患者信息
379
+            console.log('patient是史森明', patient)
380
             var schedual = resp.data.schedual // 患者排班信息
380
             var schedual = resp.data.schedual // 患者排班信息
381
             var prescription = resp.data.prescription // 透析处方
381
             var prescription = resp.data.prescription // 透析处方
382
+            console.log('prescription', prescription)
382
             var solution = resp.data.solution // 透析方案
383
             var solution = resp.data.solution // 透析方案
383
             var receiver_treatment_access = resp.data.receiver_treatment_access // 接诊评估
384
             var receiver_treatment_access = resp.data.receiver_treatment_access // 接诊评估
384
             var predialysis_evaluation = resp.data.predialysis_evaluation // 透前评估
385
             var predialysis_evaluation = resp.data.predialysis_evaluation // 透前评估
386
+            console.log('predialysis_evaluation', predialysis_evaluation)
385
             var doctor_advices = resp.data.doctor_advices // 临时医嘱
387
             var doctor_advices = resp.data.doctor_advices // 临时医嘱
386
             var double_check = resp.data.double_check // 双人核对
388
             var double_check = resp.data.double_check // 双人核对
387
             var assessment_after_dislysis = resp.data.assessment_after_dislysis // 透后评估
389
             var assessment_after_dislysis = resp.data.assessment_after_dislysis // 透后评估
389
             var monitor_records = resp.data.monitor_records // 透析监测
391
             var monitor_records = resp.data.monitor_records // 透析监测
390
             var dialysis_order = resp.data.dialysis_order // 透析记录
392
             var dialysis_order = resp.data.dialysis_order // 透析记录
391
 
393
 
392
-
393
             var niprocart_info = resp.data.niprocart_info
394
             var niprocart_info = resp.data.niprocart_info
394
             var jms_info = resp.data.jms_info
395
             var jms_info = resp.data.jms_info
395
             var fistula_needle_set_info = resp.data.fistula_needle_set_info
396
             var fistula_needle_set_info = resp.data.fistula_needle_set_info
406
 
407
 
407
             var config = resp.data.config
408
             var config = resp.data.config
408
 
409
 
409
-
410
-
411
             this.niprocart_info = niprocart_info
410
             this.niprocart_info = niprocart_info
412
             this.jms_info = jms_info
411
             this.jms_info = jms_info
413
             this.fistula_needle_set_info = fistula_needle_set_info
412
             this.fistula_needle_set_info = fistula_needle_set_info
423
             this.aliquid_info = aliquid_info
422
             this.aliquid_info = aliquid_info
424
             this.config = config
423
             this.config = config
425
 
424
 
426
-
427
-
428
             this.patient = patient
425
             this.patient = patient
429
             this.schedual = schedual == null ? { id: 0 } : schedual
426
             this.schedual = schedual == null ? { id: 0 } : schedual
430
             this.prescription = prescription == null ? { id: 0 } : prescription
427
             this.prescription = prescription == null ? { id: 0 } : prescription
447
             this.dialysis_order =
444
             this.dialysis_order =
448
               dialysis_order == null ? { id: 0 } : dialysis_order
445
               dialysis_order == null ? { id: 0 } : dialysis_order
449
 
446
 
450
-
451
             // this.$refs.stat_order.setAdvices(this.doctor_advices)
447
             // this.$refs.stat_order.setAdvices(this.doctor_advices)
452
             // this.$refs.monitoring.setRecords(this.monitor_records)
448
             // this.$refs.monitoring.setRecords(this.monitor_records)
453
 
449
 

文件差異過大導致無法顯示
+ 1061 - 1239
src/xt_pages/dialysis/dialysisPage.vue


+ 72 - 18
src/xt_pages/sign/index.vue 查看文件

27
                     <el-table-column prop="state" label="状态" min-width="30" align="center">
27
                     <el-table-column prop="state" label="状态" min-width="30" align="center">
28
                         <template slot-scope="scope">
28
                         <template slot-scope="scope">
29
                             <span v-if="scope.row.dialysis_order && scope.row.dialysis_order.stage==2">已下机</span>
29
                             <span v-if="scope.row.dialysis_order && scope.row.dialysis_order.stage==2">已下机</span>
30
-                            <span v-else-if="scope.row.dialysis_order && scope.row.dialysis_order.id>0 ">透析中</span>
31
-                            <span v-else-if="scope.row.signin.id ==0">未签到</span>
30
+                            <span v-else-if="scope.row.dialysis_order && scope.row.dialysis_order.id>0 ">已上机</span>
31
+                            <span v-else-if="scope.row.predialysisevaluation.id ==0">未签到</span>
32
                             <span v-else>已签到</span>
32
                             <span v-else>已签到</span>
33
+
33
                         </template>
34
                         </template>
34
                     </el-table-column>
35
                     </el-table-column>
35
                 </el-table>
36
                 </el-table>
81
                     <el-row :gutter="20">
82
                     <el-row :gutter="20">
82
                         <el-col :span="23" align="right" class="button">
83
                         <el-col :span="23" align="right" class="button">
83
                             <el-button  @click="hide()">取消</el-button>
84
                             <el-button  @click="hide()">取消</el-button>
84
-                            <el-button @click="updateSignweight();sighdata();" type="primary">保存</el-button>
85
+                            <el-button @click="updateSignweight();" type="primary">保存</el-button>
85
                         </el-col>
86
                         </el-col>
86
                     </el-row>
87
                     </el-row>
87
                    </div>
88
                    </div>
93
 </template>
94
 </template>
94
 
95
 
95
 <script>
96
 <script>
96
-import { fetchSignPatients, getPatientSign, getDialysisInforInfomation, getDialysisAfterInfomation, updateSignweight, sighdata } from '@/api/signandweigh'
97
+import { fetchSignPatients, getPatientSign, getDialysisInforInfomation, getDialysisAfterInfomation, updateSignweight, sighdata, getForenoonData } from '@/api/signandweigh'
97
 import BreadCrumb from '../components/bread-crumb'
98
 import BreadCrumb from '../components/bread-crumb'
98
 export default {
99
 export default {
99
   name: 'sign',
100
   name: 'sign',
212
           this.querySignParams.date_time = response.data.data.today
213
           this.querySignParams.date_time = response.data.data.today
213
           if (this.queryParams.need_schedule_type === 1) {
214
           if (this.queryParams.need_schedule_type === 1) {
214
             var sl = this.schedules.length
215
             var sl = this.schedules.length
215
-            console.log('s1是什么东西')
216
+            var panel = response.data.data.panel
217
+            console.log('panel是什么', panel)
218
+            console.log('s1是什么东西', sl)
216
             console.log(sl)
219
             console.log(sl)
217
             for (let index = 0; index < sl; index++) {
220
             for (let index = 0; index < sl; index++) {
218
               if (this.schedules[index].type in response.data.data.panel) {
221
               if (this.schedules[index].type in response.data.data.panel) {
219
                 console.log(this.schedules[index].type)
222
                 console.log(this.schedules[index].type)
220
                 console.log(response.data.data.panel[this.schedules[index].type].schedule)
223
                 console.log(response.data.data.panel[this.schedules[index].type].schedule)
221
                 this.schedules[index].arrange = response.data.data.panel[this.schedules[index].type].schedule
224
                 this.schedules[index].arrange = response.data.data.panel[this.schedules[index].type].schedule
222
-                this.schedules[index].sign = response.data.data.panel[this.schedules[index].type].sign
223
-                this.schedules[index].before = response.data.data.panel[this.schedules[index].type].before
224
-                this.schedules[index].after = response.data.data.panel[this.schedules[index].type].after
225
+                // this.schedules[index].sign = response.data.data.panel[this.schedules[index].type].sign
226
+                // console.log('sign是什么', this.schedules[index].sign)
227
+                // this.schedules[index].before = response.data.data.panel[this.schedules[index].type].before
228
+                // this.schedules[index].after = response.data.data.panel[this.schedules[index].type].after
225
               }
229
               }
226
             }
230
             }
231
+
232
+            for (let index = 0; index < this.patients.length; index++) {
233
+              var sl = this.schedules.length
234
+              for (let j = 0; j < sl; j++) {
235
+                console.log('这个是是呢是什么', this.schedules[j].type)
236
+                console.log('这个是什么', this.patients[index].schedule.schedule_type)
237
+                if (this.schedules[j].type === this.patients[index].schedule.schedule_type) {
238
+                  if (this.patients[index].predialysisevaluation.id !== 0) {
239
+                    this.schedules[j].sign++
240
+                  }
241
+                }
242
+              }
243
+            }
244
+
245
+            // if (this.patients[index].schedule.id > 0 && (this.patients[index].schedule.schedule_type >= 1 || this.patients[index].schedule.schedule_type <= 3)) {
246
+            //   var sl = this.schedules.length
247
+            //   for (let j = 0; j < sl; j++) {
248
+            //     if (this.schedules[j].type === this.patients[index].schedule.schedule_type) {
249
+            //       if ((signin.weigh_before_time === 0 && response.data.data.signs.weigh_before_time > 0) || (signin.weigh_time === 0 && response.data.data.signs.weigh_time > 0)) {
250
+            //         this.schedules[j].sign++
251
+            //       }
252
+            //       if (signin.weigh_before_time === 0 && response.data.data.signs.weigh_before_time > 0) {
253
+            //         this.schedules[j].before++
254
+            //       }
255
+            //       if (signin.weigh_time === 0 && response.data.data.signs.weigh_time > 0) {
256
+            //         this.schedules[j].after++
257
+            //       }
258
+            //     }
259
+            //   }
260
+            // }
227
           }
261
           }
228
         }
262
         }
229
       })
263
       })
230
     },
264
     },
231
     getPatientSign() {
265
     getPatientSign() {
232
       getPatientSign(this.querySignParams).then(response => {
266
       getPatientSign(this.querySignParams).then(response => {
233
-        if (response.data.state == 1) {
267
+        if (response.data.state === 1) {
234
           if (response.data.data.sign != null) {
268
           if (response.data.data.sign != null) {
235
             var sign = response.data.data.sign
269
             var sign = response.data.data.sign
270
+            console.log('sign是什么', sign)
236
             this.weigh_form.dry_weight = sign.dry_weight
271
             this.weigh_form.dry_weight = sign.dry_weight
237
             this.weigh_form.clothes_weight = sign.clothes_weight
272
             this.weigh_form.clothes_weight = sign.clothes_weight
238
             // 透前
273
             // 透前
323
       getDialysisAfterInfomation(id).then(response => {
358
       getDialysisAfterInfomation(id).then(response => {
324
         if (response.data.data.patientinfor != null) {
359
         if (response.data.data.patientinfor != null) {
325
           var patientinfor = response.data.data.patientinfor
360
           var patientinfor = response.data.data.patientinfor
326
-          console.log(patientinfor)
361
+          console.log('patientInfor', patientinfor)
327
           this.weigh_infor.dry_weight = patientinfor.dry_weight
362
           this.weigh_infor.dry_weight = patientinfor.dry_weight
328
           if (this.weigh_infor.dry_weight === 0) {
363
           if (this.weigh_infor.dry_weight === 0) {
329
             this.weigh_infor.dry_weight = ''
364
             this.weigh_infor.dry_weight = ''
364
     },
399
     },
365
 
400
 
366
     updateSignweight() {
401
     updateSignweight() {
402
+      // eslint-disable-next-line no-new-object
367
       var params = new Object()
403
       var params = new Object()
368
       var data_time = this.querySignParams.date_time
404
       var data_time = this.querySignParams.date_time
369
       params.date_time = data_time
405
       params.date_time = data_time
384
 
420
 
385
       updateSignweight(params).then(response => {
421
       updateSignweight(params).then(response => {
386
         if (response.data.state === 1) {
422
         if (response.data.state === 1) {
387
-          this.$message({
388
-            type: 'success',
389
-            message: '成功!'
390
-          })
423
+          var signs = response.data.data.signs
424
+          console.log('signs是什么', signs)
425
+          this.$message.success('成功')
426
+          // this.$message({
427
+          //   type: 'success',
428
+          //   message: '成功!'
429
+          // })
391
         }
430
         }
392
       })
431
       })
393
       console.log('params数据', params)
432
       console.log('params数据', params)
400
       // 透前数据
439
       // 透前数据
401
       var params = new Object()
440
       var params = new Object()
402
       var data_time = this.querySignParams.date_time
441
       var data_time = this.querySignParams.date_time
442
+      console.log('data_time', data_time)
403
       params.date_time = data_time
443
       params.date_time = data_time
404
       params.patient_id = this.weigh_form.patient_id
444
       params.patient_id = this.weigh_form.patient_id
405
       params.dry_weight = this.weigh_list.dry_weight
445
       params.dry_weight = this.weigh_list.dry_weight
421
         var signs = response.data.data.signs
461
         var signs = response.data.data.signs
422
         console.log('signs是什么?', signs)
462
         console.log('signs是什么?', signs)
423
         if (response.data.state === 1) {
463
         if (response.data.state === 1) {
424
-          this.$message({
425
-            type: 'success',
426
-            message: '成功!'
427
-          })
464
+          // this.$message({
465
+          //   type: 'success',
466
+          //   message: '成功!'
467
+          // })
428
           var tlen = this.patients.length
468
           var tlen = this.patients.length
429
 
469
 
430
           for (let index = 0; index < tlen; index++) {
470
           for (let index = 0; index < tlen; index++) {
431
             if (this.patients[index].id === params.patient_id) {
471
             if (this.patients[index].id === params.patient_id) {
432
               var signin = this.patients[index].signin
472
               var signin = this.patients[index].signin
473
+              console.log('signin是什么', signin)
474
+              var sings = response.data.data.signs
475
+              console.log('signs', signs)
476
+
433
               this.patients[index].signin = response.data.data.signs
477
               this.patients[index].signin = response.data.data.signs
434
 
478
 
435
               if (this.patients[index].schedule.id > 0 && (this.patients[index].schedule.schedule_type >= 1 || this.patients[index].schedule.schedule_type <= 3)) {
479
               if (this.patients[index].schedule.id > 0 && (this.patients[index].schedule.schedule_type >= 1 || this.patients[index].schedule.schedule_type <= 3)) {
457
           return false
501
           return false
458
         }
502
         }
459
       })
503
       })
504
+    },
505
+    getForenoonData() {
506
+      getForenoonData().then(response => {
507
+        if (response.data.state === 1) {
508
+          var total = response.data.data.total
509
+          console.log('total', total)
510
+        }
511
+      })
460
     }
512
     }
513
+
461
   },
514
   },
462
   watch: {
515
   watch: {
463
     'weigh_form.weigh_before': function() {
516
     'weigh_form.weigh_before': function() {
514
     this.queryParams.schedule_type = -1
567
     this.queryParams.schedule_type = -1
515
     this.queryParams.need_schedule_type = 1
568
     this.queryParams.need_schedule_type = 1
516
     this.fetchSignPatients()
569
     this.fetchSignPatients()
570
+    this.getForenoonData()
517
   }
571
   }
518
 }
572
 }
519
 </script>
573
 </script>

+ 0 - 1
src/xt_pages/user/doctorAdvice.vue 查看文件

3073
                   }
3073
                   }
3074
                 }
3074
                 }
3075
               } else {
3075
               } else {
3076
-                console.log('111111')
3077
                 for (let index = 0; index < ale; index++) {
3076
                 for (let index = 0; index < ale; index++) {
3078
                   if (
3077
                   if (
3079
                     _this.groupSelectRow.row_key ==
3078
                     _this.groupSelectRow.row_key ==