refactor(ctr): 重新启用合同收入编辑功能

- 恢复了根据路由查询参数 id 获取合同信息的逻辑
- 移除了无用的下载文件代码
- 优化了页面加载时的数据处理流程
This commit is contained in:
tcy
2025-08-25 17:31:37 +08:00
parent fceb454b2a
commit 46bfa429d3

View File

@ -220,96 +220,14 @@ const handleChoose = async () => {
} }
onMounted(async () => { onMounted(async () => {
// const id = route.query.id; const id = route.query.id;
// if (id) { if (id) {
// const { data } = await getIncomeContract(id); const { data } = await getIncomeContract(id);
// form.value.id = data.id; form.value.id = data.id;
// form.value.contractOwner = data.contractOwner form.value.contractOwner = data.contractOwner
// } else { } else {
// router.push('/ctr/incomeContract'); 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`
);
}) })
</script> </script>
<style scoped lang="scss"> <style scoped lang="scss">