Browse Source

Merge branch '20230223_pc_vue_new_branch' of http://git.shengws.com/csx/Vue_New into 20230223_pc_vue_new_branch

test_user 2 years ago
parent
commit
8f87d63d6d

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

@@ -876,10 +876,10 @@
876 876
                             >iu</span
877 877
                           >
878 878
                           <span v-if="record.prescription.anticoagulant == 2"
879
-                            >iu</span
879
+                            >mg</span
880 880
                           >
881 881
                           <span v-if="record.prescription.anticoagulant == 1"
882
-                            >mg</span
882
+                            ></span
883 883
                           >
884 884
                         </div>
885 885
                         <div class="inline_block" style="margin-left: 20px">
@@ -920,14 +920,14 @@
920 920
                           <span v-if="record.prescription.anticoagulant == 4"
921 921
                             >mg/h</span
922 922
                           >
923
-                          <span v-if="record.prescription.anticoagulant == 3"
923
+                          <span v-if="record.prescription.anticoagulant == 3 || record.prescription.anticoagulant == 6 || record.prescription.anticoagulant == 7"
924 924
                             >iu/h</span
925 925
                           >
926 926
                           <span v-if="record.prescription.anticoagulant == 2"
927
-                            >iu/h</span
927
+                            >mg/h</span
928 928
                           >
929 929
                           <span v-if="record.prescription.anticoagulant == 1"
930
-                            >mg/h</span
930
+                            ></span
931 931
                           >
932 932
                         </div>
933 933
                         <div class="inline_block" style="margin-left: 20px">
@@ -946,14 +946,14 @@
946 946
                           <span v-if="record.prescription.anticoagulant == 4"
947 947
                             >mg</span
948 948
                           >
949
-                          <span v-if="record.prescription.anticoagulant == 3"
949
+                          <span v-if="record.prescription.anticoagulant == 3 || record.prescription.anticoagulant == 6 || record.prescription.anticoagulant == 7"
950 950
                             >iu</span
951 951
                           >
952 952
                           <span v-if="record.prescription.anticoagulant == 2"
953
-                            >iu</span
953
+                            >mg</span
954 954
                           >
955 955
                           <span v-if="record.prescription.anticoagulant == 1"
956
-                            >mg</span
956
+                            ></span
957 957
                           >
958 958
                         </div>
959 959
                         <div class="inline_block" style="margin-left: 20px">

+ 62 - 64
src/xt_pages/workforce/components/tableData.vue View File

@@ -502,10 +502,10 @@
502 502
                 @change="changePartition"
503 503
             >
504 504
               <el-option
505
-                  v-for="item in zones"
506
-                  :key="item"
507
-                  :label="item"
508
-                  :value="item"
505
+                v-for="(item, index) in zones"
506
+                :key="index"
507
+                :label="item.name"
508
+                :value="item.id"
509 509
               >
510 510
               </el-option>
511 511
             </el-select>
@@ -2337,63 +2337,62 @@ export default {
2337 2337
               type: "success",
2338 2338
               message: "修改成功!"
2339 2339
             });
