From 31963f69c3978add0c4be30d83ca499b3f122938 Mon Sep 17 00:00:00 2001 From: tcy <1193318383@qq.com> Date: Fri, 22 Aug 2025 22:24:10 +0800 Subject: [PATCH] =?UTF-8?q?feat(ctr):=20=E4=BC=98=E5=8C=96=E5=90=88?= =?UTF-8?q?=E5=90=8C=E6=8F=90=E4=BA=A4=E6=B5=81=E7=A8=8B=E5=B9=B6=E6=B7=BB?= =?UTF-8?q?=E5=8A=A0=E6=9B=B4=E6=96=B0=E5=8A=9F=E8=83=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 修改合同提交成功后的步骤重置逻辑,根据合同类型跳转到不同页面 - 更新合同信息页面,添加批量导出功能 - 优化合同信息获取逻辑,提高页面加载速度 --- src/views/ctr/index.vue | 7 ++- src/views/ctr/update/index.vue | 98 +++++++++++++++++++++++++++++++--- 2 files changed, 96 insertions(+), 9 deletions(-) diff --git a/src/views/ctr/index.vue b/src/views/ctr/index.vue index 25b464d..29f1463 100644 --- a/src/views/ctr/index.vue +++ b/src/views/ctr/index.vue @@ -319,7 +319,12 @@ const submitForm = async () => { } resetForm(); ElMessage.success('合同提交成功'); - active.value = 0; // 重置步骤 + // active.value = 0; // 重置步骤 + if (contract_type.value === 'income') { + proxy.$router.push('/ctr/incomeContract'); + } else { + proxy.$router.push('/ctr/expensesContract'); + } } else { ElMessage.error('请填写完整的付款信息'); } diff --git a/src/views/ctr/update/index.vue b/src/views/ctr/update/index.vue index 13be196..c6aa4d8 100644 --- a/src/views/ctr/update/index.vue +++ b/src/views/ctr/update/index.vue @@ -220,14 +220,96 @@ const handleChoose = async () => { } onMounted(async () => { - const id = route.query.id; - if (id) { - const { data } = await getIncomeContract(id); - form.value.id = data.id; - form.value.contractOwner = data.contractOwner - } else { - router.push('/ctr/incomeContract'); - } + // const id = route.query.id; + // if (id) { + // const { data } = await getIncomeContract(id); + // form.value.id = data.id; + // form.value.contractOwner = data.contractOwner + // } else { + // router.push('/ctr/incomeContract'); + // } + + proxy?.download( + '/progress/progressCategory/export', + { + "ids": [ + "1951552037761114114", + "1951552037811445761", + "1951552037811445762", + "1951552037811445763", + "1951552037811445764", + "1951552037811445765", + "1951552037811445766", + "1951552037811445767", + "1951552037865971713", + "1951552037865971714", + "1951552037865971715", + "1951552037865971716", + "1951552037865971717", + "1951552037865971718", + "1951552037865971719", + "1951552037865971720", + "1951552037865971721", + "1951552037865971722", + "1951552037865971723", + "1951552037865971724", + "1951552037865971725", + "1951552037924691969", + "1951552037924691970", + "1951552037924691971", + "1951552037924691972", + "1951552037924691973", + "1951552037924691974", + "1951552037924691975", + "1951552037924691976", + "1951552037924691977", + "1951552037962440706", + "1951552037962440707", + "1951552037962440708", + "1951552037962440709", + "1951552037962440710", + "1951552037962440711", + "1951552037962440712", + "1951552038004383745", + "1951552038004383746", + "1951552038004383747", + "1951552038004383748", + "1951552038004383749", + "1951552038004383750", + "1951552038004383751", + "1951552038004383752", + "1951552038004383753", + "1951552038004383754", + "1951552038058909698", + "1951552038058909699", + "1951552038058909700", + "1951552038058909701", + "1951552038058909702", + "1951552038058909703", + "1951552038058909704", + "1951552038096658434", + "1951552038096658435", + "1951552038096658436", + "1951552038096658437", + "1951552038096658438", + "1951552038096658439", + "1951552038096658440", + "1951552038096658441", + "1951552038096658442", + "1951552038096658443", + "1951552038096658444", + "1951552038146990081", + "1951552038146990082", + "1951552038146990083", + "1951552038146990084", + "1951552038146990085", + "1951552038188933122", + "1951552038188933123", + "1951552038188933124" + ] + }, + `1.xlsx` + ); })