优化保存批次失败loading不关闭的情况

This commit is contained in:
wuteng 2025-06-19 18:25:56 +08:00
parent 572d3f4cdd
commit cc716a27e2

View File

@ -1089,13 +1089,13 @@ export default {
// return; // return;
// } // }
} }
} }
let response = await addAllEmisTmsSiteBatch(this.form); try {
if(!response || response.code != 200){ let response = await addAllEmisTmsSiteBatch(this.form);
} catch (error) {
this.isDoing=false; this.isDoing=false;
this.$modal.msgError(response && response.msg || '新增组批次失败') this.$modal.msgError(response && response.msg || '新增组批次失败')
return; }
}
// 批次重算 // 批次重算
try{ try{