appoint_list.blade.php 37 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884
  1. <section class="content">
  2. <div class="row">
  3. <div class="col-md-12">
  4. <div class="box">
  5. {{ csrf_field() }}
  6. <div class="box-body table-responsive">
  7. <div class="col-md-3 clearfix">
  8. <div class="box-body table-responsive" style="padding:5px;">
  9. <div class="form-group clearfix" style="margin-bottom:0;">
  10. <label for="prefix" class="control-label">报名状态:</label>
  11. <div style="float: left;width: 150px;">
  12. <select class="form-control" name="audit" id="audit">
  13. <option value=''>不限</option>
  14. <option @if(array_key_exists('status',$search_data) && $search_data['status'] == '0') selected @endif value='0'>简历未下载</option>
  15. <option @if(array_key_exists('status',$search_data) && $search_data['status'] == '1') selected @endif value='1'>简历已下载</option>
  16. </select>
  17. </div>
  18. </div>
  19. </div>
  20. </div>
  21. <div class="col-md-3 clearfix">
  22. <div class="box-body table-responsive" style="padding:5px;">
  23. <div class="form-group clearfix" style="margin-bottom:0;">
  24. <label for="prefix" class="control-label">性别:</label>
  25. <div style="float: left;width: 150px;">
  26. <select class="form-control" name="sex" id="sex">
  27. <option value=''>不限</option>
  28. <option value='0' @if(array_key_exists('sex',$search_data) && $search_data['sex'] == '0') selected @endif>女</option>
  29. <option value='1' @if(array_key_exists('sex',$search_data) && $search_data['sex'] == '1') selected @endif>男</option>
  30. </select>
  31. </div>
  32. </div>
  33. </div>
  34. </div>
  35. <div class="col-md-3 clearfix">
  36. <div class="box-body table-responsive" style="padding:5px;">
  37. <div class="form-group clearfix" style="margin-bottom:0;">
  38. <label for="prefix" class="control-label">学历:</label>
  39. <div style="float: left;width: 150px;">
  40. <select class="form-control" name="education" id="education">
  41. <option value=''>不限</option>
  42. <option value='65' @if(array_key_exists('education',$search_data) && $search_data['education'] == 65) selected @endif>初中</option>
  43. <option value='66' @if(array_key_exists('education',$search_data) && $search_data['education'] == 66) selected @endif>高中</option>
  44. <option value='67' @if(array_key_exists('education',$search_data) && $search_data['education'] == 67) selected @endif>中技</option>
  45. <option value='68' @if(array_key_exists('education',$search_data) && $search_data['education'] == 68) selected @endif>中专</option>
  46. <option value='69' @if(array_key_exists('education',$search_data) && $search_data['education'] == 69) selected @endif>大专</option>
  47. <option value='70' @if(array_key_exists('education',$search_data) && $search_data['education'] == 70) selected @endif>本科</option>
  48. <option value='71' @if(array_key_exists('education',$search_data) && $search_data['education'] == 71) selected @endif>硕士</option>
  49. <option value='72' @if(array_key_exists('education',$search_data) && $search_data['education'] == 72) selected @endif>博士</option>
  50. <option value='73' @if(array_key_exists('education',$search_data) && $search_data['education'] == 73) selected @endif>博士后</option>
  51. </select>
  52. </div>
  53. </div>
  54. </div>
  55. </div>
  56. <div class="col-md-3 clearfix">
  57. <div class="box-body table-responsive" style="padding:5px;">
  58. <div class="form-group clearfix" style="margin-bottom:0;">
  59. <label for="prefix" class="control-label">精确查询:</label>
  60. <div style="float: left;width: 150px;">
  61. <input type="text" class="form-control" name="realname" id="realname" placeholder="请输入姓名" @if(array_key_exists('realname',$search_data)) value="{{$search_data['realname']}}" @endif>
  62. </div>
  63. </div>
  64. </div>
  65. </div>
  66. </div>
  67. <div class="box-footer">
  68. <div class="btn-group" style="margin-left: 440px;">
  69. <button type="button" class="btn btn-info btn-primary js-search" data-type="1"><i class="fa fa-search">搜索</i></button>
  70. </div>
  71. </div>
  72. <div class="box-body table-responsive">
  73. <div class="col-md-12">
  74. <div class="box-header with-border">
  75. <h3 class="box-title">查询结果</h3>
  76. </div>
  77. <div class="box-body table-responsive no-padding">
  78. <table class="table table-hover">
  79. <thead>
  80. <tr>
  81. <th height="26" class="admin_list_tit">
  82. <input type="checkbox" name=" " title="全选/反选" id="chk" />
  83. </th>
  84. <th>照片</th>
  85. <th>基础资料</th>
  86. <th>电话</th>
  87. <th>是否应届</th>
  88. <th>学历</th>
  89. <th>学校</th>
  90. <th>院系</th>
  91. <th>专业类别</th>
  92. <th>具体专业</th>
  93. <th>操作</th>
  94. </tr>
  95. </thead>
  96. <tbody>
  97. @if(isset($list) && $list->total())
  98. @foreach($list as $k=>$v)
  99. <tr>
  100. <td>
  101. <input ls="{{$v->id}}" name="id[]" id="appointinfo_{{$v->id}}" type="checkbox" value="{{$v->id}}" />
  102. </td>
  103. <td>
  104. <span class="vtip" title='<img @if($v->avatar) src="{{$v->avatar}}" @else src="/data/upload/resource/no_photo_male.png" @endif>' height=120>
  105. <img style="width: 30px; height: 30px;" @if($v->avatar) src="{{$v->avatar}}" @else src="/data/upload/resource/no_photo_male.png" @endif></span>
  106. </td>
  107. <td>
  108. <span style="color: #0A246A; margin-right: 3px;">{!! $v->realname !!}</span>
  109. <span style="color: #0A246A; margin-right: 3px;">{{$v->sex}}</span>
  110. <span style="color:#be7707; margin-right: 3px;">{{$v->birthday}}</span>
  111. <span style="color:#0A7CF7; margin-right: 3px;">{{$v->education}}</span>
  112. <span style="color:#0F73AC; margin-right: 3px;">{{$v->native_place}}</span>
  113. </td>
  114. <td>
  115. {{ $v->mobile }}
  116. </td>
  117. <td>{!! $v->fresh !!}</td>
  118. <td>{!! $v->education !!}</td>
  119. <td>{!! $v->school !!}</td>
  120. <td>{!! $v->dep !!}</td>
  121. <td>
  122. {{ $v->pro_type }}
  123. </td>
  124. <td>
  125. {{ $v->pro_text }}
  126. </td>
  127. <td>
  128. <button class='btn btn-primary btn-xs fetch_word' data-rid="{{$v->recruit_id}}" data-aid="{{$v->id}}" style="margin-bottom: 10px">下载简历</button>
  129. </td>
  130. </tr>
  131. @endforeach
  132. @else
  133. <tr>
  134. <td colspan="11">
  135. <div class="list_empty_group">
  136. <div class="list_empty">
  137. <div class="list_empty_left"></div>
  138. <div class="list_empty_right">
  139. <div class="sorry_box">对不起,暂无相关信息!</div>
  140. </div>
  141. <div class="clear"></div>
  142. </div>
  143. </div>
  144. </td>
  145. </tr>
  146. @endif
  147. </tbody>
  148. </table>
  149. </div>
  150. @if(isset($list))
  151. {{ $list->appends($search_data)->links('module.widgets.pagination') }}
  152. @endif
  153. </div>
  154. </div>
  155. </div>
  156. </div>
  157. </div>
  158. </section>
  159. <script type="text/javascript" src="{{ theme_asset('app/js/jquery.disappear.tooltip.js') }}"></script>
  160. <script type="text/javascript" src="{{ theme_asset('app/js/jquery.modal.userselectlayer.js') }}"></script>
  161. <script type="text/javascript" src="{{ theme_asset('app/js/jquery.user.city.js') }}"></script>
  162. <script type="text/javascript" src="{{ theme_asset('app/js/jquery.modal.dialog.js') }}"></script>
  163. <script>
  164. //图片预览
  165. this.vtip = function() {
  166. this.xOffset = -10; // x distance from mouse
  167. this.yOffset = 15; // y distance from mouse
  168. $(".vtip").unbind().hover(
  169. function(e) {
  170. this.t = $(this).attr("title");
  171. this.title = '';
  172. this.top = (e.pageY + yOffset);
  173. this.left = (e.pageX + xOffset);
  174. $('body').css("cursor","help");
  175. $('p#vtip').width()>450?$('p#vtip').width(450):'';
  176. $('body').append( '<p id="vtip">' + this.t + '</p>' );
  177. $('p#vtip').css("top", this.top+"px").css("left", this.left+"px").fadeIn(0);
  178. },
  179. function() {
  180. this.title = this.t;
  181. $('body').css("cursor","");
  182. $("p#vtip").fadeOut("slow").remove();
  183. }
  184. ).mousemove(
  185. function(e) {
  186. this.top = (e.pageY + yOffset);
  187. this.left = (e.pageX + xOffset);
  188. $("p#vtip").css("top", this.top+"px").css("left", this.left+"px");
  189. }
  190. );
  191. };
  192. //提交数组整理
  193. this.show = function(type = 0){
  194. var id_array = new Array();
  195. if(type == 0){
  196. $('input[name="id\[\]"]:checked').each(function() {
  197. id_array.push($(this).val()); //向数组中添加元素
  198. });
  199. }else{
  200. id_array.push($("#appointinfo_"+type).val());
  201. }
  202. if (id_array.length == 0) {
  203. disapperTooltip('remind', '请选择用户');
  204. return false;
  205. } else {
  206. var idstr = id_array.join(','); //将数组元素连接起来以构建一个字符串
  207. if (idstr == '' || idstr == null) {
  208. idstr = 0;
  209. }
  210. return idstr;
  211. }
  212. }
  213. //报名记录审核
  214. this.appointAudit = function(type = 0){
  215. var ids = show(type);
  216. if(!ids){
  217. return false;
  218. }
  219. if (ids !== false) {
  220. var qsDialog = $(this).dialog({
  221. title: '报名审核',
  222. loading: true,
  223. showFooter: false,
  224. yes: function() {
  225. $('.J_btnyes').val('发送中...');
  226. $.post("{{ route('recruit.appoint_audit') }}", $('#J_interviewWrap').serialize(), function(result) {
  227. if (result.status == 1) {
  228. disapperTooltip('success', result.msg);
  229. setTimeout(function() {
  230. $.pjax.reload('#pjax-container');
  231. qsDialog.hide(true);
  232. }, 2000);
  233. } else {
  234. $('.J_btnyes').val('确定');
  235. disapperTooltip('remind', result.msg);
  236. }
  237. }, 'json');
  238. }
  239. });
  240. qsDialog.setCloseDialog(false);
  241. var recruit_id = $(this).attr('recruit_id');
  242. $.getJSON("/ST3IXxKlOa4eGEv0eTw0CfORI9444Mgj/recruit/ajax_audit", {
  243. recruit_id: recruit_id,
  244. ids: ids
  245. }, function(result) {
  246. if (result.status == 1) {
  247. qsDialog.setContent(result.data);
  248. qsDialog.showFooter(true);
  249. } else {
  250. qsDialog.setContent('<div class="confirm">' + result.msg + '<\/div>');
  251. }
  252. });
  253. }
  254. };
  255. //材料补登
  256. this.supplement = function(type = 0){
  257. var ids = show(type);
  258. if(!ids){
  259. return false;
  260. }
  261. if (ids !== false) {
  262. var qsDialog = $(this).dialog({
  263. title: '材料补登审核',
  264. loading: true,
  265. showFooter: false,
  266. yes: function() {
  267. $('.J_btnyes').val('发送中...');
  268. $.post("{{ route('recruit.supplement') }}", $('#J_interviewWrap').serialize(), function(result) {
  269. if (result.status == 1) {
  270. disapperTooltip('success', result.msg);
  271. setTimeout(function() {
  272. $.pjax.reload('#pjax-container');
  273. qsDialog.hide(true);
  274. }, 2000);
  275. } else {
  276. $('.J_btnyes').val('确定');
  277. disapperTooltip('remind', result.msg);
  278. }
  279. }, 'json');
  280. }
  281. });
  282. qsDialog.setCloseDialog(false);
  283. var recruit_id = $(this).attr('recruit_id');
  284. $.getJSON("/ST3IXxKlOa4eGEv0eTw0CfORI9444Mgj/recruit/ajax_supplement", {
  285. recruit_id: recruit_id,
  286. ids: ids
  287. }, function(result) {
  288. if (result.status == 1) {
  289. qsDialog.setContent(result.data);
  290. qsDialog.showFooter(true);
  291. } else {
  292. qsDialog.setContent('<div class="confirm">' + result.msg + '<\/div>');
  293. }
  294. });
  295. }
  296. }
  297. //材料补登
  298. this.health = function(param = 0,type = 'pen'){
  299. var ids = show(param);
  300. if(!ids){
  301. return false;
  302. }
  303. if (ids !== false) {
  304. var qsDialog = $(this).dialog({
  305. title: '健康信息审核',
  306. loading: true,
  307. showFooter: false,
  308. yes: function() {
  309. $('.J_btnyes').val('发送中...');
  310. $.post("{{ route('recruit.health') }}", $('#J_interviewWrap').serialize(), function(result) {
  311. if (result.status == 1) {
  312. disapperTooltip('success', result.msg);
  313. setTimeout(function() {
  314. $.pjax.reload('#pjax-container');
  315. qsDialog.hide(true);
  316. }, 2000);
  317. } else {
  318. $('.J_btnyes').val('确定');
  319. disapperTooltip('remind', result.msg);
  320. }
  321. }, 'json');
  322. }
  323. });
  324. qsDialog.setCloseDialog(false);
  325. var recruit_id = $(this).attr('recruit_id');
  326. $.getJSON("/ST3IXxKlOa4eGEv0eTw0CfORI9444Mgj/recruit/ajax_health", {
  327. recruit_id: recruit_id,
  328. ids: ids,
  329. type: type
  330. }, function(result) {
  331. if (result.status == 1) {
  332. qsDialog.setContent(result.data);
  333. qsDialog.showFooter(true);
  334. } else {
  335. qsDialog.setContent('<div class="confirm">' + result.msg + '<\/div>');
  336. }
  337. });
  338. }
  339. }
  340. $(document).ready(function() {
  341. vtip();
  342. $(document).off("click",'.appoint_audit').on('click','.appoint_audit',function () {
  343. appointAudit($(this).data('param'));
  344. });
  345. $(document).off("click",'.supplement').on('click','.supplement',function () {
  346. supplement($(this).data('param'));
  347. });
  348. $(document).off("click",'.health').on('click','.health',function () {
  349. health($(this).data('param'),$(this).data("type"));
  350. });
  351. $(document).off("click",'.fetch_word').on('click','.fetch_word',function () {
  352. var recruit_id = $(this).attr('data-rid'),appoint_id = $(this).attr('data-aid');
  353. var qsDialog = $(this).dialog({
  354. title: 'word简历生成',
  355. loading: true,
  356. showFooter: false,
  357. yes: function() {
  358. $('.J_btnyes').val('发送中...');
  359. $.post("{{ route('recruit.fetchword') }}", {_token:'{{ csrf_token() }}',recruit_id:recruit_id,appoint_id:appoint_id}, function(result) {
  360. if (result.status == 1) {
  361. disapperTooltip('success', result.msg);
  362. window.location.href = result.url;
  363. setTimeout(function() {
  364. $.pjax.reload('#pjax-container');
  365. qsDialog.hide(true);
  366. }, 2000);
  367. } else {
  368. $('.J_btnyes').val('确定');
  369. disapperTooltip('remind', result.msg);
  370. }
  371. }, 'json');
  372. }
  373. });
  374. qsDialog.setCloseDialog(false);
  375. qsDialog.setContent("重新生成会覆盖原有简历,请确认?");
  376. qsDialog.showFooter(true);
  377. });
  378. $("#ButtonAudit").click(function() {
  379. appointAudit(0)
  380. })
  381. /*查看人员信息*/
  382. $('.ButCompared').click(function() {
  383. var qsDialog = $(this).dialog({
  384. title: '查看报名信息',
  385. loading: true,
  386. footer: false
  387. });
  388. var param = $(this).data('param');
  389. var url = $(this).data('url') + "?id=" + param;
  390. $.getJSON(url, function(result) {
  391. qsDialog.setContent('<div style="max-height:600px;overflow-y:auto;">' + result.data + '<\/div>');
  392. });
  393. });
  394. //导出word简历压缩包
  395. $("#out_zip").click(function() {
  396. var id = show();
  397. if(!id){
  398. return false;
  399. }
  400. $(this).val("数据生成中。。。")
  401. $.ajax({
  402. url: "{{ route('recruit.out_zip') }}",
  403. type: 'POST',
  404. dataType: 'json',
  405. data: {
  406. id: id,
  407. recruit_id: "{{$recruit->id}}"
  408. },
  409. error: function(data) {
  410. },
  411. success: function(res) {
  412. $(this).val("导出word版简历(压缩包)")
  413. if (res.status == 1) {
  414. window.open(res.msg);
  415. } else {
  416. alert(res.msg);
  417. return false;
  418. }
  419. }
  420. });
  421. });
  422. });
  423. /*查看日志信息*/
  424. $('.ButExamineLog').click(function() {
  425. var qsDialog = $(this).dialog({
  426. title: '查看审核信息',
  427. loading: true,
  428. footer: false
  429. });
  430. var param = $(this).data('param');
  431. var url = $(this).data('url') + "?id=" + param;
  432. $.getJSON(url, function(result) {
  433. qsDialog.setContent('<div style="max-height:600px;overflow-y:auto;">' + result.data + '<\/div>');
  434. });
  435. });
  436. $('.js-search').click(function() {
  437. var political_affiliation = $.trim($('#political_affiliation').val());
  438. var audit = $.trim($('#audit').val());
  439. var realname = $.trim($('#realname').val());
  440. var print_ms = $.trim($('#print_ms').val());
  441. var print_bs = $.trim($('#print_bs').val());
  442. var pen_audit = $.trim($('#pen_audit').val());
  443. var computer_audit = $.trim($('#computer_audit').val());
  444. var face_audit = $.trim($('#face_audit').val());
  445. var reexamine_audit = $.trim($('#reexamine_audit').val());
  446. var inspect_audit = $.trim($('#inspect_audit').val());
  447. var print_js = $.trim($('#print_js').val());
  448. var review_audit = $.trim($('#review_audit').val());
  449. var political_audit = $.trim($('#political_audit').val());
  450. var health_audit = $.trim($('#health_audit').val());
  451. var sex = $.trim($("#sex").val());
  452. var education = $.trim($("#education").val());
  453. var post_id = $.trim($("#post_id").val());
  454. var parm = '';
  455. if (health_audit) {
  456. parm += "&health_audit=" + health_audit;
  457. }
  458. if (political_audit) {
  459. parm += "&political_audit=" + political_audit;
  460. }
  461. if (review_audit) {
  462. parm += "&review_audit=" + review_audit;
  463. }
  464. if (political_affiliation) {
  465. parm += "&political_affiliation=" + political_affiliation;
  466. }
  467. if (audit) {
  468. parm += "&audit=" + audit;
  469. }
  470. if (realname) {
  471. parm += "&realname=" + realname;
  472. }
  473. if (print_ms) {
  474. parm += "&print_ms=" + print_ms;
  475. }
  476. if (print_bs) {
  477. parm += "&print_bs=" + print_bs;
  478. }
  479. if (pen_audit) {
  480. parm += "&pen_audit=" + pen_audit;
  481. }
  482. if (face_audit) {
  483. parm += "&face_audit=" + face_audit;
  484. }
  485. if (computer_audit) {
  486. parm += "&computer_audit=" + computer_audit;
  487. }
  488. if (reexamine_audit) {
  489. parm += "&reexamine_audit=" + reexamine_audit;
  490. }
  491. if (inspect_audit) {
  492. parm += "&inspect_audit=" + inspect_audit;
  493. }
  494. if (print_js) {
  495. parm += "&print_js=" + print_js;
  496. }
  497. if(sex){
  498. parm += "&sex=" + sex;
  499. }
  500. if(education){
  501. parm += "&education=" + education;
  502. }
  503. if(post_id){
  504. parm += "&post_id=" + post_id;
  505. }
  506. window.location = "{{ url('/ST3IXxKlOa4eGEv0eTw0CfORI9444Mgj/recruit/appoint_list')}}?id={{$search_data['id']}}" + parm;
  507. });
  508. //入职聘用
  509. function employ() {
  510. var ids = show();
  511. if (ids !== false) {
  512. var qsDialog = $(this).dialog({
  513. title: '请选择',
  514. loading: true,
  515. showFooter: false,
  516. yes: function() {
  517. $('.J_btnyes').val('发送中...');
  518. // console.log($('#J_interviewWrap').serialize());
  519. $.post("recruit.employ", $('#J_interviewWrap').serialize(), function(result) {
  520. if (result.status == 1) {
  521. disapperTooltip('success', result.msg);
  522. setTimeout(function() {
  523. $.pjax.reload('#pjax-container');
  524. qsDialog.hide(true);
  525. }, 2000);
  526. } else {
  527. $('.J_btnyes').val('确定');
  528. disapperTooltip('remind', result.msg);
  529. }
  530. }, 'json');
  531. }
  532. });
  533. qsDialog.setCloseDialog(false);
  534. var recruit_id = "{{$recruit->id}}";
  535. $.getJSON("recruit.employ_audit", {
  536. recruit_id: recruit_id,
  537. ids: ids
  538. }, function(result) {
  539. if (result.status == 1) {
  540. qsDialog.setContent(result.data);
  541. qsDialog.showFooter(true);
  542. } else {
  543. qsDialog.setContent('<div class="confirm">' + result.msg + '<\/div>');
  544. }
  545. });
  546. }
  547. }
  548. //其它审核
  549. function butpen(i) {
  550. var ids = show();
  551. if (ids !== false) {
  552. var qsDialog = $(this).dialog({
  553. title: '请选择',
  554. loading: true,
  555. showFooter: false,
  556. yes: function() {
  557. $('.J_btnyes').val('发送中...');
  558. $.post("recruit.other_auth", $('#J_interviewWrap').serialize(), function(result) {
  559. if (result.status == 1) {
  560. disapperTooltip('success', result.msg);
  561. setTimeout(function() {
  562. $.pjax.reload('#pjax-container');
  563. qsDialog.hide(true);
  564. }, 2000);
  565. } else {
  566. $('.J_btnyes').val('确定');
  567. disapperTooltip('remind', result.msg);
  568. }
  569. }, 'json');
  570. }
  571. });
  572. qsDialog.setCloseDialog(false);
  573. var recruit_id = "{{$recruit->id}}";
  574. if (i == 'pay_audit') {
  575. $.getJSON("recruit.pay_audit", {
  576. recruit_id: recruit_id,
  577. ids: ids,
  578. type: i
  579. }, function(result) {
  580. if (result.status == 1) {
  581. qsDialog.setContent(result.data);
  582. qsDialog.showFooter(true);
  583. } else {
  584. qsDialog.setContent('<div class="confirm">' + result.msg + '<\/div>');
  585. }
  586. });
  587. } else {
  588. $.getJSON("recruit.ajax_other_audit", {
  589. recruit_id: recruit_id,
  590. ids: ids,
  591. type: i
  592. }, function(result) {
  593. if (result.status == 1) {
  594. qsDialog.setContent(result.data);
  595. qsDialog.showFooter(true);
  596. } else {
  597. qsDialog.setContent('<div class="confirm">' + result.msg + '<\/div>');
  598. }
  599. });
  600. }
  601. }
  602. }
  603. //准考证生成
  604. function card() {
  605. var recruit_id = "{{$recruit->id}}";
  606. var qsDialog = $(this).dialog({
  607. title: '请选择',
  608. loading: true,
  609. showFooter: false,
  610. yes: function() {
  611. $('.J_btnyes').val('发送中...');
  612. var data = new FormData(document.getElementById("J_ticketWrap"));
  613. console.log(data)
  614. $.ajax({
  615. url: "{{ route('recruit.create_ticket') }}",
  616. type: 'POST',
  617. data: data,
  618. processData: false,
  619. contentType : false,
  620. success: function(response){
  621. if (response.status == 1) {
  622. disapperTooltip('success', response.msg);
  623. setTimeout(function() {
  624. $.pjax.reload('#pjax-container');
  625. qsDialog.hide(true);
  626. }, 2000);
  627. } else {
  628. $('.J_btnyes').val('确定');
  629. disapperTooltip('remind', response.msg);
  630. }
  631. }
  632. })
  633. }
  634. });
  635. qsDialog.setCloseDialog(false);
  636. $.getJSON("ajax/ajax_ticket", {
  637. recruit_id: recruit_id
  638. }, function(result) {
  639. if (result.status == 1) {
  640. qsDialog.setContent(result.data);
  641. qsDialog.showFooter(true);
  642. } else {
  643. qsDialog.setContent('<div class="confirm">' + result.msg + '<\/div>');
  644. }
  645. });
  646. }
  647. //成绩更新
  648. function record() {
  649. var recruit_id = "{{$recruit->id}}";
  650. var qsDialog = $(this).dialog({
  651. title: '请选择',
  652. loading: true,
  653. showFooter: false,
  654. yes: function() {
  655. $('.J_btnyes').val('发送中...');
  656. var data = new FormData(document.getElementById("J_recordWrap"));
  657. $.ajax({
  658. url: "{{ route('recruit.update_record') }}",
  659. type: 'POST',
  660. data: data,
  661. processData: false,
  662. contentType : false,
  663. success: function(response){
  664. if (response.status == 1) {
  665. disapperTooltip('success', response.msg);
  666. setTimeout(function() {
  667. $.pjax.reload('#pjax-container');
  668. qsDialog.hide(true);
  669. }, 2000);
  670. } else {
  671. $('.J_btnyes').val('确定');
  672. disapperTooltip('remind', response.msg);
  673. }
  674. }
  675. })
  676. }
  677. });
  678. qsDialog.setCloseDialog(false);
  679. $.getJSON("ajax/ajax_record", {
  680. recruit_id: recruit_id
  681. }, function(result) {
  682. if (result.status == 1) {
  683. qsDialog.setContent(result.data);
  684. qsDialog.showFooter(true);
  685. } else {
  686. qsDialog.setContent('<div class="confirm">' + result.msg + '<\/div>');
  687. }
  688. });
  689. }
  690. //提交准考证
  691. $("#build").click(function() {
  692. $("form[name=form1]").attr("action", "{:U('buildcard')}" + "&recruit_id=" + recruit_ids +
  693. "&time=" + time + "&audits=" + audits + "&times=" + times + "&home=" + home + "&address=" + address + "&expand=" + expand);
  694. $("form[name=form1]").submit();
  695. });
  696. //撤销准考证
  697. $("#del_ticket").click(function() {
  698. var ticket_id = $("input[name='ticket_id']:checked").val();
  699. var r_id = $("input[name='r_id']").val();
  700. $("form[name=form1]").attr("action", "{:U('delcard')}" + "&ticket_id=" + ticket_id + "&r_id=" + r_id);
  701. $("form[name=form1]").submit();
  702. });
  703. //撤销准考证
  704. function delcard() {
  705. var ids = show();
  706. var recruit_id = "{{$recruit->id}}";
  707. if (ids !== false) {
  708. var qsDialog = $(this).dialog({
  709. title: '请选择',
  710. loading: true,
  711. showFooter: false,
  712. yes: function() {
  713. $('.J_btnyes').val('发送中...');
  714. var ticket_id = $("input[name='ticket_id']:checked").val();
  715. data = {
  716. 'ids': ids,
  717. 'recruit_id': recruit_id,
  718. 'ticket_id': ticket_id,
  719. };
  720. $.post("recruit.ticket_del", data, function(result) {
  721. if (result.status == 1) {
  722. disapperTooltip('success', result.msg);
  723. setTimeout(function() {
  724. $.pjax.reload('#pjax-container');
  725. qsDialog.hide(true);
  726. }, 2000);
  727. } else {
  728. $('.J_btnyes').val('确定');
  729. disapperTooltip('remind', result.msg);
  730. }
  731. }, 'json');
  732. }
  733. });
  734. qsDialog.setCloseDialog(false);
  735. $.getJSON("recruit.ajax_ticket_del", {
  736. recruit_id: recruit_id,
  737. ids: ids,
  738. }, function(result) {
  739. if (result.status == 1) {
  740. // console.log(result.data);
  741. qsDialog.setContent(result.data);
  742. qsDialog.showFooter(true);
  743. } else {
  744. qsDialog.setContent('<div class="confirm">' + result.msg + '<\/div>');
  745. }
  746. });
  747. }
  748. }
  749. /*全选*/
  750. $("#chk").click(function() {
  751. if (this.checked == false) {
  752. // console.log("反选")
  753. $("td :checkbox").prop("checked", false);
  754. }
  755. if (this.checked == true) {
  756. // console.log("全选")
  757. $("td :checkbox").prop("checked", true);
  758. }
  759. })
  760. //子复选框有一个未选中时,去掉全选按钮的选中状态
  761. $("td :checkbox").click(function() {
  762. var allCheckNum = $("td input[type='checkbox']").length;
  763. var checkedNum = $("td input[type='checkbox']:checked").length;
  764. if (checkedNum == allCheckNum) {
  765. // console.log("全选");
  766. document.getElementById("chk").checked = true;
  767. } else {
  768. // console.log("反选");
  769. document.getElementById("chk").checked = false;
  770. }
  771. })
  772. </script>
  773. <link href="{{ theme_asset('app/css/person/common.css') }}" rel="stylesheet">
  774. <style type="text/css">
  775. p#vtip { display: none; position: absolute; padding: 10px; left: 5px; font-size: 0.8em; background-color: white; border: 1px solid #a6c9e2; -moz-border-radius: 5px; -webkit-border-radius: 5px; z-index: 9999 }
  776. p#vtip img{width: 200px}
  777. /*body{min-width: 1680px;overflow: auto;}*/
  778. .clearfix:after {
  779. display: block;
  780. clear: both;
  781. content: "";
  782. visibility: hidden;
  783. height: 0;
  784. }
  785. .clearfix {
  786. zoom: 1;
  787. /*为了兼容IE*/
  788. }
  789. .box .box-body {
  790. position: relative;
  791. }
  792. .box .form-group label {
  793. float: left;
  794. width: 120px;
  795. line-height: 34px;
  796. text-align: right;
  797. }
  798. .box .input-group {
  799. width: 360px;
  800. }
  801. .list_empty_group {
  802. text-align: center;
  803. line-height: 80px;
  804. color: #404446;
  805. font-size: 22px;
  806. }
  807. .jobslist_table .li-table-btn {
  808. width: 120px;
  809. height: 50px;
  810. line-height: 50px;
  811. }
  812. .modal {
  813. display: block;
  814. position: static;
  815. }
  816. .qs-category-unlimited .selected-group .selected-box .s-cell {
  817. width: 112px;
  818. }
  819. .qs-category-unlimited .cate-type .dd {
  820. margin: 0px;
  821. font-size: 14px;
  822. }
  823. .qs-category-unlimited .cate-type .one-select label {
  824. display: block;
  825. margin: 0px;
  826. width: 110px;
  827. }
  828. .qs-category-unlimited .cate-type .one-select .check-box {
  829. margin: 0px;
  830. }
  831. .modal_body_box .list_nav1 li label {
  832. margin-bottom: 0px;
  833. }
  834. .disappear_tooltip .content {
  835. min-height: auto;
  836. padding: 0px;
  837. padding-left: 10px;
  838. padding-right: 10px;
  839. }
  840. </style>