Browse Source

修改bug

张保健 4 years ago
parent
commit
61a5703477

File diff suppressed because it is too large
+ 706 - 668
src/pages/main/dialog/AssessmentDialog.vue


File diff suppressed because it is too large
+ 717 - 660
src/pages/main/dialog/ThorougDialog.vue


+ 104 - 64
src/pages/main/dialog/subMenu/MsgTip.vue View File

@@ -18,11 +18,15 @@
18 18
           <span class="text" id="txms"> {{ dialysis_date }}</span>
19 19
         </div>
20 20
       </div>
21
-      <div class="item">
22
-        <label class="name" for="txms">透前体重(kg)</label>
23
-        <div class="content">
24
-          <span class="text" id="txms">{{ getBeforeWeight(predialysis)}}</span>
21
+      <div class="item" style="display:block;">
22
+        <div class="name" style="width:100%;text-align:left;line-height:1.5rem;font-size:0.7rem;" for="txms">透前体重(kg)<span style="text-align:right;float: right;color:#ec6618;">{{ getBeforeWeight(predialysis)}}</span></div>
23
+        <div class="content" style="margin-top:5px;margin-left:0;">
24
+          <span class="text" style="text-align:left;display:block;height:0.4rem;" id="txms">透前体重:<span style="color:#ec6618;display:inline-block;text-align:center;margin:0 2px;">{{ getBeforeWeight(predialysis)}}</span>kg=
25
+          透前总重:<span style="color:#ec6618;display:inline-block;text-align:center;center;margin:0 2px;">{{predialysis.weight_before}}</span>kg-
26
+          衣服重:<span style="color:#ec6618;display:inline-block;text-align:center;center;margin:0 2px;">{{predialysis.additional_weight}}</span>kg
27
+           </span>
25 28
         </div>
29
+        <br>
26 30
       </div>
27 31
       <div class="item">
28 32
         <label class="name" for="txms">干体重(kg)</label>
@@ -30,66 +34,100 @@
30 34
           <span class="text" id="txms">{{ getDryWeight() }}</span>
31 35
         </div>
32 36
       </div>
33
-      <div class="item">
37
+      <!-- <div class="item">
34 38
         <label class="name" for="txms">衣物重(kg)</label>
35 39
         <div class="content">
36 40
           <span class="text" id="txms">{{
37 41
             predialysis.additional_weight
38 42
           }}</span>
39 43
         </div>
44
+      </div> -->
45
+      <div class="item" style="display:block;">
46
+        <div class="name" style="width:100%;text-align:left;line-height:1.5rem;font-size:0.7rem;" for="txms">体重增加(kg)<span style="text-align:right;float: right;color:#ec6618;">{{add_weight}}</span></div>
47
+        <div class="content" style="margin-top:5px;margin-left:0;">
48
+          <span class="text" style="text-align:left;display:block;height:0.8rem;line-height:0.6rem;" id="txms">体重增加:<span style="color:#ec6618;display:inline-block;text-align:center;margin:0 2px;">{{add_weight}}</span>kg=
49
+          透前体重:<span style="color:#ec6618;display:inline-block;text-align:center;center;margin:0 2px;">{{getBeforeWeight(predialysis)}}</span>kg -
50
+          上次透后体重:<span style="color:#ec6618;display:inline-block;text-align:center;center;margin:0 2px;">{{getLastAfterWeight(last_record)}}</span>kg
51
+          </span>
52
+        </div>
53
+        <br>
40 54
       </div>
41
-      <div class="item">
55
+      <!-- <div class="item">
42 56
         <label class="name" for="txms">体重增加(kg)</label>
43 57
         <div class="content">
44 58
           <span class="text" id="txms">{{ add_weight }}</span>
45 59
         </div>
60
+      </div> -->
61
+      <div class="item" style="display:block;">
62
+        <div class="name" style="width:100%;text-align:left;line-height:1.5rem;font-size:0.7rem;" for="txms">透后体重(kg)<span style="text-align:right;float: right;color:#ec6618;">{{getAfterWeight(record)}}</span></div>
63
+        <div class="content" style="margin-top:5px;margin-left:0;">
64
+          <span class="text" style="text-align:left;display:block;height:0.4rem;" id="txms">透后体重:<span style="color:#ec6618;display:inline-block;text-align:center;margin:0 2px;">{{getAfterWeight(record)}}</span>kg=
65
+          透后总重:<span style="color:#ec6618;display:inline-block;text-align:center;center;margin:0 2px;">{{record.weight_after}}</span>kg-
66
+          衣服重:<span style="color:#ec6618;display:inline-block;text-align:center;center;margin:0 2px;">{{predialysis.additional_weight}}</span>kg
67
+           </span>
68
+        </div>
69
+        <br>
46 70
       </div>
47
-      <div class="item">
71
+      <!-- <div class="item">
48 72
         <label class="name" for="txms">透后体重(kg)</label>
49 73
         <div class="content">
50 74
           <span class="text" id="txms">{{ getAfterWeight(record)}}</span>
51 75
         </div>
52
-      </div>
76
+      </div> -->
53 77
       <div class="item">
54 78
         <label class="name" for="txms">体重减少(kg)</label>
55 79
         <div class="content">
56
-          <span class="text" id="txms">{{ record.weight_loss }}</span>
80
+          <span class="text" id="txms">{{ weight_loss }}</span>
57 81
         </div>
58 82
       </div>
