|
@ -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) |
|
|
}) |
|
|
|
|
|
} catch {}finally{ |
|
|
|
|
|
getLoading?.close() |
|
|
getLoading?.close() |
|
|
} |
|
|
|
|
|
|
|
|
}) |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
/** 导出按钮操作 */ |
|
|
/** 导出按钮操作 */ |
|
|