From a36cafa77adf36455eeff85a3982d652e412c3d5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=B5=B5=E5=BF=A0=E6=9E=97?= <170083662@qq.com> Date: Tue, 20 Jan 2026 20:45:33 +0800 Subject: [PATCH] =?UTF-8?q?feat(credit):=20=E5=9C=A8=E4=BC=81=E4=B8=9A?= =?UTF-8?q?=E8=AF=A6=E6=83=85=E9=A1=B5=E9=9D=A2=E6=B7=BB=E5=8A=A0=E5=8E=86?= =?UTF-8?q?=E5=8F=B2=E7=A0=B4=E4=BA=A7=E9=87=8D=E6=95=B4=E5=AF=BC=E5=85=A5?= =?UTF-8?q?=E5=8A=9F=E8=83=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 在企业详情的破产重整标签页中增加导入历史破产重整按钮 - 修改credit-bankruptcy-history-import组件以支持传入企业ID参数 - 将历史破产重整导入功能集成到企业详情页面的抽屉组件中 - 移除原破产重整主页面的历史导入相关代码和按钮 - 添加企业ID验证逻辑确保导入操作的安全性 - 实现导入完成后的数据重新加载和分页重置功能 --- .env.development | 2 +- .../credit-bankruptcy-history-import.vue | 7 ++-- src/views/credit/creditBankruptcy/index.vue | 18 +--------- .../components/creditCompanyInfo.vue | 36 +++++++++++++++++++ 4 files changed, 42 insertions(+), 21 deletions(-) diff --git a/.env.development b/.env.development index fbcc74b..b8ccd8b 100644 --- a/.env.development +++ b/.env.development @@ -1,5 +1,5 @@ VITE_APP_NAME=后台管理(开发环境) -VITE_API_URL=http://127.0.0.1:9200/api +#VITE_API_URL=http://127.0.0.1:9200/api #VITE_SERVER_API_URL=http://127.0.0.1:8000/api diff --git a/src/views/credit/creditBankruptcy/components/credit-bankruptcy-history-import.vue b/src/views/credit/creditBankruptcy/components/credit-bankruptcy-history-import.vue index 3665bfb..3f6ea45 100644 --- a/src/views/credit/creditBankruptcy/components/credit-bankruptcy-history-import.vue +++ b/src/views/credit/creditBankruptcy/components/credit-bankruptcy-history-import.vue @@ -41,9 +41,11 @@ (e: 'update:visible', visible: boolean): void; }>(); - defineProps<{ + const props = defineProps<{ // 是否打开弹窗 visible: boolean; + // 关联企业ID(企业详情下导入时需要) + companyId?: number; }>(); // 导入请求状态 @@ -74,7 +76,7 @@ return false; } loading.value = true; - importCreditBankruptcyHistory(file) + importCreditBankruptcyHistory(file, props.companyId) .then((msg) => { loading.value = false; message.success(msg); @@ -93,4 +95,3 @@ emit('update:visible', value); }; - diff --git a/src/views/credit/creditBankruptcy/index.vue b/src/views/credit/creditBankruptcy/index.vue index 6684cd5..55ca60f 100644 --- a/src/views/credit/creditBankruptcy/index.vue +++ b/src/views/credit/creditBankruptcy/index.vue @@ -22,12 +22,6 @@ @importData="openImport" @exportData="exportData" /> - - - 导入历史破产重整 - @@ -74,15 +68,13 @@ /> - -