From 03c952b1e0f189adeb40ab43f2880c628d19f9df Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=BC=A0=E5=90=8C=E6=B5=B7?= <14166000+zhangtonghai@user.noreply.gitee.com> Date: Tue, 5 Nov 2024 16:27:44 +0800 Subject: [PATCH] =?UTF-8?q?=E7=AE=B1=E7=AE=A1=20=E7=AE=80=E5=8C=96=20?= =?UTF-8?q?=E8=AF=86=E5=88=ABexcel?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/File/index.vue | 1 - .../BuyCtn/TenantAuditStepModal.vue | 44 +++++++++++++++++-- .../RentIn/TenantAuditStepModal.vue | 34 ++++++++++++-- .../RentOneWay/TenantAuditStepModal.vue | 34 ++++++++++++-- .../RentOneWayIn/TenantAuditStepModal.vue | 34 ++++++++++++-- .../RentOut/TenantAuditStepModal.vue | 34 ++++++++++++-- .../SellCtn/TenantAuditStepModal.vue | 34 ++++++++++++-- 7 files changed, 196 insertions(+), 19 deletions(-) diff --git a/src/components/File/index.vue b/src/components/File/index.vue index 097e1ea1..c3371c1d 100644 --- a/src/components/File/index.vue +++ b/src/components/File/index.vue @@ -224,7 +224,6 @@ } async function ChangeUpload() { let FnUp = (id) => { - console.log('FnUp', 1111111111) const postData = new FormData() const list = unref(upFileList) // list.forEach((item) => { diff --git a/src/views/ContainerManagement/BuyCtn/TenantAuditStepModal.vue b/src/views/ContainerManagement/BuyCtn/TenantAuditStepModal.vue index e2847185..02f55067 100644 --- a/src/views/ContainerManagement/BuyCtn/TenantAuditStepModal.vue +++ b/src/views/ContainerManagement/BuyCtn/TenantAuditStepModal.vue @@ -86,12 +86,26 @@ --> + { + if (res.succeeded) { + activeKey.value = '1' + refresh() + notification.success({ message: res.message, duration: 3 }) + } + }) + } async function DealExcel() { if (!rowId.value) { await handleSave(false, false) @@ -374,9 +410,11 @@ fileId: dsFile.value.dsFileList.SelectId, } ApiDealExcel(ApiData).then((res) => { - activeKey.value = '1' - refresh() - notification.success({ message: res.message, duration: 3 }) + if (res.succeeded) { + activeKey.value = '1' + refresh() + notification.success({ message: res.message, duration: 3 }) + } }) } else { notification.warning({ message: '请先在电子文档中勾选一个文件。', duration: 3 }) diff --git a/src/views/ContainerManagement/RentIn/TenantAuditStepModal.vue b/src/views/ContainerManagement/RentIn/TenantAuditStepModal.vue index a5851984..f963e9fa 100644 --- a/src/views/ContainerManagement/RentIn/TenantAuditStepModal.vue +++ b/src/views/ContainerManagement/RentIn/TenantAuditStepModal.vue @@ -91,9 +91,13 @@ { + if (res.succeeded) { + activeKey.value = '1' + refresh(true) + notification.success({ message: res.message, duration: 3 }) + } + }) + } async function DealExcel() { if (!rowId.value) { await handleSave(false, false) @@ -436,9 +462,11 @@ fileId: dsFile.value.dsFileList.SelectId, } ApiDealExcel(ApiData).then((res) => { - activeKey.value = '1' - refresh() - notification.success({ message: res.message, duration: 3 }) + if (res.succeeded) { + activeKey.value = '1' + refresh() + notification.success({ message: res.message, duration: 3 }) + } }) } else { notification.warning({ message: '请先在电子文档中勾选一个文件。', duration: 3 }) diff --git a/src/views/ContainerManagement/RentOneWay/TenantAuditStepModal.vue b/src/views/ContainerManagement/RentOneWay/TenantAuditStepModal.vue index 4bf1d52a..9157571a 100644 --- a/src/views/ContainerManagement/RentOneWay/TenantAuditStepModal.vue +++ b/src/views/ContainerManagement/RentOneWay/TenantAuditStepModal.vue @@ -90,9 +90,13 @@ { + if (res.succeeded) { + activeKey.value = '1' + refresh(true) + notification.success({ message: res.message, duration: 3 }) + } + }) + } async function DealExcel() { if (!rowId.value) { await handleSave(false) @@ -374,9 +400,11 @@ fileId: dsFile.value.dsFileList.SelectId, } ApiDealExcel(ApiData).then((res) => { - activeKey.value = '1' - refresh() - notification.success({ message: res.message, duration: 3 }) + if (res.succeeded) { + activeKey.value = '1' + refresh() + notification.success({ message: res.message, duration: 3 }) + } }) } else { notification.warning({ message: '请先在电子文档中勾选一个文件。', duration: 3 }) diff --git a/src/views/ContainerManagement/RentOneWayIn/TenantAuditStepModal.vue b/src/views/ContainerManagement/RentOneWayIn/TenantAuditStepModal.vue index c14f56f1..07355bbd 100644 --- a/src/views/ContainerManagement/RentOneWayIn/TenantAuditStepModal.vue +++ b/src/views/ContainerManagement/RentOneWayIn/TenantAuditStepModal.vue @@ -55,9 +55,13 @@ { + if (res.succeeded) { + activeKey.value = '1' + refresh(true) + notification.success({ message: res.message, duration: 3 }) + } + }) + } async function DealExcel() { if (!rowId.value) { await handleSave(false) @@ -319,9 +345,11 @@ fileId: dsFile.value.dsFileList.SelectId, } ApiDealExcel(ApiData).then((res) => { - activeKey.value = '1' - refresh() - notification.success({ message: res.message, duration: 3 }) + if (res.succeeded) { + activeKey.value = '1' + refresh() + notification.success({ message: res.message, duration: 3 }) + } }) } else { notification.warning({ message: '请先在电子文档中勾选一个文件。', duration: 3 }) diff --git a/src/views/ContainerManagement/RentOut/TenantAuditStepModal.vue b/src/views/ContainerManagement/RentOut/TenantAuditStepModal.vue index a6ffabd5..30228b66 100644 --- a/src/views/ContainerManagement/RentOut/TenantAuditStepModal.vue +++ b/src/views/ContainerManagement/RentOut/TenantAuditStepModal.vue @@ -92,9 +92,13 @@ { + if (res.succeeded) { + activeKey.value = '1' + refresh() + notification.success({ message: res.message, duration: 3 }) + } + }) + } async function DealExcel() { if (!rowId.value) { await handleSave(false, false) @@ -448,9 +474,11 @@ fileId: dsFile.value.dsFileList.SelectId, } ApiDealExcel(ApiData).then((res) => { - activeKey.value = '1' - refresh() - notification.success({ message: res.message, duration: 3 }) + if (res.succeeded) { + activeKey.value = '1' + refresh() + notification.success({ message: res.message, duration: 3 }) + } }) } else { notification.warning({ message: '请先在电子文档中勾选一个文件。', duration: 3 }) diff --git a/src/views/ContainerManagement/SellCtn/TenantAuditStepModal.vue b/src/views/ContainerManagement/SellCtn/TenantAuditStepModal.vue index c9846b48..098b9480 100644 --- a/src/views/ContainerManagement/SellCtn/TenantAuditStepModal.vue +++ b/src/views/ContainerManagement/SellCtn/TenantAuditStepModal.vue @@ -90,9 +90,13 @@ { + if (res.succeeded) { + activeKey.value = '1' + refresh(true) + notification.success({ message: res.message, duration: 3 }) + } + }) + } async function DealExcel() { if (!rowId.value) { await handleSave(false, false) @@ -424,9 +450,11 @@ fileId: dsFile.value.dsFileList.SelectId, } ApiDealExcel(ApiData).then((res) => { - activeKey.value = '1' - refresh() - notification.success({ message: res.message, duration: 3 }) + if (res.succeeded) { + activeKey.value = '1' + refresh() + notification.success({ message: res.message, duration: 3 }) + } }) } else { notification.warning({ message: '请先在电子文档中勾选一个文件。', duration: 3 })