فهرست منبع

新增统计报表

gcz 11 ماه پیش
والد
کامیت
4160877d21

+ 73 - 0
src/api/statisticalReport/statistics.js

@@ -19,3 +19,76 @@ export function downTimeCountListXls(params) {
   });
 }
 
+// 渠道订单销售统计
+export const channelOrderCount = (query) => {
+  return request({
+    url: '/order/financeReport/channelSaleOrderCount',
+    method: 'get',
+    params: query
+  })
+}
+// 渠道订单销售统计导出
+export function downChannelOrderListXls(params) {
+  return request({
+    url: '/order/financeReport/channelSaleOrderCount',
+    method: 'get',
+    responseType: 'blob',
+    params
+  });
+}
+
+// 分销商订单统计
+export const distributorOrderCount = (query) => {
+  return request({
+    url: '/member/marketPersons/withdrawStat',
+    method: 'get',
+    params: query
+  })
+}
+// 渠道订单销售统计导出
+export function downDistributorOrderListXls(params) {
+  return request({
+    url: '/member/marketPersons/withdrawStatExcel',
+    method: 'get',
+    responseType: 'blob',
+    params
+  });
+}
+
+// 产品销售统计
+export const productOrderCount = (query) => {
+  return request({
+    url: '/order/orderInfo/statisList',
+    method: 'get',
+    params: query
+  })
+}
+// 渠道订单销售统计导出
+export function downProductOrderListXls(params) {
+  return request({
+    url: '/order/orderInfo/statisExport',
+    method: 'get',
+    responseType: 'blob',
+    params
+  });
+}
+
+// 团队订单销售统计
+export const teamOrderCount = (query) => {
+  return request({
+    url: '/order/orderInfo/statisTeamList',
+    method: 'get',
+    params: query
+  })
+}
+// 渠道订单销售统计导出
+export function downTeamOrderListXls(params) {
+  return request({
+    url: '/order/orderInfo/statisTeamExport',
+    method: 'get',
+    responseType: 'blob',
+    params
+  });
+}
+
+

+ 339 - 0
src/views/statisticalReport/channelSales.vue

@@ -0,0 +1,339 @@
+<template>
+    <div class="app-container">
+      <el-form :model="queryParams" ref="queryForm" size="small" :inline="true" v-show="showSearch" label-width="40px">
+        <!-- <el-form-item label="演出厅" prop="auditoriumId" label-width="70px">
+          <el-select
+            v-model="queryParams.auditoriumId"
+            placeholder="演出厅"
+            clearable
+            style="width: 100%"
+            @change="pagePerformTimeListFun(selectTime)"
+          >
+            <el-option
+              v-for="dict in merchantTheatreAuditoriumListS"
+              :key="dict.id"
+              :label="dict.name"
+              :value="dict.id"
+            />
+          </el-select>
+        </el-form-item> -->
+        <el-form-item label="场次日期" :required="true" label-width="85px">
+          <el-date-picker
+            style="width: 230px;"
+            v-model="selectTime"
+            type="daterange"
+            @change="pagePerformTimeListFun"
+            value-format="yyyy-MM-dd"
+            placeholder="日期">
+          </el-date-picker>
+        </el-form-item>
+        <el-form-item label="场次" v-if="!multiPerformDate" :required="!multiPerformDate" label-width="55px">
+        <el-select
+          v-model="queryParams.timeId"
+          placeholder="场次"
+          clearable
+          style="width: 100%"
+        >
+          <el-option
+            v-for="dict in pagePerformTimeList"
+            :key="dict.id"
+            :label="dict.timeSnapshot+'('+dict.performTimeStart+'-'+dict.performTimeEnd+')'"
+            :value="dict.id"
+          />
+        </el-select>
+      </el-form-item>
+        <el-form-item>
+          <el-button type="primary" icon="el-icon-search" size="mini" @click="handleQuery">搜索</el-button>
+          <el-button icon="el-icon-refresh" size="mini" @click="resetQuery">重置</el-button>
+        </el-form-item>
+      </el-form>
+      <el-row :gutter="10" class="mb8"  style="margin-left: 0; margin-top: 10px">
+        <el-button
+          type="primary"
+          size="mini"
+          icon="el-icon-download"
+          :disabled="dataList.length === 0"
+          v-hasPermi="['session:session:downloadExcel']"
+          @click="handleExport"
+          v-loading.fullscreen.lock="handleExportLoading"
+          element-loading-text="正在拼命生成数据中..."
+          element-loading-spinner="el-icon-loading"
+          element-loading-background="rgba(0, 0, 0, 0.5)"
+        >导出excel</el-button>
+        <right-toolbar :showSearch.sync="showSearch" @queryTable="getList"></right-toolbar>
+      </el-row>
+  
+      <el-table ref="tables" v-loading="loading" :data="dataList" border>
+        <el-table-column label="序号" align="center" type="index" width="60"></el-table-column>
+        <!-- <el-table-column label="场次日期" align="center">
+          <template slot-scope="scope">
+            <span>{{ scope.row.performDate }}</span>
+          </template>
+        </el-table-column> -->
+        <el-table-column label="渠道名称" align="center" prop="channelName" />
+        <el-table-column label="订单数(笔)" align="center">
+          <template slot-scope="scope">
+            <span>{{ scope.row.ordersTotal }}</span>
+          </template>
+        </el-table-column>
+        <el-table-column label="应收总额(元)" align="center">
+          <template slot-scope="scope">
+            <span>{{ scope.row.receivablePriceTotal }}</span>
+          </template>
+        </el-table-column>
+        <el-table-column label="实收总额(元)" align="center">
+          <template slot-scope="scope">
+            <span>{{ scope.row.practicalPriceTotal }}</span>
+          </template>
+        </el-table-column>
+        <el-table-column label="己售票数(张)" align="center">
+          <template slot-scope="scope">
+            <span>{{ scope.row.saleTotal }}</span>
+          </template>
+        </el-table-column>
+        <el-table-column label="核销票数(张)" align="center">
+          <template slot-scope="scope">
+            <span>{{ scope.row.usedTotal }}</span>
+          </template>
+        </el-table-column>
+        <el-table-column label="未核销票数(张)" align="center" prop="unUsedTotal" />
+        <el-table-column label="退票数(张)" align="center" prop="refundTotal" />
+        <el-table-column label="退票金额(元)" align="center" prop="refundPriceTotal" />
+      </el-table>
+  
+      <!-- <pagination
+        v-show="total>0"
+        :total="total"
+        :page.sync="queryParams.pageNum"
+        :limit.sync="queryParams.pageSize"
+        @pagination="getList"
+      /> -->
+  
+    </div>
+  </template>
+  
+  <script>
+  import {merchantTheatreAuditoriumList} from '@/api/windowTicketSales/ticketingSales'
+  import { channelOrderCount, downChannelOrderListXls } from '@/api/statisticalReport/statistics'
+  import { exportExcel } from '@/utils/exportexcel'
+  import { seatPricePageList } from '@/api/distribution/ticketMr'
+  import { pagePerformTimeList } from "@/api/schedulingMr/schedulingMr"
+  import moment from "moment"
+  export default {
+    name: "agreement",
+    dicts: ['agreement_type'],
+    data() {
+      return {
+        // 遮罩层
+        loading: true,
+        // 选中数组
+        ids: [],
+        // 非单个禁用
+        single: true,
+        // 非多个禁用
+        multiple: true,
+        // 显示搜索条件
+        showSearch: true,
+        // 总条数
+        total: 0,
+        // 用户表格数据
+        dataList: [],
+        // 弹出层标题
+        title: "",
+  
+        // 是否显示弹出层
+        open: false,
+        // 日期范围
+        dateRange: [],
+        // 查询参数
+        queryParams: {
+          auditoriumId:'',
+          // pageNum: 1,
+          // pageSize: 10,
+        },
+        visibleStatus: false,
+        newObj: {},
+        visibleType: '',
+        handleExportLoading: false,
+        tableData: {},
+        ticketList: [],
+        seatList: [],
+        multiPerformDate:false,
+        pagePerformTimeList: [], // 场次列表
+        selectTime:'',
+        merchantTheatreAuditoriumListS: [],//演出厅
+      };
+    },
+    created() {
+      // this.$set(this.queryParams,'time',moment().format("yyyy-MM-DD"))
+      // this.merchantTheatreAuditoriumListFun();//演出厅
+      this.$set(this,'selectTime',[moment().format("yyyy-MM-DD"),moment().format("yyyy-MM-DD")]);
+      this.pagePerformTimeListFun(this.selectTime)
+      // this.getList();
+      // this.ticketListApi();
+    },
+    methods: {
+      /** 查询列表 */
+      getList() {
+        this.loading = true;
+        if(this.selectTime){
+          this.queryParams.beginDate = this.selectTime[0];
+          this.queryParams.endDate = this.selectTime[1];
+        }
+        // channelOrderCount(this.addDateRange(this.queryParams, this.dateRange))
+        channelOrderCount(this.queryParams)
+        .then(response => {
+            this.dataList = response.data;
+            this.total = response.data.total;
+            this.loading = false;
+          }
+        ).catch(response => {
+          this.loading = false;
+        });
+      },
+      /** 票务列表查询 */
+      ticketListApi() {
+        this.ticketList = []
+        seatPricePageList(this.addDateRange({pageNum: 1, pageSize: 100}))
+          .then(response => {
+            let ticketItemList = []
+            response.data.rows.forEach(item => {
+              if(ticketItemList.indexOf(item.goodsId) == -1){
+                this.ticketList.push(item);
+                ticketItemList.push(item.goodsId);
+              }
+            })
+          });
+      },
+      /** 座位类型列表 */
+      getSeatTypeList(obj) {
+        seatPricePageList(this.addDateRange({pageNum: 1, pageSize: 100, goodsId: obj.goodsId}))
+          .then(response => {
+            let ticketList = []
+            response.data.rows.forEach(item => {
+              if(ticketList.indexOf(item.seatTypeId) == -1){
+                this.seatList.push(item);
+                ticketList.push(item.seatTypeId);
+              }
+            })
+          });
+      },
+      // 取消按钮
+      cancel() {
+        this.open = false;
+      },
+      // 票务改变事件
+      goodsChangeEven() {
+        this.seatList = [];
+        this.$set(this.queryParams, 'seatTypeId', '');
+        let selectMap = {goodsId: this.queryParams.goodsId}
+        this.getSeatTypeList(selectMap);
+      },
+      /** 搜索按钮操作 */
+      handleQuery() {
+        // this.queryParams.pageNum = 1;
+        this.getList();
+      },
+      /** 重置按钮操作 */
+      resetQuery() {
+        this.dateRange = [];
+        this.seatList = [];
+        this.$set(this.queryParams, 'time', '');
+        this.$set(this, 'selectTime', '');
+        this.$set(this.queryParams, 'auditoriumId', '');
+        this.$set(this.queryParams, 'beginDate', '');
+        this.$set(this.queryParams, 'endDate', '');
+        this.$set(this.queryParams, 'goodsId', '');
+        this.$set(this.queryParams, 'seatTypeId', '');
+        this.$set(this.queryParams, 'timeId', '');
+        // this.queryParams.pageNum = 1;
+        this.multiPerformDate = false;
+
+        //必须要有默认值
+        this.$set(this,'selectTime',[moment().format("yyyy-MM-DD"),moment().format("yyyy-MM-DD")]);
+        this.pagePerformTimeListFun(this.selectTime)
+        // this.handleQuery();
+      },
+      /**
+       * 导出报表
+       * @date 2022-10-24
+       * @returns {any}
+       */
+      handleExport() {
+        this.$confirm('您确定要导出当前查询的数据吗?', '提示', {
+          confirmButtonText: '确定 ',
+          cancelButtonText: '取消 ',
+          type: 'warning'
+        })
+          .then(() => {
+            this.handleExportLoading = true;
+            // const { pageNum, pageSize} = this.params;
+            let postMap = {}
+            for (let key in this.queryParams) {
+              if(key != 'pageNum' && key != 'pageSize'){
+                postMap[key] = this.queryParams[key]
+              }
+            }
+            downChannelOrderListXls(postMap)
+              .then((res) => {
+                exportExcel(res, '渠道订单销售统计', '.xlsx');
+                this.handleExportLoading = false;
+              })
+              .catch(() => {
+                this.handleExportLoading = false;
+              });
+          })
+          .catch(() => {
+            this.$message.info('您已取消导出!');
+          });
+      },
+      async pagePerformTimeListFun(value) {
+            console.log('value',value);
+            try {
+                this.pagePerformTimeList = []
+                this.$set(this.queryParams,'timeId',null)
+                if(!value){
+                return
+                }
+                if(value.length==2&&value[0]==value[1]){
+                this.multiPerformDate = false
+                }else{
+                this.multiPerformDate = true
+                return
+                }
+                let { data,code } = await pagePerformTimeList({
+                performDate: value[0],
+                pageNum: 1,
+                pageSize: 999
+                })
+                this.pagePerformTimeList = [].concat(data.rows);
+                if(data.rows[0]){
+                  this.queryParams.timeId = data.rows[0].id;
+                  this.getList();
+                }
+            } catch (error) {
+                
+            }
+        },
+        /**  获取演出厅  */
+        async merchantTheatreAuditoriumListFun(){
+            try {
+                let res = await merchantTheatreAuditoriumList({
+                    pageNum: 1,
+                    pageSize: 999
+                })
+                if(res.code == 200){
+                    this.merchantTheatreAuditoriumListS = res.data.rows
+                    if(this.merchantTheatreAuditoriumListS.length>0){
+                        this.$set(this.queryParams,'auditoriumId',this.merchantTheatreAuditoriumListS[0].id)
+                        this.pagePerformTimeListFun(this.selectTime)
+                    }
+                }
+            } catch (error) {
+                
+            }
+        },
+    }
+  };
+  </script>
+  

