Browse Source

发货按钮loading处理

master_hella_20240701
yufei0306 6 months ago
parent
commit
8fd07f34f1
  1. 10
      src/views/wms/purchasereceiptManage/supplierdeliver/supplierdeliverRequestMain/index.vue

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

@ -725,7 +725,6 @@ const handleTur = async (id: number) => {
/** 处理按钮操作 */ /** 处理按钮操作 */
const genRecords = async (id: number) => { const genRecords = async (id: number) => {
let getLoading = null let getLoading = null
try {
await SupplierdeliverRequestMainApi.selfCheckReport(id).then(async res => { await SupplierdeliverRequestMainApi.selfCheckReport(id).then(async res => {
if(!res){ if(!res){
message.warning(t('ts.请先上传自检报告!')) message.warning(t('ts.请先上传自检报告!'))
@ -741,18 +740,21 @@ const genRecords = async (id: number) => {
// //
SupplierdeliverRequestMainApi.genRecordsSupplierdeliverRequestMain(id).then(res => { SupplierdeliverRequestMainApi.genRecordsSupplierdeliverRequestMain(id).then(res => {
message.success(t('ts.处理成功!')) message.success(t('ts.处理成功!'))
console.log('resresresresres',res)
// //
getList() getList()
console.log('刷新列表')
getLoading?.close()
// //
handleDocumentPrint(res) handleDocumentPrint(res)
}) })
} }
}).catch(err => { }).catch(err => {
console.log("自检报告校验异常",err) console.log("自检报告校验异常",err)
getLoading?.close()
}) })
} catch {}finally{
getLoading?.close()
}
} }
/** 导出按钮操作 */ /** 导出按钮操作 */

Loading…
Cancel
Save