Browse Source

Merge remote-tracking branch 'origin/20230223_pc_vue_new_branch' into 20230223_pc_vue_new_branch

yq1 4 days ago
parent
commit
d4bac5f3f9

+ 46 - 8
src/xt_pages/dialysis/batch_print/batch_print_order_eightyone.vue View File

298
                         <div class="under_line"
298
                         <div class="under_line"
299
                           style="width: 70px; text-align: center"
299
                           style="width: 70px; text-align: center"
300
                         >
300
                         >
301
-                          <span> {{
302
-                            record.prescription.displace_liqui_value
303
-                              ? record.prescription.displace_liqui_value
301
+                          <span> 
302
+                            {{
303
+                            record.prescription.replacement_total
304
+                              ? record.prescription.replacement_total
304
                               : "/"
305
                               : "/"
305
                           }}
306
                           }}
306
                           </span>
307
                           </span>
402
                       <div class="inline_block" style="flex: 1">
403
                       <div class="inline_block" style="flex: 1">
403
                         上次透后体重:
404
                         上次透后体重:
404
                         <div class="under_line" style="width: 50px; text-align: center">
405
                         <div class="under_line" style="width: 50px; text-align: center">
405
-                          {{record.lastafterweight.weight_after ? record.lastafterweight.weight_after:"未称重"}}
406
+                          <span v-if="record.lastafterweight.weight_after>0"> {{record.lastafterweight.weight_after ? record.lastafterweight.weight_after:"未称重"}}</span>
407
+                          <span v-if="record.lastafterweight.weight_after<=0"> {{record.assessment_after_dislysis.last_after_weight ? record.assessment_after_dislysis.last_after_weight:"未称重"}}</span>
406
                         </div>
408
                         </div>
407
                         kg
409
                         kg
408
                       </div>
410
                       </div>
426
                       <div class="inline_block" style="flex: 1">
428
                       <div class="inline_block" style="flex: 1">
427
                         体重增加:
429
                         体重增加:
428
                         <div class="under_line" style="width: 70px; text-align: center">
430
                         <div class="under_line" style="width: 70px; text-align: center">
429
-                          {{ record.assessment_before_dislysis.weight_before > 0 && record.lastafterweight.weight_after > 0 
430
-                            ? parseFloat(record.assessment_before_dislysis.weight_before 
431
+                          <span v-if="record.lastafterweight.weight_after>0">{{ record.assessment_before_dislysis.weight_before > 0 && record.lastafterweight.weight_after > 0 
432
+                            ? parseFloat(record.assessment_before_dislysis.weight_before - record.assessment_before_dislysis.additional_weight
431
                             - record.lastafterweight.weight_after).toFixed(2): "/" 
433
                             - record.lastafterweight.weight_after).toFixed(2): "/" 
432
                           }}
434
                           }}
435
+                          </span> 
436
+
437
+                          <span v-if="record.lastafterweight.weight_after<=0">{{ record.assessment_before_dislysis.weight_before > 0 && record.assessment_after_dislysis.last_after_weight > 0 
438
+                            ? parseFloat(record.assessment_before_dislysis.weight_before - record.assessment_before_dislysis.additional_weight
439
+                            - record.assessment_after_dislysis.last_after_weight).toFixed(2): "/" 
440
+                          }}
441
+                          </span> 
433
                         </div>
442
                         </div>
434
                         kg
443
                         kg
435
                       </div>
444
                       </div>
1226
                     <div class="row"
1235
                     <div class="row"
1227
                       style="padding: 2px 0; line-height: 23px; display: flex"
1236
                       style="padding: 2px 0; line-height: 23px; display: flex"
1228
                     > 
1237
                     > 
1229
-                      <div class="inline_block" style="flex: 1">
1230
-                        穿刺护士:
1238
+                      <div class="inline_block" style="flex: 1" v-if="record.dialysis_order.puncture_nurse>0">
1239
+                        上机护士:
1231
                         <div class="under_line"
1240
                         <div class="under_line"
1232
                           style="width: 80px; text-align: center"
1241
                           style="width: 80px; text-align: center"
1233
                         >
1242
                         >
1254
                           />
1263
                           />
1255
                         </div>
1264
                         </div>
1256
                       </div>
1265
                       </div>
1266
+
1267
+                      <div class="inline_block" style="flex: 1" v-if="record.dialysis_order.change_nurse>0">
1268
+                        上机护士:
1269
+                        <div class="under_line"
1270
+                          style="width: 80px; text-align: center"
1271
+                        >
1272
+                          <span style="display: inline-block"
1273
+                            v-if=" setAdminUserES(
1274
+                                record.dialysis_order,'change_nurse'
1275
+                              ) == ''
1276
+                            "
1277
+                          >
1278
+                            {{ getAdminUser(record.dialysis_order, "change_nurse")
1279
+                              ? getAdminUser(record.dialysis_order,"change_nurse"): "/"
1280
+                              }}
1281
+                          </span>
1282
+                          <img
1283
+                            style="height: 30px"
1284
+                            :src="
1285
+                              setAdminUserES(
1286
+                                record.dialysis_order,'change_nurse'
1287
+                                )
1288
+                            "
1289
+                            alt=""
1290
+                            srcset=""
1291
+                            v-else
1292
+                          />
1293
+                        </div>
1294
+                      </div>
1257
                       <div class="inline_block" style="flex: 1">
