Przeglądaj źródła

统计配置开发

XMLWAN 4 lat temu
rodzic
commit
c906317130

+ 13 - 12
src/xt_pages/data/prescription.vue Wyświetl plik

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

+ 4 - 1
src/xt_pages/qcd/basicInformationAnalysis.vue Wyświetl plik

58
             
58
             
59
               <div class="borderBox">
59
               <div class="borderBox">
60
                <div v-for="(item,index) in modetype" :key="index">
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
                 <el-progress :percentage="70"></el-progress>
62
                 <el-progress :percentage="70"></el-progress>
63
                </div>
63
                </div>
64
               </div>
64
               </div>
254
            
254
            
255
          }
255
          }
256
       })
256
       })
257
+    },
258
+    getTotalCount(id){
259
+      console.log("id",id)
257
     }
260
     }
258
   },
261
   },
259
   created() {
262
   created() {