Browse Source

收益显示

pzc 4 years ago
parent
commit
7c0695aeba

+ 4 - 2
src/views/doctor/MyProfit/MyProfitIndex.vue

@@ -401,7 +401,8 @@
         this.onshow = show;
       },
       getPrice(val) {
-        return (val / 100).toFixed(2);
+        let valout = isNaN(val) || val ==0 ? 0: (val / 100).toFixed(2);
+        return valout;
       },
       getCaption(obj) {
         var index = obj.lastIndexOf("年");
@@ -495,8 +496,9 @@
             this.ProfitList = this.UserData.dailyProfitList.reverse();
             //数据处理
           } else {
-            this.$toast(res.data.ResultMsg);
+            this.$toast(res.data.message);
           }
+          console.log(this.UserData);
         });
       },
       //过滤时间选取月份

+ 1 - 1
src/views/doctor/MyProfit/bill.vue

@@ -226,7 +226,7 @@ export default {
           }
           this.page.pageIndex++;
         } else {
-          this.$toast(res.data.ResultMsg);
+          this.$toast(res.data.message);
         }
       });
 

+ 3 - 3
src/views/doctor/MyProfit/profitInfo.vue

@@ -47,14 +47,14 @@
             <dd>1</dd>
           </li>
 
-            <li v-if=" UserData.type==3">
+          <li v-if=" UserData.type==3">
             <dd></dd>
             <dd>{{UserData.interrogatorName}}</dd>
             <dd>{{UserData.price | getPrice}}</dd>
             <dd>1</dd>
           </li>
 
-            <li v-if=" UserData.type==4">
+          <li v-if=" UserData.type==4">
             <dd></dd>
             <dd>{{UserData.interrogatorName}}</dd>
             <dd>{{UserData.price | getPrice}}</dd>
@@ -130,7 +130,7 @@ export default {
           // console.log(this.DrugsJson);
           // console.log(this.UserData);
         } else {
-          this.$toast(res.data.ResultMsg);
+          this.$toast(res.data.message);
         }
       });
     }