瀏覽代碼

修改bug和需求

csx 5 年之前
父節點
當前提交
029c526919

+ 1 - 1
build/cdn.json 查看文件

1
 {
1
 {
2
-  "version": "1.0.91"
2
+  "version": "1.0.93"
3
 }
3
 }

+ 8 - 2
src/App.vue 查看文件

7
 
7
 
8
 <script>
8
 <script>
9
 export default {
9
 export default {
10
-  name: "App",
10
+  name: 'App',
11
   provide () {
11
   provide () {
12
     return {
12
     return {
13
       reload: this.reload
13
       reload: this.reload
25
         this.isRouterAlive = true
25
         this.isRouterAlive = true
26
       })
26
       })
27
     }
27
     }
28
+  },
29
+  watch: {
30
+    '$route': function (to, from) {
31
+      document.body.scrollTop = 0
32
+      document.documentElement.scrollTop = 0
33
+    }
28
   }
34
   }
29
 
35
 
30
-};
36
+}
31
 </script>
37
 </script>
32
 
38
 
33
 <style>
39
 <style>

+ 1 - 1
src/pages/home/login.vue 查看文件

45
   computed: {
45
   computed: {
46
     loginDisable() {
46
     loginDisable() {
47
       // return false
47
       // return false
48
-      return this.form.mobile.length == 0 || /^1[2345789]\d{9}$/.test(this.form.mobile) == false || this.form.pwd.length == 0
48
+      return this.form.mobile.length == 0 || this.form.pwd.length == 0
49
     }
49
     }
50
   },
50
   },
51
   created() {
51
   created() {

+ 16 - 5
src/pages/main/DialysisArea.vue 查看文件

16
               }}
16
               }}
17
               <span class="iconfont">&#xe74a;</span>
17
               <span class="iconfont">&#xe74a;</span>
18
             </li>
18
             </li>
19
+
19
             <div class="popover-demo-content">
20
             <div class="popover-demo-content">
20
               <ul>
21
               <ul>
21
                 <li
22
                 <li
59
             {{ selected_date_str }}
60
             {{ selected_date_str }}
60
             <span class="iconfont">&#xe74a;</span>
61
             <span class="iconfont">&#xe74a;</span>
61
           </li>
62
           </li>
63
+
62
           <li @click="mypatient()">
64
           <li @click="mypatient()">
63
             我的病人
65
             我的病人
64
             <span class="iconfont">&#xe74a;</span>
66
             <span class="iconfont">&#xe74a;</span>
65
           </li>
67
           </li>
68
+
66
         </ul>
69
         </ul>
67
       </div>
70
       </div>
71
+
68
       <div class="stateBox">
72
       <div class="stateBox">
69
         <div v-for="(item, index) in filtedScheduals" :key="index">
73
         <div v-for="(item, index) in filtedScheduals" :key="index">
70
           <h2 class="title">{{ item.zone_name }}</h2>
74
           <h2 class="title">{{ item.zone_name }}</h2>
200
         return schedules
204
         return schedules
201
       }
205
       }
