This commit is contained in:
zmj 2024-03-19 11:40:51 +08:00
commit 0354a658e4
23 changed files with 108 additions and 25 deletions

View File

@ -1,26 +1,31 @@
import request from '@/utils/request'
import request from "@/utils/request";
// 项目咨询--基本信息列表
export function apiConsultProjectLists(params: any) {
return request.get({ url: '/consult_basic.consult_project/lists', params })
return request.get({ url: "/consult_basic.consult_project/lists", params });
}
// 添加项目咨询--基本信息
export function apiConsultProjectAdd(params: any) {
return request.post({ url: '/consult_basic.consult_project/add', params })
return request.post({ url: "/consult_basic.consult_project/add", params });
}
// 编辑项目咨询--基本信息
export function apiConsultProjectEdit(params: any) {
return request.post({ url: '/consult_basic.consult_project/edit', params })
return request.post({ url: "/consult_basic.consult_project/edit", params });
}
// 删除项目咨询--基本信息
export function apiConsultProjectDelete(params: any) {
return request.post({ url: '/consult_basic.consult_project/delete', params })
return request.post({ url: "/consult_basic.consult_project/delete", params });
}
// 项目咨询--基本信息详情
export function apiConsultProjectDetail(params: any) {
return request.get({ url: '/consult_basic.consult_project/detail', params })
}
return request.get({ url: "/consult_basic.consult_project/detail", params });
}
//apiConsultProjectSearch
export function apiConsultProjectSearch(params: any) {
return request.get({ url: "/consult_basic.consult_project/datas", params });
}

View File