+ 328 - 0
src/views/statisticalReport/distributor.vue

@@ -0,0 +1,328 @@
+<!--
+ * @Description: 
+ * @Author: gcz
+ * @Date: 2024-04-23 10:30:35
+ * @LastEditors: gcz
+ * @LastEditTime: 2024-04-29 13:45:23
+ * @FilePath: \great_webui\src\views\statisticalReport\distributor.vue
+ * @Copyright: Copyright (c) 2016~2024 by gcz, All Rights Reserved. 
+-->
+<template>
+    <div class="app-container">
+      <el-form :model="queryParams" ref="queryForm" size="small" :inline="true" v-show="showSearch" label-width="40px">
+        <!-- <el-form-item label="演出厅" prop="auditoriumId" label-width="70px">
+          <el-select
+            v-model="queryParams.auditoriumId"
+            placeholder="演出厅"
+            clearable
+            style="width: 100%"
+            @change="pagePerformTimeListFun(selectTime)"
+          >
+            <el-option
+              v-for="dict in merchantTheatreAuditoriumListS"
+              :key="dict.id"
+              :label="dict.name"
+              :value="dict.id"
+            />
+          </el-select>
+        </el-form-item> -->
+        <el-form-item label="场次日期" :required="true" label-width="85px">
+          <el-date-picker
+            style="width: 230px;"
+            v-model="selectTime"
+            type="daterange"
+            @change="pagePerformTimeListFun"
+            value-format="yyyy-MM-dd"
+            placeholder="日期">
+          </el-date-picker>
+        </el-form-item>
+        <el-form-item label="场次" v-if="!multiPerformDate" :required="!multiPerformDate" label-width="55px">
+        <el-select
+          v-model="queryParams.performTimeId"
+          placeholder="场次"
+          clearable
+          style="width: 100%"
+        >
+          <el-option
+            v-for="dict in pagePerformTimeList"
+            :key="dict.id"
+            :label="dict.timeSnapshot+'('+dict.performTimeStart+'-'+dict.performTimeEnd+')'"
+            :value="dict.id"
+          />
+        </el-select>
+      </el-form-item>
+        <el-form-item>
+          <el-button type="primary" icon="el-icon-search" size="mini" @click="handleQuery">搜索</el-button>
+          <el-button icon="el-icon-refresh" size="mini" @click="resetQuery">重置</el-button>
+        </el-form-item>
+      </el-form>
+      <el-row :gutter="10" class="mb8"  style="margin-left: 0; margin-top: 10px">
+        <el-button
+          type="primary"
+          size="mini"
+          icon="el-icon-download"
+          :disabled="dataList.length === 0"
+          v-hasPermi="['session:session:downloadExcel']"
+          @click="handleExport"
+          v-loading.fullscreen.lock="handleExportLoading"
+          element-loading-text="正在拼命生成数据中..."
+          element-loading-spinner="el-icon-loading"
+          element-loading-background="rgba(0, 0, 0, 0.5)"
+        >导出excel</el-button>
+        <right-toolbar :showSearch.sync="showSearch" @queryTable="getList"></right-toolbar>
+      </el-row>
+  
+      <el-table ref="tables" v-loading="loading" :data="dataList" border>
+        <el-table-column label="序号" align="center" type="index" width="60"></el-table-column>
+        <!-- <el-table-column label="场次日期" align="center">
+          <template slot-scope="scope">
+            <span>{{ scope.row.performDate }}</span>
+          </template>
+        </el-table-column> -->
+        <el-table-column label="分销商名称" align="center" prop="personsName" />
+        <el-table-column label="分销订单(笔)" align="center" prop="orderNum" />
+        <el-table-column label="分销订单总额(元)" align="center" prop="orderPrice" />
+        <el-table-column label="分销票数(张)" align="center" prop="retailNum" />
+        <el-table-column label="核销数量(张)" align="center" prop="usedNum" />
+        <el-table-column label="未核销数量(张)" align="center" prop="noUsedNum" />
+        <el-table-column label="佣金总额(元)" align="center" prop="brokeragePrice" />
+        <el-table-column label="获得佣金总额(元)" align="center" prop="brokeragePriceTotal" />
+        <el-table-column label="提现总额(元)" align="center" prop="withdrawPrice" />
+      </el-table>
+  
+      <pagination
+        v-show="total>0"
+        :total="total"
+        :page.sync="queryParams.pageNum"
+        :limit.sync="queryParams.pageSize"
+        @pagination="getList"
+      />
+  
+    </div>
+  </template>
+  
+  <script>
+  import {merchantTheatreAuditoriumList} from '@/api/windowTicketSales/ticketingSales'
+  import { distributorOrderCount, downDistributorOrderListXls } from '@/api/statisticalReport/statistics'
+  import { exportExcel } from '@/utils/exportexcel'
+  import { seatPricePageList } from '@/api/distribution/ticketMr'
+  import { pagePerformTimeList } from "@/api/schedulingMr/schedulingMr"
+  import moment from "moment"
+  export default {
+    name: "agreement",
+    dicts: ['agreement_type'],
+    data() {
+      return {
+        // 遮罩层
+        loading: true,
+        // 选中数组
+        ids: [],
+        // 非单个禁用
+        single: true,
+        // 非多个禁用
+        multiple: true,
+        // 显示搜索条件
+        showSearch: true,
+        // 总条数
+        total: 0,
+        // 用户表格数据
+        dataList: [],
+        // 弹出层标题
+        title: "",
+  
+        // 是否显示弹出层
+        open: false,
+        // 日期范围
+        dateRange: [],
+        // 查询参数
+        queryParams: {
+          auditoriumId:'',
+          // pageNum: 1,
+          // pageSize: 10,
+        },
+        visibleStatus: false,
+        newObj: {},
+        visibleType: '',
+        handleExportLoading: false,
+        tableData: {},
+        ticketList: [],
+        seatList: [],
+        multiPerformDate:false,
+        pagePerformTimeList: [], // 场次列表
+        selectTime:'',
+        merchantTheatreAuditoriumListS: [],//演出厅
+      };
+    },
+    created() {
+      // this.$set(this.queryParams,'time',moment().format("yyyy-MM-DD"))
+      // this.merchantTheatreAuditoriumListFun();//演出厅
+      this.$set(this,'selectTime',[moment().format("yyyy-MM-DD"),moment().format("yyyy-MM-DD")]);
+      this.pagePerformTimeListFun(this.selectTime)
+      // this.getList();
+      // this.ticketListApi();
+    },
+    methods: {
+      /** 查询列表 */
+      getList() {
+        this.loading = true;
+        if(this.selectTime){
+          this.queryParams.beginDate = this.selectTime[0];
+          this.queryParams.endDate = this.selectTime[1];
+        }
+        // distributorOrderCount(this.addDateRange(this.queryParams, this.dateRange))
+        distributorOrderCount(this.queryParams)
+        .then(response => {
+            this.dataList = response.data.rows;
+            this.total = response.data.total;
+            this.loading = false;
+          }
+        ).catch(response => {
+          this.loading = false;
+        });
+      },
+      /** 票务列表查询 */
+      ticketListApi() {
+        this.ticketList = []
+        seatPricePageList(this.addDateRange({pageNum: 1, pageSize: 100}))
+          .then(response => {
+            let ticketItemList = []
+            response.data.rows.forEach(item => {
+              if(ticketItemList.indexOf(item.goodsId) == -1){
+                this.ticketList.push(item);
+                ticketItemList.push(item.goodsId);
+              }
+            })
+          });
+      },
+      /** 座位类型列表 */
+      getSeatTypeList(obj) {
+        seatPricePageList(this.addDateRange({pageNum: 1, pageSize: 100, goodsId: obj.goodsId}))
+          .then(response => {
+            let ticketList = []
+            response.data.rows.forEach(item => {
+              if(ticketList.indexOf(item.seatTypeId) == -1){
+                this.seatList.push(item);
+                ticketList.push(item.seatTypeId);
+              }
+            })
+          });
+      },
+      // 取消按钮
+      cancel() {
+        this.open = false;
+      },
+      // 票务改变事件
+      goodsChangeEven() {
+        this.seatList = [];
+        this.$set(this.queryParams, 'seatTypeId', '');
+        let selectMap = {goodsId: this.queryParams.goodsId}
+        this.getSeatTypeList(selectMap);
+      },
+      /** 搜索按钮操作 */
+      handleQuery() {
+        // this.queryParams.pageNum = 1;
+        this.getList();
+      },
+      /** 重置按钮操作 */
+      resetQuery() {
+        this.dateRange = [];
+        this.seatList = [];
+        this.$set(this.queryParams, 'time', '');
+        this.$set(this, 'selectTime', '');
+        this.$set(this.queryParams, 'auditoriumId', '');
+        this.$set(this.queryParams, 'beginDate', '');
+        this.$set(this.queryParams, 'endDate', '');
+        this.$set(this.queryParams, 'goodsId', '');
+        this.$set(this.queryParams, 'seatTypeId', '');
+        this.$set(this.queryParams, 'performTimeId', '');
+        // this.queryParams.pageNum = 1;
+        this.multiPerformDate = false;
+
+        //必须要有默认值
+        this.$set(this,'selectTime',[moment().format("yyyy-MM-DD"),moment().format("yyyy-MM-DD")]);
+        this.pagePerformTimeListFun(this.selectTime)
+        // this.handleQuery();
+      },
+      /**
+       * 导出报表
+       * @date 2022-10-24
+       * @returns {any}
+       */
+      handleExport() {
+        this.$confirm('您确定要导出当前查询的数据吗?', '提示', {
+          confirmButtonText: '确定 ',
+          cancelButtonText: '取消 ',
+          type: 'warning'
+        })
+          .then(() => {
+            this.handleExportLoading = true;
+            // const { pageNum, pageSize} = this.params;
+            let postMap = {}
+            for (let key in this.queryParams) {
+              if(key != 'pageNum' && key != 'pageSize'){
+                postMap[key] = this.queryParams[key]
+              }
+            }
+            downDistributorOrderListXls(postMap)
+              .then((res) => {
+                exportExcel(res, '分销商订单统计', '.xlsx');
+                this.handleExportLoading = false;
+              })
+              .catch(() => {
+                this.handleExportLoading = false;
+              });
+          })
+          .catch(() => {
+            this.$message.info('您已取消导出!');
+          });
+      },
+      async pagePerformTimeListFun(value) {
+            console.log('value',value);
+            try {
+                this.pagePerformTimeList = []
+                this.$set(this.queryParams,'performTimeId',null)
+                if(!value){
+                return
+                }
+                if(value.length==2&&value[0]==value[1]){
+                this.multiPerformDate = false
+                }else{
+                this.multiPerformDate = true
+                return
+                }
+                let { data,code } = await pagePerformTimeList({
+                performDate: value[0],
+                pageNum: 1,
+                pageSize: 999
+                })
+                this.pagePerformTimeList = [].concat(data.rows);
+                if(data.rows[0]){
+                  this.queryParams.performTimeId = data.rows[0].id;
+                  this.getList();
+                }
+            } catch (error) {
+                
+            }
+        },
+        /**  获取演出厅  */
+        async merchantTheatreAuditoriumListFun(){
+            try {
+                let res = await merchantTheatreAuditoriumList({
+                    pageNum: 1,
+                    pageSize: 999
+                })
+                if(res.code == 200){
+                    this.merchantTheatreAuditoriumListS = res.data.rows
+                    if(this.merchantTheatreAuditoriumListS.length>0){
+                        this.$set(this.queryParams,'auditoriumId',this.merchantTheatreAuditoriumListS[0].id)
+                        this.pagePerformTimeListFun(this.selectTime)
+                    }
+                }
+            } catch (error) {
+                
+            }
+        },
+    }
+  };
+  </script>
+  

