Browse Source

解决5.4测试问题

master_hella_20240701
yufei0306 6 months ago
parent
commit
34fdf2cfe5
  1. 9
      src/views/wms/purchasereceiptManage/supplierdeliver/supplierdeliverRequestMain/index.vue

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

@ -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()
} }
} }

Loading…
Cancel
Save