From 24f56c44bdfc87b95e006313b01a7a642c19c411 Mon Sep 17 00:00:00 2001 From: zmj <1493694146@qq.com> Date: Thu, 6 Jun 2024 18:37:58 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=E4=BA=86=E8=A1=A8=E6=A0=BC?= =?UTF-8?q?=E5=8F=8A=E8=B7=AF=E7=94=B1=E5=8A=9F=E8=83=BD=EF=BC=8C=E6=8F=90?= =?UTF-8?q?=E5=8D=87=E4=BA=86=E7=94=A8=E6=88=B7=E4=BD=93=E9=AA=8C=EF=BC=8C?= =?UTF-8?q?=E6=8F=90=E9=AB=98=E4=BA=86=E6=93=8D=E4=BD=9C=E6=95=88=E7=8E=87?= =?UTF-8?q?=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/oa_examine/detail.vue | 190 +++++++++++++++++++++++++++ src/views/oa_examine/index.vue | 17 ++- src/views/oa_self_examine/detail.vue | 160 ++++++++++++++++++++++ src/views/oa_self_examine/edit.vue | 7 +- src/views/oa_self_examine/index.vue | 23 +++- 5 files changed, 385 insertions(+), 12 deletions(-) create mode 100644 src/views/oa_examine/detail.vue create mode 100644 src/views/oa_self_examine/detail.vue diff --git a/src/views/oa_examine/detail.vue b/src/views/oa_examine/detail.vue new file mode 100644 index 0000000..be2d987 --- /dev/null +++ b/src/views/oa_examine/detail.vue @@ -0,0 +1,190 @@ + + + + diff --git a/src/views/oa_examine/index.vue b/src/views/oa_examine/index.vue index 08b3505..afd4ae5 100644 --- a/src/views/oa_examine/index.vue +++ b/src/views/oa_examine/index.vue @@ -53,6 +53,9 @@ 删除 + + 详情 + @@ -62,6 +65,8 @@ + + @@ -72,11 +77,14 @@ import { usePaging } from '@/hooks/usePaging' import { apiExpenseList, apiExpenseDelete, apiExpenseDetail } from '@/api/oa_examine' import { useDictData } from '@/hooks/useDictOptions' import EditPopup from './edit.vue' +import detailPopup from './detail.vue' const editRef = shallowRef>() // 是否显示编辑框 const showEdit = ref(false) - +const detailRef = ref(null) +// 是否显示编辑框 +const showDetail = ref(false) const { dictData } = useDictData('jxgl_check_type') // 查询条件 @@ -115,5 +123,12 @@ const handleDelete = async (id: number | any[]) => { getLists() } +const handDetail = async (id: any) => { + let res = await apiExpenseDetail({ id }) + showDetail.value = true + await nextTick() + detailRef.value?.open() + detailRef.value?.setFormData(res) +} getLists() \ No newline at end of file diff --git a/src/views/oa_self_examine/detail.vue b/src/views/oa_self_examine/detail.vue new file mode 100644 index 0000000..40c0ee4 --- /dev/null +++ b/src/views/oa_self_examine/detail.vue @@ -0,0 +1,160 @@ + + + + diff --git a/src/views/oa_self_examine/edit.vue b/src/views/oa_self_examine/edit.vue index 3196d3b..32cee9d 100644 --- a/src/views/oa_self_examine/edit.vue +++ b/src/views/oa_self_examine/edit.vue @@ -72,12 +72,7 @@ {{ formData.total_self_score }} - - {{ formData.total_superior_score }} - - - {{ formData.final_score }} - + diff --git a/src/views/oa_self_examine/index.vue b/src/views/oa_self_examine/index.vue index 85b7a0c..5435bce 100644 --- a/src/views/oa_self_examine/index.vue +++ b/src/views/oa_self_examine/index.vue @@ -42,9 +42,6 @@ - - - @@ -65,7 +65,7 @@ - + @@ -75,12 +75,15 @@ import { useDictData } from '@/hooks/useDictOptions' import feedback from '@/utils/feedback' import EditPopup from './edit.vue' import { apiOaSelfExamineLists, apiOaSelfExamineDelete, apiOaSelfExamineDetail } from '@/api/oaSelfExamine' +import detailPopup from './detail.vue' const editRef = shallowRef>() // 是否显示编辑框 const showEdit = ref(false) - +const detailRef = ref(null) +// 是否显示编辑框 +const showDetail = ref(false) // 查询条件 const queryParams = reactive({ @@ -121,5 +124,15 @@ const handleDelete = async (id: number | any[]) => { getLists() } + + +const handDetail = async (id: any) => { + let res = await apiOaSelfExamineDetail({ id }) + showDetail.value = true + await nextTick() + detailRef.value?.open() + detailRef.value?.setFormData(res) +} + getLists()