Browse Source

新分支

28169 8 months ago
parent
commit
8e8617eacd
1 changed files with 39 additions and 4 deletions
  1. 39 4
      src/xt_pages/user/dialysisRecord.vue

+ 39 - 4
src/xt_pages/user/dialysisRecord.vue View File

169
                  {{ scope.row.prescription.dialyzer_perfusion_apparatus }}
169
                  {{ scope.row.prescription.dialyzer_perfusion_apparatus }}
170
                  {{ scope.row.prescription.dialysis_dialyszers }}
170
                  {{ scope.row.prescription.dialysis_dialyszers }}
171
               <span v-if="scope.row.prescription.dialysis_irrigation!=''">/{{ scope.row.prescription.dialysis_irrigation }}</span>
171
               <span v-if="scope.row.prescription.dialysis_irrigation!=''">/{{ scope.row.prescription.dialysis_irrigation }}</span>
172
+              <span v-if="scope.row.prescription.dialysis_strainer!=''">/{{ scope.row.prescription.dialysis_strainer }}</span>
172
              </template>
173
              </template>
173
           </el-table-column>
174
           </el-table-column>
174
 
175
 
180
           >
181
           >
181
           </el-table-column>
182
           </el-table-column>
182
           <el-table-column
183
           <el-table-column
184
+            v-if="org_id!=0&&org_id!=10702"
183
             prop="predialysis_evaluation.weight_before"
185
             prop="predialysis_evaluation.weight_before"
184
             width="110"
186
             width="110"
185
             align="center"
187
             align="center"
186
             label="透前称重(kg)"
188
             label="透前称重(kg)"
187
           >
189
           >
188
           </el-table-column>
190
           </el-table-column>
191
+
192
+          <el-table-column
193
+            v-if="org_id==0 || org_id==10702"
194
+            prop="weight_before"
195
+            width="110"
196
+            align="center"
197
+            label="透前体重(kg)"
198
+          >
199
+          </el-table-column>
200
+          
189
           <el-table-column
201
           <el-table-column
202
+            v-if="org_id!=0&&org_id!=10702"
190
             prop="assessment_after_dislysis.weight_after"
203
             prop="assessment_after_dislysis.weight_after"
191
             width="110"
204
             width="110"
192
             align="center"
205
             align="center"
193
             label="透后称重(kg)"
206
             label="透后称重(kg)"
194
           >
207
           >
195
           </el-table-column>
208
           </el-table-column>
209
+
210
+          <el-table-column
211
+            v-if="org_id==0 || org_id==10702"
212
+            prop="weight_after"
213
+            width="110"
214
+            align="center"
215
+            label="透后体重(kg)"
216
+          >
217
+          </el-table-column>
196
           <el-table-column
218
           <el-table-column
197
             prop="predialysis_evaluation"
219
             prop="predialysis_evaluation"
198
             width="140"
220
             width="140"
370
               <th>透析时长(h)</th>
392
               <th>透析时长(h)</th>
371
               <th>透析器/灌流器</th>
393
               <th>透析器/灌流器</th>
372
               <th>干体重(kg)</th>
394
               <th>干体重(kg)</th>
373
-              <th>透前称重(kg)</th>
374
-              <th>透后称重(kg)</th>
395
+              <th v-if="org_id!=0&&org_id!=10702">透前称重(kg)</th>
396
+              <th v-if="org_id!=0&&org_id!=10702">透后称重(kg)</th>
397
+
398
+              <th v-if="org_id ==0 || org_id!=10702">透前体重(kg)</th>
399
+              <th v-if="org_id==0 || org_id==10702">透后体重(kg)</th>
375
               <th>透前血压(mmhg)</th>
400
               <th>透前血压(mmhg)</th>
376
               <th>透后血压(mmhg)</th>
401
               <th>透后血压(mmhg)</th>
377
               <th>目标超滤量(L)</th>
402
               <th>目标超滤量(L)</th>
395
                    <span v-if="item.prescription.dialysis_irrigation!=''">/{{ item.prescription.dialysis_irrigation }} </span>
420
                    <span v-if="item.prescription.dialysis_irrigation!=''">/{{ item.prescription.dialysis_irrigation }} </span>
396
                 </td>
421
                 </td>
397
                 <td>{{ item.predialysis_evaluation.dry_weight }}</td>
422
                 <td>{{ item.predialysis_evaluation.dry_weight }}</td>
398
-                <td>{{ item.predialysis_evaluation.weight_before }}</td>
399
-                <td>{{ item.assessment_after_dislysis.weight_after }}</td>
423
+                <td v-if="org_id!=0&&org_id!=10702">{{ item.predialysis_evaluation.weight_before }}</td>
424
+                <td v-if="org_id!=0&&org_id!=10702">{{ item.assessment_after_dislysis.weight_after }}</td>
425
+
426
+                <td  v-if="org_id==0 || org_id==10702">{{ item.weight_before }}</td>
427
+                <td  v-if="org_id==0 || org_id==10702">{{ item.weight_after }}</td>
400
                 <td>
428
                 <td>
401
                   {{ item.predialysis_evaluation.systolic_blood_pressure }}/{{
429
                   {{ item.predialysis_evaluation.systolic_blood_pressure }}/{{
402
                     item.predialysis_evaluation.diastolic_blood_pressure
430
                     item.predialysis_evaluation.diastolic_blood_pressure
622
         if (response.data.state == 1) {
650
         if (response.data.state == 1) {
623
           this.total = response.data.data.total;
651
           this.total = response.data.data.total;
624
           this.recordData = response.data.data.records;
652
           this.recordData = response.data.data.records;
653
+
654
+          for(let i=0;i<this.recordData.length;i++){
655
+               
656
+            this.recordData[i].weight_before = (this.recordData[i].predialysis_evaluation.weight_before - this.recordData[i].predialysis_evaluation.additional_weight).toFixed(2)
657
+
658
+            this.recordData[i].weight_after = (this.recordData[i].assessment_after_dislysis.weight_after - this.recordData[i].assessment_after_dislysis.additional_weight).toFixed(2)
659
+          }
625
           console.log("郭23232323232232323",this.recordData)
660
           console.log("郭23232323232232323",this.recordData)
626
         
661
         
627
         }
662
         }