|
@@ -238,7 +238,7 @@ class RecruitController extends Controller
|
|
|
$form->number('ordid', '排序')->default(0);
|
|
|
$form->multipleFile('addFile', '附件')->move('storage/app/public/recruit/' . time());
|
|
|
})->tab('报名表单与条件', function ($form) {
|
|
|
- $form->checkbox('forms', '报名表单模块')->options(['basic' => '基础信息模块','expand_special' => '扩展模块-加分','detail' => '详情介绍模块','identification' => '身份证明上传模块','education_certification' => '学历证明上传模块','other_certification' => '其他证明上传模块', 'remark' => '备注模块','chengnuoshu'=>'诚信承诺书','internship' => '实习专场'])->default(['basic'])->setMustMark();
|
|
|
+ $form->checkbox('forms', '报名表单模块')->options(['basic' => '基础信息模块','expand_special' => '扩展模块-加分','detail' => '详情介绍模块','identification' => '身份证明上传模块','education_certification' => '学历证明上传模块','other_certification' => '其他证明上传模块', 'remark' => '备注模块','chengnuoshu'=>'诚信承诺书','shixin'=>'失信被执行人查询信息页扫描件','internship' => '实习专场'])->default(['basic'])->setMustMark();
|
|
|
$form->text('limit_times', '报名次数限制')->rules('required|regex:/^\d+$/', [
|
|
|
'required' => '报名限制次数必须填写',
|
|
|
'regex' => '次数必须为数字'
|
|
@@ -913,6 +913,29 @@ class RecruitController extends Controller
|
|
|
$data->chengnuoshu = [];
|
|
|
}
|
|
|
}
|
|
|
+ if(in_array('shixin',$recruit->forms)){
|
|
|
+ if(json_decode($data->shixin)){
|
|
|
+ $data->shixin = json_decode($data->shixin);
|
|
|
+ $photo_data = [];
|
|
|
+ foreach ($data->shixin as $k => $v) {
|
|
|
+ if($v->status){
|
|
|
+ $photo_data[] = [
|
|
|
+ 'alt' => $v->name,
|
|
|
+ 'pid' => $v->uid,
|
|
|
+ 'src' => $v->response->path,
|
|
|
+ ];
|
|
|
+ }
|
|
|
+ }
|
|
|
+ $photos['shixin'] = [
|
|
|
+ 'title' => '失信被执行人查询信息页扫描件',
|
|
|
+ 'id' => 1,
|
|
|
+ 'start' => 0,
|
|
|
+ 'data' =>$photo_data
|
|
|
+ ];
|
|
|
+ }else{
|
|
|
+ $data->shixin = [];
|
|
|
+ }
|
|
|
+ }
|
|
|
|
|
|
$html = view('admin.recruit.manageajax_userinfo')->with(['appointinfo' => $data,'recruit' => $recruit,'photos'=>$photos])->render();
|
|
|
return response()->json(['code' => 1, 'data' => $html]);
|
|
@@ -2116,6 +2139,9 @@ class RecruitController extends Controller
|
|
|
if(in_array('chengnuoshu',explode(',', $recruit->forms))){
|
|
|
$header[] = '诚信承诺书';
|
|
|
}
|
|
|
+ if(in_array('shixin',explode(',', $recruit->forms))){
|
|
|
+ $header[] = '失信被执行人查询信息页扫描件';
|
|
|
+ }
|
|
|
$header[] = '审核状态';
|
|
|
$header[] = '审核意见';
|
|
|
// if(in_array('3',explode(',', $recruit->step))){
|
|
@@ -2366,6 +2392,19 @@ class RecruitController extends Controller
|
|
|
|
|
|
array_push($item, implode("\r\n", $chengnuoshu));
|
|
|
}
|
|
|
+ if (in_array('shixin', explode(',', $recruit->forms))) {
|
|
|
+ $shixin = json_decode($v->shixin, true);
|
|
|
+ $shixin = [];
|
|
|
+ if($shixin){
|
|
|
+ foreach ($shixin as $val){
|
|
|
+ if(array_key_exists('path', $val['response'])){
|
|
|
+ array_push($shixin,"https://www.jucai.gov.cn" . $val['response']['path']);
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ array_push($item, implode("\r\n", $shixin));
|
|
|
+ }
|
|
|
switch (intval($v->audit)){
|
|
|
case 1:
|
|
|
$item[] = '审核中';
|