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="projectName">
|
|
|
|
|
<el-input
|
|
|
|
|
v-model="queryParams.projectName"
|
|
|
|
|
placeholder="请输入项目名称"
|
|
|
|
|
clearable
|
|
|
|
|
@keyup.enter.native="handleQuery"
|
|
|
|
|
/>
|
|
|
|
|
</el-form-item>
|
|
|
|
|
|
|
|
|
|
<el-form-item label="项目地址" prop="projectAddress">
|
|
|
|
|
<el-input
|
|
|
|
|
v-model="queryParams.projectAddress"
|
|
|
|
|
placeholder="请输入项目地址"
|
|
|
|
|
clearable
|
|
|
|
|
@keyup.enter.native="handleQuery"
|
|
|
|
|
/>
|
|
|
|
|
</el-form-item>
|
|
|
|
|
|
|
|
|
|
<el-form-item label="项目分类" prop="projectType">
|
2023-08-15 23:58:19 +08:00
|
|
|
|
<el-select
|
|
|
|
|
v-model="queryParams.projectType"
|
|
|
|
|
placeholder="请选择项目分类"
|
|
|
|
|
clearable
|
|
|
|
|
>
|
2023-08-10 21:09:49 +08:00
|
|
|
|
<el-option
|
|
|
|
|
v-for="dict in dict.type.project_category"
|
|
|
|
|
:key="dict.value"
|
|
|
|
|
:label="dict.label"
|
|
|
|
|
:value="dict.value"
|
|
|
|
|
/>
|
|
|
|
|
</el-select>
|
|
|
|
|
</el-form-item>
|
|
|
|
|
|
|
|
|
|
<el-form-item label="项目等级" prop="projiectLevel">
|
2023-08-15 23:58:19 +08:00
|
|
|
|
<el-select
|
|
|
|
|
v-model="queryParams.projiectLevel"
|
|
|
|
|
placeholder="请选择项目等级"
|
|
|
|
|
clearable
|
|
|
|
|
>
|
2023-08-10 21:09:49 +08:00
|
|
|
|
<el-option
|
|
|
|
|
v-for="dict in dict.type.project_level"
|
|
|
|
|
:key="dict.value"
|
|
|
|
|
:label="dict.label"
|
|
|
|
|
:value="dict.value"
|
|
|
|
|
/>
|
|
|
|
|
</el-select>
|
|
|
|
|
</el-form-item>
|
|
|
|
|
|
|
|
|
|
<el-form-item label="建设类型" prop="projectNature">
|
2023-08-15 23:58:19 +08:00
|
|
|
|
<el-select
|
|
|
|
|
v-model="queryParams.projectNature"
|
|
|
|
|
placeholder="请选择项目建设类型"
|
|
|
|
|
clearable
|
|
|
|
|
>
|
2023-08-10 21:09:49 +08:00
|
|
|
|
<el-option
|
|
|
|
|
v-for="dict in dict.type.project_build_type"
|
|
|
|
|
:key="dict.value"
|
|
|
|
|
:label="dict.label"
|
|
|
|
|
:value="dict.value"
|
|
|
|
|
/>
|
|
|
|
|
</el-select>
|
|
|
|
|
</el-form-item>
|
|
|
|
|
|
|
|
|
|
<el-form-item label="重要等级" prop="weightType">
|
2023-08-15 23:58:19 +08:00
|
|
|
|
<el-select
|
|
|
|
|
v-model="queryParams.weightType"
|
|
|
|
|
placeholder="请选择重要等级"
|
|
|
|
|
clearable
|
|
|
|
|
>
|
2023-08-10 21:09:49 +08:00
|
|
|
|
<el-option
|
|
|
|
|
v-for="dict in dict.type.sur_project_weight"
|
|
|
|
|
:key="dict.value"
|
|
|
|
|
:label="dict.label"
|
|
|
|
|
:value="dict.value"
|
|
|
|
|
/>
|
|
|
|
|
</el-select>
|
|
|
|
|
</el-form-item>
|
|
|
|
|
|
2023-08-12 01:05:00 +08:00
|
|
|
|
<el-form-item label="责任主体" prop="deptId" v-hasPermi="['project:project:zgs']">
|
|
|
|
|
<el-select v-model="queryParams.deptId" placeholder="请选择责任主体" clearable>
|
2023-08-15 23:58:19 +08:00
|
|
|
|
<el-option
|
|
|
|
|
v-for="dict in depts"
|
|
|
|
|
:key="dict.deptId"
|
|
|
|
|
:label="dict.deptName"
|
|
|
|
|
:value="dict.deptId"
|
|
|
|
|
></el-option>
|
|
|
|
|
</el-select>
|
2023-08-12 01:05:00 +08:00
|
|
|
|
</el-form-item>
|
2023-08-15 23:58:19 +08:00
|
|
|
|
|
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>
|
|
|
|
|
</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="['project:surProject:add']"
|
2023-08-15 23:58:19 +08:00
|
|
|
|
>新增</el-button
|
|
|
|
|
>
|
2023-08-10 21:09:49 +08:00
|
|
|
|
</el-col>
|
|
|
|
|
<el-col :span="1.5">
|
|
|
|
|
<el-button
|
|
|
|
|
type="success"
|
|
|
|
|
plain
|
|
|
|
|
icon="el-icon-edit"
|
|
|
|
|
size="mini"
|
|
|
|
|
:disabled="single"
|
|
|
|
|
@click="handleUpdate"
|
|
|
|
|
v-hasPermi="['project:surProject:edit']"
|
2023-08-15 23:58:19 +08:00
|
|
|
|
>修改</el-button
|
|
|
|
|
>
|
2023-08-10 21:09:49 +08:00
|
|
|
|
</el-col>
|
|
|
|
|
<el-col :span="1.5">
|
|
|
|
|
<el-button
|
|
|
|
|
type="danger"
|
|
|
|
|
plain
|
|
|
|
|
icon="el-icon-delete"
|
|
|
|
|
size="mini"
|
|
|
|
|
:disabled="multiple"
|
|
|
|
|
@click="handleDelete"
|
|
|
|
|
v-hasPermi="['project:surProject:remove']"
|
2023-08-15 23:58:19 +08:00
|
|
|
|
>删除</el-button
|
|
|
|
|
>
|
2023-08-10 21:09:49 +08:00
|
|
|
|
</el-col>
|
|
|
|
|
<el-col :span="1.5">
|
|
|
|
|
<el-button
|
|
|
|
|
type="warning"
|
|
|
|
|
plain
|
|
|
|
|
icon="el-icon-download"
|
|
|
|
|
size="mini"
|
|
|
|
|
@click="handleExport"
|
|
|
|
|
v-hasPermi="['project:surProject:export']"
|
2023-08-15 23:58:19 +08:00
|
|
|
|
>导出</el-button
|
|
|
|
|
>
|
2023-08-10 21:09:49 +08:00
|
|
|
|
</el-col>
|
|
|
|
|
<right-toolbar :showSearch.sync="showSearch" @queryTable="getList"></right-toolbar>
|
|
|
|
|
</el-row>
|
|
|
|
|
|
2023-08-15 23:58:19 +08:00
|
|
|
|
<el-table
|
|
|
|
|
v-loading="loading"
|
|
|
|
|
:data="surProjectList"
|
2023-09-22 13:05:18 +08:00
|
|
|
|
@selection-change="handleSelectionChange" stripe
|
2023-08-15 23:58:19 +08:00
|
|
|
|
>
|
2023-08-10 21:09:49 +08:00
|
|
|
|
<el-table-column type="selection" width="55" align="center" />
|
2023-08-15 23:58:19 +08:00
|
|
|
|
<el-table-column
|
|
|
|
|
label="项目名称"
|
|
|
|
|
align="left"
|
|
|
|
|
prop="projectName"
|
|
|
|
|
width="200"
|
|
|
|
|
class-name="small-padding fixed-width"
|
|
|
|
|
fixed="left"
|
|
|
|
|
show-overflow-tooltip
|
|
|
|
|
/>
|
2023-08-10 21:09:49 +08:00
|
|
|
|
<el-table-column label="责任主体" align="center" prop="deptName" />
|
2023-08-15 23:58:19 +08:00
|
|
|
|
<el-table-column
|
|
|
|
|
label="父级项目"
|
|
|
|
|
align="left"
|
|
|
|
|
prop="paretProjectName"
|
|
|
|
|
width="200"
|
|
|
|
|
show-overflow-tooltip
|
|
|
|
|
/>
|
|
|
|
|
<el-table-column
|
|
|
|
|
label="项目简称"
|
|
|
|
|
align="left"
|
|
|
|
|
prop="simpleName"
|
|
|
|
|
width="200"
|
|
|
|
|
show-overflow-tooltip
|
|
|
|
|
/>
|
2023-08-10 21:09:49 +08:00
|
|
|
|
<el-table-column label="项目分类" align="center" prop="projectType">
|
|
|
|
|
<template slot-scope="scope">
|
2023-08-15 23:58:19 +08:00
|
|
|
|
<dict-tag
|
|
|
|
|
:options="dict.type.project_category"
|
|
|
|
|
:value="scope.row.projectType"
|
|
|
|
|
/>
|
2023-08-10 21:09:49 +08:00
|
|
|
|
</template>
|
|
|
|
|
</el-table-column>
|
|
|
|
|
<el-table-column label="项目等级" align="center" prop="projiectLevel">
|
|
|
|
|
<template slot-scope="scope">
|
2023-08-15 23:58:19 +08:00
|
|
|
|
<dict-tag :options="dict.type.project_level" :value="scope.row.projiectLevel" />
|
2023-08-10 21:09:49 +08:00
|
|
|
|
</template>
|
|
|
|
|
</el-table-column>
|
2023-08-16 11:51:34 +08:00
|
|
|
|
<el-table-column label="项目区域" align="center" prop="projectRegionalName" />
|
2023-08-15 23:58:19 +08:00
|
|
|
|
<el-table-column
|
|
|
|
|
label="进度展示"
|
|
|
|
|
align="center"
|
2023-08-17 15:51:00 +08:00
|
|
|
|
v-if="checkPermi(['project:surProject:progressVisible'])"
|
2023-08-15 23:58:19 +08:00
|
|
|
|
>
|
2023-08-10 21:09:49 +08:00
|
|
|
|
<template slot-scope="scope">
|
2023-08-15 23:58:19 +08:00
|
|
|
|
<el-switch
|
|
|
|
|
v-model="scope.row.progressVisible"
|
|
|
|
|
active-value="0"
|
|
|
|
|
inactive-value="1"
|
|
|
|
|
@change="setVisibleStatus(scope.row, $event)"
|
|
|
|
|
></el-switch>
|
2023-08-10 21:09:49 +08:00
|
|
|
|
</template>
|
|
|
|
|
</el-table-column>
|
2023-08-15 23:58:19 +08:00
|
|
|
|
<el-table-column
|
|
|
|
|
label="项目排序"
|
|
|
|
|
align="center"
|
|
|
|
|
width="150"
|
2023-08-17 15:51:00 +08:00
|
|
|
|
v-if="checkPermi(['project:surProject:projectSort'])"
|
2023-08-15 23:58:19 +08:00
|
|
|
|
>
|
2023-08-10 21:09:49 +08:00
|
|
|
|
<template slot-scope="scope">
|
2023-08-15 23:58:19 +08:00
|
|
|
|
<el-input-number
|
|
|
|
|
size="mini"
|
|
|
|
|
v-model="scope.row.projectSort"
|
|
|
|
|
:min="1"
|
|
|
|
|
:max="999"
|
|
|
|
|
@change="setProjectSort(scope.row, $event)"
|
|
|
|
|
></el-input-number>
|
2023-08-10 21:09:49 +08:00
|
|
|
|
</template>
|
|
|
|
|
</el-table-column>
|
2023-08-15 23:58:19 +08:00
|
|
|
|
<el-table-column
|
|
|
|
|
label="建设类型"
|
|
|
|
|
align="left"
|
|
|
|
|
prop="projectNature"
|
|
|
|
|
width="120"
|
|
|
|
|
show-overflow-tooltip
|
|
|
|
|
>
|
2023-08-12 01:05:00 +08:00
|
|
|
|
<template slot-scope="scope">
|
2023-08-15 23:58:19 +08:00
|
|
|
|
<dict-tag
|
|
|
|
|
:options="dict.type.project_build_type"
|
|
|
|
|
:value="scope.row.projectNature"
|
|
|
|
|
/>
|
2023-08-12 01:05:00 +08:00
|
|
|
|
</template>
|
|
|
|
|
</el-table-column>
|
2023-08-15 23:58:19 +08:00
|
|
|
|
<el-table-column
|
|
|
|
|
label="重要等级"
|
|
|
|
|
align="left"
|
|
|
|
|
prop="weightType"
|
|
|
|
|
width="120"
|
|
|
|
|
show-overflow-tooltip
|
|
|
|
|
>
|
2023-08-12 01:05:00 +08:00
|
|
|
|
<template slot-scope="scope">
|
2023-08-15 23:58:19 +08:00
|
|
|
|
<dict-tag
|
|
|
|
|
:options="dict.type.sur_project_weight"
|
|
|
|
|
:value="scope.row.weightType"
|
|
|
|
|
/>
|
2023-08-12 01:05:00 +08:00
|
|
|
|
</template>
|
|
|
|
|
</el-table-column>
|
2023-08-15 23:58:19 +08:00
|
|
|
|
<el-table-column
|
|
|
|
|
label="项目地址"
|
|
|
|
|
align="left"
|
|
|
|
|
prop="projectAddress"
|
|
|
|
|
width="200"
|
|
|
|
|
show-overflow-tooltip
|
|
|
|
|
/>
|
|
|
|
|
<el-table-column
|
|
|
|
|
label="项目负责人"
|
|
|
|
|
align="center"
|
|
|
|
|
prop="projectPerson"
|
|
|
|
|
width="100"
|
|
|
|
|
/>
|
|
|
|
|
<el-table-column
|
|
|
|
|
label="负责人电话"
|
|
|
|
|
align="center"
|
|
|
|
|
prop="projectPhone"
|
|
|
|
|
width="110"
|
|
|
|
|
/>
|
2023-08-10 21:09:49 +08:00
|
|
|
|
<el-table-column label="工程期限" align="center" prop="projectTimeLimit" />
|
|
|
|
|
<el-table-column label="总投资" align="center" prop="totalInvestment" />
|
2023-08-15 23:58:19 +08:00
|
|
|
|
<el-table-column label="开累产值" align="center" prop="totalOutputValue" />
|
|
|
|
|
<el-table-column
|
|
|
|
|
label="计划完成时间"
|
|
|
|
|
align="center"
|
|
|
|
|
prop="plannedCompletionTime"
|
|
|
|
|
width="120"
|
|
|
|
|
show-overflow-tooltip
|
|
|
|
|
>
|
|
|
|
|
<template slot-scope="{ row }">{{ row.plannedCompletionTime }}</template>
|
2023-08-10 21:09:49 +08:00
|
|
|
|
</el-table-column>
|
2023-08-15 23:58:19 +08:00
|
|
|
|
<el-table-column
|
|
|
|
|
label="计划开工时间"
|
|
|
|
|
align="center"
|
|
|
|
|
prop="scheduledStartTime"
|
|
|
|
|
width="120"
|
|
|
|
|
show-overflow-tooltip
|
|
|
|
|
>
|
|
|
|
|
<template slot-scope="{ row }">{{ row.scheduledStartTime }}</template>
|
2023-08-10 21:09:49 +08:00
|
|
|
|
</el-table-column>
|
2023-08-15 23:58:19 +08:00
|
|
|
|
<el-table-column
|
|
|
|
|
label="实际开工时间"
|
|
|
|
|
align="center"
|
|
|
|
|
prop="actualOperatingTime"
|
|
|
|
|
width="120"
|
|
|
|
|
show-overflow-tooltip
|
|
|
|
|
>
|
|
|
|
|
<template slot-scope="{ row }">{{ row.actualOperatingTime }}</template>
|
2023-08-10 21:09:49 +08:00
|
|
|
|
</el-table-column>
|
2023-08-15 23:58:19 +08:00
|
|
|
|
<el-table-column
|
|
|
|
|
label="实际完工时间"
|
|
|
|
|
align="center"
|
|
|
|
|
prop="actualCompletionTime"
|
|
|
|
|
width="120"
|
|
|
|
|
show-overflow-tooltip
|
|
|
|
|
>
|
|
|
|
|
<template slot-scope="{ row }">{{ row.actualCompletionTime }}</template>
|
2023-08-10 21:09:49 +08:00
|
|
|
|
</el-table-column>
|
2023-08-15 23:58:19 +08:00
|
|
|
|
<el-table-column label="合同总额" align="center" prop="contractAmount" width="80" />
|
|
|
|
|
<el-table-column label="付款金额" align="center" prop="paidAmount" width="80" />
|
|
|
|
|
<el-table-column
|
|
|
|
|
label="挂账金额"
|
|
|
|
|
align="center"
|
|
|
|
|
prop="onAccountAmount"
|
|
|
|
|
width="80"
|
|
|
|
|
/>
|
2023-08-10 21:09:49 +08:00
|
|
|
|
<el-table-column label="劳务人员" align="center" prop="servicePersonnel" />
|
|
|
|
|
<el-table-column label="监理人员" align="center" prop="supervisorPersonnel" />
|
|
|
|
|
<el-table-column label="总包人员" align="center" prop="generalContractor" />
|
2023-08-15 23:58:19 +08:00
|
|
|
|
<el-table-column
|
|
|
|
|
label="操作"
|
|
|
|
|
align="center"
|
|
|
|
|
class-name="small-padding fixed-width"
|
|
|
|
|
fixed="right"
|
|
|
|
|
width="240"
|
|
|
|
|
>
|
2023-08-10 21:09:49 +08:00
|
|
|
|
<template slot-scope="scope">
|
2023-08-15 23:58:19 +08:00
|
|
|
|
<el-button
|
|
|
|
|
size="mini"
|
|
|
|
|
type="text"
|
|
|
|
|
icon="el-icon-time"
|
|
|
|
|
@click="prjProcessMgr(scope.row)"
|
|
|
|
|
v-hasPermi="['project:surProject:edit']"
|
|
|
|
|
>进度管理</el-button
|
|
|
|
|
>
|
|
|
|
|
<el-button
|
|
|
|
|
size="mini"
|
|
|
|
|
type="text"
|
|
|
|
|
icon="el-icon-edit"
|
|
|
|
|
@click="handleUpdate(scope.row)"
|
|
|
|
|
v-hasPermi="['project:surProject:edit']"
|
|
|
|
|
>修改项目</el-button
|
|
|
|
|
>
|
|
|
|
|
<el-button
|
|
|
|
|
size="mini"
|
|
|
|
|
type="text"
|
|
|
|
|
icon="el-icon-user-solid"
|
|
|
|
|
@click="handleProjectUserinfo(scope.row)"
|
2023-09-10 18:30:35 +08:00
|
|
|
|
v-hasPermi="['project:surProjectUserInfo:list']"
|
2023-08-15 23:58:19 +08:00
|
|
|
|
>项目人员</el-button
|
|
|
|
|
>
|
|
|
|
|
<el-dropdown
|
|
|
|
|
size="mini"
|
|
|
|
|
@command="(command) => handleCommand(command, scope.row)"
|
|
|
|
|
v-hasPermi="[
|
2023-08-20 15:46:23 +08:00
|
|
|
|
'project:assess:list',
|
2023-08-15 23:58:19 +08:00
|
|
|
|
'project:build_node_data:list',
|
2023-08-20 15:46:23 +08:00
|
|
|
|
'project:projectChecking:list',
|
2023-08-15 23:58:19 +08:00
|
|
|
|
'work:workTrain:list',
|
|
|
|
|
'work:emergencyDrill:list',
|
2023-08-20 15:46:23 +08:00
|
|
|
|
'project:surProjectInsurance:list',
|
2023-08-15 23:58:19 +08:00
|
|
|
|
'project:surProjectSpecial:list',
|
2023-08-22 18:09:42 +08:00
|
|
|
|
'project:projectMeasure:list',
|
|
|
|
|
'project:materialSeal:list',
|
2023-08-15 23:58:19 +08:00
|
|
|
|
'project:projectDeptWroks:list',
|
|
|
|
|
'project:surProjectAttendance:add',
|
2023-08-26 18:08:05 +08:00
|
|
|
|
'video:videoConfig:list',
|
2023-09-01 17:31:12 +08:00
|
|
|
|
'project:checkDetection:list',
|
|
|
|
|
'project:costOutput:edit',
|
2023-09-20 23:37:11 +08:00
|
|
|
|
'project:projectStandard:edit',
|
2023-09-29 00:24:15 +08:00
|
|
|
|
'project:attendanceWorker:list',
|
|
|
|
|
'project:attendance:list',
|
2023-08-15 23:58:19 +08:00
|
|
|
|
'project:surProject:remove',
|
|
|
|
|
]"
|
|
|
|
|
>
|
|
|
|
|
<el-button size="mini" type="text" icon="el-icon-d-arrow-right"
|
|
|
|
|
>更多操作</el-button
|
|
|
|
|
>
|
2023-08-10 21:09:49 +08:00
|
|
|
|
<el-dropdown-menu slot="dropdown">
|
2023-08-15 23:58:19 +08:00
|
|
|
|
<el-dropdown-item
|
|
|
|
|
command="handleAssess"
|
|
|
|
|
icon="el-icon-coordinate"
|
2023-08-20 15:46:23 +08:00
|
|
|
|
v-hasPermi="['project:assess:list']"
|
2023-08-27 22:25:04 +08:00
|
|
|
|
>季度考核管理</el-dropdown-item
|
|
|
|
|
>
|
2023-08-15 23:58:19 +08:00
|
|
|
|
<el-dropdown-item
|
|
|
|
|
command="handleBuildNode"
|
|
|
|
|
icon="el-icon-data-analysis"
|
|
|
|
|
v-hasPermi="['project:build_node_data:list']"
|
|
|
|
|
>计划节点管理</el-dropdown-item
|
|
|
|
|
>
|
2023-08-20 15:46:23 +08:00
|
|
|
|
<el-dropdown-item
|
|
|
|
|
command="handleProjectChecking"
|
|
|
|
|
icon="el-icon-s-help"
|
|
|
|
|
v-hasPermi="['project:projectChecking:list']"
|
|
|
|
|
>举牌验收管理</el-dropdown-item
|
|
|
|
|
>
|
2023-08-15 23:58:19 +08:00
|
|
|
|
<el-dropdown-item
|
|
|
|
|
command="handleWorkTrain"
|
|
|
|
|
icon="el-icon-notebook-2"
|
|
|
|
|
v-hasPermi="['work:workTrain:list']"
|
|
|
|
|
>项目专项培训</el-dropdown-item
|
|
|
|
|
>
|
|
|
|
|
<el-dropdown-item
|
|
|
|
|
command="handleEmergencyDrill"
|
|
|
|
|
icon="el-icon-first-aid-kit"
|
|
|
|
|
v-hasPermi="['work:emergencyDrill:list']"
|
|
|
|
|
>项目应急演练</el-dropdown-item
|
|
|
|
|
>
|
2023-08-16 20:40:54 +08:00
|
|
|
|
<el-dropdown-item
|
|
|
|
|
command="handleProjectInsurance"
|
|
|
|
|
icon="el-icon-star-on"
|
|
|
|
|
v-hasPermi="['project:surProjectInsurance:list']"
|
|
|
|
|
>项目保险管理</el-dropdown-item
|
|
|
|
|
>
|
2023-08-15 23:58:19 +08:00
|
|
|
|
<el-dropdown-item
|
|
|
|
|
command="handleProjectSpecial"
|
|
|
|
|
icon="el-icon-user"
|
|
|
|
|
v-hasPermi="['project:surProjectSpecial:list']"
|
|
|
|
|
>项目特种人员</el-dropdown-item
|
|
|
|
|
>
|
2023-08-22 18:09:42 +08:00
|
|
|
|
<el-dropdown-item
|
|
|
|
|
command="handleProjectMeasure"
|
|
|
|
|
icon="el-icon-s-operation"
|
|
|
|
|
v-hasPermi="['project:projectMeasure:list']"
|
2023-08-28 22:36:00 +08:00
|
|
|
|
>实测实量管理</el-dropdown-item
|
2023-08-22 18:09:42 +08:00
|
|
|
|
>
|
|
|
|
|
<el-dropdown-item
|
|
|
|
|
command="handleProjectMaterialSeal"
|
|
|
|
|
icon="el-icon-s-ticket"
|
|
|
|
|
v-hasPermi="['project:materialSeal:list']"
|
|
|
|
|
>材料封样管理</el-dropdown-item
|
|
|
|
|
>
|
2023-08-15 23:58:19 +08:00
|
|
|
|
<el-dropdown-item
|
|
|
|
|
command="handleProjectDeptWroks"
|
|
|
|
|
icon="el-icon-s-custom"
|
|
|
|
|
v-hasPermi="['project:projectDeptWroks:list']"
|
2023-08-19 13:22:38 +08:00
|
|
|
|
>在岗人员管理</el-dropdown-item
|
2023-08-15 23:58:19 +08:00
|
|
|
|
>
|
|
|
|
|
<el-dropdown-item
|
|
|
|
|
command="handleProjectAttendance"
|
|
|
|
|
icon="el-icon-trophy"
|
|
|
|
|
v-hasPermi="['project:surProjectAttendance:add']"
|
|
|
|
|
>今日出勤</el-dropdown-item
|
|
|
|
|
>
|
2023-08-26 00:36:09 +08:00
|
|
|
|
<el-dropdown-item
|
2023-08-26 11:49:44 +08:00
|
|
|
|
command="handleVideoConfig"
|
2023-08-26 00:36:09 +08:00
|
|
|
|
icon="el-icon-video-camera-solid"
|
2023-08-26 18:08:05 +08:00
|
|
|
|
v-hasPermi="['video:videoConfig:list']"
|
2023-08-26 00:36:09 +08:00
|
|
|
|
>视频配置</el-dropdown-item
|
|
|
|
|
>
|
2023-09-01 17:31:12 +08:00
|
|
|
|
<el-dropdown-item
|
|
|
|
|
command="handleCheckDetection"
|
|
|
|
|
icon="el-icon-c-scale-to-original"
|
|
|
|
|
v-hasPermi="['project:checkDetection:list']"
|
|
|
|
|
>材料取样复试</el-dropdown-item
|
|
|
|
|
>
|
2023-08-27 13:50:15 +08:00
|
|
|
|
<el-dropdown-item
|
|
|
|
|
command="handleCostOutput"
|
|
|
|
|
icon="el-icon-money"
|
|
|
|
|
v-hasPermi="['project:costOutput:edit']"
|
2023-08-27 22:25:04 +08:00
|
|
|
|
>项目成本产值管理</el-dropdown-item
|
|
|
|
|
>
|
2023-09-20 23:37:11 +08:00
|
|
|
|
<el-dropdown-item
|
|
|
|
|
command="handleStandard"
|
|
|
|
|
icon="el-icon-s-grid"
|
|
|
|
|
v-hasPermi="['project:projectStandard:list']"
|
2023-09-29 00:24:15 +08:00
|
|
|
|
>标准化管理</el-dropdown-item>
|
|
|
|
|
<el-dropdown-item
|
|
|
|
|
command="handleAttendanceWorker"
|
|
|
|
|
icon="el-icon-s-grid"
|
|
|
|
|
v-hasPermi="['project:attendanceWorker:list']"
|
|
|
|
|
>劳务实名管理</el-dropdown-item>
|
|
|
|
|
<el-dropdown-item
|
|
|
|
|
command="handleAttendanceData"
|
|
|
|
|
icon="el-icon-s-grid"
|
|
|
|
|
v-hasPermi="['project:attendance:list']"
|
|
|
|
|
>劳务实名管理-考勤记录</el-dropdown-item>
|
2023-08-15 23:58:19 +08:00
|
|
|
|
<el-dropdown-item
|
|
|
|
|
command="handleDelete"
|
|
|
|
|
icon="el-icon-delete"
|
|
|
|
|
v-hasPermi="['project:surProject:remove']"
|
2023-08-27 22:25:04 +08:00
|
|
|
|
>删除项目</el-dropdown-item
|
|
|
|
|
>
|
2023-08-10 21:09:49 +08:00
|
|
|
|
</el-dropdown-menu>
|
|
|
|
|
</el-dropdown>
|
|
|
|
|
</template>
|
|
|
|
|
</el-table-column>
|
|
|
|
|
</el-table>
|
|
|
|
|
|
|
|
|
|
<pagination
|
2023-08-15 23:58:19 +08:00
|
|
|
|
v-show="total > 0"
|
2023-08-10 21:09:49 +08:00
|
|
|
|
:total="total"
|
|
|
|
|
:page.sync="queryParams.pageNum"
|
|
|
|
|
:limit.sync="queryParams.pageSize"
|
|
|
|
|
@pagination="getList"
|
|
|
|
|
/>
|
|
|
|
|
|
|
|
|
|
<!-- 添加或修改项目管理对话框 -->
|
2023-08-15 23:58:19 +08:00
|
|
|
|
<el-dialog
|
|
|
|
|
:title="title"
|
|
|
|
|
v-if="open"
|
|
|
|
|
:visible.sync="open"
|
|
|
|
|
width="1200px"
|
|
|
|
|
append-to-body
|
|
|
|
|
custom-class="prj-suprj-edit-dialog"
|
|
|
|
|
: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="120px">
|
|
|
|
|
<el-row>
|
|
|
|
|
<el-col :span="8">
|
|
|
|
|
<el-form-item label="责任主体" prop="deptId">
|
2023-08-15 23:58:19 +08:00
|
|
|
|
<el-select
|
|
|
|
|
v-model="form.deptId"
|
|
|
|
|
placeholder="请选择责任主体"
|
|
|
|
|
style="width: 100%"
|
|
|
|
|
:disabled="getDeptIdDisabled()"
|
|
|
|
|
>
|
|
|
|
|
<el-option
|
|
|
|
|
v-for="dict in depts"
|
|
|
|
|
:key="dict.deptId"
|
|
|
|
|
:label="dict.deptName"
|
|
|
|
|
:value="dict.deptId"
|
|
|
|
|
></el-option>
|
|
|
|
|
</el-select>
|
|
|
|
|
</el-form-item>
|
|
|
|
|
</el-col>
|
2023-08-10 21:09:49 +08:00
|
|
|
|
<el-col :span="8">
|
|
|
|
|
<el-form-item label="项目名称" prop="projectName">
|
2023-08-15 23:58:19 +08:00
|
|
|
|
<el-input v-model="form.projectName" placeholder="请输入项目名称" />
|
2023-08-10 21:09:49 +08:00
|
|
|
|
</el-form-item>
|
2023-08-15 23:58:19 +08:00
|
|
|
|
</el-col>
|
|
|
|
|
<el-col :span="8">
|
|
|
|
|
<el-form-item label="父级项目" prop="paretProjectName">
|
|
|
|
|
<el-input
|
|
|
|
|
v-model="form.paretProjectName"
|
|
|
|
|
placeholder="请输入父级项目名称"
|
|
|
|
|
/>
|
|
|
|
|
</el-form-item>
|
|
|
|
|
</el-col>
|
2023-08-10 21:09:49 +08:00
|
|
|
|
</el-row>
|
|
|
|
|
|
|
|
|
|
<el-row>
|
|
|
|
|
<el-col :span="8">
|
|
|
|
|
<el-form-item label="项目建设类型" prop="projectNature">
|
2023-08-15 23:58:19 +08:00
|
|
|
|
<el-select
|
|
|
|
|
v-model="form.projectNature"
|
|
|
|
|
placeholder="请选择项目建设类型"
|
|
|
|
|
style="width: 100%"
|
|
|
|
|
>
|
|
|
|
|
<el-option
|
|
|
|
|
v-for="dict in dict.type.project_build_type"
|
|
|
|
|
:key="dict.value"
|
|
|
|
|
:label="dict.label"
|
|
|
|
|
:value="dict.value"
|
|
|
|
|
></el-option>
|
|
|
|
|
</el-select>
|
|
|
|
|
</el-form-item>
|
2023-08-10 21:09:49 +08:00
|
|
|
|
</el-col>
|
|
|
|
|
<el-col :span="8">
|
|
|
|
|
<el-form-item label="项目简称" prop="simpleName">
|
2023-08-15 23:58:19 +08:00
|
|
|
|
<el-input v-model="form.simpleName" placeholder="请输入项目简称" />
|
|
|
|
|
</el-form-item>
|
|
|
|
|
</el-col>
|
2023-08-10 21:09:49 +08:00
|
|
|
|
<el-col :span="8">
|
|
|
|
|
<el-form-item label="项目分类" prop="projectType">
|
2023-08-15 23:58:19 +08:00
|
|
|
|
<el-select
|
|
|
|
|
v-model="form.projectType"
|
|
|
|
|
placeholder="请选择项目分类"
|
|
|
|
|
style="width: 100%"
|
|
|
|
|
>
|
|
|
|
|
<el-option
|
|
|
|
|
v-for="dict in dict.type.project_category"
|
|
|
|
|
:key="dict.value"
|
|
|
|
|
:label="dict.label"
|
|
|
|
|
:value="dict.value"
|
|
|
|
|
></el-option>
|
|
|
|
|
</el-select> </el-form-item
|
|
|
|
|
></el-col>
|
2023-08-10 21:09:49 +08:00
|
|
|
|
</el-row>
|
|
|
|
|
|
|
|
|
|
<el-row>
|
|
|
|
|
<el-col :span="24">
|
2023-08-25 00:36:39 +08:00
|
|
|
|
<el-form-item label="经纬度" prop="longitude" class="fi-longitude">
|
|
|
|
|
<div>
|
2023-08-26 00:36:09 +08:00
|
|
|
|
<div>({{ form.longitude }},{{ form.latitude }})</div>
|
|
|
|
|
<el-button @click="getMapInfo">选择经纬度</el-button>
|
|
|
|
|
</div>
|
|
|
|
|
<div style="margin-left: 12px; flex-grow: 1">
|
|
|
|
|
<el-input
|
|
|
|
|
type="textarea"
|
|
|
|
|
:rows="3"
|
|
|
|
|
placeholder="请输入地址"
|
|
|
|
|
v-model="form.projectAddress"
|
|
|
|
|
>
|
|
|
|
|
</el-input>
|
2023-08-15 23:58:19 +08:00
|
|
|
|
</div>
|
|
|
|
|
</el-form-item>
|
2023-08-10 21:09:49 +08:00
|
|
|
|
</el-col>
|
|
|
|
|
<el-col :span="8">
|
|
|
|
|
<el-form-item label="项目等级" prop="projiectLevel">
|
2023-08-15 23:58:19 +08:00
|
|
|
|
<el-select
|
|
|
|
|
v-model="form.projiectLevel"
|
|
|
|
|
placeholder="请选择项目等级"
|
|
|
|
|
style="width: 100%"
|
|
|
|
|
>
|
|
|
|
|
<el-option
|
|
|
|
|
v-for="dict in dict.type.project_level"
|
|
|
|
|
:key="dict.value"
|
|
|
|
|
:label="dict.label"
|
|
|
|
|
:value="dict.value"
|
|
|
|
|
></el-option>
|
|
|
|
|
</el-select>
|
|
|
|
|
</el-form-item>
|
2023-08-10 21:09:49 +08:00
|
|
|
|
</el-col>
|
|
|
|
|
|
|
|
|
|
<el-col :span="8">
|
|
|
|
|
<el-form-item label="工程期限" prop="projectTimeLimit">
|
2023-08-15 23:58:19 +08:00
|
|
|
|
<el-input v-model="form.projectTimeLimit" placeholder="请输入工程期限">
|
|
|
|
|
<i slot="suffix">天</i>
|
|
|
|
|
</el-input>
|
|
|
|
|
</el-form-item>
|
|
|
|
|
</el-col>
|
2023-08-10 21:09:49 +08:00
|
|
|
|
<el-col :span="8">
|
|
|
|
|
<el-form-item label="建筑面积" prop="floorArea">
|
2023-08-15 23:58:19 +08:00
|
|
|
|
<el-input v-model="form.floorArea" placeholder="请输入建筑面积">
|
|
|
|
|
<i slot="suffix">平方米</i>
|
|
|
|
|
</el-input>
|
|
|
|
|
</el-form-item>
|
|
|
|
|
</el-col>
|
2023-09-14 00:58:30 +08:00
|
|
|
|
</el-row>
|
|
|
|
|
|
|
|
|
|
<el-row>
|
|
|
|
|
|
|
|
|
|
|
2023-08-10 21:09:49 +08:00
|
|
|
|
<el-col :span="8">
|
|
|
|
|
<el-form-item label="计划完成时间" prop="plannedCompletionTime">
|
2023-08-15 23:58:19 +08:00
|
|
|
|
<el-date-picker
|
|
|
|
|
v-model="form.plannedCompletionTime"
|
|
|
|
|
type="month"
|
|
|
|
|
placeholder="选择计划完成时间"
|
|
|
|
|
style="width: 100%"
|
|
|
|
|
>
|
|
|
|
|
</el-date-picker>
|
|
|
|
|
</el-form-item>
|
2023-08-10 21:09:49 +08:00
|
|
|
|
</el-col>
|
2023-08-15 23:58:19 +08:00
|
|
|
|
<el-col :span="8">
|
|
|
|
|
<el-form-item label="计划开工时间" prop="scheduledStartTime">
|
|
|
|
|
<el-date-picker
|
|
|
|
|
v-model="form.scheduledStartTime"
|
|
|
|
|
type="month"
|
|
|
|
|
placeholder="选择计划开工时间"
|
|
|
|
|
style="width: 100%"
|
|
|
|
|
>
|
|
|
|
|
</el-date-picker> </el-form-item
|
|
|
|
|
></el-col>
|
|
|
|
|
<el-col :span="8">
|
|
|
|
|
<el-form-item label="实际开工时间" prop="actualOperatingTime">
|
|
|
|
|
<el-date-picker
|
|
|
|
|
v-model="form.actualOperatingTime"
|
|
|
|
|
type="month"
|
|
|
|
|
placeholder="选择实际开工时间"
|
|
|
|
|
style="width: 100%"
|
|
|
|
|
>
|
|
|
|
|
</el-date-picker> </el-form-item
|
|
|
|
|
></el-col>
|
2023-09-14 00:58:30 +08:00
|
|
|
|
</el-row>
|
|
|
|
|
<el-row>
|
|
|
|
|
|
|
|
|
|
|
2023-08-15 23:58:19 +08:00
|
|
|
|
<el-col :span="8"
|
|
|
|
|
><el-form-item label="实际完工时间" prop="actualCompletionTime">
|
|
|
|
|
<el-date-picker
|
|
|
|
|
v-model="form.actualCompletionTime"
|
|
|
|
|
type="month"
|
|
|
|
|
placeholder="选择实际完工时间"
|
|
|
|
|
style="width: 100%"
|
|
|
|
|
>
|
|
|
|
|
</el-date-picker> </el-form-item
|
|
|
|
|
></el-col>
|
|
|
|
|
<el-col :span="8"
|
2023-08-16 22:38:38 +08:00
|
|
|
|
><el-form-item label="形象进度" prop="projectSchedule">
|
2023-08-15 23:58:19 +08:00
|
|
|
|
<el-select
|
|
|
|
|
v-model="form.projectSchedule"
|
2023-08-16 22:38:38 +08:00
|
|
|
|
placeholder="请选择形象进度"
|
2023-08-15 23:58:19 +08:00
|
|
|
|
style="width: 100%"
|
|
|
|
|
>
|
|
|
|
|
<el-option
|
|
|
|
|
v-for="dict in dict.type.sur_project_xmjd"
|
|
|
|
|
:key="dict.value"
|
|
|
|
|
:label="dict.label"
|
|
|
|
|
:value="dict.value"
|
|
|
|
|
></el-option>
|
|
|
|
|
</el-select>
|
|
|
|
|
</el-form-item>
|
|
|
|
|
</el-col>
|
2023-09-14 00:58:30 +08:00
|
|
|
|
|
|
|
|
|
</el-row>
|
2023-08-16 11:51:34 +08:00
|
|
|
|
<!-- <el-row>
|
2023-08-15 23:58:19 +08:00
|
|
|
|
<el-col :span="8"
|
|
|
|
|
><el-form-item label="劳务人员数" prop="servicePersonnel">
|
|
|
|
|
<el-input v-model="form.servicePersonnel" placeholder="请输入劳务人员数">
|
|
|
|
|
<i slot="suffix">人</i>
|
|
|
|
|
</el-input>
|
|
|
|
|
</el-form-item></el-col
|
|
|
|
|
>
|
|
|
|
|
<el-col :span="8"
|
|
|
|
|
><el-form-item label="监理人员数" prop="supervisorPersonnel">
|
|
|
|
|
<el-input v-model="form.supervisorPersonnel" placeholder="请输入监理人员数">
|
|
|
|
|
<i slot="suffix">人</i>
|
|
|
|
|
</el-input>
|
|
|
|
|
</el-form-item></el-col
|
|
|
|
|
>
|
|
|
|
|
<el-col :span="8">
|
|
|
|
|
<el-form-item label="总包人员数" prop="generalContractor">
|
|
|
|
|
<el-input v-model="form.generalContractor" placeholder="请输入总包人员数">
|
|
|
|
|
<i slot="suffix">人</i>
|
|
|
|
|
</el-input>
|
|
|
|
|
</el-form-item></el-col
|
|
|
|
|
>
|
2023-08-16 11:51:34 +08:00
|
|
|
|
</el-row> -->
|
2023-08-10 21:09:49 +08:00
|
|
|
|
<el-form-item label="项目概述" prop="projectSummarize">
|
2023-08-15 23:58:19 +08:00
|
|
|
|
<el-input
|
|
|
|
|
v-model="form.projectSummarize"
|
|
|
|
|
type="textarea"
|
|
|
|
|
:rows="5"
|
|
|
|
|
placeholder="请输入内容"
|
|
|
|
|
/>
|
2023-08-10 21:09:49 +08:00
|
|
|
|
</el-form-item>
|
|
|
|
|
<el-form-item label="备注" prop="remark">
|
|
|
|
|
<el-input v-model="form.remark" 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>
|
|
|
|
|
<ProjectScheduleDlg ref="prjSchDlg"></ProjectScheduleDlg>
|
|
|
|
|
<projectUserInfoDrawer
|
|
|
|
|
size="50%"
|
|
|
|
|
:visible.sync="projectUserInfoDrawerVisible"
|
|
|
|
|
:form-data="formData"
|
|
|
|
|
/>
|
|
|
|
|
<assess-drawer ref="assessDrawer"></assess-drawer>
|
|
|
|
|
<baidu-map ref="map" @success="mapSuccess"></baidu-map>
|
|
|
|
|
<build-node-drawer ref="nodeDrawer"></build-node-drawer>
|
2023-08-27 22:25:04 +08:00
|
|
|
|
<workTrainDrawer ref="workTrainDrawer"></workTrainDrawer>
|
|
|
|
|
<emergencyDrillDrawer ref="emergencyDrillDrawer"></emergencyDrillDrawer>
|
2023-08-28 01:11:14 +08:00
|
|
|
|
<surProjectSpecialDrawer ref="projectSpecial"></surProjectSpecialDrawer>
|
2023-08-15 23:58:19 +08:00
|
|
|
|
<attendance-drawer ref="attDrawer"></attendance-drawer>
|
|
|
|
|
<projectDeptWroksDrawer ref="deptWroksDrawer"></projectDeptWroksDrawer>
|
2023-08-16 20:40:54 +08:00
|
|
|
|
<insuranceDrawer ref="insurance"></insuranceDrawer>
|
2023-08-20 15:46:23 +08:00
|
|
|
|
<projectCheckingDrawer ref="projectChecking"></projectCheckingDrawer>
|
2023-08-22 18:09:42 +08:00
|
|
|
|
<materialSealDrawer ref="materialSeal"></materialSealDrawer>
|
|
|
|
|
<projectMeasureDrawer ref="projectMeasure"></projectMeasureDrawer>
|
2023-08-26 00:36:09 +08:00
|
|
|
|
<videoConfigDrawer ref="videoConfig"></videoConfigDrawer>
|
2023-08-27 13:50:15 +08:00
|
|
|
|
<costOutputDrawer ref="costOutput"></costOutputDrawer>
|
2023-09-01 17:31:12 +08:00
|
|
|
|
<checkDetectionDrawer ref="checkDetection"></checkDetectionDrawer>
|
2023-09-20 23:37:11 +08:00
|
|
|
|
<standardDrawer ref="standard"></standardDrawer>
|
2023-09-29 00:24:15 +08:00
|
|
|
|
<attendanceDataDrawer ref="attendanceData"></attendanceDataDrawer>
|
|
|
|
|
<attendanceWorkerDrawer ref="attendanceWorker"></attendanceWorkerDrawer>
|
2023-08-10 21:09:49 +08:00
|
|
|
|
</div>
|
|
|
|
|
</template>
|
|
|
|
|
|
|
|
|
|
<script>
|
2023-08-15 23:58:19 +08:00
|
|
|
|
import {
|
|
|
|
|
listSurProject,
|
|
|
|
|
getSurProject,
|
|
|
|
|
delSurProject,
|
|
|
|
|
addSurProject,
|
|
|
|
|
updateSurProject,
|
|
|
|
|
updateSurProjectProgressVisible,
|
|
|
|
|
updateSurProjectSort,
|
|
|
|
|
} from "@/api/project/surProject";
|
|
|
|
|
import ProjectScheduleDlg from "../surProjectSchedule/ProjectScheduleDlg.vue";
|
|
|
|
|
import projectUserInfoDrawer from "../surProjectUserInfo/projectUserInfoDrawer.vue";
|
|
|
|
|
import BaiduMap from "@/components/BaiduMap/Map.vue";
|
|
|
|
|
import AssessDrawer from "../surProjectQuarterlyAssess/assessDrawer.vue";
|
|
|
|
|
import buildNodeDrawer from "../surBuildNode/buildNodeDrawer.vue";
|
|
|
|
|
import workTrainDrawer from "../../work/workTrain/workTrainDrawer.vue";
|
|
|
|
|
import emergencyDrillDrawer from "../../work/emergencyDrill/emergencyDrillDrawer.vue";
|
|
|
|
|
import surProjectSpecialDrawer from "../surProjectSpecial/surProjectSpecialDrawer.vue";
|
|
|
|
|
import attendanceDrawer from "../surProjectAttendance/attendanceDrawer.vue";
|
|
|
|
|
import projectDeptWroksDrawer from "../projectDeptWroks/projectDeptWroksDrawer.vue";
|
2023-08-16 20:40:54 +08:00
|
|
|
|
import insuranceDrawer from "../surProjectInsurance/insuranceDrawer.vue";
|
2023-08-20 15:46:23 +08:00
|
|
|
|
import projectCheckingDrawer from "../projectChecking/projectCheckingDrawer.vue";
|
2023-08-27 13:50:15 +08:00
|
|
|
|
import materialSealDrawer from "@/views/project/materialSeal/projectMaterialSealDrawer.vue";
|
2023-08-22 18:09:42 +08:00
|
|
|
|
import projectMeasureDrawer from "../projectMeasure/projectMeasureDrawer.vue";
|
2023-08-26 18:08:05 +08:00
|
|
|
|
import videoConfigDrawer from "@/views/video/videoConfig/videoConfigDrawer";
|
2023-08-27 22:25:04 +08:00
|
|
|
|
import costOutputDrawer from "@/views/project/costOutput/costOutputDrawer.vue";
|
2023-09-01 17:31:12 +08:00
|
|
|
|
import checkDetectionDrawer from "../checkDetection/checkDetectionDrawer.vue";
|
2023-09-20 23:37:11 +08:00
|
|
|
|
import standardDrawer from '@/views/project/projectStandard/projectStandardDrawer.vue'
|
2023-09-29 00:24:15 +08:00
|
|
|
|
import attendanceDataDrawer from '@/views/project/attendance/attendanceDrawer.vue'
|
|
|
|
|
import attendanceWorkerDrawer from '@/views/project/attendanceWorker/attendanceWorkerDrawer.vue'
|
2023-08-17 15:51:00 +08:00
|
|
|
|
import { checkPermi, checkRole } from "@/utils/permission"; // 权限判断函数
|
2023-08-11 22:15:06 +08:00
|
|
|
|
|
2023-08-10 21:09:49 +08:00
|
|
|
|
export default {
|
|
|
|
|
name: "SurProject",
|
2023-08-15 23:58:19 +08:00
|
|
|
|
components: {
|
|
|
|
|
attendanceDrawer,
|
|
|
|
|
ProjectScheduleDlg,
|
|
|
|
|
projectUserInfoDrawer,
|
|
|
|
|
BaiduMap,
|
|
|
|
|
AssessDrawer,
|
|
|
|
|
buildNodeDrawer,
|
|
|
|
|
workTrainDrawer,
|
|
|
|
|
emergencyDrillDrawer,
|
|
|
|
|
surProjectSpecialDrawer,
|
|
|
|
|
projectDeptWroksDrawer,
|
2023-08-16 20:40:54 +08:00
|
|
|
|
insuranceDrawer,
|
2023-08-20 15:46:23 +08:00
|
|
|
|
projectCheckingDrawer,
|
2023-08-22 18:09:42 +08:00
|
|
|
|
materialSealDrawer,
|
|
|
|
|
projectMeasureDrawer,
|
2023-08-26 00:36:09 +08:00
|
|
|
|
videoConfigDrawer,
|
2023-08-27 22:25:04 +08:00
|
|
|
|
costOutputDrawer,
|
2023-09-01 17:31:12 +08:00
|
|
|
|
checkDetectionDrawer,
|
2023-09-29 00:24:15 +08:00
|
|
|
|
standardDrawer,
|
|
|
|
|
attendanceDataDrawer,
|
|
|
|
|
attendanceWorkerDrawer
|
2023-08-10 21:09:49 +08:00
|
|
|
|
},
|
2023-08-15 23:58:19 +08:00
|
|
|
|
dicts: [
|
|
|
|
|
"sur_project_xmjd",
|
|
|
|
|
"project_build_type",
|
|
|
|
|
"sys_common_isdel",
|
|
|
|
|
"project_category",
|
|
|
|
|
"project_level",
|
|
|
|
|
"sur_project_weight",
|
|
|
|
|
],
|
2023-08-10 21:09:49 +08:00
|
|
|
|
data() {
|
|
|
|
|
return {
|
|
|
|
|
projectUserInfoDrawerVisible: false,
|
2023-08-12 21:32:32 +08:00
|
|
|
|
projectSpecialDrawerVisible: false,
|
2023-08-10 21:09:49 +08:00
|
|
|
|
// 遮罩层
|
|
|
|
|
loading: true,
|
|
|
|
|
// 选中数组
|
|
|
|
|
ids: [],
|
|
|
|
|
// 非单个禁用
|
|
|
|
|
single: true,
|
|
|
|
|
// 非多个禁用
|
|
|
|
|
multiple: true,
|
|
|
|
|
// 显示搜索条件
|
|
|
|
|
showSearch: true,
|
|
|
|
|
// 总条数
|
|
|
|
|
total: 0,
|
|
|
|
|
// 项目管理表格数据
|
|
|
|
|
surProjectList: [],
|
|
|
|
|
// 弹出层标题
|
|
|
|
|
title: "",
|
|
|
|
|
// 是否显示弹出层
|
|
|
|
|
open: false,
|
|
|
|
|
formData: {
|
2023-08-15 23:58:19 +08:00
|
|
|
|
projectId: null,
|
|
|
|
|
projectName: null,
|
2023-08-10 21:09:49 +08:00
|
|
|
|
},
|
|
|
|
|
// 查询参数
|
|
|
|
|
queryParams: {
|
|
|
|
|
pageNum: 1,
|
|
|
|
|
pageSize: 10,
|
|
|
|
|
deptId: null,
|
|
|
|
|
projectName: null,
|
|
|
|
|
projectCode: null,
|
|
|
|
|
paretProjectName: null,
|
|
|
|
|
paretProjectCode: null,
|
|
|
|
|
simpleName: null,
|
|
|
|
|
projectType: null,
|
|
|
|
|
projiectLevel: null,
|
|
|
|
|
projectRegional: null,
|
|
|
|
|
projectAddress: null,
|
|
|
|
|
projectNature: null,
|
|
|
|
|
licenceNumber: null,
|
|
|
|
|
projectApproval: null,
|
|
|
|
|
projectPerson: null,
|
|
|
|
|
projectPhone: null,
|
|
|
|
|
longitude: null,
|
|
|
|
|
latitude: null,
|
|
|
|
|
projectTimeLimit: null,
|
|
|
|
|
totalInvestment: null,
|
|
|
|
|
floorArea: null,
|
|
|
|
|
totalOutputValue: null,
|
|
|
|
|
plannedCompletionTime: null,
|
|
|
|
|
scheduledStartTime: null,
|
|
|
|
|
actualOperatingTime: null,
|
|
|
|
|
actualCompletionTime: null,
|
|
|
|
|
contractAmount: null,
|
|
|
|
|
paidAmount: null,
|
|
|
|
|
onAccountAmount: null,
|
|
|
|
|
projectSchedule: null,
|
|
|
|
|
projectSummarize: null,
|
|
|
|
|
isDel: null,
|
|
|
|
|
projectStatus: null,
|
|
|
|
|
servicePersonnel: null,
|
|
|
|
|
supervisorPersonnel: null,
|
|
|
|
|
generalContractor: null,
|
|
|
|
|
},
|
|
|
|
|
// 表单参数
|
|
|
|
|
form: {},
|
|
|
|
|
// 表单校验
|
|
|
|
|
rules: {
|
2023-08-15 23:58:19 +08:00
|
|
|
|
deptId: [{ required: true, message: "请选择责任主体", trigger: "blur" }],
|
|
|
|
|
projectName: [{ required: true, message: "请输入项目名称", trigger: "blur" }],
|
2023-08-10 21:09:49 +08:00
|
|
|
|
},
|
2023-08-15 23:58:19 +08:00
|
|
|
|
depts: [],
|
2023-08-10 21:09:49 +08:00
|
|
|
|
};
|
|
|
|
|
},
|
|
|
|
|
created() {
|
|
|
|
|
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: {
|
2023-08-17 15:51:00 +08:00
|
|
|
|
checkPermi,
|
2023-08-15 23:58:19 +08:00
|
|
|
|
mapSuccess(pt, city) {
|
|
|
|
|
this.form.longitude = pt.lng.toFixed(3);
|
|
|
|
|
this.form.latitude = pt.lat.toFixed(3);
|
|
|
|
|
this.form.projectAddress = (city.address || "") + (city.poi_desc || "");
|
2023-08-10 21:09:49 +08:00
|
|
|
|
},
|
2023-08-15 23:58:19 +08:00
|
|
|
|
getMapInfo() {
|
|
|
|
|
this.$refs.map.showDialog("获取项目地理信息");
|
2023-08-10 21:09:49 +08:00
|
|
|
|
},
|
|
|
|
|
//进度管理
|
2023-08-15 23:58:19 +08:00
|
|
|
|
prjProcessMgr(row) {
|
2023-08-10 21:09:49 +08:00
|
|
|
|
this.$refs.prjSchDlg.showDialog(row);
|
|
|
|
|
},
|
|
|
|
|
/** 查询项目管理列表 */
|
|
|
|
|
getList() {
|
|
|
|
|
this.loading = true;
|
2023-08-15 23:58:19 +08:00
|
|
|
|
listSurProject(this.queryParams).then((response) => {
|
2023-08-10 21:09:49 +08:00
|
|
|
|
this.surProjectList = response.rows;
|
|
|
|
|
this.total = response.total;
|
|
|
|
|
this.loading = false;
|
|
|
|
|
});
|
|
|
|
|
},
|
|
|
|
|
// 取消按钮
|
|
|
|
|
cancel() {
|
|
|
|
|
this.open = false;
|
|
|
|
|
this.reset();
|
|
|
|
|
},
|
|
|
|
|
// 表单重置
|
|
|
|
|
reset() {
|
|
|
|
|
this.form = {
|
|
|
|
|
id: null,
|
|
|
|
|
deptId: null,
|
|
|
|
|
projectName: null,
|
|
|
|
|
projectCode: null,
|
|
|
|
|
paretProjectName: null,
|
|
|
|
|
paretProjectCode: null,
|
|
|
|
|
simpleName: null,
|
|
|
|
|
projectType: null,
|
|
|
|
|
projiectLevel: null,
|
|
|
|
|
projectRegional: null,
|
|
|
|
|
projectAddress: null,
|
|
|
|
|
projectNature: null,
|
|
|
|
|
licenceNumber: null,
|
|
|
|
|
projectApproval: null,
|
|
|
|
|
projectPerson: null,
|
|
|
|
|
projectPhone: null,
|
|
|
|
|
longitude: null,
|
|
|
|
|
latitude: null,
|
|
|
|
|
projectTimeLimit: null,
|
|
|
|
|
totalInvestment: null,
|
|
|
|
|
floorArea: null,
|
|
|
|
|
totalOutputValue: null,
|
|
|
|
|
plannedCompletionTime: null,
|
|
|
|
|
scheduledStartTime: null,
|
|
|
|
|
actualOperatingTime: null,
|
|
|
|
|
actualCompletionTime: null,
|
|
|
|
|
contractAmount: null,
|
|
|
|
|
paidAmount: null,
|
|
|
|
|
onAccountAmount: null,
|
|
|
|
|
projectSchedule: null,
|
|
|
|
|
projectSummarize: null,
|
|
|
|
|
isDel: null,
|
|
|
|
|
projectStatus: null,
|
|
|
|
|
servicePersonnel: null,
|
|
|
|
|
supervisorPersonnel: null,
|
|
|
|
|
generalContractor: null,
|
|
|
|
|
createBy: null,
|
|
|
|
|
createTime: null,
|
|
|
|
|
updateBy: null,
|
|
|
|
|
updateTime: null,
|
2023-08-15 23:58:19 +08:00
|
|
|
|
remark: null,
|
2023-08-10 21:09:49 +08:00
|
|
|
|
};
|
|
|
|
|
this.resetForm("form");
|
|
|
|
|
},
|
|
|
|
|
/** 搜索按钮操作 */
|
|
|
|
|
handleQuery() {
|
|
|
|
|
this.queryParams.pageNum = 1;
|
|
|
|
|
this.getList();
|
|
|
|
|
},
|
|
|
|
|
/** 重置按钮操作 */
|
|
|
|
|
resetQuery() {
|
|
|
|
|
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;
|
|
|
|
|
getSurProject(id).then((response) => {
|
2023-08-10 21:09:49 +08:00
|
|
|
|
this.form = response.data;
|
2023-08-12 01:05:00 +08:00
|
|
|
|
this.open = true;
|
2023-08-15 23:58:19 +08:00
|
|
|
|
if (!this.form.projectAddress) {
|
|
|
|
|
this.$refs.map.getCity(this.form, this.mapSuccess);
|
2023-08-10 21:09:49 +08:00
|
|
|
|
}
|
|
|
|
|
this.title = "修改项目管理";
|
|
|
|
|
});
|
|
|
|
|
},
|
|
|
|
|
// 更多操作触发
|
|
|
|
|
handleCommand(command, row) {
|
|
|
|
|
switch (command) {
|
|
|
|
|
case "handleProjectUserinfo":
|
|
|
|
|
this.handleProjectUserinfo(row);
|
|
|
|
|
break;
|
|
|
|
|
case "handleDelete":
|
|
|
|
|
this.handleDelete(row);
|
|
|
|
|
break;
|
|
|
|
|
case "handleAssess":
|
|
|
|
|
this.$refs.assessDrawer.show(row);
|
|
|
|
|
break;
|
|
|
|
|
case "handleBuildNode":
|
|
|
|
|
this.$refs.nodeDrawer.show(row);
|
|
|
|
|
break;
|
2023-08-11 22:15:06 +08:00
|
|
|
|
case "handleWorkTrain":
|
2023-08-27 22:25:04 +08:00
|
|
|
|
this.$refs.workTrainDrawer.show(row);
|
2023-08-11 22:15:06 +08:00
|
|
|
|
break;
|
|
|
|
|
case "handleEmergencyDrill":
|
2023-08-27 22:25:04 +08:00
|
|
|
|
this.$refs.emergencyDrillDrawer.show(row);
|
2023-08-11 22:15:06 +08:00
|
|
|
|
break;
|
2023-08-12 21:32:32 +08:00
|
|
|
|
case "handleProjectSpecial":
|
2023-08-28 01:11:14 +08:00
|
|
|
|
this.$refs.projectSpecial.show(row);
|
2023-08-12 21:32:32 +08:00
|
|
|
|
break;
|
2023-08-15 23:58:19 +08:00
|
|
|
|
case "handleProjectDeptWroks":
|
|
|
|
|
this.$refs.deptWroksDrawer.show(row);
|
|
|
|
|
break;
|
2023-08-14 00:02:18 +08:00
|
|
|
|
case "handleProjectAttendance":
|
|
|
|
|
this.$refs.attDrawer.show(row);
|
|
|
|
|
break;
|
2023-08-16 20:40:54 +08:00
|
|
|
|
case "handleProjectInsurance":
|
|
|
|
|
this.$refs.insurance.show(row);
|
|
|
|
|
break;
|
2023-08-20 15:46:23 +08:00
|
|
|
|
case "handleProjectChecking":
|
|
|
|
|
this.$refs.projectChecking.show(row);
|
|
|
|
|
break;
|
2023-08-22 18:09:42 +08:00
|
|
|
|
case "handleProjectMeasure":
|
|
|
|
|
this.$refs.projectMeasure.show(row);
|
|
|
|
|
break;
|
|
|
|
|
case "handleProjectMaterialSeal":
|
|
|
|
|
this.$refs.materialSeal.show(row);
|
|
|
|
|
break;
|
2023-08-26 11:49:44 +08:00
|
|
|
|
case "handleVideoConfig":
|
2023-08-26 00:36:09 +08:00
|
|
|
|
this.$refs.videoConfig.show(row);
|
|
|
|
|
break;
|
2023-08-27 13:50:15 +08:00
|
|
|
|
case "handleCostOutput":
|
|
|
|
|
this.$refs.costOutput.show(row);
|
|
|
|
|
break;
|
2023-09-01 17:31:12 +08:00
|
|
|
|
case "handleCheckDetection":
|
|
|
|
|
this.$refs.checkDetection.show(row);
|
|
|
|
|
break;
|
2023-09-20 23:37:11 +08:00
|
|
|
|
case "handleStandard":
|
|
|
|
|
this.$refs.standard.show(row);
|
|
|
|
|
break;
|
2023-09-29 00:24:15 +08:00
|
|
|
|
case "handleAttendanceWorker":
|
|
|
|
|
this.$refs.attendanceWorker.show(row);
|
|
|
|
|
break;
|
|
|
|
|
case "handleAttendanceData":
|
|
|
|
|
this.$refs.attendanceData.show(row);
|
|
|
|
|
break;
|
2023-08-10 21:09:49 +08:00
|
|
|
|
default:
|
|
|
|
|
break;
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
//项目人员
|
|
|
|
|
handleProjectUserinfo(row) {
|
|
|
|
|
this.formData.projectId = row.id;
|
|
|
|
|
this.formData.projectName = row.projectName;
|
2023-08-11 22:15:06 +08:00
|
|
|
|
this.projectUserInfoDrawerVisible = true;
|
2023-08-10 21:09:49 +08:00
|
|
|
|
},
|
2023-08-15 23:58:19 +08:00
|
|
|
|
getDeptIdDisabled() {
|
|
|
|
|
if (this.form && this.form.id) {
|
2023-08-12 01:05:00 +08:00
|
|
|
|
return true;
|
2023-08-15 23:58:19 +08:00
|
|
|
|
} else {
|
2023-08-12 01:05:00 +08:00
|
|
|
|
return false;
|
|
|
|
|
}
|
|
|
|
|
},
|
2023-08-10 21:09:49 +08:00
|
|
|
|
/** 提交按钮 */
|
|
|
|
|
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
|
|
|
|
updateSurProject(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
|
|
|
|
addSurProject(this.form).then((response) => {
|
2023-08-10 21:09:49 +08:00
|
|
|
|
this.$modal.msgSuccess("新增成功");
|
|
|
|
|
this.open = false;
|
|
|
|
|
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 delSurProject(ids);
|
|
|
|
|
})
|
|
|
|
|
.then(() => {
|
|
|
|
|
this.getList();
|
|
|
|
|
this.$modal.msgSuccess("删除成功");
|
|
|
|
|
})
|
|
|
|
|
.catch(() => {});
|
2023-08-10 21:09:49 +08:00
|
|
|
|
},
|
|
|
|
|
/** 导出按钮操作 */
|
|
|
|
|
handleExport() {
|
2023-08-15 23:58:19 +08:00
|
|
|
|
this.download(
|
|
|
|
|
"project/surProject/export",
|
|
|
|
|
{
|
|
|
|
|
...this.queryParams,
|
|
|
|
|
},
|
|
|
|
|
`surProject_${new Date().getTime()}.xlsx`
|
|
|
|
|
);
|
2023-08-10 21:09:49 +08:00
|
|
|
|
},
|
|
|
|
|
//项目形象进度滑块控制
|
2023-08-15 23:58:19 +08:00
|
|
|
|
setVisibleStatus(row, val) {
|
|
|
|
|
this.$confirm(`是否确认修改形象进度为${val == "0" ? "显示" : "隐藏"}?`, "提示", {
|
|
|
|
|
confirmButtonText: "确定",
|
|
|
|
|
cancelButtonText: "取消",
|
|
|
|
|
type: "warning",
|
2023-08-10 21:09:49 +08:00
|
|
|
|
})
|
2023-08-15 23:58:19 +08:00
|
|
|
|
.then(async () => {
|
|
|
|
|
let param = {
|
|
|
|
|
id: row.id,
|
|
|
|
|
progressVisible: val,
|
|
|
|
|
};
|
|
|
|
|
updateSurProjectProgressVisible(param).then((response) => {
|
|
|
|
|
this.$modal.msgSuccess("修改成功");
|
|
|
|
|
this.getList();
|
|
|
|
|
});
|
|
|
|
|
})
|
|
|
|
|
.catch(() => {
|
|
|
|
|
// 取消时恢复原始开关状态
|
|
|
|
|
if (val == "0") {
|
|
|
|
|
row.progressVisible = "1";
|
|
|
|
|
} else {
|
|
|
|
|
row.progressVisible = "0";
|
|
|
|
|
}
|
|
|
|
|
});
|
2023-08-10 21:09:49 +08:00
|
|
|
|
},
|
|
|
|
|
//项目排序控制
|
2023-08-15 23:58:19 +08:00
|
|
|
|
setProjectSort(row, val) {
|
2023-08-10 21:09:49 +08:00
|
|
|
|
let param = {
|
2023-08-15 23:58:19 +08:00
|
|
|
|
id: row.id,
|
|
|
|
|
projectSort: val,
|
|
|
|
|
};
|
|
|
|
|
updateSurProjectSort(param).then((response) => {
|
|
|
|
|
this.$modal.msgSuccess("修改成功");
|
|
|
|
|
this.getList();
|
|
|
|
|
});
|
2023-08-11 22:15:06 +08:00
|
|
|
|
},
|
2023-08-15 23:58:19 +08:00
|
|
|
|
handleProjectSpecial(row) {
|
2023-08-12 21:32:32 +08:00
|
|
|
|
this.formData.projectId = row.id;
|
|
|
|
|
this.formData.projectName = row.projectName;
|
|
|
|
|
this.projectSpecialDrawerVisible = true;
|
2023-08-15 23:58:19 +08:00
|
|
|
|
},
|
|
|
|
|
},
|
2023-08-10 21:09:49 +08:00
|
|
|
|
};
|
|
|
|
|
</script>
|
|
|
|
|
<style lang="scss">
|
2023-08-15 23:58:19 +08:00
|
|
|
|
.prj-suprj-edit-dialog {
|
|
|
|
|
.el-dialog__body {
|
|
|
|
|
padding-bottom: 0px;
|
2023-08-26 00:36:09 +08:00
|
|
|
|
.fi-longitude {
|
|
|
|
|
.el-form-item__content {
|
2023-08-25 00:36:39 +08:00
|
|
|
|
display: flex;
|
|
|
|
|
}
|
|
|
|
|
}
|
2023-08-15 23:58:19 +08:00
|
|
|
|
}
|
2023-08-10 21:09:49 +08:00
|
|
|
|
}
|
|
|
|
|
</style>
|