This commit is contained in:
weiz 2024-03-18 16:48:23 +08:00
parent e0b90ae4ea
commit 3417b6f1d6
18 changed files with 138 additions and 32 deletions

View File

@ -1,32 +1,57 @@
import request from '@/utils/request'
import request from "@/utils/request";
// 工程监理--参建单位列表
export function apiSupervisionParticipatingUnitsLists(params: any) {
return request.get({ url: '/supervision_project.supervision_participating_units/lists', params })
return request.get({
url: "/supervision_project.supervision_participating_units/lists",
params,
});
}
// 添加工程监理--参建单位
export function apiSupervisionParticipatingUnitsAdd(params: any) {
return request.post({ url: '/supervision_project.supervision_participating_units/add', params })
return request.post({
url: "/supervision_project.supervision_participating_units/add",
params,
});
}
// 编辑工程监理--参建单位
export function apiSupervisionParticipatingUnitsEdit(params: any) {
return request.post({ url: '/supervision_project.supervision_participating_units/edit', params })
return request.post({
url: "/supervision_project.supervision_participating_units/edit",
params,
});
}
// 删除工程监理--参建单位
export function apiSupervisionParticipatingUnitsDelete(params: any) {
return request.post({ url: '/supervision_project.supervision_participating_units/delete', params })
return request.post({
url: "/supervision_project.supervision_participating_units/delete",
params,
});
}
// 工程监理--参建单位详情
export function apiSupervisionParticipatingUnitsDetail(params: any) {
return request.get({ url: '/supervision_project.supervision_participating_units/detail', params })
return request.get({
url: "/supervision_project.supervision_participating_units/detail",
params,
});
}
// 工程监理--参建单位列表
export function supervision_participating_units_contactsapi(params: any) {
return request.get({ url: '/supervision_project.supervision_participating_units_contacts/lists', params })
return request.get({
url: "/supervision_project.supervision_participating_units_contacts/lists",
params,
});
}
//apiSupervisionParticipatingUnitsSearch
export function apiSupervisionParticipatingUnitsSearch(params: any) {
return request.get({
url: "/supervision_project.supervision_participating_units/datas",
params,
});
}

View File

@ -1,26 +1,48 @@
import request from '@/utils/request'
import request from "@/utils/request";
// 工程监理--监理项目信息列表
export function apiSupervisionProjectLists(params: any) {
return request.get({ url: '/supervision_project.supervision_project/lists', params })
return request.get({
url: "/supervision_project.supervision_project/lists",
params,
});
}
// 添加工程监理--监理项目信息
export function apiSupervisionProjectAdd(params: any) {
return request.post({ url: '/supervision_project.supervision_project/add', params })
return request.post({
url: "/supervision_project.supervision_project/add",
params,
});
}
// 编辑工程监理--监理项目信息
export function apiSupervisionProjectEdit(params: any) {
return request.post({ url: '/supervision_project.supervision_project/edit', params })
return request.post({
url: "/supervision_project.supervision_project/edit",
params,
});
}
// 删除工程监理--监理项目信息
export function apiSupervisionProjectDelete(params: any) {
return request.post({ url: '/supervision_project.supervision_project/delete', params })
return request.post({
url: "/supervision_project.supervision_project/delete",
params,
});
}
// 工程监理--监理项目信息详情
export function apiSupervisionProjectDetail(params: any) {
return request.get({ url: '/supervision_project.supervision_project/detail', params })
}
return request.get({
url: "/supervision_project.supervision_project/detail",
params,
});
}
export function apiSupervisionProjectSearch(params: any) {
return request.get({
url: "/supervision_project.supervision_project/datas",
params,
});
}

View File