59
-      <div class="item">
83
+      <div class="item" style="display:block;">
84
+        <div class="name" style="width:100%;text-align:left;line-height:1.5rem;font-size:0.7rem;" for="txms">上次透后体重(kg)<span style="text-align:right;float: right;color:#ec6618;">{{getLastAfterWeight(last_record)}}</span></div>
85
+        <div class="content" style="margin-top:5px;margin-left:0;">
86
+          <span class="text" style="text-align:left;display:block;height:0.4rem;" id="txms">上次透后体重:<span style="color:#ec6618;display:inline-block;text-align:center;margin:0 2px;">{{getLastAfterWeight(last_record)}}</span>kg=
87
+          上次透后总重:<span style="color:#ec6618;display:inline-block;text-align:center;center;margin:0 2px;">{{last_record.weight_after}}</span>kg-
88
+          上次衣服重:<span style="color:#ec6618;display:inline-block;text-align:center;center;margin:0 2px;">{{last_predialysis.additional_weight}}</span>kg
89
+           </span>
90
+        </div>
91
+        <br>
92
+      </div>
93
+      <!-- <div class="item">
60 94
         <label class="name" for="txms">上次透后体重(kg)</label>
61 95
         <div class="content">
62 96
           <span class="text" id="txms">{{
63 97
            getLastAfterWeight(last_record)
64 98
           }}</span>
65 99
         </div>
66
-      </div>
100
+      </div> -->
67 101
     </div>
68 102
   </div>
69 103
 </template>
70 104
 
71 105
 <script>
72
-import { parseTime } from "@/utils";
106
+import { parseTime } from '@/utils'
73 107
 
