Bladeren bron

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

XMLWAN 4 jaren geleden
bovenliggende
commit
14197e03da

+ 13 - 1
src/router/modules/dialysis.js Bestand weergeven

@@ -189,7 +189,19 @@ export default {
189 189
         import("@/xt_pages/dialysis/batch_print/batch_print_order_twelve"),
190 190
       hidden: true,
191 191
       is_menu: false,
192
-      name: "dialysis_batch_nine",
192
+      name: "dialysis_batch_twelve",
193
+      meta: {
194
+        title: "批量打印",
195
+        noCache: true
196
+      }
197
+    },
198
+    {
199
+      path: "/dialysis/print/batch/thirteen",
200
+      component: () =>
201
+        import("@/xt_pages/dialysis/batch_print/batch_print_order_thirteen"),
202
+      hidden: true,
203
+      is_menu: false,
204
+      name: "dialysis_batch_thirteen",
193 205
       meta: {
194 206
         title: "批量打印",
195 207
         noCache: true

Diff onderdrukt omdat het te groot bestand
+ 1426 - 0
src/xt_pages/dialysis/batch_print/batch_print_order_thirteen.vue


+ 12 - 0
src/xt_pages/dialysis/bloodPresssWatch.vue Bestand weergeven

@@ -140,6 +140,16 @@
140 140
           >批量打印</el-button
141 141
         >
142 142
       </template>
143
+      <template v-if="this.template_id == 13">
144
+        <el-button
145
+          size="small"
146
+          icon="el-icon-printer"
147
+          :disabled="selecting_schs.length == 0"
148
+          @click="batchPrintAction"
149
+          type="primary"
150
+          >批量打印</el-button
151
+        >
152
+      </template>
143 153
     </div>
144 154
     <div class="app-container">
145 155
       <!-- <div class="filter-container">
@@ -643,6 +653,8 @@ export default {
643 653
         this.$router.push({ path: "/dialysis/print/batch/nine" });
644 654
       } else if (this.template_id == 12) {
645 655
         this.$router.push({ path: "/dialysis/print/batch/twelve" });
656
+      } else if (this.template_id == 13) {
657
+        this.$router.push({ path: "/dialysis/print/batch/thirteen" });
646 658
       }
647 659
     },
648 660
     batchPrintActionOne: function() {

+ 28 - 2
src/xt_pages/user/inspection.vue Bestand weergeven

@@ -671,7 +671,6 @@ export default {
671 671
             var inspections = response.data.data.inspections;
672 672
             this.total = response.data.data.total;
673 673
             this.itemDate = response.data.data.date.split(" ")[0];
674
-            console.log("1111"+this.itemDate)
675 674
             this.inspections = response.data.data.inspections;
676 675
             if (inspections == null) {
677 676
               this.inspections = [];
@@ -680,28 +679,52 @@ export default {
680 679
             var inspectionsMap = {};
681 680
             this.inspectionsMap = {};
682 681
             for (var index in inspections) {
682
+              console.log(inspections[index])
683 683
               inspectionsMap[inspections[index].item_id] = inspections[index];
684
+
684 685
               this.inspectionsMap[inspections[index].item_id] =
685 686
                 inspections[index];
686 687
             }
687 688
             var items = this.project.inspection_reference;
689
+
690
+            console.log(items)
691
+            console.log(inspectionsMap)
692
+
693
+
694
+
688 695
             for (var index in items) {
696
+
689 697
               if (
690 698
                 items[index].id in inspectionsMap ||
691 699
                 items[index].item_id in inspectionsMap
692 700
               ) {
701
+
702
+
693 703
                 var item = {};
694 704
                 for (var key in items[index]) {
695 705
                   item[key] = items[index][key];
696 706
                 }
707
+                console.log(item.item_id);
708
+
697 709
                 if (item.item_id > 0) {
710
+                  console.log(item)
711
+                  console.log(items[index].item_id)
712
+                  console.log(inspectionsMap)
713
+
714
+                  console.log(inspectionsMap[parseInt(items[index].item_id)].inspect_value)
715
+
698 716
                   item.value =
699 717
                     inspectionsMap[items[index].item_id].inspect_value;
718
+
719
+
700 720
                 } else {
721
+
701 722
                   item.value = inspectionsMap[items[index].id].inspect_value;
702 723
                 }
724
+
703 725
                 item.value_direction = "";
704 726
                 if (item.range_type == 1) {
727
+
705 728
                   var value = parseFloat(item.value);
706 729
                   var range_min = parseFloat(item.range_min);
707 730
                   var range_max = parseFloat(item.range_max);
@@ -712,9 +735,12 @@ export default {
712 735
                   }
713 736
                 }
714 737
                 this.items.push(item);
738
+
715 739
               }
740
+
716 741
             }
717
-            console.log(this.items);
742
+
743
+
718 744
           }
719 745
         })
720 746
         .catch(v => {});

+ 2 - 0
src/xt_pages/workforce/appointment.vue Bestand weergeven

@@ -210,6 +210,8 @@
210 210
 
211 211
       },
212 212
       getWeekPanels() {
213
+        // this.scheduleZoneRow = []
214
+        // this.scheduleZone = []
213 215
         getWeekPanels(1).then(response => {
214 216
           if (response.data.state == 0) {
215 217
             return false