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.是否审批通过所选中数据?'))