|
@@ -1,6 +1,20 @@
|
|
|
<template>
|
|
|
<div class="app-container scroll-auto">
|
|
|
<el-form :model="queryParams" ref="queryForm" size="small" :inline="true" v-show="showSearch" label-width="68px">
|
|
|
+ <el-form-item label="日期" prop="reportDate">
|
|
|
+ <el-date-picker
|
|
|
+ v-model="queryParams.reportDate"
|
|
|
+ style="width: 240px; margin-right: 8px"
|
|
|
+ type="daterange"
|
|
|
+ range-separator="至"
|
|
|
+ start-placeholder="开始日期"
|
|
|
+ end-placeholder="结束日期"
|
|
|
+ value-format="yyyyMMdd"
|
|
|
+ :clearable="false"
|
|
|
+ >
|
|
|
+ </el-date-picker>
|
|
|
+ </el-form-item>
|
|
|
+
|
|
|
<el-form-item label="月计划编号" prop="planCode" label-width="120">
|
|
|
<el-input
|
|
|
v-model="queryParams.planCode"
|
|
@@ -87,6 +101,8 @@
|
|
|
<el-table-column label="停电设备数" align="center" prop="powerOutageDevices" fixed/>
|
|
|
<el-table-column label="月计划停电时户数" align="center" prop="perHourHouseholdsM" fixed/>
|
|
|
<el-table-column label="周计划停电时户数" align="center" prop="perHourHouseholdsW" fixed/>
|
|
|
+ <el-table-column label="开始时间" align="center" prop="weekStartDt" fixed/>
|
|
|
+ <el-table-column label="结束时间" align="center" prop="weekendDt" fixed/>
|
|
|
<el-table-column label="市州单位" align="center" prop="city" width="150" />
|
|
|
<el-table-column label="区县单位" align="center" prop="county" width="180"/>
|
|
|
<el-table-column label="供电服务站/所" align="center" prop="station" width="120" :show-overflow-tooltip="true"/>
|
|
@@ -315,7 +331,7 @@ export default {
|
|
|
pageNum: 1,
|
|
|
pageSize: 10,
|
|
|
planCode: null,
|
|
|
- planCodeW:null,
|
|
|
+ planCodeW:null,
|
|
|
powerOutageDevices: null,
|
|
|
perHourHouseholdsM: null,
|
|
|
perHourHouseholdsW: null,
|
|
@@ -330,6 +346,7 @@ export default {
|
|
|
isApprove: null,
|
|
|
maintenanceFilePath: null,
|
|
|
approveFilePath: null,
|
|
|
+ reportDate: [],
|
|
|
},
|
|
|
// 表单参数
|
|
|
form: {},
|
|
@@ -348,7 +365,11 @@ export default {
|
|
|
/** 查询检修计划全流程管理列表 */
|
|
|
getList() {
|
|
|
this.loading = true;
|
|
|
- listProcess(this.queryParams).then(response => {
|
|
|
+ listProcess({
|
|
|
+ ...this.queryParams,
|
|
|
+ startDate: this.queryParams.reportDate[0],
|
|
|
+ endDate: this.queryParams.reportDate[1]
|
|
|
+ }).then(response => {
|
|
|
this.processList = response.rows;
|
|
|
this.total = response.total;
|
|
|
this.loading = false;
|
|
@@ -364,7 +385,7 @@ export default {
|
|
|
this.form = {
|
|
|
id: null,
|
|
|
planCode: null,
|
|
|
- planCodeW: null,
|
|
|
+ planCodeW: null,
|
|
|
powerOutageDevices: null,
|
|
|
perHourHouseholdsM: null,
|
|
|
perHourHouseholdsW: null,
|
|
@@ -382,7 +403,8 @@ export default {
|
|
|
createBy: null,
|
|
|
createTime: null,
|
|
|
updateBy: null,
|
|
|
- updateTime: null
|
|
|
+ updateTime: null,
|
|
|
+ reportDate:[]
|
|
|
};
|
|
|
this.resetForm("form");
|
|
|
},
|
|
@@ -459,7 +481,26 @@ export default {
|
|
|
/** 导出按钮操作 */
|
|
|
async handleExport() {
|
|
|
const res = await exportProcess({
|
|
|
- ...this.queryParams,
|
|
|
+ pageNum: this.queryParams.pageNum,
|
|
|
+ pageSize: this.queryParams.pageSize,
|
|
|
+ planCode: this.queryParams.planCode,
|
|
|
+ planCodeW: this.queryParams.planCodeW,
|
|
|
+ powerOutageDevices: this.queryParams.powerOutageDevices,
|
|
|
+ perHourHouseholdsM: this.queryParams.perHourHouseholdsM,
|
|
|
+ perHourHouseholdsW: this.queryParams.perHourHouseholdsW,
|
|
|
+ city: this.queryParams.city,
|
|
|
+ county: this.queryParams.county,
|
|
|
+ station: this.queryParams.station,
|
|
|
+ lineCode: this.queryParams.lineCode,
|
|
|
+ lineName: this.queryParams.lineName,
|
|
|
+ perHourHouseholdsArtif: this.queryParams.perHourHouseholdsArtif,
|
|
|
+ declarAgency: this.queryParams.declarAgency,
|
|
|
+ isMaintenance: this.queryParams.isMaintenance,
|
|
|
+ isApprove: this.queryParams.isApprove,
|
|
|
+ maintenanceFilePath: this.queryParams.maintenanceFilePath,
|
|
|
+ approveFilePath: this.queryParams.approveFilePath,
|
|
|
+ startDate: this.queryParams.reportDate[0],
|
|
|
+ endDate: this.queryParams.reportDate[1]
|
|
|
});
|
|
|
if (res) {
|
|
|
const elink = document.createElement("a");
|