Sfoglia il codice sorgente

Merge branch 'new_pad_branch' of http://git.shengws.com/zhangbj/xt_pad into new_pad_branch

csx 4 anni fa
parent
commit
55f1759c4a

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 Vedi 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 Vedi 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 Vedi File

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

+ 5 - 0
src/pages/main/today/assessmentBefore.vue Vedi 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">{{