+ 328 - 0
src/views/statisticalReport/product.vue

@@ -0,0 +1,328 @@
+<!--
+ * @Description: 
+ * @Author: gcz
+ * @Date: 2024-04-23 10:30:35
+ * @LastEditors: gcz
+ * @LastEditTime: 2024-04-29 15:05:11
+ * @FilePath: \great_webui\src\views\statisticalReport\product.vue
+ * @Copyright: Copyright (c) 2016~2024 by gcz, All Rights Reserved. 
+-->
+<template>
+    <div class="app-container">
+      <el-form :model="queryParams" ref="queryForm" size="small" :inline="true" v-show="showSearch" label-width="40px">
+        <!-- <el-form-item label="演出厅" prop="auditoriumId" label-width="70px">
+          <el-select
+            v-model="queryParams.auditoriumId"
+            placeholder="演出厅"
+            clearable
+            style="width: 100%"
+            @change="pagePerformTimeListFun(selectTime)"
+          >
+            <el-option
+              v-for="dict in merchantTheatreAuditoriumListS"
+              :key="dict.id"
+              :label="dict.name"
+              :value="dict.id"
+            />
+          </el-select>
+        </el-form-item> -->
+        <el-form-item label="场次日期" :required="true" label-width="85px">
+          <el-date-picker
+            style="width: 230px;"
+            v-model="selectTime"
+            type="daterange"
+            @change="pagePerformTimeListFun"
+            value-format="yyyy-MM-dd"
+            placeholder="日期">
+          </el-date-picker>
+        </el-form-item>
+        <el-form-item label="场次" v-if="!multiPerformDate" :required="!multiPerformDate" label-width="55px">
+        <el-select
+          v-model="queryParams.performTimeId"
+          placeholder="场次"
+          clearable
+          style="width: 100%"
+        >
+          <el-option
+            v-for="dict in pagePerformTimeList"
+            :key="dict.id"
+            :label="dict.timeSnapshot+'('+dict.performTimeStart+'-'+dict.performTimeEnd+')'"
+            :value="dict.id"
+          />
+        </el-select>
+      </el-form-item>
+        <el-form-item>
+          <el-button type="primary" icon="el-icon-search" size="mini" @click="handleQuery">搜索</el-button>
+          <el-button icon="el-icon-refresh" size="mini" @click="resetQuery">重置</el-button>
+        </el-form-item>
+      </el-form>
+      <el-row :gutter="10" class="mb8"  style="margin-left: 0; margin-top: 10px">
+        <el-button
+          type="primary"
+          size="mini"
+          icon="el-icon-download"
+          :disabled="dataList.length === 0"
+          v-hasPermi="['session:session:downloadExcel']"
+          @click="handleExport"
+          v-loading.fullscreen.lock="handleExportLoading"
+          element-loading-text="正在拼命生成数据中..."
+          element-loading-spinner="el-icon-loading"
+          element-loading-background="rgba(0, 0, 0, 0.5)"
+        >导出excel</el-button>
+        <right-toolbar :showSearch.sync="showSearch" @queryTable="getList"></right-toolbar>
+      </el-row>
+  
+      <el-table ref="tables" v-loading="loading" :data="dataList" border>
+        <el-table-column label="序号" align="center" type="index" width="60"></el-table-column>
+        <!-- <el-table-column label="场次日期" align="center">
+          <template slot-scope="scope">
+            <span>{{ scope.row.performDate }}</span>
+          </template>
+        </el-table-column> -->
+        <el-table-column label="产品名称" align="center" prop="name" />
+        <el-table-column label="订单数(笔)" align="center" prop="orderNum" />
+        <el-table-column label="应收总额(元)" align="center" prop="price" />
+        <el-table-column label="实收总额(元)" align="center" prop="realPrice" />
+        <el-table-column label="已售票数(张)" align="center" prop="buyNum" />
+        <el-table-column label="核销票数(张)" align="center" prop="checkNum" />
+        <el-table-column label="未核销票数(张)" align="center" prop="noCheckNum" />
+        <el-table-column label="退票数(张)" align="center" prop="refundNum" />
+        <el-table-column label="退票金额(元)" align="center" prop="refundAmount" />
+      </el-table>
+  
+      <pagination
+        v-show="total>0"
+        :total="total"
+        :page.sync="queryParams.pageNum"
+        :limit.sync="queryParams.pageSize"
+        @pagination="getList"
+      />
+  
+    </div>
+  </template>
+  
+  <script>
+  import {merchantTheatreAuditoriumList} from '@/api/windowTicketSales/ticketingSales'
+  import { productOrderCount, downProductOrderListXls } from '@/api/statisticalReport/statistics'
+  import { exportExcel } from '@/utils/exportexcel'
+  import { seatPricePageList } from '@/api/distribution/ticketMr'
+  import { pagePerformTimeList } from "@/api/schedulingMr/schedulingMr"
+  import moment from "moment"
+  export default {
+    name: "agreement",
+    dicts: ['agreement_type'],
+    data() {
+      return {
+        // 遮罩层
+        loading: true,
+        // 选中数组
+        ids: [],
+        // 非单个禁用
+        single: true,
+        // 非多个禁用
+        multiple: true,
+        // 显示搜索条件
+        showSearch: true,
+        // 总条数
+        total: 0,
+        // 用户表格数据
+        dataList: [],
+        // 弹出层标题
+        title: "",
+  
+        // 是否显示弹出层
+        open: false,
+        // 日期范围
+        dateRange: [],
+        // 查询参数
+        queryParams: {
+          auditoriumId:'',
+          // pageNum: 1,
+          // pageSize: 10,
+        },
+        visibleStatus: false,
+        newObj: {},
+        visibleType: '',
+        handleExportLoading: false,
+        tableData: {},
+        ticketList: [],
+        seatList: [],
+        multiPerformDate:false,
+        pagePerformTimeList: [], // 场次列表
+        selectTime:'',
+        merchantTheatreAuditoriumListS: [],//演出厅
+      };
+    },
+    created() {
+      // this.$set(this.queryParams,'time',moment().format("yyyy-MM-DD"))
+      // this.merchantTheatreAuditoriumListFun();//演出厅
+      this.$set(this,'selectTime',[moment().format("yyyy-MM-DD"),moment().format("yyyy-MM-DD")]);
+      this.pagePerformTimeListFun(this.selectTime)
+      // this.getList();
+      // this.ticketListApi();
+    },
+    methods: {
+      /** 查询列表 */
+      getList() {
+        this.loading = true;
+        if(this.selectTime){
+          this.queryParams.performDateStart = this.selectTime[0];
+          this.queryParams.performDateEnd = this.selectTime[1];
+        }
+        // productOrderCount(this.addDateRange(this.queryParams, this.dateRange))
+        productOrderCount(this.queryParams)
+        .then(response => {
+            this.dataList = response.data.rows;
+            this.total = response.data.total;
+            this.loading = false;
+          }
+        ).catch(response => {
+          this.loading = false;
+        });
+      },
+      /** 票务列表查询 */
+      ticketListApi() {
+        this.ticketList = []
+        seatPricePageList(this.addDateRange({pageNum: 1, pageSize: 100}))
+          .then(response => {
+            let ticketItemList = []
+            response.data.rows.forEach(item => {
+              if(ticketItemList.indexOf(item.goodsId) == -1){
+                this.ticketList.push(item);
+                ticketItemList.push(item.goodsId);
+              }
+            })
+          });
+      },
+      /** 座位类型列表 */
+      getSeatTypeList(obj) {
+        seatPricePageList(this.addDateRange({pageNum: 1, pageSize: 100, goodsId: obj.goodsId}))
+          .then(response => {
+            let ticketList = []
+            response.data.rows.forEach(item => {
+              if(ticketList.indexOf(item.seatTypeId) == -1){
+                this.seatList.push(item);
+                ticketList.push(item.seatTypeId);
+              }
+            })
+          });
+      },
+      // 取消按钮
+      cancel() {
+        this.open = false;
+      },
+      // 票务改变事件
+      goodsChangeEven() {
+        this.seatList = [];
+        this.$set(this.queryParams, 'seatTypeId', '');
+        let selectMap = {goodsId: this.queryParams.goodsId}
+        this.getSeatTypeList(selectMap);
+      },
+      /** 搜索按钮操作 */
+      handleQuery() {
+        // this.queryParams.pageNum = 1;
+        this.getList();
+      },
+      /** 重置按钮操作 */
+      resetQuery() {
+        this.dateRange = [];
+        this.seatList = [];
+        this.$set(this.queryParams, 'time', '');
+        this.$set(this, 'selectTime', '');
+        this.$set(this.queryParams, 'auditoriumId', '');
+        this.$set(this.queryParams, 'performDateStart', '');
+        this.$set(this.queryParams, 'performDateEnd', '');
+        this.$set(this.queryParams, 'goodsId', '');
+        this.$set(this.queryParams, 'seatTypeId', '');
+        this.$set(this.queryParams, 'performTimeId', '');
+        // this.queryParams.pageNum = 1;
+        this.multiPerformDate = false;
+
+        //必须要有默认值
+        this.$set(this,'selectTime',[moment().format("yyyy-MM-DD"),moment().format("yyyy-MM-DD")]);
+        this.pagePerformTimeListFun(this.selectTime)
+        // this.handleQuery();
+      },
+      /**
+       * 导出报表
+       * @date 2022-10-24
+       * @returns {any}
+       */
+      handleExport() {
+        this.$confirm('您确定要导出当前查询的数据吗?', '提示', {
+          confirmButtonText: '确定 ',
+          cancelButtonText: '取消 ',
+          type: 'warning'
+        })
+          .then(() => {
+            this.handleExportLoading = true;
+            // const { pageNum, pageSize} = this.params;
+            let postMap = {}
+            for (let key in this.queryParams) {
+              if(key != 'pageNum' && key != 'pageSize'){
+                postMap[key] = this.queryParams[key]
+              }
+            }
+            downProductOrderListXls(postMap)
+              .then((res) => {
+                exportExcel(res, '产品销售统计', '.xlsx');
+                this.handleExportLoading = false;
+              })
+              .catch(() => {
+                this.handleExportLoading = false;
+              });
+          })
+          .catch(() => {
+            this.$message.info('您已取消导出!');
+          });
+      },
+      async pagePerformTimeListFun(value) {
+            console.log('value',value);
+            try {
+                this.pagePerformTimeList = []
+                this.$set(this.queryParams,'performTimeId',null)
+                if(!value){
+                return
+                }
+                if(value.length==2&&value[0]==value[1]){
+                this.multiPerformDate = false
+                }else{
+                this.multiPerformDate = true
+                return
+                }
+                let { data,code } = await pagePerformTimeList({
+                performDate: value[0],
+                pageNum: 1,
+                pageSize: 999
+                })
+                this.pagePerformTimeList = [].concat(data.rows);
+                if(data.rows[0]){
+                  this.queryParams.performTimeId = data.rows[0].id;
+                  this.getList();
+                }
+            } catch (error) {
+                
+            }
+        },
+        /**  获取演出厅  */
+        async merchantTheatreAuditoriumListFun(){
+            try {
+                let res = await merchantTheatreAuditoriumList({
+                    pageNum: 1,
+                    pageSize: 999
+                })
+                if(res.code == 200){
+                    this.merchantTheatreAuditoriumListS = res.data.rows
+                    if(this.merchantTheatreAuditoriumListS.length>0){
+                        this.$set(this.queryParams,'auditoriumId',this.merchantTheatreAuditoriumListS[0].id)
+                        this.pagePerformTimeListFun(this.selectTime)
+                    }
+                }
+            } catch (error) {
+                
+            }
+        },
+    }
+  };
+  </script>
+  

