fix(wms): 修复合同ID为空时添加合同关系的错误

在合并、分条和批量分条操作中,当合同ID为空时不再尝试添加合同关系
同时优化批量分条时的合同关系添加逻辑,先过滤掉空合同ID
This commit is contained in:
2026-04-20 11:04:14 +08:00
parent af002b84d3
commit 4fefc68bbc
4 changed files with 22 additions and 15 deletions

View File

@@ -766,10 +766,12 @@ export default {
const coilId = response.data;
addCoilContractRel({
coilId: coilId,
contractId: this.targetCoil.contractId,
})
if (this.targetCoil.contractId) {
addCoilContractRel({
coilId: coilId,
contractId: this.targetCoil.contractId,
})
}
this.$message.success('合卷保存成功');
// 延迟返回,让用户看到成功提示