2340
-            this.getSchedules()
2341
-            // var that = this;
2342
-            // var schedule = response.data.data.schedule;
2343
-            // this.scheduleZone.forEach(function(zone, index) {
2344
-            //   if (
2345
-            //     zone.zone_id == schedule.partition_id &&
2346
-            //     zone.jihao_id == schedule.bed_id
2347
-            //   ) {
2348
-            //     var weekPath = that.weekPath(
2349
-            //       schedule.schedule_week,
2350
-            //       schedule.schedule_type
2351
-            //     );
2352
-            //     if (weekPath.length == 2) {
2353
-            //       var weekPathKey = weekPath[0] + "_" + weekPath[1];
2354
-            //       that.scheduleZone[index][weekPathKey] = {
2355
-            //         schedule_id: schedule.id,
2356
-            //         mode_id: schedule.mode_id,
2357
-            //         patient_id: schedule.patient_id,
2358
-            //         patient: that.currentData.patient,
2359
-            //
2360
-            //
2361
-            //         dialysis_machine_name:schedule.dialysis_machine_name,
2362
-            //
2363
-            //         patient_contagions: that.currentData.contagions,
2364
-            //         mode_name:
2365
-            //           typeof that.modeOptions[schedule.mode_id] === "undefined"
2366
-            //             ? ""
2367
-            //             : that.modeOptions[schedule.mode_id].name
2368
-            //       };
2369
-            //
2370
-            //       that.scheduleZone[index].total += 1;
2371
-            //     }
2372
-            //   }
2373
-            //   if (
2374
-            //     zone.zone_id == that.currentData.partition_id &&
2375
-            //     zone.jihao_id == that.currentData.bed_id
2376
-            //   ) {
2377
-            //     var weekPath = that.weekPath(
2378
-            //       that.currentData.schedule_week,
2379
-            //       that.currentData.schedule_type
2380
-            //     );
2381
-            //     if (weekPath.length == 2) {
2382
-            //       var weekPathKey = weekPath[0] + "_" + weekPath[1];
2383
-            //       that.scheduleZone[index][weekPathKey] = {
2384
-            //         schedule_id: 0,
2385
-            //         mode_id: 0,
2386
-            //         patient_id: 0,
2387
-            //         patient: "",
2388
-            //         mode_name: "",
2389
-            //         dialysis_machine_name:"",
2390
-            //         patient_contagions: []
2391
-            //       };
2392
-            //
2393
-            //       that.scheduleZone[index].total -= 1;
2394
-            //     }
2395
-            //   }
2396
-            // });
2340
+            var that = this;
2341
+            var schedule = response.data.data.schedule;
2342
+            this.scheduleZone.forEach(function(zone, index) {
2343
+              if (
2344
+                zone.zone_id == schedule.partition_id &&
2345
+                zone.jihao_id == schedule.bed_id
2346
+              ) {
2347
+                var weekPath = that.weekPath(
2348
+                  schedule.schedule_week,
2349
+                  schedule.schedule_type
2350
+                );
2351
+                if (weekPath.length == 2) {
2352
+                  var weekPathKey = weekPath[0] + "_" + weekPath[1];
2353
+                  that.scheduleZone[index][weekPathKey] = {
2354
+                    schedule_id: schedule.id,
2355
+                    mode_id: schedule.mode_id,
2356
+                    patient_id: schedule.patient_id,
2357
+                    patient: that.currentData.patient,
2358
+
2359
+
2360
+                    dialysis_machine_name:schedule.dialysis_machine_name,
2361
+
2362
+                    patient_contagions: that.currentData.contagions,
2363
+                    mode_name:
2364
+                      typeof that.modeOptions[schedule.mode_id] === "undefined"
2365
+                        ? ""
2366
+                        : that.modeOptions[schedule.mode_id].name
2367
+                  };
2368
+
2369
+                  that.scheduleZone[index].total += 1;
2370
+                }
2371
+              }
2372
+              if (
2373
+                zone.zone_id == that.currentData.partition_id &&
2374
+                zone.jihao_id == that.currentData.bed_id
2375
+              ) {
2376
+                var weekPath = that.weekPath(
2377
+                  that.currentData.schedule_week,
2378
+                  that.currentData.schedule_type
2379
+                );
2380
+                if (weekPath.length == 2) {
2381
+                  var weekPathKey = weekPath[0] + "_" + weekPath[1];
2382
+                  that.scheduleZone[index][weekPathKey] = {
2383
+                    schedule_id: 0,
2384
+                    mode_id: 0,
2385
+                    patient_id: 0,
2386
+                    patient: "",
2387
+                    mode_name: "",
2388
+                    dialysis_machine_name:"",
2389
+                    patient_contagions: []
2390
+                  };
2391
+
2392
+                  that.scheduleZone[index].total -= 1;
2393
+                }
2394
+              }
2395
+            });
2397 2396
             this.$refs[formName].resetFields();
2398 2397
             this.jhDialogVisible = false;
2399 2398
           }
@@ -2517,7 +2516,7 @@ export default {
2517 2516
             this.changeSchedule.schedule_type
2518 2517
           );
2519 2518
           if (weekPath.length != 2) {
2520
-            this.$message.error('数据异常');
2519
+            this.$message.error("数据异常");
2521 2520
             return false;
2522 2521
           }
2523 2522
 
@@ -3168,6 +3167,7 @@ export default {
3168 3167
         schedule_date:  this.currentData.schedule_date,
3169 3168
         patient_id: this.currentData.patient_id,
3170 3169
       };
3170
+
3171 3171
       //进行网络请求,获取空排班机位
3172 3172
       getSmartDevices(params).then((response) => {
3173 3173
         if (response.data.state == 0) {
@@ -3186,9 +3186,7 @@ export default {
3186 3186
           // }
3187 3187
           // this.zone_names=devices[0];
3188 3188
           this.zone_name = (devices[0].zone_name)
3189
-          console.log("hhahhahah",this.zone_name)
3190 3189
           this.device_id = devices[0].id
3191
-          console.log('zone_namess的数据',this.zone_names);
3192 3190
         }
3193 3191
       });
3194 3192
 

+ 1 - 1
src/xt_pages/workforce/components/template_table.vue View File

@@ -3800,7 +3800,7 @@ export default {
3800 3800
     position: absolute;
3801 3801
     right: 0px;
3802 3802
     top: -3px;
3803
-    // visibility: hidden;
3803
+    visibility: hidden;
3804 3804
     .el-button {
3805 3805
       width: 15px;
3806 3806
       height: 15px;