+ 238 - 0
src/views/statisticalReport/singleSales.vue

@@ -0,0 +1,238 @@
+<template>
+    <div class="app-container">
+      <el-form :model="queryParams" ref="queryForm" size="small" :inline="true" v-show="showSearch" label-width="40px">
+        <el-form-item label="日期">
+          <el-date-picker
+            v-model="queryParams.performStartDate"
+            type="daterange"
+            value-format="yyyy-MM-dd"
+            placeholder="日期">
+          </el-date-picker>
+        </el-form-item>
+        <el-form-item>
+          <el-button type="primary" icon="el-icon-search" size="mini" @click="handleQuery">搜索</el-button>
+          <el-button icon="el-icon-refresh" size="mini" @click="resetQuery">重置</el-button>
+        </el-form-item>
+      </el-form>
+      <el-row :gutter="10" class="mb8"  style="margin-left: 0; margin-top: 10px">
+        <el-button
+          type="primary"
+          size="mini"
+          icon="el-icon-download"
+          :disabled="dataList.length === 0"
+          v-hasPermi="['session:session:downloadExcel']"
+          @click="handleExport"
+          v-loading.fullscreen.lock="handleExportLoading"
+          element-loading-text="正在拼命生成数据中..."
+          element-loading-spinner="el-icon-loading"
+          element-loading-background="rgba(0, 0, 0, 0.5)"
+        >导出excel</el-button>
+        <right-toolbar :showSearch.sync="showSearch" @queryTable="getList"></right-toolbar>
+      </el-row>
+  
+      <el-table ref="tables" v-loading="loading" :data="dataList" border>
+        <el-table-column label="序号" align="center" type="index" width="60"></el-table-column>
+        <!-- <el-table-column label="剧目名称" align="center" prop="performName" />
+        <el-table-column label="票务名称" align="center" prop="goodsName" /> -->
+        <el-table-column label="场次日期" align="center">
+          <template slot-scope="scope">
+            <span>{{ scope.row.performDate }}</span>
+          </template>
+        </el-table-column>
+        <el-table-column label="场次" align="center">
+          <template slot-scope="scope">
+            <span>{{ scope.row.performTimeStart }} -- {{ scope.row.performTimeEnd }}</span>
+          </template>
+        </el-table-column>
+        <el-table-column label="销售量" align="center">
+          <template slot-scope="scope">
+            <span>{{ scope.row.saleTotal?scope.row.saleTotal+'张' : '-' }}</span>
+          </template>
+        </el-table-column>
+        <el-table-column label="核销量" align="center">
+          <template slot-scope="scope">
+            <span>{{ scope.row.usedTotal?scope.row.usedTotal+'张' : '-' }}</span>
+          </template>
+        </el-table-column>
+        <el-table-column label="核销率" align="center">
+          <template slot-scope="scope">
+            <span>{{ scope.row.usedRate?scope.row.usedRate+'%' : '-' }}</span>
+          </template>
+        </el-table-column>
+        <el-table-column label="核销上座率" align="center">
+          <template slot-scope="scope">
+            <span>{{ scope.row.occupancyRate?scope.row.occupancyRate+'%' : '-' }}</span>
+          </template>
+        </el-table-column>
+      </el-table>
+  
+      <pagination
+        v-show="total>0"
+        :total="total"
+        :page.sync="queryParams.pageNum"
+        :limit.sync="queryParams.pageSize"
+        @pagination="getList"
+      />
+  
+    </div>
+  </template>
+  
+  <script>
+  
+  import { performTimeCount, downTimeCountListXls } from '@/api/statisticalReport/statistics'
+  import { exportExcel } from '@/utils/exportexcel'
+  import { seatPricePageList } from '@/api/distribution/ticketMr'
+  import moment from "moment"
+  export default {
+    name: "agreement",
+    dicts: ['agreement_type'],
+    data() {
+      return {
+        // 遮罩层
+        loading: true,
+        // 选中数组
+        ids: [],
+        // 非单个禁用
+        single: true,
+        // 非多个禁用
+        multiple: true,
+        // 显示搜索条件
+        showSearch: true,
+        // 总条数
+        total: 0,
+        // 用户表格数据
+        dataList: [],
+        // 弹出层标题
+        title: "",
+  
+        // 是否显示弹出层
+        open: false,
+        // 日期范围
+        dateRange: [],
+        // 查询参数
+        queryParams: {
+          pageNum: 1,
+          pageSize: 10,
+        },
+        visibleStatus: false,
+        newObj: {},
+        visibleType: '',
+        handleExportLoading: false,
+        tableData: {},
+        ticketList: [],
+        seatList: [],
+      };
+    },
+    created() {
+      this.$set(this.queryParams,'performStartDate',moment().format("yyyy-MM-DD"))
+      this.getList();
+      this.ticketListApi();
+    },
+    methods: {
+      /** 查询列表 */
+      getList() {
+        this.loading = true;
+        if(this.queryParams.time){
+          this.queryParams.performStartDate = this.queryParams.time[0];
+          this.queryParams.performEndDate = this.queryParams.time[1];
+        }
+        performTimeCount(this.addDateRange(this.queryParams, this.dateRange))
+        .then(response => {
+            this.dataList = response.data.rows;
+            this.total = response.data.total;
+            this.loading = false;
+          }
+        );
+      },
+      /** 票务列表查询 */
+      ticketListApi() {
+        this.ticketList = []
+        seatPricePageList(this.addDateRange({pageNum: 1, pageSize: 100}))
+          .then(response => {
+            let ticketItemList = []
+            response.data.rows.forEach(item => {
+              if(ticketItemList.indexOf(item.goodsId) == -1){
+                this.ticketList.push(item);
+                ticketItemList.push(item.goodsId);
+              }
+            })
+          });
+      },
+      /** 座位类型列表 */
+      getSeatTypeList(obj) {
+        seatPricePageList(this.addDateRange({pageNum: 1, pageSize: 100, goodsId: obj.goodsId}))
+          .then(response => {
+            let ticketList = []
+            response.data.rows.forEach(item => {
+              if(ticketList.indexOf(item.seatTypeId) == -1){
+                this.seatList.push(item);
+                ticketList.push(item.seatTypeId);
+              }
+            })
+          });
+      },
+      // 取消按钮
+      cancel() {
+        this.open = false;
+      },
+      // 票务改变事件
+      goodsChangeEven() {
+        this.seatList = [];
+        this.$set(this.queryParams, 'seatTypeId', '');
+        let selectMap = {goodsId: this.queryParams.goodsId}
+        this.getSeatTypeList(selectMap);
+      },
+      /** 搜索按钮操作 */
+      handleQuery() {
+        this.queryParams.pageNum = 1;
+        this.getList();
+      },
+      /** 重置按钮操作 */
+      resetQuery() {
+        this.dateRange = [];
+        this.seatList = [];
+        this.$set(this.queryParams, 'time', '');
+        this.$set(this.queryParams, 'performStartDate', '');
+        this.$set(this.queryParams, 'performEndDate', '');
+        this.$set(this.queryParams, 'goodsId', '');
+        this.$set(this.queryParams, 'seatTypeId', '');
+        this.queryParams.pageNum = 1;
+        this.handleQuery();
+      },
+      /**
+       * 导出报表
+       * @date 2022-10-24
+       * @returns {any}
+       */
+      handleExport() {
+        this.$confirm('您确定要导出当前查询的数据吗?', '提示', {
+          confirmButtonText: '确定 ',
+          cancelButtonText: '取消 ',
+          type: 'warning'
+        })
+          .then(() => {
+            this.handleExportLoading = true;
+            // const { pageNum, pageSize} = this.params;
+            let postMap = {}
+            for (let key in this.queryParams) {
+              if(key != 'pageNum' && key != 'pageSize'){
+                postMap[key] = this.queryParams[key]
+              }
+            }
+            downTimeCountListXls(postMap)
+              .then((res) => {
+                exportExcel(res, '场次销售分析', '.xlsx');
+                this.handleExportLoading = false;
+              })
+              .catch(() => {
+                this.handleExportLoading = false;
+              });
+          })
+          .catch(() => {
+            this.$message.info('您已取消导出!');
+          });
+      },
+    }
+  };
+  </script>
+  

