|  | @@ -1,45 +1,12 @@
 | 
											
												
													
														|  |  <template>
 |  |  <template>
 | 
											
												
													
														|  |    <div class="app-container">
 |  |    <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-select
 |  | 
 | 
											
												
													
														|  | -          v-model="queryParams.goodsId"
 |  | 
 | 
											
												
													
														|  | -          placeholder="票务管理"
 |  | 
 | 
											
												
													
														|  | -          clearable
 |  | 
 | 
											
												
													
														|  | -          @change="goodsChangeEven"
 |  | 
 | 
											
												
													
														|  | -          style="width: 100%;"
 |  | 
 | 
											
												
													
														|  | -        >
 |  | 
 | 
											
												
													
														|  | -          <el-option
 |  | 
 | 
											
												
													
														|  | -            v-for="dict in ticketList"
 |  | 
 | 
											
												
													
														|  | -            :key="dict.id"
 |  | 
 | 
											
												
													
														|  | -            :label="dict.goodsName"
 |  | 
 | 
											
												
													
														|  | -            :value="dict.goodsId"
 |  | 
 | 
											
												
													
														|  | -          />
 |  | 
 | 
											
												
													
														|  | -        </el-select>
 |  | 
 | 
											
												
													
														|  | -      </el-form-item> -->
 |  | 
 | 
											
												
													
														|  | -      <el-form-item label="座位类型:">
 |  | 
 | 
											
												
													
														|  | -        <el-select
 |  | 
 | 
											
												
													
														|  | -          v-model="queryParams.seatTypeId"
 |  | 
 | 
											
												
													
														|  | -          placeholder="座位类型"
 |  | 
 | 
											
												
													
														|  | -          clearable
 |  | 
 | 
											
												
													
														|  | -          style="width: 100%;"
 |  | 
 | 
											
												
													
														|  | -        >
 |  | 
 | 
											
												
													
														|  | -          <el-option
 |  | 
 | 
											
												
													
														|  | -            v-for="dict in seatList"
 |  | 
 | 
											
												
													
														|  | -            :key="dict.seatTypeId"
 |  | 
 | 
											
												
													
														|  | -            :label="dict.seatTypeName"
 |  | 
 | 
											
												
													
														|  | -            :value="dict.seatTypeId"
 |  | 
 | 
											
												
													
														|  | -          />
 |  | 
 | 
											
												
													
														|  | -        </el-select>
 |  | 
 | 
											
												
													
														|  | -      </el-form-item>
 |  | 
 | 
											
												
													
														|  | -      <el-form-item label="场次日期">
 |  | 
 | 
											
												
													
														|  | 
 |  | +    <el-form :model="queryParams" ref="queryForm" size="small" :inline="true" v-show="showSearch" label-width="40px">
 | 
											
												
													
														|  | 
 |  | +      <el-form-item label="日期">
 | 
											
												
													
														|  |          <el-date-picker
 |  |          <el-date-picker
 | 
											
												
													
														|  | -          v-model="queryParams.time"
 |  | 
 | 
											
												
													
														|  | -          type="daterange"
 |  | 
 | 
											
												
													
														|  | 
 |  | +          v-model="queryParams.performStartDate"
 | 
											
												
													
														|  | 
 |  | +          type="date"
 | 
											
												
													
														|  |            value-format="yyyy-MM-dd"
 |  |            value-format="yyyy-MM-dd"
 | 
											
												
													
														|  | -          range-separator="至"
 |  | 
 | 
											
												
													
														|  | -          start-placeholder="开始日期"
 |  | 
 | 
											
												
													
														|  | -          end-placeholder="结束日期">
 |  | 
 | 
											
												
													
														|  | 
 |  | +          placeholder="日期">
 | 
											
												
													
														|  |          </el-date-picker>
 |  |          </el-date-picker>
 | 
											
												
													
														|  |        </el-form-item>
 |  |        </el-form-item>
 | 
											
												
													
														|  |        <el-form-item>
 |  |        <el-form-item>
 | 
											
										
											
												
													
														|  | @@ -52,7 +19,7 @@
 | 
											
												
													
														|  |          type="primary"
 |  |          type="primary"
 | 
											
												
													
														|  |          size="mini"
 |  |          size="mini"
 | 
											
												
													
														|  |          icon="el-icon-download"
 |  |          icon="el-icon-download"
 | 
											
												
													
														|  | -        :disabled="tableData.length === 0"
 |  | 
 | 
											
												
													
														|  | 
 |  | +        :disabled="dataList.length === 0"
 | 
											
												
													
														|  |          v-hasPermi="['session:session:downloadExcel']"
 |  |          v-hasPermi="['session:session:downloadExcel']"
 | 
											
												
													
														|  |          @click="handleExport"
 |  |          @click="handleExport"
 | 
											
												
													
														|  |          v-loading.fullscreen.lock="handleExportLoading"
 |  |          v-loading.fullscreen.lock="handleExportLoading"
 | 
											
										
											
												
													
														|  | @@ -77,25 +44,24 @@
 | 
											
												
													
														|  |            <span>{{ scope.row.performTimeStart }} -- {{ scope.row.performTimeEnd }}</span>
 |  |            <span>{{ scope.row.performTimeStart }} -- {{ scope.row.performTimeEnd }}</span>
 | 
											
												
													
														|  |          </template>
 |  |          </template>
 | 
											
												
													
														|  |        </el-table-column>
 |  |        </el-table-column>
 | 
											
												
													
														|  | -      <el-table-column label="座位类型" align="center" prop="seatTypeName" />
 |  | 
 | 
											
												
													
														|  | -      <el-table-column label="总库存" align="center">
 |  | 
 | 
											
												
													
														|  | 
 |  | +      <el-table-column label="销售量" align="center">
 | 
											
												
													
														|  |          <template slot-scope="scope">
 |  |          <template slot-scope="scope">
 | 
											
												
													
														|  | -          <span>{{ scope.row.total }}张</span>
 |  | 
 | 
											
												
													
														|  | 
 |  | +          <span>{{ scope.row.saleTotal?scope.row.saleTotal+'张' : '-' }}</span>
 | 
											
												
													
														|  |          </template>
 |  |          </template>
 | 
											
												
													
														|  |        </el-table-column>
 |  |        </el-table-column>
 | 
											
												
													
														|  | -      <el-table-column label="已售数量" align="center">
 |  | 
 | 
											
												
													
														|  | 
 |  | +      <el-table-column label="核销量" align="center">
 | 
											
												
													
														|  |          <template slot-scope="scope">
 |  |          <template slot-scope="scope">
 | 
											
												
													
														|  | -          <span>{{ scope.row.saleTotal }}张</span>
 |  | 
 | 
											
												
													
														|  | 
 |  | +          <span>{{ scope.row.usedTotal?scope.row.usedTotal+'张' : '-' }}</span>
 | 
											
												
													
														|  |          </template>
 |  |          </template>
 | 
											
												
													
														|  |        </el-table-column>
 |  |        </el-table-column>
 | 
											
												
													
														|  | -      <el-table-column label="已核销数量" align="center">
 |  | 
 | 
											
												
													
														|  | 
 |  | +      <el-table-column label="核销率" align="center">
 | 
											
												
													
														|  |          <template slot-scope="scope">
 |  |          <template slot-scope="scope">
 | 
											
												
													
														|  | -          <span>{{ scope.row.usedTotal }}张</span>
 |  | 
 | 
											
												
													
														|  | 
 |  | +          <span>{{ scope.row.usedRate?scope.row.usedRate+'%' : '-' }}</span>
 | 
											
												
													
														|  |          </template>
 |  |          </template>
 | 
											
												
													
														|  |        </el-table-column>
 |  |        </el-table-column>
 | 
											
												
													
														|  | -      <el-table-column label="库存数量" align="center">
 |  | 
 | 
											
												
													
														|  | 
 |  | +      <el-table-column label="核销上座率" align="center">
 | 
											
												
													
														|  |          <template slot-scope="scope">
 |  |          <template slot-scope="scope">
 | 
											
												
													
														|  | -          <span>{{ (scope.row.total - scope.row.saleTotal) >= 0 ? (scope.row.total - scope.row.saleTotal) : '' }}张</span>
 |  | 
 | 
											
												
													
														|  | 
 |  | +          <span>{{ scope.row.occupancyRate?scope.row.occupancyRate+'%' : '-' }}</span>
 | 
											
												
													
														|  |          </template>
 |  |          </template>
 | 
											
												
													
														|  |        </el-table-column>
 |  |        </el-table-column>
 | 
											
												
													
														|  |      </el-table>
 |  |      </el-table>
 | 
											
										
											
												
													
														|  | @@ -113,9 +79,10 @@
 | 
											
												
													
														|  |  
 |  |  
 | 
											
												
													
														|  |  <script>
 |  |  <script>
 | 
											
												
													
														|  |  
 |  |  
 | 
											
												
													
														|  | -import { performTimeCount, downTimeCountListXls } from '@/api/statistics'
 |  | 
 | 
											
												
													
														|  | 
 |  | +import { performTimeCount, downTimeCountListXls } from '@/api/statisticalReport/statistics'
 | 
											
												
													
														|  |  import { exportExcel } from '@/utils/exportexcel'
 |  |  import { exportExcel } from '@/utils/exportexcel'
 | 
											
												
													
														|  |  import { seatPricePageList } from '@/api/distribution/ticketMr'
 |  |  import { seatPricePageList } from '@/api/distribution/ticketMr'
 | 
											
												
													
														|  | 
 |  | +import moment from "moment"
 | 
											
												
													
														|  |  export default {
 |  |  export default {
 | 
											
												
													
														|  |    name: "agreement",
 |  |    name: "agreement",
 | 
											
												
													
														|  |    dicts: ['agreement_type'],
 |  |    dicts: ['agreement_type'],
 | 
											
										
											
												
													
														|  | @@ -134,7 +101,7 @@ export default {
 | 
											
												
													
														|  |        // 总条数
 |  |        // 总条数
 | 
											
												
													
														|  |        total: 0,
 |  |        total: 0,
 | 
											
												
													
														|  |        // 用户表格数据
 |  |        // 用户表格数据
 | 
											
												
													
														|  | -      dataList: null,
 |  | 
 | 
											
												
													
														|  | 
 |  | +      dataList: [],
 | 
											
												
													
														|  |        // 弹出层标题
 |  |        // 弹出层标题
 | 
											
												
													
														|  |        title: "",
 |  |        title: "",
 | 
											
												
													
														|  |  
 |  |  
 | 
											
										
											
												
													
														|  | @@ -157,6 +124,7 @@ export default {
 | 
											
												
													
														|  |      };
 |  |      };
 | 
											
												
													
														|  |    },
 |  |    },
 | 
											
												
													
														|  |    created() {
 |  |    created() {
 | 
											
												
													
														|  | 
 |  | +    this.$set(this.queryParams,'performStartDate',moment().format("yyyy-MM-DD"))
 | 
											
												
													
														|  |      this.getList();
 |  |      this.getList();
 | 
											
												
													
														|  |      this.ticketListApi();
 |  |      this.ticketListApi();
 | 
											
												
													
														|  |    },
 |  |    },
 | 
											
										
											
												
													
														|  | @@ -253,7 +221,7 @@ export default {
 | 
											
												
													
														|  |            }
 |  |            }
 | 
											
												
													
														|  |            downTimeCountListXls(postMap)
 |  |            downTimeCountListXls(postMap)
 | 
											
												
													
														|  |              .then((res) => {
 |  |              .then((res) => {
 | 
											
												
													
														|  | -              exportExcel(res, '场次统计', '.xlsx');
 |  | 
 | 
											
												
													
														|  | 
 |  | +              exportExcel(res, '场次销售分析', '.xlsx');
 | 
											
												
													
														|  |                this.handleExportLoading = false;
 |  |                this.handleExportLoading = false;
 | 
											
												
													
														|  |              })
 |  |              })
 | 
											
												
													
														|  |              .catch(() => {
 |  |              .catch(() => {
 |