|
@ -712,6 +712,7 @@ const handleTur = async (id: number) => { |
|
|
|
|
|
|
|
|
/** 处理按钮操作 */ |
|
|
/** 处理按钮操作 */ |
|
|
const genRecords = async (id: number) => { |
|
|
const genRecords = async (id: number) => { |
|
|
|
|
|
let getLoading = null |
|
|
try { |
|
|
try { |
|
|
await SupplierdeliverRequestMainApi.selfCheckReport(id).then(async res => { |
|
|
await SupplierdeliverRequestMainApi.selfCheckReport(id).then(async res => { |
|
|
if(!res){ |
|
|
if(!res){ |
|
@ -720,7 +721,11 @@ const genRecords = async (id: number) => { |
|
|
}else{ |
|
|
}else{ |
|
|
// 处理的二次确认 |
|
|
// 处理的二次确认 |
|
|
await message.confirm('是否处理所选中数据?') |
|
|
await message.confirm('是否处理所选中数据?') |
|
|
tableObject.loading = true |
|
|
getLoading = ElLoading.service({ |
|
|
|
|
|
lock: true, |
|
|
|
|
|
text: 'loading...', |
|
|
|
|
|
background: 'rgba(0, 0, 0, 0.7)' |
|
|
|
|
|
}) |
|
|
// 发起处理 |
|
|
// 发起处理 |
|
|
SupplierdeliverRequestMainApi.genRecordsSupplierdeliverRequestMain(id).then(res => { |
|
|
SupplierdeliverRequestMainApi.genRecordsSupplierdeliverRequestMain(id).then(res => { |
|
|
message.success(t('处理成功!')) |
|
|
message.success(t('处理成功!')) |
|
@ -734,7 +739,7 @@ const genRecords = async (id: number) => { |
|
|
console.log("自检报告校验异常",err) |
|
|
console.log("自检报告校验异常",err) |
|
|
}) |
|
|
}) |
|
|
} catch {}finally{ |
|
|
} catch {}finally{ |
|
|
tableObject.loading = false |
|
|
getLoading?.close() |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|