@ -2,7 +2,9 @@
<div>
<el-card class="!border-none mb-4" shadow="never">
<el-form class="mb-[-16px]" :model="queryParams" inline>
<el-form-item label="所属项目" prop="project_id">
<selectRemote :formData="queryParams" model="project_id" :api="apiSupervisionProjectSearch" />
</el-form-item>
<el-form-item label="文档名称" prop="doc_name">
<el-input class="w-[280px]" v-model="queryParams.doc_name" clearable placeholder="请输入文档名称" />
</el-form-item>
@ -72,8 +74,8 @@
<script lang="ts" setup name="supervisionCommencementReportLists">
import { usePaging } from '@/hooks/usePaging'
import { useDictData } from '@/hooks/useDictOptions'
import { apiSupervisionProjectSearch } from '@/api/supervision_project'
import { apiSupervisionCommencementReportLists, apiSupervisionCommencementReportDelete } from '@/api/supervision_commencement_report'
import { timeFormat } from '@/utils/util'
import feedback from '@/utils/feedback'
import EditPopup from './edit.vue'

View File

@ -2,6 +2,10 @@
<div>
<el-card class="!border-none mb-4" shadow="never">
<el-form class="mb-[-16px]" :model="queryParams" inline>
<el-form-item label="所属单位" prop="company_id">
<selectRemote :formData="queryParams" model="company_id"
:api="apiSupervisionParticipatingUnitsSearch" />
</el-form-item>
<el-form-item label="姓名" prop="name">
<el-input class="w-[280px]" v-model="queryParams.name" clearable placeholder="请输入姓名" />
</el-form-item>
@ -81,8 +85,8 @@
<script lang="ts" setup name="supervisionConstructionManagementPersonnelLists">
import { usePaging } from '@/hooks/usePaging'
import { useDictData } from '@/hooks/useDictOptions'
import { apiSupervisionParticipatingUnitsSearch } from '@/api/supervision_participating_units'
import { apiSupervisionConstructionManagementPersonnelLists, apiSupervisionConstructionManagementPersonnelDelete, apiSupervisionConstructionManagementPersonnelDetail } from '@/api/supervision_construction_management_personnel'
import { timeFormat } from '@/utils/util'
import feedback from '@/utils/feedback'
import EditPopup from './edit.vue'

View File

@ -2,6 +2,9 @@
<div>
<el-card class="!border-none mb-4" shadow="never">
<el-form class="mb-[-16px]" :model="queryParams" inline>
<el-form-item label="所属项目" prop="project_id">
<selectRemote :formData="queryParams" model="project_id" :api="apiSupervisionProjectSearch" />
</el-form-item>
<el-form-item label="文档名称" prop="doc_name">
<el-input class="w-[280px]" v-model="queryParams.doc_name" clearable placeholder="请输入文档名称" />
</el-form-item>
@ -67,8 +70,8 @@
<script lang="ts" setup name="supervisionConstructionPlanningLists">
import { usePaging } from '@/hooks/usePaging'
import { useDictData } from '@/hooks/useDictOptions'
import { apiSupervisionProjectSearch } from '@/api/supervision_project'
import { apiSupervisionConstructionPlanningLists, apiSupervisionConstructionPlanningDelete, apiSupervisionConstructionPlanningDetail } from '@/api/supervision_construction_planning'
import { timeFormat } from '@/utils/util'
import feedback from '@/utils/feedback'
import EditPopup from './edit.vue'

View File

@ -2,6 +2,9 @@
<div>
<el-card class="!border-none mb-4" shadow="never">
<el-form class="mb-[-16px]" :model="queryParams" inline>
<el-form-item label="所属项目" prop="project_id">
<selectRemote :formData="queryParams" model="project_id" :api="apiSupervisionProjectSearch" />
</el-form-item>
<el-form-item label="文档名称" prop="doc_name">
<el-input class="w-[280px]" v-model="queryParams.doc_name" clearable placeholder="请输入文档名称" />
</el-form-item>
@ -59,8 +62,8 @@
<script lang="ts" setup name="supervisionContractDisclosureLists">
import { usePaging } from '@/hooks/usePaging'
import { useDictData } from '@/hooks/useDictOptions'
import { apiSupervisionProjectSearch } from '@/api/supervision_project'
import { apiSupervisionContractDisclosureLists, apiSupervisionContractDisclosureDelete, apiSupervisionContractDisclosureDetail } from '@/api/supervision_contract_disclosure'
import { timeFormat } from '@/utils/util'
import feedback from '@/utils/feedback'
import EditPopup from './edit.vue'

