update.blade.php 38 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619
  1. @extends('app.hardware.layout.hardware')
  2. @push('meta')
  3. @endpush
  4. @push('css')
  5. <link rel="stylesheet" href="{{theme_asset('app/css/aio/common.css')}}" />
  6. <link rel="stylesheet" href="{{theme_asset('app/css/aio/joblist/joblist.css')}}"/>
  7. <link rel="stylesheet" href="{{theme_asset('app/css/aio/resume/resume.css')}}"/>
  8. <link rel="stylesheet" href="{{theme_asset('app/css/aio/footer.css')}}"/>
  9. <link rel="stylesheet" href="{{theme_asset('app/css/aio/myDiv.css')}}"/>
  10. @endpush
  11. @push('js')
  12. @endpush
  13. @section('content')
  14. <div class="container">
  15. <div class="resume-content-body">
  16. <div class="create-resume-title">
  17. 修改简历
  18. </div>
  19. <div class="resume-content-info" id="dialogDiv-content">
  20. <form name="createresume" id="createresume" method="post">
  21. <input type="hidden" name="resume_id" id="resume_id" value="{{ $content->id or '' }}">
  22. <input type="hidden" name="member_info_id" id="member_info_id" value="{{ $content->memberInfos->id }}">
  23. <table class="content-info-table">
  24. <tr>
  25. <td>
  26. <div class="content-info-tdone">
  27. <span class="table-wapper-lefttitle">姓名:</span>
  28. <input type="text" class="table-wapper-rightinput wapper-rightinput-one" name="fullname" id="fullname" value="{{ $content->memberInfos->realname }}">
  29. </div>
  30. <div class="content-info-tdone">
  31. <span class="table-wapper-lefttitle">性别:</span>
  32. <select id="sex" name="sex" class="top-select-style top-select-xb">
  33. @if($content->memberInfos->sex==1)
  34. <option class="top-option-style" selected="selected" value="1">男</option>
  35. <option class="top-option-style" value="2">女</option>
  36. @else
  37. <option class="top-option-style" value="1">男</option>
  38. <option class="top-option-style" selected="selected" value="2">女</option>
  39. @endif
  40. </select>
  41. </div>
  42. <div class="content-info-tdone">
  43. <span class="table-wapper-lefttitle">出生年月:</span>
  44. <select name="birthdate" class="top-select-style" id="birthdate" style="width: 90px;margin-right: 10px;">
  45. <option value="">请选择</option>
  46. <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>
  47. </select>
  48. </div>
  49. <div class="content-info-tdone">
  50. <span class="table-wapper-lefttitle">最高学历:</span>
  51. <select id="education" class="top-select-style" name="education" style="width: 90px;">
  52. <option class="top-option-style" value="">请选择</option>
  53. @foreach($category['other']['AIX_education'] as $key => $val )
  54. <option class="top-option-style" @if($content->memberInfos->education==explode(',',$val)[0]) selected @endif value="{{ explode(',',$val)[0] }}">{{ explode(',',$val)[1] }}</option>
  55. @endforeach
  56. </select>
  57. </div>
  58. </td>
  59. </tr>
  60. <tr>
  61. <td>
  62. <div class="content-info-tdone">
  63. @php
  64. $defaultRe = explode('.', $content->memberInfos->residence);
  65. @endphp
  66. <span class="table-wapper-lefttitle">现居住地:</span>
  67. <select name="residence" class="top-select-style" id="residence" style="width: 90px;margin-right: 10px;">
  68. <option value="">请选择</option>
  69. @foreach($category['district']['first'] as $key => $val )
  70. <option @if($defaultRe[0]==explode(',',$val)[0]) selected @endif value="{{ explode(',',$val)[0] }}">{{ explode(',',$val)[1] }}</option>
  71. @endforeach
  72. </select>
  73. <select name="residence_f" class="top-select-style" id="residence_f" style="width: 90px;margin-right: 10px;">
  74. <option value="{{ $defaultRe[1] }}">{{ get_district_cn($defaultRe[1]) }}</option>
  75. </select>
  76. <select name="residence_d" class="top-select-style" id="residence_d" style="width: 90px;margin-right: 10px;">
  77. @if($defaultRe[2]==0)
  78. <option value="{{ $defaultRe[2] }}">不限</option>
  79. @else
  80. <option value="{{ $defaultRe[2] }}">{{ get_district_cn($defaultRe[2]) }}</option>
  81. @endif
  82. </select>
  83. </div>
  84. <div class="content-info-tdone">
  85. <span class="table-wapper-lefttitle">工作经验:</span>
  86. <select id="experience" class="top-select-style" name="experience" style="width: 150px;">
  87. <option class="top-option-style" value="">请选择</option>
  88. @foreach($category['other']['AIX_experience'] as $key => $val )
  89. <option class="top-option-style" @if($content->memberInfos->experience==explode(',',$val)[0]) selected @endif value="{{ explode(',',$val)[0] }}">{{ explode(',',$val)[1] }}</option>
  90. @endforeach
  91. </select>
  92. </div>
  93. </td>
  94. </tr>
  95. <tr>
  96. <td>
  97. <div class="content-info-tdone">
  98. <span class="table-wapper-lefttitle">证件类型:</span>
  99. <select id="card_t_cn" class="top-select-style" name="card_t_cn" style="width: 250px;margin-right: 10px;">
  100. <option class="top-option-style" value="">请选择</option>
  101. @foreach($category['other']['AIX_card_type'] as $key => $val )
  102. <option class="top-option-style" @if($content->memberInfos->card_t_cn==explode(',',$val)[0]) selected @endif value="{{ explode(',',$val)[0] }}">{{ explode(',',$val)[1] }}</option>
  103. @endforeach
  104. </select>
  105. </div>
  106. <span class="table-wapper-lefttitle">证件号:</span>
  107. <input type="text" class="table-wapper-rightinput" name="id_card" id="id_card" value="{{ $content->memberInfos->id_card }}">
  108. </td>
  109. </tr>
  110. <tr>
  111. <td>
  112. <span class="table-wapper-lefttitle">手机:</span>
  113. <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;">
  114. <span class="table-wapper-lefttitle">邮箱:</span>
  115. <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>
  116. </td>
  117. </tr>
  118. <tr>
  119. <td>
  120. <div class="content-info-tdone">
  121. <span class="table-wapper-lefttitle">目前状态:</span>
  122. <select id="current" class="top-select-style" name="current" style="width: 320px;margin-right: 10px;">
  123. <option class="top-option-style" value="">请选择</option>
  124. @foreach($category['other']['AIX_current'] as $key => $val )
  125. <option class="top-option-style" @if($content->current==explode(',',$val)[0]) selected @endif value="{{ explode(',',$val)[0] }}">{{ explode(',',$val)[1] }}</option>
  126. @endforeach
  127. </select>
  128. </div>
  129. <div class="content-info-tdone">
  130. <span class="table-wapper-lefttitle">期望薪资:</span>
  131. <select id="wage" class="top-select-style" name="wage" style="width: 180px;margin-right: 10px;">
  132. @if($content->wage)
  133. <option class="top-option-style" value="">请选择</option>
  134. @else
  135. <option class="top-option-style" selected value="{{ $content->wage_min or '' }},{{ $content->wage_max or '' }}">{{ $content->wage_cn or '' }}</option>
  136. @endif
  137. @foreach($category['other']['AIX_wage'] as $key => $val )
  138. <option class="top-option-style" @if($content->wage==explode(',',$val)[0]) selected @endif value="{{ explode(',',$val)[0] }}">{{ explode(',',$val)[1] }}</option>
  139. @endforeach
  140. </select>
  141. </div>
  142. </td>
  143. </tr>
  144. <tr>
  145. <td>
  146. <div class="content-info-tdone">
  147. <span class="table-wapper-lefttitle">工作性质:</span>
  148. <select id="nature" class="top-select-style" name="nature" style="width: 200px;margin-right: 10px;">
  149. <option class="top-option-style" value="">请选择</option>
  150. @foreach($category['other']['AIX_jobs_nature'] as $key => $val )
  151. <option class="top-option-style" @if($content->nature==explode(',',$val)[0]) selected @endif value="{{ explode(',',$val)[0] }}">{{ explode(',',$val)[1] }}</option>
  152. @endforeach
  153. </select>
  154. </div>
  155. <div class="content-info-tdone">
  156. <span class="table-wapper-lefttitle">期望行业:</span>
  157. <select id="trade" class="top-select-style" name="trade" style="width: 300px;margin-right: 10px;">
  158. <option class="top-option-style" value="">请选择</option>
  159. @foreach($category['other']['AIX_trade'] as $key => $val )
  160. <option class="top-option-style" @if($content->trade==explode(',',$val)[0]) selected @endif value="{{ explode(',',$val)[0] }}">{{ explode(',',$val)[1] }}</option>
  161. @endforeach
  162. </select>
  163. </div>
  164. </td>
  165. </tr>
  166. <tr>
  167. <td>
  168. <div class="content-info-tdone">
  169. @php
  170. $defaultDi = explode(',' , $content->district);
  171. $defaultDis = explode('.' , $defaultDi[0]);
  172. @endphp
  173. <span class="table-wapper-lefttitle">工作地区:</span>
  174. <select name="district" class="top-select-style" id="district" style="width: 80px;margin-right: 10px;">
  175. <option value="">请选择</option>
  176. @foreach($category['district']['first'] as $key => $val )
  177. <option @if($defaultDis[0]==explode(',',$val)[0]) selected @endif value="{{ explode(',',$val)[0] }}">{{ explode(',',$val)[1] }}</option>
  178. @endforeach
  179. </select>
  180. <select name="district_f" class="top-select-style" id="district_f" style="width: 80px;margin-right: 10px;">
  181. <option value="{{ $defaultDis[1] }}">{{ get_district_cn($defaultDis[1]) }}</option>
  182. </select>
  183. <select name="district_d" class="top-select-style" id="district_d" style="width: 80px;margin-right: 10px;">
  184. @if($defaultDis[2]==0)
  185. <option value="{{ $defaultDis[2] }}">不限</option>
  186. @else
  187. <option value="{{ $defaultDis[2] }}">{{ get_district_cn($defaultDis[2]) }}</option>
  188. @endif
  189. </select>
  190. </div>
  191. <div class="content-info-tdone">
  192. @php
  193. $householdaddressDi = explode(',' , $content->memberInfos->householdaddress);
  194. $householdaddressDis = explode('.' , $householdaddressDi[0]);
  195. @endphp
  196. <span class="table-wapper-lefttitle">籍贯:</span>
  197. <select name="householdaddress" class="top-select-style" id="householdaddress" style="width: 80px;margin-right: 10px;">
  198. <option value="">请选择</option>
  199. @foreach($category['district']['first'] as $key => $val )
  200. <option @if($householdaddressDis[0]==explode(',',$val)[0]) selected @endif value="{{ explode(',',$val)[0] }}">{{ explode(',',$val)[1] }}</option>
  201. @endforeach
  202. </select>
  203. <select name="householdaddress_f" class="top-select-style" id="householdaddress_f" style="width: 80px;margin-right: 10px;">
  204. <option value="{{ $householdaddressDis[1] or '' }}">@if(isset($householdaddressDis[1])){{ get_district_cn($householdaddressDis[1]) }}@endif</option>
  205. </select>
  206. <select name="householdaddress_d" class="top-select-style" id="householdaddress_d" style="width: 80px;margin-right: 10px;">
  207. @if(isset($householdaddressDis[2])&&$householdaddressDis[2]==0)
  208. <option value="{{ $householdaddressDis[2] }}">不限</option>
  209. @else
  210. <option value="{{ $householdaddressDis[2] or '' }}">@if(isset($householdaddressDis[2])){{ get_district_cn($householdaddressDis[2]) }}@endif</option>
  211. @endif
  212. </select>
  213. </div>
  214. </td>
  215. </tr>
  216. <tr>
  217. <td>
  218. <div class="content-info-tdone">
  219. @php
  220. $intentionDi = explode(',' , $content->intention_jobs_id);
  221. $intentionDis = explode('.' , $intentionDi[0]);
  222. @endphp
  223. <span class="table-wapper-lefttitle">期望职位:</span>
  224. <select name="intention_jobs_id" class="top-select-style" id="intention_jobs_id" style="width: 280px;margin-right: 10px;">
  225. <option value="">请选择</option>
  226. @foreach($category['jobs']['first'] as $key => $val )
  227. <option @if($intentionDis[0]==explode(',',$val)[0]) selected @endif value="{{ explode(',',$val)[0] }}">{{ explode(',',$val)[1] }}</option>
  228. @endforeach
  229. </select>
  230. <select name="intention_jobs_id_f" class="top-select-style" id="intention_jobs_id_f" style="width: 160px;margin-right: 10px;">
  231. <option value="{{ $intentionDis[1] }}">{{ get_job_category_cn($intentionDis[1]) }}</option>
  232. </select>
  233. <select name="intention_jobs_id_d" class="top-select-style" id="intention_jobs_id_d" style="width: 160px;margin-right: 10px;">
  234. @if($intentionDis[2]==0)
  235. <option value="{{ $intentionDis[2] }}">不限</option>
  236. @else
  237. <option value="{{ $intentionDis[2] }}">{{ get_job_category_cn($intentionDis[2]) }}</option>
  238. @endif
  239. </select>
  240. </div>
  241. </td>
  242. </tr>
  243. </table>
  244. </form>
  245. <div class="clear"></div>
  246. </div>
  247. <div class="resume-submit">
  248. <button class="Btnstyle resume-submitBtn" id="saveresume" style="width: 130px" type="button">保存简历</button>
  249. <div class="clear"></div>
  250. </div>
  251. </div>
  252. <div class="member-index-footer">
  253. @include('app.hardware.layout.footer')
  254. </div>
  255. </div>
  256. @endsection
  257. @section('script')
  258. <script type="text/javascript" src="{{theme_asset('app/js/aio/countdownlong.js')}}"></script>
  259. <script type="text/javascript" src="{{theme_asset('app/js/aio/myDiv.js')}}"></script>
  260. <script>
  261. var countdown=300;
  262. $("#residence").change(function () {
  263. var residence_id = $("#residence").val();
  264. $.ajax({
  265. headers: {'X-CSRF-TOKEN': $('meta[name="csrf-token"]').attr('content')},
  266. url: "{{ route('hardware.aio.districts') }}",
  267. type: 'POST',
  268. dataType: 'json',
  269. data: {
  270. parent_id:residence_id,
  271. },
  272. success: function (result) {
  273. var html = '';
  274. if(result.data){
  275. for (var i =0 ; i < result.data.length; i++) {
  276. html+="<option value='"+result.data[i].id+"'>"+result.data[i].name+"</option>";
  277. }
  278. }
  279. $("#residence_f").html('<option value="">请选择</option>'+html);
  280. $("#residence_d").html('<option value="">请选择</option>');
  281. },
  282. })
  283. })
  284. $("#residence_f").change(function () {
  285. var residence_id = $("#residence_f").val();
  286. $.ajax({
  287. headers: {'X-CSRF-TOKEN': $('meta[name="csrf-token"]').attr('content')},
  288. url: "{{ route('hardware.aio.districts') }}",
  289. type: 'POST',
  290. dataType: 'json',
  291. data: {
  292. parent_id:residence_id,
  293. },
  294. success: function (result) {
  295. var html = '';
  296. if(result.data){
  297. for (var i =0 ; i < result.data.length; i++) {
  298. html+="<option value='"+result.data[i].id+"'>"+result.data[i].name+"</option>";
  299. }
  300. }
  301. $("#residence_d").html('<option value="0">不限</option>'+html);
  302. },
  303. })
  304. })
  305. $("#district").change(function () {
  306. var residence_id = $("#district").val();
  307. $.ajax({
  308. headers: {'X-CSRF-TOKEN': $('meta[name="csrf-token"]').attr('content')},
  309. url: "{{ route('hardware.aio.districts') }}",
  310. type: 'POST',
  311. dataType: 'json',
  312. data: {
  313. parent_id:residence_id,
  314. },
  315. success: function (result) {
  316. var html = '';
  317. if(result.data){
  318. for (var i =0 ; i < result.data.length; i++) {
  319. html+="<option value='"+result.data[i].id+"'>"+result.data[i].name+"</option>";
  320. }
  321. }
  322. $("#district_f").html('<option value="">请选择</option>'+html);
  323. $("#district_d").html('<option value="">请选择</option>');
  324. },
  325. })
  326. })
  327. $("#district_f").change(function () {
  328. var residence_id = $("#district_f").val();
  329. $.ajax({
  330. headers: {'X-CSRF-TOKEN': $('meta[name="csrf-token"]').attr('content')},
  331. url: "{{ route('hardware.aio.districts') }}",
  332. type: 'POST',
  333. dataType: 'json',
  334. data: {
  335. parent_id:residence_id,
  336. },
  337. success: function (result) {
  338. var html = '';
  339. if(result.data){
  340. for (var i =0 ; i < result.data.length; i++) {
  341. html+="<option value='"+result.data[i].id+"'>"+result.data[i].name+"</option>";
  342. }
  343. }
  344. $("#district_d").html('<option value="0">不限</option>'+html);
  345. },
  346. })
  347. })
  348. //------------籍贯开始。
  349. $("#householdaddress").change(function () {
  350. var residence_id = $("#householdaddress").val();
  351. $.ajax({
  352. headers: {'X-CSRF-TOKEN': $('meta[name="csrf-token"]').attr('content')},
  353. url: "{{ route('hardware.aio.districts') }}",
  354. type: 'POST',
  355. dataType: 'json',
  356. data: {
  357. parent_id:residence_id,
  358. },
  359. success: function (result) {
  360. var html = '';
  361. if(result.data){
  362. for (var i =0 ; i < result.data.length; i++) {
  363. html+="<option value='"+result.data[i].id+"'>"+result.data[i].name+"</option>";
  364. }
  365. }
  366. $("#householdaddress_f").html('<option value="">请选择</option>'+html);
  367. $("#householdaddress_d").html('<option value="">请选择</option>');
  368. },
  369. })
  370. })
  371. $("#householdaddress_f").change(function () {
  372. var residence_id = $("#householdaddress_f").val();
  373. $.ajax({
  374. headers: {'X-CSRF-TOKEN': $('meta[name="csrf-token"]').attr('content')},
  375. url: "{{ route('hardware.aio.districts') }}",
  376. type: 'POST',
  377. dataType: 'json',
  378. data: {
  379. parent_id:residence_id,
  380. },
  381. success: function (result) {
  382. var html = '';
  383. if(result.data){
  384. for (var i =0 ; i < result.data.length; i++) {
  385. html+="<option value='"+result.data[i].id+"'>"+result.data[i].name+"</option>";
  386. }
  387. }
  388. $("#householdaddress_d").html('<option value="0">不限</option>'+html);
  389. },
  390. })
  391. })
  392. //------------籍贯结束。
  393. $("#intention_jobs_id").change(function () {
  394. var residence_id = $("#intention_jobs_id").val();
  395. $.ajax({
  396. headers: {'X-CSRF-TOKEN': $('meta[name="csrf-token"]').attr('content')},
  397. url: "{{ route('hardware.aio.category.jobs') }}",
  398. type: 'POST',
  399. dataType: 'json',
  400. data: {
  401. parent_id:residence_id,
  402. },
  403. success: function (result) {
  404. var html = '';
  405. if(result.data){
  406. for (var i =0 ; i < result.data.length; i++) {
  407. html+="<option value='"+result.data[i].id+"'>"+result.data[i].name+"</option>";
  408. }
  409. }
  410. $("#intention_jobs_id_f").html('<option value="">请选择</option>'+html);
  411. $("#intention_jobs_id_d").html('<option value="">请选择</option>');
  412. },
  413. })
  414. })
  415. $("#intention_jobs_id_f").change(function () {
  416. var residence_id = $("#intention_jobs_id_f").val();
  417. $.ajax({
  418. headers: {'X-CSRF-TOKEN': $('meta[name="csrf-token"]').attr('content')},
  419. url: "{{ route('hardware.aio.category.jobs') }}",
  420. type: 'POST',
  421. dataType: 'json',
  422. data: {
  423. parent_id:residence_id,
  424. },
  425. success: function (result) {
  426. var html = '';
  427. if(result.data){
  428. for (var i =0 ; i < result.data.length; i++) {
  429. html+="<option value='"+result.data[i].id+"'>"+result.data[i].name+"</option>";
  430. }
  431. }
  432. $("#intention_jobs_id_d").html('<option value="0">不限</option>'+html);
  433. },
  434. })
  435. })
  436. $("#saveresume").click(function () {
  437. var fullname = $.trim($("#fullname").val());
  438. var sex = $.trim($("#sex").val());
  439. var birthdate = $.trim($("#birthdate").val());
  440. var education = $.trim($("#education").val());
  441. var residence = $.trim($("#residence").val());
  442. var residence_f = $.trim($("#residence_f").val());
  443. var residence_d = $.trim($("#residence_d").val());
  444. var experience = $.trim($("#experience").val());
  445. var card_t_cn = $.trim($("#card_t_cn").val());
  446. var id_card = $.trim($("#id_card").val());
  447. var telephone = $.trim($("#telephone").val());
  448. var email = $.trim($("#email").val());
  449. var current = $.trim($("#current").val());
  450. var wage = $.trim($("#wage").val());
  451. var wage_min = 0;
  452. var wage_max = 0;
  453. if(wage.indexOf(',')>=0){
  454. var val_arr = wage.split(',');
  455. wage_min = val_arr[0];
  456. wage_max = val_arr[1];
  457. wage = 0;
  458. }
  459. var nature = $.trim($("#nature").val());
  460. var trade = $.trim($("#trade").val());
  461. var district = $.trim($("#district").val());
  462. var district_f = $.trim($("#district_f").val());
  463. var district_d = $.trim($("#district_d").val());
  464. var householdaddress = $.trim($("#householdaddress").val());
  465. var householdaddress_f = $.trim($("#householdaddress_f").val());
  466. var householdaddress_d = $.trim($("#householdaddress_d").val());
  467. var intention_jobs_id = $.trim($("#intention_jobs_id").val());
  468. var intention_jobs_id_f = $.trim($("#intention_jobs_id_f").val());
  469. var intention_jobs_id_d = $.trim($("#intention_jobs_id_d").val());
  470. var member_info_id = $.trim($('#member_info_id').val());
  471. var resume_id = $.trim($('#resume_id').val());
  472. if (fullname == "") {
  473. dialogDiv('姓名不能为空!','确定','Display');
  474. return false;
  475. }
  476. if (sex == "") {
  477. dialogDiv('性别不能为空!','确定','Display');
  478. return false;
  479. }
  480. if (birthdate == "") {
  481. dialogDiv('出生年月不能为空!','确定','Display');
  482. return false;
  483. }
  484. if (education == "") {
  485. dialogDiv('最高学历不能为空!','确定','Display');
  486. return false;
  487. }
  488. if (residence == "" || residence_f == "") {
  489. dialogDiv('现居住地不能为空!','确定','Display');
  490. return false;
  491. }
  492. if (experience == "") {
  493. dialogDiv('工作经验不能为空!','确定','Display');
  494. return false;
  495. }
  496. if (card_t_cn == "") {
  497. dialogDiv('证件类型不能为空!','确定','Display');
  498. return false;
  499. }
  500. if (id_card == "") {
  501. dialogDiv('证件号不能为空!','确定','Display');
  502. return false;
  503. }
  504. if (telephone == "") {
  505. dialogDiv('手机不能为空!','确定','Display');
  506. return false;
  507. }
  508. if (email == "") {
  509. dialogDiv('邮箱不能为空!','确定','Display');
  510. return false;
  511. }
  512. if (current == "") {
  513. dialogDiv('目前状态不能为空!','确定','Display');
  514. return false;
  515. }
  516. if(wage_min=="" || wage_max==""){
  517. if (wage == "") {
  518. dialogDiv('期望薪资不能为空!','确定','Display');
  519. return false;
  520. }
  521. }
  522. if (nature == "") {
  523. dialogDiv('工作性质不能为空!','确定','Display');
  524. return false;
  525. }
  526. if (trade == "") {
  527. dialogDiv('期望行业不能为空!','确定','Display');
  528. return false;
  529. }
  530. if (district == "" || district_f == "") {
  531. dialogDiv('工作地区不能为空!','确定','Display');
  532. return false;
  533. }
  534. if (householdaddress == "" || householdaddress_f == "") {
  535. dialogDiv('籍贯不能为空!','确定','Display');
  536. return false;
  537. }
  538. if (intention_jobs_id == "" || intention_jobs_id_f == "") {
  539. dialogDiv('期望职位不能为空!','确定','Display');
  540. return false;
  541. }
  542. var residenceValue = residence+'.'+residence_f+'.'+residence_d;
  543. var districtValue = district+'.'+district_f+'.'+district_d;
  544. var householdaddressValue = householdaddress+'.'+householdaddress_f+'.'+householdaddress_d;
  545. var intentionJobsValue = intention_jobs_id+'.'+intention_jobs_id_f+'.'+intention_jobs_id_d;
  546. $.ajax({
  547. headers: {'X-CSRF-TOKEN': $('meta[name="csrf-token"]').attr('content')},
  548. url: "{{ route('hardware.aio.resume.new') }}",
  549. type: 'POST',
  550. dataType: 'json',
  551. 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},
  552. success: function (result) {
  553. window.location.href = "{{ route('hardware.aio.job') }}";
  554. },
  555. error: function (errorData) {
  556. if (errorData.status==422) {//验证错误
  557. $.each(JSON.parse(errorData.responseText).errors,function (key,val) {
  558. dialogDiv(val[0],'确定','Display');
  559. return false;
  560. });
  561. }
  562. else if(errorData.status==400) {//业务错误
  563. dialogDiv(JSON.parse(errorData.responseText).message,'确定','Display');
  564. return false;
  565. }
  566. }
  567. })
  568. })
  569. </script>
  570. @endsection