From 16dd940f8103f3fcc321535958ad1691637357da Mon Sep 17 00:00:00 2001 From: zhaoxuebing <1291173720@qq.com> Date: Tue, 5 Mar 2024 09:13:40 +0800 Subject: [PATCH] =?UTF-8?q?=E9=87=87=E8=B4=AD=E6=94=B6=E8=B4=A7=E5=AF=BC?= =?UTF-8?q?=E5=85=A5=E5=BC=80=E5=8F=91=E5=AE=8C=E6=88=90?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../purchasereceiptRequestMain/index.vue | 31 +++++++++++++++++-- 1 file changed, 29 insertions(+), 2 deletions(-) diff --git a/src/views/wms/purchasereceiptManage/purchasereceipt/purchasereceiptRequestMain/index.vue b/src/views/wms/purchasereceiptManage/purchasereceipt/purchasereceiptRequestMain/index.vue index f04198fd1..baff226ae 100644 --- a/src/views/wms/purchasereceiptManage/purchasereceipt/purchasereceiptRequestMain/index.vue +++ b/src/views/wms/purchasereceiptManage/purchasereceipt/purchasereceiptRequestMain/index.vue @@ -74,7 +74,15 @@ /> - + { /** 重新添加按钮操作 */ const handleReAdd = async (id: number) => { + try{ await message.confirm(t('common.confirmReAdd')) tableObject.loading = true await PurchasereceiptRequestMainApi.reAddPurchasereceiptRequestMain(id) message.success(t('common.reAddSuccess')) - tableObject.loading = false await getList() + }catch{}finally{ + tableObject.loading = false + } } /** 审批通过按钮操作 */ const handleAgree = async (id: number) => { + try{ await message.confirm(t('common.confirmAgree')) tableObject.loading = true await PurchasereceiptRequestMainApi.agreePurchasereceiptRequestMain(id) message.success(t('common.agreeSuccess')) tableObject.loading = false await getList() + }catch{}finally{ + tableObject.loading = false + } } /** 审批驳回按钮操作 */ const handleRefused = async (id: number) => { + try{ await message.confirm(t('common.confirmRefused')) tableObject.loading = true await PurchasereceiptRequestMainApi.refusedPurchasereceiptRequestMain(id) message.success(t('common.refusedSuccess')) tableObject.loading = false await getList() + }catch{}finally{ + tableObject.loading = false + } } /** 处理按钮操作 */ const handleHandle = async (id: number) => { + try{ await message.confirm(t('common.confirmHandle')) tableObject.loading = true await PurchasereceiptRequestMainApi.handlePurchasereceiptRequestMain(id) message.success(t('common.handleSuccess')) tableObject.loading = false await getList() + }catch{}finally{ + tableObject.loading = false + } } /** 提交按钮操作 */ const handleSubmit = async (id: number) => { + try{ await message.confirm(t('common.confirmSubmit')) tableObject.loading = true await PurchasereceiptRequestMainApi.submitPurchasereceiptRequestMain(id) message.success(t('common.submitSuccess')) tableObject.loading = false await getList() + }catch{}finally{ + tableObject.loading = false + } } /** 导出按钮操作 */