View File

@ -2,6 +2,9 @@
<div>
<el-card class="!border-none mb-4" shadow="never">
<el-form class="mb-[-16px]" :model="queryParams" inline>
<el-form-item label="所属项目" prop="project_id">
<selectRemote :formData="queryParams" model="project_id" :api="apiSupervisionProjectSearch" />
</el-form-item>
<el-form-item label="文档名称" prop="doc_name">
<el-input class="w-[280px]" v-model="queryParams.doc_name" clearable placeholder="请输入文档名称" />
</el-form-item>
@ -67,8 +70,8 @@
<script lang="ts" setup name="supervisionDesignDisclosureLists">
import { usePaging } from '@/hooks/usePaging'
import { useDictData } from '@/hooks/useDictOptions'
import { apiSupervisionProjectSearch } from '@/api/supervision_project'
import { apiSupervisionDesignDisclosureLists, apiSupervisionDesignDisclosureDelete, apiSupervisionDesignDisclosureDetail } from '@/api/supervision_design_disclosure'
import { timeFormat } from '@/utils/util'
import feedback from '@/utils/feedback'
import EditPopup from './edit.vue'

View File

@ -2,6 +2,9 @@
<div>
<el-card class="!border-none mb-4" shadow="never">
<el-form class="mb-[-16px]" :model="queryParams" inline>
<el-form-item label="所属项目" prop="project_id">
<selectRemote :formData="queryParams" model="project_id" :api="apiSupervisionProjectSearch" />
</el-form-item>
<el-form-item label="文档名称" prop="doc_name">
<el-input class="w-[280px]" v-model="queryParams.doc_name" clearable placeholder="请输入文档名称" />
</el-form-item>
@ -67,8 +70,8 @@
<script lang="ts" setup name="supervisionFirstMeetingLists">
import { usePaging } from '@/hooks/usePaging'
import { useDictData } from '@/hooks/useDictOptions'
import { apiSupervisionProjectSearch } from '@/api/supervision_project'
import { apiSupervisionFirstMeetingLists, apiSupervisionFirstMeetingDelete, apiSupervisionFirstMeetingDetail } from '@/api/supervision_first_meeting'
import { timeFormat } from '@/utils/util'
import feedback from '@/utils/feedback'
import EditPopup from './edit.vue'

View File

@ -2,7 +2,10 @@
<div>
<el-card class="!border-none mb-4" shadow="never">
<el-form class="mb-[-16px]" :model="queryParams" inline>
<el-form-item label="所属单位" prop="company_id">
<selectRemote :formData="queryParams" model="company_id"
:api="apiSupervisionParticipatingUnitsSearch" />
</el-form-item>
<el-form-item label="设备名称" prop="name">
<el-input class="w-[280px]" v-model="queryParams.name" clearable placeholder="请输入设备名称" />
</el-form-item>
@ -76,8 +79,8 @@
<script lang="ts" setup name="supervisionLargeEquipmentLists">
import { usePaging } from '@/hooks/usePaging'
import { useDictData } from '@/hooks/useDictOptions'
import { apiSupervisionParticipatingUnitsSearch } from '@/api/supervision_participating_units'
import { apiSupervisionLargeEquipmentLists, apiSupervisionLargeEquipmentDelete, apiSupervisionLargeEquipmentDetail } from '@/api/supervision_large_equipment'
import { timeFormat } from '@/utils/util'
import feedback from '@/utils/feedback'
import EditPopup from './edit.vue'

View File

