create.blade.php 30 KB

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