74 108
 export default {
75
-  name: "LongAdviceSubMenu",
76
-  created() {
77
-    if (
78
-      this.predialysis.weight_before > 0 &&
79
-      this.last_record.weight_after > 0
80
-    ) {
109
+  name: 'LongAdviceSubMenu',
110
+  created () {
111
+    if (this.predialysis.weight_before > 0 && this.last_record.weight_after > 0) {
81 112
       this.add_weight = parseFloat(
82
-        this.predialysis.weight_before - this.last_record.weight_after
83
-      ).toFixed(2);
113
+        (this.predialysis.weight_before - this.predialysis.additional_weight) - (this.last_record.weight_after - this.last_predialysis.additional_weight)
114
+      ).toFixed(2)
84 115
     }
116
+    let loss = ''
117
+    if (this.predialysis.weight_before > 0 && this.record.weight_after > 0) {
118
+      loss = parseFloat(this.predialysis.weight_before - this.record.weight_after).toFixed(2)
119
+      loss = loss > 0 ? loss : ''
120
+    }
121
+    this.weight_loss = this.record.weight_loss ? this.record.weight_loss : loss
85 122
   },
86
-  data() {
123
+  data () {
87 124
     return {
88 125
       result: [],
89 126
       id: 0,
90
-      selectName: "",
91
-      add_weight: 0
92
-    };
127
+      selectName: '',
128
+      add_weight: 0,
129
+      weight_loss: ''
130
+    }
93 131
   },
94 132
   props: {
95 133
     predialysis: {
@@ -115,17 +153,18 @@ export default {
115 153
     },
116 154
     prescription_prop: {
117 155
       type: Object
118
-    },dry_weight: {
119
-      type: Object
120 156
     },
157
+    dry_weight: {
158
+      type: Object
159
+    }
121 160
   },
122 161
   computed: {
123
-    dialysis_date: function() {
124
-      return parseTime(this.$route.query.date, "{y}/{m}/{d}");
162
+    dialysis_date: function () {
163
+      return parseTime(this.$route.query.date, '{y}/{m}/{d}')
125 164
     }
126 165
   },
127 166
   methods: {
128
-    getDryWeight() {
167
+    getDryWeight () {
129 168
       if (this.dry_weight != null && this.dry_weight.id > 0) {
130 169
         return this.dry_weight.dry_weight
131 170
       } else {
@@ -136,72 +175,73 @@ export default {
136 175
         }
137 176
       }
138 177
     },
139
-    getBeforeWeight(predialysis){
140
-      if(predialysis.id > 0){
141
-        if(predialysis.weight_before > 0) {
142
-          return parseFloat(predialysis.weight_before - predialysis.additional_weight).toFixed(1);
143
-        }else{
178
+    getBeforeWeight (predialysis) {
179
+      if (predialysis.id > 0) {
180
+        if (predialysis.weight_before > 0) {
181
+          return parseFloat(predialysis.weight_before - predialysis.additional_weight).toFixed(1)
182
+        } else {
144 183
           return ''
145 184
         }
146 185
       }
147
-    }, getAfterWeight(record){
148
-      if(record.id > 0){
149
-        if(record.weight_after > 0) {
150
-          return parseFloat(record.weight_after - this.predialysis.additional_weight).toFixed(1);
151
-        }else{
186
+    },
187
+    getAfterWeight (record) {
188
+      if (record.id > 0) {
189
+        if (record.weight_after > 0) {
190
+          return parseFloat(record.weight_after - this.predialysis.additional_weight).toFixed(1)
191
+        } else {
152 192
           return ''
153 193
         }
154 194
       }
155
-    },getLastAfterWeight(record){
156
-
157
-      if(record.id > 0){
158
-        if(record.weight_after > 0) {
195
+    },
196
+    getLastAfterWeight (last_record) {
197
+      if (last_record.id > 0) {
198
+        if (last_record.weight_after > 0) {
159 199
           let additional_weight = 0
160
-          if(this.predialysis.additional_weight != undefined){
161
-            additional_weight = this.predialysis.additional_weight
200
+          if (this.last_predialysis.additional_weight != undefined) {
201
+            additional_weight = this.last_predialysis.additional_weight
162 202
           }
163
-          return parseFloat(record.weight_after - additional_weight).toFixed(1);
164
-        }else{
203
+          return parseFloat(last_record.weight_after - additional_weight).toFixed(1)
204
+        } else {
165 205
           return ''
166 206
         }
167 207
       }
168 208
     },
169
-    cancle: function() {
170
-      this.$emit("menu-msg-tip");
209
+    cancle: function () {
210
+      this.$emit('menu-msg-tip')
171 211
     },
172
-    comfirm: function() {
173
-      this.$emit("menu-msg-tip");
212
+    comfirm: function () {
213
+      this.$emit('menu-msg-tip')
174 214
     },
175
-    getValue: function() {
176
-      let form = {};
215
+    getValue: function () {
216
+      let form = {}
177 217
 
178
-      let results = [];
218
+      let results = []
179 219
 
180 220
       for (let i = 0; i < this.propsForm.list.length; i++) {
181 221
         for (let a = 0; a < this.propsForm.result.length; a++) {
182 222
           if (this.propsForm.list[i].id == this.propsForm.result[a]) {
183
-            results.push(this.propsForm.list[i]);
223
+            results.push(this.propsForm.list[i])
184 224
           }
185 225
         }
186 226
       }
187 227
 
188
-      var obj5 = {};
228
+      var obj5 = {}
189 229
       results = results.reduce((cur, next) => {
190
-        obj5[next.id] ? "" : (obj5[next.id] = true && cur.push(next));
191
-        return cur;
192
-      }, []);
230
+        obj5[next.id] ? '' : (obj5[next.id] = true && cur.push(next))
231
+        return cur
232
+      }, [])
193 233
 
194
-      results;
234
+      results
195 235
 
196
-      return results;
236
+      return results
197 237
     }
198 238
   },
199 239
   watch: {
200
-    visibility(val) {
201
-      //初始化数据操作
240
+    visibility (val) {
241
+      // 初始化数据操作
202 242
     }
203 243
   }
204
-};
244
+}
205 245
 </script>
206 246
 
207 247
 <style style="stylesheet/scss" lang="scss" scoped>

+ 4 - 0
src/pages/main/today/TodayTab.vue View File

@@ -118,6 +118,7 @@
118 118
       ref="assessment_after"
119 119
       title="透后评估"
120 120
       :record="assessment_after_dislysis"
121
+      :predialysis="predialysis_evaluation"
121 122
     ></assessment-after>
122 123
 
123 124
     <div class="blueBorder"></div>
@@ -258,6 +259,7 @@
258 259
         :patient_prop="patient"
259 260
         :record="assessment_after_dislysis"
260 261
         :last_record="last_assessment_after_dislysis"
262
+        :predialysis="predialysis_evaluation"
261 263
         @did_update="closeAssessmentAfter"
262 264
         @close="closeAssessmentAfter"
263 265
         ref="thoroug_dialog"
@@ -1316,12 +1318,14 @@ import {parseTime} from '@/utils'
1316 1318
       // this.scrollToView('dialysis_off')
1317 1319
     },
1318 1320
 
1321
+
1319 1322
     closeAssessmentAfter: function (assessment_after_dislysis) {
1320 1323
       this.closeDialog(8)
1321 1324
       // this.scrollToView('assessment_after')
1322 1325
       if (assessment_after_dislysis != undefined) {
1323 1326
         this.assessment_after_dislysis = assessment_after_dislysis
1324 1327
       }
1328
+      this.requestDialysisRecord()
1325 1329
     },updateTreatmentOf:function(val){
1326 1330
       this.closeDialog(9)
1327 1331
       this.treatment_summary = val

+ 449 - 430
src/pages/main/today/assessmentAfter.vue View File

@@ -9,6 +9,16 @@
9 9
           <span class="content" id="thtz">{{weight_after?weight_after:''}}</span>
10 10
           <span class="unit">{{weight_after?'kg':''}}</span>
11 11
         </li>
12
+        <li v-if="this.$store.getters.user.template_info.template_id == 6">
13
+          <label for="thtz">透后净体重 : </label>
14
+          <span class="content" id="thtz">{{weight_after?parseFloat(weight_after - this.additional_weight).toFixed(1) : ""}}</span>
15
+          <span class="unit">{{weight_after?'kg':''}}</span>
16
+        </li>
17
+        <li v-if="isShow('衣物重')">
18
+          <label for="thtz">衣物重 : </label>
19
+          <span class="content" id="thtz">{{additional_weight?additional_weight:''}}</span>
20
+          <span class="unit">{{additional_weight?'kg':''}}</span>
21
+        </li>
12 22
         <li v-if="isShow('收缩压')">
13 23
           <label for="ssy">收缩压 : </label>
14 24
           <span class="content" id="ssy">{{systolic_blood_pressure?systolic_blood_pressure:''}}</span>
@@ -180,466 +190,475 @@
180 190
 </template>
181 191
 
182 192
 <script>
183
-  export default {
184
-    name: 'DialysisPrescription',
185
-    data () {
186
-      return {
187
-        title: '透后评估 ',
188
-        template_id: 0
189
-        // note: "无明显异常",
190
-        // doctor: "刘小军  医生",
191
-        // info1: [
192
-        //   { value: "1", label: "透后体重 : ", content: "55", unit: "kg" },
193
-        //   { value: "2", label: "收缩压 : ", content: "174", unit: "mmHg" },
194
-        //   { value: "3", label: "实际超滤量: ", content: "20", unit: "ml" },
195
-        //   { value: "4", label: "疑血 : ", content: "无震颤", unit: "" },
196
-        //   { value: "5", label: "", content: "", unit: "" }
197
-        // ],
198
-        // info2: [
199
-        //   { value: "1", label: "体重减少 : ", content: "3", unit: "kg" },
200
-        //   { value: "2", label: "舒张压 : ", content: "200", unit: "mmHg" },
201
-        //   { value: "3", label: "实际置换量 : ", content: "20", unit: "ml" },
202
-        //   { value: "3", label: "透后症状 : ", content: "无症状", unit: "" },
203
-        //   { value: "4", label: "导管 : ", content: "导管堵塞", unit: "" }
204
-        // ],
205
-        // info3: [
206
-        //   { value: "1", label: "体温 : ", content: "14", unit: "℃" },
207
-        //   { value: "2", label: "心率 : ", content: "2", unit: "次/分" },
208
-        //   { value: "3", label: "实际治疗时长 : ", content: "4时4分", unit: "" },
209
-        //   { value: "4", label: "透析中入量: ", content: "一般", unit: "" },
210
-        //   { value: "4", label: "并发症: ", content: "痔疮出血", unit: "" }
211
-        // ]
212
-      }
213
-    },
214
-    props: {
215
-      record: {
216
-        type: Object
217
-      }
218
-    },
219
-    created () {
220
-      this.template_id = this.$store.getters.user.template_info.template_id
221
-    },
222
-    computed: {
223
-      weight_after: function () {
224
-        if (this.record == null || this.record.id == '') {
225
-          return '-'
226
-        }
227
-        return this.record.weight_after
228
-      },
229
-      systolic_blood_pressure: function () {
230
-        if (this.record == null || this.record.id == '') {
231
-          return '-'
232
-        }
233
-        return this.record.systolic_blood_pressure
234
-      },
235
-      actual_ultrafiltration: function () {
236
-        if (this.record == null || this.record.id == '') {
237
-          return '-'
238
-        }
239
-        return this.record.actual_ultrafiltration
240
-      },
241
-      cruor: function () {
242
-        if (this.record == null || this.record.id == '') {
243
-          return '-'
244
-        }
245
-        return this.record.cruor
246
-      },
247
-      internal_fistula: function () {
248
-        if (this.record == null || this.record.id == '') {
249
-          return '-'
250
-        }
251
-        return this.record.internal_fistula
252
-      },
253
-      weight_loss: function () {
254
-        if (this.record == null || this.record.id == '') {
255
-          return '-'
256
-        }
257
-        return this.record.weight_loss
258
-      },
259
-      inpatient_department: function () {
260
-        if (this.record == null || this.record.id == '') {
261
-          return '-'
262
-        }
263
-        return this.record.inpatient_department
264
-      },
265
-      patient_gose: function () {
266
-        if (this.record == null || this.record.id == '') {
267
-          return 0
268
-        }
269
-        return this.record.patient_gose
270
-      },
271
-      diastolic_blood_pressure: function () {
272
-        if (this.record == null || this.record.id == '') {
273
-          return '-'
274
-        }
275
-        return this.record.diastolic_blood_pressure
276
-      },
277
-      actual_displacement: function () {
278
-        if (this.record == null || this.record.id == '') {
279
-          return '-'
280
-        }
281
-        return this.record.actual_displacement
282
-      },
283
-      symptom_after_dialysis: function () {
284
-        if (this.record == null || this.record.id == '') {
285
-          return '-'
286
-        }
287
-        return this.record.symptom_after_dialysis
288
-      },
289
-      blood_access_part: function () {
290
-        if (this.record == null || this.record.id == '') {
291
-          return '-'
292
-        }
293
-        let vascular_access = this.$store.getters.vascular_access
294
-        let valen = vascular_access.length
295
-        let name = '-'
296
-        for (let index = 0; index < valen; index++) {
297
-          if (vascular_access[index].id == this.record.blood_access_part_id) {
298
-            name = vascular_access[index].name
299
-            break
300
-          }
301
-        }
302
-        return name
303
-      },
304
-      puncture_point_oozing_blood_name: function () {
305
-        if (this.record == null || this.record.id == '') {
306
-          return '-'
307
-        }
308
-        switch (this.record.puncture_point_oozing_blood) {
309
-          case 1:
310
-            return '有'
311
-            break
312
-          case 2:
313
-            return '无'
314
-            break
315
-
316
-          default:
317
-            return '-'
318
-            break
193
+export default {
194
+  name: 'DialysisPrescription',
195
+  data () {
196
+    return {
197
+      title: '透后评估 ',
198
+      template_id: 0
199
+      // note: "无明显异常",
200
+      // doctor: "刘小军  医生",
201
+      // info1: [
202
+      //   { value: "1", label: "透后体重 : ", content: "55", unit: "kg" },
203
+      //   { value: "2", label: "收缩压 : ", content: "174", unit: "mmHg" },
204
+      //   { value: "3", label: "实际超滤量: ", content: "20", unit: "ml" },
205
+      //   { value: "4", label: "疑血 : ", content: "无震颤", unit: "" },
206
+      //   { value: "5", label: "", content: "", unit: "" }
207
+      // ],
208
+      // info2: [
209
+      //   { value: "1", label: "体重减少 : ", content: "3", unit: "kg" },
210
+      //   { value: "2", label: "舒张压 : ", content: "200", unit: "mmHg" },
211
+      //   { value: "3", label: "实际置换量 : ", content: "20", unit: "ml" },
212
+      //   { value: "3", label: "透后症状 : ", content: "无症状", unit: "" },
213
+      //   { value: "4", label: "导管 : ", content: "导管堵塞", unit: "" }
214
+      // ],
215
+      // info3: [
216
+      //   { value: "1", label: "体温 : ", content: "14", unit: "℃" },
217
+      //   { value: "2", label: "心率 : ", content: "2", unit: "次/分" },
218
+      //   { value: "3", label: "实际治疗时长 : ", content: "4时4分", unit: "" },
219
+      //   { value: "4", label: "透析中入量: ", content: "一般", unit: "" },
220
+      //   { value: "4", label: "并发症: ", content: "痔疮出血", unit: "" }
221
+      // ]
222
+    }
223
+  },
224
+  props: {
225
+    record: {
226
+      type: Object
227
+    },
228
+    predialysis: {
229
+      type: Object
230
+    }
231
+  },
232
+  created () {
233
+    this.template_id = this.$store.getters.user.template_info.template_id
234
+  },
235
+  computed: {
236
+    weight_after: function () {
237
+      if (this.record == null || this.record.id == '') {
238
+        return '-'
239
+      }
240
+      return this.record.weight_after
241
+    },
242
+    additional_weight: function () {
243
+      if (this.record == null || this.record.id == '') {
244
+        return '-'
245
+      }
246
+      return this.record.additional_weight
247
+    },
248
+    systolic_blood_pressure: function () {
249
+      if (this.record == null || this.record.id == '') {
250
+        return '-'
251
+      }
252
+      return this.record.systolic_blood_pressure
253
+    },
254
+    actual_ultrafiltration: function () {
255
+      if (this.record == null || this.record.id == '') {
256
+        return '-'
257
+      }
258
+      return this.record.actual_ultrafiltration
259
+    },
260
+    cruor: function () {
261
+      if (this.record == null || this.record.id == '') {
262
+        return '-'
263
+      }
264
+      return this.record.cruor
265
+    },
266
+    internal_fistula: function () {
267
+      if (this.record == null || this.record.id == '') {
268
+        return '-'
269
+      }
270
+      return this.record.internal_fistula
271
+    },
272
+    weight_loss: function () {
273
+      if (this.record == null || this.record.id == '') {
274
+        return '-'
275
+      }
276
+      return this.record.weight_loss
277
+    },
278
+    inpatient_department: function () {
279
+      if (this.record == null || this.record.id == '') {
280
+        return '-'
281
+      }
282
+      return this.record.inpatient_department
283
+    },
284
+    patient_gose: function () {
285
+      if (this.record == null || this.record.id == '') {
286
+        return 0
287
+      }
288
+      return this.record.patient_gose
289
+    },
290
+    diastolic_blood_pressure: function () {
291
+      if (this.record == null || this.record.id == '') {
292
+        return '-'
293
+      }
294
+      return this.record.diastolic_blood_pressure
295
+    },
296
+    actual_displacement: function () {
297
+      if (this.record == null || this.record.id == '') {
298
+        return '-'
299
+      }
300
+      return this.record.actual_displacement
301
+    },
302
+    symptom_after_dialysis: function () {
303
+      if (this.record == null || this.record.id == '') {
304
+        return '-'
305
+      }
306
+      return this.record.symptom_after_dialysis
307
+    },
308
+    blood_access_part: function () {
309
+      if (this.record == null || this.record.id == '') {
310
+        return '-'
311
+      }
312
+      let vascular_access = this.$store.getters.vascular_access
313
+      let valen = vascular_access.length
314
+      let name = '-'
315
+      for (let index = 0; index < valen; index++) {
316
+        if (vascular_access[index].id == this.record.blood_access_part_id) {
317
+          name = vascular_access[index].name
318
+          break
319 319
         }
320
-      },
320
+      }
321
+      return name
322
+    },
323
+    puncture_point_oozing_blood_name: function () {
324
+      if (this.record == null || this.record.id == '') {
325
+        return '-'
326
+      }
327
+      switch (this.record.puncture_point_oozing_blood) {
328
+        case 1:
329
+          return '有'
330
+          break
331
+        case 2:
332
+          return '无'
333
+          break
321 334
 
322
-      eat_name: function () {
323
-        if (this.record == null || this.record.id == '') {
335
+        default:
324 336
           return '-'
325
-        }
326
-        switch (this.record.is_eat) {
327
-          case 1:
328
-            return '有'
329
-            break
330
-          case 2:
331
-            return '无'
332
-            break
337
+          break
338
+      }
339
+    },
333 340
 
334
-          default:
335
-            return '-'
336
-            break
337
-        }
338
-      },
339
-      patient_gose_name: function () {
340
-        if (this.record == null || this.record.id == '') {
341
-          return '-'
342
-        }
343
-        switch (this.record.patient_gose) {
344
-          case 1:
345
-            return '离院'
346
-            break
347
-          case 2:
348
-            return '留观'
349
-            break
350
-          case 3:
351
-            return '住院'
352
-            break
341
+    eat_name: function () {
342
+      if (this.record == null || this.record.id == '') {
343
+        return '-'
344
+      }
345
+      switch (this.record.is_eat) {
346
+        case 1:
347
+          return '有'
348
+          break
349
+        case 2:
350
+          return '无'
351
+          break
353 352
 
354
-          default:
355
-            return '-'
356
-            break
357
-        }
358
-      },
359
-      blood_access_opera: function () {
360
-        if (this.record == null || this.record.id == '') {
361
-          return '-'
362
-        }
363
-        let vascular_access = this.$store.getters.vascular_access_desc
364
-        let valen = vascular_access.length
365
-        let name = '-'
366
-        for (let index = 0; index < valen; index++) {
367
-          if (vascular_access[index].id == this.record.blood_access_part_opera_id) {
368
-            name = vascular_access[index].name
369
-            break
370
-          }
371
-        }
372
-        return name
373
-      },
374
-      catheter: function () {
375
-        if (this.record == null || this.record.id == '') {
376
-          return '-'
377
-        }
378
-        return this.record.catheter
379
-      },
380
-      puncture_point_haematoma_name: function () {
381
-        if (this.record == null || this.record.id == '') {
382
-          return '-'
383
-        }
384
-        switch (this.record.puncture_point_haematoma) {
385
-          case 1:
386
-            return '有'
387
-            break
388
-          case 2:
389
-            return '无'
390
-            break
391
-          default:
392
-            return '-'
393
-            break
394
-        }
395
-      },
396
-      breathing_rate: function () {
397
-        if (this.record == null || this.record.id == '') {
398
-          return '-'
399
-        }
400
-        return this.record.breathing_rate
401
-      },
402
-      temperature: function () {
403
-        if (this.record == null || this.record.id == '') {
404
-          return '-'
405
-        }
406
-        return this.record.temperature
407
-      },
408
-      pulse_frequency: function () {
409
-        if (this.record == null || this.record.id == '') {
410
-          return '-'
411
-        }
412
-        return this.record.pulse_frequency
413
-      },
414
-      actual_treatment_hour: function () {
415
-        if (this.record == null || this.record.id == '') {
353
+        default:
416 354
           return '-'
417
-        }
418
-        return this.record.actual_treatment_hour
419
-      },
420
-      actual_treatment_minute: function () {
421
-        if (this.record == null || this.record.id == '') {
422
-          return '-'
423
-        }
424
-        return this.record.actual_treatment_minute
425
-      },
426
-      dialysis_intakes_feed: function () {
427
-        if (this.record == null || this.record.id == '') {
428
-          return '-'
429
-        }
430
-        return this.record.dialysis_intakes
431
-      },
432
-      observation_content_other: function () {
433
-        if (this.record == null || this.record.id == '') {
434
-          return '-'
435
-        }
436
-        return this.record.observation_content_other
437
-      },
438
-      observation_content: function () {
439
-        if (this.record == null || this.record.id == '') {
355
+          break
356
+      }
357
+    },
358
+    patient_gose_name: function () {
359
+      if (this.record == null || this.record.id == '') {
360
+        return '-'
361
+      }
362
+      switch (this.record.patient_gose) {
363
+        case 1:
364
+          return '离院'
365
+          break
366
+        case 2:
367
+          return '留观'
368
+          break
369
+        case 3:
370
+          return '住院'
371
+          break
372
+
373
+        default:
440 374
           return '-'
375
+          break
376
+      }
377
+    },
378
+    blood_access_opera: function () {
379
+      if (this.record == null || this.record.id == '') {
380
+        return '-'
381
+      }
382
+      let vascular_access = this.$store.getters.vascular_access_desc
383
+      let valen = vascular_access.length
384
+      let name = '-'
385
+      for (let index = 0; index < valen; index++) {
386
+        if (vascular_access[index].id == this.record.blood_access_part_opera_id) {
387
+          name = vascular_access[index].name
388
+          break
441 389
         }
442
-        return this.record.observation_content
443
-      },
444
-      complication: function () {
445
-        if (this.record == null || this.record.id == '') {
390
+      }
391
+      return name
392
+    },
393
+    catheter: function () {
394
+      if (this.record == null || this.record.id == '') {
395
+        return '-'
396
+      }
397
+      return this.record.catheter
398
+    },
399
+    puncture_point_haematoma_name: function () {
400
+      if (this.record == null || this.record.id == '') {
401
+        return '-'
402
+      }
403
+      switch (this.record.puncture_point_haematoma) {
404
+        case 1:
405
+          return '有'
406
+          break
407
+        case 2:
408
+          return '无'
409
+          break
410
+        default:
446 411
           return '-'
447
-        }
448
-        return this.record.complication
449
-      },
450
-      internal_fistula_tremor_ac_name: function () {
451
-        if (this.record == null || this.record.id == '') {
412
+          break
413
+      }
414
+    },
415
+    breathing_rate: function () {
416
+      if (this.record == null || this.record.id == '') {
417
+        return '-'
418
+      }
419
+      return this.record.breathing_rate
420
+    },
421
+    temperature: function () {
422
+      if (this.record == null || this.record.id == '') {
423
+        return '-'
424
+      }
425
+      return this.record.temperature
426
+    },
427
+    pulse_frequency: function () {
428
+      if (this.record == null || this.record.id == '') {
429
+        return '-'
430
+      }
431
+      return this.record.pulse_frequency
432
+    },
433
+    actual_treatment_hour: function () {
434
+      if (this.record == null || this.record.id == '') {
435
+        return '-'
436
+      }
437
+      return this.record.actual_treatment_hour
438
+    },
439
+    actual_treatment_minute: function () {
440
+      if (this.record == null || this.record.id == '') {
441
+        return '-'
442
+      }
443
+      return this.record.actual_treatment_minute
444
+    },
445
+    dialysis_intakes_feed: function () {
446
+      if (this.record == null || this.record.id == '') {
447
+        return '-'
448
+      }
449
+      return this.record.dialysis_intakes
450
+    },
451
+    observation_content_other: function () {
452
+      if (this.record == null || this.record.id == '') {
453
+        return '-'
454
+      }
455
+      return this.record.observation_content_other
456
+    },
457
+    observation_content: function () {
458
+      if (this.record == null || this.record.id == '') {
459
+        return '-'
460
+      }
461
+      return this.record.observation_content
462
+    },
463
+    complication: function () {
464
+      if (this.record == null || this.record.id == '') {
465
+        return '-'
466
+      }
467
+      return this.record.complication
468
+    },
469
+    internal_fistula_tremor_ac_name: function () {
470
+      if (this.record == null || this.record.id == '') {
471
+        return '-'
472
+      }
473
+      switch (this.record.internal_fistula_tremor_ac) {
474
+        case 1:
475
+          return '存在'
476
+          break
477
+        case 2:
478
+          return '减弱'
479
+          break
480
+        case 3:
481
+          return '无'
482
+          break
483
+        default:
452 484
           return '-'
453
-        }
454
-        switch (this.record.internal_fistula_tremor_ac) {
455
-          case 1:
456
-            return '存在'
457
-            break
458
-          case 2:
459
-            return '减弱'
460
-            break
461
-          case 3:
462
-            return '无'
463
-            break
464
-          default:
465
-            return '-'
466
-            break
467
-        }
468
-      },
469
-
470
-      remark: function () {
471
-        if (this.record == null || this.record.id == '') {
472
-          return ''
473
-        }
474
-        return this.record.remark
475
-      },
476
-      in_advance_minute: function () {
477
-        if (this.record == null || this.record.id == '') {
478
-          return ''
479
-        }
480
-        return this.record.in_advance_minute
481
-      },
482
-      in_advance_reason: function () {
483
-        if (this.record == null || this.record.id == '') {
484
-          return ''
485
-        }
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 ''
491
-        }
485
+          break
486
+      }
487
+    },
492 488
 
493
-        return this.record.hemostasis_minute
494
-      },
495
-      in_advance_reason_other: function () {
496
-        if (this.record == null || this.record.id == '') {
497
-          return ''
498
-        }
499
-        return this.record.in_advance_reason_other
489
+    remark: function () {
490
+      if (this.record == null || this.record.id == '') {
491
+        return ''
500 492
       }
493
+      return this.record.remark
501 494
     },
502
-    methods: {
503
-      isShow (name) {
504
-        var filedList = this.$store.getters.user.fileds
495
+    in_advance_minute: function () {
496
+      if (this.record == null || this.record.id == '') {
497
+        return ''
498
+      }
499
+      return this.record.in_advance_minute
500
+    },
501
+    in_advance_reason: function () {
502
+      if (this.record == null || this.record.id == '') {
503
+        return ''
504
+      }
505
+      return this.record.in_advance_reason + ',' + this.record.in_advance_reason_other
506
+    },
507
+    hemostasis_minute: function () {
508
+      if (this.record == null || this.record.id == '') {
509
+        return ''
510
+      }
505 511
 
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) {
508
-            return true
509
-          }
510
-        }
511
-        return false
512
-      },
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
519
-          }
512
+      return this.record.hemostasis_minute
513
+    },
514
+    in_advance_reason_other: function () {
515
+      if (this.record == null || this.record.id == '') {
516
+        return ''
517
+      }
518
+      return this.record.in_advance_reason_other
519
+    }
520
+  },
521
+  methods: {
522
+    isShow (name) {
523
+      var filedList = this.$store.getters.user.fileds
524
+
525
+      for (let i = 0; i < filedList.length; i++) {
526
+        if (filedList[i].module == 5 && filedList[i].filed_name_cn == name && filedList[i].is_show == 1) {
527
+          return true
520 528
         }
521
-        return hemostasisOperaName
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
529
-          }
529
+      }
530
+      return false
531
+    },
532
+    getOpera: function (id) {
533
+      var hemostasis_opera = this.$store.getters.hemostasis_opera
534
+      var hemostasisOperaName = ''
535
+      for (let i = 0; i < hemostasis_opera.length; i++) {
536
+        if (hemostasis_opera[i].id == id) {
537
+          hemostasisOperaName = hemostasis_opera[i].name
530 538
         }
531
-        return tremorNoiseName
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
539
-          }
539
+      }
540
+      return hemostasisOperaName
541
+    },
542
+    getTremorNoise: function (id) {
543
+      var tremor_noise = this.$store.getters.tremor_noise
544
+      var tremorNoiseName = ''
545
+      for (let i = 0; i < tremor_noise.length; i++) {
546
+        if (tremor_noise[i].id == id) {
547
+          tremorNoiseName = tremor_noise[i].name
540 548
         }
541
-        return disequilibriumSyndromeName
542
-      },
543
-      getDisequilibriumSyndromeOptionName: function (id) {
544
-        var disequilibrium_syndrome_option = this.$store.getters.disequilibrium_syndrome_option
545
-        var disequilibriumSyndromeOptionName = ''
546
-        for (let i = 0; i < disequilibrium_syndrome_option.length; i++) {
547
-          if (disequilibrium_syndrome_option[i].id == id) {
548
-            disequilibriumSyndromeOptionName = disequilibrium_syndrome_option[i].name
549
-          }
549
+      }
550
+      return tremorNoiseName
551
+    },
552
+    getDisequilibriumSyndrome: function (id) {
553
+      var disequilibrium_syndrome = this.$store.getters.disequilibrium_syndrome
554
+      var disequilibriumSyndromeName = ''
555
+      for (let i = 0; i < disequilibrium_syndrome.length; i++) {
556
+        if (disequilibrium_syndrome[i].id == id) {
557
+          disequilibriumSyndromeName = disequilibrium_syndrome[i].name
550 558
         }
551
-        return disequilibriumSyndromeOptionName
552
-      },
553
-      getArterialTubeName: function (id) {
554
-        var arterial_tube = this.$store.getters.arterial_tube
555
-        var arterialTubeName = ''
556
-        for (let i = 0; i < arterial_tube.length; i++) {
557
-          if (arterial_tube[i].id == id) {
558
-            arterialTubeName = arterial_tube[i].name
559
-          }
559
+      }
560
+      return disequilibriumSyndromeName
561
+    },
562
+    getDisequilibriumSyndromeOptionName: function (id) {
563
+      var disequilibrium_syndrome_option = this.$store.getters.disequilibrium_syndrome_option
564
+      var disequilibriumSyndromeOptionName = ''
565
+      for (let i = 0; i < disequilibrium_syndrome_option.length; i++) {
566
+        if (disequilibrium_syndrome_option[i].id == id) {
567
+          disequilibriumSyndromeOptionName = disequilibrium_syndrome_option[i].name
560 568
         }
561
-        return arterialTubeName
562
-      },
563
-      getIntravenousTubeName: function (id) {
564
-        var intravenous_tube = this.$store.getters.intravenous_tube
565
-        var intravenousTubeName = ''
566
-        for (let i = 0; i < intravenous_tube.length; i++) {
567
-          if (intravenous_tube[i].id == id) {
568
-            intravenousTubeName = intravenous_tube[i].name
569
-          }
569
+      }
570
+      return disequilibriumSyndromeOptionName
571
+    },
572
+    getArterialTubeName: function (id) {
573
+      var arterial_tube = this.$store.getters.arterial_tube
574
+      var arterialTubeName = ''
575
+      for (let i = 0; i < arterial_tube.length; i++) {
576
+        if (arterial_tube[i].id == id) {
577
+          arterialTubeName = arterial_tube[i].name
570 578
         }
571
-        return intravenousTubeName
572
-      },
573
-      getDialyzer: function (id) {
574
-        var dialyzer = this.$store.getters.dialyzer
575
-        var dialyzerName = ''
576
-        for (let i = 0; i < dialyzer.length; i++) {
577
-          if (dialyzer[i].id == id) {
578
-            dialyzerName = dialyzer[i].name
579
-          }
579
+      }
580
+      return arterialTubeName
581
+    },
582
+    getIntravenousTubeName: function (id) {
583
+      var intravenous_tube = this.$store.getters.intravenous_tube
584
+      var intravenousTubeName = ''
585
+      for (let i = 0; i < intravenous_tube.length; i++) {
586
+        if (intravenous_tube[i].id == id) {
587
+          intravenousTubeName = intravenous_tube[i].name
580 588
         }
581
-        return dialyzerName
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
589
+      }
590
+      return intravenousTubeName
591
+    },
592
+    getDialyzer: function (id) {
593
+      var dialyzer = this.$store.getters.dialyzer
594
+      var dialyzerName = ''
595
+      for (let i = 0; i < dialyzer.length; i++) {
596
+        if (dialyzer[i].id == id) {
597
+          dialyzerName = dialyzer[i].name
594 598
         }
595
-      },
596
-      // setRecord(record) {
597
-      //   if (record == null) {
598
-      //     this.info1[0].content = ""
599
-      //     this.info1[1].content = ""
600
-      //     this.info1[2].content = ""
601
-      //     this.info1[3].content = ""
602
-      //     this.info1[4].content = ""
603
-
604
-      //     this.info2[0].content = ""
605
-      //     this.info2[1].content = ""
606
-      //     this.info2[2].content = ""
607
-      //     this.info2[3].content = ""
608
-      //     this.info2[4].content = ""
599
+      }
600
+      return dialyzerName
601
+    },
602
+    getUnit: function (val) {
603
+      switch (this.record.dialysis_intakes_unit) {
604
+        case 1:
605
+          return 'g'
606
+          break
607
+        case 2:
608
+          return 'ml'
609
+          break
610
+        default:
611
+          return '-'
612
+          break
613
+      }
614
+    }
615
+    // setRecord(record) {
616
+    //   if (record == null) {
617
+    //     this.info1[0].content = ""
618
+    //     this.info1[1].content = ""
619
+    //     this.info1[2].content = ""
620
+    //     this.info1[3].content = ""
621
+    //     this.info1[4].content = ""
609 622
 
610
-      //     this.info3[0].content = ""
611
-      //     this.info3[1].content = ""
612
-      //     this.info3[2].content = ""
613
-      //     this.info3[3].content = ""
614
-      //     this.info3[4].content = ""
623
+    //     this.info2[0].content = ""
624
+    //     this.info2[1].content = ""
625
+    //     this.info2[2].content = ""
626
+    //     this.info2[3].content = ""
627
+    //     this.info2[4].content = ""
615 628
 
616
-      //     this.note = ""
629
+    //     this.info3[0].content = ""
630
+    //     this.info3[1].content = ""
631
+    //     this.info3[2].content = ""
632
+    //     this.info3[3].content = ""
633
+    //     this.info3[4].content = ""
617 634
 
618
-      //   } else {
619
-      //     this.info1[0].content = record.weight_after
620
-      //     this.info1[1].content = record.systolic_blood_pressure
621
-      //     this.info1[2].content = record.actual_ultrafiltration
622
-      //     this.info1[3].content = record.cruor
623
-      //     // this.info1[4].content = record.systolic_blood_pressure
635
+    //     this.note = ""
624 636
 
625
-      //     this.info2[0].content = record.weight_loss
626
-      //     this.info2[1].content = record.diastolic_blood_pressure
627
-      //     this.info2[2].content = record.actual_displacement
628
-      //     this.info2[3].content = record.symptom_after_dialysis
629
-      //     this.info2[4].content = record.catheter
637
+    //   } else {
638
+    //     this.info1[0].content = record.weight_after
639
+    //     this.info1[1].content = record.systolic_blood_pressure
640
+    //     this.info1[2].content = record.actual_ultrafiltration
641
+    //     this.info1[3].content = record.cruor
642
+    //     // this.info1[4].content = record.systolic_blood_pressure
630 643
 
631
-      //     this.info3[0].content = record.temperature
632
-      //     this.info3[1].content = record.pulse_frequency
633
-      //     this.info3[2].content = record.actual_treatment_hour
634
-      //     this.info3[3].content = record.dialysis_intakes_feed
635
-      //     this.info3[4].content = record.complication
644
+    //     this.info2[0].content = record.weight_loss
645
+    //     this.info2[1].content = record.diastolic_blood_pressure
646
+    //     this.info2[2].content = record.actual_displacement
647
+    //     this.info2[3].content = record.symptom_after_dialysis
648
+    //     this.info2[4].content = record.catheter
636 649
 
637
-      //     this.note = record.remark
638
-      //   }
639
-      // }
640
-    },
650
+    //     this.info3[0].content = record.temperature
651
+    //     this.info3[1].content = record.pulse_frequency
652
+    //     this.info3[2].content = record.actual_treatment_hour
653
+    //     this.info3[3].content = record.dialysis_intakes_feed
654
+    //     this.info3[4].content = record.complication
641 655
 
656
+    //     this.note = record.remark
657
+    //   }
658
+    // }
642 659
   }
660
+
661
+}
643 662
 </script>
644 663
 
645 664
 <style rel="stylesheet/scss" lang="scss" scoped>

+ 5 - 0
src/pages/main/today/assessmentBefore.vue View File

@@ -12,6 +12,11 @@
12 12
           <span class="content">{{ weight_before ? weight_before : "" }}</span>
13 13
           <span class="unit">{{ weight_before ? "kg" : "" }}</span>
14 14
         </li>
15
+        <li v-if="this.$store.getters.user.template_info.template_id == 6">
16
+          <label>透前净体重 : </label>
17
+          <span class="content">{{ weight_before ? parseFloat(weight_before - additional_weight).toFixed(1) : "" }}</span>
18
+          <span class="unit">{{ weight_before ? "kg" : "" }}</span>
19
+        </li>
15 20
         <li v-if="isShow('收缩压')">
16 21
           <label>收缩压 : </label>
17 22
           <span class="content">{{