From e79cdbad768e9bf1cae1e2efcc7473faf9edf766 Mon Sep 17 00:00:00 2001 From: liting <994745334@qq.com> Date: Wed, 12 Jun 2024 20:31:33 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/contract/contract/index.ts | 8 ++- src/views/contract/contract/MainForm.vue | 14 ++-- src/views/contract/contract/index.vue | 83 ++++++++++++++++++------ 3 files changed, 78 insertions(+), 27 deletions(-) diff --git a/src/api/contract/contract/index.ts b/src/api/contract/contract/index.ts index 768a2bd31..c0fc564a2 100644 --- a/src/api/contract/contract/index.ts +++ b/src/api/contract/contract/index.ts @@ -75,8 +75,12 @@ export const MainApi = { return await request.get({ url: `/apply/main/page`, params }) }, - generateContract: async (data: MainVO) => { - return await request.post({ url: `/contract/main/generateContract`, data }) + generateContract: async (params: any) => { + return await request.post({ url: `/contract/main/generateContract`, params }) + }, + //提宝 + presentingContract: async (params: any) => { + return await request.post({ url: `/contract/main/presentingContract`, params }) }, // ==================== 子表(任务书详细信息) ==================== diff --git a/src/views/contract/contract/MainForm.vue b/src/views/contract/contract/MainForm.vue index 31dad024b..b3d6a10d9 100644 --- a/src/views/contract/contract/MainForm.vue +++ b/src/views/contract/contract/MainForm.vue @@ -14,7 +14,7 @@ - + - - - - - - - - + + + + + + + + - - - + + + + + + + + 审核通过 + 审核不通过 + + + + + + + + @@ -130,6 +153,7 @@ const message = useMessage() // 消息弹窗 const { t } = useI18n() // 国际化 const dialogVisible = ref(false) // 弹窗的是否展示 +const dialogVisible1 = ref(false) // 弹窗的是否展示 const loading = ref(true) // 列表的加载中 const loading1 = ref(true) // 列表的加载中 const list = ref([]) // 列表的数据 @@ -145,6 +169,7 @@ const queryParams = reactive({ technicalField: undefined, year: undefined, }) + const queryParams1 = reactive({ pageNo: 1, pageSize: 10, @@ -154,6 +179,14 @@ const queryParams1 = reactive({ technicalField: undefined, year: undefined, }) +const formData = ref({ + id: undefined, + type: 1, + des: '', +}) +const formRules = reactive({ + des: [{ required: true, message: '审核意见不能为空', trigger: 'blur' }], +}) const queryFormRef = ref() // 搜索的表单 const exportLoading = ref(false) // 导出的加载中 @@ -186,11 +219,11 @@ const handleCurrentChange = (row) => { } const submitForm = async () => { try { - const data = await MainApi.generateContract({id:currentRow.value}) - console.log(data) + const data = await MainApi.generateContract({ id: currentRow.value }) } finally { // 关闭弹窗 - currentRow.value =undefined + currentRow.value = undefined + currentRowValue.value = undefined dialogVisible.value = false } } @@ -213,6 +246,7 @@ const openForm = (type: string, id?: number) => { } // 点击导入立项 const handleInsert = async () => { + currentRowValue.value = undefined dialogVisible.value = true getList1() @@ -230,7 +264,18 @@ const handleDelete = async (id: number) => { await getList() } catch { } } +//提报 +const handlePresenting = async (id: number) => { + try { + var par = { id: id } + await MainApi.presentingContract(par) + await getList() + } catch { } +} +//审核 +const handleauditContract = async (id: number) => { +} /** 导出按钮操作 */ const handleExport = async () => { try {