瀏覽代碼

更新洛江村务

sandm 2 年之前
父節點
當前提交
0791a34479

+ 7 - 1
app/Http/Controllers/Web/Recruit/IndexController.php

@@ -116,7 +116,13 @@ class IndexController extends WebBaseController
             $face_ticket = RecruitTicket::where('appoint_id',$appoint_info->id)->where('ex_type',3)->first();
 
             if($face_ticket && $appoint_info->face_audit == -1){
-                $appoint_info->face_ticket = 1;
+                $face_health = RecruitSupplement::where("appoint_id",$appoint_info->id)->where("type","face")->where('h_status',1)->first();
+                if(!$face_health){
+                    $appoint_info->face_ticket = -2;
+                }else{
+                    $appoint_info->face_ticket = 1;
+                }
+
             }else{
                 $appoint_info->face_ticket = 0;
             }

+ 8 - 0
public/themes/default/views/app/recruit/show.blade.php

@@ -654,6 +654,14 @@
                         return false;
                     }
 
+                    if(face_ticket == -2){
+                        disapperTooltip("remind", "健康信息未上传,即将自动跳转至上传界面!");
+                        setTimeout(function(){
+                            window.location.href="{!! route('recruit.health_info',array('id'=>$recruit->id,'type' => 'face')) !!}"
+                        },2000);
+                        return false;
+                    }
+
                     if (isVisitorutype == '1') {
                         disapperTooltip("remind", "只有登录个人会员才可打印!");
                         return false;