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() } }