+ 328 - 0
src/views/statisticalReport/team.vue

@@ -0,0 +1,328 @@
+<!--
+ * @Description: 
+ * @Author: gcz
+ * @Date: 2024-04-23 10:30:35
+ * @LastEditors: gcz
+ * @LastEditTime: 2024-04-29 15:07:16
+ * @FilePath: \great_webui\src\views\statisticalReport\team.vue
+ * @Copyright: Copyright (c) 2016~2024 by gcz, All Rights Reserved. 
+-->
+<template>
+    <div class="app-container">
+      <el-form :model="queryParams" ref="queryForm" size="small" :inline="true" v-show="showSearch" label-width="40px">
+        <!-- <el-form-item label="演出厅" prop="auditoriumId" label-width="70px">
+          <el-select
+            v-model="queryParams.auditoriumId"
+            placeholder="演出厅"
+            clearable
+            style="width: 100%"
+            @change="pagePerformTimeListFun(selectTime)"
+          >
+            <el-option
+              v-for="dict in merchantTheatreAuditoriumListS"
+              :key="dict.id"
+              :label="dict.name"
+              :value="dict.id"
+            />
+          </el-select>
+        </el-form-item> -->
+        <el-form-item label="场次日期" :required="true" label-width="85px">
+          <el-date-picker
+            style="width: 230px;"
+            v-model="selectTime"
+            type="daterange"
+            @change="pagePerformTimeListFun"
+            value-format="yyyy-MM-dd"
+            placeholder="日期">
+          </el-date-picker>
+        </el-form-item>
+        <el-form-item label="场次" v-if="!multiPerformDate" :required="!multiPerformDate" label-width="55px">
+        <el-select
+          v-model="queryParams.performTimeId"
+          placeholder="场次"
+          clearable
+          style="width: 100%"
+        >
+          <el-option
+            v-for="dict in pagePerformTimeList"
+            :key="dict.id"
+            :label="dict.timeSnapshot+'('+dict.performTimeStart+'-'+dict.performTimeEnd+')'"
+            :value="dict.id"
+          />
+        </el-select>
+      </el-form-item>
+        <el-form-item>
+          <el-button type="primary" icon="el-icon-search" size="mini" @click="handleQuery">搜索</el-button>
+          <el-button icon="el-icon-refresh" size="mini" @click="resetQuery">重置</el-button>
+        </el-form-item>
+      </el-form>
+      <el-row :gutter="10" class="mb8"  style="margin-left: 0; margin-top: 10px">
+        <el-button
+          type="primary"
+          size="mini"
+          icon="el-icon-download"
+          :disabled="dataList.length === 0"
+          v-hasPermi="['session:session:downloadExcel']"
+          @click="handleExport"
+          v-loading.fullscreen.lock="handleExportLoading"
+          element-loading-text="正在拼命生成数据中..."
+          element-loading-spinner="el-icon-loading"
+          element-loading-background="rgba(0, 0, 0, 0.5)"
+        >导出excel</el-button>
+        <right-toolbar :showSearch.sync="showSearch" @queryTable="getList"></right-toolbar>
+      </el-row>
+  
+      <el-table ref="tables" v-loading="loading" :data="dataList" border>
+        <el-table-column label="序号" align="center" type="index" width="60"></el-table-column>
+        <!-- <el-table-column label="场次日期" align="center">
+          <template slot-scope="scope">
+            <span>{{ scope.row.performDate }}</span>
+          </template>
+        </el-table-column> -->
+        <el-table-column label="团队名称" align="center" prop="name" />
+        <el-table-column label="订单数(笔)" align="center" prop="orderNum" />
+        <el-table-column label="应收总额(元)" align="center" prop="price" />
+        <el-table-column label="实收总额(元)" align="center" prop="realPrice" />
+        <el-table-column label="已售票数(张)" align="center" prop="buyNum" />
+        <el-table-column label="核销票数(张)" align="center" prop="checkNum" />
+        <el-table-column label="未核销票数(张)" align="center" prop="noCheckNum" />
+        <el-table-column label="退票数(张)" align="center" prop="refundNum" />
+        <el-table-column label="退票金额(元)" align="center" prop="refundAmount" />
+      </el-table>
+  
+      <pagination
+        v-show="total>0"
+        :total="total"
+        :page.sync="queryParams.pageNum"
+        :limit.sync="queryParams.pageSize"
+        @pagination="getList"
+      />
+  
+    </div>
+  </template>
+  
+  <script>
+  import {merchantTheatreAuditoriumList} from '@/api/windowTicketSales/ticketingSales'
+  import { teamOrderCount, downTeamOrderListXls } from '@/api/statisticalReport/statistics'
+  import { exportExcel } from '@/utils/exportexcel'
+  import { seatPricePageList } from '@/api/distribution/ticketMr'
+  import { pagePerformTimeList } from "@/api/schedulingMr/schedulingMr"
+  import moment from "moment"
+  export default {
+    name: "agreement",
+    dicts: ['agreement_type'],
+    data() {
+      return {
+        // 遮罩层
+        loading: true,
+        // 选中数组
+        ids: [],
+        // 非单个禁用
+        single: true,
+        // 非多个禁用
+        multiple: true,
+        // 显示搜索条件
+        showSearch: true,
+        // 总条数
+        total: 0,
+        // 用户表格数据
+        dataList: [],
+        // 弹出层标题
+        title: "",
+  
+        // 是否显示弹出层
+        open: false,
+        // 日期范围
+        dateRange: [],
+        // 查询参数
+        queryParams: {
+          auditoriumId:'',
+          // pageNum: 1,
+          // pageSize: 10,
+        },
+        visibleStatus: false,
+        newObj: {},
+        visibleType: '',
+        handleExportLoading: false,
+        tableData: {},
+        ticketList: [],
+        seatList: [],
+        multiPerformDate:false,
+        pagePerformTimeList: [], // 场次列表
+        selectTime:'',
+        merchantTheatreAuditoriumListS: [],//演出厅
+      };
+    },
+    created() {
+      // this.$set(this.queryParams,'time',moment().format("yyyy-MM-DD"))
+      // this.merchantTheatreAuditoriumListFun();//演出厅
+      this.$set(this,'selectTime',[moment().format("yyyy-MM-DD"),moment().format("yyyy-MM-DD")]);
+      this.pagePerformTimeListFun(this.selectTime)
+      // this.getList();
+      // this.ticketListApi();
+    },
+    methods: {
+      /** 查询列表 */
+      getList() {
+        this.loading = true;
+        if(this.selectTime){
+          this.queryParams.performDateStart = this.selectTime[0];
+          this.queryParams.performDateEnd = this.selectTime[1];
+        }
+        // teamOrderCount(this.addDateRange(this.queryParams, this.dateRange))
+        teamOrderCount(this.queryParams)
+        .then(response => {
+            this.dataList = response.data.rows;
+            this.total = response.data.total;
+            this.loading = false;
+          }
+        ).catch(response => {
+          this.loading = false;
+        });
+      },
+      /** 票务列表查询 */
+      ticketListApi() {
+        this.ticketList = []
+        seatPricePageList(this.addDateRange({pageNum: 1, pageSize: 100}))
+          .then(response => {
+            let ticketItemList = []
+            response.data.rows.forEach(item => {
+              if(ticketItemList.indexOf(item.goodsId) == -1){
+                this.ticketList.push(item);
+                ticketItemList.push(item.goodsId);
+              }
+            })
+          });
+      },
+      /** 座位类型列表 */
+      getSeatTypeList(obj) {
+        seatPricePageList(this.addDateRange({pageNum: 1, pageSize: 100, goodsId: obj.goodsId}))
+          .then(response => {
+            let ticketList = []
+            response.data.rows.forEach(item => {
+              if(ticketList.indexOf(item.seatTypeId) == -1){
+                this.seatList.push(item);
+                ticketList.push(item.seatTypeId);
+              }
+            })
+          });
+      },
+      // 取消按钮
+      cancel() {
+        this.open = false;
+      },
+      // 票务改变事件
+      goodsChangeEven() {
+        this.seatList = [];
+        this.$set(this.queryParams, 'seatTypeId', '');
+        let selectMap = {goodsId: this.queryParams.goodsId}
+        this.getSeatTypeList(selectMap);
+      },
+      /** 搜索按钮操作 */
+      handleQuery() {
+        // this.queryParams.pageNum = 1;
+        this.getList();
+      },
+      /** 重置按钮操作 */
+      resetQuery() {
+        this.dateRange = [];
+        this.seatList = [];
+        this.$set(this.queryParams, 'time', '');
+        this.$set(this, 'selectTime', '');
+        this.$set(this.queryParams, 'auditoriumId', '');
+        this.$set(this.queryParams, 'performDateStart', '');
+        this.$set(this.queryParams, 'performDateEnd', '');
+        this.$set(this.queryParams, 'goodsId', '');
+        this.$set(this.queryParams, 'seatTypeId', '');
+        this.$set(this.queryParams, 'performTimeId', '');
+        // this.queryParams.pageNum = 1;
+        this.multiPerformDate = false;
+
+        //必须要有默认值
+        this.$set(this,'selectTime',[moment().format("yyyy-MM-DD"),moment().format("yyyy-MM-DD")]);
+        this.pagePerformTimeListFun(this.selectTime)
+        // this.handleQuery();
+      },
+      /**
+       * 导出报表
+       * @date 2022-10-24
+       * @returns {any}
+       */
+      handleExport() {
+        this.$confirm('您确定要导出当前查询的数据吗?', '提示', {
+          confirmButtonText: '确定 ',
+          cancelButtonText: '取消 ',
+          type: 'warning'
+        })
+          .then(() => {
+            this.handleExportLoading = true;
+            // const { pageNum, pageSize} = this.params;
+            let postMap = {}
+            for (let key in this.queryParams) {
+              if(key != 'pageNum' && key != 'pageSize'){
+                postMap[key] = this.queryParams[key]
+              }
+            }
+            downTeamOrderListXls(postMap)
+              .then((res) => {
+                exportExcel(res, '团队订单销售统计', '.xlsx');
+                this.handleExportLoading = false;
+              })
+              .catch(() => {
+                this.handleExportLoading = false;
+              });
+          })
+          .catch(() => {
+            this.$message.info('您已取消导出!');
+          });
+      },
+      async pagePerformTimeListFun(value) {
+            console.log('value',value);
+            try {
+                this.pagePerformTimeList = []
+                this.$set(this.queryParams,'performTimeId',null)
+                if(!value){
+                return
+                }
+                if(value.length==2&&value[0]==value[1]){
+                this.multiPerformDate = false
+                }else{
+                this.multiPerformDate = true
+                return
+                }
+                let { data,code } = await pagePerformTimeList({
+                performDate: value[0],
+                pageNum: 1,
+                pageSize: 999
+                })
+                this.pagePerformTimeList = [].concat(data.rows);
+                if(data.rows[0]){
+                  this.queryParams.performTimeId = data.rows[0].id;
+                  this.getList();
+                }
+            } catch (error) {
+                
+            }
+        },
+        /**  获取演出厅  */
+        async merchantTheatreAuditoriumListFun(){
+            try {
+                let res = await merchantTheatreAuditoriumList({
+                    pageNum: 1,
+                    pageSize: 999
+                })
+                if(res.code == 200){
+                    this.merchantTheatreAuditoriumListS = res.data.rows
+                    if(this.merchantTheatreAuditoriumListS.length>0){
+                        this.$set(this.queryParams,'auditoriumId',this.merchantTheatreAuditoriumListS[0].id)
+                        this.pagePerformTimeListFun(this.selectTime)
+                    }
+                }
+            } catch (error) {
+                
+            }
+        },
+    }
+  };
+  </script>
+  