@ -3,6 +3,9 @@
<el-card class="!border-none mb-4" shadow="never">
<el-form class="mb-[-16px]" :model="queryParams" inline>
<el-row>
<el-form-item label="所属项目" prop="project_id">
<selectRemote :formData="queryParams" model="project_id" :api="apiSupervisionProjectSearch" />
</el-form-item>
<el-col :span="6">
<el-form-item label="监控设备名称" prop="device_name">
<el-input class="w-[280px]" v-model="queryParams.device_name" clearable
@ -57,6 +60,7 @@
<div class="mt-4">
<el-table :data="pager.lists" @selection-change="handleSelectionChange">
<el-table-column type="selection" width="55" />
<el-table-column label="所属项目" prop="project_name" show-overflow-tooltip />
<el-table-column label="监控设备名称" prop="device_name" show-overflow-tooltip />
<el-table-column label="设备类型" prop="device_type_text" show-overflow-tooltip />
<el-table-column label="设备序列号" prop="device_sn" show-overflow-tooltip />
@ -93,6 +97,7 @@
<script lang="ts" setup name="supervisionMonitoringEquipmentLists">
import { usePaging } from '@/hooks/usePaging'
import { useDictData } from '@/hooks/useDictOptions'
import { apiSupervisionProjectSearch } from '@/api/supervision_project'
import { apiSupervisionMonitoringEquipmentLists, apiSupervisionMonitoringEquipmentDelete, apiSupervisionMonitoringEquipmentDetail } from '@/api/supervision_monitoring_equipment'
import feedback from '@/utils/feedback'
import EditPopup from './edit.vue'

View File

@ -2,6 +2,9 @@
<div>
<el-card class="!border-none mb-4" shadow="never">
<el-form class="mb-[-16px]" :model="queryParams" inline>
<el-form-item label="所属项目" prop="project_id">
<selectRemote :formData="queryParams" model="project_id" :api="apiSupervisionProjectSearch" />
</el-form-item>
<el-form-item label="单位类别" prop="unit_type">
<el-select class="w-[280px]" v-model="queryParams.unit_type" clearable placeholder="请选择行业">
<el-option v-for="(item, index) in dictData.unit_type" :key="index" :label="item.name"
@ -36,7 +39,7 @@
<div class="mt-4">
<el-table :data="pager.lists" @selection-change="handleSelectionChange">
<el-table-column type="selection" width="55" />
<!-- <el-table-column label="项目id" prop="project_id" show-overflow-tooltip /> -->
<el-table-column label="所属项目" prop="project_name" show-overflow-tooltip />
<el-table-column label="单位名称" prop="unit_name" show-overflow-tooltip />
<el-table-column label="单位类别" prop="unit_type_text" show-overflow-tooltip />
<el-table-column label="资质等级" prop="qualification_grade" show-overflow-tooltip />
@ -73,6 +76,7 @@
<script lang="ts" setup name="supervisionParticipatingUnitsLists">
import { usePaging } from '@/hooks/usePaging'
import { useDictData } from '@/hooks/useDictOptions'
import { apiSupervisionProjectSearch } from '@/api/supervision_project'
import { apiSupervisionParticipatingUnitsLists, apiSupervisionParticipatingUnitsDelete, apiSupervisionParticipatingUnitsDetail } from '@/api/supervision_participating_units'
import feedback from '@/utils/feedback'
import EditPopup from './edit.vue'

View File

