Browse Source

带去公司弄

sugangqiang 2 years ago
parent
commit
7857d36d8c

+ 156 - 40
app/admin/controller/Talent.php

@@ -10,6 +10,7 @@ use app\enterprise\model\Talent as TalentModel;
 use app\common\api\TalentConditionApi;
 use app\common\api\DictApi;
 use app\common\api\EnterpriseApi;
+use think\facade\Db;
 
 /**
  * Description of Talent
@@ -176,7 +177,9 @@ class Talent extends AdminController {
         $filename = "优秀人才核查征信名单导出";
         if ($rows) {
             export($columns, $rows, $filename);
+            exit();
         }
+        echo "<script>parent.layer.alert('没有可以导出的数据');</script>";
     }
 
     /**
@@ -259,7 +262,44 @@ class Talent extends AdminController {
         if ($rows) {
             $filename = "优秀人才公示预览导出";
             export($columns, $rows, $filename);
+            exit();
         }
+        echo "<script>parent.layer.alert('没有可以导出的数据');</script>";
+    }
+
+    /**
+     * 预备人才库-公示导出
+     * @auth {{/talentInfo/publicExport}}
+     */
+    public function publicExport() {
+        $params = $this->request->param();
+        $columns = ["序号", "批次", "姓名", "性别", "工作单位", "本人具备的认定条件", "拟认定人才层次", "审核状态", "备注"];
+        $startTime = $params["startTime"];
+        $endTime = $params["endTime"];
+        if (!strtotime($startTime) || !strtotime($endTime))
+            return json(["msg" => "时间格式错误"]);
+        $where[] = ["checkState", "=", TalentState::ANNOUNCED];
+        $where[] = ["publicBatch", "between", [$startTime, $endTime]];
+        $list = TalentModel::where($where)->order("talent_arrange asc,enterprise_id asc")->select();
+        $rows = [];
+        $i = 1;
+        $talentArranges = DictApi::selectByParentCode("talent_arrange");
+        foreach ($list as $item) {
+            $talent_condition = TalentConditionApi::getOne($item["talent_condition"]);
+            $enterprise = EnterpriseApi::getOne($item["enterprise_id"]);
+            $checkLog = TalentLogApi::getLastLog($item["id"], 1);
+            $row = [
+                $i, $item["apply_year"], $item["name"], $item["sex"] == 1 ? "男" : "女", $enterprise["name"], $talent_condition["name"], $talentArranges[$item["talent_arrange"]], $item["checkState"] == TalentState::ANNOUNCED ? "审核通过" : "审核不通过", $checkLog["description"]
+            ];
+            $rows[] = $row;
+            $i++;
+        }
+        if ($rows) {
+            $filename = "优秀人才公示导出";
+            export($columns, $rows, $filename);
+            exit();
+        }
+        echo "<script>parent.layer.alert('没有可以导出的数据');</script>";
     }
 
     /**
@@ -380,10 +420,47 @@ class Talent extends AdminController {
             }
         }
         $columns = ["序号", "批次", "姓名", "性别", "工作单位", "本人具备的认定条件", "认定人才层次", "审核状态", "备注"];
+        $filename = "优秀人才" . date("Ym") . "公布预览名单导出(公示批次-" . $list[0]["publicBatch"] . ")";
+        if ($rows) {
+            export($columns, $rows, $filename);
+            exit();
+        }
+        echo "<script>parent.layer.alert('没有可以导出的数据');</script>";
+    }
+
+    /**
+     * 预备人才库-公布导出
+     * @auth {{/talentInfo/publishExport}}
+     */
+    public function publishExport() {
+        $params = $this->request->param();
+        $startTime = $params["startTime"];
+        $endTime = $params["endTime"];
+        if (!strtotime($startTime) || !strtotime($endTime))
+            return json(["msg" => "时间格式错误"]);
+        $where[] = ["checkState", "=", TalentState::PUBLISH_PASS];
+        $where[] = ["certificateGetTime", "between", [$startTime, $endTime]];
+        $list = TalentModel::where($where)->order("talent_arrange asc,enterprise_id asc")->select();
+        $rows = [];
+        $i = 1;
+        $talentArranges = DictApi::selectByParentCode("talent_arrange");
+        foreach ($list as $item) {
+            $talent_condition = TalentConditionApi::getOne($item["talent_condition"]);
+            $enterprise = EnterpriseApi::getOne($item["enterprise_id"]);
+            $checkLog = TalentLogApi::getLastLog($item["id"], 1);
+            $row = [
+                $i, $item["apply_year"], $item["name"], $item["sex"] == 1 ? "男" : "女", $enterprise["name"], $talent_condition["name"], $talentArranges[$item["talent_arrange"]], $item["checkState"] == TalentState::PUBLISH_PASS ? "审核通过" : "审核不通过", $checkLog["description"]
+            ];
+            $rows[] = $row;
+            $i++;
+        }
+        $columns = ["序号", "批次", "姓名", "性别", "工作单位", "本人具备的认定条件", "认定人才层次", "审核状态", "备注"];
         $filename = "优秀人才" . date("Ym") . "公布名单导出(公示批次-" . $list[0]["publicBatch"] . ")";
         if ($rows) {
             export($columns, $rows, $filename);
+            exit();
         }
+        echo "<script>parent.layer.alert('没有可以导出的数据');</script>";
     }
 
     /**
@@ -452,26 +529,71 @@ class Talent extends AdminController {
         return json(["code" => 200, "msg" => sprintf("公布完成:共提交%d个人才,通过%d个,失败%d个", $total, $success, $error)]);
     }
 
-    public function sendCard() {
-        //查询所有待发证的数据
-        $params = $this->request->param();
-        $ids = array_filter(explode(",", $params["ids"]));
-        $talent_list = VerifyApi::getListByIds($ids);
-        //晋江市优秀人才证书:当前年份+层次+四位递增数字
-        //集成电路优秀人才证书:IC+当前年份+递增四位数,如IC20190001
-        $year = date("Y");
-        foreach ($talent_list as $talent_info) {
-            $no_prefix = $year . $talent_info["talent_arrange"];
-        }
-        return new ResponseObj(ResponseObj . SUCCESS, "发证成功");
-    }
-
     /**
-     * 预备人才库-发证
+     * 预备人才库-批量发证
      * @auth {{/talentInfo/prepareCertification}}
      */