202
       if (this.ismypatient) {
206
       if (this.ismypatient) {
207
+        var timetype_selected = this.schedual_type_selected
203
         var schedules = []
208
         var schedules = []
204
         for (let o_i = 0; o_i < this.dialysis_scheduals.length; o_i++) {
209
         for (let o_i = 0; o_i < this.dialysis_scheduals.length; o_i++) {
205
           const scheduleInfo = this.dialysis_scheduals[o_i]
210
           const scheduleInfo = this.dialysis_scheduals[o_i]
211
           for (let s_i = 0; s_i < originSchedules.length; s_i++) {
216
           for (let s_i = 0; s_i < originSchedules.length; s_i++) {
212
             const schedule = originSchedules[s_i]
217
             const schedule = originSchedules[s_i]
213
             if (schedule.dialysis_order.start_nurse == this.user_id) {
218
             if (schedule.dialysis_order.start_nurse == this.user_id) {
214
-              filtedSchedules.push(schedule)
219
+              if (timetype_selected == 0 || schedule.schedule_type == timetype_selected) {
220
+                filtedSchedules.push(schedule)
221
+              }
215
               // break;
222
               // break;
216
             }
223
             }
217
           }
224
           }
240
         for (let s_i = 0; s_i < originSchedules.length; s_i++) {
247
         for (let s_i = 0; s_i < originSchedules.length; s_i++) {
241
           const schedule = originSchedules[s_i]
248
           const schedule = originSchedules[s_i]
242
           if (this.ismypatient) {
249
           if (this.ismypatient) {
250
+            console.log("22222222222222")
251
+
243
             if (schedule.dialysis_order.creator == this.user_id) {
252
             if (schedule.dialysis_order.creator == this.user_id) {
244
               filtedSchedules.push(schedule)
253
               filtedSchedules.push(schedule)
245
-             }
254
+            }
246
           } else {
255
           } else {
247
             if (zone_name.length == 0 || (zone_name.length > 0 && zone_name == schedule.device_number.zone.name)) {
256
             if (zone_name.length == 0 || (zone_name.length > 0 && zone_name == schedule.device_number.zone.name)) {
248
               if (timetype_selected == 0 || schedule.schedule_type == timetype_selected) {
257
               if (timetype_selected == 0 || schedule.schedule_type == timetype_selected) {
265
 
274
 
266
   created () {
275
   created () {
267
     this.user_id = this.$store.getters.user.user.id
276
     this.user_id = this.$store.getters.user.user.id
268
-    
277
+
269
     var storedata = this.$store.getters.scheduals
278
     var storedata = this.$store.getters.scheduals
270
     var scheduals = storedata.scheduals
279
     var scheduals = storedata.scheduals
271
     if (Object.keys(storedata).length > 0) {
280
     if (Object.keys(storedata).length > 0) {
334
       this.reload()
343
       this.reload()
335
     },
344
     },
336
     handletimeType: function (index) {
345
     handletimeType: function (index) {
337
-      this.ismypatient = false
346
+      if(!this.ismypatient){
347
+        this.ismypatient = false
348
+      }
338
       this.sch_type_options_visible = false
349
       this.sch_type_options_visible = false
339
       this.schedual_type_selected = index
350
       this.schedual_type_selected = index
340
       this.$emit('clear_search_keyword')
351
       this.$emit('clear_search_keyword')
381
 
392
 
382
             // console.log(resp.data)
393
             // console.log(resp.data)
383
             var scheduals = resp.data.scheduals
394
             var scheduals = resp.data.scheduals
384
-            this.$store.dispatch("SetScheduals",{scheduals:scheduals})
395
+            this.$store.dispatch('SetScheduals', {scheduals: scheduals})
385
             var zoneMap = {}
396
             var zoneMap = {}
386
             var schedualMap = {}
397
             var schedualMap = {}
387
             for (let index = 0; index < scheduals.length; index++) {
398
             for (let index = 0; index < scheduals.length; index++) {

+ 193 - 197
src/pages/main/PatientBox.vue 查看文件

35
 </template>
35
 </template>
36
 
36
 
37
 <script>
37
 <script>
38
-  import {parseTime} from '@/utils'
39
-  import {jsGetAge} from '@/utils/tools'
40
-  import {
41
-    setDialysisOrWaitSelectedConfig
42
-  } from '@/utils/data_config'
43
-  export default {
44
-    name: 'PatientBox',
45
-    props: {
46
-      patients: Array
47
-    },
48
-    data () {
49
-      return {}
50
-    },
51
-    created(){
52
-      console.log("11111")
53
-      console.log(this.patients)
54
-    },
55
-    methods: {
56
-      getUnReadNum: function (schedual) {
57
-        if (schedual.doctor_advice != null) {
58
-          let doctorAdvice = []
59
-          for (let i = 0; i < schedual.doctor_advice.length; i++) {
60
-            if (schedual.doctor_advice[i].execution_state == 2) {
61
-              doctorAdvice.push(schedual.doctor_advice[i])
62
-            }
38
+import {parseTime} from '@/utils'
39
+import {jsGetAge} from '@/utils/tools'
40
+import {
41
+  setDialysisOrWaitSelectedConfig
42
+} from '@/utils/data_config'
43
+export default {
44
+  name: 'PatientBox',
45
+  props: {
46
+    patients: Array
47
+  },
48
+  data () {
49
+    return {}
50
+  },
51
+  created () {
52
+    console.log('11111')
53
+    console.log(this.patients)
54
+  },
55
+  methods: {
56
+    getUnReadNum: function (schedual) {
57
+      if (schedual.doctor_advice != null) {
58
+        let doctorAdvice = []
59
+        for (let i = 0; i < schedual.doctor_advice.length; i++) {
60
+          if (schedual.doctor_advice[i].execution_state == 2) {
61
+            doctorAdvice.push(schedual.doctor_advice[i])
63
           }
62
           }
64
-          const sorted = this.groupBy(doctorAdvice, function (item) {
65
-            return [item.groupno]
66
-          })
67
-          return sorted.length
68
         }
63
         }
69
-      },
70
-      getStatus: function (schedual) {
71
-        var isShowDot = false
72
-        if (schedual.doctor_advice != null) {
73
-          for (let i = 0; i < schedual.doctor_advice.length; i++) {
74
-            if (schedual.doctor_advice[i].execution_state == 2) {
75
-              isShowDot = true
76
-            }
64
+        const sorted = this.groupBy(doctorAdvice, function (item) {
65
+          return [item.groupno]
66
+        })
67
+        return sorted.length
68
+      }
69
+    },
70
+    getStatus: function (schedual) {
71
+      var isShowDot = false
72
+      if (schedual.doctor_advice != null) {
73
+        for (let i = 0; i < schedual.doctor_advice.length; i++) {
74
+          if (schedual.doctor_advice[i].execution_state == 2) {
75
+            isShowDot = true
77
           }
76
           }
78
-          return isShowDot
79
-
80
-        } else {
81
-          return false
82
-        }
83
-      },
84
-      stateColor: function (schedual) {
85
-        var state = this.computeState(schedual)
86
-        if (state == 1) {
87
-          return 'blue'
88
-        } else if (state == 2) {
89
-          return 'gray'
90
-        } else if (state == 3) {
91
-          return 'red'
92
-        } else if (state == 5){
93
-          return "green1";
94
-        } else if (state == 6){
95
-          return "green2";
96
-        }else {
97
-          return 'blue'
98
-        }
99
-      },
100
-      functionColor: function (schedual) {
101
-        var state = this.computeState(schedual)
102
-        if (state == 1 || state == 3) {
103
-          return 'blue'
104
-        } else if (state == 2) {
105
-          return 'gray'
106
-        } else {
107
-          return 'blue'
108
-        }
109
-      },
110
-      borderColor: function (schedual) {
111
-        var yc = this.isAbnormal(schedual)
112
-        if (yc == true) {
113
-          return 'red'
114
-        } else {
115
-          return 'gray'
116
-        }
117
-      },
118
-      stateText: function (schedual) {
119
-        var state = this.computeState(schedual)
120
-        if (state == 1) {
121
-          return '已上机'
122
-        } else if (state == 2) {
123
-          return '已下机'
124
-        } else if (state == 3) {
125
-          return '监测中'
126
-        }else if (state == 5) {
127
-          return '待称重'
128
-        }else if (state == 6) {
129
-          return '待开处方'
130
-        } else {
131
-          // return schedual.patient.gender == 1 ? "男" : "女"
132
-          return '未上机'
133
-        }
134
-      },
135
-      computeState: function (schedual) {
136
-        if (schedual.assessment_before_dislysis == null ||schedual.assessment_before_dislysis.weight_before == 0){
137
-          // 未签到称重
138
-          return 5
139
-        }
140
-        if(schedual.prescription == null || schedual.prescription.creater == 0){
141
-          // 未确认处方
142
-          return 6
143
         }
77
         }
78
+        return isShowDot
79
+      } else {
80
+        return false
81
+      }
82
+    },
83
+    stateColor: function (schedual) {
84
+      var state = this.computeState(schedual)
85
+      if (state == 1) {
86
+        return 'blue'
87
+      } else if (state == 2) {
88
+        return 'gray'
89
+      } else if (state == 3) {
90
+        return 'red'
91
+      } else if (state == 5) {
92
+        return 'green1'
93
+      } else if (state == 6) {
94
+        return 'green2'
95
+      } else {
96
+        return 'blue'
97
+      }
98
+    },
99
+    functionColor: function (schedual) {
100
+      var state = this.computeState(schedual)
101
+      if (state == 1 || state == 3) {
102
+        return 'blue'
103
+      } else if (state == 2) {
104
+        return 'gray'
105
+      } else {
106
+        return 'blue'
107
+      }
108
+    },
109
+    borderColor: function (schedual) {
110
+      var yc = this.isAbnormal(schedual)
111
+      if (yc == true) {
112
+        return 'red'
113
+      } else {
114
+        return 'gray'
115
+      }
116
+    },
117
+    stateText: function (schedual) {
118
+      var state = this.computeState(schedual)
119
+      if (state == 1) {
120
+        return '已上机'
121
+      } else if (state == 2) {
122
+        return '已下机'
123
+      } else if (state == 3) {
124
+        return '监测中'
125
+      } else if (state == 5) {
126
+        return '待称重'
127
+      } else if (state == 6) {
128
+        return '待开处方'
129
+      } else {
130
+        // return schedual.patient.gender == 1 ? "男" : "女"
131
+        return '未上机'
132
+      }
133
+    },
134
+    computeState: function (schedual) {
135
+      if (schedual.assessment_before_dislysis == null || schedual.assessment_before_dislysis.weight_before == 0) {
136
+        // 未签到称重
137
+        return 5
138
+      }
139
+      if (schedual.prescription == null || schedual.prescription.creater == 0) {
140
+        // 未确认处方
141
+        return 6
142
+      }
144
 
143
 
145
-        if (schedual.dialysis_order == null) {
146
-          // 未上机
147
-          return 4
148
-        } else if (schedual.dialysis_order.stage == 2) {
149
-          // 已下机
150
-          return 2
151
-        } else if (
152
-          schedual.dialysis_order.stage == 1 &&
144
+      if (schedual.dialysis_order == null) {
145
+        // 未上机
146
+        return 4
147
+      } else if (schedual.dialysis_order.stage == 2) {
148
+        // 已下机
149
+        return 2
150
+      } else if (
151
+        schedual.dialysis_order.stage == 1 &&
153
           schedual.monitoring_records != null &&
152
           schedual.monitoring_records != null &&
154
           schedual.monitoring_records.length > 1
153
           schedual.monitoring_records.length > 1
155
-        ) {
156
-          // 监测中
157
-          return 3
158
-        } else {
159
-          return 1
160
-        }
161
-      },
154
+      ) {
155
+        // 监测中
156
+        return 3
157
+      } else {
158
+        return 1
159
+      }
160
+    },
162
 
161
 
163
-      orderState: function (schedual) {
164
-        if (schedual.dialysis_order == null) {
165
-          // 未上机
166
-          return 4
167
-        } else if (schedual.dialysis_order.stage == 2) {
168
-          // 已下机
169
-          return 2
170
-        } else if (
171
-          schedual.dialysis_order.stage == 1 &&
162
+    orderState: function (schedual) {
163
+      if (schedual.dialysis_order == null) {
164
+        // 未上机
165
+        return 4
166
+      } else if (schedual.dialysis_order.stage == 2) {
167
+        // 已下机
168
+        return 2
169
+      } else if (
170
+        schedual.dialysis_order.stage == 1 &&
172
           schedual.monitoring_records != null &&
171
           schedual.monitoring_records != null &&
173
           schedual.monitoring_records.length > 1
172
           schedual.monitoring_records.length > 1
174
-        ) {
175
-          // 监测中
176
-          return 3
177
-        } else {
178
-          return 1
179
-        }
180
-      },
181
-      isAbnormal: function (schedual) {
182
-        return false // schedual.yc;
183
-      },
184
-      timeTypeText: function (schedual) {
185
-        if (schedual.schedule_type == 1) {
186
-          return '上午'
187
-        } else if (schedual.schedule_type == 2) {
188
-          return '下午'
189
-        } else {
190
-          return '晚上'
191
-        }
192
-      },
193
-      genderText: function (schedual) {
194
-        if (schedual.patient.gender == 0) {
195
-          return '未知'
196
-        } else if (schedual.patient.gender == 1) {
197
-          return '男'
198
-        } else {
199
-          return '女'
200
-        }
201
-      },
202
-      age: function (schedual) {
203
-        if (schedual.patient.age == 0) {
204
-
205
-          return jsGetAge(parseTime(schedual.patient.birthday, '{y}-{m}-{d}'), '-')
206
-
207
-        } else {
173
+      ) {
174
+        // 监测中
175
+        return 3
176
+      } else {
177
+        return 1
178
+      }
179
+    },
180
+    isAbnormal: function (schedual) {
181
+      return false // schedual.yc;
182
+    },
183
+    timeTypeText: function (schedual) {
184
+      if (schedual.schedule_type == 1) {
185
+        return '上午'
186
+      } else if (schedual.schedule_type == 2) {
187
+        return '下午'
188
+      } else {
189
+        return '晚上'
190
+      }
191
+    },
192
+    genderText: function (schedual) {
193
+      if (schedual.patient.gender == 0) {
194
+        return '未知'
195
+      } else if (schedual.patient.gender == 1) {
196
+        return '男'
197
+      } else {
198
+        return '女'
199
+      }
200
+    },
201
+    age: function (schedual) {
202
+      if (schedual.patient.age == 0) {
203
+        return jsGetAge(parseTime(schedual.patient.birthday, '{y}-{m}-{d}'), '-')
204
+      } else {
205
+        return schedual.patient.age
206
+      }
208
 
207
 
209
-          return schedual.patient.age
210
-        }
208
+      // var now = new Date();
209
+      // var nowYear = parseTime(now, "{y}");
210
+      // var birthdayYear = parseTime(schedual.patient.birthday, "{y}");
211
+      // // console.log(nowYear)
212
+      // // console.log(birthdayYear)
213
+      // return nowYear - birthdayYear;
214
+    },
215
+    groupBy (array, f) {
216
+      const groups = {}
217
+      array.forEach(function (o) {
218
+        const group = JSON.stringify(f(o))
219
+        groups[group] = groups[group] || []
220
+        groups[group].push(o)
221
+      })
222
+      return Object.keys(groups).map(function (group) {
223
+        return groups[group]
224
+      })
225
+    },
226
+    detailAction: function (schedual) {
227
+      if (schedual.dialysis_order != null) {
228
+        setDialysisOrWaitSelectedConfig(1)
229
+      } else {
230
+        setDialysisOrWaitSelectedConfig(0)
231
+      }
211
 
232
 
212
-        // var now = new Date();
213
-        // var nowYear = parseTime(now, "{y}");
214
-        // var birthdayYear = parseTime(schedual.patient.birthday, "{y}");
215
-        // // console.log(nowYear)
216
-        // // console.log(birthdayYear)
217
-        // return nowYear - birthdayYear;
218
-      }, groupBy (array, f) {
219
-        const groups = {}
220
-        array.forEach(function (o) {
221
-          const group = JSON.stringify(f(o))
222
-          groups[group] = groups[group] || []
223
-          groups[group].push(o)
224
-        })
225
-        return Object.keys(groups).map(function (group) {
226
-          return groups[group]
227
-        })
228
-      },
229
-      detailAction: function (schedual) {
230
-        if(schedual.dialysis_order != null){
231
-          setDialysisOrWaitSelectedConfig(1)
232
-        }else{
233
-          setDialysisOrWaitSelectedConfig(0)
233
+      var patient_id = schedual.patient_id
234
+      var date = schedual.schedule_date
235
+      this.$router.push({
236
+        path: '/details',
237
+        query: {
238
+          patient_id: patient_id,
239
+          date: date,
240
+          patient_name: schedual.patient.name
234
         }
241
         }
235
-
236
-        var patient_id = schedual.patient_id
237
-        var date = schedual.schedule_date
238
-        this.$router.push({
239
-          path: '/details',
240
-          query: {
241
-            patient_id: patient_id,
242
-            date: date,
243
-            patient_name: schedual.patient.name
244
-          }
245
-        })
246
-      }
242
+      })
247
     }
243
     }
248
   }
244
   }
245
+}
249
 </script>
246
 </script>
250
 
247
 
251
 <style style="stylesheet/scss" lang="scss" scoped>
248
 <style style="stylesheet/scss" lang="scss" scoped>
393
     font-size: 14px;
390
     font-size: 14px;
394
   }
391
   }
395
 </style>
392
 </style>
396
-

+ 48 - 6
src/pages/main/dialog/AssessmentDialog.vue 查看文件

606
             this.isHasOther = 2
606
             this.isHasOther = 2
607
             this.propForm.type = 1
607
             this.propForm.type = 1
608
             this.isShowDialog = false
608
             this.isShowDialog = false
609
+            this.propForm.isShowOther = 2
610
+
609
             this.propForm.title = '前次透析后'
611
             this.propForm.title = '前次透析后'
610
             this.visibility = true
612
             this.visibility = true
611
             this.propForm.list = getDataConfig('hemodialysis', 'last_dialysis_after')
613
             this.propForm.list = getDataConfig('hemodialysis', 'last_dialysis_after')
629
           case 'dialysis_interphase':
631
           case 'dialysis_interphase':
630
             this.propForm.result = []
632
             this.propForm.result = []
631
             this.isHasOther = 2
633
             this.isHasOther = 2
634
+            this.propForm.isShowOther = 2
632
 
635
 
633
             this.propForm.type = 2
636
             this.propForm.type = 2
634
             this.isShowDialog = false
637
             this.isShowDialog = false
652
           case 'symptom_before_dialysis':
655
           case 'symptom_before_dialysis':
653
             this.propForm.result = []
656
             this.propForm.result = []
654
             this.isHasOther = 2
657
             this.isHasOther = 2
658
+            this.propForm.isShowOther = 2
655
 
659
 
656
             this.propForm.type = 3
660
             this.propForm.type = 3
657
             this.isShowDialog = false
661
             this.isShowDialog = false
675
           case 'catheter':
679
           case 'catheter':
676
             this.propForm.result = []
680
             this.propForm.result = []
677
             this.isHasOther = 2
681
             this.isHasOther = 2
682
+            this.propForm.isShowOther = 1
678
 
683
 
679
             this.propForm.type = 4
684
             this.propForm.type = 4
680
             this.isShowDialog = false
685
             this.isShowDialog = false
698
             break
703
             break
699
           case 'complication':
704
           case 'complication':
700
             this.propForm.result = []
705
             this.propForm.result = []
701
-            this.isHasOther = 2
706
+            this.isHasOther = 1
707
+            this.propForm.isShowOther = 2
702
 
708
 
703
             this.propForm.type = 5
709
             this.propForm.type = 5
704
             this.isShowDialog = false
710
             this.isShowDialog = false
723
 
729
 
724
           case 'blood_access_part':
730
           case 'blood_access_part':
725
             this.isHasOther = 2
731
             this.isHasOther = 2
732
+            this.propForm.isShowOther = 1
726
 
733
 
727
             this.propForm.type = 6
734
             this.propForm.type = 6
728
             this.isShowDialog = false
735
             this.isShowDialog = false
737
 
744
 
738
           case 'blood_access_opera':
745
           case 'blood_access_opera':
739
             this.isHasOther = 2
746
             this.isHasOther = 2
747
+            this.propForm.isShowOther = 1
740
 
748
 
741
             this.propForm.type = 7
749
             this.propForm.type = 7
742
             this.isShowDialog = false
750
             this.isShowDialog = false
752
           case 'internal_fistula':
760
           case 'internal_fistula':
753
             this.propForm.result = []
761
             this.propForm.result = []
754
             this.isHasOther = 2
762
             this.isHasOther = 2
763
+            this.propForm.isShowOther = 1
755
 
764
 
756
             this.propForm.type = 8
765
             this.propForm.type = 8
757
             this.isShowDialog = false
766
             this.isShowDialog = false
777
           case 'hemorrhage':
786
           case 'hemorrhage':
778
             this.propForm.result = []
787
             this.propForm.result = []
779
             this.isHasOther = 2
788
             this.isHasOther = 2
789
+            this.propForm.isShowOther = 1
780
 
790
 
781
             this.propForm.type = 9
791
             this.propForm.type = 9
782
             this.isShowDialog = false
792
             this.isShowDialog = false
801
           case 'internal_fistula_skin':
811
           case 'internal_fistula_skin':
802
             this.propForm.result = []
812
             this.propForm.result = []
803
             this.isHasOther = 2
813
             this.isHasOther = 2
814
+            this.propForm.isShowOther = 1
804
 
815
 
805
             this.propForm.type = 10
816
             this.propForm.type = 10
806
             this.isShowDialog = false
817
             this.isShowDialog = false
824
 
835
 
825
           case 'catheter_bend':
836
           case 'catheter_bend':
826
             this.isHasOther = 2
837
             this.isHasOther = 2
838
+            this.propForm.isShowOther = 1
827
 
839
 
828
             this.propForm.type = 11
840
             this.propForm.type = 11
829
             this.isShowDialog = false
841
             this.isShowDialog = false
840
             this.propForm.result = []
852
             this.propForm.result = []
841
             this.propForm.isHasOther = 2
853
             this.propForm.isHasOther = 2
842
             this.propForm.type = 12
854
             this.propForm.type = 12
855
+            this.propForm.isShowOther = 1
856
+
843
             this.isShowDialog = false
857
             this.isShowDialog = false
844
             this.propForm.title = '血管通路(内瘘)'
858
             this.propForm.title = '血管通路(内瘘)'
845
             this.visibility = true
859
             this.visibility = true
861
 
875
 
862
           case 'blood_access_noise':
876
           case 'blood_access_noise':
863
             this.propForm.isHasOther = 2
877
             this.propForm.isHasOther = 2
878
+            this.propForm.isShowOther = 1
864
 
879
 
865
             this.propForm.type = 13
880
             this.propForm.type = 13
866
             this.isShowDialog = false
881
             this.isShowDialog = false
875
 
890
 
876
           case 'venous_catheterization':
891
           case 'venous_catheterization':
877
             this.propForm.isHasOther = 2
892
             this.propForm.isHasOther = 2
893
+            this.propForm.isShowOther = 1
878
 
894
 
879
             this.propForm.type = 14
895
             this.propForm.type = 14
880
             this.isShowDialog = false
896
             this.isShowDialog = false
892
             this.propForm.type = 15
908
             this.propForm.type = 15
893
             this.isShowDialog = false
909
             this.isShowDialog = false
894
             this.propForm.title = '位置'
910
             this.propForm.title = '位置'
911
+            this.propForm.isShowOther = 1
912
+
895
             this.visibility = true
913
             this.visibility = true
896
             this.propForm.list = []
914
             this.propForm.list = []
897
             this.propForm.optionList = this.$store.getters.venous_catheterization_part
915
             this.propForm.optionList = this.$store.getters.venous_catheterization_part
905
             this.propForm.type = 16
923
             this.propForm.type = 16
906
             this.isShowDialog = false
924
             this.isShowDialog = false
907
             this.propForm.title = '中心静脉导管'
925
             this.propForm.title = '中心静脉导管'
926
+            this.propForm.isShowOther = 1
927
+
908
             this.visibility = true
928
             this.visibility = true
909
             this.propForm.list = this.$store.getters.ductus_arantii
929
             this.propForm.list = this.$store.getters.ductus_arantii
910
             this.propForm.optionList = []
930
             this.propForm.optionList = []
931
             this.isShowDialog = false
951
             this.isShowDialog = false
932
             this.propForm.title = '急诊'
952
             this.propForm.title = '急诊'
933
             this.visibility = true
953
             this.visibility = true
954
+            this.propForm.isShowOther = 1
955
+
934
             this.propForm.list = []
956
             this.propForm.list = []
935
             this.propForm.optionList = this.$store.getters.emergency_treatment
957
             this.propForm.optionList = this.$store.getters.emergency_treatment
936
             this.propForm.isMultiple = 1
958
             this.propForm.isMultiple = 1
944
             this.propForm.title = '穿刺方式'
966
             this.propForm.title = '穿刺方式'
945
             this.visibility = true
967
             this.visibility = true
946
             this.propForm.list = []
968
             this.propForm.list = []
969
+            this.propForm.isShowOther = 1
970
+
947
             this.propForm.optionList = this.$store.getters.puncture_way
971
             this.propForm.optionList = this.$store.getters.puncture_way
948
             this.propForm.isMultiple = 1
972
             this.propForm.isMultiple = 1
949
             this.propForm.selectId = this.formValue.puncture_way
973
             this.propForm.selectId = this.formValue.puncture_way
954
             this.isShowDialog = false
978
             this.isShowDialog = false
955
             this.propForm.title = '出血'
979
             this.propForm.title = '出血'
956
             this.visibility = true
980
             this.visibility = true
981
+            this.propForm.isShowOther = 1
982
+
957
             this.propForm.list = []
983
             this.propForm.list = []
958
             this.propForm.optionList = this.hemorrhages
984
             this.propForm.optionList = this.hemorrhages
959
             this.propForm.isMultiple = 1
985
             this.propForm.isMultiple = 1
966
             this.isShowDialog = false
992
             this.isShowDialog = false
967
             this.propForm.title = '感染'
993
             this.propForm.title = '感染'
968
             this.visibility = true
994
             this.visibility = true
995
+            this.propForm.isShowOther = 1
996
+
969
             this.propForm.list = []
997
             this.propForm.list = []
970
             this.propForm.optionList = this.infects
998
             this.propForm.optionList = this.infects
971
             this.propForm.isMultiple = 1
999
             this.propForm.isMultiple = 1
979
             this.isShowDialog = false
1007
             this.isShowDialog = false
980
             this.propForm.title = '皮肤'
1008
             this.propForm.title = '皮肤'
981
             this.visibility = true
1009
             this.visibility = true
1010
+            this.propForm.isShowOther = 1
1011
+
982
             this.propForm.list = []
1012
             this.propForm.list = []
983
             this.propForm.optionList = this.$store.getters.skin
1013
             this.propForm.optionList = this.$store.getters.skin
984
             this.propForm.isMultiple = 1
1014
             this.propForm.isMultiple = 1
991
             this.propForm.isHasOther = 2
1021
             this.propForm.isHasOther = 2
992
             this.propForm.type = 22
1022
             this.propForm.type = 22
993
             this.isShowDialog = false
1023
             this.isShowDialog = false
1024
+            this.propForm.isShowOther = 1
1025
+
994
             this.propForm.title = '穿刺针'
1026
             this.propForm.title = '穿刺针'
995
             this.visibility = true
1027
             this.visibility = true
996
             this.propForm.list = this.$store.getters.puncture_needle
1028
             this.propForm.list = this.$store.getters.puncture_needle
1242
       }
1274
       }
1243
       this.record_date = y + '-' + (m < 10 ? '0' + m : m) + '-' + (d < 10 ? '0' + d : d)
1275
       this.record_date = y + '-' + (m < 10 ? '0' + m : m) + '-' + (d < 10 ? '0' + d : d)
1244
       this.formValue = this.predialysis
1276
       this.formValue = this.predialysis
1245
-      console.log("3333333")
1246
 
1277
 
1247
       if (this.predialysis.id == undefined && this.last_predialysis.id != undefined) {
1278
       if (this.predialysis.id == undefined && this.last_predialysis.id != undefined) {
1248
-        console.log("111111")
1249
         this.$set(this.formValue, 'additional_weight', this.last_predialysis['additional_weight'].toString())
1279
         this.$set(this.formValue, 'additional_weight', this.last_predialysis['additional_weight'].toString())
1250
         this.$set(this.formValue, 'internal_fistula', this.last_predialysis['internal_fistula'])
1280
         this.$set(this.formValue, 'internal_fistula', this.last_predialysis['internal_fistula'])
1251
         this.$set(this.formValue, 'internal_fistula_skin', this.last_predialysis['internal_fistula_skin'])
1281
         this.$set(this.formValue, 'internal_fistula_skin', this.last_predialysis['internal_fistula_skin'])
1252
         this.$set(this.formValue, 'blood_access_part_id', this.last_predialysis['blood_access_part_id'])
1282
         this.$set(this.formValue, 'blood_access_part_id', this.last_predialysis['blood_access_part_id'])
1253
         this.$set(this.formValue, 'blood_access_part_opera_id', this.last_predialysis['blood_access_part_opera_id'])
1283
         this.$set(this.formValue, 'blood_access_part_opera_id', this.last_predialysis['blood_access_part_opera_id'])
1284
+
1285
+
1286
+        // this.$set(this.formValue, 'complication', this.last_predialysis['complication'])
1287
+        // this.$set(this.formValue, 'last_post_dialysis', this.last_predialysis['last_post_dialysis'])
1288
+        // this.$set(this.formValue, 'dialysis_interphase', this.last_predialysis['dialysis_interphase'])
1289
+        // this.$set(this.formValue, 'symptom_before_dialysis', this.last_predialysis['symptom_before_dialysis'])
1290
+        // this.$set(this.formValue, 'puncture_needle', this.last_predialysis['puncture_needle'])
1291
+        // this.$set(this.formValue, 'puncture_way', this.last_predialysis['puncture_way'])
1292
+        //
1293
+        //
1294
+        // this.$set(this.formValue, 'temperature', this.last_predialysis['temperature'])
1295
+        // this.$set(this.formValue, 'breathing_rate', this.last_predialysis['breathing_rate'])
1296
+        // this.$set(this.formValue, 'catheter', this.last_predialysis['catheter'])
1297
+        // this.$set(this.formValue, 'internal_fistula', this.last_predialysis['internal_fistula'])
1298
+        // this.$set(this.formValue, 'pulse_frequency', this.last_predialysis['pulse_frequency'])
1254
       }
1299
       }
1255
 
1300
 
1256
       if(this.$store.getters.user.template_info.template_id != 6 && this.predialysis.id == undefined && this.last_predialysis.id != undefined){
1301
       if(this.$store.getters.user.template_info.template_id != 6 && this.predialysis.id == undefined && this.last_predialysis.id != undefined){
1257
-        console.log("222222")
1258
-
1259
         this.$set(this.formValue, 'dry_weight', this.last_predialysis['dry_weight'].toString())
1302
         this.$set(this.formValue, 'dry_weight', this.last_predialysis['dry_weight'].toString())
1260
       }
1303
       }
1261
 
1304
 
1262
       if (this.$store.getters.user.template_info.template_id == 6 ) {
1305
       if (this.$store.getters.user.template_info.template_id == 6 ) {
1263
-        console.log("333333333")
1264
 
1306
 
1265
         if(this.dry_weight != null && this.dry_weight.id != undefined){
1307
         if(this.dry_weight != null && this.dry_weight.id != undefined){
1266
           this.$set(this.formValue, 'dry_weight', this.dry_weight.dry_weight.toString())
1308
           this.$set(this.formValue, 'dry_weight', this.dry_weight.dry_weight.toString())

+ 3 - 3
src/pages/main/dialog/MonitDialog.vue 查看文件

346
   methods: {
346
   methods: {
347
     venousPressureChange (type) {
347
     venousPressureChange (type) {
348
       if (type == 1) {
348
       if (type == 1) {
349
-        this.form.venous_pressure = this.form.venous_pressure * 7.5
349
+        this.form.venous_pressure =Math.ceil(Math.round(this.form.venous_pressure * 7.5))
350
       } else if (type == 2) {
350
       } else if (type == 2) {
351
-        this.form.transmembrane_pressure = this.form.transmembrane_pressure * 7.5
351
+        this.form.transmembrane_pressure = Math.ceil(Math.round(this.form.transmembrane_pressure * 7.5))
352
       } else {
352
       } else {
353
-        this.form.arterial_pressure = this.form.arterial_pressure * 7.5
353
+        this.form.arterial_pressure =  Math.ceil(Math.round(this.form.arterial_pressure * 7.5))
354
       }
354
       }
355
     },
355
     },
356
     isShow (name) {
356
     isShow (name) {

+ 2 - 3
src/pages/main/dialog/OrdersDialog.vue 查看文件

79
                   <div class="txt">
79
                   <div class="txt">
80
                     <span>{{advice.advice_name }}</span>
80
                     <span>{{advice.advice_name }}</span>
81
                     <span v-if="advice.advice_desc">{{ advice.advice_desc }}{{advice.drug_spec_unit}}</span>
81
                     <span v-if="advice.advice_desc">{{ advice.advice_desc }}{{advice.drug_spec_unit}}</span>
82
-                    <span v-if="advice.prescribing_number">{{advice.prescribing_number}}{{advice.prescribing_number_unit}}</span>
83
-                    <span v-if="advice.single_dose"
84
-                    >单次用量{{advice.single_dose}}{{advice.single_dose_unit}}</span>
82
+                    <span v-if="advice.prescribing_number && template_id != 6">{{advice.prescribing_number}}{{advice.prescribing_number_unit}}</span>
83
+                    <span v-if="advice.single_dose && template_id != 6" >单次用量{{advice.single_dose}}{{advice.single_dose_unit}}</span>
85
                     <span v-if="advice.parent_id == 0">{{advice.delivery_way}}</span>
84
                     <span v-if="advice.parent_id == 0">{{advice.delivery_way}}</span>
86
                     <span v-if="advice.parent_id == 0">{{advice.execution_frequency}}</span>
85
                     <span v-if="advice.parent_id == 0">{{advice.execution_frequency}}</span>
87
                     <span v-if="advice.parent_id == 0 && advice.remark.length > 0">({{advice.remark}})</span>
86
                     <span v-if="advice.parent_id == 0 && advice.remark.length > 0">({{advice.remark}})</span>

+ 49 - 19
src/pages/main/dialog/PrescriptionDialog.vue 查看文件

35
         </div>
35
         </div>
36
 
36
 
37
         <div class="item" v-if="isShow('目标超滤量')">
37
         <div class="item" v-if="isShow('目标超滤量')">
38
-          <label class="name" for="mbcll">目标超滤量(L)</label>
38
+          <label class="name" for="mbcll" v-if="this.$store.getters.user.template_info.template_id == 6">目标超滤量(ml)</label>
39
+          <label class="name" for="mbcll" v-if="this.$store.getters.user.template_info.template_id != 6">目标超滤量(L)</label>
39
           <div class="content">
40
           <div class="content">
40
             <input type="tel" @focus="inputFocus" id="mbcll" v-model="dialysisPrescription.target_ultrafiltration"/>
41
             <input type="tel" @focus="inputFocus" id="mbcll" v-model="dialysisPrescription.target_ultrafiltration"/>
41
           </div>
42
           </div>
215
         </div>
216
         </div>
216
 
217
 
217
         <div @click="showSubMenu('displace_liqui_part')" class="item" ref="displace_liqui_part" v-if="isShow('置换液')">
218
         <div @click="showSubMenu('displace_liqui_part')" class="item" ref="displace_liqui_part" v-if="isShow('置换液')">
218
-          <label class="name" for="knj">置换液</label>
219
+          <label class="name" for="knj" v-if="this.$store.getters.user.template_info.template_id == 6">置换方式</label>
220
+          <label class="name" for="knj" v-if="this.$store.getters.user.template_info.template_id != 6">置换液</label>
219
           <div class="content">
221
           <div class="content">
220
             <span class="text" id="knjaa">{{getDisplaceLiquiPart(dialysisPrescription.displace_liqui_part)}}</span>
222
             <span class="text" id="knjaa">{{getDisplaceLiquiPart(dialysisPrescription.displace_liqui_part)}}</span>
221
             <span class="iconfont">&#xe6f9;</span>
223
             <span class="iconfont">&#xe6f9;</span>
527
           selectId: 0
529
           selectId: 0
528
         }
530
         }
529
       }
531
       }
530
-    },
532
+    },computed: {
533
+      // 计算属性的 getter
531
 
534
 
532
-    methods: {
535
+    }, methods: {
533
       showmsgtip () {
536
       showmsgtip () {
534
         this.msgtip_visibility = true
537
         this.msgtip_visibility = true
535
         this.isShowDialog = false
538
         this.isShowDialog = false
922
             break
925
             break
923
           case 4:
926
           case 4:
924
             this.dialysisPrescription.replacement_way = val.selectId
927
             this.dialysisPrescription.replacement_way = val.selectId
928
+            console.log(this.dialysisPrescription.replacement_way)
925
             break
929
             break
926
           case 5:
930
           case 5:
927
             this.dialysisPrescription.anticoagulant = val.selectId
931
             this.dialysisPrescription.anticoagulant = val.selectId
957
             treatment_mode_name = treatment_mode[keys].name
961
             treatment_mode_name = treatment_mode[keys].name
958
           }
962
           }
959
         }
963
         }
960
-        for (let keys in treatment_mode) {
961
-          if (treatment_mode[keys].id == val) {
962
-            treatment_mode_name = treatment_mode[keys].name
963
-            console.log('这是什么', treatment_mode[keys].name)
964
-            if (treatment_mode_name == 'HD') {
965
-              this.zhiShow = false
966
-              this.totalShow = false
967
-              this.huShow = false
968
-            } else {
969
-              this.zhiShow = true
970
-              this.totalShow = true
971
-              this.huShow = true
972
-            }
973
-          }
974
-        }
964
+        // for (let keys in treatment_mode) {
965
+        //   if (treatment_mode[keys].id == val) {
966
+        //     treatment_mode_name = treatment_mode[keys].name
967
+        //     if (treatment_mode_name == 'HD') {
968
+        //       this.zhiShow = false
969
+        //       this.totalShow = false
970
+        //       this.huShow = false
971
+        //     } else {
972
+        //       this.zhiShow = true
973
+        //       this.totalShow = true
974
+        //       this.huShow = true
975
+        //     }
976
+        //   }
977
+        // }
975
 
978
 
976
         return treatment_mode_name
979
         return treatment_mode_name
977
       },
980
       },
1031
         return anticoagulan_name
1034
         return anticoagulan_name
1032
       },
1035
       },
1033
       commitInfo: function () {
1036
       commitInfo: function () {
1037
+
1038
+        if(this.$store.getters.user.template_info.template_id == 6) {
1039
+          if (this.dialysisPrescription.mode_id == 2) {
1040
+            if (this.dialysisPrescription.displace_liqui_part == 0 || this.dialysisPrescription.displace_liqui_part == -2 || this.dialysisPrescription.replacement_total == 0 || this.dialysisPrescription.replacement_total == "") {
1041
+              Toast.fail("HDF模式下置换方式和置换量不能为空!")
1042
+              return
1043
+            }
1044
+          }
1045
+        }
1046
+
1034
         this.is_pre = 1
1047
         this.is_pre = 1
1035
         if (this.prescription_prop.id == '') {
1048
         if (this.prescription_prop.id == '') {
1036
 
1049
 
1317
 
1330
 
1318
         }
1331
         }
1319
       }, commitSolutionInfo: function () {
1332
       }, commitSolutionInfo: function () {
1333
+        if(this.$store.getters.user.template_info.template_id == 6) {
1334
+          if (this.dialysisPrescription.mode_id == 2) {
1335
+            if (this.dialysisPrescription.displace_liqui_part == 0 || this.dialysisPrescription.displace_liqui_part == -2 || this.dialysisPrescription.replacement_total == 0 || this.dialysisPrescription.replacement_total == "") {
1336
+              Toast.fail("HDF模式下置换方式和置换量不能为空!")
1337
+              return
1338
+            }
1339
+          }
1340
+        }
1320
         this.is_pre = 2
1341
         this.is_pre = 2
1321
 
1342
 
1322
         if (this.prescription_prop.id == '') {
1343
         if (this.prescription_prop.id == '') {
1865
       CheckBoxSubMenu
1886
       CheckBoxSubMenu
1866
     },
1887
     },
1867
     watch: {
1888
     watch: {
1889
+      "dialysisPrescription.anticoagulant_shouji":function(val){
1890
+        console.log(val)
1891
+        this.dialysisPrescription.anticoagulant_zongliang = parseInt(this.dialysisPrescription.anticoagulant_shouji) + parseInt(this.dialysisPrescription.anticoagulant_weichi)
1892
+
1893
+      }, "dialysisPrescription.anticoagulant_weichi":function(val){
1894
+        console.log(val)
1895
+        this.dialysisPrescription.anticoagulant_zongliang = parseInt(this.dialysisPrescription.anticoagulant_shouji) + parseInt(this.dialysisPrescription.anticoagulant_weichi)
1896
+      },
1897
+
1868
       isShowDialog (val) {
1898
       isShowDialog (val) {
1869
         if (val) {
1899
         if (val) {
1870
           this.advice_visibility = false
1900
           this.advice_visibility = false

文件差異過大導致無法顯示
+ 300 - 269
src/pages/main/dialog/ThorougDialog.vue


+ 1 - 1
src/pages/main/dialog/subMenu/MsgTip.vue 查看文件

41
         <div class="item">
41
         <div class="item">
42
           <label class="name" for="txms">体重增加(kg)</label>
42
           <label class="name" for="txms">体重增加(kg)</label>
43
           <div class="content">
43
           <div class="content">
44
-            <span class="text" id="txms">{{prescription_prop.dewater_amount}}</span>
44
+            <span class="text" id="txms">{{predialysis.weight_before - predialysis.weight_after_last_transparency}}</span>
45
             
45
             
46
           </div>
46
           </div>
47
         </div>
47
         </div>

+ 97 - 82
src/pages/main/dialog/subMenu/checkBoxSubMenu.vue 查看文件

8
       <span v-if="propsForm.isMultiple == 1" @click="comfirm" class="success">
8
       <span v-if="propsForm.isMultiple == 1" @click="comfirm" class="success">
9
       </span>
9
       </span>
10
       <span v-if="propsForm.isMultiple == 2" @click="comfirm" class="success"
10
       <span v-if="propsForm.isMultiple == 2" @click="comfirm" class="success"
11
-        >确定</span
11
+      >确定</span
12
       >
12
       >
13
     </div>
13
     </div>
14
 
14
 
44
             </van-checkbox>
44
             </van-checkbox>
45
           </van-checkbox-group>
45
           </van-checkbox-group>
46
         </li>
46
         </li>
47
+
47
       </ul>
48
       </ul>
49
+      <!--<div style="margin-top: 10px" v-if="propsForm.isShowOther == 2">-->
50
+        <!--<el-form>-->
51
+          <!--<el-form-item label-width="90px" label="其他"  >-->
52
+            <!--<el-input clearable v-model="other" ></el-input>-->
53
+          <!--</el-form-item>-->
54
+        <!--</el-form>-->
55
+      <!--</div>-->
56
+
48
     </div>
57
     </div>
49
   </div>
58
   </div>
50
 </template>
59
 </template>
51
 
60
 
52
 <script>
61
 <script>
53
-export default {
54
-  name: "checkBoxSubMenu",
55
-  created() {},
56
-  data() {
57
-    return {
58
-      result: [],
59
-      id: 0,
60
-      selectName: ""
61
-    };
62
-  },
63
-  props: {
64
-    propsForm: {
65
-      type: Object
62
+  export default {
63
+    name: 'checkBoxSubMenu',
64
+    created () {
66
     },
65
     },
67
-    visibility: {
68
-      type: Boolean,
69
-      default: false
70
-    }
71
-  },
72
-  methods: {
73
-    cancle: function() {
74
-      this.$emit("menu-cancle");
66
+    data () {
67
+      return {
68
+        result: [],
69
+        id: 0,
70
+        selectName: '',
71
+        other: ''
72
+      }
75
     },
73
     },
76
-    comfirm: function() {
77
-      this.$emit("menu-comfirm", this.getValue());
74
+    props: {
75
+      propsForm: {
76
+        type: Object
77
+      },
78
+      visibility: {
79
+        type: Boolean,
80
+        default: false
81
+      }
78
     },
82
     },
79
-    getValue: function() {
80
-      let form = {};
81
-      if (this.propsForm.isMultiple == 2) {
82
-        form["type"] = this.propsForm.type;
83
-        form["result"] = this.propsForm.result;
84
-        // form["click_ref"] = this.propsForm.click_ref
85
-      } else {
86
-        form["type"] = this.propsForm.type;
87
-        form["selectId"] = this.propsForm.selectId;
88
-        // form["click_ref"] = this.propsForm.click_ref
83
+    methods: {
84
+      cancle: function () {
85
+        this.$emit('menu-cancle')
86
+      },
87
+      comfirm: function () {
88
+        this.$emit('menu-comfirm', this.getValue())
89
+        // this.other = ""
90
+      },
91
+      getValue: function () {
92
+        let form = {}
93
+        if (this.propsForm.isMultiple == 2) {
94
+          form['type'] = this.propsForm.type
95
+          form['result'] = this.propsForm.result
96
+          // form['other'] = this.other
97
+
98
+          // form["click_ref"] = this.propsForm.click_ref
99
+        } else {
100
+          form['type'] = this.propsForm.type
101
+          form['selectId'] = this.propsForm.selectId
102
+          // form["click_ref"] = this.propsForm.click_ref
103
+        }
104
+        return form
105
+      },
106
+      itemClick: function (id) {
107
+        if (id == -2) {
108
+          this.$emit('menu-empty', this.getValue())
109
+        }
110
+        this.propsForm.selectId = id
111
+        this.$emit('menu-comfirm', this.getValue())
89
       }
112
       }
90
-      return form;
91
     },
113
     },
92
-    itemClick: function(id) {
93
-      if (id == -2) {
94
-        this.$emit("menu-empty", this.getValue());
114
+    watch: {
115
+      visibility (val) {
116
+        //初始化数据操作
117
+
95
       }
118
       }
96
-      this.propsForm.selectId = id;
97
-      this.$emit("menu-comfirm", this.getValue());
98
-    }
99
-  },
100
-  watch: {
101
-    visibility(val) {
102
-      //初始化数据操作
103
     }
119
     }
104
   }
120
   }
105
-};
106
 </script>
121
 </script>
107
 
122
 
108
 <style style="stylesheet/scss" lang="scss" scoped>
123
 <style style="stylesheet/scss" lang="scss" scoped>
109
-.optionsBox {
124
+  .optionsBox {
110
   background: #fff;
125
   background: #fff;
111
   max-height: 10rem;
126
   max-height: 10rem;
112
   min-height: 5rem;
127
   min-height: 5rem;
113
   @media only screen and (max-width: 812px) {
128
   @media only screen and (max-width: 812px) {
114
-    min-height: 8rem !important;
129
+  min-height: 8rem !important;
115
   }
130
   }
116
   ul {
131
   ul {
117
-    overflow-y: scroll;
118
-    max-height: 9rem;
119
-    li {
120
-      height: 1.1rem;
121
-      line-height: 1.1rem;
122
-      border-bottom: 1px #e5e5e5 solid;
123
-      padding: 0 0.38rem;
124
-      font-size: 0.36rem;
125
-      color: $title-color;
126
-    }
127
-    .tick {
128
-      position: relative;
129
-      &::before {
130
-        content: "";
131
-        display: inline-block;
132
-        border: 2px solid $main-color;
133
-        border-top-width: 0;
134
-        border-right-width: 0;
135
-        width: 0.3rem;
136
-        height: 0.15rem;
137
-        -webkit-transform: rotate(-50deg);
138
-        position: absolute;
139
-        top: 0.38rem;
140
-        right: 0.44rem;
141
-      }
142
-    }
132
+  overflow-y: scroll;
133
+  max-height: 9rem;
134
+  li {
135
+  height: 1.1rem;
136
+  line-height: 1.1rem;
137
+  border-bottom: 1px #e5e5e5 solid;
138
+  padding: 0 0.38rem;
139
+  font-size: 0.36rem;
140
+  color: $title-color;
141
+  }
142
+  .tick {
143
+  position: relative;
144
+  &::before {
145
+  content: "";
146
+  display: inline-block;
147
+  border: 2px solid $main-color;
148
+  border-top-width: 0;
149
+  border-right-width: 0;
150
+  width: 0.3rem;
151
+  height: 0.15rem;
152
+  -webkit-transform: rotate(-50deg);
153
+  position: absolute;
154
+  top: 0.38rem;
155
+  right: 0.44rem;
156
+  }
157
+  }
143
   }
158
   }
144
-}
145
-.CheckBox {
159
+  }
160
+  .CheckBox {
146
   background: #fff;
161
   background: #fff;
147
   max-height: 6.8rem;
162
   max-height: 6.8rem;
148
   min-height: 5rem;
163
   min-height: 5rem;
149
   overflow-y: scroll;
164
   overflow-y: scroll;
150
   @media only screen and (max-width: 812px) {
165
   @media only screen and (max-width: 812px) {
151
-    max-height: 8rem !important;
152
-    min-height: 8rem !important;
166
+  max-height: 8rem !important;
167
+  min-height: 8rem !important;
153
   }
168
   }
154
 
169
 
155
   ul {
170
   ul {
156
-    li {
157
-      line-height: 1rem;
158
-    }
171
+  li {
172
+  line-height: 1rem;
173
+  }
174
+  }
159
   }
175
   }
160
-}
161
 </style>
176
 </style>

+ 4 - 4
src/pages/main/dialysis/AdviceTable.vue 查看文件

108
 
108
 
109
             </td>
109
             </td>
110
 
110
 
111
-            <td v-if="advice_index == 0" :rowspan="group.advices.length">{{ parseTime(advice.start_time, "{m}-{d}{h}:{i}") }}
111
+            <td v-if="advice_index == 0" :rowspan="group.advices.length">{{ parseTime(advice.start_time, "{m}-{d} {h}:{i}") }}
112
             </td>
112
             </td>
113
             <td :class="{ 'advice_name': advice.parent_id == 0, 'subdrug_name': advice.parent_id > 0 }">{{
113
             <td :class="{ 'advice_name': advice.parent_id == 0, 'subdrug_name': advice.parent_id > 0 }">{{
114
               advice.advice_name }}
114
               advice.advice_name }}
120
             <td>{{ advice.parent_id == 0 ? advice.delivery_way : '' }}</td>
120
             <td>{{ advice.parent_id == 0 ? advice.delivery_way : '' }}</td>
121
             <td>{{ advice.parent_id == 0 ? advice.execution_frequency : '' }}</td>
121
             <td>{{ advice.parent_id == 0 ? advice.execution_frequency : '' }}</td>
122
 
122
 
123
-            <td v-if="advice_index == 0" :rowspan="group.advices.length">{{ parseTime(advice.execution_time, "{m}-{d}{h}:{i}") }}
123
+            <td v-if="advice_index == 0" :rowspan="group.advices.length">{{ parseTime(advice.execution_time, "{m}-{d} {h}:{i}") }}
124
             </td>
124
             </td>
125
             <td v-if="advice_index == 0" :rowspan="group.advices.length">
125
             <td v-if="advice_index == 0" :rowspan="group.advices.length">
126
               <span
126
               <span
131
             <td v-if="advice_index == 0" :rowspan="group.advices.length">
131
             <td v-if="advice_index == 0" :rowspan="group.advices.length">
132
               <span v-if="advice.stop_state == 1 && advice.parent_id == 0">{{ tranDoctor(advice.advice_doctor) }}</span>
132
               <span v-if="advice.stop_state == 1 && advice.parent_id == 0">{{ tranDoctor(advice.advice_doctor) }}</span>
133
             </td>
133
             </td>
134
-            <td v-if="advice_index == 0" :rowspan="group.advices.length">{{ parseTime(advice.created_time, "{m}-{d}{h}:{i}") }}
134
+            <td v-if="advice_index == 0" :rowspan="group.advices.length">{{ parseTime(advice.created_time, "{m}-{d} {h}:{i}") }}
135
             </td>
135
             </td>
136
 
136
 
137
             <td v-if="advice_index == 0" :rowspan="group.advices.length">
137
             <td v-if="advice_index == 0" :rowspan="group.advices.length">
138
               <span v-if="advice.stop_state == 1 && advice.parent_id == 0">{{ tranDoctor(advice.checker) }}</span>
138
               <span v-if="advice.stop_state == 1 && advice.parent_id == 0">{{ tranDoctor(advice.checker) }}</span>
139
             </td>
139
             </td>
140
-            <td v-if="advice_index == 0" :rowspan="group.advices.length">{{ parseTime(advice.check_time, "{m}-{d}{h}:{i}") }}
140
+            <td v-if="advice_index == 0" :rowspan="group.advices.length">{{ parseTime(advice.check_time, "{m}-{d} {h}:{i}") }}
141
             </td>
141
             </td>
142
 
142
 
143
             <!-- <td>{{ advice.remark }}</td> -->
143
             <!-- <td>{{ advice.remark }}</td> -->

+ 51 - 18
src/pages/main/template/DialysisPrintOrderSix.vue 查看文件

445
                           <span>{{advice.advice_desc}}{{advice.drug_spec_unit}}</span>
445
                           <span>{{advice.advice_desc}}{{advice.drug_spec_unit}}</span>
446
                           <span v-if="advice.prescribing_number">* {{advice.prescribing_number}}{{advice.prescribing_number_unit}}</span>
446
                           <span v-if="advice.prescribing_number">* {{advice.prescribing_number}}{{advice.prescribing_number_unit}}</span>
447
                           <span  v-if="advice.single_dose != 0"> {{advice.single_dose}}{{advice.single_dose_unit}}</span>
447
                           <span  v-if="advice.single_dose != 0"> {{advice.single_dose}}{{advice.single_dose_unit}}</span>
448
-                          <span v-if="advice.parent_id == 0  && advice.children.length == 0">{{advice.delivery_way}}</span>
449
-                          <span v-if="advice.parent_id == 0  && advice.children.length == 0">{{advice.execution_frequency}}</span>
450
-                          <span v-if="advice.parent_id == 0 && advice.children &&  advice.children.length == 0 && advice.remark.length > 0" >({{advice.remark}})</span>
448
+                          <span v-if="advice.parent_id == 0">{{advice.delivery_way}}</span>
449
+                          <span v-if="advice.parent_id == 0">{{advice.execution_frequency}}</span>
450
+                          <span v-if="advice.parent_id == 0 && advice.remark.length > 0" >({{advice.remark}})</span>
451
                         </td>
451
                         </td>
452
                         <!-- <td colspan="2" height="60px" style="text-align: center" v-else >
452
                         <!-- <td colspan="2" height="60px" style="text-align: center" v-else >
453
                           <span>{{advice.delivery_way}}</span>
453
                           <span>{{advice.delivery_way}}</span>
608
                     {{afterdialysis.catheter?afterdialysis.catheter:'/'}}
608
                     {{afterdialysis.catheter?afterdialysis.catheter:'/'}}
609
                   </div>
609
                   </div>
610
                 </div>
610
                 </div>
611
-              </div>
612
-
613
-              <div class="row" style="padding: 2px 0;line-height:23px;display:flex;">
614
                 <div class="inline_block" style="flex:1;">
611
                 <div class="inline_block" style="flex:1;">
615
                   实际治疗时间:
612
                   实际治疗时间:
616
-                  <div class="under_line" style="width: 50px;text-align: center">
613
+                  <div class="under_line" style="width: 20px;text-align: center">
617
                     {{afterdialysis.actual_treatment_hour?afterdialysis.actual_treatment_hour:'/'}}
614
                     {{afterdialysis.actual_treatment_hour?afterdialysis.actual_treatment_hour:'/'}}
618
                   </div>
615
                   </div>
619
                   h
616
                   h
620
-                  <div class="under_line" style="width: 50px;text-align: center">
617
+                  <div class="under_line" style="width: 20px;text-align: center">
621
                     {{afterdialysis.actual_treatment_minute?afterdialysis.actual_treatment_minute:0}}
618
                     {{afterdialysis.actual_treatment_minute?afterdialysis.actual_treatment_minute:0}}
622
                   </div>
619
                   </div>
623
                   min
620
                   min
624
                 </div>
621
                 </div>
622
+              </div>
623
+
624
+              <div class="row" style="padding: 2px 0;line-height:23px;display:flex;">
625
+
625
                 <div class="inline_block" style="flex:1;">
626
                 <div class="inline_block" style="flex:1;">
626
                   透后体重:
627
                   透后体重:
627
-                  <div class="under_line" style="width: 70px;text-align: center">
628
+                  <div class="under_line" style="width: 50px;text-align: center">
628
                     {{afterdialysis.weight_after?afterdialysis.weight_after:'/'}}
629
                     {{afterdialysis.weight_after?afterdialysis.weight_after:'/'}}
629
                   </div>kg
630
                   </div>kg
630
                 </div>
631
                 </div>
632
+
633
+                <div class="inline_block" style="flex:1;">
634
+                  体重减少:
635
+                  <div class="under_line" style="width: 50px;text-align: center">
636
+                    {{afterdialysis.weight_loss?afterdialysis.weight_loss:'/'}}
637
+                  </div>kg
638
+                </div>
639
+
640
+
641
+                <div class="inline_block" style="flex:1;">
642
+                  透析中入量:
643
+                  <div class="under_line" style="width: 50px;text-align: center">
644
+                    {{afterdialysis.dialysis_intakes?afterdialysis.dialysis_intakes:'/'}}
645
+                  </div>{{getUnit(afterdialysis.dialysis_intakes_unit)}}
646
+                </div>
647
+
631
                 <div class="inline_block" style="flex:1;">
648
                 <div class="inline_block" style="flex:1;">
632
                   实际超滤量:
649
                   实际超滤量:
633
-                  <div class="under_line" style="width: 150px;text-align: center">
650
+                  <div class="under_line" style="width: 50px;text-align: center">
634
                     {{afterdialysis.actual_ultrafiltration?afterdialysis.actual_ultrafiltration:'/'}}
651
                     {{afterdialysis.actual_ultrafiltration?afterdialysis.actual_ultrafiltration:'/'}}
635
                   </div>ml
652
                   </div>ml
636
                 </div>
653
                 </div>
654
+
655
+
637
               </div>
656
               </div>
638
 
657
 
639
               <div class="row" style="padding: 2px 0;line-height:23px;display:flex;">
658
               <div class="row" style="padding: 2px 0;line-height:23px;display:flex;">
640
                 <div class="inline_block" style="flex:1;">
659
                 <div class="inline_block" style="flex:1;">
641
                   治疗小结:
660
                   治疗小结:
642
-                  <div class="under_line" style="width: 300px;text-align: center">
643
-                    {{summary.dialysis_summary?summary.dialysis_summary:'/'}}
644
-                  </div>
661
+                  <!--<div class="under_line" style="width: 300px;text-align: center">-->
662
+                    <!--{{summary.dialysis_summary?summary.dialysis_summary:'/'}}-->
663
+                  <!--</div>-->
664
+                  <div style="width: 95%;line-height: 25px;text-align: left;margin-left: 2px;text-underline-position: under; text-decoration: underline;"> {{summary.dialysis_summary?summary.dialysis_summary:'/'}}</div>
665
+
666
+
645
                 </div>
667
                 </div>
646
               </div>
668
               </div>
647
             </td>
669
             </td>
717
   import { getDataConfig } from '@/utils/data'
739
   import { getDataConfig } from '@/utils/data'
718
   import { jsGetAge, uParseTime } from '@/utils/tools'
740
   import { jsGetAge, uParseTime } from '@/utils/tools'
719
   import LabelBox from '../printItem/LabelBox'
741
   import LabelBox from '../printItem/LabelBox'
720
- 
742
+
721
   // import DialysisPrintOrderOne from './template/dialysisPrintOrderOne'
743
   // import DialysisPrintOrderOne from './template/dialysisPrintOrderOne'
722
   // import DialysisPrintOrderTwo from './template/dialysisPrintOrderTwo'
744
   // import DialysisPrintOrderTwo from './template/dialysisPrintOrderTwo'
723
   import print from 'print-js'
745
   import print from 'print-js'
958
             this.patientInfo.first_dialysis_date = ''
980
             this.patientInfo.first_dialysis_date = ''
959
           }
981
           }
960
           this.check = response.data.data.check
982
           this.check = response.data.data.check
961
-          this.xtdate = response.data.data.xtdate
983
+          this.xtdate = this.$route.query.xtdate
962
           this.predialysis = response.data.data.PredialysisEvaluation
984
           this.predialysis = response.data.data.PredialysisEvaluation
963
           this.predialysis.blood_access_part_opera_name = this.bloodAccessParOperaName(this.predialysis.blood_access_part_opera_id)
985
           this.predialysis.blood_access_part_opera_name = this.bloodAccessParOperaName(this.predialysis.blood_access_part_opera_id)
964
           this.afterdialysis = response.data.data.AssessmentAfterDislysis
986
           this.afterdialysis = response.data.data.AssessmentAfterDislysis
1049
               }
1071
               }
1050
             }
1072
             }
1051
           }
1073
           }
1052
-          
1074
+
1053
           var tempmonitorflag = true;
1075
           var tempmonitorflag = true;
1054
           for (let index = 0; index < this.monitors.length; index++) {
1076
           for (let index = 0; index < this.monitors.length; index++) {
1055
             const monitor = this.monitors[index];
1077
             const monitor = this.monitors[index];
1063
                   this.monitors[index].end ="【结束透析】"
1085
                   this.monitors[index].end ="【结束透析】"
1064
               }
1086
               }
1065
             }
1087
             }
1066
-            
1088
+
1067
           }
1089
           }
1068
 
1090
 
1069
 
1091
 
1284
         } else {
1306
         } else {
1285
           return '0.0'
1307
           return '0.0'
1286
         }
1308
         }
1309
+      },getUnit:function (val) {
1310
+         switch (val) {
1311
+           case 1:
1312
+             return "g"
1313
+             break
1314
+           case 2:
1315
+             return "ml"
1316
+             break
1317
+
1318
+         }
1319
+
1287
       }
1320
       }
1288
     },
1321
     },
1289
     watch: {
1322
     watch: {
1322
       this.perfusionApparatus = this.$store.getters.perfusion_apparatus
1355
       this.perfusionApparatus = this.$store.getters.perfusion_apparatus
1323
       this.anticoagulantsConfit = this.$store.getters.anticoagulants_confit
1356
       this.anticoagulantsConfit = this.$store.getters.anticoagulants_confit
1324
       this.displaceLiquiPartOptions = this.$store.getters.displace_liqui
1357
       this.displaceLiquiPartOptions = this.$store.getters.displace_liqui
1325
-      
1358
+
1326
       this.blood_access_part = getDataConfig('hemodialysis', 'vascular_access')
1359
       this.blood_access_part = getDataConfig('hemodialysis', 'vascular_access')
1327
       this.blood_access_part_opera = getDataConfig('hemodialysis', 'vascular_access_desc')
1360
       this.blood_access_part_opera = getDataConfig('hemodialysis', 'vascular_access_desc')
1328
 
1361
 

+ 55 - 34
src/pages/main/today/TodayTab.vue 查看文件

1
 <template>
1
 <template>
2
-  <div v-loading="loading" id="today_panel">
2
+  <div
3
+    id="today_panel">
3
 
4
 
5
+    <div  v-loading="loading"
6
+          element-loading-text="拼命加载中"
7
+          element-loading-spinner="el-icon-loading"
8
+          element-loading-background="rgba(0, 0, 0, 0.8)">
4
     <div class="grid">
9
     <div class="grid">
5
       <div class="list">
10
       <div class="list">
6
         <ul>
11
         <ul>
58
       </div>
63
       </div>
59
     </div>
64
     </div>
60
     <div class="blueBorder"></div>
65
     <div class="blueBorder"></div>
66
+
61
     <details-info title="基本信息" :patient="patient"
67
     <details-info title="基本信息" :patient="patient"
62
                   :device_number="getDeviceNumber()"
68
                   :device_number="getDeviceNumber()"
63
                   :step_data="stepData"></details-info>
69
                   :step_data="stepData"></details-info>
64
 
70
 
65
     <div class="blueBorder"></div>
71
     <div class="blueBorder"></div>
66
-    <dialysis-prescription id="prescription"  :prescription="prescription" :solution="solution" title="透析处方"
72
+
73
+    <dialysis-prescription id="prescription" :prescription="prescription" :solution="solution" title="透析处方"
67
                            :device_number_map="device_map"></dialysis-prescription>
74
                            :device_number_map="device_map"></dialysis-prescription>
68
 
75
 
76
+    </div>
69
     <div class="blueBorder"></div>
77
     <div class="blueBorder"></div>
70
     <accepts-assessment id="accepts_assessment" :record="receiver_treatment_access" title="接诊评估"></accepts-assessment>
78
     <accepts-assessment id="accepts_assessment" :record="receiver_treatment_access" title="接诊评估"></accepts-assessment>
71
 
79
 
72
     <div class="blueBorder"></div>
80
     <div class="blueBorder"></div>
81
+
73
     <assessment-before id="assessment_before" :record="predialysis_evaluation" ref="assessment_before"
82
     <assessment-before id="assessment_before" :record="predialysis_evaluation" ref="assessment_before"
74
-                       title="透前评估" :dry_weights="dryWeight"  :last_predialysis="last_predialysis_evaluation" ></assessment-before>
83
+                       title="透前评估" :dry_weights="dryWeight"
84
+                       :last_predialysis="last_predialysis_evaluation"></assessment-before>
75
 
85
 
76
     <div class="blueBorder"></div>
86
     <div class="blueBorder"></div>
87
+
77
     <stat-order id="stat_order" ref="stat_order" title="临时医嘱" :doctor_map="admin_user_map"
88
     <stat-order id="stat_order" ref="stat_order" title="临时医嘱" :doctor_map="admin_user_map"
78
                 :advice_groups="advice_groups"></stat-order>
89
                 :advice_groups="advice_groups"></stat-order>
79
 
90
 
91
+
80
     <div class="blueBorder"></div>
92
     <div class="blueBorder"></div>
93
+
81
     <dialysis-computer id="dialysis_computer" ref="dialysis_computer" title="透析上机 " :record="dialysis_order"
94
     <dialysis-computer id="dialysis_computer" ref="dialysis_computer" title="透析上机 " :record="dialysis_order"
82
                        :admin_map="admin_user_map" :device_number_map="device_number_map"></dialysis-computer>
95
                        :admin_map="admin_user_map" :device_number_map="device_number_map"></dialysis-computer>
83
 
96
 
97
+
84
     <div class="blueBorder"></div>
98
     <div class="blueBorder"></div>
99
+
85
     <double-check id="double_check" ref="double_check" title="双人核对 " :record="double_check"></double-check>
100
     <double-check id="double_check" ref="double_check" title="双人核对 " :record="double_check"></double-check>
86
 
101
 
102
+
87
     <div class="blueBorder"></div>
103
     <div class="blueBorder"></div>
104
+
88
     <dialysis-monitoring id="monitoring" ref="monitoring" title="透析监测"></dialysis-monitoring>
105
     <dialysis-monitoring id="monitoring" ref="monitoring" title="透析监测"></dialysis-monitoring>
89
 
106
 
107
+
90
     <div class="blueBorder"></div>
108
     <div class="blueBorder"></div>
109
+
91
     <dialysis-off id="dialysis_off" ref="dialysis_off" title="透析下机 " :record="dialysis_order"
110
     <dialysis-off id="dialysis_off" ref="dialysis_off" title="透析下机 " :record="dialysis_order"
92
                   :admin_map="admin_user_map"></dialysis-off>
111
                   :admin_map="admin_user_map"></dialysis-off>
93
 
112
 
113
+
94
     <div class="blueBorder"></div>
114
     <div class="blueBorder"></div>
115
+
95
     <assessment-after id="assessment_after" ref="assessment_after" title="透后评估"
116
     <assessment-after id="assessment_after" ref="assessment_after" title="透后评估"
96
                       :record="assessment_after_dislysis"></assessment-after>
117
                       :record="assessment_after_dislysis"></assessment-after>
97
 
118
 
119
+
98
     <div class="blueBorder"></div>
120
     <div class="blueBorder"></div>
121
+
99
     <treatment-of id="treatment_of" ref="treatment_of" title="治疗小结" :record="treatment_summary"></treatment-of>
122
     <treatment-of id="treatment_of" ref="treatment_of" title="治疗小结" :record="treatment_summary"></treatment-of>
100
 
123
 
124
+
101
     <!-- <div class="blueBorder"></div>
125
     <!-- <div class="blueBorder"></div>
102
     <operation-staff title="操作人员 "></operation-staff> -->
126
     <operation-staff title="操作人员 "></operation-staff> -->
103
 
127
 
126
     </van-popup>
150
     </van-popup>
127
 
151
 
128
     <van-popup title="透前评估" v-model="menuList[3].showPopup" :overlay="true" :close-on-click-overlay="false">
152
     <van-popup title="透前评估" v-model="menuList[3].showPopup" :overlay="true" :close-on-click-overlay="false">
129
-      <assessment-dialog :predialysis="predialysis_evaluation" :last_predialysis="last_predialysis_evaluation" :dry_weight="dryWeight"
130
-                         :patient_prop="patient" @evaluation="update_evaluation" @close="closeAssessmentBefore"  :admin_users_prop="admin_users"
153
+      <assessment-dialog :predialysis="predialysis_evaluation" :last_predialysis="last_predialysis_evaluation"
154
+                         :dry_weight="dryWeight"
155
+                         :patient_prop="patient" @evaluation="update_evaluation" @close="closeAssessmentBefore"
156
+                         :admin_users_prop="admin_users"
131
                          ref="assessment_dialog" @weight_update="weightFunc"></assessment-dialog>
157
                          ref="assessment_dialog" @weight_update="weightFunc"></assessment-dialog>
132
     </van-popup>
158
     </van-popup>
133
 
159
 
147
                        :device_numbers="device_numbers" :admin_map="admin_user_map"
173
                        :device_numbers="device_numbers" :admin_map="admin_user_map"
148
                        :special_premission="special_premission"
174
                        :special_premission="special_premission"
149
                        :device_number_map="device_number_map" @did_start="closeDialysisComputer"
175
                        :device_number_map="device_number_map" @did_start="closeDialysisComputer"
150
-                        @did_add_monitor="didAddMonitor" @close="closeDialysisComputerclose" ref="computer_dialog"></computer-dialog>
176
+                       @did_add_monitor="didAddMonitor" @close="closeDialysisComputerclose"
177
+                       ref="computer_dialog"></computer-dialog>
151
     </van-popup>
178
     </van-popup>
152
 
179
 
153
     <van-popup title="透析监测" v-model="menuList[6].showPopup" :overlay="true" :close-on-click-overlay="false">
180
     <van-popup title="透析监测" v-model="menuList[6].showPopup" :overlay="true" :close-on-click-overlay="false">
159
     </van-popup>
186
     </van-popup>
160
 
187
 
161
     <van-popup title="透析下机" v-model="menuList[7].showPopup" :overlay="true" :close-on-click-overlay="false">
188
     <van-popup title="透析下机" v-model="menuList[7].showPopup" :overlay="true" :close-on-click-overlay="false">
162
-      <plane-dialog :patient_prop="patient" :record="dialysis_order" :last_monitor_record="last_monitor_record" :admins="admin_users" :admin_map="admin_user_map"
189
+      <plane-dialog :patient_prop="patient" :record="dialysis_order" :last_monitor_record="last_monitor_record"
190
+                    :admins="admin_users" :admin_map="admin_user_map"
163
                     :special_premission="special_premission"
191
                     :special_premission="special_premission"
164
                     @did_off="closeDialysisOff" @close="closeDialysisOffclose" ref="plane_dialog"></plane-dialog>
192
                     @did_off="closeDialysisOff" @close="closeDialysisOffclose" ref="plane_dialog"></plane-dialog>
165
     </van-popup>
193
     </van-popup>
275
           {value: '10', label: ' 治疗小结', showPopup: false}
303
           {value: '10', label: ' 治疗小结', showPopup: false}
276
         ],
304
         ],
277
         isPullData: 1,
305
         isPullData: 1,
278
-        config: {},//库存自动扣减
279
-        operators: [], //操作人
306
+        config: {}, // 库存自动扣减
307
+        operators: [], // 操作人
280
         patient: {}, // 患者信息
308
         patient: {}, // 患者信息
281
         schedual: {}, // 患者排班信息
309
         schedual: {}, // 患者排班信息
282
         prescription: {}, // 透析处方
310
         prescription: {}, // 透析处方
299
           dialysate_temperature: ''
327
           dialysate_temperature: ''
300
         }, // 上一次透析的监测记录
328
         }, // 上一次透析的监测记录