1295
                       <div class="inline_block" style="flex: 1">
1258
                         治疗护士:
1296
                         治疗护士:
1259
                         <div class="under_line"
1297
                         <div class="under_line"

+ 52 - 4
src/xt_pages/dialysis/template/DialysisPrintOrdereightyone.vue View File

270
                       <div class="under_line"
270
                       <div class="under_line"
271
                         style="width: 70px; text-align: center"
271
                         style="width: 70px; text-align: center"
272
                       >
272
                       >
273
-                        <span> {{
273
+                        <span> 
274
+                          <!-- {{
274
                           prescription.displace_liqui_value
275
                           prescription.displace_liqui_value
275
                             ? prescription.displace_liqui_value
276
                             ? prescription.displace_liqui_value
276
                             : "/"
277
                             : "/"
278
+                        }} -->
279
+                        {{
280
+                          prescription.replacement_total
281
+                            ? prescription.replacement_total
282
+                            : "/"
277
                         }}
283
                         }}
278
                         </span>
284
                         </span>
279
                       </div>
285
                       </div>
374
                     <div class="inline_block" style="flex: 1">
380
                     <div class="inline_block" style="flex: 1">
375
                       上次透后体重:
381
                       上次透后体重:
376
                       <div class="under_line" style="width: 50px; text-align: center">
382
                       <div class="under_line" style="width: 50px; text-align: center">
377
-                        {{lastafterdialysis.weight_after?lastafterdialysis.weight_after:"未称重"}}
383
+                        <!-- {{lastafterdialysis.weight_after?lastafterdialysis.weight_after:"未称重"}} -->
384
+                        <span v-if="lastafterdialysis.weight_after>0">{{lastafterdialysis.weight_after?lastafterdialysis.weight_after:"未称重"}}</span> 
385
+                        <span v-if="lastafterdialysis.weight_after<=0">{{afterdialysis.last_after_weight?afterdialysis.last_after_weight:"未称重"}}</span> 
378
                       </div>
386
                       </div>
379
                       kg
387
                       kg
380
                     </div>
388
                     </div>
397
                       体重增加:
405
                       体重增加:
398
                       <div class="under_line" style="width: 70px; text-align: center">
406
                       <div class="under_line" style="width: 70px; text-align: center">
399
                         <span>
407
                         <span>
400
-                          {{ (predialysis.weight_before - lastafterdialysis.weight_after).toFixed(2)}}
408
+                          <!-- {{ (predialysis.weight_before - lastafterdialysis.weight_after).toFixed(2)}} -->
409
+                          <span v-if="lastafterdialysis.weight_after>0">{{ (predialysis.weight_before - predialysis.additional_weight - lastafterdialysis.weight_after).toFixed(2)}}</span> 
410
+                          <span v-if="lastafterdialysis.weight_after<=0">{{ (predialysis.weight_before - predialysis.additional_weight -afterdialysis.last_after_weight).toFixed(2)}}</span> 
401
                         </span>
411
                         </span>
402
                       </div>
412
                       </div>
403
                       kg
413
                       kg
1081
                   >
1091
                   >
1082
 
1092
 
1083
                     <div class="inline_block" style="flex: 1">
1093
                     <div class="inline_block" style="flex: 1">
1084
-                      穿刺护士:
1094
+                      上机护士:
1085
                       <div  class="under_line"
1095
                       <div  class="under_line"
1086
                         style="width: 90px; text-align: center"
1096
                         style="width: 90px; text-align: center"
1097
+                         v-if="dialysisOrder.puncture_nurse>0"
1087
                       >
1098
                       >
1088
                         <span
1099
                         <span
1089
                           style="height: 30px; display: inline-block"
1100
                           style="height: 30px; display: inline-block"
1117
                           v-else
1128
                           v-else
1118
                         />
1129
                         />
1119
                       </div>
1130
                       </div>
1131
+
1132
+                      <div  class="under_line"
1133
+                        style="width: 90px; text-align: center"
1134
+                        v-if="dialysisOrder.change_nurse>0"
1135
+                      >
1136
+                        <span
1137
+                          style="height: 30px; display: inline-block"
1138
+                          v-if="
1139
+                            setAdminUserES(
1140
+                              dialysisOrder == null
1141
+                                ? 0
1142
+                                : dialysisOrder.change_nurse
1143
+                            ) == ''
1144
+                          "
1145
+                        >
1146
+                          {{
1147
+                            getAdminUser(
1148
+                              dialysisOrder == null
1149
+                                ? 0
1150
+                                : dialysisOrder.change_nurse
1151
+                            )
1152
+                          }}</span
1153
+                        >
1154
+                        <img
1155
+                          style="height: 30px"
1156
+                          :src="
1157
+                            setAdminUserES(
1158
+                              dialysisOrder == null
1159
+                                ? 0
1160
+                                : dialysisOrder.change_nurse
1161
+                            )
1162
+                          "
1163
+                          alt=""
1164
+                          srcset=""
1165
+                          v-else
1166
+                        />
1167
+                      </div>
1120
                     </div>
