Your Name 1 year ago
parent
commit
46139abb7c

+ 6 - 4
src/components/DiagCalc.vue

@@ -534,6 +534,7 @@
         this.$api.regPatientCase(params).then(res => {
           if (!res.data.code) {
             that.form = res.data.data;
+            that.form.lyl = Math.round(that.form.lyl*100)
             this.popupVisible = true;
 
           } else {
@@ -545,8 +546,8 @@
         let that = this;
         this.$api.calc_mczsjl(this.form).then(res => {
           if (res.data.code == 0) {
-            this.$set(this.form, "mczsjl", res.data.data)
-            this.mczsjl = res.data.data
+            this.mczsjl = Math.round(res.data.data*100)
+            this.$set(this.form, "mczsjl", this.mczsjl)
           }
         })
       }
@@ -561,7 +562,8 @@
           this.$api.getPatientCaseInfo({id:case_id}).then(res=>{
             this.form = res.data.data
             this.mczsjl = res.data.data.mczsjl
-            this.form.lyl = this.form.lyl*100
+            this.form.lyl = Math.round(this.form.lyl*100)
+            console.log(this.form.lyl)
           })
         }else{
           this.$api.getPatientDoingCase({
@@ -570,7 +572,7 @@
             if (res.data.code == 0 && res.data.data.id) {
               this.form = res.data.data
               this.mczsjl = res.data.data.mczsjl
-              this.form.lyl = this.form.lyl*100
+              this.form.lyl = Math.round(this.form.lyl*100)
             }
           })
         }

+ 15 - 1
src/components/PatCaseList.vue

@@ -68,7 +68,7 @@
           方案时间:{{item.ctime}}
           <mt-button type="primary" size="small" @click="showDetail(item.id)">详情</mt-button>
         </div>
-        <div class="footer" v-if="index==0">
+        <div class="footer" v-if="item.status==0">
           <div class="jbbtn" @click="add(item)">新增</div>
           <div class="jbbtn" @click="edit(item)">调整</div>
         </div>
@@ -156,6 +156,20 @@
         this.$api.getPatientCaseList(this.queryForm).then(res => {
           if (!res.data.code) {
             this.caseList = res.data.data.list
+            this.caseList.forEach((item,index)=>{
+                if(!item.ckmpro){
+                  item.ckmpro = ""
+                }
+                if(!item.ckmfreq){
+                  item.ckmfreq = ""
+                }
+                if(!item.ckzsjl){
+                  item.ckzsjl = ""
+                }
+                if(!item.bltz){
+                  item.bltz = ""
+                }
+            })
           }
         })
       },

+ 1 - 1
src/components/PatIndex.vue

@@ -77,7 +77,7 @@
                   <div class="rowfont" style="font-weight:bold;font-size:1.4rem;color:#3B4070;margin-bottom:5px;">
                     >15%
                   </div>
-                  <div class="rowfont" style="font-weight:bold;font-size:1.2rem;color:#3B4070;">适高风险活动</div>
+                  <div class="rowfont" style="font-weight:bold;font-size:1.2rem;color:#3B4070;">适高风险活动</div>
                   <div class="rowfont" style="font-weight:bold;font-size:0.8rem;color:#3B4070;">(如滑雪、滑冰、滑板等)</div>
                 </div>
               </div>

+ 9 - 0
src/components/SolutionPkLine.vue

@@ -92,6 +92,15 @@
                 // if(v==96){
                 //   return '96'
                 // }
+                // if(v==120){
+                //   return '120'
+                // }
+                // if(v==144){
+                //   return '144'
+                // }
+                // if(v==168){
+                //   return '168'
+                // }
 
                 if(v%24==0){
                   return v