Browse Source

发货按钮loading处理

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

Loading…
Cancel
Save