From e3c92663aa3bfe644182074dd46f16dbd66f99e4 Mon Sep 17 00:00:00 2001 From: zhaoxuebing <1291173720@qq.com> Date: Fri, 2 Feb 2024 11:06:40 +0800 Subject: [PATCH] =?UTF-8?q?=E5=BC=82=E5=B8=B8loading=E5=9C=A8finally?= =?UTF-8?q?=E5=85=B3=E9=97=AD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../supplierdeliverRequestMain/index.vue | 35 +++++++++++-------- 1 file changed, 21 insertions(+), 14 deletions(-) diff --git a/src/views/wms/purchasereceiptManage/supplierdeliver/supplierdeliverRequestMain/index.vue b/src/views/wms/purchasereceiptManage/supplierdeliver/supplierdeliverRequestMain/index.vue index 66731287e..98f7f111d 100644 --- a/src/views/wms/purchasereceiptManage/supplierdeliver/supplierdeliverRequestMain/index.vue +++ b/src/views/wms/purchasereceiptManage/supplierdeliver/supplierdeliverRequestMain/index.vue @@ -379,10 +379,11 @@ const handleDelete = async (id: number) => { // 发起删除 await SupplierdeliverRequestMainApi.deleteSupplierdeliverRequestMain(id) message.success(t('common.delSuccess')) - tableObject.loading = false // 刷新列表 await getList() - } catch {} + } catch {}finally{ + tableObject.loading = false + } } /** 关闭按钮操作 */ @@ -394,10 +395,11 @@ const handleClo = async (id: number) => { // 发起关闭 await SupplierdeliverRequestMainApi.cloSupplierdeliverRequestMain(id) message.success(t('关闭成功!')) - tableObject.loading = false // 刷新列表 await getList() - } catch {} + } catch {}finally{ + tableObject.loading = false + } } /** 打开按钮操作 */ @@ -409,10 +411,11 @@ const handleOpe = async (id: number) => { // 发起打开 await SupplierdeliverRequestMainApi.opeSupplierdeliverRequestMain(id) message.success(t('打开成功!')) - tableObject.loading = false // 刷新列表 await getList() - } catch {} + } catch {}finally{ + tableObject.loading = false + } } /** 提交审批按钮操作 */ @@ -424,10 +427,11 @@ const handleSub = async (id: number) => { // 发起提交审批 await SupplierdeliverRequestMainApi.subSupplierdeliverRequestMain(id) message.success(t('提交审批成功!')) - tableObject.loading = false // 刷新列表 await getList() - } catch {} + } catch {}finally{ + tableObject.loading = false + } } /** 审批通过按钮操作 */ @@ -439,10 +443,11 @@ const handleApp = async (id: number) => { // 发起审批通过 await SupplierdeliverRequestMainApi.appSupplierdeliverRequestMain(id) message.success(t('审批通过成功!')) - tableObject.loading = false // 刷新列表 await getList() - } catch {} + } catch {}finally{ + tableObject.loading = false + } } /** 驳回按钮操作 */ @@ -454,10 +459,11 @@ const handleTur = async (id: number) => { // 发起驳回 await SupplierdeliverRequestMainApi.rejSupplierdeliverRequestMain(id) message.success(t('驳回成功!')) - tableObject.loading = false // 刷新列表 await getList() - } catch {} + } catch {}finally{ + tableObject.loading = false + } } /** 处理按钮操作 */ @@ -469,10 +475,11 @@ const genRecords = async (id: number) => { // 发起处理 await SupplierdeliverRequestMainApi.genRecordsSupplierdeliverRequestMain(id) message.success(t('处理成功!')) - tableObject.loading = false // 刷新列表 await getList() - } catch {} + } catch {}finally{ + tableObject.loading = false + } } /** 导出按钮操作 */