301
         dialysis_order: {}, // 透析记录
329
         dialysis_order: {}, // 透析记录
302
-        admin_users: [], //系统用户列表
303
-        devices: [], //设备
330
+        admin_users: [], // 系统用户列表
331
+        devices: [], // 设备
304
         device_numbers: [], // 床位号
332
         device_numbers: [], // 床位号
305
         admin_user_map: {}, // {user_id: admin_user object}
333
         admin_user_map: {}, // {user_id: admin_user object}
306
         device_map: {}, // {device_id: device}
334
         device_map: {}, // {device_id: device}
309
         goTopShow: false,
337
         goTopShow: false,
310
         goodTypes: [],
338
         goodTypes: [],
311
         goodInfos: [],
339
         goodInfos: [],
312
-        dryWeight:{},
340
+        dryWeight: {},
313
 
341
 
314
         longAdvices: [],
342
         longAdvices: [],
315
         waitUploadAdvices: [],
343
         waitUploadAdvices: [],
333
           {title: '治疗小结', name: 'treatment_of', value: 0}
361
           {title: '治疗小结', name: 'treatment_of', value: 0}
334
         ]
362
         ]
335
 
363
 
336
-
337
-        if (!isNaN(this.prescription.id) && this.prescription.id > 0 && this.prescription.creater> 0) {
364
+        if (!isNaN(this.prescription.id) && this.prescription.id > 0 && this.prescription.creater > 0) {
338
           steps[0].value = 1
365
           steps[0].value = 1
339
         }
366
         }
