|
@@ -869,12 +869,100 @@ class RecruitController extends Controller
|
|
|
$view_data['switch'] = 0;
|
|
|
}else{
|
|
|
$view_data['switch'] = 1;
|
|
|
+ $photos = [
|
|
|
+ 'identification'=>[],
|
|
|
+ 'household_register' => [],
|
|
|
+ 'education_certification'=>[],
|
|
|
+ 'family_planning'=>[],
|
|
|
+ 'manage' => []
|
|
|
+ ];
|
|
|
$info->identification = json_decode($info->identification);
|
|
|
+ $photo_data = [];
|
|
|
+ foreach ($info->identification as $k => $v) {
|
|
|
+ if($v->status){
|
|
|
+ $photo_data[] = [
|
|
|
+ 'alt' => $v->name,
|
|
|
+ 'pid' => $v->uid,
|
|
|
+ 'src' => $v->response->path,
|
|
|
+ ];
|
|
|
+ }
|
|
|
+ }
|
|
|
+ $photos['identification'] = [
|
|
|
+ 'title' => '身份证明',
|
|
|
+ 'id' => 1,
|
|
|
+ 'start' => 0,
|
|
|
+ 'data' =>$photo_data
|
|
|
+ ];
|
|
|
$info->household_register = json_decode($info->household_register);
|
|
|
+ $photo_data = [];
|
|
|
+ foreach ($info->household_register as $k => $v) {
|
|
|
+ if($v->status){
|
|
|
+ $photo_data[] = [
|
|
|
+ 'alt' => $v->name,
|
|
|
+ 'pid' => $v->uid,
|
|
|
+ 'src' => $v->response->path,
|
|
|
+ ];
|
|
|
+ }
|
|
|
+ }
|
|
|
+ $photos['household_register'] = [
|
|
|
+ 'title' => '户口簿',
|
|
|
+ 'id' => 1,
|
|
|
+ 'start' => 0,
|
|
|
+ 'data' =>$photo_data
|
|
|
+ ];
|
|
|
$info->education_certification = json_decode($info->education_certification);
|
|
|
+ $photo_data = [];
|
|
|
+ foreach ($info->education_certification as $k => $v) {
|
|
|
+ if($v->status){
|
|
|
+ $photo_data[] = [
|
|
|
+ 'alt' => $v->name,
|
|
|
+ 'pid' => $v->uid,
|
|
|
+ 'src' => $v->response->path,
|
|
|
+ ];
|
|
|
+ }
|
|
|
+ }
|
|
|
+ $photos['education_certification'] = [
|
|
|
+ 'title' => '教育证明',
|
|
|
+ 'id' => 1,
|
|
|
+ 'start' => 0,
|
|
|
+ 'data' =>$photo_data
|
|
|
+ ];
|
|
|
$info->family_planning = json_decode($info->family_planning);
|
|
|
+ $photo_data = [];
|
|
|
+ foreach ($info->family_planning as $k => $v) {
|
|
|
+ if($v->status){
|
|
|
+ $photo_data[] = [
|
|
|
+ 'alt' => $v->name,
|
|
|
+ 'pid' => $v->uid,
|
|
|
+ 'src' => $v->response->path,
|
|
|
+ ];
|
|
|
+ }
|
|
|
+ }
|
|
|
+ $photos['family_planning'] = [
|
|
|
+ 'title' => '计生证明',
|
|
|
+ 'id' => 1,
|
|
|
+ 'start' => 0,
|
|
|
+ 'data' =>$photo_data
|
|
|
+ ];
|
|
|
$info->manage = json_decode($info->manage);
|
|
|
+ $photo_data = [];
|
|
|
+ foreach ($info->manage as $k => $v) {
|
|
|
+ if($v->status){
|
|
|
+ $photo_data[] = [
|
|
|
+ 'alt' => $v->name,
|
|
|
+ 'pid' => $v->uid,
|
|
|
+ 'src' => $v->response->path,
|
|
|
+ ];
|
|
|
+ }
|
|
|
+ }
|
|
|
+ $photos['manage'] = [
|
|
|
+ 'title' => '综治证明',
|
|
|
+ 'id' => 1,
|
|
|
+ 'start' => 0,
|
|
|
+ 'data' =>$photo_data
|
|
|
+ ];
|
|
|
$view_data['info'] = $info;
|
|
|
+ $view_data['photos'] = $photos;
|
|
|
}
|
|
|
|
|
|
return response(['data' => view('admin.recruit.ajax_supplement')->with($view_data)->render(), 'status' => 1], '200');
|
|
@@ -1087,6 +1175,7 @@ class RecruitController extends Controller
|
|
|
*/
|
|
|
public function supplement(Request $request)
|
|
|
{
|
|
|
+ Permission::check('ajax_supplement');
|
|
|
$ids = $request->ids;
|
|
|
if (empty($ids)) {
|
|
|
return response()->json(['status' => 0, 'msg' => '请选择审核记录!'], '200');
|
|
@@ -1117,7 +1206,6 @@ class RecruitController extends Controller
|
|
|
$appointinfo->political_audit = 0;
|
|
|
$appointinfo->save();
|
|
|
$this->smsService->sendSms($appointinfo->mobile,'sms_recruit_register_error',array('reason'=>$reason));
|
|
|
-
|
|
|
}
|
|
|
if($status == 1){
|
|
|
$reason = $reason ?? '符合报考条件';
|
|
@@ -1138,7 +1226,6 @@ class RecruitController extends Controller
|
|
|
$appointinfo->political_audit = 1;
|
|
|
$appointinfo->save();
|
|
|
$this->smsService->sendSms($appointinfo->mobile,'sms_recruit_register_success',array('reason'=>$reason));
|
|
|
-
|
|
|
}
|
|
|
|
|
|
return response()->json(['status' => 1, 'msg' => '操作成功!', 'data' => 'ok']);
|