马宇豪
2024-01-19 f52ca56c8508f33c1dad9c7dcaaaec701c83e3e3
src/views/purchase/dailySaleReport.vue
@@ -1,6 +1,6 @@
<template>
    <div class="container">
      <div class="filter-container">
      <div class="filter-container" style="padding: 20px">
        <el-row>
          时间:&emsp;&emsp;
          <el-date-picker
@@ -11,16 +11,16 @@
            :clearable="false"
            :default-time="['00:00:00','23:59:59']">
          </el-date-picker>
            <el-button class="filter-item" style="margin-left: 10px;margin-bottom: 0" type="primary" icon="el-icon-back"
                       @click="dayForward">前一天</el-button>
            <el-button class="filter-item" style="margin-left: 10px;margin-bottom: 0" type="primary" icon="el-icon-right"
                       @click="dayBackward">后一天</el-button>
<!--            <el-button class="filter-item" style="margin-left: 10px;margin-bottom: 0" type="primary" icon="el-icon-search"-->
<!--                       @click="queryHandle"/>-->
        </el-row>
        <el-row style="padding-top: 10px">
          <el-button class="filter-item" style="margin-left: 10px;" type="primary" icon="el-icon-back"
                     @click="dayForward">前一天</el-button>
          <el-button class="filter-item" style="margin-left: 10px;" type="primary" icon="el-icon-right"
                     @click="dayBackward">后一天</el-button>
          <el-button class="filter-item" style="margin-left: 10px;" type="primary" icon="el-icon-search"
                     @click="queryHandle"/>
        </el-row>
      </div>
      <div class="table_content">
@@ -37,7 +37,7 @@
            @sort-change="sortChange">
            <el-table-column type="index" label="序号" align="center" width="50"></el-table-column>
            <el-table-column type="itemCode" label="流向码" align="center">
            <el-table-column type="itemCode" label="产品码" align="center">
              <template slot-scope="scope">
                <span>{{ scope.row.itemCode }}</span>
              </template>
@@ -69,6 +69,7 @@
          </el-table>
        </el-row>
        <br/>
        <el-row>
          <el-pagination
          v-if="recordTotal"
@@ -113,9 +114,9 @@
      this.queryDateHandle();
    },
    methods:{
      queryHandle(){
        this.getReportList();
      },
      // queryHandle(){
      //   this.getReportList();
      // },
      getReportList(){
        const _this = this;
        const params = {};
@@ -177,6 +178,7 @@
          end.setMinutes(59);
          end.setSeconds(59);
          this.dateRange = [start,end]
            this.getReportList()
        }
      },
      dayBackward(){
@@ -192,6 +194,7 @@
          end.setMinutes(59);
          end.setSeconds(59);
          this.dateRange = [start,end]
            this.getReportList()
        }
      },
      queryDateHandle(){
@@ -206,6 +209,7 @@
        this.dateRange.push(start,end);
        this.startDate = start;
        this.endDate = end;
        this.getReportList()
      },
      sortChange(param){
        this.sort = param.prop;