340
         if (
367
         if (
344
           steps[1].value = 1
371
           steps[1].value = 1
345
         }
372
         }
346
 
373
 
347
-        if ( typeof this.predialysis_evaluation.id != 'undefined' && !isNaN(this.predialysis_evaluation.id) && this.predialysis_evaluation.id > 0  && this.predialysis_evaluation.creater > 0) {
374
+        if (typeof this.predialysis_evaluation.id != 'undefined' && !isNaN(this.predialysis_evaluation.id) && this.predialysis_evaluation.id > 0 && this.predialysis_evaluation.creater > 0) {
348
           steps[2].value = 1
375
           steps[2].value = 1
349
         }
376
         }
350
 
377
 
591
             var doctor_advices = resp.data.doctor_advices // 临时医嘱
618
             var doctor_advices = resp.data.doctor_advices // 临时医嘱
592
             this.dryWeight = resp.data.dry_weight
619
             this.dryWeight = resp.data.dry_weight
593
 
620
 
594
-
595
             for (let i = 0; i < doctor_advices.length; i++) {
621
             for (let i = 0; i < doctor_advices.length; i++) {
596
               doctor_advices[i]['is_selected'] = 0
622
               doctor_advices[i]['is_selected'] = 0
597
             }
623
             }
746
             this.loading = false
772
             this.loading = false
747
           }
773
           }
748
         })
774
         })
