From f40d40351584e69e590dd7a334fd842b2b5f46e5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=BB=8E=E6=B0=B8=E9=A1=BA?= <971387674@qq.com> Date: Thu, 9 Feb 2023 16:23:19 +0800 Subject: [PATCH] =?UTF-8?q?=E8=96=AA=E8=B5=84=E9=A1=B9=E7=9B=AE=E7=AE=A1?= =?UTF-8?q?=E7=90=86=E7=9A=84=E5=8F=AF=E8=A7=81=E6=80=A7=E5=BF=85=E5=A1=AB?= =?UTF-8?q?=E5=88=A4=E6=96=AD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pc4mobx/hrmSalary/stores/salaryItem.js | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) 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; }