diff --git a/pc4mobx/hrmSalary/stores/salaryItem.js b/pc4mobx/hrmSalary/stores/salaryItem.js index 3233c84e..83c66094 100644 --- a/pc4mobx/hrmSalary/stores/salaryItem.js +++ b/pc4mobx/hrmSalary/stores/salaryItem.js @@ -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; }