Browse Source

国强的bug,供应商发票财务通过添加loading

hella_online_20240911
zhang_li 2 months ago
parent
commit
93de1c8c4d
  1. 21
      src/views/wms/supplierManage/supplierinvoice/supplierinvoiceRequestMain/index.vue

21
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.'))

Loading…
Cancel
Save