Browse Source

增加材料补登失信情况查询

sandm 1 year ago
parent
commit
49e6a06a78

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

@@ -1046,6 +1046,7 @@ class RecruitController extends Controller
                 'household_register' => [],
                 'education_certification'=>[],
                 'family_planning'=>[],
+                'chengxin' => [],
                 'manage' => []
             ];
         }else{
@@ -1055,6 +1056,7 @@ class RecruitController extends Controller
                 'household_register' => [],
                 'education_certification'=>[],
                 'family_planning'=>[],
+                'chengxin' => [],
                 'manage' => []
             ];
             $info->identification = json_decode($info->identification);
@@ -1131,6 +1133,27 @@ class RecruitController extends Controller
 //                'start' => 0,
 //                'data' =>$photo_data
 //            ];
+            $info->chengxin = json_decode($info->chengxin);
+            $photo_data = [];
+            if(is_array($info->chengxin)){
+                foreach ($info->chengxin as $k => $v) {
+                    if($v->status){
+                        $photo_data[] = [
+                            'alt' => $v->name,
+                            'pid' => $v->uid,
+                            'src' => $v->response->path,
+                        ];
+                    }
+                }
+            }
+
+            $photos['chengxin'] = [
+                'title' => '失信查询情况',
+                'id' => 1,
+                'start' => 0,
+                'data' =>$photo_data
+            ];
+
             $info->manage = json_decode($info->manage);
             $photo_data = [];
             if(is_array($info->manage)){

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

@@ -1770,9 +1770,10 @@ class IndexController extends WebBaseController
             $info = [
                 'appoint_id' => $appoint_info->id,
                 'identification' => '',
-                'household_register' => '',
-                'education_certification' => '',
+                //'household_register' => '',
+                //'education_certification' => '',
                 //'family_planning' => '',
+                'chengxin' => '',
                 'manage' => '',
                 'status' => 3
             ];
@@ -1826,6 +1827,18 @@ class IndexController extends WebBaseController
             }
             $info['family_planning'] = $family_planning;
 
