|
|
@@ -64,12 +64,12 @@
|
|
|
<!-- 列表 -->
|
|
|
<ContentWrap ref="tableContainerRef">
|
|
|
<el-table ref="tableRef" v-loading="loading" :data="list" :stripe="true" :show-overflow-tooltip="true">
|
|
|
- <el-table-column label="项目部" align="center" prop="projectDeptName" :width="columnWidths.deptName"/>
|
|
|
- <el-table-column label="队伍" align="center" prop="deptName" :width="columnWidths.contractName"/>
|
|
|
- <el-table-column label="甲方" align="center" prop="manufactureName" :width="columnWidths.taskName"/>
|
|
|
- <el-table-column label="井号" align="center" prop="wellName" :width="columnWidths.timeRange"/>
|
|
|
- <el-table-column label="工艺" align="center" prop="techniques" :width="columnWidths.timeRange"/>
|
|
|
- <el-table-column label="总工作量" align="center" prop="workloadDesign" :width="columnWidths.timeRange"/>
|
|
|
+ <el-table-column label="项目部" align="center" prop="projectDeptName" :width="columnWidths.projectDeptName"/>
|
|
|
+ <el-table-column label="队伍" align="center" prop="deptName" :width="columnWidths.deptName"/>
|
|
|
+ <el-table-column label="甲方" align="center" prop="manufactureName" :width="columnWidths.manufactureName"/>
|
|
|
+ <el-table-column label="井号" align="center" prop="wellName" :width="columnWidths.wellName"/>
|
|
|
+ <el-table-column label="工艺" align="center" prop="techniques" :width="columnWidths.techniques"/>
|
|
|
+ <el-table-column label="总工作量" align="center" prop="workloadDesign" :width="columnWidths.workloadDesign"/>
|
|
|
<!-- 已完成工作量分组列 -->
|
|
|
<el-table-column label="已完成工作量" align="center">
|
|
|
<!-- 动态生成列 -->
|
|
|
@@ -214,27 +214,13 @@ const getWorkloadByUnit = (items, unit) => {
|
|
|
// 列宽度配置
|
|
|
const columnWidths = ref({
|
|
|
id: '80px',
|
|
|
- deptName: '120px',
|
|
|
+ projectDeptName: '120px',
|
|
|
contractName: '120px',
|
|
|
- taskName: '120px',
|
|
|
- timeRange: '120px',
|
|
|
- rdStatus: '120px',
|
|
|
- cumulativeWorkingWell: '120px',
|
|
|
- cumulativeWorkingLayers: '120px',
|
|
|
- dailyPumpTrips: '120px',
|
|
|
- dailyToolsSand: '120px',
|
|
|
- runCount: '80px',
|
|
|
- bridgePlug: '80px',
|
|
|
- waterVolume: '100px',
|
|
|
- hourCount: '80px',
|
|
|
- constructionStartDate: '180px',
|
|
|
- constructionEndDate: '180px',
|
|
|
- productionStatus: '200px',
|
|
|
- nextPlan: '200px',
|
|
|
- externalRental: '120px',
|
|
|
- malfunction: '150px',
|
|
|
- faultDowntime: '120px',
|
|
|
- createTime: '180px',
|
|
|
+ deptName: '120px',
|
|
|
+ manufactureName: '200px',
|
|
|
+ wellName: '120px',
|
|
|
+ techniques: '120px',
|
|
|
+ workloadDesign: '120px',
|
|
|
operation: '120px'
|
|
|
})
|
|
|
|
|
|
@@ -293,27 +279,12 @@ const calculateColumnWidths = () => {
|
|
|
};
|
|
|
|
|
|
// 计算各列宽度
|
|
|
- calculateColumnWidth('deptName', '施工队伍', (row: any) => row.deptName);
|
|
|
- calculateColumnWidth('contractName', '项目', (row: any) => row.contractName);
|
|
|
- calculateColumnWidth('taskName', '任务', (row: any) => row.taskName);
|
|
|
- calculateColumnWidth('timeRange', '时间节点', (row: any) => row.timeRange);
|
|
|
- calculateColumnWidth('rdStatus', t('project.status'), (row: any) => row.rdStatus);
|
|
|
- calculateColumnWidth('cumulativeWorkingWell', '累计施工井', (row: any) => row.cumulativeWorkingWell);
|
|
|
- calculateColumnWidth('cumulativeWorkingLayers', '累计施工层', (row: any) => row.cumulativeWorkingLayers);
|
|
|
- calculateColumnWidth('dailyPumpTrips', '当日泵车台次', (row: any) => row.dailyPumpTrips);
|
|
|
- calculateColumnWidth('dailyToolsSand', '当日仪表/混砂', (row: any) => row.dailyToolsSand);
|
|
|
- calculateColumnWidth('runCount', '趟数', (row: any) => row.runCount);
|
|
|
- calculateColumnWidth('bridgePlug', '桥塞', (row: any) => row.bridgePlug);
|
|
|
- calculateColumnWidth('waterVolume', '水方量', (row: any) => row.waterVolume);
|
|
|
- calculateColumnWidth('hourCount', '时间H', (row: any) => row.hourCount);
|
|
|
- calculateColumnWidth('constructionStartDate', '施工开始日期', (row: any) => dateFormatter(null, null, row.constructionStartDate));
|
|
|
- calculateColumnWidth('constructionEndDate', '施工结束日期', (row: any) => dateFormatter(null, null, row.constructionEndDate));
|
|
|
- calculateColumnWidth('productionStatus', '当日生产动态', (row: any) => row.productionStatus);
|
|
|
- calculateColumnWidth('nextPlan', '下步工作计划', (row: any) => row.nextPlan);
|
|
|
- calculateColumnWidth('externalRental', '外租设备', (row: any) => row.externalRental);
|
|
|
- calculateColumnWidth('malfunction', '故障情况', (row: any) => row.malfunction);
|
|
|
- calculateColumnWidth('faultDowntime', '故障误工H', (row: any) => row.faultDowntime);
|
|
|
- calculateColumnWidth('createTime', '创建时间', (row: any) => dateFormatter(null, null, row.createTime));
|
|
|
+ calculateColumnWidth('projectDeptName', '项目部', (row: any) => row.projectDeptName);
|
|
|
+ calculateColumnWidth('deptName', '队伍', (row: any) => row.deptName);
|
|
|
+ calculateColumnWidth('manufactureName', '甲方', (row: any) => row.manufactureName);
|
|
|
+ calculateColumnWidth('wellName', '井号', (row: any) => row.wellName);
|
|
|
+ calculateColumnWidth('techniques', '工艺', (row: any) => row.techniques);
|
|
|
+ calculateColumnWidth('workloadDesign', '总工作量', (row: any) => row.workloadDesign);
|
|
|
|
|
|
// 操作列固定宽度
|
|
|
newWidths.operation = '120px';
|