@ -1,26 +1,30 @@
import request from '@/utils/request'
import request from "@/utils/request";
// 项目管理--项目信息列表
export function apiManageProjectLists(params: any) {
return request.get({ url: '/manage_basic.manage_project/lists', params })
return request.get({ url: "/manage_basic.manage_project/lists", params });
}
// 添加项目管理--项目信息
export function apiManageProjectAdd(params: any) {
return request.post({ url: '/manage_basic.manage_project/add', params })
return request.post({ url: "/manage_basic.manage_project/add", params });
}
// 编辑项目管理--项目信息
export function apiManageProjectEdit(params: any) {
return request.post({ url: '/manage_basic.manage_project/edit', params })
return request.post({ url: "/manage_basic.manage_project/edit", params });
}
// 删除项目管理--项目信息
export function apiManageProjectDelete(params: any) {
return request.post({ url: '/manage_basic.manage_project/delete', params })
return request.post({ url: "/manage_basic.manage_project/delete", params });
}
// 项目管理--项目信息详情
export function apiManageProjectDetail(params: any) {
return request.get({ url: '/manage_basic.manage_project/detail', params })
}
return request.get({ url: "/manage_basic.manage_project/detail", params });
}
export function apiManageProjectSearch(params: any) {
return request.get({ url: "/manage_basic.manage_project/datas", params });
}

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="apiConsultProjectSearch" />
</el-form-item>
<el-form-item label="文档名称" prop="title">
<el-input class="w-[280px]" v-model="queryParams.title" clearable placeholder="请输入文档名称" />
</el-form-item>
@ -63,6 +66,7 @@ import { usePaging } from '@/hooks/usePaging'
import { useDictData } from '@/hooks/useDictOptions'
import { apiConsultAcceptLists, apiConsultAcceptDelete, apiConsultAcceptDetail } from '@/api/consult_accept'
import { apiConsultDirectoryLists } from '@/api/consult_directory'
import { apiConsultProjectSearch } from '@/api/consult_project'
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="apiConsultProjectSearch" />
</el-form-item>
<el-form-item label="文档名称" prop="title">
<el-input class="w-[280px]" v-model="queryParams.title" clearable placeholder="请输入文档名称" />
</el-form-item>
@ -62,6 +65,7 @@
import { usePaging } from '@/hooks/usePaging'
import { useDictData } from '@/hooks/useDictOptions'
import { apiConsultContractLists, apiConsultContractDelete, apiConsultContractDetail } from '@/api/consult_contract'
import { apiConsultProjectSearch } from '@/api/consult_project'
import feedback from '@/utils/feedback'
import EditPopup from './edit.vue'
import { apiConsultDirectoryLists } from '@/api/consult_directory'

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="apiConsultProjectSearch" />
</el-form-item>
<el-form-item label="文档名称" prop="title">
<el-input class="w-[280px]" v-model="queryParams.title" clearable placeholder="请输入文档名称" />
</el-form-item>
@ -63,6 +66,7 @@ import { usePaging } from '@/hooks/usePaging'
import { useDictData } from '@/hooks/useDictOptions'
import { apiConsultControlLists, apiConsultControlDelete, apiConsultControlDetail } from '@/api/consult_control'
import { apiConsultDirectoryLists } from '@/api/consult_directory'
import { apiConsultProjectSearch } from '@/api/consult_project'
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="apiConsultProjectSearch" />
</el-form-item>
<el-form-item label="文档名称" prop="title">
<el-input class="w-[280px]" v-model="queryParams.title" clearable placeholder="请输入文档名称" />
</el-form-item>
@ -63,6 +66,7 @@ import { usePaging } from '@/hooks/usePaging'
import { useDictData } from '@/hooks/useDictOptions'
import { apiConsultCostLists, apiConsultCostDelete, apiConsultCostDetail } from '@/api/consult_cost'
import { apiConsultDirectoryLists } from '@/api/consult_directory'
import { apiConsultProjectSearch } from '@/api/consult_project'
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="apiConsultProjectSearch" />
</el-form-item>
<el-form-item label="文档名称" prop="title">
<el-input class="w-[280px]" v-model="queryParams.title" clearable placeholder="请输入文档名称" />
</el-form-item>
@ -63,6 +66,7 @@ import { usePaging } from '@/hooks/usePaging'
import { useDictData } from '@/hooks/useDictOptions'
import { apiConsultDecisionLists, apiConsultDecisionDelete, apiConsultDecisionDetail } from '@/api/consult_decision'
import { apiConsultDirectoryLists } from '@/api/consult_directory'
import { apiConsultProjectSearch } from '@/api/consult_project'
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="apiConsultProjectSearch" />
</el-form-item>
<el-form-item label="文档名称" prop="title">
<el-input class="w-[280px]" v-model="queryParams.title" clearable placeholder="请输入文档名称" />
</el-form-item>
@ -63,6 +66,7 @@ import { usePaging } from '@/hooks/usePaging'
import { useDictData } from '@/hooks/useDictOptions'
import { apiConsultDeclareLists, apiConsultDeclareDelete } from '@/api/consult_declare'
import { apiConsultDirectoryLists } from '@/api/consult_directory'
import { apiConsultProjectSearch } from '@/api/consult_project'
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="apiConsultProjectSearch" />
</el-form-item>
<el-form-item label="文档名称" prop="title">
<el-input class="w-[280px]" v-model="queryParams.title" clearable placeholder="请输入文档名称" />
</el-form-item>
@ -64,6 +66,7 @@ import { usePaging } from '@/hooks/usePaging'
import { useDictData } from '@/hooks/useDictOptions'
import { apiConsultDemandLists, apiConsultDemandDelete, apiConsultDemandDetail } from '@/api/consult_demand'
import { apiConsultDirectoryLists } from '@/api/consult_directory'
import { apiConsultProjectSearch } from '@/api/consult_project'
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="apiConsultProjectSearch" />
</el-form-item>
<el-form-item label="文档名称" prop="title">
<el-input class="w-[280px]" v-model="queryParams.title" clearable placeholder="请输入文档名称" />
</el-form-item>
@ -63,6 +66,7 @@ import { usePaging } from '@/hooks/usePaging'
import { useDictData } from '@/hooks/useDictOptions'
import { apiConsultDesignLists, apiConsultDesignDelete, apiConsultDesignDetail } from '@/api/consult_design'
import { apiConsultDirectoryLists } from '@/api/consult_directory'
import { apiConsultProjectSearch } from '@/api/consult_project'
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="apiConsultProjectSearch" />
</el-form-item>
<el-form-item label="工程地点" prop="address">
<el-input class="w-[280px]" v-model="queryParams.address" clearable placeholder="请输入工程地点" />
</el-form-item>
@ -67,7 +70,7 @@
import { usePaging } from '@/hooks/usePaging'
import { useDictData } from '@/hooks/useDictOptions'
import { apiConsultNewStartProjectLists, apiConsultNewStartProjectDelete, apiConsultNewStartProjectDetail } from '@/api/consult_new_start_project'
import { timeFormat } from '@/utils/util'
import { apiConsultProjectSearch } from '@/api/consult_project'
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="apiConsultProjectSearch" />
</el-form-item>
<el-form-item label="文档名称" prop="title">
<el-input class="w-[280px]" v-model="queryParams.title" clearable placeholder="请输入文档名称" />
</el-form-item>
@ -63,6 +66,7 @@ import { usePaging } from '@/hooks/usePaging'
import { useDictData } from '@/hooks/useDictOptions'
import { apiConsultProcureLists, apiConsultProcureDelete, apiConsultProcureDetail } from '@/api/consult_procure'
import { apiConsultDirectoryLists } from '@/api/consult_directory'
import { apiConsultProjectSearch } from '@/api/consult_project'
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="apiConsultProjectSearch" />
</el-form-item>
<el-form-item label="文档名称" prop="title">
<el-input class="w-[280px]" v-model="queryParams.title" clearable placeholder="请输入文档名称" />
</el-form-item>
@ -63,6 +66,7 @@ import { usePaging } from '@/hooks/usePaging'
import { useDictData } from '@/hooks/useDictOptions'
import { apiConsultReceiveLists, apiConsultReceiveDelete } from '@/api/consult_receive'
import { apiConsultDirectoryLists } from '@/api/consult_directory'
import { apiConsultProjectSearch } from '@/api/consult_project'
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="apiConsultProjectSearch" />
</el-form-item>
<el-form-item label="文档名称" prop="title">
<el-input class="w-[280px]" v-model="queryParams.title" clearable placeholder="请输入文档名称" />
</el-form-item>
@ -63,6 +66,7 @@ import { usePaging } from '@/hooks/usePaging'
import { useDictData } from '@/hooks/useDictOptions'
import { apiConsultSceneExecuteLists, apiConsultSceneExecuteDelete, apiConsultSceneExecuteDetail } from '@/api/consult_scene_execute'
import { apiConsultDirectoryLists } from '@/api/consult_directory'
import { apiConsultProjectSearch } from '@/api/consult_project'
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="apiConsultProjectSearch" />
</el-form-item>
<el-form-item label="文档名称" prop="title">
<el-input class="w-[280px]" v-model="queryParams.title" clearable placeholder="请输入文档名称" />
</el-form-item>
@ -63,6 +66,7 @@ import { usePaging } from '@/hooks/usePaging'
import { useDictData } from '@/hooks/useDictOptions'
import { apiConsultSceneOrgLists, apiConsultSceneOrgDelete, apiConsultSceneOrgDetail } from '@/api/consult_scene_org'
import { apiConsultDirectoryLists } from '@/api/consult_directory'
import { apiConsultProjectSearch } from '@/api/consult_project'
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="apiConsultProjectSearch" />
</el-form-item>
<el-form-item label="文档名称" prop="title">
<el-input class="w-[280px]" v-model="queryParams.title" clearable placeholder="请输入文档名称" />
</el-form-item>
@ -63,6 +66,7 @@ import { usePaging } from '@/hooks/usePaging'
import { useDictData } from '@/hooks/useDictOptions'
import { apiConsultScenePrepareLists, apiConsultScenePrepareDelete, apiConsultScenePrepareDetail } from '@/api/consult_scene_prepare'
import { apiConsultDirectoryLists } from '@/api/consult_directory'
import { apiConsultProjectSearch } from '@/api/consult_project'
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="apiManageProjectSearch" />
</el-form-item>
<el-form-item label="发文单位" prop="send_company">
<el-input class="w-[280px]" v-model="queryParams.send_company" clearable placeholder="请输入发文单位" />
</el-form-item>
@ -60,6 +63,7 @@
import { usePaging } from '@/hooks/usePaging'
import { useDictData } from '@/hooks/useDictOptions'
import { apiManageAcceptDocLists, apiManageAcceptDocDelete, apiManageAcceptDocDetail } from '@/api/manage_accept_doc'
import { apiManageProjectSearch } from '@/api/manage_project'
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="apiManageProjectSearch" />
</el-form-item>
<el-form-item label="单位名称" prop="name">
<el-input class="w-[280px]" v-model="queryParams.name" clearable placeholder="请输入单位名称" />
</el-form-item>
@ -77,6 +80,7 @@
import { usePaging } from '@/hooks/usePaging'
import { useDictData } from '@/hooks/useDictOptions'
import { apiManageCompanyLists, apiManageCompanyDelete, apiManageCompanyDetail } from '@/api/manage_company'
import { apiManageProjectSearch } from '@/api/manage_project'
import feedback from '@/utils/feedback'
import EditPopup from './edit.vue'
import detailConfig from './detail'

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="apiManageProjectSearch" />
</el-form-item>
<el-form-item label="编号" prop="code">
<el-input class="w-[280px]" v-model="queryParams.code" clearable placeholder="请输入编号" />
</el-form-item>
@ -61,6 +64,7 @@
import { usePaging } from '@/hooks/usePaging'
import { useDictData } from '@/hooks/useDictOptions'
import { apiManageEngineeringChangesLists, apiManageEngineeringChangesDelete, apiManageEngineeringChangesDetail } from '@/api/manage_engineering_changes'
import { apiManageProjectSearch } from '@/api/manage_project'
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="apiManageProjectSearch" />
</el-form-item>
<el-form-item label="严重程度" prop="severity">
<el-select class="flex-1" v-model="queryParams.severity" clearable placeholder="请选择严重程度">
<el-option v-for="(item, index) in dictData.severity" :key="index" :label="item.name"
@ -63,6 +66,7 @@
import { usePaging } from '@/hooks/usePaging'
import { useDictData } from '@/hooks/useDictOptions'
import { apiManageInfoReportLists, apiManageInfoReportDelete, apiManageInfoReportDetail } from '@/api/manage_info_report'
import { apiManageProjectSearch } from '@/api/manage_project'
import feedback from '@/utils/feedback'
import EditPopup from './edit.vue'

