Bläddra i källkod

健康码状态筛选

sandm 2 år sedan
förälder
incheckning
e98b113b81

+ 6 - 0
app/Admin/Controllers/Recruit/RecruitController.php

@@ -1315,6 +1315,7 @@ class RecruitController extends Controller
         }
         if($status == -1){
             $info = RecruitSupplement::where('appoint_id', $ids)->first();
+            $appointinfo = RecruitAppointInfo::where('id', $ids)->first();
             //写日志
             $log = [
                 'type'  =>  2,
@@ -1327,10 +1328,13 @@ class RecruitController extends Controller
             $info->h_status = -1;
             $info->h_msg = $reason;
             $info->save();
+            $appointinfo->health_audit = 0;
+            $appointinfo->save();
         }
         if($status == 1){
             $reason = $reason ?? '符合报考条件';
             $info = RecruitSupplement::where('appoint_id', $ids)->first();
+            $appointinfo = RecruitAppointInfo::where('id', $ids)->first();
             //写日志
             $log = [
                 'type'  =>  2,
@@ -1343,6 +1347,8 @@ class RecruitController extends Controller
             $info->h_status = 1;
             $info->h_msg = $reason;
             $info->save();
+            $appointinfo->health_audit = 1;
+            $appointinfo->save();
         }
 
         return response()->json(['status' => 1, 'msg' => '操作成功!', 'data' => 'ok']);

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

@@ -1778,7 +1778,8 @@ class IndexController extends WebBaseController
 
             $data['h_status'] = 0;
             RecruitSupplement::create($data);
-
+            $appoint_info->health_audit = 4;
+            $appoint_info->save();
             return ['status' => 1, 'msg' => '提交成功', 'data' => ''];
         }
 

+ 1 - 1
public/themes/default/views/app/recruit/health.blade.php

@@ -280,7 +280,7 @@
             },
             created(){
                 this.loading.close();
-                if(this.user.status == 1 || this.user.status == 0 ){
+                if(this.user.h_status == 1 || this.user.h_status == 0 ){
                     this.formDisable = true
                 }else{
                     this.formDisable = false;

+ 14 - 0
resources/views/admin/recruit/appoint_list.blade.php

@@ -166,6 +166,20 @@
                                 </div>
                             </div>
                         </div>
+                        <div class="box-body table-responsive" style="padding:5px;">
+                            <div class="form-group clearfix" style="margin-bottom:0;">
+                                <label for="prefix" class="control-label">健康信息:</label>
+                                <div style="float: left;width: 150px;">
+                                    <select class="form-control" name="political_audit" id="political_audit">
+                                        <option value=''>不限</option>
+                                        <option value='-1' @if(array_key_exists('health_audit',$search_data) && $search_data['health_audit'] == '-1') selected @endif>未上传</option>
+                                        <option value='4' @if(array_key_exists('health_audit',$search_data) && $search_data['health_audit'] == '4') selected @endif>未审核</option>
+                                        <option value='0' @if(array_key_exists('health_audit',$search_data) && $search_data['health_audit'] == '0') selected @endif>未通过</option>
+                                        <option value="1" @if(array_key_exists('health_audit',$search_data) && $search_data['health_audit'] == '1') selected @endif>已通过</option>
+                                    </select>
+                                </div>
+                            </div>
+                        </div>
                     </div>
                 </div>