749
-      },weightFunc(val){
775
+      }, weightFunc (val) {
750
 
776
 
751
         this.dryWeight = val
777
         this.dryWeight = val
752
 
778
 
769
             var storedata = this.$store.getters.scheduals
795
             var storedata = this.$store.getters.scheduals
770
             var scheduals = storedata.scheduals
796
             var scheduals = storedata.scheduals
771
 
797
 
772
-
773
-
774
             var patient = resp.data.patient // 患者信息
798
             var patient = resp.data.patient // 患者信息
775
             var schedual = resp.data.schedual // 患者排班信息
799
             var schedual = resp.data.schedual // 患者排班信息
776
             var prescription = resp.data.prescription // 透析处方
800
             var prescription = resp.data.prescription // 透析处方
780
             var doctor_advices = resp.data.doctor_advices // 临时医嘱
804
             var doctor_advices = resp.data.doctor_advices // 临时医嘱
781
             this.dryWeight = resp.data.dry_weight
805
             this.dryWeight = resp.data.dry_weight
782
 
806
 
783
-            if(prescription == null || prescription.creater == 0){
807
+            if (prescription == null || prescription.creater == 0) {
784
               this.isPullData = 1
808
               this.isPullData = 1
785
-            }else{
809
+            } else {
786
               this.isPullData = 2
810
               this.isPullData = 2
787
             }
811
             }
788
 
812
 
812
               resp.data.last_assessment_after_dislysis // 上一次透前评估
836
               resp.data.last_assessment_after_dislysis // 上一次透前评估
813
             var last_monitor_record = resp.data.last_monitor_record
837
             var last_monitor_record = resp.data.last_monitor_record
814
 
838
 
815
-
816
             if (Object.keys(waitstoredata).length > 0) {
839
             if (Object.keys(waitstoredata).length > 0) {
817
               for (let index = 0; index < waitscheduals.length; index++) {
840
               for (let index = 0; index < waitscheduals.length; index++) {
818
-                if(waitscheduals[index].patient_id == patient.id) {
841
+                if (waitscheduals[index].patient_id == patient.id) {
819
                   waitscheduals[index].patient = patient
842
                   waitscheduals[index].patient = patient
820
                   waitscheduals[index].assessment_before_dislysis = predialysis_evaluation
843
                   waitscheduals[index].assessment_before_dislysis = predialysis_evaluation
821
                   waitscheduals[index].prescription = prescription
844
                   waitscheduals[index].prescription = prescription
823
                   waitscheduals[index].dialysis_order = dialysis_order
846
                   waitscheduals[index].dialysis_order = dialysis_order
824
                 }
847
                 }
825
               }
848
               }
826
-              this.$store.dispatch("SetWaitScheduals",{waitscheduals:waitscheduals})
849
+              this.$store.dispatch('SetWaitScheduals', {waitscheduals: waitscheduals})
827
             }
850
             }
828
 
851
 
829
             if (Object.keys(storedata).length > 0) {
852
             if (Object.keys(storedata).length > 0) {
830
               for (let index = 0; index < scheduals.length; index++) {
853
               for (let index = 0; index < scheduals.length; index++) {
831
-                if(scheduals[index].patient_id == patient.id) {
854
+                if (scheduals[index].patient_id == patient.id) {
832
                   scheduals[index].patient = patient
855
                   scheduals[index].patient = patient
833
                   scheduals[index].assessment_before_dislysis = predialysis_evaluation
856
                   scheduals[index].assessment_before_dislysis = predialysis_evaluation
834
                   scheduals[index].prescription = prescription
857
                   scheduals[index].prescription = prescription
836
                   scheduals[index].dialysis_order = dialysis_order
859
                   scheduals[index].dialysis_order = dialysis_order
837
                 }
860
                 }
838
               }
861
               }
839
-              this.$store.dispatch("SetScheduals",{scheduals:scheduals})
862
+              this.$store.dispatch('SetScheduals', {scheduals: scheduals})
840
             }
863
             }
841
 
864
 
842
             this.patient = patient
865
             this.patient = patient
1007
 
1030
 
1008
                 for (let i = 0; i < totalAdvice.length; i++) {
1031
                 for (let i = 0; i < totalAdvice.length; i++) {
1009
                   for (let a = 0; a < longAdvicesTwo.length; a++) {
1032
                   for (let a = 0; a < longAdvicesTwo.length; a++) {
1010
-                    if (totalAdvice[i].template_id == longAdvicesTwo[a].template_id &&totalAdvice[i].frequency_type == longAdvicesTwo[a].frequency_type ) {
1033
+                    if (totalAdvice[i].template_id == longAdvicesTwo[a].template_id && totalAdvice[i].frequency_type == longAdvicesTwo[a].frequency_type) {
1011
                       totalAdvice[i]['isCheck'] = 0
1034
                       totalAdvice[i]['isCheck'] = 0
1012
                     }
1035
                     }
1013
                   }
1036
                   }
1014
                 }
1037
                 }
1015
 
1038
 
1016
-
1017
                 for (let i = 0; i < totalAdvice.length; i++) {
1039
                 for (let i = 0; i < totalAdvice.length; i++) {
1018
-                    if( totalAdvice[i].isCheck == 1){
1019
-                      waitUploadAdvices.push(totalAdvice[i])
1020
-                    }
1040
+                  if (totalAdvice[i].isCheck == 1) {
1041
+                    waitUploadAdvices.push(totalAdvice[i])
1042
+                  }
1021
                 }
1043
                 }
1022
 
1044
 
1023
-
1024
                 this.is_open = resp.data.is_open_remind
1045
                 this.is_open = resp.data.is_open_remind
1025
                 this.longAdvices = totalAdvice
1046
                 this.longAdvices = totalAdvice
1026
                 this.waitUploadAdvices = waitUploadAdvices
1047
                 this.waitUploadAdvices = waitUploadAdvices
1065
       , adviceFunc: function () {
1086
       , adviceFunc: function () {
1066
 
1087
 
1067
       },
1088
       },
1068
-      prescriptionFunc: function (val,advices) {
1089
+      prescriptionFunc: function (val, advices) {
1069
         this.prescription = val
1090
         this.prescription = val
1070
         this.requestDialysisRecord()
1091
         this.requestDialysisRecord()
1071
         // if (advices.length > 0){
1092
         // if (advices.length > 0){
1235
         this.requestDialysisRecord()
1256
         this.requestDialysisRecord()
1236
         // this.scrollToView('dialysis_computer')
1257
         // this.scrollToView('dialysis_computer')
1237
       },
1258
       },
1238
-       closeDialysisComputerclose: function (dialysis_order) {
1259
+      closeDialysisComputerclose: function (dialysis_order) {
1239
         this.closeDialog(0)
1260
         this.closeDialog(0)
1240
         // this.dialysis_order = dialysis_order
1261
         // this.dialysis_order = dialysis_order
1241
         // this.scrollToView('dialysis_computer')
1262
         // this.scrollToView('dialysis_computer')

+ 109 - 104
src/pages/main/today/acceptsAssessment.vue 查看文件

55
           <span class="content">{{this.record.sick_condition_other}} </span>
55
           <span class="content">{{this.record.sick_condition_other}} </span>
56
         </li>
56
         </li>
57
 
57
 
58
-
59
-
60
         <li style="height: 0.6rem;"  v-if="isShow('摄入量')">
58
         <li style="height: 0.6rem;"  v-if="isShow('摄入量')">
61
           <label>摄入量:</label>
59
           <label>摄入量:</label>
62
           <span class="content">{{intakes}}</span>
60
           <span class="content">{{intakes}}</span>
64
 
62
 
65
       <!-- </ul>
63
       <!-- </ul>
66
 
64
 
67
-
68
       <ul > -->
65
       <ul > -->
69
         <li style="height: 0.6rem;" v-if="isShow('营养状况')">
66
         <li style="height: 0.6rem;" v-if="isShow('营养状况')">
70
           <label>营养状况:</label>
67
           <label>营养状况:</label>
85
 
82
 
86
       </ul>
83
       </ul>
87
 
84
 
88
-
89
     </div>
85
     </div>
90
   </div>
86
   </div>
91
 </template>
87
 </template>
92
 
88
 
93
 <script>
89
 <script>
94
 export default {
90
 export default {
95
-  name: "AcceptsAssessment",
96
-  data() {
91
+  name: 'AcceptsAssessment',
92
+  data () {
97
     return {
93
     return {
98
-      title: "接诊评估 ",
94
+      title: '接诊评估 ',
99
 
95
 
100
       ways: {
96
       ways: {
101
-        "1": "步行",
102
-        "2": "扶行",
103
-        "3": "轮椅",
104
-        "4": "平车",
97
+        '1': '步行',
98
+        '2': '扶行',
99
+        '3': '轮椅',
100
+        '4': '平车'
105
       },
101
       },
106
       conditions: {
102
       conditions: {
107
-        "1": "住院",
108
-        "2": "门诊",
109
-        "3": "手术期",
103
+        '1': '住院',
104
+        '2': '门诊',
105
+        '3': '手术期'
110
       },
106
       },
111
       consciousnesses: {
107
       consciousnesses: {
112
-        "1": "清醒",
113
-        "2": "嗜睡",
114
-        "3": "昏迷",
115
-        "4": "模糊",
108
+        '1': '清醒',
109
+        '2': '嗜睡',
110
+        '3': '昏迷',
111
+        '4': '模糊'
116
       },
112
       },
117
       appetites: {
113
       appetites: {
118
-        "1": "正常",
119
-        "2": "减退",
120
-        "3": "恶心",
121
-        "4": "呕吐",
122
-        "5": "腹泻",
114
+        '1': '正常',
115
+        '2': '减退',
116
+        '3': '恶心',
117
+        '4': '呕吐',
118
+        '5': '腹泻'
123
       },
119
       },
124
       postures: {
120
       postures: {
125
-        "1": "自动体位",
126
-        "2": "平卧位",
127
-        "3": "半卧位",
128
-        "4": "端坐位",
129
-        "5": "躁动不安",
130
-      }, sick_condition: {
131
-        "1": "一般",
132
-        "2": "重",
133
-        "3": "危",
134
-      }, danger_level: {
135
-        "1": "无",
136
-        "2": "低风险",
137
-        "3": "中度风险",
138
-        "4": "高风险",
121
+        '1': '自动体位',
122
+        '2': '平卧位',
123
+        '3': '半卧位',
124
+        '4': '端坐位',
125
+        '5': '躁动不安'
126
+      },
127
+sick_condition: {
128
+        '1': '一般',
129
+        '2': '重',
130
+        '3': '危'
131
+      },
132
+danger_level: {
133
+        '1': '无',
134
+        '2': '低风险',
135
+        '3': '中度风险',
136
+        '4': '高风险'
139
 
137
 
140
-      }, intake: {
141
-        "1": "正常",
142
-        "2": "减少",
143
-      },nutrition: {
144
-        "1": "正常",
145
-        "2": "营养不良",
146
-      },psychological_assessment: {
147
-        "1": "正常",
148
-        "2": "异常",
149
-      },precautionss: {
150
-        "1": "镇定剂",
151
-        "2": "约束带",
152
-        "3": "床栏",
153
-        "4": "加强宣教",
138
+      },
139
+intake: {
140
+        '1': '正常',
141
+        '2': '减少'
142
+      }, 
143
+nutrition: {
144
+        '1': '正常',
145
+        '2': '营养不良'
146
+      }, 
147
+psychological_assessment: {
148
+        '1': '正常',
149
+        '2': '异常'
150
+      }, 
151
+precautionss: {
152
+        '1': '镇定剂',
153
+        '2': '约束带',
154
+        '3': '床栏',
155
+        '4': '加强宣教'
154
       }
156
       }
155
-    };
157
+    }
156
   },
158
   },
157
   props: {
159
   props: {
158
     record: {
160
     record: {
161
   },
163
   },
162
   computed: {
164
   computed: {
163
 
165
 
164
-    way: function() {
165
-      if (this.record == null || this.record.id == "") {
166
-        return ""
166
+    way: function () {
167
+      if (this.record == null || this.record.id == '') {
168
+        return ''
167
       } else {
169
       } else {
168
-        return this.ways[this.record.way] == undefined ? "" : (this.ways[this.record.way] + "")
170
+        return this.ways[this.record.way] == undefined ? '' : (this.ways[this.record.way] + '')
169
       }
171
       }
170
     },
172
     },
171
-    condition: function() {
172
-      if (this.record == null || this.record.id == "") {
173
-        return ""
173
+    condition: function () {
174
+      if (this.record == null || this.record.id == '') {
175
+        return ''
174
       } else {
176
       } else {
175
-        return this.conditions[this.record.condition] == undefined ? "" : this.conditions[this.record.condition] + ""
177
+        return this.conditions[this.record.condition] == undefined ? '' : this.conditions[this.record.condition] + ''
176
       }
178
       }
177
     },
179
     },
178
-    consciousness: function() {
179
-      if (this.record == null || this.record.id == "") {
180
-        return ""
180
+    consciousness: function () {
181
+      if (this.record == null || this.record.id == '') {
182
+        return ''
181
       } else {
183
       } else {
182
-        return this.consciousnesses[this.record.consciousness] == undefined ? "" : this.consciousnesses[this.record.consciousness] + ""
184
+        return this.consciousnesses[this.record.consciousness] == undefined ? '' : this.consciousnesses[this.record.consciousness] + ''
183
       }
185
       }
184
     },
186
     },
185
-    appetite: function() {
186
-      if (this.record == null || this.record.id == "") {
187
-        return ""
187
+    appetite: function () {
188
+      if (this.record == null || this.record.id == '') {
189
+        return ''
188
       } else {
190
       } else {
189
-        return this.appetites[this.record.appetite] == undefined ? "" : this.appetites[this.record.appetite] + ""
191
+        return this.appetites[this.record.appetite] == undefined ? '' : this.appetites[this.record.appetite] + ''
190
       }
192
       }
191
     },
193
     },
192
-    posture: function() {
193
-      if (this.record == null || this.record.id == "") {
194
-        return ""
194
+    posture: function () {
195
+      if (this.record == null || this.record.id == '') {
196
+        return ''
195
       } else {
197
       } else {
196
-        return this.postures[this.record.posture] == undefined ? "" : this.postures[this.record.posture] + ""
198
+        return this.postures[this.record.posture] == undefined ? '' : this.postures[this.record.posture] + ''
197
       }
199
       }
198
-    },sickCondition: function() {
199
-      if (this.record == null || this.record.id == "") {
200
-        return ""
200
+    }, 
201
+sickCondition: function () {
202
+      if (this.record == null || this.record.id == '') {
203
+        return ''
201
       } else {
204
       } else {
202
-        return this.sick_condition[this.record.sick_condition] == undefined ? "" : this.sick_condition[this.record.sick_condition] + ""
205
+        return this.sick_condition[this.record.sick_condition] == undefined ? '' : this.sick_condition[this.record.sick_condition] + ''
203
       }
206
       }
204
-    },dangerLevel: function() {
205
-      if (this.record == null || this.record.id == "") {
206
-        return ""
207
+    }, 
208
+dangerLevel: function () {
209
+      if (this.record == null || this.record.id == '') {
210
+        return ''
207
       } else {
211
       } else {
208
-        return this.danger_level[this.record.danger_level] == undefined ? "" : this.danger_level[this.record.danger_level] + ""
212
+        return this.danger_level[this.record.danger_level] == undefined ? '' : this.danger_level[this.record.danger_level] + ''
209
       }
213
       }
210
-    },precautions: function() {
211
-      if (this.record == null || this.record.id == "") {
212
-        return ""
214
+    }, 
215
+precautions: function () {
216
+      if (this.record == null || this.record.id == '') {
217
+        return ''
213
       } else {
218
       } else {
214
-        return this.precautionss[this.record.precaution] == undefined ? "" : this.precautionss[this.record.precaution] + ""
219
+        return this.precautionss[this.record.precaution] == undefined ? '' : this.precautionss[this.record.precaution] + ''
215
       }
220
       }
216
-    },intakes: function() {
217
-      if (this.record == null || this.record.id == "") {
218
-        return ""
221
+    }, 
222
+intakes: function () {
223
+      if (this.record == null || this.record.id == '') {
224
+        return ''
219
       } else {
225
       } else {
220
-        return this.intake[this.record.intake] == undefined ? "" : this.intake[this.record.intake] + ""
226
+        return this.intake[this.record.intake] == undefined ? '' : this.intake[this.record.intake] + ''
221
       }
227
       }
222
-    },nutritions: function() {
223
-      if (this.record == null || this.record.id == "") {
224
-        return ""
228
+    }, 
229
+nutritions: function () {
230
+      if (this.record == null || this.record.id == '') {
231
+        return ''
225
       } else {
232
       } else {
226
-        return this.nutrition[this.record.nutrition] == undefined ? "" : this.nutrition[this.record.nutrition] + ""
233
+        return this.nutrition[this.record.nutrition] == undefined ? '' : this.nutrition[this.record.nutrition] + ''
227
       }
234
       }
228
-    },psychologicalAssessment: function() {
229
-      if (this.record == null || this.record.id == "") {
230
-        return ""
235
+    }, 
236
+psychologicalAssessment: function () {
237
+      if (this.record == null || this.record.id == '') {
238
+        return ''
231
       } else {
239
       } else {
232
-        return this.psychological_assessment[this.record.psychological_assessment] == undefined ? "" : this.psychological_assessment[this.record.psychological_assessment] + ""
240
+        return this.psychological_assessment[this.record.psychological_assessment] == undefined ? '' : this.psychological_assessment[this.record.psychological_assessment] + ''
233
       }
241
       }
234
     }
242
     }
235
   },
243
   },
236
   methods: {
244
   methods: {
237
-    isShow(name){
245
+    isShow (name) {
238
       var filedList = this.$store.getters.user.fileds
246
       var filedList = this.$store.getters.user.fileds
239
 
247
 
240
-      for (let i = 0; i < filedList.length; i++){
241
-        if(filedList[i].module == 2 && filedList[i].filed_name_cn == name&&filedList[i].is_show == 1){
248
+      for (let i = 0; i < filedList.length; i++) {
249
+        if (filedList[i].module == 2 && filedList[i].filed_name_cn == name && filedList[i].is_show == 1) {
242
           return true
250
           return true
243
         }
251
         }
244
       }
252
       }
245
       return false
253
       return false
246
-    },
254
+    }
247
 
255
 
248
   }
256
   }
249
-};
257
+}
250
 </script>
258
 </script>
251
 
259
 
252
 <style rel="stylesheet/scss" lang="scss" scoped>
260
 <style rel="stylesheet/scss" lang="scss" scoped>
253
 
261
 
254
 </style>
262
 </style>
255
-
256
-
257
-

+ 182 - 166
src/pages/main/today/assessmentAfter.vue 查看文件

7
         <li v-if="isShow('透后体重')">
7
         <li v-if="isShow('透后体重')">
8
           <label for="thtz">透后体重 : </label>
8
           <label for="thtz">透后体重 : </label>
9
           <span class="content" id="thtz">{{weight_after?weight_after:''}}</span>
9
           <span class="content" id="thtz">{{weight_after?weight_after:''}}</span>
10
-          <span class="unit">{{weight_after?"kg":''}}</span>
10
+          <span class="unit">{{weight_after?'kg':''}}</span>
11
         </li>
11
         </li>
12
         <li v-if="isShow('收缩压')">
12
         <li v-if="isShow('收缩压')">
13
           <label for="ssy">收缩压 : </label>
13
           <label for="ssy">收缩压 : </label>
14
           <span class="content" id="ssy">{{systolic_blood_pressure?systolic_blood_pressure:''}}</span>
14
           <span class="content" id="ssy">{{systolic_blood_pressure?systolic_blood_pressure:''}}</span>
15
-          <span class="unit">{{systolic_blood_pressure?"mmHg":''}}</span>
15
+          <span class="unit">{{systolic_blood_pressure?'mmHg':''}}</span>
16
         </li>
16
         </li>
17
         <li v-if="isShow('实际超滤量')">
17
         <li v-if="isShow('实际超滤量')">
18
           <label for="sjcll">实际超滤量: </label>
18
           <label for="sjcll">实际超滤量: </label>
19
           <span class="content" id="sjcll">{{actual_ultrafiltration?actual_ultrafiltration:''}}</span>
19
           <span class="content" id="sjcll">{{actual_ultrafiltration?actual_ultrafiltration:''}}</span>
20
-          <span v-if="template_id == 6" class="unit">{{actual_ultrafiltration?"ml":''}}</span>
21
-          <span v-else class="unit">{{actual_ultrafiltration?"L":''}}</span>
20
+          <span v-if="template_id == 6" class="unit">{{actual_ultrafiltration?'ml':''}}</span>
21
+          <span v-else class="unit">{{actual_ultrafiltration?'L':''}}</span>
22
         </li>
22
         </li>
23
         <li v-if="isShow('透析器凝血')">
23
         <li v-if="isShow('透析器凝血')">
24
           <label for="nx">透析器凝血 : </label>
24
           <label for="nx">透析器凝血 : </label>
43
         <li v-if="isShow('体温')">
43
         <li v-if="isShow('体温')">
44
           <label for="tw">体温 : </label>
44
           <label for="tw">体温 : </label>
45
           <span class="content" id="tw">{{temperature?temperature:''}}</span>
45
           <span class="content" id="tw">{{temperature?temperature:''}}</span>
46
-          <span class="unit">{{temperature?"℃":''}}</span>
46
+          <span class="unit">{{temperature?'℃':''}}</span>
47
         </li>
47
         </li>
48
 
48
 
49
         <li v-if="isShow('呼吸频率')">
49
         <li v-if="isShow('呼吸频率')">
50
           <label for="ml">呼吸频率 : </label>
50
           <label for="ml">呼吸频率 : </label>
51
           <span id="ml" class="content">{{breathing_rate?breathing_rate:''}}</span>
51
           <span id="ml" class="content">{{breathing_rate?breathing_rate:''}}</span>
52
-          <span class="unit">{{breathing_rate?"次/min":''}}</span>
52
+          <span class="unit">{{breathing_rate?'次/min':''}}</span>
53
         </li>
53
         </li>
54
 
54
 
55
         <li v-if="isShow('脉搏')">
55
         <li v-if="isShow('脉搏')">
56
           <label for="ml">脉搏 : </label>
56
           <label for="ml">脉搏 : </label>
57
           <span id="ml" class="content">{{pulse_frequency?pulse_frequency:''}}</span>
57
           <span id="ml" class="content">{{pulse_frequency?pulse_frequency:''}}</span>
58
-          <span class="unit">{{pulse_frequency?"次/分":''}}</span>
58
+          <span class="unit">{{pulse_frequency?'次/分':''}}</span>
59
         </li>
59
         </li>
60
 
60
 
61
         <li v-if="isShow('血管通路操作')">
61
         <li v-if="isShow('血管通路操作')">
63
           <span id="xgtlcz" class="content">{{blood_access_opera}}</span>
63
           <span id="xgtlcz" class="content">{{blood_access_opera}}</span>
64
         </li>
64
         </li>
65
 
65
 
66
-      <!-- </ul>
66
+        <!-- </ul>
67
 
67
 
68
-      <ul> -->
68
+        <ul> -->
69
         <li v-if="isShow('体重减少')">
69
         <li v-if="isShow('体重减少')">
70
           <label for="tzjs">体重减少 : </label>
70
           <label for="tzjs">体重减少 : </label>
71
           <span class="content" id="tzjs">{{weight_loss?weight_loss:''}}</span>
71
           <span class="content" id="tzjs">{{weight_loss?weight_loss:''}}</span>
72
-          <span class="unit">{{weight_loss?"kg":''}}</span>
72
+          <span class="unit">{{weight_loss?'kg':''}}</span>
73
         </li>
73
         </li>
74
         <li v-if="isShow('舒张压')">
74
         <li v-if="isShow('舒张压')">
75
           <label for="szy">舒张压 : </label>
75
           <label for="szy">舒张压 : </label>
76
           <span id="szy" class="content">{{diastolic_blood_pressure?diastolic_blood_pressure:''}}</span>
76
           <span id="szy" class="content">{{diastolic_blood_pressure?diastolic_blood_pressure:''}}</span>
77
-          <span class="unit">{{diastolic_blood_pressure?"mmHg":''}}</span>
77
+          <span class="unit">{{diastolic_blood_pressure?'mmHg':''}}</span>
78
         </li>
78
         </li>
79
         <li v-if="isShow('实际置换量')">
79
         <li v-if="isShow('实际置换量')">
80
           <label for="sjzhl">实际置换量 : </label>
80
           <label for="sjzhl">实际置换量 : </label>
81
           <span id="sjzhl" class="content">{{actual_displacement?actual_displacement:''}}</span>
81
           <span id="sjzhl" class="content">{{actual_displacement?actual_displacement:''}}</span>
82
-          <span class="unit">{{actual_displacement?"ml":''}}</span>
82
+          <span class="unit">{{actual_displacement?'ml':''}}</span>
83
         </li>
83
         </li>
84
         <li v-if="isShow('透后症状')">
84
         <li v-if="isShow('透后症状')">
85
           <label for="thzz">透后症状 : </label>
85
           <label for="thzz">透后症状 : </label>
107
         </li>
107
         </li>
108
         <li v-if="isShow('透析中入量')">
108
         <li v-if="isShow('透析中入量')">
109
           <label for="txzrl">透析中入量: </label>
109
           <label for="txzrl">透析中入量: </label>
110
-          <span id="txzrl" class="content">{{dialysis_intakes_feed?dialysis_intakes_feed:''}}</span>
110
+          <span id="txzrl" class="content">{{dialysis_intakes_feed?dialysis_intakes_feed:''}}{{getUnit(this.record.dialysis_intakes_unit)}}</span>
111
         </li>
111
         </li>
112
 
112
 
113
         <li v-if="isShow('患者去向')">
113
         <li v-if="isShow('患者去向')">
117
         <li v-if="patient_gose==3&&isShow('其他观察内容')">
117
         <li v-if="patient_gose==3&&isShow('其他观察内容')">
118
           <label for="qtgcnr">其他观察内容 : </label>
118
           <label for="qtgcnr">其他观察内容 : </label>
119
           <span id="qtgcnr" class="content">{{observation_content_other}}</span>
119
           <span id="qtgcnr" class="content">{{observation_content_other}}</span>
120
-        </li >
121
-        <li  v-if="isShow('拔针后穿刺点渗血')">
120
+        </li>
121
+        <li v-if="isShow('拔针后穿刺点渗血')">
122
           <label for="bzh">拔针后穿刺点渗血: </label>
122
           <label for="bzh">拔针后穿刺点渗血: </label>
123
           <span id="bzh" class="content">{{puncture_point_oozing_blood_name}}</span>
123
           <span id="bzh" class="content">{{puncture_point_oozing_blood_name}}</span>
124
         </li>
124
         </li>
125
-      <!-- </ul>
126
-
125
+        <!-- </ul>
127
 
126
 
128
-      <ul > -->
127
+        <ul > -->
129
         <li v-if="isShow('透析过程')">
128
         <li v-if="isShow('透析过程')">
130
           <label for="tw">透析过程 : </label>
129
           <label for="tw">透析过程 : </label>
131
           <span class="content" id="tw" v-if="this.record.dialysis_process == 1">完成</span>
130
           <span class="content" id="tw" v-if="this.record.dialysis_process == 1">完成</span>
133
         </li>
132
         </li>
134
         <li v-if="this.record.dialysis_process == 2&&isShow('透析过程提前原因')">
133
         <li v-if="this.record.dialysis_process == 2&&isShow('透析过程提前原因')">
135
           <label for="tw">透析过程提前原因 : </label>
134
           <label for="tw">透析过程提前原因 : </label>
136
-          <span class="content" id="tw" >{{in_advance_reason}}</span>
135
+          <span class="content" id="tw">{{in_advance_reason}}</span>
137
         </li>
136
         </li>
138
 
137
 
139
-
140
-
141
         <li v-if="isShow('内瘘管拔针后压迫止血时间')">
138
         <li v-if="isShow('内瘘管拔针后压迫止血时间')">
142
           <label for="ml">内瘘管拔针后压迫止血时间 : </label>
139
           <label for="ml">内瘘管拔针后压迫止血时间 : </label>
143
           <span id="ml" class="content" v-if="hemostasis_minute">{{hemostasis_minute}}min</span>
140
           <span id="ml" class="content" v-if="hemostasis_minute">{{hemostasis_minute}}min</span>
172
           <span id="hzqx" class="content">{{getDialyzer(this.record.dialyzer)}}</span>
169
           <span id="hzqx" class="content">{{getDialyzer(this.record.dialyzer)}}</span>
173
         </li>
170
         </li>
174
 
171
 
175
-        <li  v-if="isShow('透析期间进食')">
172
+        <li v-if="isShow('透析期间进食')">
176
           <label for="bzh">透析期间进食: </label>
173
           <label for="bzh">透析期间进食: </label>
177
           <span id="bzh" class="content">{{eat_name}}</span>
174
           <span id="bzh" class="content">{{eat_name}}</span>
178
         </li>
175
         </li>
184
 
181
 
185
 <script>
182
 <script>
186
   export default {
183
   export default {
187
-    name: "DialysisPrescription",
188
-    data() {
184
+    name: 'DialysisPrescription',
185
+    data () {
189
       return {
186
       return {
190
-        title: "透后评估 ",
191
-        template_id: 0,
187
+        title: '透后评估 ',
188
+        template_id: 0
192
         // note: "无明显异常",
189
         // note: "无明显异常",
193
         // doctor: "刘小军  医生",
190
         // doctor: "刘小军  医生",
194
         // info1: [
191
         // info1: [
212
         //   { value: "4", label: "透析中入量: ", content: "一般", unit: "" },
209
         //   { value: "4", label: "透析中入量: ", content: "一般", unit: "" },
213
         //   { value: "4", label: "并发症: ", content: "痔疮出血", unit: "" }
210
         //   { value: "4", label: "并发症: ", content: "痔疮出血", unit: "" }
214
         // ]
211
         // ]
215
-      };
212
+      }
216
     },
213
     },
217
     props: {
214
     props: {
218
       record: {
215
       record: {
219
-        type: Object,
216
+        type: Object
220
       }
217
       }
221
-    }, created() {
218
+    },
219
+    created () {
222
       this.template_id = this.$store.getters.user.template_info.template_id
220
       this.template_id = this.$store.getters.user.template_info.template_id
223
     },
221
     },
224
     computed: {
222
     computed: {
225
       weight_after: function () {
223
       weight_after: function () {
226
-        if (this.record == null || this.record.id == "") {
227
-          return "-"
224
+        if (this.record == null || this.record.id == '') {
225
+          return '-'
228
         }
226
         }
229
         return this.record.weight_after
227
         return this.record.weight_after
230
       },
228
       },
231
       systolic_blood_pressure: function () {
229
       systolic_blood_pressure: function () {
232
-        if (this.record == null || this.record.id == "") {
233
-          return "-"
230
+        if (this.record == null || this.record.id == '') {
231
+          return '-'
234
         }
232
         }
235
         return this.record.systolic_blood_pressure
233
         return this.record.systolic_blood_pressure
236
       },
234
       },
237
       actual_ultrafiltration: function () {
235
       actual_ultrafiltration: function () {
238
-        if (this.record == null || this.record.id == "") {
239
-          return "-"
236
+        if (this.record == null || this.record.id == '') {
237
+          return '-'
240
         }
238
         }
241
         return this.record.actual_ultrafiltration
239
         return this.record.actual_ultrafiltration
242
       },
240
       },
243
       cruor: function () {
241
       cruor: function () {
244
-        if (this.record == null || this.record.id == "") {
245
-          return "-"
242
+        if (this.record == null || this.record.id == '') {
243
+          return '-'
246
         }
244
         }
247
         return this.record.cruor
245
         return this.record.cruor
248
       },
246
       },
249
       internal_fistula: function () {
247
       internal_fistula: function () {
250
-        if (this.record == null || this.record.id == "") {
251
-          return "-"
248
+        if (this.record == null || this.record.id == '') {
249
+          return '-'
252
         }
250
         }
253
-        return this.record.internal_fistula;
251
+        return this.record.internal_fistula
254
       },
252
       },
255
       weight_loss: function () {
253
       weight_loss: function () {
256
-        if (this.record == null || this.record.id == "") {
257
-          return "-"
254
+        if (this.record == null || this.record.id == '') {
255
+          return '-'
258
         }
256
         }
259
         return this.record.weight_loss
257
         return this.record.weight_loss
260
       },
258
       },
261
       inpatient_department: function () {
259
       inpatient_department: function () {
262
-        if (this.record == null || this.record.id == "") {
263
-          return "-"
260
+        if (this.record == null || this.record.id == '') {
261
+          return '-'
264
         }
262
         }
265
         return this.record.inpatient_department
263
         return this.record.inpatient_department
266
       },
264
       },
267
       patient_gose: function () {
265
       patient_gose: function () {
268
-        if (this.record == null || this.record.id == "") {
266
+        if (this.record == null || this.record.id == '') {
269
           return 0
267
           return 0
270
         }
268
         }
271
         return this.record.patient_gose
269
         return this.record.patient_gose
272
       },
270
       },
273
       diastolic_blood_pressure: function () {
271
       diastolic_blood_pressure: function () {
274
-        if (this.record == null || this.record.id == "") {
275
-          return "-"
272
+        if (this.record == null || this.record.id == '') {
273
+          return '-'
276
         }
274
         }
277
         return this.record.diastolic_blood_pressure
275
         return this.record.diastolic_blood_pressure
278
       },
276
       },
279
       actual_displacement: function () {
277
       actual_displacement: function () {
280
-        if (this.record == null || this.record.id == "") {
281
-          return "-"
278
+        if (this.record == null || this.record.id == '') {
279
+          return '-'
282
         }
280
         }
283
         return this.record.actual_displacement
281
         return this.record.actual_displacement
284
       },
282
       },
285
       symptom_after_dialysis: function () {
283
       symptom_after_dialysis: function () {
286
-        if (this.record == null || this.record.id == "") {
287
-          return "-"
284
+        if (this.record == null || this.record.id == '') {
285
+          return '-'
288
         }
286
         }
289
         return this.record.symptom_after_dialysis
287
         return this.record.symptom_after_dialysis
290
       },
288
       },
291
       blood_access_part: function () {
289
       blood_access_part: function () {
292
-        if (this.record == null || this.record.id == "") {
293
-          return "-"
290
+        if (this.record == null || this.record.id == '') {
291
+          return '-'
294
         }
292
         }
295
-        let vascular_access = this.$store.getters.vascular_access;
293
+        let vascular_access = this.$store.getters.vascular_access
296
         let valen = vascular_access.length
294
         let valen = vascular_access.length
297
-        let name = '-';
295
+        let name = '-'
298
         for (let index = 0; index < valen; index++) {
296
         for (let index = 0; index < valen; index++) {
299
           if (vascular_access[index].id == this.record.blood_access_part_id) {
297
           if (vascular_access[index].id == this.record.blood_access_part_id) {
300
-            name = vascular_access[index].name;
301
-            break;
298
+            name = vascular_access[index].name
299
+            break
302
           }
300
           }
303
         }
301
         }
304
         return name
302
         return name
305
       },
303
       },
306
       puncture_point_oozing_blood_name: function () {
304
       puncture_point_oozing_blood_name: function () {
307
-
308
-        if (this.record == null || this.record.id == "") {
309
-          return "-"
305
+        if (this.record == null || this.record.id == '') {
306
+          return '-'
310
         }
307
         }
311
         switch (this.record.puncture_point_oozing_blood) {
308
         switch (this.record.puncture_point_oozing_blood) {
312
           case 1:
309
           case 1:
313
             return '有'
310
             return '有'
314
-            break;
311
+            break
315
           case 2:
312
           case 2:
316
             return '无'
313
             return '无'
317
             break
314
             break
318
 
315
 
319
           default:
316
           default:
320
             return '-'
317
             return '-'
321
-            break;
318
+            break
322
         }
319
         }
323
-      },eat_name:function(){
324
-        if (this.record == null || this.record.id == "") {
325
-          return "-"
320
+      },
321
+
322
+      eat_name: function () {
323
+        if (this.record == null || this.record.id == '') {
324
+          return '-'
326
         }
325
         }
327
         switch (this.record.is_eat) {
326
         switch (this.record.is_eat) {
328
           case 1:
327
           case 1:
329
             return '有'
328
             return '有'
330
-            break;
329
+            break
331
           case 2:
330
           case 2:
332
             return '无'
331
             return '无'
333
             break
332
             break
334
 
333
 
335
           default:
334
           default:
336
             return '-'
335
             return '-'
337
-            break;
336
+            break
338
         }
337
         }
339
       },
338
       },
340
       patient_gose_name: function () {
339
       patient_gose_name: function () {
341
-        if (this.record == null || this.record.id == "") {
342
-          return "-"
340
+        if (this.record == null || this.record.id == '') {
341
+          return '-'
343
         }
342
         }
344
         switch (this.record.patient_gose) {
343
         switch (this.record.patient_gose) {
345
           case 1:
344
           case 1:
346
             return '离院'
345
             return '离院'
347
-            break;
346
+            break
348
           case 2:
347
           case 2:
349
             return '留观'
348
             return '留观'
350
             break
349
             break
354
 
353
 
355
           default:
354
           default:
356
             return '-'
355
             return '-'
357
-            break;
356
+            break
358
         }
357
         }
359
       },
358
       },
360
       blood_access_opera: function () {
359
       blood_access_opera: function () {
361
-        if (this.record == null || this.record.id == "") {
362
-          return "-"
360
+        if (this.record == null || this.record.id == '') {
361
+          return '-'
363
         }
362
         }
364
-        let vascular_access = this.$store.getters.vascular_access_desc;
363
+        let vascular_access = this.$store.getters.vascular_access_desc
365
         let valen = vascular_access.length
364
         let valen = vascular_access.length
366
-        let name = '-';
365
+        let name = '-'
367
         for (let index = 0; index < valen; index++) {
366
         for (let index = 0; index < valen; index++) {
368
           if (vascular_access[index].id == this.record.blood_access_part_opera_id) {
367
           if (vascular_access[index].id == this.record.blood_access_part_opera_id) {
369
-            name = vascular_access[index].name;
370
-            break;
368
+            name = vascular_access[index].name
369
+            break
371
           }
370
           }
372
         }
371
         }
373
         return name
372
         return name
374
       },
373
       },
375
       catheter: function () {
374
       catheter: function () {
376
-        if (this.record == null || this.record.id == "") {
377
-          return "-"
375
+        if (this.record == null || this.record.id == '') {
376
+          return '-'
378
         }
377
         }
379
         return this.record.catheter
378
         return this.record.catheter
380
       },
379
       },
381
       puncture_point_haematoma_name: function () {
380
       puncture_point_haematoma_name: function () {
382
-        if (this.record == null || this.record.id == "") {
383
-          return "-"
381
+        if (this.record == null || this.record.id == '') {
382
+          return '-'
384
         }
383
         }
385
         switch (this.record.puncture_point_haematoma) {
384
         switch (this.record.puncture_point_haematoma) {
386
           case 1:
385
           case 1:
387
             return '有'
386
             return '有'
388
-            break;
387
+            break
389
           case 2:
388
           case 2:
390
             return '无'
389
             return '无'
391
             break
390
             break
392
           default:
391
           default:
393
             return '-'
392
             return '-'
394
-            break;
393
+            break
395
         }
394
         }
396
       },
395
       },
397
-      breathing_rate:function(){
398
-        if (this.record == null || this.record.id == "") {
399
-          return "-"
396
+      breathing_rate: function () {
397
+        if (this.record == null || this.record.id == '') {
398
+          return '-'
400
         }
399
         }
401
         return this.record.breathing_rate
400
         return this.record.breathing_rate
402
       },
401
       },
403
       temperature: function () {
402
       temperature: function () {
404
-        if (this.record == null || this.record.id == "") {
405
-          return "-"
403
+        if (this.record == null || this.record.id == '') {
404
+          return '-'
406
         }
405
         }
407
         return this.record.temperature
406
         return this.record.temperature
408
       },
407
       },
409
       pulse_frequency: function () {
408
       pulse_frequency: function () {
410
-        if (this.record == null || this.record.id == "") {
411
-          return "-"
409
+        if (this.record == null || this.record.id == '') {
410
+          return '-'
412
         }
411
         }
413
         return this.record.pulse_frequency
412
         return this.record.pulse_frequency
414
       },
413
       },
415
       actual_treatment_hour: function () {
414
       actual_treatment_hour: function () {
416
-        if (this.record == null || this.record.id == "") {
417
-          return "-"
415
+        if (this.record == null || this.record.id == '') {
416
+          return '-'
418
         }
417
         }
419
         return this.record.actual_treatment_hour
418
         return this.record.actual_treatment_hour
420
       },
419
       },
421
       actual_treatment_minute: function () {
420
       actual_treatment_minute: function () {
422
-        if (this.record == null || this.record.id == "") {
423
-          return "-"
421
+        if (this.record == null || this.record.id == '') {
422
+          return '-'
424
         }
423
         }
425
         return this.record.actual_treatment_minute
424
         return this.record.actual_treatment_minute
426
       },
425
       },
427
       dialysis_intakes_feed: function () {
426
       dialysis_intakes_feed: function () {
428
-        if (this.record == null || this.record.id == "") {
429
-          return "-"
427
+        if (this.record == null || this.record.id == '') {
428
+          return '-'
430
         }
429
         }
431
         return this.record.dialysis_intakes
430
         return this.record.dialysis_intakes
432
       },
431
       },
433
       observation_content_other: function () {
432
       observation_content_other: function () {
434
-        if (this.record == null || this.record.id == "") {
435
-          return "-"
433
+        if (this.record == null || this.record.id == '') {
434
+          return '-'
436
         }
435
         }
437
         return this.record.observation_content_other
436
         return this.record.observation_content_other
438
       },
437
       },
439
       observation_content: function () {
438
       observation_content: function () {
440
-        if (this.record == null || this.record.id == "") {
441
-          return "-"
439
+        if (this.record == null || this.record.id == '') {
440
+          return '-'
442
         }
441
         }
443
         return this.record.observation_content
442
         return this.record.observation_content
444
       },
443
       },
445
       complication: function () {
444
       complication: function () {
446
-        if (this.record == null || this.record.id == "") {
447
-          return "-"
445
+        if (this.record == null || this.record.id == '') {
446
+          return '-'
448
         }
447
         }
449
         return this.record.complication
448
         return this.record.complication
450
       },
449
       },
451
       internal_fistula_tremor_ac_name: function () {
450
       internal_fistula_tremor_ac_name: function () {
452
-        if (this.record == null || this.record.id == "") {
453
-          return "-"
451
+        if (this.record == null || this.record.id == '') {
452
+          return '-'
454
         }
453
         }
455
         switch (this.record.internal_fistula_tremor_ac) {
454
         switch (this.record.internal_fistula_tremor_ac) {
456
           case 1:
455
           case 1:
457
             return '存在'
456
             return '存在'
458
-            break;
457
+            break
459
           case 2:
458
           case 2:
460
             return '减弱'
459
             return '减弱'
461
-            break;
460
+            break
462
           case 3:
461
           case 3:
463
-            return '无';
462
+            return '无'
464
             break
463
             break
465
           default:
464
           default:
466
             return '-'
465
             return '-'
467
-            break;
466
+            break
468
         }
467
         }
469
       },
468
       },
470
 
469
 
471
       remark: function () {
470
       remark: function () {
472
-        if (this.record == null || this.record.id == "") {
473
-          return ""
471
+        if (this.record == null || this.record.id == '') {
472
+          return ''
474
         }
473
         }
475
         return this.record.remark
474
         return this.record.remark
476
-      },in_advance_minute:function () {
477
-        if (this.record == null || this.record.id == "") {
478
-          return ""
475
+      },
476
+      in_advance_minute: function () {
477
+        if (this.record == null || this.record.id == '') {
478
+          return ''
479
         }
479
         }
480
         return this.record.in_advance_minute
480
         return this.record.in_advance_minute
481
-      },in_advance_reason:function () {
482
-        if (this.record == null || this.record.id == "") {
483
-          return ""
481
+      },
482
+      in_advance_reason: function () {
483
+        if (this.record == null || this.record.id == '') {
484
+          return ''
484
         }
485
         }
485
-        return this.record.in_advance_reason + ","+this.record.in_advance_reason_other
486
-      },hemostasis_minute:function () {
487
-        if (this.record == null || this.record.id == "") {
488
-          return ""
486
+        return this.record.in_advance_reason + ',' + this.record.in_advance_reason_other
487
+      },
488
+      hemostasis_minute: function () {
489
+        if (this.record == null || this.record.id == '') {
490
+          return ''
489
         }
491
         }
490
 
492
 
491
         return this.record.hemostasis_minute
493
         return this.record.hemostasis_minute
492
-      },in_advance_reason_other:function () {
493
-        if (this.record == null || this.record.id == "") {
494
-          return ""
494
+      },
495
+      in_advance_reason_other: function () {
496
+        if (this.record == null || this.record.id == '') {
497
+          return ''
495
         }
498
         }
496
         return this.record.in_advance_reason_other
499
         return this.record.in_advance_reason_other
497
       }
500
       }
498
     },
501
     },
499
     methods: {
502
     methods: {
500
-      isShow(name){
503
+      isShow (name) {
501
         var filedList = this.$store.getters.user.fileds
504
         var filedList = this.$store.getters.user.fileds
502
 
505
 
503
-        for (let i = 0; i < filedList.length; i++){
504
-          if(filedList[i].module == 5 && filedList[i].filed_name_cn == name&&filedList[i].is_show == 1){
506
+        for (let i = 0; i < filedList.length; i++) {
507
+          if (filedList[i].module == 5 && filedList[i].filed_name_cn == name && filedList[i].is_show == 1) {
505
             return true
508
             return true
506
           }
509
           }
507
         }
510
         }
508
         return false
511
         return false
509
       },
512
       },
510
-      getOpera:function (id) {
511
-        var hemostasis_opera = this.$store.getters.hemostasis_opera;
512
-        var hemostasisOperaName = "";
513
-        for (let i = 0; i < hemostasis_opera.length; i++){
514
-          if(hemostasis_opera[i].id == id){
515
-            hemostasisOperaName =    hemostasis_opera[i].name
513
+      getOpera: function (id) {
514
+        var hemostasis_opera = this.$store.getters.hemostasis_opera
515
+        var hemostasisOperaName = ''
516
+        for (let i = 0; i < hemostasis_opera.length; i++) {
517
+          if (hemostasis_opera[i].id == id) {
518
+            hemostasisOperaName = hemostasis_opera[i].name
516
           }
519
           }
517
         }
520
         }
518
         return hemostasisOperaName
521
         return hemostasisOperaName
519
-
520
-      },getTremorNoise:function (id) {
521
-        var tremor_noise = this.$store.getters.tremor_noise;
522
-        var tremorNoiseName = "";
523
-        for (let i = 0; i < tremor_noise.length; i++){
524
-          if(tremor_noise[i].id == id){
525
-            tremorNoiseName =    tremor_noise[i].name
522
+      },
523
+      getTremorNoise: function (id) {
524
+        var tremor_noise = this.$store.getters.tremor_noise
525
+        var tremorNoiseName = ''
526
+        for (let i = 0; i < tremor_noise.length; i++) {
527
+          if (tremor_noise[i].id == id) {
528
+            tremorNoiseName = tremor_noise[i].name
526
           }
529
           }
527
         }
530
         }
528
         return tremorNoiseName
531
         return tremorNoiseName
529
-      },getDisequilibriumSyndrome:function (id) {
530
-        var disequilibrium_syndrome = this.$store.getters.disequilibrium_syndrome;
531
-        var disequilibriumSyndromeName = "";
532
-        for (let i = 0; i < disequilibrium_syndrome.length; i++){
533
-          if(disequilibrium_syndrome[i].id == id){
534
-            disequilibriumSyndromeName =    disequilibrium_syndrome[i].name
532
+      },
533
+      getDisequilibriumSyndrome: function (id) {
534
+        var disequilibrium_syndrome = this.$store.getters.disequilibrium_syndrome
535
+        var disequilibriumSyndromeName = ''
536
+        for (let i = 0; i < disequilibrium_syndrome.length; i++) {
537
+          if (disequilibrium_syndrome[i].id == id) {
538
+            disequilibriumSyndromeName = disequilibrium_syndrome[i].name
535
           }
539
           }
536
         }
540
         }
537
         return disequilibriumSyndromeName
541
         return disequilibriumSyndromeName
538
-
539
-      },getDisequilibriumSyndromeOptionName:function (id) {
540
-        var disequilibrium_syndrome_option = this.$store.getters.disequilibrium_syndrome_option;
541
-        var disequilibriumSyndromeOptionName = "";
542
+      },
543
+      getDisequilibriumSyndromeOptionName: function (id) {
544
+        var disequilibrium_syndrome_option = this.$store.getters.disequilibrium_syndrome_option
545
+        var disequilibriumSyndromeOptionName = ''
542
         for (let i = 0; i < disequilibrium_syndrome_option.length; i++) {
546
         for (let i = 0; i < disequilibrium_syndrome_option.length; i++) {
543
           if (disequilibrium_syndrome_option[i].id == id) {
547
           if (disequilibrium_syndrome_option[i].id == id) {
544
             disequilibriumSyndromeOptionName = disequilibrium_syndrome_option[i].name
548
             disequilibriumSyndromeOptionName = disequilibrium_syndrome_option[i].name
545
           }
549
           }
546
         }
550
         }
547
         return disequilibriumSyndromeOptionName
551
         return disequilibriumSyndromeOptionName
548
-      },getArterialTubeName:function (id) {
549
-        var arterial_tube = this.$store.getters.arterial_tube;
550
-        var arterialTubeName = "";
552
+      },
553
+      getArterialTubeName: function (id) {
554
+        var arterial_tube = this.$store.getters.arterial_tube
555
+        var arterialTubeName = ''
551
         for (let i = 0; i < arterial_tube.length; i++) {
556
         for (let i = 0; i < arterial_tube.length; i++) {
552
           if (arterial_tube[i].id == id) {
557
           if (arterial_tube[i].id == id) {
553
             arterialTubeName = arterial_tube[i].name
558
             arterialTubeName = arterial_tube[i].name
554
           }
559
           }
555
         }
560
         }
556
         return arterialTubeName
561
         return arterialTubeName
557
-
558
-      },getIntravenousTubeName:function (id) {
559
-        var intravenous_tube = this.$store.getters.intravenous_tube;
560
-        var intravenousTubeName = "";
562
+      },
563
+      getIntravenousTubeName: function (id) {
564
+        var intravenous_tube = this.$store.getters.intravenous_tube
565
+        var intravenousTubeName = ''
561
         for (let i = 0; i < intravenous_tube.length; i++) {
566
         for (let i = 0; i < intravenous_tube.length; i++) {
562
           if (intravenous_tube[i].id == id) {
567
           if (intravenous_tube[i].id == id) {
563
             intravenousTubeName = intravenous_tube[i].name
568
             intravenousTubeName = intravenous_tube[i].name
564
           }
569
           }
565
         }
570
         }
566
         return intravenousTubeName
571
         return intravenousTubeName
567
-
568
-      },getDialyzer:function (id) {
569
-        var dialyzer = this.$store.getters.dialyzer;
570
-        var dialyzerName = "";
572
+      },
573
+      getDialyzer: function (id) {
574
+        var dialyzer = this.$store.getters.dialyzer
575
+        var dialyzerName = ''
571
         for (let i = 0; i < dialyzer.length; i++) {
576
         for (let i = 0; i < dialyzer.length; i++) {
572
           if (dialyzer[i].id == id) {
577
           if (dialyzer[i].id == id) {
573
             dialyzerName = dialyzer[i].name
578
             dialyzerName = dialyzer[i].name
574
           }
579
           }
575
         }
580
         }
576
         return dialyzerName
581
         return dialyzerName
577
-      }
582
+      },
583
+      getUnit: function (val) {
584
+        switch (this.record.dialysis_intakes_unit) {
585
+          case 1:
586
+            return 'g'
587
+            break
588
+          case 2:
589
+            return 'ml'
590
+            break
591
+          default:
592
+            return '-'
593
+            break
594
+        }
595
+      },
578
       // setRecord(record) {
596
       // setRecord(record) {
579
       //   if (record == null) {
597
       //   if (record == null) {
580
       //     this.info1[0].content = ""
598
       //     this.info1[0].content = ""
619
       //     this.note = record.remark
637
       //     this.note = record.remark
620
       //   }
638
       //   }
621
       // }
639
       // }
622
-    }
623
-  };
640
+    },
641
+
642
+  }
624
 </script>
643
 </script>
625
 
644
 
626
 <style rel="stylesheet/scss" lang="scss" scoped>
645
 <style rel="stylesheet/scss" lang="scss" scoped>
627
 </style>
646
 </style>
628
-
629
-
630
-

+ 311 - 323
src/pages/main/today/assessmentBefore.vue 查看文件

47
           <span class="unit"></span>
47
           <span class="unit"></span>
48
         </li>
48
         </li>
49
 
49
 
50
-
51
       <!-- </ul>
50
       <!-- </ul>
52
       <ul> -->
51
       <ul> -->
53
         <li v-if="isShow('体温')">
52
         <li v-if="isShow('体温')">
129
 <!--
128
 <!--
130
       </ul>
129
       </ul>
131
 
130
 
132
-
133
-
134
       <ul > -->
131
       <ul > -->
135
         <li v-if="isShow('位置')">
132
         <li v-if="isShow('位置')">
136
           <label>位置:</label>
133
           <label>位置:</label>
143
           <span class="content">{{this.record.ductus_arantii}}</span>
140
           <span class="content">{{this.record.ductus_arantii}}</span>
144
         </li>
141
         </li>
145
 
142
 
146
-
147
-
148
         <li v-if="isShow('其他中心静脉导管')">
143
         <li v-if="isShow('其他中心静脉导管')">
149
           <label>其他中心静脉导管:</label>
144
           <label>其他中心静脉导管:</label>
150
           <span class="content">{{ ductus_arantii_other }}</span>
145
           <span class="content">{{ ductus_arantii_other }}</span>
157
           <span class="content" >{{emergency_treatment_other}}</span>
152
           <span class="content" >{{emergency_treatment_other}}</span>
158
         </li>
153
         </li>
159
 
154
 
160
-
161
-
162
         <li v-if="isShow('感染')">
155
         <li v-if="isShow('感染')">
163
           <label>感染:</label>
156
           <label>感染:</label>
164
           <span class="content">{{this.record.is_infect == 1 ? '无' : '有' }}</span>
157
           <span class="content">{{this.record.is_infect == 1 ? '无' : '有' }}</span>
165
           <span class="unit"> </span>
158
           <span class="unit"> </span>
166
         </li>
159
         </li>
167
 
160
 
168
-
169
         <li v-if="isShow('其他感染情况')">
161
         <li v-if="isShow('其他感染情况')">
170
           <label>其他感染情况:</label>
162
           <label>其他感染情况:</label>
171
           <span class="content">{{ infect_other }}</span>
163
           <span class="content">{{ infect_other }}</span>
172
           <span class="unit"> </span>
164
           <span class="unit"> </span>
173
         </li>
165
         </li>
174
 
166
 
175
-
176
         <li v-if="isShow('外露')">
167
         <li v-if="isShow('外露')">
177
           <label>外露:</label>
168
           <label>外露:</label>
178
           <span class="content">{{this.record.exposed?this.record.exposed:''}}</span>
169
           <span class="content">{{this.record.exposed?this.record.exposed:''}}</span>
179
           <span class="unit">cm</span>
170
           <span class="unit">cm</span>
180
         </li>
171
         </li>
181
 
172
 
182
-
183
         <li v-if="isShow('皮肤')">
173
         <li v-if="isShow('皮肤')">
184
           <label>皮肤:</label>
174
           <label>皮肤:</label>
185
           <span class="content">{{getSkin(this.record.skin)}}</span>
175
           <span class="content">{{getSkin(this.record.skin)}}</span>
192
           <span class="unit"> </span>
182
           <span class="unit"> </span>
193
         </li>
183
         </li>
194
 
184
 
195
-
196
       </ul>
185
       </ul>
197
 
186
 
198
     </div>
187
     </div>
201
 </template>
190
 </template>
202
 
191
 
203
 <script>
192
 <script>
204
-  export default {
205
-    name: 'assessmentBefore',
206
-    data () {
207
-      return {
208
-        title: '透前评估 ',
209
-        template_id: 0,
193
+export default {
194
+  name: 'assessmentBefore',
195
+  data () {
196
+    return {
197
+      title: '透前评估 ',
198
+      template_id: 0
199
+    }
200
+  },
201
+  props: {
202
+    record: {
203
+      type: Object
204
+    },
205
+ dry_weights: {
206
+      type: Object
207
+    }
208
+  },
209
+  created () {
210
+    this.template_id = this.$store.getters.user.template_info.template_id
211
+  },
212
+  computed: {
213
+    machine_type: function () {
214
+      if (this.record == null || this.record.id == '') {
215
+        return ''
210
       }
216
       }
217
+      return this.record.machine_type
211
     },
218
     },
212
-    props: {
213
-      record: {
214
-        type: Object
215
-      },dry_weights:{
216
-        type: Object
219
+    weight_before: function () {
220
+      if (this.record == null || this.record.id == '') {
221
+        return '-'
217
       }
222
       }
223
+      return this.record.weight_before
218
     },
224
     },
219
-    created () {
220
-      this.template_id = this.$store.getters.user.template_info.template_id
225
+    additional_weight: function () {
226
+      if (this.record == null || this.record.id == '') {
227
+        return '-'
228
+      }
229
+      return this.record.additional_weight
230
+    },
231
+    systolic_blood_pressure: function () {
232
+      if (this.record == null || this.record.id == '') {
233
+        return '-'
234
+      }
235
+      return this.record.systolic_blood_pressure
236
+    },
237
+    last_post_dialysis: function () {
238
+      if (this.record == null || this.record.id == '') {
239
+        return '-'
240
+      }
241
+      return this.record.last_post_dialysis
221
     },
242
     },
222
-    computed: {
223
-      machine_type:function(){
224
-        if (this.record == null || this.record.id == '') {
225
-          return ''
226
-        }
227
-        return this.record.machine_type
228
-
229
-      },
230
-      weight_before: function () {
231
-        if (this.record == null || this.record.id == '') {
232
-          return '-'
233
-        }
234
-        return this.record.weight_before
235
-      },
236
-      additional_weight:function () {
237
-        if (this.record == null || this.record.id == '') {
238
-          return '-'
239
-        }
240
-        return this.record.additional_weight
241
-      },
242
-      systolic_blood_pressure: function () {
243
-        if (this.record == null || this.record.id == '') {
244
-          return '-'
245
-        }
246
-        return this.record.systolic_blood_pressure
247
-      },
248
-      last_post_dialysis: function () {
249
-        if (this.record == null || this.record.id == '') {
250
-          return '-'
251
-        }
252
-        return this.record.last_post_dialysis
253
-      },
254
-
255
-      dry_weight: function () {
256
-        if (this.$store.getters.user.template_info.template_id == 6){
257
-          if(this.dry_weights != null && this.dry_weights.id > 0 ){
258
-            return this.dry_weights.dry_weight
259
-          }else{
260
-            if (this.record == null || this.record.id == '') {
261
-              return '-'
262
-            }
263
-            return this.record.dry_weight
264
-          }
265
-
266
-        }else{
267
 
243
 
244
+    dry_weight: function () {
245
+      if (this.$store.getters.user.template_info.template_id == 6) {
246
+        if (this.dry_weights != null && this.dry_weights.id > 0) {
247
+          return this.dry_weights.dry_weight
248
+        } else{
268
           if (this.record == null || this.record.id == '') {
249
           if (this.record == null || this.record.id == '') {
269
-
270
             return '-'
250
             return '-'
271
           }
251
           }
272
-
273
           return this.record.dry_weight
252
           return this.record.dry_weight
274
         }
253
         }
275
-
276
-
277
-      },
278
-      diastolic_blood_pressure: function () {
254
+      }else {
279
         if (this.record == null || this.record.id == '') {
255
         if (this.record == null || this.record.id == '') {
280
           return '-'
256
           return '-'
281
         }
257
         }
282
-        return this.record.diastolic_blood_pressure
283
-      },
284
-      dialysis_interphase: function () {
285
-        if (this.record == null || this.record.id == '') {
286
-          return '-'
287
-        }
288
-        return this.record.dialysis_interphase
289
-      },
290
-      catheter: function () {
291
-        if (this.record == null || this.record.id == '') {
292
-          return '-'
293
-        }
294
-        return this.record.catheter
295
-      },
296
 
258
 
297
-      temperature: function () {
298
-        if (this.record == null || this.record.id == '') {
299
-          return '-'
300
-        }
301
-        return this.record.temperature
302
-      },
303
-      pulse_frequency: function () {
304
-        if (this.record == null || this.record.id == '') {
305
-          return '-'
306
-        }
307
-        return this.record.pulse_frequency
308
-      },
309
-      breathing_rate: function () {
310
-        if (this.record == null || this.record.id == '') {
311
-          return '-'
312
-        }
313
-        return this.record.breathing_rate
314
-      },
315
-      symptom_before_dialysis: function () {
316
-        if (this.record == null || this.record.id == '') {
317
-          return '-'
318
-        }
319
-        return this.record.symptom_before_dialysis
320
-      },
321
-      complication: function () {
322
-        if (this.record == null || this.record.id == '') {
323
-          return '-'
324
-        }
325
-        return this.record.complication
326
-      },
327
-      internal_fistula: function () {
328
-        if (this.record == null || this.record.id == '') {
329
-          return '-'
330
-        }
331
-        return this.record.internal_fistula
332
-      },
333
-      is_hemorrhage: function () {
334
-        if (this.record == null || this.record.id == '') {
335
-          return false
336
-        }
337
-        return this.record.is_hemorrhage == 1
338
-      },
339
-      hemorrhage: function () {
340
-        if (this.record == null || this.record.id == '') {
341
-          return '-'
342
-        }
343
-        return this.record.hemorrhage
344
-      },
345
-      hemorrhage_other: function () {
346
-        if (this.record == null || this.record.id == '') {
347
-          return '-'
348
-        }
349
-        return this.record.hemorrhage_other
350
-      },
351
-
352
-      remark: function () {
353
-        if (this.record == null || this.record.id == '') {
354
-          return ''
355
-        }
356
-        return this.record.remark
357
-      }, dialysis_count: function () {
358
-        if (this.record == null || this.record.id == '') {
359
-          return '-'
360
-        }
361
-        return this.record.dialysis_count
362
-      }, internal_fistula_other: function () {
363
-        if (this.record == null || this.record.id == '') {
364
-          return '-'
365
-        }
366
-        return this.record.internal_fistula_other
367
-      },venous_catheterization_part_other:function () {
368
-        if (this.record == null || this.record.id == '') {
369
-          return '-'
370
-        }
371
-        return this.record.venous_catheterization_part_other
372
-
373
-      },emergency_treatment_other:function () {
374
-        if (this.record == null || this.record.id == '') {
375
-          return '-'
376
-        }
377
-        return this.record.emergency_treatment_other
378
-      },blood_access_internal_fistula:function () {
379
-
380
-        var name1 = ""
381
-        var name2 = ""
382
-
383
-        if (this.record == null || this.record.id == '') {
384
-          return '-'
385
-        }
386
-        if(this.record.blood_access_internal_fistula == undefined){
387
-          name1 = ""
388
-        }else{
259
+        return this.record.dry_weight
260
+      }
261
+    },
262
+    diastolic_blood_pressure: function () {
263
+      if (this.record == null || this.record.id == '') {
264
+        return '-'
265
+      }
266
+      return this.record.diastolic_blood_pressure
267
+    },
268
+    dialysis_interphase: function () {
269
+      if (this.record == null || this.record.id == '') {
270
+        return '-'
271
+      }
272
+      return this.record.dialysis_interphase
273
+    },
274
+    catheter: function () {
275
+      if (this.record == null || this.record.id == '') {
276
+        return '-'
277
+      }
278
+      return this.record.catheter
279
+    },
389
 
280
 
390
-          name1 = this.record.blood_access_internal_fistula+","
281
+    temperature: function () {
282
+      if (this.record == null || this.record.id == '') {
283
+        return '-'
284
+      }
285
+      return this.record.temperature
286
+    },
287
+    pulse_frequency: function () {
288
+      if (this.record == null || this.record.id == '') {
289
+        return '-'
290
+      }
291
+      return this.record.pulse_frequency
292
+    },
293
+    breathing_rate: function () {
294
+      if (this.record == null || this.record.id == '') {
295
+        return '-'
296
+      }
297
+      return this.record.breathing_rate
298
+    },
299
+    symptom_before_dialysis: function () {
300
+      if (this.record == null || this.record.id == '') {
301
+        return '-'
302
+      }
303
+      return this.record.symptom_before_dialysis
304
+    },
305
+    complication: function () {
306
+      if (this.record == null || this.record.id == '') {
307
+        return '-'
308
+      }
309
+      return this.record.complication
310
+    },
311
+    internal_fistula: function () {
312
+      if (this.record == null || this.record.id == '') {
313
+        return '-'
314
+      }
315
+      return this.record.internal_fistula
316
+    },
317
+    is_hemorrhage: function () {
318
+      if (this.record == null || this.record.id == '') {
319
+        return false
320
+      }
321
+      return this.record.is_hemorrhage == 1
322
+    },
323
+    hemorrhage: function () {
324
+      if (this.record == null || this.record.id == '') {
325
+        return '-'
326
+      }
327
+      return this.record.hemorrhage
328
+    },
329
+    hemorrhage_other: function () {
330
+      if (this.record == null || this.record.id == '') {
331
+        return '-'
332
+      }
333
+      return this.record.hemorrhage_other
334
+    },
391
 
335
 
392
-        }
393
-        if(this.record.internal_fistula_other == undefined){
394
-          name2 = ""
395
-        }else{
396
-          name2 = this.record.internal_fistula_other
397
-        }
336
+    remark: function () {
337
+      if (this.record == null || this.record.id == '') {
338
+        return ''
339
+      }
340
+      return this.record.remark
341
+    },
342
+dialysis_count: function () {
343
+      if (this.record == null || this.record.id == '') {
344
+        return '-'
345
+      }
346
+      return this.record.dialysis_count
347
+    },
348
+internal_fistula_other: function () {
349
+      if (this.record == null || this.record.id == '') {
350
+        return '-'
351
+      }
352
+      return this.record.internal_fistula_other
353
+    },
354
+ venous_catheterization_part_other: function () {
355
+      if (this.record == null || this.record.id == '') {
356
+        return '-'
357
+      }
358
+      return this.record.venous_catheterization_part_other
359
+    }, 
360
+emergency_treatment_other: function () {
361
+      if (this.record == null || this.record.id == '') {
362
+        return '-'
363
+      }
364
+      return this.record.emergency_treatment_other
365
+    }, 
366
+blood_access_internal_fistula: function () {
367
+      var name1 = ''
368
+      var name2 = ''
369
+
370
+      if (this.record == null || this.record.id == '') {
371
+        return '-'
372
+      }
373
+      if (this.record.blood_access_internal_fistula == undefined) {
374
+        name1 = ''
375
+      } else{
376
+        name1 = this.record.blood_access_internal_fistula + ','
377
+      }
378
+      if (this.record.internal_fistula_other == undefined) {
379
+        name2 = ''
380
+      }else {
381
+        name2 = this.record.internal_fistula_other
382
+      }
398
 
383
 
399
-        return name1+name2
400
-      },infect_other:function () {
401
-        if (this.record == null || this.record.id == '') {
402
-          return '-'
403
-        }
404
-        return this.record.infect_other
405
-      },skin_other:function () {
406
-        if (this.record == null || this.record.id == '') {
407
-          return '-'
408
-        }
409
-        return this.record.skin_other
410
-      },ductus_arantii_other:function () {
411
-        if (this.record == null || this.record.id == '') {
412
-          return '-'
413
-        }
414
-        return this.record.ductus_arantii_other
384
+      return name1 + name2
385
+    },
386
+ infect_other: function () {
387
+      if (this.record == null || this.record.id == '') {
388
+        return '-'
389
+      }
390
+      return this.record.infect_other
391
+    }, 
392
+skin_other: function () {
393
+      if (this.record == null || this.record.id == '') {
394
+        return '-'
415
       }
395
       }
396
+      return this.record.skin_other
416
     },
397
     },
417
-    methods: {
418
-      isShow(name){
419
-        var filedList = this.$store.getters.user.fileds
398
+ ductus_arantii_other: function () {
399
+      if (this.record == null || this.record.id == '') {
400
+        return '-'
401
+      }
402
+      return this.record.ductus_arantii_other
403
+    }
404
+  },
405
+  methods: {
406
+    isShow (name) {
407
+      var filedList = this.$store.getters.user.fileds
420
 
408
 
421
-        for (let i = 0; i < filedList.length; i++){
422
-          if(filedList[i].module == 3 && filedList[i].filed_name_cn == name&&filedList[i].is_show == 1){
423
-            return true
424
-          }
409
+      for (let i = 0; i < filedList.length; i++) {
410
+        if (filedList[i].module == 3 && filedList[i].filed_name_cn == name && filedList[i].is_show == 1) {
411
+          return true
425
         }
412
         }
426
-        return false
427
-      },
428
-      getBloodAccessInternalFistula: function (id) {
429
-        var BloodAccessInternalFistulaOptions = this.$store.getters.blood_access_internal_fistula;
430
-        var BloodAccessInternalFistulaName = "";
431
-        for (let i = 0; i < BloodAccessInternalFistulaOptions.length; i++){
432
-          if(BloodAccessInternalFistulaOptions[i].id == id){
433
-            BloodAccessInternalFistulaName =    BloodAccessInternalFistulaOptions[i].name
434
-          }
413
+      }
414
+      return false
415
+    },
416
+    getBloodAccessInternalFistula: function (id) {
417
+      var BloodAccessInternalFistulaOptions = this.$store.getters.blood_access_internal_fistula
418
+        var BloodAccessInternalFistulaName = '';
419
+      for (let i = 0; i < BloodAccessInternalFistulaOptions.length; i++) {
420
+        if (BloodAccessInternalFistulaOptions[i].id == id) {
421
+          BloodAccessInternalFistulaName = BloodAccessInternalFistulaOptions[i].name
435
         }
422
         }
436
-        return BloodAccessInternalFistulaName
437
-      },
438
-      getBloodAccessNoise: function (id) {
439
-        var BloodAccessNoiseOptions = this.$store.getters.blood_access_noise;
440
-        var BloodAccessNoiseName = "";
441
-        for (let i = 0; i < BloodAccessNoiseOptions.length; i++){
442
-          if(BloodAccessNoiseOptions[i].id == id){
443
-            BloodAccessNoiseName =    BloodAccessNoiseOptions[i].name
444
-          }
423
+      }
424
+      return BloodAccessInternalFistulaName
425
+    },
426
+    getBloodAccessNoise: function (id) {
427
+      var BloodAccessNoiseOptions = this.$store.getters.blood_access_noise
428
+        var BloodAccessNoiseName = '';
429
+      for (let i = 0; i < BloodAccessNoiseOptions.length; i++) {
430
+        if (BloodAccessNoiseOptions[i].id == id) {
431
+          BloodAccessNoiseName = BloodAccessNoiseOptions[i].name
445
         }
432
         }
446
-        return BloodAccessNoiseName
447
-      },getVenousCatheterization:function (id) {
448
-        var VenousCatheterizationOptions = this.$store.getters.venous_catheterization;
449
-        var VenousCatheterizationName = "";
450
-        for (let i = 0; i < VenousCatheterizationOptions.length; i++){
451
-          if(VenousCatheterizationOptions[i].id == id){
452
-            VenousCatheterizationName =    VenousCatheterizationOptions[i].name
453
-          }
433
+      }
434
+      return BloodAccessNoiseName
435
+    }, 
436
+getVenousCatheterization: function (id) {
437
+      var VenousCatheterizationOptions = this.$store.getters.venous_catheterization
438
+        var VenousCatheterizationName = '';
439
+      for (let i = 0; i < VenousCatheterizationOptions.length; i++) {
440
+        if (VenousCatheterizationOptions[i].id == id) {
441
+          VenousCatheterizationName = VenousCatheterizationOptions[i].name
454
         }
442
         }
455
-        return VenousCatheterizationName
456
-      },getWay:function (id) {
457
-        var PunctureWayOptions = this.$store.getters.puncture_way;
458
-        var PunctureWayOptionsName = "";
459
-        for (let i = 0; i < PunctureWayOptions.length; i++){
460
-          if(PunctureWayOptions[i].id == id){
461
-            PunctureWayOptionsName =    PunctureWayOptions[i].name
462
-          }
443
+      }
444
+      return VenousCatheterizationName
445
+    },
446
+ getWay: function (id) {
447
+      var PunctureWayOptions = this.$store.getters.puncture_way
448
+        var PunctureWayOptionsName = '';
449
+      for (let i = 0; i < PunctureWayOptions.length; i++) {
450
+        if (PunctureWayOptions[i].id == id) {
451
+          PunctureWayOptionsName = PunctureWayOptions[i].name
463
         }
452
         }
464
-        return PunctureWayOptionsName
465
-
466
-      },getVenousCatheterizationPart:function (id) {
467
-        var venousCatheterizationPartOptions = this.$store.getters.venous_catheterization_part;
468
-        var venousCatheterizationPartName = "";
469
-        for (let i = 0; i < venousCatheterizationPartOptions.length; i++){
470
-          if(venousCatheterizationPartOptions[i].id == id){
471
-            venousCatheterizationPartName =    venousCatheterizationPartOptions[i].name
472
-          }
453
+      }
454
+      return PunctureWayOptionsName
455
+    },
456
+ getVenousCatheterizationPart: function (id) {
457
+      var venousCatheterizationPartOptions = this.$store.getters.venous_catheterization_part
458
+        var venousCatheterizationPartName = '';
459
+      for (let i = 0; i < venousCatheterizationPartOptions.length; i++) {
460
+        if (venousCatheterizationPartOptions[i].id == id) {
461
+          venousCatheterizationPartName = venousCatheterizationPartOptions[i].name
473
         }
462
         }
474
-        return venousCatheterizationPartName
475
-      },getDuctusArantii:function (id) {
476
-        var ductusArantiiOptions = this.$store.getters.ductus_arantii;
477
-        var ductusArantiiOptionsName = "";
478
-        for (let i = 0; i < ductusArantiiOptions.length; i++){
479
-          if(ductusArantiiOptions[i].id == id){
480
-            ductusArantiiOptionsName =    ductusArantiiOptions[i].name
481
-          }
463
+      }
464
+      return venousCatheterizationPartName
465
+    }, 
466
+getDuctusArantii: function (id) {
467
+      var ductusArantiiOptions = this.$store.getters.ductus_arantii
468
+        var ductusArantiiOptionsName = '';
469
+      for (let i = 0; i < ductusArantiiOptions.length; i++) {
470
+        if (ductusArantiiOptions[i].id == id) {
471
+          ductusArantiiOptionsName = ductusArantiiOptions[i].name
482
         }
472
         }
483
-        return ductusArantiiOptionsName
484
-      },getEmergencyTreatment:function (id) {
485
-        var emergencyTreatmentOptions = this.$store.getters.emergency_treatment;
486
-        var emergencyTreatmentName = "";
487
-        for (let i = 0; i < emergencyTreatmentOptions.length; i++){
488
-          if(emergencyTreatmentOptions[i].id == id){
489
-            emergencyTreatmentName =    emergencyTreatmentOptions[i].name
490
-          }
473
+      }
474
+      return ductusArantiiOptionsName
475
+    }, 
476
+getEmergencyTreatment: function (id) {
477
+      var emergencyTreatmentOptions = this.$store.getters.emergency_treatment
478
+        var emergencyTreatmentName = '';
479
+      for (let i = 0; i < emergencyTreatmentOptions.length; i++) {
480
+        if (emergencyTreatmentOptions[i].id == id) {
481
+          emergencyTreatmentName = emergencyTreatmentOptions[i].name
491
         }
482
         }
492
-        return emergencyTreatmentName
493
-
494
-      },getSkin:function (id) {
495
-        var skinOptions = this.$store.getters.skin;
496
-        var skinName = "";
497
-        for (let i = 0; i < skinOptions.length; i++){
498
-          if(skinOptions[i].id == id){
499
-            skinName =    skinOptions[i].name
500
-          }
483
+      }
484
+      return emergencyTreatmentName
485
+    },
486
+ getSkin: function (id) {
487
+      var skinOptions = this.$store.getters.skin
488
+        var skinName = '';
489
+      for (let i = 0; i < skinOptions.length; i++) {
490
+        if (skinOptions[i].id == id) {
491
+          skinName = skinOptions[i].name
501
         }
492
         }
502
-        return skinName
503
-
504
-      }
505
-      // setRecord(record) {
506
-      //   if (record == null) {
507
-      //     this.info1[0].content = "0"
508
-      //     this.info1[1].content = "0"
509
-      //     this.info1[2].content = "0"
510
-      //     // this.info1[3].content = ""
511
-
512
-      //     this.info2[0].content = "0"
513
-      //     this.info2[1].content = "0"
514
-      //     this.info2[2].content = ""
515
-      //     this.info2[3].content = ""
516
-
517
-      //     this.info3[0].content = "0"
518
-      //     this.info3[1].content = "0"
519
-      //     this.info3[2].content = ""
520
-      //     this.info3[3].content = ""
521
-
522
-      //     this.note = ""
523
-
524
-      //   } else {
525
-      //     this.info1[0].content = record.weight_before
526
-      //     this.info1[1].content = record.systolic_blood_pressure
527
-      //     this.info1[2].content = record.last_post_dialysis
528
-      //     // this.info1[3].content = ""
529
-
530
-      //     this.info2[0].content = record.additional_weight
531
-      //     this.info2[1].content = record.diastolic_blood_pressure
532
-      //     this.info2[2].content = record.dialysis_interphase
533
-      //     this.info2[3].content = record.catheter
534
-
535
-      //     this.info3[0].content = record.temperature
536
-      //     this.info3[1].content = record.breathing_rate
537
-      //     this.info3[2].content = record.symptom_before_dialysis
538
-      //     this.info3[3].content = record.complication
539
-
540
-      //     this.note = record.remark
541
-      //   }
542
-      // }
493
+      }
494
+      return skinName
543
     }
495
     }
496
+    // setRecord(record) {
497
+    //   if (record == null) {
498
+    //     this.info1[0].content = "0"
499
+    //     this.info1[1].content = "0"
500
+    //     this.info1[2].content = "0"
501
+    //     // this.info1[3].content = ""
502
+
503
+    //     this.info2[0].content = "0"
504
+    //     this.info2[1].content = "0"
505
+    //     this.info2[2].content = ""
506
+    //     this.info2[3].content = ""
507
+
508
+    //     this.info3[0].content = "0"
509
+    //     this.info3[1].content = "0"
510
+    //     this.info3[2].content = ""
511
+    //     this.info3[3].content = ""
512
+
513
+    //     this.note = ""
514
+
515
+    //   } else {
516
+    //     this.info1[0].content = record.weight_before
517
+    //     this.info1[1].content = record.systolic_blood_pressure
518
+    //     this.info1[2].content = record.last_post_dialysis
519
+    //     // this.info1[3].content = ""
520
+
521
+    //     this.info2[0].content = record.additional_weight
522
+    //     this.info2[1].content = record.diastolic_blood_pressure
523
+    //     this.info2[2].content = record.dialysis_interphase
524
+    //     this.info2[3].content = record.catheter
525
+
526
+    //     this.info3[0].content = record.temperature
527
+    //     this.info3[1].content = record.breathing_rate
528
+    //     this.info3[2].content = record.symptom_before_dialysis
529
+    //     this.info3[3].content = record.complication
530
+
531
+    //     this.note = record.remark
532
+    //   }
533
+    // }
544
   }
534
   }
535
+}
545
 </script>
536
 </script>
546
 
537
 
547
 <style rel="stylesheet/scss" lang="scss" scoped>
538
 <style rel="stylesheet/scss" lang="scss" scoped>
548
 </style>
539
 </style>
549
-
550
-
551
-

+ 47 - 51
src/pages/main/today/dialysisComputer.vue 查看文件

30
 
30
 
31
       </ul>
31
       </ul>
32
 
32
 
33
-
34
     </div>
33
     </div>
35
     <!-- <div class="note">处方医生 : {{doctor}}</div> -->
34
     <!-- <div class="note">处方医生 : {{doctor}}</div> -->
36
   </div>
35
   </div>
37
 </template>
36
 </template>
38
 
37
 
39
 <script>
38
 <script>
40
-  import {parseTime} from '@/utils'
39
+import {parseTime} from '@/utils'
41
 
40
 
42
-  export default {
43
-    name: 'DialysisComputer',
44
-    data () {
45
-      return {
46
-        title: '透析上机 ',
41
+export default {
42
+  name: 'DialysisComputer',
43
+  data () {
44
+    return {
45
+      title: '透析上机 '
46
+    }
47
+  },
48
+  props: {
49
+    record: {
50
+      type: Object
51
+    },
52
+    admin_map: {
53
+      type: Object
54
+    },
55
+    device_number_map: {
56
+      type: Object
57
+    }
58
+  },
59
+  computed: {
60
+    device_number: function () {
61
+      if (this.record == null || this.record.id == '') {
62
+        return '-'
47
       }
63
       }
64
+      return this.device_number_map[this.record.bed_id] == null ? '' : this.device_number_map[this.record.bed_id].number
48
     },
65
     },
49
-    props: {
50
-      record: {
51
-        type: Object,
52
-      },
53
-      admin_map: {
54
-        type: Object,
55
-      },
56
-      device_number_map: {
57
-        type: Object,
66
+    nurse: function () {
67
+      if (this.record == null || this.record.id == '') {
68
+        return '-'
58
       }
69
       }
70
+      return this.admin_map[this.record.start_nurse] == null ? '' : this.admin_map[this.record.start_nurse].name
59
     },
71
     },
60
-    computed: {
61
-      device_number: function () {
62
-        if (this.record == null || this.record.id == '') {
63
-          return '-'
64
-        }
65
-        return this.device_number_map[this.record.bed_id] == null ? '' : this.device_number_map[this.record.bed_id].number
66
-      },
67
-      nurse: function () {
68
-        if (this.record == null || this.record.id == '') {
69
-          return '-'
70
-        }
71
-        return this.admin_map[this.record.start_nurse] == null ? '' : this.admin_map[this.record.start_nurse].name
72
-      },
73
-      stage: function () {
74
-        if (this.record == null || this.record.id == '') {
75
-          return '未上机'
76
-        }
77
-        return this.record.stage == 1 ? '已上机' : '已下机'
78
-      }, start_time: function () {
79
-        if (this.record == null || this.record.id == '') {
80
-          return '-'
81
-        }
82
-        return parseTime(this.record.start_time, '{y}年{m}月{d}日 {h}时{i}分')
83
-
84
-      },puncture_nurse:function () {
85
-        if (this.record == null || this.record.id == '') {
86
-          return '-'
87
-        }
88
-        return this.admin_map[this.record.puncture_nurse] == null ? '' : this.admin_map[this.record.puncture_nurse].name
89
-
72
+    stage: function () {
73
+      if (this.record == null || this.record.id == '') {
74
+        return '未上机'
90
       }
75
       }
76
+      return this.record.stage == 1 ? '已上机' : '已下机'
91
     },
77
     },
92
-    methods: {}
93
-  }
78
+start_time: function () {
79
+      if (this.record == null || this.record.id == '') {
80
+        return '-'
81
+      }
82
+      return parseTime(this.record.start_time, '{y}年{m}月{d}日 {h}时{i}分')
83
+    }, 
84
+puncture_nurse: function () {
85
+      if (this.record == null || this.record.id == '') {
86
+        return '-'
87
+      }
88
+      return this.admin_map[this.record.puncture_nurse] == null ? '' : this.admin_map[this.record.puncture_nurse].name
89
+    }
90
+  },
91
+  methods: {}
92
+}
94
 </script>
93
 </script>
95
 
94
 
96
 <style rel="stylesheet/scss" lang="scss" scoped>
95
 <style rel="stylesheet/scss" lang="scss" scoped>
97
 </style>
96
 </style>
98
-
99
-
100
-

+ 20 - 23
src/pages/main/today/dialysisMonitoring.vue 查看文件

18
           <th v-if="isShow('透析液温度')" width="92px">透析液温度(℃)</th>
18
           <th v-if="isShow('透析液温度')" width="92px">透析液温度(℃)</th>
19
           <th v-if="isShow('置换率')" width="92px">置换率(L/h)</th>
19
           <th v-if="isShow('置换率')" width="92px">置换率(L/h)</th>
20
           <th v-if="isShow('置换量')"  width="92px">置换量(L)</th>
20
           <th v-if="isShow('置换量')"  width="92px">置换量(L)</th>
21
-          
21
+
22
           <th v-if="isShow('电导度')"  width="92px">电导度(mS/m)</th>
22
           <th v-if="isShow('电导度')"  width="92px">电导度(mS/m)</th>
23
           <th v-if="isShow('置换液流量')"  width="92px">置换液流量(ml/h)</th>
23
           <th v-if="isShow('置换液流量')"  width="92px">置换液流量(ml/h)</th>
24
           <th v-if="isShow('病情变化')" width="92px">病情变化</th>
24
           <th v-if="isShow('病情变化')" width="92px">病情变化</th>
54
 </template>
54
 </template>
55
 
55
 
56
 <script>
56
 <script>
57
-import { parseTime } from "@/utils";
57
+import { parseTime } from '@/utils';
58
 
58
 
59
 export default {
59
 export default {
60
-  name: "statOrder",
61
-  data() {
60
+  name: 'statOrder',
61
+  data () {
62
     return {
62
     return {
63
-      title: "透析监测 ",
63
+      title: '透析监测 ',
64
       template_id: 0,
64
       template_id: 0,
65
       tableDate: []
65
       tableDate: []
66
-    };
66
+    }
67
   },
67
   },
68
-   created () {
68
+  created () {
69
     this.template_id = this.$store.getters.user.template_info.template_id
69
     this.template_id = this.$store.getters.user.template_info.template_id
70
-   },
70
+  },
71
   methods: {
71
   methods: {
72
-    isShow(name){
72
+    isShow (name) {
73
       var filedList = this.$store.getters.user.fileds
73
       var filedList = this.$store.getters.user.fileds
74
 
74
 
75
-      for (let i = 0; i < filedList.length; i++){
76
-        if(filedList[i].module == 4 && filedList[i].filed_name_cn == name&&filedList[i].is_show == 1){
75
+      for (let i = 0; i < filedList.length; i++) {
76
+        if (filedList[i].module == 4 && filedList[i].filed_name_cn == name && filedList[i].is_show == 1) {
77
           return true
77
           return true
78
         }
78
         }
79
       }
79
       }
80
       return false
80
       return false
81
     },
81
     },
82
-    setRecords(records) {
82
+    setRecords (records) {
83
       if (records == null) {
83
       if (records == null) {
84
-        records = [];
84
+        records = []
85
       }
85
       }
86
-      this.tableDate.splice(0, this.tableDate.length);
87
-      this.tableDate.push(...records);
86
+      this.tableDate.splice(0, this.tableDate.length)
87
+      this.tableDate.push(...records)
88
     },
88
     },
89
-    parseTime(time, layout) {
90
-      return parseTime(time, layout);
89
+    parseTime (time, layout) {
90
+      return parseTime(time, layout)
91
     },
91
     },
92
-    addRecords(records) {
93
-      this.tableDate.push(...records);
92
+    addRecords (records) {
93
+      this.tableDate.push(...records)
94
     }
94
     }
95
   }
95
   }
96
-};
96
+}
97
 </script>
97
 </script>
98
 
98
 
99
 <style rel="stylesheet/scss" lang="scss" scoped>
99
 <style rel="stylesheet/scss" lang="scss" scoped>
137
 
137
 
138
 }
138
 }
139
 </style>
139
 </style>
140
-
141
-
142
-

+ 23 - 25
src/pages/main/today/dialysisOff.vue 查看文件

21
 </template>
21
 </template>
22
 
22
 
23
 <script>
23
 <script>
24
-  import { parseTime } from "@/utils";
24
+import { parseTime } from '@/utils';
25
 
25
 
26
-  export default {
27
-  name: "DialysisComputer",
28
-  data() {
26
+export default {
27
+  name: 'DialysisComputer',
28
+  data () {
29
     return {
29
     return {
30
-      title: "透析下机 ",
31
-    };
30
+      title: '透析下机 '
31
+    }
32
   },
32
   },
33
   props: {
33
   props: {
34
     record: {
34
     record: {
35
       type: Object
35
       type: Object
36
     },
36
     },
37
     admin_map: {
37
     admin_map: {
38
-      type: Object,
39
-    },
38
+      type: Object
39
+    }
40
   },
40
   },
41
   computed: {
41
   computed: {
42
-    stage: function() {
43
-      if (this.record == null || this.record.id == "") {
44
-        return "未上机"
42
+    stage: function () {
43
+      if (this.record == null || this.record.id == '') {
44
+        return '未上机'
45
       }
45
       }
46
-      return this.record.stage == 1 ? "未下机" : "已下机"
46
+      return this.record.stage == 1 ? '未下机' : '已下机'
47
     },
47
     },
48
-    nurse: function() {
48
+    nurse: function () {
49
       if (this.record == null || this.record.id == '') {
49
       if (this.record == null || this.record.id == '') {
50
-        return "-"
50
+        return '-'
51
       } else if (this.record.stage == 1) {
51
       } else if (this.record.stage == 1) {
52
-        return "-"
52
+        return '-'
53
       } else {
53
       } else {
54
-        return this.admin_map[this.record.finish_nurse] == null ? "" : this.admin_map[this.record.finish_nurse].name
54
+        return this.admin_map[this.record.finish_nurse] == null ? '' : this.admin_map[this.record.finish_nurse].name
55
       }
55
       }
56
-    },end_time:function () {
56
+    }, 
57
+end_time: function () {
57
       if (this.record == null || this.record.id == '') {
58
       if (this.record == null || this.record.id == '') {
58
-        return "-"
59
+        return '-'
59
       } else if (this.record.stage == 1) {
60
       } else if (this.record.stage == 1) {
60
-        return "-"
61
+        return '-'
61
       } else {
62
       } else {
62
-        return parseTime(this.record.end_time, "{y}年{m}月{d}日 {h}时{i}分");
63
+        return parseTime(this.record.end_time, '{y}年{m}月{d}日 {h}时{i}分')
63
 
64
 
64
       }
65
       }
65
-    },
66
+    }
66
   },
67
   },
67
   methods: {
68
   methods: {
68
 
69
 
69
   }
70
   }
70
-};
71
+}
71
 </script>
72
 </script>
72
 
73
 
73
 <style rel="stylesheet/scss" lang="scss" scoped>
74
 <style rel="stylesheet/scss" lang="scss" scoped>
74
 </style>
75
 </style>
75
-
76
-
77
-

+ 5 - 2
src/pages/main/today/dialysisPrescription.vue 查看文件

10
         <li v-if="isShow('目标超滤量')">
10
         <li v-if="isShow('目标超滤量')">
11
           <label>目标超滤量 : </label>
11
           <label>目标超滤量 : </label>
12
           <span class="content">{{target_ultrafiltration != '0'?target_ultrafiltration:''}}</span>
12
           <span class="content">{{target_ultrafiltration != '0'?target_ultrafiltration:''}}</span>
13
-          <span class="unit">{{target_ultrafiltration != '0'?"L":''}}</span>
13
+          <span class="unit" v-if="this.$store.getters.user.template_info.template_id != 6">{{target_ultrafiltration != '0'?"L":''}}</span>
14
+          <span class="unit" v-if="this.$store.getters.user.template_info.template_id == 6">{{target_ultrafiltration != '0'?"ml":''}}</span>
15
+
14
         </li>
16
         </li>
15
         <li v-if="isShow('首剂')">
17
         <li v-if="isShow('首剂')">
16
           <label>首剂 : </label>
18
           <label>首剂 : </label>
123
           <span class="unit"></span>
125
           <span class="unit"></span>
124
         </li>
126
         </li>
125
         <li v-if="isShow('置换液')">
127
         <li v-if="isShow('置换液')">
126
-          <label>置换液: </label>
128
+          <label v-if="this.$store.getters.user.template_info.template_id != 6">置换液: </label>
129
+          <label v-if="this.$store.getters.user.template_info.template_id == 6">置换方式: </label>
127
           <span class="content">{{displace_liqui}}</span>
130
           <span class="content">{{displace_liqui}}</span>
128
           <span class="unit"></span>
131
           <span class="unit"></span>
129
         </li>
132
         </li>

+ 58 - 61
src/pages/main/today/doubleCheck.vue 查看文件

1
 <template>
1
 <template>
2
    <div class="plate-box">
2
    <div class="plate-box">
3
-    <h2 class="title"><span class="line"></span><p>{{title}}</p><span class="line"></span> </h2> 
4
-    <div class="plate " >   
3
+    <h2 class="title"><span class="line"></span><p>{{title}}</p><span class="line"></span> </h2>
4
+    <div class="plate " >
5
         <ul>
5
         <ul>
6
              <li style="height: 0.6rem;">
6
              <li style="height: 0.6rem;">
7
                 <label>透析物品核查 : </label>
7
                 <label>透析物品核查 : </label>
46
         </ul>
46
         </ul>
47
     </div>
47
     </div>
48
     <!-- <div class="note">处方医生 : {{doctor}}</div> -->
48
     <!-- <div class="note">处方医生 : {{doctor}}</div> -->
49
-  </div>    
49
+  </div>
50
 </template>
50
 </template>
51
 
51
 
52
 <script>
52
 <script>
53
 export default {
53
 export default {
54
-  name: "DoubleCheck",
55
-  data() {
54
+  name: 'DoubleCheck',
55
+  data () {
56
     return {
56
     return {
57
-      title: "双人查对 ",
57
+      title: '双人查对 '
58
       // note: "无明显异常",
58
       // note: "无明显异常",
59
       // doctor: "刘小军  医生",
59
       // doctor: "刘小军  医生",
60
       // info1: [
60
       // info1: [
72
       // info3: [
72
       // info3: [
73
       //   { value: "1", label: " ", content: "", unit: "" },
73
       //   { value: "1", label: " ", content: "", unit: "" },
74
       // ]
74
       // ]
75
-    };
75
+    }
76
   },
76
   },
77
   props: {
77
   props: {
78
     record: {
78
     record: {
79
-      type: Object,
79
+      type: Object
80
     }
80
     }
81
   },
81
   },
82
   computed: {
82
   computed: {
83
-    dialysis_item_check: function() {
84
-      if (this.record == null || this.record.id == "") {
85
-        return ""
83
+    dialysis_item_check: function () {
84
+      if (this.record == null || this.record.id == '') {
85
+        return ''
86
       }
86
       }
87
-      return this.record.dialysis_item_check == 1 ? "正确" : "错误"
87
+      return this.record.dialysis_item_check == 1 ? '正确' : '错误'
88
     },
88
     },
89
-    dialysis_parameter_check: function() {
90
-      if (this.record == null || this.record.id == "") {
91
-        return ""
89
+    dialysis_parameter_check: function () {
90
+      if (this.record == null || this.record.id == '') {
91
+        return ''
92
       }
92
       }
93
-      return this.record.dialysis_parameter_check == 1 ? "正确" : "错误"
93
+      return this.record.dialysis_parameter_check == 1 ? '正确' : '错误'
94
     },
94
     },
95
-    vascular_access_verification: function() {
96
-      if (this.record == null || this.record.id == "") {
97
-        return ""
95
+    vascular_access_verification: function () {
96
+      if (this.record == null || this.record.id == '') {
97
+        return ''
98
       }
98
       }
99
-      return this.record.vascular_access_verification == 1 ? "正确" : "错误"
99
+      return this.record.vascular_access_verification == 1 ? '正确' : '错误'
100
     },
100
     },
101
-    pipeline_connection_check: function() {
102
-      if (this.record == null || this.record.id == "") {
103
-        return ""
101
+    pipeline_connection_check: function () {
102
+      if (this.record == null || this.record.id == '') {
103
+        return ''
104
       }
104
       }
105
-      return this.record.pipeline_connection_check == 1 ? "正确" : "错误"
105
+      return this.record.pipeline_connection_check == 1 ? '正确' : '错误'
106
     },
106
     },
107
-    dialysis_item_desc_title: function() {
108
-      if (this.record == null || this.record.id == "") {
109
-        return ""
107
+    dialysis_item_desc_title: function () {
108
+      if (this.record == null || this.record.id == '') {
109
+        return ''
110
       }
110
       }
111
-      return this.record.dialysis_item_check == 1 ? "" : "错误描述 : "
111
+      return this.record.dialysis_item_check == 1 ? '' : '错误描述 : '
112
     },
112
     },
113
-    dialysis_parameter_desc_title: function() {
114
-      if (this.record == null || this.record.id == "") {
115
-        return ""
113
+    dialysis_parameter_desc_title: function () {
114
+      if (this.record == null || this.record.id == '') {
115
+        return ''
116
       }
116
       }
117
-      return this.record.dialysis_parameter_check == 1 ? "" : "错误描述 : "
117
+      return this.record.dialysis_parameter_check == 1 ? '' : '错误描述 : '
118
     },
118
     },
119
-    vascular_access_desc_title: function() {
120
-      if (this.record == null || this.record.id == "") {
121
-        return ""
119
+    vascular_access_desc_title: function () {
120
+      if (this.record == null || this.record.id == '') {
121
+        return ''
122
       }
122
       }
123
-      return this.record.vascular_access_verification == 1 ? "" : "错误描述 : "
123
+      return this.record.vascular_access_verification == 1 ? '' : '错误描述 : '
124
     },
124
     },
125
-    pipeline_connection_desc_title: function() {
126
-      if (this.record == null || this.record.id == "") {
127
-        return ""
125
+    pipeline_connection_desc_title: function () {
126
+      if (this.record == null || this.record.id == '') {
127
+        return ''
128
       }
128
       }
129
-      return this.record.pipeline_connection_check == 1 ? "" : "错误描述 : "
129
+      return this.record.pipeline_connection_check == 1 ? '' : '错误描述 : '
130
     },
130
     },
131
 
131
 
132
-    dialysis_item_desc: function() {
133
-      if (this.record == null || this.record.id == "") {
134
-        return ""
132
+    dialysis_item_desc: function () {
133
+      if (this.record == null || this.record.id == '') {
134
+        return ''
135
       }
135
       }
136
-      return this.record.dialysis_item_check == 1 ? "" : this.record.dialysis_item_desc
136
+      return this.record.dialysis_item_check == 1 ? '' : this.record.dialysis_item_desc
137
     },
137
     },
138
-    dialysis_parameter_desc: function() {
139
-      if (this.record == null || this.record.id == "") {
140
-        return ""
138
+    dialysis_parameter_desc: function () {
139
+      if (this.record == null || this.record.id == '') {
140
+        return ''
141
       }
141
       }
142
-      return this.record.dialysis_parameter_check == 1 ? "" : this.record.dialysis_parameter_desc
142
+      return this.record.dialysis_parameter_check == 1 ? '' : this.record.dialysis_parameter_desc
143
     },
143
     },
144
-    vascular_access_desc: function() {
145
-      if (this.record == null || this.record.id == "") {
146
-        return ""
144
+    vascular_access_desc: function () {
145
+      if (this.record == null || this.record.id == '') {
146
+        return ''
147
       }
147
       }
148
-      return this.record.vascular_access_verification == 1 ? "" : this.record.vascular_access_desc
148
+      return this.record.vascular_access_verification == 1 ? '' : this.record.vascular_access_desc
149
     },
149
     },
150
-    pipeline_connection_desc: function() {
151
-      if (this.record == null || this.record.id == "") {
152
-        return ""
150
+    pipeline_connection_desc: function () {
151
+      if (this.record == null || this.record.id == '') {
152
+        return ''
153
       }
153
       }
154
-      return this.record.pipeline_connection_check == 1 ? "" : this.record.pipeline_connection_desc
154
+      return this.record.pipeline_connection_check == 1 ? '' : this.record.pipeline_connection_desc
155
     }
155
     }
156
   },
156
   },
157
   methods: {
157
   methods: {
171
     //     this.info2[1].content = ""
171
     //     this.info2[1].content = ""
172
     //     this.info2[2].content = ""
172
     //     this.info2[2].content = ""
173
     //     this.info2[3].content = ""
173
     //     this.info2[3].content = ""
174
-        
174
+
175
     //   } else {
175
     //   } else {
176
     //     this.info1[0].content = record.dialysis_item_check == 1 ? "正确" : "错误"
176
     //     this.info1[0].content = record.dialysis_item_check == 1 ? "正确" : "错误"
177
     //     this.info1[1].content = record.dialysis_parameter_check == 1 ? "正确" : "错误"
177
     //     this.info1[1].content = record.dialysis_parameter_check == 1 ? "正确" : "错误"
190
     //   }
190
     //   }
191
     // }
191
     // }
192
   }
192
   }
193
-};
193
+}
194
 </script>
194
 </script>
195
 
195
 
196
 <style rel="stylesheet/scss" lang="scss" scoped>
196
 <style rel="stylesheet/scss" lang="scss" scoped>
197
 
197
 
198
 </style>
198
 </style>
199
-
200
-
201
-

+ 41 - 44
src/pages/main/today/statOrder.vue 查看文件

47
 </template>
47
 </template>
48
 
48
 
49
 <script>
49
 <script>
50
-import { parseTime } from "@/utils";
50
+import { parseTime } from '@/utils';
51
 
51
 
52
 export default {
52
 export default {
53
-  name: "statOrder",
54
-  data() {
53
+  name: 'statOrder',
54
+  data () {
55
     return {
55
     return {
56
-      title: "临时医嘱 ",
56
+      title: '临时医嘱 ',
57
       template_id: 0,
57
       template_id: 0,
58
-      tableDate: [],
59
-    };
58
+      tableDate: []
59
+    }
60
   },
60
   },
61
   props: {
61
   props: {
62
     doctor_map: {
62
     doctor_map: {
69
       }
69
       }
70
     }
70
     }
71
   },
71
   },
72
-   created () {
73
-      this.template_id = this.$store.getters.user.template_info.template_id
74
-    },
72
+  created () {
73
+    this.template_id = this.$store.getters.user.template_info.template_id
74
+  },
75
   methods: {
75
   methods: {
76
-    setAdvices(advices) {
76
+    setAdvices (advices) {
77
       if (advices == null) {
77
       if (advices == null) {
78
-        advices = [];
78
+        advices = []
79
       }
79
       }
80
-      this.tableDate.splice(0, this.tableDate.length);
81
-      this.tableDate.push(...advices);
80
+      this.tableDate.splice(0, this.tableDate.length)
81
+      this.tableDate.push(...advices)
82
     },
82
     },
83
-    parseTime(time, layout) {
83
+    parseTime (time, layout) {
84
       if (time == 0) {
84
       if (time == 0) {
85
-        return "";
85
+        return '';
86
       }
86
       }
87
-      return parseTime(time, layout);
87
+      return parseTime(time, layout)
88
     },
88
     },
89
-    createMedicalOrder(row) {
89
+    createMedicalOrder (row) {
90
       if (row.parent_id > 0) {
90
       if (row.parent_id > 0) {
91
-        var spliceIndex = -1;
91
+        var spliceIndex = -1
92
         for (let index = this.tableDate.length - 1; ; index--) {
92
         for (let index = this.tableDate.length - 1; ; index--) {
93
           if (this.tableDate[index].parent_id === row.parent_id) {
93
           if (this.tableDate[index].parent_id === row.parent_id) {
94
-            spliceIndex = index;
94
+            spliceIndex = index
95
             break;
95
             break;
96
           } else if (this.tableDate[index].id === row.parent_id) {
96
           } else if (this.tableDate[index].id === row.parent_id) {
97
-            spliceIndex = index;
97
+            spliceIndex = index
98
             break;
98
             break;
99
           }
99
           }
100
         }
100
         }
101
         if (spliceIndex > -1) {
101
         if (spliceIndex > -1) {
102
-          spliceIndex += 1;
102
+          spliceIndex += 1
103
           if (spliceIndex === this.tableDate.length) {
103
           if (spliceIndex === this.tableDate.length) {
104
-            this.tableDate.push(row);
104
+            this.tableDate.push(row)
105
           } else {
105
           } else {
106
-            var swapData = this.tableDate.splice(spliceIndex);
107
-            this.tableDate.push(row);
108
-            this.tableDate = this.tableDate.concat(swapData);
106
+            var swapData = this.tableDate.splice(spliceIndex)
107
+            this.tableDate.push(row)
108
+            this.tableDate = this.tableDate.concat(swapData)
109
           }
109
           }
110
         }
110
         }
111
       } else {
111
       } else {
112
-        this.tableDate.unshift(row);
112
+        this.tableDate.unshift(row)
113
       }
113
       }
114
     },
114
     },
115
-    delMedicalOrder(row) {
115
+    delMedicalOrder (row) {
116
       if (row.parent_id > 0) {
116
       if (row.parent_id > 0) {
117
-        var rslen = this.tableDate.length;
117
+        var rslen = this.tableDate.length
118
         for (let i = 0; i < rslen; i++) {
118
         for (let i = 0; i < rslen; i++) {
119
           if (this.tableDate[i].id == row.id) {
119
           if (this.tableDate[i].id == row.id) {
120
-            this.tableDate.splice(i, 1);
120
+            this.tableDate.splice(i, 1)
121
             break;
121
             break;
122
           }
122
           }
123
         }
123
         }
124
       } else {
124
       } else {
125
-        var resetTableData = this.tableDate;
126
-        this.tableDate = [];
127
-        var that = this;
128
-        var rslen = resetTableData.length;
125
+        var resetTableData = this.tableDate
126
+        this.tableDate = []
127
+        var that = this
128
+        var rslen = resetTableData.length
129
         for (let i = 0; i < rslen; i++) {
129
         for (let i = 0; i < rslen; i++) {
130
           if (
130
           if (
131
             resetTableData[i].id != row.id &&
131
             resetTableData[i].id != row.id &&
132
             resetTableData[i].parent_id != row.id
132
             resetTableData[i].parent_id != row.id
133
           ) {
133
           ) {
134
-            that.tableDate.push(resetTableData[i]);
134
+            that.tableDate.push(resetTableData[i])
135
           }
135
           }
136
         }
136
         }
137
       }
137
       }
138
     },
138
     },
139
-    executionMedicalOrder(row) {
140
-      var alen = this.tableDate.length;
139
+    executionMedicalOrder (row) {
140
+      var alen = this.tableDate.length
141
       for (let index = 0; index < alen; index++) {
141
       for (let index = 0; index < alen; index++) {
142
         if (this.tableDate[index].id == row.id) {
142
         if (this.tableDate[index].id == row.id) {
143
-          this.tableDate[index].execution_state = 1;
144
-          this.tableDate[index].execution_staff = row.execution_staff;
145
-          this.tableDate[index].execution_time = row.execution_time;
146
-          this.tableDate[index].checker = row.checker;
143
+          this.tableDate[index].execution_state = 1
144
+          this.tableDate[index].execution_staff = row.execution_staff
145
+          this.tableDate[index].execution_time = row.execution_time
146
+          this.tableDate[index].checker = row.checker
147
           break;
147
           break;
148
         }
148
         }
149
       }
149
       }
150
     }
150
     }
151
   }
151
   }
152
-};
152
+}
153
 </script>
153
 </script>
154
 
154
 
155
 <style rel="stylesheet/scss" lang="scss" scoped>
155
 <style rel="stylesheet/scss" lang="scss" scoped>
189
   }