+            if(json_decode($info['chengxin'])){
+                $chengxin = json_decode($info['chengxin'],true);
+                foreach ($chengxin as $k => $v){
+                    if(array_key_exists('response',$v)){
+                        $chengxin[$k]['url'] = $v['response']['path'];
+                    }
+                }
+            }else{
+                $chengxin = [];
+            }
+            $info['chengxin'] = $chengxin;
+
             if(json_decode($info['manage'])){
                 $manage = json_decode($info['manage'],true);
                 foreach ($manage as $k => $v){

+ 80 - 47
public/themes/default/views/app/recruit/supplement.blade.php

@@ -77,7 +77,7 @@
                 <tbody>
                 <tr style="height:52px;page-break-inside:avoid">
                     <td valign="center" width="350">
-                        <span class="require">*</span>身份证原件(正反面)
+                        <span class="require">*</span>身份证原件(正反面)
                     </td>
                     <td valign="center" colspan="11">
                         <el-form-item prop="identification" ref="identification">
@@ -98,52 +98,52 @@
                         </el-form-item>
                     </td>
                 </tr>
-                <tr style="height:52px;page-break-inside:avoid">
-                    <td valign="center" >
-                        <span class="require">*</span>户口簿(户主页及本人页)
-                    </td>
-                    <td valign="center" colspan="11">
-                        <el-form-item prop="household_register" ref="household_register">
-                            <div style="padding: 10px 0">
-                                <el-upload
-                                        action="{{ route('recruit.api.upload') }}"
-                                        list-type="picture-card"
-                                        :data="{_token:'{{csrf_token()}}'}"
-                                        :file-list="user.household_register"
-                                        :before-upload="beforeImageUpload"
-                                        :on-success="uploadSuccessHR"
-                                        :multiple="true"
-                                        :on-preview="handlePictureCardPreview"
-                                        :on-remove="removeID">
-                                    <i class="el-icon-plus"></i>
-                                </el-upload>
-                            </div>
-                        </el-form-item>
-                    </td>
-                </tr>
-                <tr style="height:52px;page-break-inside:avoid">
-                    <td valign="center" >
-                        <span class="require">*</span>毕业证书及学信网《教育部学历证书电子注册备案表》
-                    </td>
-                    <td valign="center" colspan="11">
-                        <el-form-item prop="education_certification" ref="education_certification">
-                            <div style="padding: 10px 0">
-                                <el-upload
-                                        action="{{ route('recruit.api.upload') }}"
-                                        list-type="picture-card"
-                                        :data="{_token:'{{csrf_token()}}'}"
-                                        :file-list="user.education_certification"
-                                        :before-upload="beforeImageUpload"
-                                        :on-success="uploadSuccessEDU"
-                                        :multiple="true"
-                                        :on-preview="handlePictureCardPreview"
-                                        :on-remove="removeEDU">
-                                    <i class="el-icon-plus"></i>
-                                </el-upload>
-                            </div>
-                        </el-form-item>
-                    </td>
-                </tr>
+{{--                <tr style="height:52px;page-break-inside:avoid">--}}
+{{--                    <td valign="center" >--}}
+{{--                        <span class="require">*</span>户口簿(户主页及本人页)--}}
+{{--                    </td>--}}
+{{--                    <td valign="center" colspan="11">--}}
+{{--                        <el-form-item prop="household_register" ref="household_register">--}}
+{{--                            <div style="padding: 10px 0">--}}
+{{--                                <el-upload--}}
+{{--                                        action="{{ route('recruit.api.upload') }}"--}}
+{{--                                        list-type="picture-card"--}}
+{{--                                        :data="{_token:'{{csrf_token()}}'}"--}}
+{{--                                        :file-list="user.household_register"--}}
+{{--                                        :before-upload="beforeImageUpload"--}}
+{{--                                        :on-success="uploadSuccessHR"--}}
+{{--                                        :multiple="true"--}}
+{{--                                        :on-preview="handlePictureCardPreview"--}}
+{{--                                        :on-remove="removeID">--}}
+{{--                                    <i class="el-icon-plus"></i>--}}
+{{--                                </el-upload>--}}
+{{--                            </div>--}}
+{{--                        </el-form-item>--}}
+{{--                    </td>--}}
+{{--                </tr>--}}
+{{--                <tr style="height:52px;page-break-inside:avoid">--}}
+{{--                    <td valign="center" >--}}
+{{--                        <span class="require">*</span>毕业证书及学信网《教育部学历证书电子注册备案表》--}}
+{{--                    </td>--}}
+{{--                    <td valign="center" colspan="11">--}}
+{{--                        <el-form-item prop="education_certification" ref="education_certification">--}}
+{{--                            <div style="padding: 10px 0">--}}
+{{--                                <el-upload--}}
+{{--                                        action="{{ route('recruit.api.upload') }}"--}}
+{{--                                        list-type="picture-card"--}}
+{{--                                        :data="{_token:'{{csrf_token()}}'}"--}}
+{{--                                        :file-list="user.education_certification"--}}
+{{--                                        :before-upload="beforeImageUpload"--}}
+{{--                                        :on-success="uploadSuccessEDU"--}}
+{{--                                        :multiple="true"--}}
+{{--                                        :on-preview="handlePictureCardPreview"--}}
+{{--                                        :on-remove="removeEDU">--}}
+{{--                                    <i class="el-icon-plus"></i>--}}
+{{--                                </el-upload>--}}
+{{--                            </div>--}}
+{{--                        </el-form-item>--}}
+{{--                    </td>--}}
+{{--                </tr>--}}
 {{--                <tr style="height:52px;page-break-inside:avoid">--}}
 {{--                    <td valign="center" >--}}
 {{--                        <span class="require">*</span>计生证明--}}
@@ -167,6 +167,29 @@
 {{--                        </el-form-item>--}}
 {{--                    </td>--}}
 {{--                </tr>--}}
+                <tr style="height:52px;page-break-inside:avoid">
+                    <td valign="center" >
+                        <span class="require">*</span>失信查询情况
+                    </td>
+                    <td valign="center" colspan="11">
+                        <el-form-item prop="chengxin" ref="chengxin">
+                            <div style="padding: 10px 0">
+                                <el-upload
+                                        action="{{ route('recruit.api.upload') }}"
+                                        list-type="picture-card"
+                                        :data="{_token:'{{csrf_token()}}'}"
+                                        :file-list="user.chengxin"
+                                        :before-upload="beforeImageUpload"
+                                        :on-success="uploadSuccessCx"
+                                        :multiple="true"
+                                        :on-preview="handlePictureCardPreview"
+                                        :on-remove="removeCx">
+                                    <i class="el-icon-plus"></i>
+                                </el-upload>
+                            </div>
+                        </el-form-item>
+                    </td>
+                </tr>
                 <tr style="height:52px;page-break-inside:avoid">
                     <td valign="center" >
                         <span class="require">*</span>综治证明
@@ -332,6 +355,13 @@
                         this.$message.error(response.msg);
                     }
                 },
+                uploadSuccessCx(response, file, fileList){
+                    if(response.status){
+                        this.user.chengxin = fileList
+                    }else{
+                        this.$message.error(response.msg);
+                    }
+                },
                 uploadSuccessManage(response, file, fileList){
                     if(response.status){
                         this.user.manage = fileList
@@ -351,6 +381,9 @@
                 removeEDU(file,fileList) {
                     this.user.education_certification = fileList
                 },
+                removeCx(file,fileList) {
+                    this.user.chengxin = fileList
+                },
                 removeManage(file,fileList) {
                     this.user.manage = fileList
                 },

+ 15 - 1
resources/views/admin/recruit/ajax_supplement.blade.php

@@ -75,7 +75,21 @@
                         </div>
                     </td>
                 </tr>
-
+                <tr style="height:52px;page-break-inside:avoid">
+                    <td valign="center">
+                        失信查询情况
+                    </td>
+                    <td valign="center" colspan="11">
+                        <div style="padding: 10px 0">
+                            @foreach($info->chengxin as $k => $v)
+                                @if(!empty($v))
+                                    <img class="attchment" data-key="{{$k}}" data-name="chengxin"
+                                         src="{{ $v->response->path }}" width="200"/>
+                                @endif
+                            @endforeach
+                        </div>
+                    </td>
+                </tr>
                 <tr style="height:52px;page-break-inside:avoid">
                     <td valign="center">
                         社会管理综合治理审核登记表