From 93de1c8c4d5743e50bcad62eee1f6aea896ce0b3 Mon Sep 17 00:00:00 2001 From: zhang_li <2235006734@qqq.com> Date: Tue, 10 Sep 2024 10:42:20 +0800 Subject: [PATCH] =?UTF-8?q?=E5=9B=BD=E5=BC=BA=E7=9A=84bug,=E4=BE=9B?= =?UTF-8?q?=E5=BA=94=E5=95=86=E5=8F=91=E7=A5=A8=E8=B4=A2=E5=8A=A1=E9=80=9A?= =?UTF-8?q?=E8=BF=87=E6=B7=BB=E5=8A=A0loading?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../supplierinvoiceRequestMain/index.vue | 21 ++++++++++++------- 1 file changed, 14 insertions(+), 7 deletions(-) diff --git a/src/views/wms/supplierManage/supplierinvoice/supplierinvoiceRequestMain/index.vue b/src/views/wms/supplierManage/supplierinvoice/supplierinvoiceRequestMain/index.vue index b79d92e73..3bf2ed2dd 100644 --- a/src/views/wms/supplierManage/supplierinvoice/supplierinvoiceRequestMain/index.vue +++ b/src/views/wms/supplierManage/supplierinvoice/supplierinvoiceRequestMain/index.vue @@ -1075,13 +1075,20 @@ const handleFinanceApp = async (row) => { const submitFormFinance = async (formType, submitData) => { let data = { ...submitData } console.log('submitFormFinance', data) - await SupplierinvoiceRequestMainApi.financeappSupplierinvoiceRequestMain({ - id: data.id, - postingDate: data.postingDate, - voucherNumberRemark: data.voucherNumberRemark - }) - formFinanceRef.value.dialogVisible = false - getList() + formFinanceRef.value.formLoading = true + try { + await SupplierinvoiceRequestMainApi.financeappSupplierinvoiceRequestMain({ + id: data.id, + postingDate: data.postingDate, + voucherNumberRemark: data.voucherNumberRemark + }) + formFinanceRef.value.dialogVisible = false + formFinanceRef.value.formLoading = false + getList() + } catch { + formFinanceRef.value.formLoading = false + } + // try { // // 审批通过的二次确认 // await message.confirm(t('ts.是否审批通过所选中数据?'))