appoint_list.blade.php 37 KB

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