From 34fdf2cfe504dc3cd921edd0d9133544c4009cd7 Mon Sep 17 00:00:00 2001 From: yufei0306 <13417315+yufei0306@user.noreply.gitee.com> Date: Mon, 6 May 2024 09:27:27 +0800 Subject: [PATCH] =?UTF-8?q?=E8=A7=A3=E5=86=B35.4=E6=B5=8B=E8=AF=95?= =?UTF-8?q?=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../supplierdeliver/supplierdeliverRequestMain/index.vue | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/src/views/wms/purchasereceiptManage/supplierdeliver/supplierdeliverRequestMain/index.vue b/src/views/wms/purchasereceiptManage/supplierdeliver/supplierdeliverRequestMain/index.vue index 142997274..a643936bb 100644 --- a/src/views/wms/purchasereceiptManage/supplierdeliver/supplierdeliverRequestMain/index.vue +++ b/src/views/wms/purchasereceiptManage/supplierdeliver/supplierdeliverRequestMain/index.vue @@ -712,6 +712,7 @@ const handleTur = async (id: number) => { /** 处理按钮操作 */ const genRecords = async (id: number) => { + let getLoading = null try { await SupplierdeliverRequestMainApi.selfCheckReport(id).then(async res => { if(!res){ @@ -720,7 +721,11 @@ const genRecords = async (id: number) => { }else{ // 处理的二次确认 await message.confirm('是否处理所选中数据?') - tableObject.loading = true + getLoading = ElLoading.service({ + lock: true, + text: 'loading...', + background: 'rgba(0, 0, 0, 0.7)' + }) // 发起处理 SupplierdeliverRequestMainApi.genRecordsSupplierdeliverRequestMain(id).then(res => { message.success(t('处理成功!')) @@ -734,7 +739,7 @@ const genRecords = async (id: number) => { console.log("自检报告校验异常",err) }) } catch {}finally{ - tableObject.loading = false + getLoading?.close() } }