Browse Source

异常loading在finally关闭

master
zhaoxuebing 10 months ago
parent
commit
e3c92663aa
  1. 35
      src/views/wms/purchasereceiptManage/supplierdeliver/supplierdeliverRequestMain/index.vue

35
src/views/wms/purchasereceiptManage/supplierdeliver/supplierdeliverRequestMain/index.vue

@ -379,10 +379,11 @@ const handleDelete = async (id: number) => {
// //
await SupplierdeliverRequestMainApi.deleteSupplierdeliverRequestMain(id) await SupplierdeliverRequestMainApi.deleteSupplierdeliverRequestMain(id)
message.success(t('common.delSuccess')) message.success(t('common.delSuccess'))
tableObject.loading = false
// //
await getList() await getList()
} catch {} } catch {}finally{
tableObject.loading = false
}
} }
/** 关闭按钮操作 */ /** 关闭按钮操作 */
@ -394,10 +395,11 @@ const handleClo = async (id: number) => {
// //
await SupplierdeliverRequestMainApi.cloSupplierdeliverRequestMain(id) await SupplierdeliverRequestMainApi.cloSupplierdeliverRequestMain(id)
message.success(t('关闭成功!')) message.success(t('关闭成功!'))
tableObject.loading = false
// //
await getList() await getList()
} catch {} } catch {}finally{
tableObject.loading = false
}
} }
/** 打开按钮操作 */ /** 打开按钮操作 */
@ -409,10 +411,11 @@ const handleOpe = async (id: number) => {
// //
await SupplierdeliverRequestMainApi.opeSupplierdeliverRequestMain(id) await SupplierdeliverRequestMainApi.opeSupplierdeliverRequestMain(id)
message.success(t('打开成功!')) message.success(t('打开成功!'))
tableObject.loading = false
// //
await getList() await getList()
} catch {} } catch {}finally{
tableObject.loading = false
}
} }
/** 提交审批按钮操作 */ /** 提交审批按钮操作 */
@ -424,10 +427,11 @@ const handleSub = async (id: number) => {
// //
await SupplierdeliverRequestMainApi.subSupplierdeliverRequestMain(id) await SupplierdeliverRequestMainApi.subSupplierdeliverRequestMain(id)
message.success(t('提交审批成功!')) message.success(t('提交审批成功!'))
tableObject.loading = false
// //
await getList() await getList()
} catch {} } catch {}finally{
tableObject.loading = false
}
} }
/** 审批通过按钮操作 */ /** 审批通过按钮操作 */
@ -439,10 +443,11 @@ const handleApp = async (id: number) => {
// //
await SupplierdeliverRequestMainApi.appSupplierdeliverRequestMain(id) await SupplierdeliverRequestMainApi.appSupplierdeliverRequestMain(id)
message.success(t('审批通过成功!')) message.success(t('审批通过成功!'))
tableObject.loading = false
// //
await getList() await getList()
} catch {} } catch {}finally{
tableObject.loading = false
}
} }
/** 驳回按钮操作 */ /** 驳回按钮操作 */
@ -454,10 +459,11 @@ const handleTur = async (id: number) => {
// //
await SupplierdeliverRequestMainApi.rejSupplierdeliverRequestMain(id) await SupplierdeliverRequestMainApi.rejSupplierdeliverRequestMain(id)
message.success(t('驳回成功!')) message.success(t('驳回成功!'))
tableObject.loading = false
// //
await getList() await getList()
} catch {} } catch {}finally{
tableObject.loading = false
}
} }
/** 处理按钮操作 */ /** 处理按钮操作 */
@ -469,10 +475,11 @@ const genRecords = async (id: number) => {
// //
await SupplierdeliverRequestMainApi.genRecordsSupplierdeliverRequestMain(id) await SupplierdeliverRequestMainApi.genRecordsSupplierdeliverRequestMain(id)
message.success(t('处理成功!')) message.success(t('处理成功!'))
tableObject.loading = false
// //
await getList() await getList()
} catch {} } catch {}finally{
tableObject.loading = false
}
} }
/** 导出按钮操作 */ /** 导出按钮操作 */

Loading…
Cancel
Save