2023-08-10 21:09:49 +08:00
|
|
|
|
<template>
|
|
|
|
|
<div class="app-container">
|
2024-10-30 22:13:47 +08:00
|
|
|
|
<el-form :model="queryParams" ref="queryForm" size="small" :inline="true" v-show="showSearch" label-width="68px">
|
|
|
|
|
|
|
|
|
|
<el-form-item label="所属项目" prop="projectId">
|
|
|
|
|
<el-select v-model="queryParams.projectId" placeholder="请选择所属项目" filterable clearable>
|
|
|
|
|
<el-option v-for="(item, index) in projectOptions" :key="index" :label="item.projectName" :value="item.id">
|
|
|
|
|
</el-option>
|
|
|
|
|
</el-select>
|
2023-08-10 21:09:49 +08:00
|
|
|
|
</el-form-item>
|
2024-10-30 22:13:47 +08:00
|
|
|
|
|
2024-03-21 23:11:50 +08:00
|
|
|
|
<el-form-item label="隐患分类" prop="roleTypes">
|
2024-10-30 22:13:47 +08:00
|
|
|
|
<el-select v-model="queryParams.roleTypes" multiple placeholder="请选择隐患分类" clearable collapse-tags>
|
|
|
|
|
<el-option v-for="dict in roleTypeOpts" :key="dict.value" :label="dict.label" :value="dict.value" />
|
2023-09-14 00:58:30 +08:00
|
|
|
|
</el-select>
|
2023-08-10 21:09:49 +08:00
|
|
|
|
</el-form-item>
|
2023-08-12 12:18:27 +08:00
|
|
|
|
<el-form-item label="隐患描述" prop="workParts">
|
2024-10-30 22:13:47 +08:00
|
|
|
|
<el-input v-model="queryParams.workParts" placeholder="请输入隐患描述" clearable @keyup.enter.native="handleQuery" />
|
2023-08-12 12:18:27 +08:00
|
|
|
|
</el-form-item>
|
2023-08-10 21:09:49 +08:00
|
|
|
|
<el-form-item label="隐患类型" prop="dangerType">
|
|
|
|
|
<el-select v-model="queryParams.dangerType" placeholder="隐患类型" clearable>
|
2024-10-30 22:13:47 +08:00
|
|
|
|
<el-option v-for="dict in dict.type.ssp_zlyhlx" :key="dict.value" :label="dict.label" :value="dict.value" />
|
2023-08-10 21:09:49 +08:00
|
|
|
|
</el-select>
|
|
|
|
|
</el-form-item>
|
2024-05-15 01:53:12 +08:00
|
|
|
|
<el-form-item label="整改用户" prop="lordSent">
|
2024-10-30 22:13:47 +08:00
|
|
|
|
<el-input v-model="queryParams.lordSent" placeholder="请输入整改人姓名/联系方式" clearable
|
|
|
|
|
@keyup.enter.native="handleQuery" />
|
2024-03-22 01:23:48 +08:00
|
|
|
|
</el-form-item>
|
2024-05-15 01:53:12 +08:00
|
|
|
|
<el-form-item label="提交用户" prop="createBy">
|
2024-10-30 22:13:47 +08:00
|
|
|
|
<el-input v-model="queryParams.createBy" placeholder="请输入提交人姓名/联系方式" clearable
|
|
|
|
|
@keyup.enter.native="handleQuery" />
|
2024-03-24 20:09:06 +08:00
|
|
|
|
</el-form-item>
|
2024-10-30 22:13:47 +08:00
|
|
|
|
<el-form-item label="责任主体" prop="projectDeptId" v-hasPermi="['project:project:zgs']">
|
|
|
|
|
<el-select v-model="queryParams.projectDeptId" placeholder="请选择责任主体" clearable>
|
|
|
|
|
<el-option v-for="dict in depts" :key="dict.deptId" :label="dict.deptName" :value="dict.deptId"></el-option>
|
2023-08-15 23:58:19 +08:00
|
|
|
|
</el-select>
|
2023-08-12 12:18:27 +08:00
|
|
|
|
</el-form-item>
|
2024-05-15 01:53:12 +08:00
|
|
|
|
<el-form-item label="提交时间">
|
2024-10-30 22:13:47 +08:00
|
|
|
|
<el-date-picker v-model="daterangeMarksTime" style="width: 240px" value-format="yyyy-MM-dd" type="daterange"
|
|
|
|
|
range-separator="-" start-placeholder="开始日期" end-placeholder="结束日期"></el-date-picker>
|
2024-05-15 01:53:12 +08:00
|
|
|
|
</el-form-item>
|
2023-08-10 21:09:49 +08:00
|
|
|
|
<el-form-item>
|
2024-10-30 22:13:47 +08:00
|
|
|
|
<el-button type="primary" icon="el-icon-search" size="mini" @click="handleQuery">搜索</el-button>
|
2023-08-10 21:09:49 +08:00
|
|
|
|
<el-button icon="el-icon-refresh" size="mini" @click="resetQuery">重置</el-button>
|
2024-10-30 22:13:47 +08:00
|
|
|
|
<el-button icon="el-icon-download" size="mini" v-hasPermi="['trouble:sspProblemmodify:export']"
|
|
|
|
|
@click="handleExport">导出</el-button>
|
2023-08-10 21:09:49 +08:00
|
|
|
|
</el-form-item>
|
|
|
|
|
</el-form>
|
|
|
|
|
|
|
|
|
|
<!-- <el-row :gutter="10" class="mb8">
|
|
|
|
|
<el-col :span="1.5">
|
|
|
|
|
<el-button
|
|
|
|
|
type="primary"
|
|
|
|
|
plain
|
|
|
|
|
icon="el-icon-plus"
|
|
|
|
|
size="mini"
|
|
|
|
|
@click="handleAdd"
|
|
|
|
|
v-hasPermi="['trouble:sspProblemmodify:add']"
|
|
|
|
|
>新增</el-button>
|
|
|
|
|
</el-col>
|
|
|
|
|
<el-col :span="1.5">
|
|
|
|
|
<el-button
|
|
|
|
|
type="success"
|
|
|
|
|
plain
|
|
|
|
|
icon="el-icon-edit"
|
|
|
|
|
size="mini"
|
|
|
|
|
:disabled="single"
|
|
|
|
|
@click="handleUpdate"
|
|
|
|
|
v-hasPermi="['trouble:sspProblemmodify:edit']"
|
|
|
|
|
>修改</el-button>
|
|
|
|
|
</el-col>
|
|
|
|
|
<el-col :span="1.5">
|
|
|
|
|
<el-button
|
|
|
|
|
type="danger"
|
|
|
|
|
plain
|
|
|
|
|
icon="el-icon-delete"
|
|
|
|
|
size="mini"
|
|
|
|
|
:disabled="multiple"
|
|
|
|
|
@click="handleDelete"
|
|
|
|
|
v-hasPermi="['trouble:sspProblemmodify:remove']"
|
|
|
|
|
>删除</el-button>
|
|
|
|
|
</el-col>
|
|
|
|
|
<el-col :span="1.5">
|
|
|
|
|
<el-button
|
|
|
|
|
type="warning"
|
|
|
|
|
plain
|
|
|
|
|
icon="el-icon-download"
|
|
|
|
|
size="mini"
|
|
|
|
|
@click="handleExport"
|
|
|
|
|
v-hasPermi="['trouble:sspProblemmodify:export']"
|
|
|
|
|
>导出</el-button>
|
|
|
|
|
</el-col>
|
|
|
|
|
<right-toolbar :showSearch.sync="showSearch" @queryTable="getList"></right-toolbar>
|
|
|
|
|
</el-row>-->
|
|
|
|
|
|
2024-04-20 16:19:07 +08:00
|
|
|
|
<el-tabs type="card" v-model="activeName" @tab-click="handleClick">
|
2023-08-17 23:39:50 +08:00
|
|
|
|
<el-tab-pane :label="tabs.all" name="all"></el-tab-pane>
|
|
|
|
|
<el-tab-pane :label="tabs.dzg" name="dzg"></el-tab-pane>
|
|
|
|
|
<el-tab-pane :label="tabs.dqr" name="dqr"></el-tab-pane>
|
|
|
|
|
<el-tab-pane :label="tabs.ycl" name="ycl"></el-tab-pane>
|
|
|
|
|
<el-tab-pane :label="tabs.zgcs" name="zgcs"></el-tab-pane>
|
2024-10-30 22:13:47 +08:00
|
|
|
|
<el-table v-loading="loading" :data="sspProblemmodifyList" @selection-change="handleSelectionChange" stripe>
|
2023-08-15 23:58:19 +08:00
|
|
|
|
<el-table-column type="selection" width="40" align="center" v-if="false" />
|
2024-10-30 22:13:47 +08:00
|
|
|
|
<el-table-column label="项目名称" align="center" prop="problemArea" width="200" fixed="left"
|
|
|
|
|
show-overflow-tooltip />
|
2023-08-15 23:58:19 +08:00
|
|
|
|
<el-table-column label="隐患图片" align="center" property="path" width="220">
|
|
|
|
|
<template slot-scope="scope">
|
2024-10-30 22:13:47 +08:00
|
|
|
|
<el-image ref="preview" style="width: 200px; height: 100px" :src="scope.row.marksPicture + '.min.jpg'"
|
|
|
|
|
@click="onPreview(scope.row.smarkUrl)">
|
2023-08-15 23:58:19 +08:00
|
|
|
|
</el-image>
|
|
|
|
|
</template>
|
|
|
|
|
</el-table-column>
|
|
|
|
|
<el-table-column label="隐患类型" align="center" prop="dangerType">
|
|
|
|
|
<template slot-scope="scope">
|
|
|
|
|
<dict-tag :options="dict.type.ssp_zlyhlx" :value="scope.row.dangerType" />
|
|
|
|
|
</template>
|
|
|
|
|
</el-table-column>
|
2024-10-30 22:13:47 +08:00
|
|
|
|
<el-table-column label="隐患描述" align="center" prop="workParts" width="100" show-overflow-tooltip />
|
|
|
|
|
<el-table-column label="整改要求" align="center" prop="changeInfo" width="200" show-overflow-tooltip />
|
|
|
|
|
<el-table-column label="整改截至时间" align="center" prop="nickedTime" width="135">
|
2023-08-15 23:58:19 +08:00
|
|
|
|
<template slot-scope="scope">
|
2023-08-16 23:37:57 +08:00
|
|
|
|
<span>{{ parseTime(scope.row.nickedTime, "{y}-{m}-{d}") }}</span>
|
2023-08-15 23:58:19 +08:00
|
|
|
|
</template>
|
|
|
|
|
</el-table-column>
|
2024-10-30 22:13:47 +08:00
|
|
|
|
<el-table-column label="隐患整改人" align="left" width="120" show-overflow-tooltip>
|
2023-08-15 23:58:19 +08:00
|
|
|
|
<template slot-scope="scope">
|
|
|
|
|
<div>{{ scope.row.lordSent }}</div>
|
|
|
|
|
<div>{{ scope.row.lordSentUser }}</div>
|
2024-07-01 23:56:58 +08:00
|
|
|
|
<div>
|
|
|
|
|
<el-tag v-if="scope.row.zgDeptType == '1'" size="small">
|
|
|
|
|
集团公司
|
|
|
|
|
</el-tag>
|
|
|
|
|
<el-tag v-if="scope.row.zgDeptType == '11'" size="small">
|
|
|
|
|
子公司
|
|
|
|
|
</el-tag>
|
|
|
|
|
<el-tag v-if="scope.row.zgDeptType == '2'" size="small">
|
|
|
|
|
总包单位
|
|
|
|
|
</el-tag>
|
|
|
|
|
<el-tag v-if="scope.row.zgDeptType == '3'" size="small">
|
|
|
|
|
分包单位
|
|
|
|
|
</el-tag>
|
|
|
|
|
<el-tag v-if="scope.row.zgDeptType == '4'" size="small">
|
|
|
|
|
监理单位
|
|
|
|
|
</el-tag>
|
|
|
|
|
</div>
|
2023-08-15 23:58:19 +08:00
|
|
|
|
</template>
|
|
|
|
|
</el-table-column>
|
|
|
|
|
<el-table-column label="流程状态" align="center" prop="checkState">
|
|
|
|
|
<template slot-scope="scope">
|
2024-10-30 22:13:47 +08:00
|
|
|
|
<dict-tag :options="dict.type.smz_ssp_checkstate" :value="scope.row.checkState" />
|
2023-08-15 23:58:19 +08:00
|
|
|
|
</template>
|
|
|
|
|
</el-table-column>
|
|
|
|
|
<el-table-column label="复检人" align="left" width="120" show-overflow-tooltip>
|
|
|
|
|
<template slot-scope="scope">
|
|
|
|
|
<div>{{ scope.row.recheckSend }}</div>
|
|
|
|
|
<div>{{ scope.row.recheckSendUser }}</div>
|
2024-07-01 23:56:58 +08:00
|
|
|
|
<div>
|
|
|
|
|
<el-tag v-if="scope.row.fjDeptType == '1'" size="small" effect="plain">
|
|
|
|
|
集团公司
|
|
|
|
|
</el-tag>
|
|
|
|
|
<el-tag v-if="scope.row.fjDeptType == '11'" size="small" effect="plain">
|
|
|
|
|
子公司
|
|
|
|
|
</el-tag>
|
|
|
|
|
<el-tag v-if="scope.row.fjDeptType == '2'" size="small" effect="plain">
|
|
|
|
|
总包单位
|
|
|
|
|
</el-tag>
|
|
|
|
|
<el-tag v-if="scope.row.fjDeptType == '3'" size="small" effect="plain">
|
|
|
|
|
分包单位
|
|
|
|
|
</el-tag>
|
|
|
|
|
<el-tag v-if="scope.row.fjDeptType == '4'" size="small" effect="plain">
|
|
|
|
|
监理单位
|
|
|
|
|
</el-tag>
|
|
|
|
|
</div>
|
2023-08-15 23:58:19 +08:00
|
|
|
|
</template>
|
|
|
|
|
</el-table-column>
|
2024-10-30 22:13:47 +08:00
|
|
|
|
<el-table-column label="抄送人" align="left" prop="copySend" width="120" show-overflow-tooltip>
|
2023-08-15 23:58:19 +08:00
|
|
|
|
<template slot-scope="scope">
|
|
|
|
|
<div>{{ scope.row.copySend }}</div>
|
|
|
|
|
<div>{{ scope.row.copySendUser }}</div>
|
|
|
|
|
</template>
|
|
|
|
|
</el-table-column>
|
2024-10-30 22:13:47 +08:00
|
|
|
|
<el-table-column label="提交用户" align="left" prop="createUser" width="120" show-overflow-tooltip>
|
2023-08-15 23:58:19 +08:00
|
|
|
|
<template slot-scope="scope">
|
2023-08-17 23:39:50 +08:00
|
|
|
|
<div>{{ scope.row.createBy }}</div>
|
|
|
|
|
<div>{{ scope.row.createUser }}</div>
|
|
|
|
|
</template>
|
|
|
|
|
</el-table-column>
|
|
|
|
|
<el-table-column label="提交时间" align="center" prop="createTime" width="100">
|
|
|
|
|
<template slot-scope="scope">
|
2024-10-30 22:13:47 +08:00
|
|
|
|
<span>{{
|
|
|
|
|
parseTime(scope.row.createTime, "{y}-{m}-{d} {h}:{i}")
|
|
|
|
|
}}</span>
|
2023-08-15 23:58:19 +08:00
|
|
|
|
</template>
|
|
|
|
|
</el-table-column>
|
2024-10-30 22:13:47 +08:00
|
|
|
|
<el-table-column label="操作" align="center" class-name="small-padding fixed-width" fixed="right" width="120">
|
2023-08-15 23:58:19 +08:00
|
|
|
|
<template slot-scope="scope">
|
|
|
|
|
<!-- <el-button v-if="scope.row.marksVideo != null && scope.row.marksVideo != ''"
|
2023-08-10 21:09:49 +08:00
|
|
|
|
size="mini"
|
|
|
|
|
type="text"
|
|
|
|
|
icon="el-icon-video-play"
|
|
|
|
|
@click="handlePlay(scope.row)"
|
|
|
|
|
v-hasPermi="['trouble:sspMarks:query']"
|
|
|
|
|
>视频</el-button> -->
|
2024-10-30 22:13:47 +08:00
|
|
|
|
<el-button v-if="getIsModify(scope.row)" size="mini" type="text" icon="el-icon-check"
|
|
|
|
|
@click="handleModify(scope.row)" v-hasPermi="['trouble:sspProblemmodify:edit']">处理</el-button>
|
|
|
|
|
<el-button size="mini" type="text" icon="el-icon-notebook-2" @click="handleDetail(scope.row)"
|
|
|
|
|
v-hasPermi="['trouble:sspProblemmodify:query']">详情</el-button>
|
|
|
|
|
<el-button v-if="getIsVdel(scope.row)" size="mini" type="text" icon="el-icon-delete"
|
|
|
|
|
@click="handleDelete(scope.row)" v-hasPermi="['work:sspProblemmodify:remove']">删除</el-button>
|
2023-08-15 23:58:19 +08:00
|
|
|
|
</template>
|
|
|
|
|
</el-table-column>
|
|
|
|
|
</el-table>
|
2023-08-10 21:09:49 +08:00
|
|
|
|
|
2024-10-30 22:13:47 +08:00
|
|
|
|
<pagination v-show="total > 0" :total="total" :page.sync="queryParams.pageNum" :limit.sync="queryParams.pageSize"
|
|
|
|
|
@pagination="getList" />
|
2023-08-10 21:09:49 +08:00
|
|
|
|
</el-tabs>
|
|
|
|
|
|
|
|
|
|
<!-- 添加或修改质量整改对话框 -->
|
2024-10-30 22:13:47 +08:00
|
|
|
|
<el-dialog :title="title" :visible.sync="open" width="500px" append-to-body :close-on-click-modal="false"
|
|
|
|
|
:close-on-press-escape="false">
|
2023-08-10 21:09:49 +08:00
|
|
|
|
<el-form ref="form" :model="form" :rules="rules" label-width="80px">
|
|
|
|
|
<el-form-item label="项目id" prop="projectId">
|
|
|
|
|
<el-input v-model="form.projectId" placeholder="请输入项目id" />
|
|
|
|
|
</el-form-item>
|
|
|
|
|
<el-form-item label="拍摄位置" prop="problemArea">
|
|
|
|
|
<el-input v-model="form.problemArea" placeholder="请输入拍摄位置" />
|
|
|
|
|
</el-form-item>
|
2023-08-12 12:18:27 +08:00
|
|
|
|
<el-form-item label="隐患描述" prop="workParts">
|
|
|
|
|
<el-input v-model="form.workParts" placeholder="请输入隐患描述" />
|
2023-08-10 21:09:49 +08:00
|
|
|
|
</el-form-item>
|
|
|
|
|
<el-form-item label="整改要求" prop="changeInfo">
|
|
|
|
|
<el-input v-model="form.changeInfo" placeholder="请输入整改要求" />
|
|
|
|
|
</el-form-item>
|
|
|
|
|
<el-form-item label="主送人姓名" prop="lordSent">
|
|
|
|
|
<el-input v-model="form.lordSent" placeholder="请输入主送人姓名" />
|
|
|
|
|
</el-form-item>
|
|
|
|
|
<el-form-item label="主送人手机号" prop="lordSentUser">
|
|
|
|
|
<el-input v-model="form.lordSentUser" placeholder="请输入主送人手机号" />
|
|
|
|
|
</el-form-item>
|
|
|
|
|
<el-form-item label="抄送人姓名" prop="copySend">
|
|
|
|
|
<el-input v-model="form.copySend" placeholder="请输入抄送人姓名" />
|
|
|
|
|
</el-form-item>
|
|
|
|
|
<el-form-item label="抄送人手机号" prop="copySendUser">
|
|
|
|
|
<el-input v-model="form.copySendUser" placeholder="请输入抄送人手机号" />
|
|
|
|
|
</el-form-item>
|
|
|
|
|
<el-form-item label="流程状态" prop="checkState">
|
|
|
|
|
<el-input v-model="form.checkState" placeholder="请输入流程状态" />
|
|
|
|
|
</el-form-item>
|
|
|
|
|
<el-form-item label="留痕定位" prop="nickedArea">
|
|
|
|
|
<el-input v-model="form.nickedArea" placeholder="请输入留痕定位" />
|
|
|
|
|
</el-form-item>
|
|
|
|
|
<el-form-item label="留痕时间" prop="nickedTime">
|
2024-10-30 22:13:47 +08:00
|
|
|
|
<el-date-picker clearable v-model="form.nickedTime" type="date" value-format="yyyy-MM-dd"
|
|
|
|
|
placeholder="请选择留痕时间">
|
2023-08-10 21:09:49 +08:00
|
|
|
|
</el-date-picker>
|
|
|
|
|
</el-form-item>
|
|
|
|
|
<el-form-item label="工序名称" prop="processName">
|
|
|
|
|
<el-input v-model="form.processName" placeholder="请输入工序名称" />
|
|
|
|
|
</el-form-item>
|
|
|
|
|
<el-form-item label="工程名称" prop="projectName">
|
|
|
|
|
<el-input v-model="form.projectName" placeholder="请输入工程名称" />
|
|
|
|
|
</el-form-item>
|
|
|
|
|
<el-form-item label="留痕说明" prop="nickedInfo">
|
|
|
|
|
<el-input v-model="form.nickedInfo" placeholder="请输入留痕说明" />
|
|
|
|
|
</el-form-item>
|
|
|
|
|
<el-form-item label="审核人" prop="checkUser">
|
|
|
|
|
<el-input v-model="form.checkUser" placeholder="请输入审核人" />
|
|
|
|
|
</el-form-item>
|
|
|
|
|
<el-form-item label="审核人手机号" prop="checkUserPhone">
|
|
|
|
|
<el-input v-model="form.checkUserPhone" placeholder="请输入审核人手机号" />
|
|
|
|
|
</el-form-item>
|
|
|
|
|
<el-form-item label="删除状态" prop="isDel">
|
|
|
|
|
<el-input v-model="form.isDel" placeholder="请输入删除状态" />
|
|
|
|
|
</el-form-item>
|
|
|
|
|
<el-form-item label="创建人" prop="createUser">
|
|
|
|
|
<el-input v-model="form.createUser" placeholder="请输入创建人" />
|
|
|
|
|
</el-form-item>
|
|
|
|
|
<el-form-item label="修改人" prop="updateUser">
|
|
|
|
|
<el-input v-model="form.updateUser" placeholder="请输入修改人" />
|
|
|
|
|
</el-form-item>
|
|
|
|
|
</el-form>
|
|
|
|
|
<div slot="footer" class="dialog-footer">
|
|
|
|
|
<el-button type="primary" @click="submitForm">确 定</el-button>
|
|
|
|
|
<el-button @click="cancel">取 消</el-button>
|
|
|
|
|
</div>
|
|
|
|
|
</el-dialog>
|
|
|
|
|
|
|
|
|
|
<el-image-viewer v-if="showViewer" :on-close="closeViewer" :url-list="srcList" />
|
2024-05-15 01:53:12 +08:00
|
|
|
|
<sspProblemmodifyAuditinfoDrawer ref="sspProblemmodifyAuditinfoDrawer" />
|
2024-10-30 22:13:47 +08:00
|
|
|
|
<modifyProblemDrawer ref="modifyProblemDrawer" :closeCallBack="getList" />
|
|
|
|
|
<el-dialog title="视频播放" :visible.sync="openVideo" width="980px" :before-close="cancelVideo"
|
|
|
|
|
:close-on-click-modal="false" :close-on-press-escape="false" append-to-body>
|
|
|
|
|
<video ref="video" :src="videoSrc" controls="controls" autoplay="autoplay"
|
|
|
|
|
poster="../../../assets/images/video_loading.gif" style="max-height: 550px" />
|
2023-08-10 21:09:49 +08:00
|
|
|
|
<div slot="footer" class="dialog-footer">
|
|
|
|
|
<el-button @click="cancelVideo">关 闭</el-button>
|
|
|
|
|
</div>
|
|
|
|
|
</el-dialog>
|
|
|
|
|
</div>
|
|
|
|
|
</template>
|
|
|
|
|
|
|
|
|
|
<script>
|
2023-08-15 23:58:19 +08:00
|
|
|
|
import {
|
|
|
|
|
listSspProblemmodify,
|
|
|
|
|
getSspProblemmodify,
|
|
|
|
|
delSspProblemmodify,
|
|
|
|
|
addSspProblemmodify,
|
|
|
|
|
updateSspProblemmodify,
|
2023-08-17 23:39:50 +08:00
|
|
|
|
findGroupCount,
|
2023-08-15 23:58:19 +08:00
|
|
|
|
} from "@/api/trouble/sspProblemmodify";
|
|
|
|
|
import ElImageViewer from "element-ui/packages/image/src/image-viewer";
|
|
|
|
|
import sspProblemmodifyAuditinfoDrawer from "./sspProblemmodifyAuditinfoDrawer.vue";
|
2024-10-30 22:13:47 +08:00
|
|
|
|
import modifyProblemDrawer from "./modifyProblemDrawer.vue";
|
2023-08-10 21:09:49 +08:00
|
|
|
|
|
|
|
|
|
export default {
|
|
|
|
|
name: "SspProblemmodify",
|
2023-08-15 23:58:19 +08:00
|
|
|
|
components: {
|
|
|
|
|
ElImageViewer,
|
2024-05-15 01:53:12 +08:00
|
|
|
|
modifyProblemDrawer,
|
|
|
|
|
sspProblemmodifyAuditinfoDrawer,
|
2023-08-10 21:09:49 +08:00
|
|
|
|
},
|
2023-08-15 23:58:19 +08:00
|
|
|
|
dicts: ["ssp_zlyhlx", "sys_common_isdel", "smz_ssp_checkstate"],
|
2023-08-10 21:09:49 +08:00
|
|
|
|
data() {
|
|
|
|
|
return {
|
|
|
|
|
showViewer: false,
|
|
|
|
|
// 遮罩层
|
|
|
|
|
loading: true,
|
|
|
|
|
// 选中数组
|
|
|
|
|
ids: [],
|
|
|
|
|
// 非单个禁用
|
|
|
|
|
single: true,
|
|
|
|
|
// 非多个禁用
|
|
|
|
|
multiple: true,
|
|
|
|
|
// 显示搜索条件
|
|
|
|
|
showSearch: true,
|
|
|
|
|
// 总条数
|
|
|
|
|
total: 0,
|
|
|
|
|
// 质量整改表格数据
|
|
|
|
|
sspProblemmodifyList: [],
|
|
|
|
|
// 弹出层标题
|
|
|
|
|
title: "",
|
|
|
|
|
// 是否显示弹出层
|
|
|
|
|
open: false,
|
2023-08-15 23:58:19 +08:00
|
|
|
|
openVideo: false,
|
2023-08-10 21:09:49 +08:00
|
|
|
|
videoSrc: null,
|
|
|
|
|
// 更新时间时间范围
|
|
|
|
|
daterangeMarksTime: [],
|
|
|
|
|
// 查询参数
|
|
|
|
|
queryParams: {
|
|
|
|
|
pageNum: 1,
|
|
|
|
|
pageSize: 10,
|
|
|
|
|
activeName: null,
|
|
|
|
|
projectId: null,
|
|
|
|
|
infoType: 1,
|
|
|
|
|
problemArea: null,
|
|
|
|
|
workParts: null,
|
|
|
|
|
changeInfo: null,
|
|
|
|
|
lordSent: null,
|
|
|
|
|
lordSentUser: null,
|
|
|
|
|
copySend: null,
|
|
|
|
|
copySendUser: null,
|
|
|
|
|
checkState: null,
|
|
|
|
|
nickedArea: null,
|
|
|
|
|
nickedTime: null,
|
|
|
|
|
projectType: null,
|
|
|
|
|
processName: null,
|
|
|
|
|
projectName: null,
|
|
|
|
|
nickedInfo: null,
|
|
|
|
|
checkUser: null,
|
|
|
|
|
checkUserPhone: null,
|
|
|
|
|
isDel: null,
|
|
|
|
|
dangerType: null,
|
2024-03-24 20:09:06 +08:00
|
|
|
|
createBy: null,
|
2023-08-10 21:09:49 +08:00
|
|
|
|
createUser: null,
|
|
|
|
|
createTime: null,
|
|
|
|
|
updateUser: null,
|
2023-08-12 12:18:27 +08:00
|
|
|
|
updateTime: null,
|
2024-05-15 01:53:12 +08:00
|
|
|
|
roleTypes: [],
|
2023-08-15 23:58:19 +08:00
|
|
|
|
projectDeptId: null,
|
2023-08-10 21:09:49 +08:00
|
|
|
|
},
|
2023-08-12 12:18:27 +08:00
|
|
|
|
depts: null,
|
2023-08-10 21:09:49 +08:00
|
|
|
|
// 表单参数
|
|
|
|
|
form: {},
|
|
|
|
|
// 表单校验
|
2023-08-15 23:58:19 +08:00
|
|
|
|
rules: {},
|
2023-08-10 21:09:49 +08:00
|
|
|
|
srcList: [],
|
2023-08-15 23:58:19 +08:00
|
|
|
|
activeName: "dzg",
|
2023-08-17 23:39:50 +08:00
|
|
|
|
tabs: {
|
|
|
|
|
all: "全部数据(0)",
|
|
|
|
|
dzg: "待整改(0)",
|
|
|
|
|
dqr: "待复检(0)",
|
|
|
|
|
ycl: "整改完成(0)",
|
|
|
|
|
zgcs: "整改超时(0)",
|
|
|
|
|
},
|
2024-05-15 01:53:12 +08:00
|
|
|
|
roleTypeOpts: [
|
|
|
|
|
{ label: "集团", value: 3 },
|
|
|
|
|
{ label: "子公司", value: 4 },
|
|
|
|
|
{ label: "甲方代表", value: 5 },
|
|
|
|
|
{ label: "监理单位", value: 6 },
|
|
|
|
|
{ label: "总包单位", value: 7 },
|
|
|
|
|
],
|
|
|
|
|
myMinRoles: [],
|
2024-10-30 22:13:47 +08:00
|
|
|
|
projectOptions: [],
|
2024-05-15 01:53:12 +08:00
|
|
|
|
isAdmin: false,
|
2024-10-30 22:13:47 +08:00
|
|
|
|
nowUser: "",
|
2023-08-10 21:09:49 +08:00
|
|
|
|
};
|
|
|
|
|
},
|
|
|
|
|
created() {
|
2024-05-15 01:53:12 +08:00
|
|
|
|
this.nowUser = this.$store.getters.name;
|
|
|
|
|
this.myMinRoles = this.$store.getters.roles;
|
2024-10-30 22:13:47 +08:00
|
|
|
|
if (
|
|
|
|
|
this.myMinRoles.includes("admin") ||
|
|
|
|
|
this.myMinRoles.includes("super")
|
|
|
|
|
) {
|
2024-05-15 01:53:12 +08:00
|
|
|
|
this.isAdmin = true;
|
|
|
|
|
}
|
2023-08-17 23:39:50 +08:00
|
|
|
|
this.queryParams.activeName = this.activeName;
|
2023-08-10 21:09:49 +08:00
|
|
|
|
this.getList();
|
2023-08-15 23:58:19 +08:00
|
|
|
|
this.$api.publics.getZgsDeptList().then((d) => {
|
|
|
|
|
this.depts = d?.data || [];
|
|
|
|
|
});
|
2024-10-30 22:13:47 +08:00
|
|
|
|
this.$api.publics.getMyProjectList({}).then((response) => {
|
|
|
|
|
this.projectOptions = response.rows;
|
|
|
|
|
});
|
2023-08-10 21:09:49 +08:00
|
|
|
|
},
|
|
|
|
|
methods: {
|
|
|
|
|
onPreview(urls) {
|
|
|
|
|
var arrayurls = urls.split(",");
|
2023-08-15 23:58:19 +08:00
|
|
|
|
this.srcList = [];
|
2023-08-10 21:09:49 +08:00
|
|
|
|
arrayurls.forEach((v, i) => {
|
|
|
|
|
this.srcList.push(v);
|
|
|
|
|
});
|
2023-08-15 23:58:19 +08:00
|
|
|
|
this.showViewer = true;
|
2023-08-10 21:09:49 +08:00
|
|
|
|
},
|
|
|
|
|
closeViewer() {
|
2023-08-15 23:58:19 +08:00
|
|
|
|
this.showViewer = false;
|
2023-08-10 21:09:49 +08:00
|
|
|
|
},
|
|
|
|
|
/** 查询质量整改列表 */
|
|
|
|
|
getList() {
|
|
|
|
|
this.loading = true;
|
|
|
|
|
this.queryParams.params = {};
|
2023-08-15 23:58:19 +08:00
|
|
|
|
if (null != this.daterangeMarksTime && "" != this.daterangeMarksTime) {
|
2023-08-10 21:09:49 +08:00
|
|
|
|
this.queryParams.params["beginMarksTime"] = this.daterangeMarksTime[0];
|
|
|
|
|
this.queryParams.params["endMarksTime"] = this.daterangeMarksTime[1];
|
|
|
|
|
}
|
2023-08-17 23:39:50 +08:00
|
|
|
|
this.queryGroupCount();
|
2023-08-15 23:58:19 +08:00
|
|
|
|
listSspProblemmodify(this.queryParams).then((response) => {
|
2023-08-10 21:09:49 +08:00
|
|
|
|
this.sspProblemmodifyList = response.rows;
|
|
|
|
|
this.total = response.total;
|
|
|
|
|
this.loading = false;
|
|
|
|
|
});
|
|
|
|
|
},
|
2023-08-17 23:39:50 +08:00
|
|
|
|
queryGroupCount() {
|
|
|
|
|
findGroupCount(this.queryParams).then((response) => {
|
|
|
|
|
if (response && response.data) {
|
|
|
|
|
let sum = 0;
|
2023-08-19 17:53:03 +08:00
|
|
|
|
this.tabs.dzg = "待整改(0)";
|
2024-05-15 01:53:12 +08:00
|
|
|
|
let chk03 = 0;
|
|
|
|
|
if (response.data.check0) {
|
|
|
|
|
chk03 += response.data.check0;
|
2024-01-29 13:34:45 +08:00
|
|
|
|
}
|
2024-05-15 01:53:12 +08:00
|
|
|
|
if (response.data.check3) {
|
|
|
|
|
chk03 += response.data.check3;
|
2024-01-29 13:34:45 +08:00
|
|
|
|
}
|
2024-05-15 01:53:12 +08:00
|
|
|
|
if (chk03) {
|
2023-09-14 00:58:30 +08:00
|
|
|
|
sum += chk03;
|
|
|
|
|
this.tabs.dzg = "待整改(" + chk03 + ")";
|
2023-08-17 23:39:50 +08:00
|
|
|
|
}
|
2023-08-19 17:53:03 +08:00
|
|
|
|
this.tabs.dqr = "待复检(0)";
|
2023-08-17 23:39:50 +08:00
|
|
|
|
if (response.data.check1) {
|
|
|
|
|
sum += response.data.check1;
|
|
|
|
|
this.tabs.dqr = "待复检(" + response.data.check1 + ")";
|
|
|
|
|
}
|
2023-08-19 17:53:03 +08:00
|
|
|
|
this.tabs.ycl = "整改完成(0)";
|
2023-08-17 23:39:50 +08:00
|
|
|
|
if (response.data.check4) {
|
|
|
|
|
sum += response.data.check4;
|
|
|
|
|
this.tabs.ycl = "整改完成(" + response.data.check4 + ")";
|
|
|
|
|
}
|
|
|
|
|
this.tabs.all = "全部数据(" + sum + ")";
|
2023-08-19 17:53:03 +08:00
|
|
|
|
this.tabs.zgcs = "整改超时(0)";
|
2023-08-17 23:39:50 +08:00
|
|
|
|
if (response.data.check99) {
|
|
|
|
|
this.tabs.zgcs = "整改超时(" + response.data.check99 + ")";
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
},
|
2023-08-10 21:09:49 +08:00
|
|
|
|
// 取消按钮
|
|
|
|
|
cancel() {
|
|
|
|
|
this.open = false;
|
|
|
|
|
this.reset();
|
|
|
|
|
},
|
|
|
|
|
// 取消按钮
|
|
|
|
|
cancelVideo() {
|
2023-08-15 23:58:19 +08:00
|
|
|
|
this.videoSrc = null;
|
2023-08-10 21:09:49 +08:00
|
|
|
|
this.$refs.video.pause();
|
|
|
|
|
this.openVideo = false;
|
|
|
|
|
},
|
|
|
|
|
// 表单重置
|
|
|
|
|
reset() {
|
|
|
|
|
this.form = {
|
|
|
|
|
id: null,
|
|
|
|
|
projectId: null,
|
|
|
|
|
infoType: null,
|
|
|
|
|
problemArea: null,
|
|
|
|
|
workParts: null,
|
|
|
|
|
changeInfo: null,
|
|
|
|
|
lordSent: null,
|
|
|
|
|
lordSentUser: null,
|
|
|
|
|
copySend: null,
|
|
|
|
|
copySendUser: null,
|
|
|
|
|
checkState: null,
|
|
|
|
|
nickedArea: null,
|
|
|
|
|
nickedTime: null,
|
|
|
|
|
projectType: null,
|
|
|
|
|
processName: null,
|
|
|
|
|
projectName: null,
|
|
|
|
|
nickedInfo: null,
|
|
|
|
|
checkUser: null,
|
|
|
|
|
checkUserPhone: null,
|
|
|
|
|
isDel: null,
|
|
|
|
|
createUser: null,
|
|
|
|
|
createTime: null,
|
|
|
|
|
updateUser: null,
|
2024-05-15 01:53:12 +08:00
|
|
|
|
updateTime: null,
|
2023-08-10 21:09:49 +08:00
|
|
|
|
};
|
|
|
|
|
this.resetForm("form");
|
|
|
|
|
},
|
|
|
|
|
/** 搜索按钮操作 */
|
|
|
|
|
handleQuery() {
|
|
|
|
|
this.queryParams.pageNum = 1;
|
|
|
|
|
this.getList();
|
|
|
|
|
},
|
|
|
|
|
/** 重置按钮操作 */
|
|
|
|
|
resetQuery() {
|
2024-05-15 01:53:12 +08:00
|
|
|
|
this.queryParams.roleTypes = [];
|
2023-08-10 21:09:49 +08:00
|
|
|
|
this.daterangeMarksTime = [];
|
|
|
|
|
this.resetForm("queryForm");
|
|
|
|
|
this.handleQuery();
|
|
|
|
|
},
|
|
|
|
|
// 多选框选中数据
|
|
|
|
|
handleSelectionChange(selection) {
|
2023-08-15 23:58:19 +08:00
|
|
|
|
this.ids = selection.map((item) => item.id);
|
|
|
|
|
this.single = selection.length !== 1;
|
|
|
|
|
this.multiple = !selection.length;
|
2023-08-10 21:09:49 +08:00
|
|
|
|
},
|
|
|
|
|
/** 新增按钮操作 */
|
|
|
|
|
handleAdd() {
|
|
|
|
|
this.reset();
|
|
|
|
|
this.open = true;
|
|
|
|
|
this.title = "添加质量整改";
|
|
|
|
|
},
|
|
|
|
|
/** 修改按钮操作 */
|
|
|
|
|
handleUpdate(row) {
|
|
|
|
|
this.reset();
|
2023-08-15 23:58:19 +08:00
|
|
|
|
const id = row.id || this.ids;
|
|
|
|
|
getSspProblemmodify(id).then((response) => {
|
2023-08-10 21:09:49 +08:00
|
|
|
|
this.form = response.data;
|
|
|
|
|
this.open = true;
|
|
|
|
|
this.title = "修改质量整改";
|
|
|
|
|
});
|
|
|
|
|
},
|
|
|
|
|
/** 提交按钮 */
|
|
|
|
|
submitForm() {
|
2023-08-15 23:58:19 +08:00
|
|
|
|
this.$refs["form"].validate((valid) => {
|
2023-08-10 21:09:49 +08:00
|
|
|
|
if (valid) {
|
2024-03-20 23:38:25 +08:00
|
|
|
|
if (this.form.id) {
|
2023-08-15 23:58:19 +08:00
|
|
|
|
updateSspProblemmodify(this.form).then((response) => {
|
2023-08-10 21:09:49 +08:00
|
|
|
|
this.$modal.msgSuccess("修改成功");
|
|
|
|
|
this.open = false;
|
|
|
|
|
this.getList();
|
|
|
|
|
});
|
|
|
|
|
} else {
|
2023-08-15 23:58:19 +08:00
|
|
|
|
addSspProblemmodify(this.form).then((response) => {
|
2023-08-10 21:09:49 +08:00
|
|
|
|
this.$modal.msgSuccess("新增成功");
|
|
|
|
|
this.open = false;
|
|
|
|
|
this.getList();
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
},
|
|
|
|
|
// 页签点击
|
2023-08-15 23:58:19 +08:00
|
|
|
|
handleClick() {
|
2023-08-10 21:09:49 +08:00
|
|
|
|
this.queryParams.activeName = this.activeName;
|
|
|
|
|
this.getList();
|
|
|
|
|
},
|
|
|
|
|
/** 删除按钮操作 */
|
|
|
|
|
handleDelete(row) {
|
|
|
|
|
const ids = row.id || this.ids;
|
2023-08-15 23:58:19 +08:00
|
|
|
|
this.$modal
|
|
|
|
|
.confirm('是否确认删除质量整改编号为"' + ids + '"的数据项?')
|
|
|
|
|
.then(function () {
|
|
|
|
|
return delSspProblemmodify(ids);
|
|
|
|
|
})
|
|
|
|
|
.then(() => {
|
|
|
|
|
this.getList();
|
|
|
|
|
this.$modal.msgSuccess("删除成功");
|
|
|
|
|
})
|
2024-10-30 22:13:47 +08:00
|
|
|
|
.catch(() => { });
|
2023-08-10 21:09:49 +08:00
|
|
|
|
},
|
2024-05-15 01:53:12 +08:00
|
|
|
|
/** 查看详情 */
|
|
|
|
|
handleDetail(row) {
|
|
|
|
|
this.$refs.sspProblemmodifyAuditinfoDrawer.show(row);
|
2023-08-10 21:09:49 +08:00
|
|
|
|
},
|
|
|
|
|
/** 导出按钮操作 */
|
|
|
|
|
handleExport() {
|
2023-08-15 23:58:19 +08:00
|
|
|
|
this.download(
|
|
|
|
|
"trouble/sspProblemmodify/export",
|
|
|
|
|
{
|
|
|
|
|
...this.queryParams,
|
|
|
|
|
},
|
2023-09-14 00:58:30 +08:00
|
|
|
|
`质量整改_${new Date().getTime()}.xlsx`
|
2023-08-15 23:58:19 +08:00
|
|
|
|
);
|
|
|
|
|
},
|
2024-05-15 01:53:12 +08:00
|
|
|
|
/** 是否可处理 */
|
|
|
|
|
getIsModify(row) {
|
2024-10-30 22:13:47 +08:00
|
|
|
|
if (row.checkState == 0 || row.checkState == 3) {
|
|
|
|
|
if (this.isAdmin || this.nowUser == row.lordSentUser) {
|
2024-05-15 01:53:12 +08:00
|
|
|
|
return true;
|
2024-10-30 22:13:47 +08:00
|
|
|
|
} else {
|
2024-05-15 01:53:12 +08:00
|
|
|
|
return false;
|
|
|
|
|
}
|
2024-10-30 22:13:47 +08:00
|
|
|
|
} else if (row.checkState == 1) {
|
|
|
|
|
if (this.isAdmin || this.nowUser == row.recheckSendUser) {
|
2024-05-15 01:53:12 +08:00
|
|
|
|
return true;
|
2024-10-30 22:13:47 +08:00
|
|
|
|
} else {
|
2024-05-15 01:53:12 +08:00
|
|
|
|
return false;
|
|
|
|
|
}
|
2024-10-30 22:13:47 +08:00
|
|
|
|
} else {
|
2024-05-15 01:53:12 +08:00
|
|
|
|
return false;
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
/** 处理操作 */
|
2024-10-30 22:13:47 +08:00
|
|
|
|
handleModify(row) {
|
2024-05-15 01:53:12 +08:00
|
|
|
|
this.$refs.modifyProblemDrawer.show(row);
|
|
|
|
|
},
|
|
|
|
|
/** 是否可删除 */
|
|
|
|
|
getIsVdel(row) {
|
2024-10-30 22:13:47 +08:00
|
|
|
|
if (this.isAdmin) {
|
2024-05-15 01:53:12 +08:00
|
|
|
|
return true;
|
2024-10-30 22:13:47 +08:00
|
|
|
|
} else if (this.nowUser == row.createUser && row.checkState != 4) {
|
2024-05-15 01:53:12 +08:00
|
|
|
|
return true;
|
2024-10-30 22:13:47 +08:00
|
|
|
|
} else {
|
2024-05-15 01:53:12 +08:00
|
|
|
|
return false;
|
|
|
|
|
}
|
|
|
|
|
},
|
2023-08-15 23:58:19 +08:00
|
|
|
|
},
|
2023-08-10 21:09:49 +08:00
|
|
|
|
};
|
|
|
|
|
</script>
|