Procházet zdrojové kódy

统计配置开发

XMLWAN před 4 roky
rodič
revize
c906317130

+ 13 - 12
src/xt_pages/data/prescription.vue Zobrazit soubor

@@ -813,7 +813,6 @@ export default {
813 813
       row.index = rowIndex;
814 814
     },
815 815
     onRowClicks(row, event, column) {
816
-      console.log("row------", row.id);
817 816
       this.current_select = row.id;
818 817
       this.mode_name = row.name;
819 818
       this.isEdit = false;
@@ -883,13 +882,19 @@ export default {
883 882
       );
884 883
 
885 884
       getSystemPrescription(params).then(response => {
885
+        
886 886
         if (response.data.state == 0) {
887 887
           this.$message.error(response.data.msg);
888 888
           return false;
889 889
         } else {
890
-          if (response.data.data.prescription.id > 0) {
891
-            for (const key in response.data.data.prescription) {
892
-              this.addPlan[key] = response.data.data.prescription[key];
890
+           var prescription =  response.data.data.prescription
891
+           if(prescription.anticoagulant == 3){
892
+              prescription.anticoagulant = "低分子肝素"
893
+           }
894
+          if (prescription.id > 0) {
895
+            
896
+            for (const key in prescription) {
897
+              this.addPlan[key] = prescription[key];
893 898
             }
894 899
 
895 900
             this.dialysisTimeShow = new Date(
@@ -922,6 +927,8 @@ export default {
922 927
           return false;
923 928
         } else {
924 929
           this.system_prescription = response.data.data.prescriptions;
930
+          console.log("为什么",this.system_prescription)
931
+          
925 932
           for (let i = 0; i < this.system_prescription.length; i++) {
926 933
             if (this.system_prescription[i].mode == 1) {
927 934
               this.isEdit = true;
@@ -931,12 +938,6 @@ export default {
931 938
       });
932 939
     },
933 940
     selectnDialysisTime(val) {
934
-      console.log(val);
935
-
936
-      console.log(this.addPlan.dialysis_duration);
937
-      console.log(this.addPlan.dialysis_duration_hour);
938
-      console.log(this.addPlan.dialysis_duration_minute);
939
-
940 941
       var valTime = val.split(":");
941 942
       this.addPlan.dialysis_duration =
942 943
         parseFloat(valTime[0]) + parseFloat((valTime[1] / 60).toFixed(2));
@@ -945,7 +946,7 @@ export default {
945 946
     },
946 947
     changeThisAnticoagulant() {
947 948
       var thismode = parseInt(this.addPlan.anticoagulant);
948
-      console.log("------", thismode);
949
+     
949 950
       if (isNaN(thismode) || thismode <= 0) {
950 951
         return false;
951 952
       }
@@ -974,6 +975,7 @@ export default {
974 975
             this.isEdit = true;
975 976
             this.system_prescription = [];
976 977
             this.system_prescription = response.data.data.prescriptions;
978
+            console.log("触发了吗",this.system_prescription)
977 979
             this.addPlan.id = response.data.data.prescription.id;
978 980
             return false;
979 981
           }
@@ -1019,7 +1021,6 @@ export default {
1019 1021
     this.addPlan.mode = 1;
1020 1022
     this.getAllSystemPrescription();
1021 1023
     this.getSystemPrescription(this.addPlan.mode);
1022
-    console.log("抗凝剂",this.addPlan.anticoagulan)
1023 1024
   },
1024 1025
   watch: {
1025 1026
     "addPlan.dialysis_duration": function() {

+ 4 - 1
src/xt_pages/qcd/basicInformationAnalysis.vue Zobrazit soubor

@@ -58,7 +58,7 @@
58 58
             
59 59
               <div class="borderBox">
60 60
                <div v-for="(item,index) in modetype" :key="index">
61
-                <p>{{item.mode_id}}:64次(64%)</p>
61
+                <p>{{item.mode_id}}:{{getTotalCount(item.mode_id)}}次(64%)</p>
62 62
                 <el-progress :percentage="70"></el-progress>
63 63
                </div>
64 64
               </div>
@@ -254,6 +254,9 @@ export default {
254 254
            
255 255
          }
256 256
       })
257
+    },
258
+    getTotalCount(id){
259
+      console.log("id",id)
257 260
     }
258 261
   },
259 262
   created() {