@ -2,6 +2,10 @@
<div>
<el-card class="!border-none mb-4" shadow="never">
<el-form class="mb-[-16px]" :model="queryParams" inline>
<el-form-item label="所属单位" prop="unit_id">
<selectRemote :formData="queryParams" model="unit_id"
:api="apiSupervisionParticipatingUnitsSearch" />
</el-form-item>
<el-form-item label="姓名" prop="name">
<el-input class="w-[280px]" v-model="queryParams.name" clearable placeholder="请输入姓名" />
</el-form-item>
@ -64,8 +68,8 @@
<script lang="ts" setup name="supervisionParticipatingUnitsContactsLists">
import { usePaging } from '@/hooks/usePaging'
import { useDictData } from '@/hooks/useDictOptions'
import { apiSupervisionParticipatingUnitsSearch } from '@/api/supervision_participating_units'
import { apiSupervisionParticipatingUnitsContactsLists, apiSupervisionParticipatingUnitsContactsDelete } from '@/api/supervision_participating_units_contacts'
import { timeFormat } from '@/utils/util'
import feedback from '@/utils/feedback'
import EditPopup from './edit.vue'

View File

@ -2,6 +2,13 @@
<div>
<el-card class="!border-none mb-4" shadow="never">
<el-form class="mb-[-16px]" :model="queryParams" inline>
<el-form-item label="所属项目" prop="project_id">
<selectRemote :formData="queryParams" model="project_id" :api="apiSupervisionProjectSearch" />
</el-form-item>
<el-form-item label="所属单位" prop="company_id">
<selectRemote :formData="queryParams" model="company_id"
:api="apiSupervisionParticipatingUnitsSearch" />
</el-form-item>
<el-form-item label="资质名称" prop="qualification_name">
<el-input class="w-[280px]" v-model="queryParams.qualification_name" clearable
placeholder="请输入资质名称" />
@ -67,8 +74,9 @@
<script lang="ts" setup name="supervisionParticipatingUnitsQualificationsLists">
import { usePaging } from '@/hooks/usePaging'
import { useDictData } from '@/hooks/useDictOptions'
import { apiSupervisionProjectSearch } from '@/api/supervision_project'
import { apiSupervisionParticipatingUnitsSearch } from '@/api/supervision_participating_units'
import { apiSupervisionParticipatingUnitsQualificationsLists, apiSupervisionParticipatingUnitsQualificationsDelete, apiSupervisionParticipatingUnitsQualificationsDetail } from '@/api/supervision_participating_units_qualifications'
import { timeFormat } from '@/utils/util'
import feedback from '@/utils/feedback'
import EditPopup from './edit.vue'

View File

@ -2,9 +2,12 @@
<div>
<el-card class="!border-none mb-4" shadow="never">
<el-form class="mb-[-16px]" :model="queryParams" inline>
<el-row>
<el-col :span="6">
<el-form-item label="所属项目" prop="project_id">
<selectRemote :formData="queryParams" model="project_id"
:api="apiSupervisionProjectSearch" />
</el-form-item>
<el-form-item label="专项审批类型" prop="approval_type">
<el-select class="w-[280px]" v-model="queryParams.approval_type" clearable
placeholder="请选择专项审批类型">
@ -92,6 +95,7 @@
<script lang="ts" setup name="supervisionPlanningLists">
import { usePaging } from '@/hooks/usePaging'
import { useDictData } from '@/hooks/useDictOptions'
import { apiSupervisionProjectSearch } from '@/api/supervision_project'
import { apiSupervisionPlanningLists, apiSupervisionPlanningDelete, apiSupervisionPlanningDetail } from '@/api/supervision_planning'
import feedback from '@/utils/feedback'
import EditPopup from './edit.vue'

View File

@ -2,6 +2,9 @@
<div>
<el-card class="!border-none mb-4" shadow="never">
<el-form class="mb-[-16px]" :model="queryParams" inline>
<el-form-item label="所属项目" prop="project_id">
<selectRemote :formData="queryParams" model="project_id" :api="apiSupervisionProjectSearch" />
</el-form-item>
<el-form-item label="文档名称" prop="doc_name">
<el-input class="w-[280px]" v-model="queryParams.doc_name" clearable placeholder="请输入文档名称" />
</el-form-item>
@ -70,8 +73,8 @@
<script lang="ts" setup name="supervisionRulesLists">
import { usePaging } from '@/hooks/usePaging'
import { useDictData } from '@/hooks/useDictOptions'
import { apiSupervisionProjectSearch } from '@/api/supervision_project'
import { apiSupervisionRulesLists, apiSupervisionRulesDelete } from '@/api/supervision_rules'
import { timeFormat } from '@/utils/util'
import feedback from '@/utils/feedback'
import EditPopup from './edit.vue'