View File

@ -2,9 +2,9 @@
<div>
<el-card class="!border-none mb-4" shadow="never">
<el-form class="mb-[-16px]" :model="queryParams" inline>
<!-- <el-form-item label="项目id" prop="project_id">
<el-input class="w-[280px]" v-model="queryParams.project_id" clearable placeholder="请输入项目id" />
</el-form-item> -->
<el-form-item label="所属项目" prop="project_id">
<selectRemote :formData="queryParams" model="project_id" :api="apiManageProjectSearch" />
</el-form-item>
<el-form-item label="填报人" prop="create_user">
<el-input class="w-[280px]" v-model="queryParams.create_user" clearable placeholder="请输入填报人" />
</el-form-item>
@ -61,7 +61,7 @@
import { usePaging } from '@/hooks/usePaging'
import { useDictData } from '@/hooks/useDictOptions'
import { apiManageMeteredPaymentLists, apiManageMeteredPaymentDelete, apiManageMeteredPaymentDetail } from '@/api/manage_metered_payment'
import { timeFormat } from '@/utils/util'
import { apiManageProjectSearch } from '@/api/manage_project'
import feedback from '@/utils/feedback'
import EditPopup from './edit.vue'

View File

@ -1,16 +1,16 @@
<template>
<div>
<!-- <el-card class="!border-none mb-4" shadow="never">
<el-card class="!border-none mb-4" shadow="never">
<el-form class="mb-[-16px]" :model="queryParams" inline>
<el-form-item label="项目id" prop="project_id">
<el-input class="w-[280px]" v-model="queryParams.project_id" clearable placeholder="请输入项目id" />
<el-form-item label="所属项目" prop="project_id">
<selectRemote :formData="queryParams" model="project_id" :api="apiManageProjectSearch" />
</el-form-item>
<el-form-item>
<el-button type="primary" @click="resetPage">查询</el-button>
<el-button @click="resetParams">重置</el-button>
</el-form-item>
</el-form>
</el-card> -->
</el-card>
<el-card class="!border-none" v-loading="pager.loading" shadow="never">
<el-button v-perms="['manage_progress.manage_monthly_progress_report/add']" type="primary"
@click="handleAdd">
@ -59,7 +59,7 @@
import { usePaging } from '@/hooks/usePaging'
import { useDictData } from '@/hooks/useDictOptions'
import { apiManageMonthlyProgressReportLists, apiManageMonthlyProgressReportDelete, apiManageMonthlyProgressReportDetail } from '@/api/manage_monthly_progress_report'
import { timeFormat } from '@/utils/util'
import { apiManageProjectSearch } from '@/api/manage_project'
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="apiManageProjectSearch" />
</el-form-item>
<el-form-item label="编号" prop="code">
<el-input class="w-[280px]" v-model="queryParams.code" clearable placeholder="请输入编号" />
</el-form-item>
@ -65,6 +68,7 @@
import { usePaging } from '@/hooks/usePaging'
import { useDictData } from '@/hooks/useDictOptions'
import { apiManageSendDocLists, apiManageSendDocDelete, apiManageSendDocDetail } from '@/api/manage_send_doc'
import { apiManageProjectSearch } from '@/api/manage_project'
import feedback from '@/utils/feedback'
import EditPopup from './edit.vue'