2023-08-10 21:09:49 +08:00
|
|
|
|
<template>
|
|
|
|
|
<div class="app-container">
|
2023-08-15 23:58:19 +08:00
|
|
|
|
<el-form
|
|
|
|
|
:model="queryParams"
|
|
|
|
|
ref="queryForm"
|
|
|
|
|
size="small"
|
|
|
|
|
:inline="true"
|
|
|
|
|
v-show="showSearch"
|
|
|
|
|
label-width="68px"
|
|
|
|
|
>
|
2023-08-10 21:09:49 +08:00
|
|
|
|
<el-form-item label="项目名称" prop="problemArea">
|
|
|
|
|
<el-input
|
|
|
|
|
v-model="queryParams.problemArea"
|
|
|
|
|
placeholder="请输入项目名称"
|
|
|
|
|
clearable
|
|
|
|
|
@keyup.enter.native="handleQuery"
|
|
|
|
|
/>
|
|
|
|
|
</el-form-item>
|
2023-10-16 00:00:17 +08:00
|
|
|
|
<el-form-item label="隐患分类" prop="createUser">
|
|
|
|
|
<el-select v-model="queryParams.roleTypes" multiple placeholder="请选择隐患分类" clearable collapse-tags>
|
2023-09-14 00:58:30 +08:00
|
|
|
|
<el-option
|
|
|
|
|
v-for="dict in roleTypeOpts"
|
|
|
|
|
:key="dict.value"
|
|
|
|
|
:label="dict.label"
|
|
|
|
|
:value="dict.value"
|
|
|
|
|
/>
|
|
|
|
|
</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">
|
|
|
|
|
<el-input
|
|
|
|
|
v-model="queryParams.workParts"
|
|
|
|
|
placeholder="请输入隐患描述"
|
|
|
|
|
clearable
|
|
|
|
|
@keyup.enter.native="handleQuery"
|
|
|
|
|
/>
|
|
|
|
|
</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>
|
|
|
|
|
<el-option
|
|
|
|
|
v-for="dict in dict.type.ssp_zlyhlx"
|
|
|
|
|
:key="dict.value"
|
|
|
|
|
:label="dict.label"
|
|
|
|
|
:value="dict.value"
|
|
|
|
|
/>
|
|
|
|
|
</el-select>
|
|
|
|
|
</el-form-item>
|
|
|
|
|
<el-form-item label="提交时间">
|
|
|
|
|
<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>
|
|
|
|
|
</el-form-item>
|
2023-08-15 23:58:19 +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>
|
|
|
|
|
</el-select>
|
2023-08-12 12:18:27 +08:00
|
|
|
|
</el-form-item>
|
2023-08-10 21:09:49 +08:00
|
|
|
|
<el-form-item>
|
2023-08-15 23:58:19 +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>
|
2023-09-14 00:58:30 +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>-->
|
|
|
|
|
|
|
|
|
|
<el-tabs 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>
|
2023-08-15 23:58:19 +08:00
|
|
|
|
<el-table
|
|
|
|
|
v-loading="loading"
|
|
|
|
|
:data="sspProblemmodifyList"
|
2023-09-22 13:05:18 +08:00
|
|
|
|
@selection-change="handleSelectionChange" stripe
|
2023-08-15 23:58:19 +08:00
|
|
|
|
>
|
|
|
|
|
<el-table-column type="selection" width="40" align="center" v-if="false" />
|
|
|
|
|
<el-table-column
|
|
|
|
|
label="项目名称"
|
|
|
|
|
align="center"
|
|
|
|
|
prop="problemArea"
|
|
|
|
|
width="200"
|
|
|
|
|
fixed="left"
|
|
|
|
|
show-overflow-tooltip
|
|
|
|
|
/>
|
|
|
|
|
<el-table-column label="隐患图片" align="center" property="path" width="220">
|
|
|
|
|
<template slot-scope="scope">
|
|
|
|
|
<el-image
|
|
|
|
|
ref="preview"
|
|
|
|
|
style="width: 200px; height: 100px"
|
2023-08-17 15:51:00 +08:00
|
|
|
|
:src="scope.row.marksPicture + '.min.jpg'"
|
2023-08-15 23:58:19 +08:00
|
|
|
|
@click="onPreview(scope.row.smarkUrl)"
|
2023-08-10 21:09:49 +08:00
|
|
|
|
>
|
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>
|
|
|
|
|
<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"
|
|
|
|
|
>
|
|
|
|
|
<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>
|
|
|
|
|
<el-table-column
|
|
|
|
|
label="隐患整改人"
|
|
|
|
|
align="left"
|
|
|
|
|
width="120"
|
|
|
|
|
show-overflow-tooltip
|
|
|
|
|
>
|
|
|
|
|
<template slot-scope="scope">
|
|
|
|
|
<div>{{ scope.row.lordSent }}</div>
|
|
|
|
|
<div>{{ scope.row.lordSentUser }}</div>
|
|
|
|
|
</template>
|
|
|
|
|
</el-table-column>
|
|
|
|
|
<el-table-column label="流程状态" align="center" prop="checkState">
|
|
|
|
|
<template slot-scope="scope">
|
|
|
|
|
<dict-tag
|
|
|
|
|
:options="dict.type.smz_ssp_checkstate"
|
|
|
|
|
:value="scope.row.checkState"
|
|
|
|
|
/>
|
|
|
|
|
</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>
|
|
|
|
|
</template>
|
|
|
|
|
</el-table-column>
|
|
|
|
|
<el-table-column
|
|
|
|
|
label="抄送人"
|
|
|
|
|
align="left"
|
|
|
|
|
prop="copySend"
|
|
|
|
|
width="120"
|
|
|
|
|
show-overflow-tooltip
|
|
|
|
|
>
|
|
|
|
|
<template slot-scope="scope">
|
|
|
|
|
<div>{{ scope.row.copySend }}</div>
|
|
|
|
|
<div>{{ scope.row.copySendUser }}</div>
|
|
|
|
|
</template>
|
|
|
|
|
</el-table-column>
|
2023-08-17 23:39:50 +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">
|
|
|
|
|
<span>{{ parseTime(scope.row.createTime, "{y}-{m}-{d} {h}:{i}") }}</span>
|
2023-08-15 23:58:19 +08:00
|
|
|
|
</template>
|
|
|
|
|
</el-table-column>
|
|
|
|
|
<el-table-column
|
|
|
|
|
label="操作"
|
|
|
|
|
align="center"
|
|
|
|
|
class-name="small-padding fixed-width"
|
|
|
|
|
fixed="right"
|
|
|
|
|
width="100"
|
|
|
|
|
>
|
|
|
|
|
<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> -->
|
2023-08-15 23:58:19 +08:00
|
|
|
|
<el-button
|
|
|
|
|
size="mini"
|
|
|
|
|
type="text"
|
|
|
|
|
icon="el-icon-notebook-2"
|
|
|
|
|
@click="handleLog(scope.row)"
|
|
|
|
|
v-hasPermi="['trouble:sspProblemmodify:query']"
|
|
|
|
|
>整改日志</el-button
|
|
|
|
|
>
|
|
|
|
|
<el-button
|
|
|
|
|
v-if="scope.row.vDel == '0'"
|
|
|
|
|
size="mini"
|
|
|
|
|
type="text"
|
|
|
|
|
icon="el-icon-delete"
|
|
|
|
|
@click="handleDelete(scope.row)"
|
|
|
|
|
v-hasPermi="['work:sspProblemmodify:remove']"
|
|
|
|
|
>删除</el-button
|
|
|
|
|
>
|
|
|
|
|
</template>
|
|
|
|
|
</el-table-column>
|
|
|
|
|
</el-table>
|
2023-08-10 21:09:49 +08:00
|
|
|
|
|
2023-08-15 23:58:19 +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>
|
|
|
|
|
|
|
|
|
|
<!-- 添加或修改质量整改对话框 -->
|
|
|
|
|
<el-dialog :title="title" :visible.sync="open" width="500px" append-to-body>
|
|
|
|
|
<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">
|
2023-08-15 23:58:19 +08:00
|
|
|
|
<el-date-picker
|
|
|
|
|
clearable
|
2023-08-10 21:09:49 +08:00
|
|
|
|
v-model="form.nickedTime"
|
|
|
|
|
type="date"
|
|
|
|
|
value-format="yyyy-MM-dd"
|
2023-08-15 23:58:19 +08:00
|
|
|
|
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" />
|
|
|
|
|
<sspProblemmodifyAuditinfoDrawer
|
|
|
|
|
size="40%"
|
|
|
|
|
:visible.sync="sspProblemmodifyAuditinfoDrawerVisible"
|
2023-08-15 23:58:19 +08:00
|
|
|
|
:form-data="formData"
|
|
|
|
|
/>
|
|
|
|
|
<el-dialog
|
|
|
|
|
title="视频播放"
|
|
|
|
|
:visible.sync="openVideo"
|
|
|
|
|
width="980px"
|
|
|
|
|
:before-close="cancelVideo"
|
|
|
|
|
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";
|
2023-08-10 21:09:49 +08:00
|
|
|
|
|
|
|
|
|
export default {
|
|
|
|
|
name: "SspProblemmodify",
|
2023-08-15 23:58:19 +08:00
|
|
|
|
components: {
|
|
|
|
|
sspProblemmodifyAuditinfoDrawer,
|
|
|
|
|
ElImageViewer,
|
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,
|
|
|
|
|
createUser: null,
|
|
|
|
|
createTime: null,
|
|
|
|
|
updateUser: null,
|
2023-08-12 12:18:27 +08:00
|
|
|
|
updateTime: null,
|
2023-09-14 00:58:30 +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-10 21:09:49 +08:00
|
|
|
|
sspProblemmodifyAuditinfoDrawerVisible: false,
|
|
|
|
|
formData: {
|
2023-08-15 23:58:19 +08:00
|
|
|
|
problemmodifyId: null,
|
2023-08-10 21:09:49 +08:00
|
|
|
|
},
|
2023-08-17 23:39:50 +08:00
|
|
|
|
tabs: {
|
|
|
|
|
all: "全部数据(0)",
|
|
|
|
|
dzg: "待整改(0)",
|
|
|
|
|
dqr: "待复检(0)",
|
|
|
|
|
ycl: "整改完成(0)",
|
|
|
|
|
zgcs: "整改超时(0)",
|
|
|
|
|
},
|
2023-09-14 00:58:30 +08:00
|
|
|
|
roleTypeOpts:[
|
|
|
|
|
{label:'集团',value:3}
|
|
|
|
|
,{label:'子公司',value:4}
|
|
|
|
|
,{label:'甲方代表',value:5}
|
|
|
|
|
,{label:'监理单位',value:6}
|
|
|
|
|
,{label:'总包单位',value:7}]
|
2023-08-10 21:09:49 +08:00
|
|
|
|
};
|
|
|
|
|
},
|
|
|
|
|
created() {
|
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 || [];
|
|
|
|
|
});
|
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)";
|
2023-09-14 00:58:30 +08:00
|
|
|
|
let chk03=(response.data.check0)+(response.data.check3)
|
|
|
|
|
if (chk03) {
|
|
|
|
|
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,
|
2023-09-14 00:58:30 +08:00
|
|
|
|
updateTime: null,
|
2023-08-10 21:09:49 +08:00
|
|
|
|
};
|
|
|
|
|
this.resetForm("form");
|
|
|
|
|
},
|
|
|
|
|
/** 搜索按钮操作 */
|
|
|
|
|
handleQuery() {
|
|
|
|
|
this.queryParams.pageNum = 1;
|
|
|
|
|
this.getList();
|
|
|
|
|
},
|
|
|
|
|
/** 重置按钮操作 */
|
|
|
|
|
resetQuery() {
|
2023-09-14 00:58:30 +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) {
|
|
|
|
|
if (this.form.id != null) {
|
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("删除成功");
|
|
|
|
|
})
|
|
|
|
|
.catch(() => {});
|
2023-08-10 21:09:49 +08:00
|
|
|
|
},
|
2023-08-15 23:58:19 +08:00
|
|
|
|
handleLog(row) {
|
2023-08-10 21:09:49 +08:00
|
|
|
|
this.formData.problemmodifyId = row.id;
|
|
|
|
|
this.sspProblemmodifyAuditinfoDrawerVisible = true;
|
|
|
|
|
},
|
|
|
|
|
/** 导出按钮操作 */
|
|
|
|
|
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
|
|
|
|
);
|
|
|
|
|
},
|
|
|
|
|
},
|
2023-08-10 21:09:49 +08:00
|
|
|
|
};
|
|
|
|
|
</script>
|