189
   }
190
 }
190
 }
191
 </style>
191
 </style>
192
-
193
-
194
-

+ 19 - 20
src/pages/main/today/treatmentOf.vue 查看文件

1
 <template>
1
 <template>
2
    <div class="plate-box">
2
    <div class="plate-box">
3
-    <h2 class="title"><span class="line"></span><p>{{title}}</p><span class="line"></span> </h2> 
4
-    <div class="plate " >   
3
+
4
+    <h2 class="title"><span class="line"></span><p>{{title}}</p><span class="line"></span> </h2>
5
+    <div class="plate " >
5
         <ul>
6
         <ul>
6
              <li>
7
              <li>
7
                 <label>透后宣教 : </label>
8
                 <label>透后宣教 : </label>
14
         </ul>
15
         </ul>
15
     </div>
16
     </div>
16
     <!-- <div class="note">处方医生 : {{doctor}}</div> -->
17
     <!-- <div class="note">处方医生 : {{doctor}}</div> -->
17
-  </div>    
18
+
19
+  </div>
18
 </template>
20
 </template>
19
 
21
 
20
 <script>
22
 <script>
21
 export default {
23
 export default {
22
-  name: "DialysisPrescription",
23
-  data() {
24
+  name: 'DialysisPrescription',
25
+  data () {
24
     return {
26
     return {
25
-      title: "治疗小结  ",
26
-      doctor: "刘小花  护士",
27
+      title: '治疗小结  ',
28
+      doctor: '刘小花  护士'
27
       // info1: [
29
       // info1: [
28
       //   { value: "1", label: "透后宣教 : ", content: "", unit: "" },
30
       //   { value: "1", label: "透后宣教 : ", content: "", unit: "" },
29
       //   { value: "1", label: "透析小结 : ", content: "", unit: "" }
31
       //   { value: "1", label: "透析小结 : ", content: "", unit: "" }
30
       // ]
32
       // ]
31
-    };
33
+    }
32
   },
34
   },
33
   props: {
35
   props: {
34
     record: {
36
     record: {
35
-      type: Object,
37
+      type: Object
36
     }
38
     }
37
   },
39
   },
38
   computed: {
40
   computed: {
39
-    mission: function() {
40
-      if (this.record == null || this.record.id == "") {
41
-        return ""
41
+    mission: function () {
42
+      if (this.record == null || this.record.id == '') {
43
+        return ''
42
       }
44
       }
43
       return this.record.mission
45
       return this.record.mission
44
     },
46
     },
45
-    dialysis_summary: function() {
46
-      if (this.record == null || this.record.id == "") {
47
-        return ""
47
+    dialysis_summary: function () {
48
+      if (this.record == null || this.record.id == '') {
49
+        return ''
48
       }
50
       }
49
       return this.record.dialysis_summary
51
       return this.record.dialysis_summary
50
-    },
52
+    }
51
   },
53
   },
52
   methods: {
54
   methods: {
53
     // setRecord(record) {
55
     // setRecord(record) {
55
     //   this.info1[1].content = record.dialysis_summary
57
     //   this.info1[1].content = record.dialysis_summary
56
     // }
58
     // }
57
   }
59
   }
58
-};
60
+}
59
 </script>