+ 125 - 0
src/views/statistics/financial.vue

@@ -0,0 +1,125 @@
+<template>
+    <div class="app-container">
+      <!-- <el-form :model="queryParams" ref="queryForm" size="small" :inline="true" v-show="showSearch" label-width="80px">
+        <el-form-item label="报表名称">
+          <el-input
+            v-model="queryParams.name"
+            placeholder="报表名称"
+            clearable
+            style="width: 160px;"
+            @keyup.enter.native="handleQuery"
+          />
+        </el-form-item>
+        <el-form-item>
+          <el-button type="primary" icon="el-icon-search" size="mini" @click="handleQuery">搜索</el-button>
+          <el-button icon="el-icon-refresh" size="mini" @click="resetQuery">重置</el-button>
+        </el-form-item>
+      </el-form> -->
+      <div class="box-class clearfix">
+        <div 
+        class="item-class clearfix" 
+        @click="pageLink(item.url)" 
+        v-hasPermi="[item.hasPermi]"
+        v-for="item in itemList" :key="item.id">
+          <div class="span-img-class"></div>
+          <div class="span-text-class">{{ item.name }}</div>
+        </div>
+      </div>
+    </div>
+  </template>
+  
+  <script>
+  
+  import { pageList } from '@/api/userMr/userMr'
+  
+  export default {
+    name: "agreement",
+    dicts: ['agreement_type'],
+    data() {
+      return {
+        // 遮罩层
+        loading: true,
+        // 显示搜索条件
+        showSearch: true,
+        // 查询参数
+        queryParams: {
+          pageNum: 1,
+          pageSize: 10,
+          type: undefined
+        },
+        itemList: [
+          // {id: 1, name: '单场次销售报表', hasPermi: 'session:session:list', url: '/statisticalReport/singleSales'},
+          {id: 2, name: '渠道订单销售统计', hasPermi: 'statisticalReport:sessionInventory:downloadExcel', url: '/statisticalReport/channelSales'},
+          {id: 3, name: '产品销售统计', hasPermi: 'statisticalReport:seatInventory:downloadExcel', url: '/statisticalReport/product'},
+          {id: 4, name: '团队订单销售统计', hasPermi: 'session:session:list', url: '/statisticalReport/team'},
+          {id: 5, name: '分销商订单统计', hasPermi: 'session:session:list', url: '/statisticalReport/distributor'},
+        ]
+      };
+    },
+    created() {
+      // this.getList();
+    },
+    methods: {
+      /** 查询列表 */
+      getList() {
+        this.loading = true;
+        pageList(this.addDateRange(this.queryParams, this.dateRange))
+        .then(response => {
+            this.dataList = response.data.rows;
+            this.total = response.data.total;
+            this.loading = false;
+          }
+        );
+      },
+      /** 搜索按钮操作 */
+      handleQuery() {
+        this.queryParams.pageNum = 1;
+        this.getList();
+      },
+      /** 重置按钮操作 */
+      resetQuery() {
+        this.$set(this.queryParams, 'name', '');
+        this.handleQuery();
+      },
+      pageLink(url) {
+        if(url){
+          this.$router.push(url);
+        }
+      }
+    }
+  };
+  </script>
+  
+  <style lang="scss" scoped>
+     .box-class{
+       padding: 20px 20px;
+       .item-class:hover{
+         box-shadow: 0 2px 4px rgba(93, 37, 37, 0.12), 0 0 6px rgba(0, 0, 0, .04);
+       }
+       .item-class{
+         box-shadow: 0 2px 12px 0 rgba(0, 0, 0, 0.1);
+         padding: 20px 40px;
+         border-radius: 6px;
+         float: left;
+         cursor: pointer;
+         margin-right: 60px;
+  
+         .span-img-class{
+           background: url("../../assets/images/statistics-icon.png") no-repeat;
+           display: inline-block;
+           width: 40px;
+           height: 40px;
+           float: left;
+           background-size: 100% 100%;
+         }
+         .span-text-class{
+           display: inline-block;
+           height: 40px;
+           float: left;
+           margin-left: 20px;
+           line-height: 40px;
+         }
+       }
+     }
+  </style>
+  