View File

@ -2,7 +2,9 @@
<div>
<el-card class="!border-none mb-4" shadow="never">
<el-form class="mb-[-16px]" :model="queryParams" inline>
<el-form-item label="所属项目" prop="project_id">
<selectRemote :formData="queryParams" model="project_id" :api="apiSupervisionProjectSearch" />
</el-form-item>
<el-form-item label="文档名称" prop="doc_name">
<el-input class="w-[280px]" v-model="queryParams.doc_name" clearable placeholder="请输入文档名称" />
</el-form-item>
@ -72,8 +74,8 @@
<script lang="ts" setup name="supervisionRulesDisclosureLists">
import { usePaging } from '@/hooks/usePaging'
import { useDictData } from '@/hooks/useDictOptions'
import { apiSupervisionProjectSearch } from '@/api/supervision_project'
import { apiSupervisionRulesDisclosureLists, apiSupervisionRulesDisclosureDelete } from '@/api/supervision_rules_disclosure'
import { timeFormat } from '@/utils/util'
import feedback from '@/utils/feedback'
import EditPopup from './edit.vue'

View File

@ -2,6 +2,10 @@
<div>
<el-card class="!border-none mb-4" shadow="never">
<el-form class="mb-[-16px]" :model="queryParams" inline>
<el-form-item label="所属单位" prop="company_id">
<selectRemote :formData="queryParams" model="company_id"
:api="apiSupervisionParticipatingUnitsSearch" />
</el-form-item>
<el-form-item label="姓名" prop="name">
<el-input class="w-[280px]" v-model="queryParams.name" clearable placeholder="请输入姓名" />
</el-form-item>
@ -80,8 +84,8 @@
<script lang="ts" setup name="supervisionSafetyManagementPersonnelLists">
import { usePaging } from '@/hooks/usePaging'
import { useDictData } from '@/hooks/useDictOptions'
import { apiSupervisionParticipatingUnitsSearch } from '@/api/supervision_participating_units'
import { apiSupervisionSafetyManagementPersonnelLists, apiSupervisionSafetyManagementPersonnelDelete, apiSupervisionSafetyManagementPersonnelDetail } from '@/api/supervision_safety_management_personnel'
import { timeFormat } from '@/utils/util'
import feedback from '@/utils/feedback'
import EditPopup from './edit.vue'

View File

@ -2,6 +2,10 @@
<div>
<el-card class="!border-none mb-4" shadow="never">
<el-form class="mb-[-16px]" :model="queryParams" inline>
<el-form-item label="所属单位" prop="company_id">
<selectRemote :formData="queryParams" model="company_id"
:api="apiSupervisionParticipatingUnitsSearch" />
</el-form-item>
<el-form-item label="项目名称" prop="project_id">
<el-input class="w-[280px]" v-model="queryParams.project_id" clearable placeholder="请输入项目名称" />
</el-form-item>
@ -69,8 +73,8 @@
<script lang="ts" setup name="supervisionSpecialOperationPersonnelLists">
import { usePaging } from '@/hooks/usePaging'
import { useDictData } from '@/hooks/useDictOptions'
import { apiSupervisionParticipatingUnitsSearch } from '@/api/supervision_participating_units'
import { apiSupervisionSpecialOperationPersonnelLists, apiSupervisionSpecialOperationPersonnelDelete, apiSupervisionSpecialOperationPersonnelDetail } from '@/api/supervision_special_operation_personnel'
import { timeFormat } from '@/utils/util'
import feedback from '@/utils/feedback'
import EditPopup from './edit.vue'