From feea014eb55828d09814b3e5a7cf4a199af2bd3f Mon Sep 17 00:00:00 2001 From: weiz <736250432@qq.com> Date: Wed, 13 Mar 2024 14:42:56 +0800 Subject: [PATCH] update --- .../index.vue | 41 ++++++++++++++---- src/views/data_reception/index.vue | 43 ++++++++++++++----- src/views/project_commission/index.vue | 34 +++++++++++---- src/views/task_allocation/index.vue | 23 +++++++--- .../index.vue | 26 ++++++++--- 5 files changed, 130 insertions(+), 37 deletions(-) diff --git a/src/views/approval_issuance_achievement_documents/index.vue b/src/views/approval_issuance_achievement_documents/index.vue index e576e31..5f3b823 100644 --- a/src/views/approval_issuance_achievement_documents/index.vue +++ b/src/views/approval_issuance_achievement_documents/index.vue @@ -2,13 +2,19 @@
- - + + + + - - + + + + + - 查询 重置 @@ -74,16 +80,36 @@ import { apiApprovalIssuanceAchievementDocumentsLists, apiApprovalIssuanceAchiev import { timeFormat } from '@/utils/util' import feedback from '@/utils/feedback' import EditPopup from './edit.vue' +import { apiCostProjectDatas } from "@/api/cost_project"; +import { useDictOptions } from "@/hooks/useDictOptions" + const editRef = shallowRef>() // 是否显示编辑框 const showEdit = ref(false) +const loading = ref(false) +const queryCostProject = async (query: string) => { + loading.value = true + const projectList = await apiCostProjectDatas({ + name: query ?? '' + }) + optionsData.projectList = projectList + loading.value = false +} +const { optionsData } = useDictOptions<{ + projectList: any[] +}>({ + projectList: { + api: apiCostProjectDatas, + } +}) // 查询条件 const queryParams = reactive({ - project: '', - project_num: '', + project_id: '', + num: '', + task: '', }) // 选中数据 @@ -127,4 +153,3 @@ const handleDelete = async (id: number | any[]) => { getLists() - diff --git a/src/views/data_reception/index.vue b/src/views/data_reception/index.vue index 1305508..f4c1990 100644 --- a/src/views/data_reception/index.vue +++ b/src/views/data_reception/index.vue @@ -2,14 +2,18 @@
+ + + + + - - - - - + + @@ -27,7 +31,8 @@ 新增 - + 删除
@@ -47,7 +52,8 @@ 编辑 - + 删除 @@ -69,17 +75,35 @@ import { apiDataReceptionLists, apiDataReceptionDelete, apiDataReceptionDetail } import { timeFormat } from '@/utils/util' import feedback from '@/utils/feedback' import EditPopup from './edit.vue' +import { apiCostProjectDatas } from "@/api/cost_project"; +import { useDictOptions } from "@/hooks/useDictOptions" const editRef = shallowRef>() // 是否显示编辑框 const showEdit = ref(false) +const loading = ref(false) +const queryCostProject = async (query: string) => { + loading.value = true + const projectList = await apiCostProjectDatas({ + name: query ?? '' + }) + optionsData.projectList = projectList + loading.value = false +} +const { optionsData } = useDictOptions<{ + projectList: any[] +}>({ + projectList: { + api: apiCostProjectDatas, + } +}) // 查询条件 const queryParams = reactive({ num: '', - project: '', - project_num: '', + project_id: '', + person: '', }) // 选中数据 @@ -124,4 +148,3 @@ const handleDelete = async (id: number | any[]) => { getLists() - diff --git a/src/views/project_commission/index.vue b/src/views/project_commission/index.vue index eea1436..7b304b8 100644 --- a/src/views/project_commission/index.vue +++ b/src/views/project_commission/index.vue @@ -2,15 +2,16 @@
+ + + + + - - - - - - 查询 @@ -107,17 +108,34 @@ import { apiProjectCommissionLists, apiProjectCommissionDelete, apiProjectCommis import { timeFormat } from '@/utils/util' import feedback from '@/utils/feedback' import EditPopup from './edit.vue' +import { apiCostProjectDatas } from "@/api/cost_project"; +import { useDictOptions } from "@/hooks/useDictOptions" const editRef = shallowRef>() // 是否显示编辑框 const showEdit = ref(false) +const loading = ref(false) +const queryCostProject = async (query: string) => { + loading.value = true + const projectList = await apiCostProjectDatas({ + name: query ?? '' + }) + optionsData.projectList = projectList + loading.value = false +} +const { optionsData } = useDictOptions<{ + projectList: any[] +}>({ + projectList: { + api: apiCostProjectDatas, + } +}) // 查询条件 const queryParams = reactive({ num: '', - project_name: '', - project_num: '', + project_id: '', }) // 选中数据 diff --git a/src/views/task_allocation/index.vue b/src/views/task_allocation/index.vue index 68a9cda..aff2565 100644 --- a/src/views/task_allocation/index.vue +++ b/src/views/task_allocation/index.vue @@ -2,10 +2,13 @@
- - + + + + - 查询 重置 @@ -99,15 +102,25 @@ import { apiTaskAllocationLists, apiTaskAllocationDelete, apiTaskAllocationDetai import { timeFormat } from '@/utils/util' import feedback from '@/utils/feedback' import EditPopup from './edit.vue' +import { useDictOptions } from "@/hooks/useDictOptions" +import { apiCostProjectDatas } from "@/api/cost_project"; const editRef = shallowRef>() // 是否显示编辑框 const showEdit = ref(false) - +const loading = ref(false) // 查询条件 const queryParams = reactive({ - project: '', + cost_project_id: '', +}) + +const { optionsData } = useDictOptions<{ + projectList: any[] +}>({ + projectList: { + api: apiCostProjectDatas, + } }) // 选中数据 diff --git a/src/views/task_handling_three_level_review/index.vue b/src/views/task_handling_three_level_review/index.vue index d6e54d8..11c9072 100644 --- a/src/views/task_handling_three_level_review/index.vue +++ b/src/views/task_handling_three_level_review/index.vue @@ -2,9 +2,15 @@
- + + start-placeholder="开始时间" end-placeholder="结束时间" @change="changeTime" + value-format="YYYY-MM-DD" /> + + + 查询 @@ -110,14 +116,22 @@ const showEdit = ref(false) // 查询条件 const queryParams = reactive({ - start_time: "", - end_time: "" + kg_start_time: "", + kg_end_time: "", + jg_start_time: "", + jg_end_time: "", }) const queryTime = ref('') const changeTime = () => { - queryParams.start_time = queryTime.value[0] - queryParams.end_time = queryTime.value[1] + queryParams.kg_start_time = queryTime.value[0] + queryParams.kg_end_time = queryTime.value[1] +} + +const queryTime2 = ref('') +const changeTime2 = () => { + queryParams.jg_start_time = queryTime2.value[0] + queryParams.jg_end_time = queryTime2.value[1] } // 选中数据