|
|
@@ -1,154 +1,164 @@
|
|
|
<template>
|
|
|
- <ContentWrap>
|
|
|
- <!-- 搜索工作栏 -->
|
|
|
- <el-form
|
|
|
- class="-mb-15px"
|
|
|
- :model="queryParams"
|
|
|
- ref="queryFormRef"
|
|
|
- :inline="true"
|
|
|
- label-width="68px"
|
|
|
- >
|
|
|
- <el-form-item label="项目" prop="contractName">
|
|
|
- <el-input
|
|
|
- v-model="queryParams.contractName"
|
|
|
- placeholder="请输入项目"
|
|
|
- clearable
|
|
|
- @keyup.enter="handleQuery"
|
|
|
- class="!w-240px"
|
|
|
- />
|
|
|
- </el-form-item>
|
|
|
- <el-form-item label="任务" prop="taskName">
|
|
|
- <el-input
|
|
|
- v-model="queryParams.taskName"
|
|
|
- placeholder="请输入任务"
|
|
|
- clearable
|
|
|
- @keyup.enter="handleQuery"
|
|
|
- class="!w-240px"
|
|
|
- />
|
|
|
- </el-form-item>
|
|
|
- <el-form-item label="创建时间" prop="createTime">
|
|
|
- <el-date-picker
|
|
|
- v-model="queryParams.createTime"
|
|
|
- value-format="YYYY-MM-DD HH:mm:ss"
|
|
|
- type="daterange"
|
|
|
- start-placeholder="开始日期"
|
|
|
- end-placeholder="结束日期"
|
|
|
- :default-time="[new Date('1 00:00:00'), new Date('1 23:59:59')]"
|
|
|
- class="!w-220px"
|
|
|
- />
|
|
|
- </el-form-item>
|
|
|
- <el-form-item>
|
|
|
- <el-button @click="handleQuery"><Icon icon="ep:search" class="mr-5px" /> 搜索</el-button>
|
|
|
- <el-button @click="resetQuery"><Icon icon="ep:refresh" class="mr-5px" /> 重置</el-button>
|
|
|
- <el-button
|
|
|
- type="primary"
|
|
|
- plain
|
|
|
- @click="openForm('create')"
|
|
|
- v-hasPermi="['pms:iot-rd-daily-report:create']"
|
|
|
+ <el-row :gutter="20">
|
|
|
+ <el-col :span="4" :xs="24">
|
|
|
+ <ContentWrap class="h-1/1">
|
|
|
+ <DeptTree2 :deptId="rootDeptId" @node-click="handleDeptNodeClick" />
|
|
|
+ </ContentWrap>
|
|
|
+ </el-col>
|
|
|
+ <el-col :span="20" :xs="24">
|
|
|
+ <ContentWrap>
|
|
|
+ <!-- 搜索工作栏 -->
|
|
|
+ <el-form
|
|
|
+ class="-mb-15px"
|
|
|
+ :model="queryParams"
|
|
|
+ ref="queryFormRef"
|
|
|
+ :inline="true"
|
|
|
+ label-width="68px"
|
|
|
>
|
|
|
- <Icon icon="ep:plus" class="mr-5px" /> 新增
|
|
|
- </el-button>
|
|
|
- <el-button
|
|
|
- type="success"
|
|
|
- plain
|
|
|
- @click="handleExport"
|
|
|
- :loading="exportLoading"
|
|
|
- v-hasPermi="['pms:iot-rd-daily-report:export']"
|
|
|
- >
|
|
|
- <Icon icon="ep:download" class="mr-5px" /> 导出
|
|
|
- </el-button>
|
|
|
- </el-form-item>
|
|
|
- </el-form>
|
|
|
- </ContentWrap>
|
|
|
-
|
|
|
- <!-- 列表 -->
|
|
|
- <ContentWrap ref="tableContainerRef">
|
|
|
- <el-table ref="tableRef" v-loading="loading" :data="list" :stripe="true" :show-overflow-tooltip="true">
|
|
|
- <el-table-column label="主键id" align="center" prop="id" v-if="false"/>
|
|
|
- <el-table-column
|
|
|
- label="创建时间"
|
|
|
- align="center"
|
|
|
- prop="createTime"
|
|
|
- :formatter="dateFormatter"
|
|
|
- :width="columnWidths.createTime"
|
|
|
- />
|
|
|
- <el-table-column label="施工队伍" align="center" prop="deptName" :width="columnWidths.deptName"/>
|
|
|
- <el-table-column label="项目" align="center" prop="contractName" :width="columnWidths.contractName"/>
|
|
|
- <el-table-column label="任务" align="center" prop="taskName" :width="columnWidths.taskName"/>
|
|
|
- <el-table-column label="时间节点" align="center" prop="timeRange" :width="columnWidths.timeRange"/>
|
|
|
- <el-table-column :label="t('project.status')" align="center" prop="rdStatus" :width="columnWidths.rdStatus">
|
|
|
- <template #default="scope">
|
|
|
- <dict-tag :type="DICT_TYPE.PMS_PROJECT_RD_STATUS" :value="scope.row.rdStatus" />
|
|
|
- </template>
|
|
|
- </el-table-column>
|
|
|
- <!--
|
|
|
- <el-table-column label="项目类别(钻井 修井 注氮 酸化压裂... )" align="center" prop="projectClassification" />
|
|
|
- <el-table-column label="施工工艺" align="center" prop="techniqueIds" /> -->
|
|
|
- <!--
|
|
|
- <el-table-column label="施工设备" align="center" prop="deviceIds" /> -->
|
|
|
- <!--
|
|
|
- <el-table-column label="时间节点-结束" align="center" prop="endTime" /> -->
|
|
|
- <el-table-column label="当日施工井" align="center" prop="cumulativeWorkingWell" :width="columnWidths.cumulativeWorkingWell"/>
|
|
|
- <el-table-column label="当日施工层" align="center" prop="cumulativeWorkingLayers" :width="columnWidths.cumulativeWorkingLayers"/>
|
|
|
- <el-table-column label="当日泵车台次" align="center" prop="dailyPumpTrips" :width="columnWidths.dailyPumpTrips"/>
|
|
|
- <el-table-column label="当日仪表/混砂" align="center" prop="dailyToolsSand" :width="columnWidths.dailyToolsSand"/>
|
|
|
- <el-table-column label="趟数" align="center" prop="runCount" :width="columnWidths.runCount"/>
|
|
|
- <el-table-column label="桥塞" align="center" prop="bridgePlug" :width="columnWidths.bridgePlug"/>
|
|
|
- <el-table-column label="水方量" align="center" prop="waterVolume" :width="columnWidths.waterVolume"/>
|
|
|
- <el-table-column label="时间H" align="center" prop="hourCount" :width="columnWidths.hourCount"/>
|
|
|
- <el-table-column
|
|
|
- label="施工开始日期"
|
|
|
- align="center"
|
|
|
- prop="constructionStartDate"
|
|
|
- :formatter="dateFormatter"
|
|
|
- :width="columnWidths.constructionStartDate"
|
|
|
- />
|
|
|
- <el-table-column
|
|
|
- label="施工结束日期"
|
|
|
- align="center"
|
|
|
- prop="constructionEndDate"
|
|
|
- :formatter="dateFormatter"
|
|
|
- :width="columnWidths.constructionEndDate"
|
|
|
- />
|
|
|
- <el-table-column label="当日生产动态" align="center" prop="productionStatus" :width="columnWidths.productionStatus"/>
|
|
|
- <el-table-column label="下步工作计划" align="center" prop="nextPlan" :width="columnWidths.nextPlan"/>
|
|
|
- <el-table-column label="外租设备" align="center" prop="externalRental" :width="columnWidths.externalRental"/>
|
|
|
- <el-table-column label="故障情况" align="center" prop="malfunction" :width="columnWidths.malfunction"/>
|
|
|
- <el-table-column label="故障误工H" align="center" prop="faultDowntime" :width="columnWidths.faultDowntime"/>
|
|
|
-
|
|
|
- <el-table-column label="操作" align="center" min-width="120px" fixed="right">
|
|
|
- <template #default="scope">
|
|
|
- <el-button
|
|
|
- link
|
|
|
- type="success"
|
|
|
- @click="handleDetail(scope.row.id)"
|
|
|
- v-hasPermi="['pms:iot-rd-daily-report:query']"
|
|
|
- >
|
|
|
- 查看
|
|
|
- </el-button>
|
|
|
- <el-button
|
|
|
- link
|
|
|
- type="warning"
|
|
|
- @click="handleApprove(scope.row.id)"
|
|
|
- v-hasPermi="['pms:iot-rd-daily-report:update']"
|
|
|
- v-if="scope.row.auditStatus === 10"
|
|
|
- >
|
|
|
- 审批
|
|
|
- </el-button>
|
|
|
- </template>
|
|
|
- </el-table-column>
|
|
|
- </el-table>
|
|
|
- <!-- 分页 -->
|
|
|
- <Pagination
|
|
|
- :total="total"
|
|
|
- v-model:page="queryParams.pageNo"
|
|
|
- v-model:limit="queryParams.pageSize"
|
|
|
- @pagination="getList"
|
|
|
- />
|
|
|
- </ContentWrap>
|
|
|
-
|
|
|
- <!-- 表单弹窗:添加/修改 -->
|
|
|
- <IotRdDailyReportForm ref="formRef" @success="getList" />
|
|
|
+ <el-form-item label="项目" prop="contractName">
|
|
|
+ <el-input
|
|
|
+ v-model="queryParams.contractName"
|
|
|
+ placeholder="请输入项目"
|
|
|
+ clearable
|
|
|
+ @keyup.enter="handleQuery"
|
|
|
+ class="!w-240px"
|
|
|
+ />
|
|
|
+ </el-form-item>
|
|
|
+ <el-form-item label="任务" prop="taskName">
|
|
|
+ <el-input
|
|
|
+ v-model="queryParams.taskName"
|
|
|
+ placeholder="请输入任务"
|
|
|
+ clearable
|
|
|
+ @keyup.enter="handleQuery"
|
|
|
+ class="!w-240px"
|
|
|
+ />
|
|
|
+ </el-form-item>
|
|
|
+ <el-form-item label="创建时间" prop="createTime">
|
|
|
+ <el-date-picker
|
|
|
+ v-model="queryParams.createTime"
|
|
|
+ value-format="YYYY-MM-DD HH:mm:ss"
|
|
|
+ type="daterange"
|
|
|
+ start-placeholder="开始日期"
|
|
|
+ end-placeholder="结束日期"
|
|
|
+ :default-time="[new Date('1 00:00:00'), new Date('1 23:59:59')]"
|
|
|
+ class="!w-220px"
|
|
|
+ />
|
|
|
+ </el-form-item>
|
|
|
+ <el-form-item>
|
|
|
+ <el-button @click="handleQuery"><Icon icon="ep:search" class="mr-5px" /> 搜索</el-button>
|
|
|
+ <el-button @click="resetQuery"><Icon icon="ep:refresh" class="mr-5px" /> 重置</el-button>
|
|
|
+ <el-button
|
|
|
+ type="primary"
|
|
|
+ plain
|
|
|
+ @click="openForm('create')"
|
|
|
+ v-hasPermi="['pms:iot-rd-daily-report:create']"
|
|
|
+ >
|
|
|
+ <Icon icon="ep:plus" class="mr-5px" /> 新增
|
|
|
+ </el-button>
|
|
|
+ <el-button
|
|
|
+ type="success"
|
|
|
+ plain
|
|
|
+ @click="handleExport"
|
|
|
+ :loading="exportLoading"
|
|
|
+ v-hasPermi="['pms:iot-rd-daily-report:export']"
|
|
|
+ >
|
|
|
+ <Icon icon="ep:download" class="mr-5px" /> 导出
|
|
|
+ </el-button>
|
|
|
+ </el-form-item>
|
|
|
+ </el-form>
|
|
|
+ </ContentWrap>
|
|
|
+
|
|
|
+ <!-- 列表 -->
|
|
|
+ <ContentWrap ref="tableContainerRef">
|
|
|
+ <el-table ref="tableRef" v-loading="loading" :data="list" :stripe="true" :show-overflow-tooltip="true">
|
|
|
+ <el-table-column label="主键id" align="center" prop="id" v-if="false"/>
|
|
|
+ <el-table-column
|
|
|
+ label="创建时间"
|
|
|
+ align="center"
|
|
|
+ prop="createTime"
|
|
|
+ :formatter="dateFormatter"
|
|
|
+ :width="columnWidths.createTime"
|
|
|
+ />
|
|
|
+ <el-table-column label="施工队伍" align="center" prop="deptName" :width="columnWidths.deptName"/>
|
|
|
+ <el-table-column label="项目" align="center" prop="contractName" :width="columnWidths.contractName"/>
|
|
|
+ <el-table-column label="任务" align="center" prop="taskName" :width="columnWidths.taskName"/>
|
|
|
+ <el-table-column label="时间节点" align="center" prop="timeRange" :width="columnWidths.timeRange"/>
|
|
|
+ <el-table-column :label="t('project.status')" align="center" prop="rdStatus" :width="columnWidths.rdStatus">
|
|
|
+ <template #default="scope">
|
|
|
+ <dict-tag :type="DICT_TYPE.PMS_PROJECT_RD_STATUS" :value="scope.row.rdStatus" />
|
|
|
+ </template>
|
|
|
+ </el-table-column>
|
|
|
+ <!--
|
|
|
+ <el-table-column label="项目类别(钻井 修井 注氮 酸化压裂... )" align="center" prop="projectClassification" />
|
|
|
+ <el-table-column label="施工工艺" align="center" prop="techniqueIds" /> -->
|
|
|
+ <!--
|
|
|
+ <el-table-column label="施工设备" align="center" prop="deviceIds" /> -->
|
|
|
+ <!--
|
|
|
+ <el-table-column label="时间节点-结束" align="center" prop="endTime" /> -->
|
|
|
+ <el-table-column label="当日施工井" align="center" prop="cumulativeWorkingWell" :width="columnWidths.cumulativeWorkingWell"/>
|
|
|
+ <el-table-column label="当日施工层" align="center" prop="cumulativeWorkingLayers" :width="columnWidths.cumulativeWorkingLayers"/>
|
|
|
+ <el-table-column label="当日泵车台次" align="center" prop="dailyPumpTrips" :width="columnWidths.dailyPumpTrips"/>
|
|
|
+ <el-table-column label="当日仪表/混砂" align="center" prop="dailyToolsSand" :width="columnWidths.dailyToolsSand"/>
|
|
|
+ <el-table-column label="趟数" align="center" prop="runCount" :width="columnWidths.runCount"/>
|
|
|
+ <el-table-column label="桥塞" align="center" prop="bridgePlug" :width="columnWidths.bridgePlug"/>
|
|
|
+ <el-table-column label="水方量" align="center" prop="waterVolume" :width="columnWidths.waterVolume"/>
|
|
|
+ <el-table-column label="时间H" align="center" prop="hourCount" :width="columnWidths.hourCount"/>
|
|
|
+ <el-table-column
|
|
|
+ label="施工开始日期"
|
|
|
+ align="center"
|
|
|
+ prop="constructionStartDate"
|
|
|
+ :formatter="dateFormatter"
|
|
|
+ :width="columnWidths.constructionStartDate"
|
|
|
+ />
|
|
|
+ <el-table-column
|
|
|
+ label="施工结束日期"
|
|
|
+ align="center"
|
|
|
+ prop="constructionEndDate"
|
|
|
+ :formatter="dateFormatter"
|
|
|
+ :width="columnWidths.constructionEndDate"
|
|
|
+ />
|
|
|
+ <el-table-column label="当日生产动态" align="center" prop="productionStatus" :width="columnWidths.productionStatus"/>
|
|
|
+ <el-table-column label="下步工作计划" align="center" prop="nextPlan" :width="columnWidths.nextPlan"/>
|
|
|
+ <el-table-column label="外租设备" align="center" prop="externalRental" :width="columnWidths.externalRental"/>
|
|
|
+ <el-table-column label="故障情况" align="center" prop="malfunction" :width="columnWidths.malfunction"/>
|
|
|
+ <el-table-column label="故障误工H" align="center" prop="faultDowntime" :width="columnWidths.faultDowntime"/>
|
|
|
+
|
|
|
+ <el-table-column label="操作" align="center" min-width="120px" fixed="right">
|
|
|
+ <template #default="scope">
|
|
|
+ <el-button
|
|
|
+ link
|
|
|
+ type="success"
|
|
|
+ @click="handleDetail(scope.row.id)"
|
|
|
+ v-hasPermi="['pms:iot-rd-daily-report:query']"
|
|
|
+ >
|
|
|
+ 查看
|
|
|
+ </el-button>
|
|
|
+ <el-button
|
|
|
+ link
|
|
|
+ type="warning"
|
|
|
+ @click="handleApprove(scope.row.id)"
|
|
|
+ v-hasPermi="['pms:iot-rd-daily-report:update']"
|
|
|
+ v-if="scope.row.auditStatus === 10"
|
|
|
+ >
|
|
|
+ 审批
|
|
|
+ </el-button>
|
|
|
+ </template>
|
|
|
+ </el-table-column>
|
|
|
+ </el-table>
|
|
|
+ <!-- 分页 -->
|
|
|
+ <Pagination
|
|
|
+ :total="total"
|
|
|
+ v-model:page="queryParams.pageNo"
|
|
|
+ v-model:limit="queryParams.pageSize"
|
|
|
+ @pagination="getList"
|
|
|
+ />
|
|
|
+ </ContentWrap>
|
|
|
+
|
|
|
+ <!-- 表单弹窗:添加/修改 -->
|
|
|
+ <IotRdDailyReportForm ref="formRef" @success="getList" />
|
|
|
+ </el-col>
|
|
|
+ </el-row>
|
|
|
+
|
|
|
</template>
|
|
|
|
|
|
<script setup lang="ts">
|
|
|
@@ -158,6 +168,7 @@ import { IotRdDailyReportApi, IotRdDailyReportVO } from '@/api/pms/iotrddailyrep
|
|
|
import IotRdDailyReportForm from './IotRdDailyReportForm.vue'
|
|
|
import {DICT_TYPE} from "@/utils/dict";
|
|
|
import { useRoute } from 'vue-router'
|
|
|
+import DeptTree2 from "@/views/pms/iotrhdailyreport/DeptTree2.vue";
|
|
|
|
|
|
|
|
|
/** 瑞都日报 列表 */
|
|
|
@@ -220,6 +231,8 @@ const queryParams = reactive({
|
|
|
const queryFormRef = ref() // 搜索的表单
|
|
|
const exportLoading = ref(false) // 导出的加载中
|
|
|
|
|
|
+const rootDeptId = ref(163)
|
|
|
+
|
|
|
// 表格引用
|
|
|
const tableRef = ref()
|
|
|
// 表格容器引用
|
|
|
@@ -393,6 +406,16 @@ const handleDetail = async (id: number) => {
|
|
|
}
|
|
|
}
|
|
|
|
|
|
+// 响应式变量存储选中的部门
|
|
|
+const selectedDept = ref<{ id: number; name: string }>()
|
|
|
+/** 处理部门被点击 */
|
|
|
+const handleDeptNodeClick = async (row) => {
|
|
|
+ // 记录选中的部门信息
|
|
|
+ selectedDept.value = { id: row.id, name: row.name }
|
|
|
+ queryParams.deptId = row.id
|
|
|
+ await getList()
|
|
|
+}
|
|
|
+
|
|
|
/** 审批按钮操作 */
|
|
|
const handleApprove = async (id: number) => {
|
|
|
try {
|