This commit is contained in:
weiz 2024-03-19 09:55:31 +08:00
parent 62e10a88b5
commit e5aa60a711
15 changed files with 68 additions and 9 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

@ -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'