1168
                     </div>
1121
 
1169
 
1122
                     <div class="inline_block" style="flex: 1">
1170
                     <div class="inline_block" style="flex: 1">

+ 4 - 4
src/xt_pages/outpatientCharges/components/prescriptionTable.vue View File

74
         </template>
74
         </template>
75
       </el-table-column>
75
       </el-table-column>
76
 
76
 
77
-      <el-table-column align="center" prop="name" width="80" label="执行状态" v-if="his_patient.id > 0 && schedule.id > 0">
77
+      <el-table-column align="center" prop="name" width="80" label="执行状态" v-if="his_patient.id > 0 && schedule.id > 0 && $store.getters.xt_user.template_info.org_id!=10721">
78
         <template slot-scope="scope">
78
         <template slot-scope="scope">
79
           <div>{{ scope.row.execution_state == 1 ? "已执行" : "未执行" }}</div>
79
           <div>{{ scope.row.execution_state == 1 ? "已执行" : "未执行" }}</div>
80
         </template>
80
         </template>
81
       </el-table-column>
81
       </el-table-column>
82
 
82
 
83
-      <el-table-column align="center" prop="name" width="80" label="执行状态" v-if="his_patient.id == 0 && schedule.id > 0">
83
+      <el-table-column align="center" prop="name" width="80" label="执行状态" v-if="his_patient.id == 0 && schedule.id > 0 && $store.getters.xt_user.template_info.org_id!=10721">
84
         <template slot-scope="scope">
84
         <template slot-scope="scope">
85
           <div>{{ scope.row.execution_state == 1 ? "已执行" : "未执行" }}</div>
85
           <div>{{ scope.row.execution_state == 1 ? "已执行" : "未执行" }}</div>
86
         </template>
86
         </template>
249
         <template slot-scope="scope">{{ scope.row.price }}元</template>
249
         <template slot-scope="scope">{{ scope.row.price }}元</template>
250
       </el-table-column>
250
       </el-table-column>
251
 
251
 
252
-      <el-table-column align="center" prop="name" width="80" label="执行状态" v-if="his_patient.id > 0 && schedule.id > 0">
252
+      <el-table-column align="center" prop="name" width="80" label="执行状态" v-if="his_patient.id > 0 && schedule.id > 0 && $store.getters.xt_user.template_info.org_id!=10721">
253
         <template slot-scope="scope">
253
         <template slot-scope="scope">
254
           <div>{{ scope.row.execution_state == 1 ? "已执行" : "未执行" }}</div>
254
           <div>{{ scope.row.execution_state == 1 ? "已执行" : "未执行" }}</div>
255
         </template>
255
         </template>
256
       </el-table-column>
256
       </el-table-column>
257
 
257
 
258
-      <el-table-column align="center" prop="name" width="80" label="执行状态" v-if="his_patient.id == 0 && schedule.id > 0">
258
+      <el-table-column align="center" prop="name" width="80" label="执行状态" v-if="his_patient.id == 0 && schedule.id > 0  && $store.getters.xt_user.template_info.org_id!=10721">
259
         <template slot-scope="scope">
259
         <template slot-scope="scope">
260
           <div>{{ scope.row.execution_state == 1 ? "已执行" : "未执行" }}</div>
260
           <div>{{ scope.row.execution_state == 1 ? "已执行" : "未执行" }}</div>
261
         </template>
261
         </template>

+ 13 - 13
src/xt_permission.js View File

12
 
12
 
13
 router.beforeEach((to, from, next) => {
13
 router.beforeEach((to, from, next) => {
14
   // 线上注释
14
   // 线上注释
15
-  if (!store.getters.configlist || store.getters.configlist === undefined || store.getters.configlist.length <= 0) {
16
-    store.dispatch('VerifyConfigList', []).then(() => {
17
-      next()
18
-    })
19
-  }
20
-  if (store.getters.permission_routers === undefined) {
21
-    store.dispatch('xt_GenerateRoutes', []).then(() => {
22
-      next()
23
-    })
24
-  } else {
25
-    next()
26
-  }
27
-  return
15
+  // if (!store.getters.configlist || store.getters.configlist === undefined || store.getters.configlist.length <= 0) {
16
+  //   store.dispatch('VerifyConfigList', []).then(() => {
17
+  //     next()
18
+  //   })
19
+  // }
20
+  // if (store.getters.permission_routers === undefined) {
21
+  //   store.dispatch('xt_GenerateRoutes', []).then(() => {
22
+  //     next()
23
+  //   })
24
+  // } else {
25
+  //   next()
26
+  // }
27
+  // return
28
   // 线上注释
28
   // 线上注释
29
   NProgress.start()
29
   NProgress.start()
30
   // console.log(store.getters.current_role_urls.indexOf(to.path))
30
   // console.log(store.getters.current_role_urls.indexOf(to.path))