@@ -1328,7 +1328,7 @@ class TalentAllowance extends AdminController {
$set = $tmp;
}
- if ($info["recommendAllowanceType"] == 1 && (!$set || count($set) < 6)) {
+ if ($info["recommendAllowanceType"] == 1 && (!$set || count($set) < 6) && in_array($sort, ["①", "②", "③"])) {
$info["recommendAllowanceType"] = 2;
$info["recommendAllowanceMsg"] = $info["recommendAllowanceMsg"] . $sort . $name . "不足6个月,无法享受工作津贴(×)";
@@ -324,7 +324,7 @@ class TalentAllowanceApi {
$info["recommendAllowanceMsg"][] = $sort . $name . "不足6个月,无法享受工作津贴(×)";
@@ -366,6 +366,7 @@ TalentAllowanceInfoDlg.saveProjectData = function (id, project, allowanceType) {
if (isNaN(days)) {
error = error + num + "月的考勤天数不是数字;";
} else {
+ days = parseInt(days);
if (days < 0 || days > max) {
error = error + num + "月的考勤天数不在范围内(1-" + max + ");";