+ 128 - 0
src/views/statistics/operating.vue

@@ -0,0 +1,128 @@
+<template>
+    <div class="app-container">
+      <!-- <el-form :model="queryParams" ref="queryForm" size="small" :inline="true" v-show="showSearch" label-width="80px">
+        <el-form-item label="报表名称">
+          <el-input
+            v-model="queryParams.name"
+            placeholder="报表名称"
+            clearable
+            style="width: 160px;"
+            @keyup.enter.native="handleQuery"
+          />
+        </el-form-item>
+        <el-form-item>
+          <el-button type="primary" icon="el-icon-search" size="mini" @click="handleQuery">搜索</el-button>
+          <el-button icon="el-icon-refresh" size="mini" @click="resetQuery">重置</el-button>
+        </el-form-item>
+      </el-form> -->
+      <div class="box-class clearfix">
+        <div 
+        class="item-class clearfix" 
+        @click="pageLink(item.url)" 
+        v-hasPermi="[item.hasPermi]"
+        v-for="item in itemList" :key="item.id">
+          <div class="span-img-class"></div>
+          <div class="span-text-class">{{ item.name }}</div>
+        </div>
+      </div>
+    </div>
+  </template>
+  
+  <script>
+  
+  import { pageList } from '@/api/userMr/userMr'
+import { log } from 'mathjs';
+  
+  export default {
+    name: "agreement",
+    dicts: ['agreement_type'],
+    data() {
+      return {
+        // 遮罩层
+        loading: true,
+        // 显示搜索条件
+        showSearch: true,
+        // 查询参数
+        queryParams: {
+          pageNum: 1,
+          pageSize: 10,
+          type: undefined
+        },
+        itemList: [
+          // {id: 1, name: '总览统计', url: ''},
+          // {id: 2, name: '渠道统计', url: ''},
+          {id: 3, name: '场次销售分析', hasPermi: 'session:session:list', url: '/statisticalReport/session'},
+          {id: 4, name: '场次销售统计', hasPermi: 'statisticalReport:sessionInventory:downloadExcel', url: '/statisticalReport/sessionInventory'},
+          {id: 5, name: '座位类型销售统计', hasPermi: 'statisticalReport:seatInventory:downloadExcel', url: '/statisticalReport/seatInventory'},
+        ]
+      };
+    },
+    created() {
+      // this.getList();
+    },
+    methods: {
+      /** 查询列表 */
+      getList() {
+        this.loading = true;
+        pageList(this.addDateRange(this.queryParams, this.dateRange))
+        .then(response => {
+            this.dataList = response.data.rows;
+            this.total = response.data.total;
+            this.loading = false;
+          }
+        );
+      },
+      /** 搜索按钮操作 */
+      handleQuery() {
+        this.queryParams.pageNum = 1;
+        this.getList();
+      },
+      /** 重置按钮操作 */
+      resetQuery() {
+        this.$set(this.queryParams, 'name', '');
+        this.handleQuery();
+      },
+      pageLink(url) {
+        console.log('url', url);
+        return
+        if(url){
+          this.$router.push(url);
+        }
+      }
+    }
+  };
+  </script>
+  
+  <style lang="scss" scoped>
+     .box-class{
+       padding: 20px 20px;
+       .item-class:hover{
+         box-shadow: 0 2px 4px rgba(93, 37, 37, 0.12), 0 0 6px rgba(0, 0, 0, .04);
+       }
+       .item-class{
+         box-shadow: 0 2px 12px 0 rgba(0, 0, 0, 0.1);
+         padding: 20px 40px;
+         border-radius: 6px;
+         float: left;
+         cursor: pointer;
+         margin-right: 60px;
+  
+         .span-img-class{
+           background: url("../../assets/images/statistics-icon.png") no-repeat;
+           display: inline-block;
+           width: 40px;
+           height: 40px;
+           float: left;
+           background-size: 100% 100%;
+         }
+         .span-text-class{
+           display: inline-block;
+           height: 40px;
+           float: left;
+           margin-left: 20px;
+           line-height: 40px;
+         }
+       }
+     }
+  </style>
+  

+ 3 - 1
src/views/windowTicketSales/model/increaseViewers.vue

@@ -158,6 +158,8 @@
                             <el-radio label="11">携程</el-radio>
                             <el-radio label="13">抖音</el-radio>
                             <el-radio label="14">猫眼</el-radio>
+                            <el-radio label="18">大麦</el-radio>
+                            <el-radio label="19">飞猪</el-radio>
                             <!-- <el-radio label="15">去哪儿</el-radio> -->
                             <el-radio label="16">其他</el-radio>
                         </el-radio-group>
@@ -173,7 +175,7 @@
                     <el-radio-group v-model="ruleForm.paymentType">
                         <el-radio label="1">扫码</el-radio>
                         <el-radio label="2">现金</el-radio>
-                        <el-radio v-if="['10','11','13','14'].includes(ruleForm.source)" label="3">对公支付</el-radio>
+                        <el-radio v-if="['10','11','13','14','18','19'].includes(ruleForm.source)" label="3">对公支付</el-radio>
                     </el-radio-group>
                 </el-form-item>
                 <el-form-item label="应付金额 :">