Browse Source

修改日报柴油汽油展示不对问题

MS-QJVSRANLTYEO\Administrator 4 years ago
parent
commit
48311c8331
1 changed files with 6 additions and 7 deletions
  1. 6 7
      Yijia-SaaS/yijia-ui/src/views/dataSource/dayReport.vue

+ 6 - 7
Yijia-SaaS/yijia-ui/src/views/dataSource/dayReport.vue

@@ -44,15 +44,14 @@
           </el-col>
           <el-col :xs="12" :sm="12" :lg="6">
             <div class="flex xiaoliang">
-              <div style="line-height: 62px;font-size: 44px;">{{ form.cyamt}}元</div>
-              <div style="font-size: 28px;">油</div>
+              <div style="line-height: 62px;font-size: 44px;">{{ form.qyamt }}元</div>
+              <div style="font-size: 28px;">油</div>
             </div>
           </el-col>
-
           <el-col :xs="12" :sm="12" :lg="6">
             <div class="flex xiaoliang">
-              <div style="line-height: 62px;font-size: 44px;">{{ form.qyamt }}元</div>
-              <div style="font-size: 28px;">油</div>
+              <div style="line-height: 62px;font-size: 44px;">{{ form.cyamt}}元</div>
+              <div style="font-size: 28px;">油</div>
             </div>
           </el-col>
         </el-row>
@@ -479,9 +478,9 @@ export default {
       listOilType(this.queryParams).then(response => {
         if(response.hasOwnProperty('rows')){
           for (let i in response.rows) {
-            if (response.rows[i].oilType === "1") {
+            if (response.rows[i].oilType === "2") {
               this.form.qyamt = response.rows[i].amt;
-            } else if (response.rows[i].oilType === "2") {
+            } else if (response.rows[i].oilType === "1") {
               this.form.cyamt = response.rows[i].amt;
             }
           }