浏览代码

1. 优化

MONSTER-ygh 11 月之前
父节点
当前提交
073c87b10b
共有 2 个文件被更改,包括 16 次插入3 次删除
  1. 10 2
      src/views/distribution/recordMr/dialog/details.vue
  2. 6 1
      src/views/statisticalReport/channelSales.vue

+ 10 - 2
src/views/distribution/recordMr/dialog/details.vue

@@ -50,9 +50,17 @@
         <el-col :span="12">
           <div class="grid-content bg-purple item-class">购票数量: <span>{{ form.viewerNum || '' }}</span></div>
         </el-col>
-        <el-col :span="12">
+        <!-- <el-col :span="12">
           <div class="grid-content bg-purple item-class">支付总额: <span>¥{{ form.orderPrice || '' }}</span></div>
-        </el-col>
+        </el-col> -->
+        <el-col :span="12">
+            <div class="grid-content bg-purple item-class">应收金额: <span>¥{{ form.orderPrice || form.orderPrice == 0 ?
+              form.orderPrice : '' }}</span></div>
+          </el-col>
+          <el-col :span="12">
+            <div class="grid-content bg-purple item-class">实收金额: <span>¥{{ form.realPrice || form.realPrice == 0 ?
+              form.realPrice : '' }}</span></div>
+          </el-col>
         <el-col :span="12">
           <div class="grid-content bg-purple item-class">下单时间: <span>{{ form.createTime || '' }}</span></div>
         </el-col>

+ 6 - 1
src/views/statisticalReport/channelSales.vue

@@ -188,6 +188,8 @@
             this.loading = false;
           }
         ).catch(response => {
+          this.dataList = []
+          this.total = 0
           this.loading = false;
         });
       },
@@ -309,8 +311,11 @@
                 this.pagePerformTimeList = [].concat(data.rows);
                 if(data.rows[0]){
                   this.queryParams.timeId = data.rows[0].id;
+                  this.getList();
+                }else {
+                  this.loading = false;
                 }
-                this.getList();
+                
             } catch (error) {
                 
             }