|
@@ -776,13 +776,13 @@ class TalentAllowance extends AdminController {
|
|
|
$where[] = ["id", "in", $detailIds];
|
|
|
$detailList = \app\common\model\TalentAllowancecontractDetail::where($where)->select()->toArray();
|
|
|
$set = [];
|
|
|
- if ($params["resAllowanceType"] == 1) {
|
|
|
+ if ($param["resAllowanceType"] == 1) {
|
|
|
$monthsMap = [];
|
|
|
for ($i = 0; $i < count($param["details"]); $i++) {
|
|
|
$monthsMap[$param["details"][$i]["id"]] = $param["details"][$i]["months"];
|
|
|
}
|
|
|
foreach ($detailList as &$detail) {
|
|
|
- $months = $monthdsMap[$detail["id"]];
|
|
|
+ $months = $monthsMap[$detail["id"]];
|
|
|
if (\StrUtil::isNotEmpAndNull($months)) {
|
|
|
$detail["months"] = $months;
|
|
|
$set = array_merge($set, explode(",", $months));
|
|
@@ -796,7 +796,7 @@ class TalentAllowance extends AdminController {
|
|
|
$old["recommendAllowanceType"] = $param["resAllowanceType"];
|
|
|
$old["recommendMonths"] = implode(",", $set);
|
|
|
$typeName = "人工判定:津补贴类型(" . (\app\common\state\AllowanceTypeEnum::getTypeName($old["recommendAllowanceType"])) . ");享受月份:" . $old["recommendMonths"] . ";\n";
|
|
|
- $old["recommendAllowanceMsg"] = $typeName . "判定说明:\n" . $obj["resAllowanceMsg"] . ";";
|
|
|
+ $old["recommendAllowanceMsg"] = $typeName . "判定说明:\n" . $old["resAllowanceMsg"] . ";";
|
|
|
$arrangeList = $this->calculateAllowance($old, $set, $detailList);
|
|
|
}
|
|
|
$desc .= "判定结果:" . $typeName;
|
|
@@ -1687,7 +1687,23 @@ class TalentAllowance extends AdminController {
|
|
|
$res["projects"] = $projectList;
|
|
|
$res["concats"] = $detailList;
|
|
|
$res["calResult"] = TalentAllowanceApi::validateAllowanceType($id);
|
|
|
+
|
|
|
}
|
|
|
+
|
|
|
+
|
|
|
+ $detailList = \app\common\model\TalentAllowancecontractDetail::where("mainId", $id)->select()->toArray();
|
|
|
+ $talentTypeMap = DictApi::selectByParentCode("enterprise_tag");
|
|
|
+ $enterpriseMap = \app\common\model\Enterprise::where("type", $this->user["type"])->column("name", "id");
|
|
|
+ foreach ($detailList as &$detail) {
|
|
|
+ $detail["enterpriseName"] = $enterpriseMap[$detail["enterpriseId"]];
|
|
|
+ if (\StrUtil::isNotEmpAndNull($detail["talentType"])) {
|
|
|
+ $detail["talentTypeName"] = $talentTypeMap[$detail["talentType"]];
|
|
|
+ }
|
|
|
+ }
|
|
|
+ $res["detailList"] = $detailList;
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
return new Response(Response::SUCCESS, "不在审核范围内", $res);
|
|
|
}
|
|
|
|