薪资项目管理的可见性必填判断

This commit is contained in:
黎永顺 2023-02-09 16:23:19 +08:00
parent 8fe520e842
commit f40d403515
1 changed files with 7 additions and 2 deletions

View File

@ -108,8 +108,8 @@ export class SalaryItemStore {
message.error(res.errormsg || "接口调用失败!");
reject();
}
}));
});
})).catch(() => this.loading = false);
}).catch(() => this.loading = false);
};
@action
@ -256,6 +256,11 @@ export class SalaryItemStore {
message.warning("公式不能为空");
return false;
}
if (params.sharedType && !notNull(params.taxAgentIds)) {
message.warning("可见性范围不能为空");
return false;
}
return true;
}