123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619 |
- @extends('app.hardware.layout.hardware')
- @push('meta')
- @endpush
- @push('css')
- <link rel="stylesheet" href="{{theme_asset('app/css/aio/common.css')}}" />
- <link rel="stylesheet" href="{{theme_asset('app/css/aio/joblist/joblist.css')}}"/>
- <link rel="stylesheet" href="{{theme_asset('app/css/aio/resume/resume.css')}}"/>
- <link rel="stylesheet" href="{{theme_asset('app/css/aio/footer.css')}}"/>
- <link rel="stylesheet" href="{{theme_asset('app/css/aio/myDiv.css')}}"/>
- @endpush
- @push('js')
- @endpush
- @section('content')
- <div class="container">
- <div class="resume-content-body">
- <div class="create-resume-title">
- 修改简历
- </div>
- <div class="resume-content-info" id="dialogDiv-content">
- <form name="createresume" id="createresume" method="post">
- <input type="hidden" name="resume_id" id="resume_id" value="{{ $content->id or '' }}">
- <input type="hidden" name="member_info_id" id="member_info_id" value="{{ $content->memberInfos->id }}">
- <table class="content-info-table">
- <tr>
- <td>
- <div class="content-info-tdone">
- <span class="table-wapper-lefttitle">姓名:</span>
- <input type="text" class="table-wapper-rightinput wapper-rightinput-one" name="fullname" id="fullname" value="{{ $content->memberInfos->realname }}">
- </div>
- <div class="content-info-tdone">
- <span class="table-wapper-lefttitle">性别:</span>
- <select id="sex" name="sex" class="top-select-style top-select-xb">
- @if($content->memberInfos->sex==1)
- <option class="top-option-style" selected="selected" value="1">男</option>
- <option class="top-option-style" value="2">女</option>
- @else
- <option class="top-option-style" value="1">男</option>
- <option class="top-option-style" selected="selected" value="2">女</option>
- @endif
- </select>
- </div>
- <div class="content-info-tdone">
- <span class="table-wapper-lefttitle">出生年月:</span>
- <select name="birthdate" class="top-select-style" id="birthdate" style="width: 90px;margin-right: 10px;">
- <option value="">请选择</option>
- <option @if($content->memberInfos->birthday==2003) selected @endif value="2003">2003年</option><option @if($content->memberInfos->birthday==2002) selected @endif value="2002">2002年</option><option @if($content->memberInfos->birthday==2001) selected @endif value="2001">2001年</option><option @if($content->memberInfos->birthday==2000) selected @endif value="2000">2000年</option><option @if($content->memberInfos->birthday==1999) selected @endif value="1999">1999年</option><option @if($content->memberInfos->birthday==1998) selected @endif value="1998">1998年</option><option @if($content->memberInfos->birthday==1997) selected @endif value="1997">1997年</option><option @if($content->memberInfos->birthday==1996) selected @endif value="1996">1996年</option><option @if($content->memberInfos->birthday==1995) selected @endif value="1995">1995年</option><option @if($content->memberInfos->birthday==1994) selected @endif value="1994">1994年</option><option @if($content->memberInfos->birthday==1993) selected @endif value="1993">1993年</option><option @if($content->memberInfos->birthday==1992) selected @endif value="1992">1992年</option><option @if($content->memberInfos->birthday==1991) selected @endif value="1991">1991年</option><option @if($content->memberInfos->birthday==1990) selected @endif value="1990">1990年</option><option @if($content->memberInfos->birthday==1989) selected @endif value="1989">1989年</option><option @if($content->memberInfos->birthday==1988) selected @endif value="1988">1988年</option><option @if($content->memberInfos->birthday==1987) selected @endif value="1987">1987年</option><option @if($content->memberInfos->birthday==1986) selected @endif value="1986">1986年</option><option @if($content->memberInfos->birthday==1985) selected @endif value="1985">1985年</option><option @if($content->memberInfos->birthday==1984) selected @endif value="1984">1984年</option><option @if($content->memberInfos->birthday==1983) selected @endif value="1983">1983年</option><option @if($content->memberInfos->birthday==1982) selected @endif value="1982">1982年</option><option @if($content->memberInfos->birthday==1981) selected @endif value="1981">1981年</option><option @if($content->memberInfos->birthday==1980) selected @endif value="1980">1980年</option><option @if($content->memberInfos->birthday==1979) selected @endif value="1979">1979年</option><option @if($content->memberInfos->birthday==1978) selected @endif value="1978">1978年</option><option @if($content->memberInfos->birthday==1977) selected @endif value="1977">1977年</option><option @if($content->memberInfos->birthday==1976) selected @endif value="1976">1976年</option><option @if($content->memberInfos->birthday==1975) selected @endif value="1975">1975年</option><option @if($content->memberInfos->birthday==1974) selected @endif value="1974">1974年</option><option @if($content->memberInfos->birthday==1973) selected @endif value="1973">1973年</option><option @if($content->memberInfos->birthday==1972) selected @endif value="1972">1972年</option><option @if($content->memberInfos->birthday==1971) selected @endif value="1971">1971年</option><option @if($content->memberInfos->birthday==1970) selected @endif value="1970">1970年</option><option @if($content->memberInfos->birthday==1969) selected @endif value="1969">1969年</option><option @if($content->memberInfos->birthday==1968) selected @endif value="1968">1968年</option><option @if($content->memberInfos->birthday==1967) selected @endif value="1967">1967年</option><option @if($content->memberInfos->birthday==1966) selected @endif value="1966">1966年</option><option @if($content->memberInfos->birthday==1965) selected @endif value="1965">1965年</option><option @if($content->memberInfos->birthday==1964) selected @endif value="1964">1964年</option><option @if($content->memberInfos->birthday==1963) selected @endif value="1963">1963年</option><option @if($content->memberInfos->birthday==1962) selected @endif value="1962">1962年</option><option @if($content->memberInfos->birthday==1961) selected @endif value="1961">1961年</option><option @if($content->memberInfos->birthday==1960) selected @endif value="1960">1960年</option><option @if($content->memberInfos->birthday==1959) selected @endif value="1959">1959年</option><option @if($content->memberInfos->birthday==1958) selected @endif value="1958">1958年</option><option @if($content->memberInfos->birthday==1957) selected @endif value="1957">1957年</option><option @if($content->memberInfos->birthday==1956) selected @endif value="1956">1956年</option><option @if($content->memberInfos->birthday==1955) selected @endif value="1955">1955年</option><option @if($content->memberInfos->birthday==1954) selected @endif value="1954">1954年</option>
- </select>
- </div>
- <div class="content-info-tdone">
- <span class="table-wapper-lefttitle">最高学历:</span>
- <select id="education" class="top-select-style" name="education" style="width: 90px;">
- <option class="top-option-style" value="">请选择</option>
- @foreach($category['other']['AIX_education'] as $key => $val )
- <option class="top-option-style" @if($content->memberInfos->education==explode(',',$val)[0]) selected @endif value="{{ explode(',',$val)[0] }}">{{ explode(',',$val)[1] }}</option>
- @endforeach
- </select>
- </div>
- </td>
- </tr>
- <tr>
- <td>
- <div class="content-info-tdone">
- @php
- $defaultRe = explode('.', $content->memberInfos->residence);
- @endphp
- <span class="table-wapper-lefttitle">现居住地:</span>
- <select name="residence" class="top-select-style" id="residence" style="width: 90px;margin-right: 10px;">
- <option value="">请选择</option>
- @foreach($category['district']['first'] as $key => $val )
- <option @if($defaultRe[0]==explode(',',$val)[0]) selected @endif value="{{ explode(',',$val)[0] }}">{{ explode(',',$val)[1] }}</option>
- @endforeach
- </select>
- <select name="residence_f" class="top-select-style" id="residence_f" style="width: 90px;margin-right: 10px;">
- <option value="{{ $defaultRe[1] }}">{{ get_district_cn($defaultRe[1]) }}</option>
- </select>
- <select name="residence_d" class="top-select-style" id="residence_d" style="width: 90px;margin-right: 10px;">
- @if($defaultRe[2]==0)
- <option value="{{ $defaultRe[2] }}">不限</option>
- @else
- <option value="{{ $defaultRe[2] }}">{{ get_district_cn($defaultRe[2]) }}</option>
- @endif
- </select>
- </div>
- <div class="content-info-tdone">
- <span class="table-wapper-lefttitle">工作经验:</span>
- <select id="experience" class="top-select-style" name="experience" style="width: 150px;">
- <option class="top-option-style" value="">请选择</option>
- @foreach($category['other']['AIX_experience'] as $key => $val )
- <option class="top-option-style" @if($content->memberInfos->experience==explode(',',$val)[0]) selected @endif value="{{ explode(',',$val)[0] }}">{{ explode(',',$val)[1] }}</option>
- @endforeach
- </select>
- </div>
- </td>
- </tr>
- <tr>
- <td>
- <div class="content-info-tdone">
- <span class="table-wapper-lefttitle">证件类型:</span>
- <select id="card_t_cn" class="top-select-style" name="card_t_cn" style="width: 250px;margin-right: 10px;">
- <option class="top-option-style" value="">请选择</option>
- @foreach($category['other']['AIX_card_type'] as $key => $val )
- <option class="top-option-style" @if($content->memberInfos->card_t_cn==explode(',',$val)[0]) selected @endif value="{{ explode(',',$val)[0] }}">{{ explode(',',$val)[1] }}</option>
- @endforeach
- </select>
- </div>
- <span class="table-wapper-lefttitle">证件号:</span>
- <input type="text" class="table-wapper-rightinput" name="id_card" id="id_card" value="{{ $content->memberInfos->id_card }}">
- </td>
- </tr>
- <tr>
- <td>
- <span class="table-wapper-lefttitle">手机:</span>
- <input type="text" class="table-wapper-rightinput " name="telephone" id="telephone" @if(auth('web-member')->user()->mobile_audit) value="{{ auth('web-member')->user()->mobile }}" @else value="{{ $content->memberInfos->phone }}" @endif style="margin-right: 10px;">
- <span class="table-wapper-lefttitle">邮箱:</span>
- <input type="text" class="table-wapper-rightinput" name="email" id="email" @if(auth('web-member')->user()->email_audit) value="{{ auth('web-member')->user()->email }}" @else value="{{ $content->memberInfos->email }}" @endif>
- </td>
- </tr>
- <tr>
- <td>
- <div class="content-info-tdone">
- <span class="table-wapper-lefttitle">目前状态:</span>
- <select id="current" class="top-select-style" name="current" style="width: 320px;margin-right: 10px;">
- <option class="top-option-style" value="">请选择</option>
- @foreach($category['other']['AIX_current'] as $key => $val )
- <option class="top-option-style" @if($content->current==explode(',',$val)[0]) selected @endif value="{{ explode(',',$val)[0] }}">{{ explode(',',$val)[1] }}</option>
- @endforeach
- </select>
- </div>
- <div class="content-info-tdone">
- <span class="table-wapper-lefttitle">期望薪资:</span>
- <select id="wage" class="top-select-style" name="wage" style="width: 180px;margin-right: 10px;">
- @if($content->wage)
- <option class="top-option-style" value="">请选择</option>
- @else
- <option class="top-option-style" selected value="{{ $content->wage_min or '' }},{{ $content->wage_max or '' }}">{{ $content->wage_cn or '' }}</option>
- @endif
-
- @foreach($category['other']['AIX_wage'] as $key => $val )
- <option class="top-option-style" @if($content->wage==explode(',',$val)[0]) selected @endif value="{{ explode(',',$val)[0] }}">{{ explode(',',$val)[1] }}</option>
- @endforeach
- </select>
- </div>
- </td>
- </tr>
- <tr>
- <td>
- <div class="content-info-tdone">
- <span class="table-wapper-lefttitle">工作性质:</span>
- <select id="nature" class="top-select-style" name="nature" style="width: 200px;margin-right: 10px;">
- <option class="top-option-style" value="">请选择</option>
- @foreach($category['other']['AIX_jobs_nature'] as $key => $val )
- <option class="top-option-style" @if($content->nature==explode(',',$val)[0]) selected @endif value="{{ explode(',',$val)[0] }}">{{ explode(',',$val)[1] }}</option>
- @endforeach
- </select>
- </div>
- <div class="content-info-tdone">
- <span class="table-wapper-lefttitle">期望行业:</span>
- <select id="trade" class="top-select-style" name="trade" style="width: 300px;margin-right: 10px;">
- <option class="top-option-style" value="">请选择</option>
- @foreach($category['other']['AIX_trade'] as $key => $val )
- <option class="top-option-style" @if($content->trade==explode(',',$val)[0]) selected @endif value="{{ explode(',',$val)[0] }}">{{ explode(',',$val)[1] }}</option>
- @endforeach
- </select>
- </div>
- </td>
- </tr>
- <tr>
- <td>
- <div class="content-info-tdone">
- @php
- $defaultDi = explode(',' , $content->district);
- $defaultDis = explode('.' , $defaultDi[0]);
- @endphp
- <span class="table-wapper-lefttitle">工作地区:</span>
- <select name="district" class="top-select-style" id="district" style="width: 80px;margin-right: 10px;">
- <option value="">请选择</option>
- @foreach($category['district']['first'] as $key => $val )
- <option @if($defaultDis[0]==explode(',',$val)[0]) selected @endif value="{{ explode(',',$val)[0] }}">{{ explode(',',$val)[1] }}</option>
- @endforeach
- </select>
- <select name="district_f" class="top-select-style" id="district_f" style="width: 80px;margin-right: 10px;">
- <option value="{{ $defaultDis[1] }}">{{ get_district_cn($defaultDis[1]) }}</option>
- </select>
- <select name="district_d" class="top-select-style" id="district_d" style="width: 80px;margin-right: 10px;">
- @if($defaultDis[2]==0)
- <option value="{{ $defaultDis[2] }}">不限</option>
- @else
- <option value="{{ $defaultDis[2] }}">{{ get_district_cn($defaultDis[2]) }}</option>
- @endif
- </select>
- </div>
-
- <div class="content-info-tdone">
- @php
- $householdaddressDi = explode(',' , $content->memberInfos->householdaddress);
- $householdaddressDis = explode('.' , $householdaddressDi[0]);
- @endphp
- <span class="table-wapper-lefttitle">籍贯:</span>
- <select name="householdaddress" class="top-select-style" id="householdaddress" style="width: 80px;margin-right: 10px;">
- <option value="">请选择</option>
- @foreach($category['district']['first'] as $key => $val )
- <option @if($householdaddressDis[0]==explode(',',$val)[0]) selected @endif value="{{ explode(',',$val)[0] }}">{{ explode(',',$val)[1] }}</option>
- @endforeach
- </select>
- <select name="householdaddress_f" class="top-select-style" id="householdaddress_f" style="width: 80px;margin-right: 10px;">
- <option value="{{ $householdaddressDis[1] or '' }}">@if(isset($householdaddressDis[1])){{ get_district_cn($householdaddressDis[1]) }}@endif</option>
- </select>
- <select name="householdaddress_d" class="top-select-style" id="householdaddress_d" style="width: 80px;margin-right: 10px;">
- @if(isset($householdaddressDis[2])&&$householdaddressDis[2]==0)
- <option value="{{ $householdaddressDis[2] }}">不限</option>
- @else
- <option value="{{ $householdaddressDis[2] or '' }}">@if(isset($householdaddressDis[2])){{ get_district_cn($householdaddressDis[2]) }}@endif</option>
- @endif
- </select>
- </div>
-
-
-
- </td>
- </tr>
- <tr>
- <td>
- <div class="content-info-tdone">
- @php
- $intentionDi = explode(',' , $content->intention_jobs_id);
- $intentionDis = explode('.' , $intentionDi[0]);
- @endphp
- <span class="table-wapper-lefttitle">期望职位:</span>
- <select name="intention_jobs_id" class="top-select-style" id="intention_jobs_id" style="width: 280px;margin-right: 10px;">
- <option value="">请选择</option>
- @foreach($category['jobs']['first'] as $key => $val )
- <option @if($intentionDis[0]==explode(',',$val)[0]) selected @endif value="{{ explode(',',$val)[0] }}">{{ explode(',',$val)[1] }}</option>
- @endforeach
- </select>
- <select name="intention_jobs_id_f" class="top-select-style" id="intention_jobs_id_f" style="width: 160px;margin-right: 10px;">
- <option value="{{ $intentionDis[1] }}">{{ get_job_category_cn($intentionDis[1]) }}</option>
- </select>
- <select name="intention_jobs_id_d" class="top-select-style" id="intention_jobs_id_d" style="width: 160px;margin-right: 10px;">
- @if($intentionDis[2]==0)
- <option value="{{ $intentionDis[2] }}">不限</option>
- @else
- <option value="{{ $intentionDis[2] }}">{{ get_job_category_cn($intentionDis[2]) }}</option>
- @endif
- </select>
- </div>
- </td>
- </tr>
- </table>
- </form>
- <div class="clear"></div>
- </div>
- <div class="resume-submit">
- <button class="Btnstyle resume-submitBtn" id="saveresume" style="width: 130px" type="button">保存简历</button>
- <div class="clear"></div>
- </div>
- </div>
- <div class="member-index-footer">
- @include('app.hardware.layout.footer')
- </div>
- </div>
- @endsection
- @section('script')
- <script type="text/javascript" src="{{theme_asset('app/js/aio/countdownlong.js')}}"></script>
- <script type="text/javascript" src="{{theme_asset('app/js/aio/myDiv.js')}}"></script>
- <script>
- var countdown=300;
- $("#residence").change(function () {
- var residence_id = $("#residence").val();
- $.ajax({
- headers: {'X-CSRF-TOKEN': $('meta[name="csrf-token"]').attr('content')},
- url: "{{ route('hardware.aio.districts') }}",
- type: 'POST',
- dataType: 'json',
- data: {
- parent_id:residence_id,
- },
- success: function (result) {
- var html = '';
- if(result.data){
- for (var i =0 ; i < result.data.length; i++) {
- html+="<option value='"+result.data[i].id+"'>"+result.data[i].name+"</option>";
- }
- }
- $("#residence_f").html('<option value="">请选择</option>'+html);
- $("#residence_d").html('<option value="">请选择</option>');
- },
- })
- })
- $("#residence_f").change(function () {
- var residence_id = $("#residence_f").val();
- $.ajax({
- headers: {'X-CSRF-TOKEN': $('meta[name="csrf-token"]').attr('content')},
- url: "{{ route('hardware.aio.districts') }}",
- type: 'POST',
- dataType: 'json',
- data: {
- parent_id:residence_id,
- },
- success: function (result) {
- var html = '';
- if(result.data){
- for (var i =0 ; i < result.data.length; i++) {
- html+="<option value='"+result.data[i].id+"'>"+result.data[i].name+"</option>";
- }
- }
- $("#residence_d").html('<option value="0">不限</option>'+html);
- },
- })
- })
- $("#district").change(function () {
- var residence_id = $("#district").val();
- $.ajax({
- headers: {'X-CSRF-TOKEN': $('meta[name="csrf-token"]').attr('content')},
- url: "{{ route('hardware.aio.districts') }}",
- type: 'POST',
- dataType: 'json',
- data: {
- parent_id:residence_id,
- },
- success: function (result) {
- var html = '';
- if(result.data){
- for (var i =0 ; i < result.data.length; i++) {
- html+="<option value='"+result.data[i].id+"'>"+result.data[i].name+"</option>";
- }
- }
- $("#district_f").html('<option value="">请选择</option>'+html);
- $("#district_d").html('<option value="">请选择</option>');
- },
- })
- })
- $("#district_f").change(function () {
- var residence_id = $("#district_f").val();
- $.ajax({
- headers: {'X-CSRF-TOKEN': $('meta[name="csrf-token"]').attr('content')},
- url: "{{ route('hardware.aio.districts') }}",
- type: 'POST',
- dataType: 'json',
- data: {
- parent_id:residence_id,
- },
- success: function (result) {
- var html = '';
- if(result.data){
- for (var i =0 ; i < result.data.length; i++) {
- html+="<option value='"+result.data[i].id+"'>"+result.data[i].name+"</option>";
- }
- }
- $("#district_d").html('<option value="0">不限</option>'+html);
- },
- })
- })
- //------------籍贯开始。
- $("#householdaddress").change(function () {
- var residence_id = $("#householdaddress").val();
- $.ajax({
- headers: {'X-CSRF-TOKEN': $('meta[name="csrf-token"]').attr('content')},
- url: "{{ route('hardware.aio.districts') }}",
- type: 'POST',
- dataType: 'json',
- data: {
- parent_id:residence_id,
- },
- success: function (result) {
- var html = '';
- if(result.data){
- for (var i =0 ; i < result.data.length; i++) {
- html+="<option value='"+result.data[i].id+"'>"+result.data[i].name+"</option>";
- }
- }
- $("#householdaddress_f").html('<option value="">请选择</option>'+html);
- $("#householdaddress_d").html('<option value="">请选择</option>');
- },
- })
- })
- $("#householdaddress_f").change(function () {
- var residence_id = $("#householdaddress_f").val();
- $.ajax({
- headers: {'X-CSRF-TOKEN': $('meta[name="csrf-token"]').attr('content')},
- url: "{{ route('hardware.aio.districts') }}",
- type: 'POST',
- dataType: 'json',
- data: {
- parent_id:residence_id,
- },
- success: function (result) {
- var html = '';
- if(result.data){
- for (var i =0 ; i < result.data.length; i++) {
- html+="<option value='"+result.data[i].id+"'>"+result.data[i].name+"</option>";
- }
- }
- $("#householdaddress_d").html('<option value="0">不限</option>'+html);
- },
- })
- })
- //------------籍贯结束。
-
- $("#intention_jobs_id").change(function () {
- var residence_id = $("#intention_jobs_id").val();
- $.ajax({
- headers: {'X-CSRF-TOKEN': $('meta[name="csrf-token"]').attr('content')},
- url: "{{ route('hardware.aio.category.jobs') }}",
- type: 'POST',
- dataType: 'json',
- data: {
- parent_id:residence_id,
- },
- success: function (result) {
- var html = '';
- if(result.data){
- for (var i =0 ; i < result.data.length; i++) {
- html+="<option value='"+result.data[i].id+"'>"+result.data[i].name+"</option>";
- }
- }
- $("#intention_jobs_id_f").html('<option value="">请选择</option>'+html);
- $("#intention_jobs_id_d").html('<option value="">请选择</option>');
- },
- })
- })
- $("#intention_jobs_id_f").change(function () {
- var residence_id = $("#intention_jobs_id_f").val();
- $.ajax({
- headers: {'X-CSRF-TOKEN': $('meta[name="csrf-token"]').attr('content')},
- url: "{{ route('hardware.aio.category.jobs') }}",
- type: 'POST',
- dataType: 'json',
- data: {
- parent_id:residence_id,
- },
- success: function (result) {
- var html = '';
- if(result.data){
- for (var i =0 ; i < result.data.length; i++) {
- html+="<option value='"+result.data[i].id+"'>"+result.data[i].name+"</option>";
- }
- }
- $("#intention_jobs_id_d").html('<option value="0">不限</option>'+html);
- },
- })
- })
- $("#saveresume").click(function () {
- var fullname = $.trim($("#fullname").val());
- var sex = $.trim($("#sex").val());
- var birthdate = $.trim($("#birthdate").val());
- var education = $.trim($("#education").val());
- var residence = $.trim($("#residence").val());
- var residence_f = $.trim($("#residence_f").val());
- var residence_d = $.trim($("#residence_d").val());
- var experience = $.trim($("#experience").val());
- var card_t_cn = $.trim($("#card_t_cn").val());
- var id_card = $.trim($("#id_card").val());
- var telephone = $.trim($("#telephone").val());
- var email = $.trim($("#email").val());
- var current = $.trim($("#current").val());
- var wage = $.trim($("#wage").val());
- var wage_min = 0;
- var wage_max = 0;
- if(wage.indexOf(',')>=0){
- var val_arr = wage.split(',');
- wage_min = val_arr[0];
- wage_max = val_arr[1];
- wage = 0;
- }
- var nature = $.trim($("#nature").val());
- var trade = $.trim($("#trade").val());
- var district = $.trim($("#district").val());
- var district_f = $.trim($("#district_f").val());
- var district_d = $.trim($("#district_d").val());
- var householdaddress = $.trim($("#householdaddress").val());
- var householdaddress_f = $.trim($("#householdaddress_f").val());
- var householdaddress_d = $.trim($("#householdaddress_d").val());
- var intention_jobs_id = $.trim($("#intention_jobs_id").val());
- var intention_jobs_id_f = $.trim($("#intention_jobs_id_f").val());
- var intention_jobs_id_d = $.trim($("#intention_jobs_id_d").val());
- var member_info_id = $.trim($('#member_info_id').val());
- var resume_id = $.trim($('#resume_id').val());
- if (fullname == "") {
- dialogDiv('姓名不能为空!','确定','Display');
- return false;
- }
- if (sex == "") {
- dialogDiv('性别不能为空!','确定','Display');
- return false;
- }
- if (birthdate == "") {
- dialogDiv('出生年月不能为空!','确定','Display');
- return false;
- }
- if (education == "") {
- dialogDiv('最高学历不能为空!','确定','Display');
- return false;
- }
- if (residence == "" || residence_f == "") {
- dialogDiv('现居住地不能为空!','确定','Display');
- return false;
- }
- if (experience == "") {
- dialogDiv('工作经验不能为空!','确定','Display');
- return false;
- }
- if (card_t_cn == "") {
- dialogDiv('证件类型不能为空!','确定','Display');
- return false;
- }
- if (id_card == "") {
- dialogDiv('证件号不能为空!','确定','Display');
- return false;
- }
- if (telephone == "") {
- dialogDiv('手机不能为空!','确定','Display');
- return false;
- }
- if (email == "") {
- dialogDiv('邮箱不能为空!','确定','Display');
- return false;
- }
- if (current == "") {
- dialogDiv('目前状态不能为空!','确定','Display');
- return false;
- }
-
- if(wage_min=="" || wage_max==""){
- if (wage == "") {
- dialogDiv('期望薪资不能为空!','确定','Display');
- return false;
- }
- }
-
- if (nature == "") {
- dialogDiv('工作性质不能为空!','确定','Display');
- return false;
- }
- if (trade == "") {
- dialogDiv('期望行业不能为空!','确定','Display');
- return false;
- }
- if (district == "" || district_f == "") {
- dialogDiv('工作地区不能为空!','确定','Display');
- return false;
- }
- if (householdaddress == "" || householdaddress_f == "") {
- dialogDiv('籍贯不能为空!','确定','Display');
- return false;
- }
- if (intention_jobs_id == "" || intention_jobs_id_f == "") {
- dialogDiv('期望职位不能为空!','确定','Display');
- return false;
- }
- var residenceValue = residence+'.'+residence_f+'.'+residence_d;
- var districtValue = district+'.'+district_f+'.'+district_d;
- var householdaddressValue = householdaddress+'.'+householdaddress_f+'.'+householdaddress_d;
- var intentionJobsValue = intention_jobs_id+'.'+intention_jobs_id_f+'.'+intention_jobs_id_d;
- $.ajax({
- headers: {'X-CSRF-TOKEN': $('meta[name="csrf-token"]').attr('content')},
- url: "{{ route('hardware.aio.resume.new') }}",
- type: 'POST',
- dataType: 'json',
- data: {id:member_info_id,card_t_cn:card_t_cn,id_card:id_card,fullname: fullname,sex: sex, birthdate: birthdate,education: education, experience: experience, telephone: telephone, email: email,current: current, nature: nature, trade: trade, intention_jobs_id: intentionJobsValue,residence:residenceValue, district: districtValue, wage: wage,wage_min:wage_min,wage_max:wage_max,resume_id:resume_id,householdaddress:householdaddressValue},
- success: function (result) {
- window.location.href = "{{ route('hardware.aio.job') }}";
- },
- error: function (errorData) {
- if (errorData.status==422) {//验证错误
- $.each(JSON.parse(errorData.responseText).errors,function (key,val) {
- dialogDiv(val[0],'确定','Display');
- return false;
- });
- }
- else if(errorData.status==400) {//业务错误
- dialogDiv(JSON.parse(errorData.responseText).message,'确定','Display');
- return false;
- }
- }
- })
- })
- </script>
- @endsection
|