-    public function pre_certification() {
-        
+    public function prepareCertification() {
+        $lockFile = fopen("send_certificate.lock", "a");
+        if (flock($lockFile, LOCK_EX | LOCK_NB)) {//文件锁(独占)
+//查询所有待发证的数据
+            $params = $this->request->param();
+            $ids = array_filter(explode(",", $params["ids"]));
+//晋江市优秀人才证书:当前年份+层次+四位递增数字
+//集成电路优秀人才证书:IC+当前年份+递增四位数,如IC20190001
+            Db::startTrans();
+            $talent_max_no = [];
+            $user = session("user");
+            try {
+                $talent_list = VerifyApi::getListByIds($ids);
+                $year = date("Y");
+                foreach ($talent_list as $talent_info) {
+                    if ($talent_info["checkState"] != TalentState::PUBLISH_PASS) {
+                        Db::rollback();
+                        return json(["msg" => "只能对公布通过的对象进行发证,请核查待发证名单后再重新发证"]);
+                    }
+
+                    $no_prefix = $year . $talent_info["talent_arrange"];
+                    $where[] = ["certificateNo", "like", $no_prefix . "%"];
+                    $max_no = $talent_max_no[$talent_info["talent_arrange"]] ?: Db::table("new_talent_info")->where($where)->max("certificateNo");
+                    if (!$max_no) {
+                        $max_no = $no_prefix . "0001";
+                    } else {
+                        $new_no = intval(substr($max_no, 5)) + 1;
+                        $max_no = $no_prefix . str_pad($new_no, 4, "0", STR_PAD_LEFT);
+                    }
+//更新证书编号
+                    $data["id"] = $talent_info["id"];
+                    $data["certificateNo"] = $max_no;
+                    $data["checkState"] = TalentState::CERTIFICATED;
+                    $data["isPublic"] = 5;
+                    Db::table("new_talent_info")->update($data);
+
+//写入日志
+                    $log["last_state"] = TalentState::PUBLISH_PASS;
+                    $log["id"] = getStringId();
+                    $log["state"] = $log["new_state"] = TalentState::CERTIFICATED;
+                    $log["type"] = 1;
+                    $log["mainId"] = $talent_info["id"];
+                    $log["companyId"] = $user["companyId"];
+                    $log["active"] = 1;
+                    $log["description"] = "人才编号为:" . $max_no;
+                    $log["createUser"] = sprintf("%s(%s)", $user["account"], $user["companyName"] ?: $user["rolename"]);
+                    $log["createTime"] = date("Y-m-d H:i:s");
+                    Db::table("new_talent_checklog")->insert($log);
+
+                    $talent_max_no[$talent_info["talent_arrange"]] = $max_no;
+                }
+                Db::commit();
+                return json(["code" => 200, "msg" => "发证成功"]);
+            } catch (\Exception $e) {
+                Db::rollback();
+                return json(["msg" => "发证失败:" . $e->getMessage()]);
+            }
+            flock($lockFile, LOCK_UN);
+        } else {
+            return json(["msg" => "同一时间只能有一个管理员进行发证操作"]);
+        }
     }
 
     /**
@@ -482,14 +604,6 @@ class Talent extends AdminController {
         
     }
 
-    /**
-     * 预备人才库-公示预览
-     * @auth {{/talentInfo/publicExportBefore}}
-     */
-    public function pre_public_preview() {
-        
-    }
-
     /**
      * 基本条件审核-提交未保存
      * @param \think\Request $request
@@ -499,10 +613,10 @@ class Talent extends AdminController {
     private function baseCheck(\think\Request $request, $talent_info) {
         $params = $request->param();
         if ($params["checkState"] == 3) {
-            //审核成功
+//审核成功
             $log_checkState = $checkState = TalentState::BASE_VERIFY_PASS; //初审成功
         } else {
-            //审核驳回并记录需要修改的字段和上传文件
+//审核驳回并记录需要修改的字段和上传文件
             $checkState = TalentState::FST_SAVE; //退回提交材料阶段
             $log_checkState = TalentState::BASE_REJECT; //日志记录拒绝状态
         }
@@ -539,17 +653,17 @@ class Talent extends AdminController {
     private function fstCheck(\think\Request $request, $talent_info) {
         $params = $request->param();
         if ($params["checkState"] == 3) {
-            //审核成功,并取消设置越过部门并审
+//审核成功,并取消设置越过部门并审
             $log_checkState = $checkState = TalentState::FST_VERIFY_PASS; //初审成功
             $data["pass_dept_check"] = 0;
         } else if ($params["checkState"] == 4) {
             if ($talent_info["highProcess"] < 3)
                 return json(["msg" => "只有曾经通过部门并审,初审时才可以选择直接跳过部门并审阶段"]);
-            //审核成功,并设置越过部门并审。附加条件:最高进度曾经通过部门并审3(包含部门并审)
+//审核成功,并设置越过部门并审。附加条件:最高进度曾经通过部门并审3(包含部门并审)
             $log_checkState = $checkState = TalentState::FST_VERIFY_PASS; //初审成功
             $data["pass_dept_check"] = $talent_info["highProcess"] >= 3 ? 1 : 0;
         } else {
-            //审核驳回并记录需要修改的字段和上传文件
+//审核驳回并记录需要修改的字段和上传文件
             $checkState = TalentState::SCND_SAVE; //退回材料编辑状态
             $log_checkState = TalentState::FST_VERIFY_REJECT; //日志记录拒绝状态
         }
@@ -585,7 +699,7 @@ class Talent extends AdminController {
             $data["first_dept_check_time"] = date("Y-m-d H:i:s");
             $condition = TalentConditionApi::getOne($talent_info["talent_condition"]);
             $companyIds = array_filter(explode(",", $condition["companyIds"])); //该条件下需要审核的所有单位
-            //这边去除已经审核通过的单位,主要通过日志是否存在记录。
+//这边去除已经审核通过的单位,主要通过日志是否存在记录。
             $pass_companyIds = TalentLogApi::getPassDepts($talent_info["id"]); //已经通过的单位
             $unpass_companyIds = array_diff($companyIds, (array) $pass_companyIds); //排除已经通过的单位
             sort($unpass_companyIds);
@@ -615,11 +729,11 @@ class Talent extends AdminController {
 
         $params = $request->param();
         if ($params["checkState"] == 3) {
-            //审核成功
+//审核成功
             $log_checkState = TalentState::FST_VERIFY_PASS; //当前状态不变
             $checkState = TalentState::DEPT_VERIFY_PASS; //审核成功
         } else {
-            //审核驳回并记录需要修改的字段和上传文件
+//审核驳回并记录需要修改的字段和上传文件
             $checkState = TalentState::SCND_SUBMIT; //退回待初审
             $log_checkState = TalentState::FST_VERIFY_PASS; //当前状态不变
             $data["modify_files"] = $params["files"];
@@ -634,7 +748,7 @@ class Talent extends AdminController {
             return json(["msg" => "您的部门已经审核过了"]);
         $data["id"] = $talent_info["id"];
         TalentModel::update($data);
-        //修改日志
+//修改日志
         TalentLogApi::rewrite($dept_log["id"], [$log_checkState, $checkState], $params["checkMsg"]);
         return json(["code" => 200, "msg" => "保存成功"]);
     }
@@ -679,7 +793,7 @@ class Talent extends AdminController {
             }
         }
         if ($over == count($companys)) {
-            //全部已审核
+//全部已审核
             $checkState = TalentState::SCND_SUBMIT;
             $log_checkState = TalentState::DEPT_VERIFY_REJECT;
             if ($error == 0) {
@@ -705,10 +819,10 @@ class Talent extends AdminController {
     private function reCheck(\think\Request $request, $talent_info) {
         $params = $request->param();
         if ($params["checkState"] == 3) {
-            //审核成功
+//审核成功
             $log_checkState = $checkState = TalentState::REVERIFY_PASS; //复核成功
         } else if ($params["checkState"] == 2) {
-            //审核驳回并记录需要修改的字段和上传文件
+//审核驳回并记录需要修改的字段和上传文件
             $checkState = TalentState::SCND_SUBMIT; //退回待初审
             $log_checkState = TalentState::REVERIFY_REJECT; //日志记录拒绝状态
         } else {
@@ -753,7 +867,7 @@ class Talent extends AdminController {
     }
 
     public function check() {
-        //公共调度方法
+//公共调度方法
         $request = $this->request;
         $params = $request->param();
         $check = $params["checkState"];
@@ -794,7 +908,7 @@ class Talent extends AdminController {
     }
 
     public function submitCheck() {
-        //公共调度方法
+//公共调度方法
         $id = $this->request->param("id");
         $talent_info = VerifyApi::getOne($id);
         $checkState = $talent_info["checkState"];
@@ -828,7 +942,7 @@ class Talent extends AdminController {
         $talent_info = VerifyApi::getOne($id);
         if ($talent_info) {
             $checkState = $talent_info["checkState"];
-            // 0正在填写 1保存未提交 2已提交未审核 3已审核 4驳回 5保存补充材料未提交 6提交补充材料进入初审 7初审通过 8初审驳回 9部门审核通过 10部门审核驳回 11复核通过 12复核驳回 13复核失败
+// 0正在填写 1保存未提交 2已提交未审核 3已审核 4驳回 5保存补充材料未提交 6提交补充材料进入初审 7初审通过 8初审驳回 9部门审核通过 10部门审核驳回 11复核通过 12复核驳回 13复核失败
             $process = 0;
             if (in_array($checkState, [2, 6, 7, 9])) {
                 switch ($checkState) {
@@ -924,7 +1038,9 @@ class Talent extends AdminController {
         }
         if ($datas) {
             export($columns, $datas);
+            exit();
         }
+        echo "<script>parent.layer.alert('没有可以导出的数据');</script>";
     }
 
     public function getPhones() {

+ 0 - 5
app/admin/view/talent/pre_list.html

@@ -404,11 +404,6 @@
                                 <i class="fa fa-download"></i>&nbsp;下载
                             </button>
                             {/if}
-                            {if condition="chkCommission('/admin/talent/prepareDownload','/talentInfo/prepareDownload')"}
-                            <button type="button" class="btn btn-sm btn-primary" onclick="TalentInfo.downloadPhoto()">
-                                <i class="fa fa-cloud-download"></i>&nbsp;批量下载头像
-                            </button>
-                            {/if}
                             {if condition="chkCommission('/admin/talent/libraryDetail','/talentInfo/libraryDetail')"}
                             <button type="button" class="btn btn-sm btn-primary" onclick="TalentInfo.openTalentInfoDetail()">
                                 <i class="fa fa-eye"></i>&nbsp;查看

+ 1 - 0
app/common/api/DictApi.php

@@ -143,6 +143,7 @@ class DictApi {
             "talent_type" => "人才类型",
             "tax_insurance_month" => "在我市缴交社会保险或个人所得税月份",
             "labor_contract_rangetime" => "劳动合同起止时间",
+            "pre_import_type" => "预引进类型",
             "name" => "姓名",
             "card_type" => "证件类型",
             "card_number" => "证件号码",

+ 2 - 1
app/common/api/VerifyApi.php

@@ -165,7 +165,8 @@ class VerifyApi {
     }
 
     public static function getListByIds($ids) {
-        return Talent::where(["id", "in", $ids])->select()->toArray();
+        $where[] = ["id", "in", $ids];
+        return Talent::where($where)->select()->toArray();
     }
 
     public static function getList($request) {

+ 2 - 1
app/enterprise/controller/Base.php

@@ -104,6 +104,7 @@ class Base extends EnterpriseController {
                   exit;
                   } */
                 $no_empty[] = "tax_insurance_month";
+                $no_empty[] = "labor_contract_rangetime";
             }
             if ($param["talent_type"] == 3) {
                 list($date1, $date2) = explode(" - ", $param["labor_contract_rangetime"]);
@@ -123,7 +124,7 @@ class Base extends EnterpriseController {
                   echo sprintf("<script>parent.TalentInfoInfoDlg.infoCallback(%s);</script>", json_encode($res));
                   exit;
                   } */
-                $no_empty[] = "labor_contract_rangetime";
+                $no_empty[] = "pre_contract_rangetime";
             }
             $return = [];
             foreach ($no_empty as $key) {

+ 31 - 6
public/static/modular/gate/talentBase/talentInfo_info.js

@@ -379,7 +379,7 @@ TalentInfoInfoDlg.talentTypeChange = function () {
             TalentInfoInfoDlg.talentTypeOneTwo = true;
             $("#tipsBlock").css('display', 'block');
             $("#typeTips").html("含经晋江市认定且还在晋江市就业创业的人才,或在晋江市就业创业但未曾申报过晋江市现代产业体系人才的人才。");
-            $("#desc_talent_type").html("请上传社会保险或个人所得税缴费佐证材料");
+            //$("#desc_talent_type").html("请上传社会保险或个人所得税缴费佐证材料");
             $(".talentType1-2").css("display", "table-row");
             $('#talentInfoForm').bootstrapValidator('addField', "tax_insurance_month", {
                 validators: {
@@ -387,7 +387,7 @@ TalentInfoInfoDlg.talentTypeChange = function () {
                 }
             });
             $('#talentInfoForm').bootstrapValidator('addField', "labor_contract_rangetime", {validators: {notEmpty: {message: '劳动合同起止时间'}}});
-            if(TalentInfoInfoDlg.talentTypeFlag){
+            if (TalentInfoInfoDlg.talentTypeFlag) {
                 TalentInfoInfoDlg.talentTypeFlag = false;
                 $('#talentInfoForm').bootstrapValidator('removeField', "pre_import_type");
             }
@@ -396,7 +396,7 @@ TalentInfoInfoDlg.talentTypeChange = function () {
             TalentInfoInfoDlg.talentTypeOneTwo = true;
             $("#tipsBlock").css('display', 'block');
             $("#typeTips").html("含本办法出台后首次从晋江市以外引进认定的人才,或者流出晋江市满3年后又返回晋江市就业创业(不含企业集团内部人员调动)的人才。")
-            $("#desc_talent_type").html("请上传社会保险或个人所得税缴费佐证材料与来我市前工作情况证明,例如原工作单位出具的工作证明、离职证明或原创(领)办企业的营业执照复印件、经市场监管部门备案的公司章程复印件等证明材料");
+            //$("#desc_talent_type").html("请上传社会保险或个人所得税缴费佐证材料与来我市前工作情况证明,例如原工作单位出具的工作证明、离职证明或原创(领)办企业的营业执照复印件、经市场监管部门备案的公司章程复印件等证明材料");
             $(".talentType1-2").css("display", "table-row");
             $('#talentInfoForm').bootstrapValidator('addField', "tax_insurance_month", {
                 validators: {
@@ -404,7 +404,7 @@ TalentInfoInfoDlg.talentTypeChange = function () {
                 }
             });
             $('#talentInfoForm').bootstrapValidator('addField', "labor_contract_rangetime", {validators: {notEmpty: {message: '劳动合同起止时间'}}});
-            if(TalentInfoInfoDlg.talentTypeFlag){
+            if (TalentInfoInfoDlg.talentTypeFlag) {
                 TalentInfoInfoDlg.talentTypeFlag = false;
                 $('#talentInfoForm').bootstrapValidator('removeField', "pre_import_type");
             }
@@ -413,10 +413,10 @@ TalentInfoInfoDlg.talentTypeChange = function () {
             TalentInfoInfoDlg.talentTypeFlag = true;
             $("#tipsBlock").css('display', 'block');
             $("#typeTips").html("含已经与晋江市用人单位达成就业意向且签订预引进意向合作协议(合同)的人才,或拟来我市创业且提交企业名称预先核准的人才。")
-            $("#desc_talent_type").html("请先提供意向合作协议(合同)或企业名称预先核准材料,落地我市后再补齐上述材料");
+            //$("#desc_talent_type").html("请先提供意向合作协议(合同)或企业名称预先核准材料,落地我市后再补齐上述材料");
             $(".talentType3").css("display", "table-row");
             $('#talentInfoForm').bootstrapValidator('addField', "pre_import_type", {validators: {notEmpty: {message: '请选择预引进类型'}}});
-            if(TalentInfoInfoDlg.talentTypeOneTwo){
+            if (TalentInfoInfoDlg.talentTypeOneTwo) {
                 TalentInfoInfoDlg.talentTypeOneTwo = false;
                 $('#talentInfoForm').bootstrapValidator('removeField', "labor_contract_rangetime");
                 $('#talentInfoForm').bootstrapValidator('removeField', "tax_insurance_month");
@@ -427,6 +427,17 @@ TalentInfoInfoDlg.talentTypeChange = function () {
             $("#tipsBlock").css('display', 'none');
             break;
     }
+    for (var i = 0; i < $("[data-rel=talent_type]").length; i++) {
+        let option = $("[data-rel=talent_type]").eq(i);
+        let options = option.data("option").split(",");
+        if (options.indexOf(talent_type) > -1) {
+            option.css("display", "block");
+            option.next("tr.detail-view").css("display", "block");
+        } else {
+            option.css("display", "none");
+            option.next("tr.detail-view").css("display", "none");
+        }
+    }
 
 }
 
@@ -546,6 +557,14 @@ TalentInfoInfoDlg.initFile = function () {
                 data["rows"][k].tableIndex = tableIndex;
                 data["rows"][k].trIndex = datas[tableIndex].length;
                 datas[tableIndex].push(data["rows"][k]);
+                if (data["rows"][k].option) {
+                    //指定了选项
+                    let selectVal = $("#" + rel).val();
+                    let options = data["rows"][k].option.split(",");
+                    if (options.indexOf(selectVal) == -1) {
+                        data["rows"][k].hidden = true;
+                    }
+                }
             } else {
                 if (data["rows"][k].isConditionFile) {
                     var tableIndex = $("#talent_condition").parents(".row").next(".row").find("table.fileTable").index(".fileTable");
@@ -594,7 +613,13 @@ TalentInfoInfoDlg.initFile = function () {
                                     </li>';
                         }
                         html = html + '</ul>';
+                        that.find("tr[data-index='" + k + "']").attr("data-rel", data[k]["rel"]);
+                        that.find("tr[data-index='" + k + "']").attr("data-option", data[k]["option"]);
                         that.find("tr[data-index='" + k + "']").after('<tr class="detail-view"><td colspan="5">' + html + '</td></tr>');
+                        if (typeof data[k].hidden != "undefined") {
+                            that.find("tr[data-index='" + k + "']").css("display", "none");
+                            that.find("tr[data-index='" + k + "']").next("tr.detail-view").css("display", "none");
+                        }
                     }
                     $("td.uitd_showTip").bind("mouseover", function () {
                         //var htm = $(this).html();

+ 4 - 4
public/static/modular/talentIdentify/talentInfo/talentInfo_prepare.js

@@ -129,7 +129,7 @@ TalentInfo.openTalentInfoDetail = function () {
             area: ['800px', '420px'], //宽高
             fix: false, //不固定
             maxmin: true,
-            content: Feng.ctxPath + '/talentInfo/talentInfo_toCommonCheck/' + TalentInfo.seItem.id + '/4'
+            content: Feng.ctxPath + '/admin/talent/common_check/id/' + TalentInfo.seItem.id
         });
         layer.full(index);
         TalentInfo.layerIndex = index;
@@ -486,11 +486,11 @@ TalentInfo.public = function () {
 TalentInfo.publicExport = function (type) {
     var url = "", dateType = '', format = '';
     if (type == 1) {         //公示导出
-        url = Feng.ctxPath + "/talentInfoExport/publicExport";
+        url = "/admin/talent/publicExport";
         dateType = 'month';
         format = "yyyyMM";
     } else if (type == 2) {     //公布导出
-        url = Feng.ctxPath + "/talentInfoExport/publishExport";
+        url = Feng.ctxPath + "/admin/talent/publishExport";
         dateType = 'date';
         format = "yyyy-MM-dd";
     }
@@ -814,7 +814,7 @@ TalentInfo.sendCard = function () {
         ids = ids + selected[i].id + ",";
     }
     var operation = function () {
-        var ajax = new $ax("/admin/talent/sendCard", function (data) {
+        var ajax = new $ax("/admin/talent/prepareCertification", function (data) {
             if (data.code == 200) {
                 Feng.success(data.msg);
                 TalentInfo.table.refresh();