61
 </script>
60
 
62
 
61
 <style rel="stylesheet/scss" lang="scss" scoped>
63
 <style rel="stylesheet/scss" lang="scss" scoped>
62
 </style>
64
 </style>
63
-
64
-
65
-

+ 6 - 4
src/pages/monitoring/index.vue 查看文件

290
       this.getMonitor(this.queryParams);
290
       this.getMonitor(this.queryParams);
291
     },
291
     },
292
     partitionName: function(val) {
292
     partitionName: function(val) {
293
-      return typeof this.partitionArr[val] != "undefined" &&
294
-        typeof this.partitionArr[val].name != "undefined"
295
-        ? this.partitionArr[val].name
296
-        : "";
293
+      for (let i = 0; i < this.partitionArr.length; i++){
294
+        if(this.partitionArr[i].id == val){
295
+          return   this.partitionArr[i].name
296
+        }
297
+      }
297
     },
298
     },
298
     GetAllZone: function() {
299
     GetAllZone: function() {
299
       GetAllZone().then(response => {
300
       GetAllZone().then(response => {
308
     itemClick: function(id) {
309
     itemClick: function(id) {
309
       this.partition = id;
310
       this.partition = id;
310
       this.visible = false;
311
       this.visible = false;
312
+
311
       this.queryParams.date = this.parseTime(this.date / 1000, "{y}-{m}-{d}");
313
       this.queryParams.date = this.parseTime(this.date / 1000, "{y}-{m}-{d}");
312
       this.queryParams.partition = this.partition;
314
       this.queryParams.partition = this.partition;
313
       this.getMonitor(this.queryParams);
315
       this.getMonitor(this.queryParams);

+ 1 - 1
src/router/index.js 查看文件

1
-import Vue from 'vue'
1
+ import Vue from 'vue'
2
 import Router from 'vue-router'
2
 import Router from 'vue-router'
3
 
3
 
4
 Vue.use(Router)
4
 Vue.use(Router)

+ 4 - 2
src/store/modules/globalConfig.js 查看文件

380
         id: 3,
380
         id: 3,
381
         name: '低分子肝素',
381
         name: '低分子肝素',
382
         type: 1,
382
         type: 1,
383
-        shouji: -1,
384
-        weichi: -1,
383
+        shouji: 1,
384
+        weichi: 1,
385
         zongliang: 1,
385
         zongliang: 1,
386
         gaimingcheng: -1,
386
         gaimingcheng: -1,
387
         gaijiliang: -1,
387
         gaijiliang: -1,
484
     ],
484
     ],
485
 
485
 
486
     symptoms: [
486
     symptoms: [
487
+      {id: 30, name: '无症状'},
487
       {id: 1, name: '血压下降'},
488
       {id: 1, name: '血压下降'},
488
       {id: 2, name: '恶心呕吐'},
489
       {id: 2, name: '恶心呕吐'},
489
       {id: 3, name: '肌肉痉挛'},
490
       {id: 3, name: '肌肉痉挛'},
625
     ],
626
     ],
626
 
627
 
627
     complication: [
628
     complication: [
629
+      {id: 24, name: '无症状'},
628
       {id: 1, name: '低血压'},
630
       {id: 1, name: '低血压'},
629
       {id: 2, name: '高血压'},
631
       {id: 2, name: '高血压'},
630
       {id: 3, name: '心律失常'},
632
       {id: 3, name: '心律失常'},